update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (Fput_char_attribute): Convert char-specs in value of
4         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
5         links.
6
7 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
8
9         * text-coding.c: Add EXFUN for `Fregexp_quote'.
10         (decode_add_er_char): Fix problem about infinite loop when a CCS
11         specified in `coded-charset-entity-reference-alist' is not
12         existed.
13
14 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
15
16         * mule-charset.c (syms_of_mule_charset): Rename
17         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
18
19 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
20
21         * fns.c (simplify_char_spec): Don't allocate new character-object
22         if specified char_spec does not have any CCS-features.
23
24         * chartab.h: Add EXFUN for Fdefine_char.
25
26         * chartab.c: Delete EXFUN for Fdefine_char.
27
28 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
29
30         * fns.c (simplify_char_spec): Use Fdefine_char instead of
31         Ffind_char for char-spec.
32
33 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
34
35         * lisp-disunion.h (XCHARVAL): Fix condition about
36         SIZEOF_EMACS_INT.
37
38 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
39
40         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
41         <int> for `code'.
42         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
43         point; use <Emchar> instead of <int> for character-id.
44
45 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
46
47         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
48         (make_char): Likewise.
49         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
50         environment.
51         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
52         instead of <int> as the type of return value; use <Lisp_Object>
53         instead of <Emchar> as the type of argument.
54         (XCHARVAL[macro version]): Cast the result into <Emchar>.
55
56         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
57         syntaxcode> instead of <int>.
58
59 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
60
61         * chartab.c (put_char_composition): Use DECODE_CHAR to get
62         character corresponding with UCS code point.
63         (Fput_char_attribute): Likewise.
64
65         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
66         character in the UCS decoding-table if the char-id is not equal to
67         the UCS code point.
68
69 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
70
71         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
72         for aliases; write `description'; write
73         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
74         not 0.
75
76 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
77
78         * chartab.c (Fsave_char_attribute_table): Don't use
79         `save_charset_properties'.
80
81         * mule-charset.c (Fsave_charset_properties): Renamed from
82         `save_charset_properties' and changed to Lisp function again;
83         write property `type' as `CCS'; write properties `final-byte' and
84         `mother' if they exists.
85         (syms_of_mule_charset): Revive builtin function
86         `save-charset-properties' when HAVE_LIBCHISE is defined.
87
88 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
89
90         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
91         instead of Vexec_directory.
92         (char_attribute_system_db_file): Likewise.
93
94 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
95
96         * chartab.c (Fsave_char_attribute_table): Use
97         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
98         defined.
99
100         * mule-charset.c (save_charset_properties): Renamed from
101         `Fsave_charset_properties'; changed to non-Lisp function.
102         (syms_of_mule_charset): Abolish builtin function
103         `save-charset-properties'.
104
105 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
106
107         * mule-charset.c (Fsave_charset_properties): New function when
108         HAVE_LIBCHISE is defined.
109         (syms_of_mule_charset): Add new builtin function
110         `save-charset-properties' when HAVE_LIBCHISE is defined.
111
112 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
113
114         * chartab.c (Fput_char_attribute): Convert char-specs in value of
115         `{<-|->}ancient[^*]*' to characters and put reverse links.
116         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
117         for `{<-|->}ancient[^*]*'.
118
119 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
120
121         * chartab.c (Fput_char_attribute): Convert char-specs in value of
122         `{<-|->}original[^*]*' to characters and put reverse links.
123         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
124         for `{<-|->}original[^*]*'.
125
126 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
127
128         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
129
130 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
131
132         * mule-charset.c (Qsystem_char_id): New variable.
133
134         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
135         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
136
137 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
138
139         * chartab.c (Fput_char_attribute): When processing a reference of
140         a character, put into the end of the reversed reference of each
141         target character.
142
143 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
144
145         * chartab.c (Q_same): Deleted.
146         (Q_same_of): Deleted.
147         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
148         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
149         for `{<-|->}same'.
150         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
151
152 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
153
154         * chartab.c (Q_vulgar): Deleted.
155         (Q_vulgar_of): Deleted.
156         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
157         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
158         for `{<-|->}vulgar'.
159         (syms_of_chartab): Don't define `{<-|->}vulgar'.
160
161 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
162
163         * chartab.c (Fput_char_attribute): Convert char-specs in value of
164         `{<-|->}wrong[^*]*' to characters and put reverse links.
165         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
166         for `{<-|->}wrong[^*]*'.
167
168 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
169
170         * chartab.c (Q_vulgar): New variable.
171         (Q_vulgar_of): New variable.
172         (Fput_char_attribute): Convert char-specs in value of
173         `{->|<-}vulgar' to characters and put reverse links.
174         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
175         for `{->|<-}vulgar'.
176         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
177
178 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
179
180         * text-coding.c (decode_add_er_char): Must to quote prefix string
181         as regexp.
182
183 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
184
185         * mule-charset.c (put_char_ccs_code_point): Store characters of
186         =ucs whose code_points >= 0xF0000.
187
188 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
189
190         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
191         CHISE.
192         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
193         CHISE.
194         (complex_vars_of_mule_charset): Add new coded-charset
195         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
196         builtin characters over 0xEFFFF.
197
198         * chartab.c (syms_of_chartab): Don't define symbol
199         `system-char-id' in every case.
200
201         * char-ucs.h (Qsystem_char_id): New extern variable.
202         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
203
204 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
205
206         * text-coding.c (char_encode_utf8): Try to use entity-references
207         for U-000F0000 ...  U-0010FFFF.
208
209 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
210
211         * text-coding.c (ER_BUF_SIZE): New macro.
212         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
213         `er_buf'.
214         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
215         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
216
217 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
218
219         * chartab.c (find_char_feature_in_family): New function.
220         (Fchar_feature): Use `find_char_feature_in_family' with
221         `->identical', `<-subsumptive' and `<-denotational'.
222
223 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
224
225         * text-coding.c (char_encode_as_entity_reference): Allow prefix
226         within 8 characters; fix infinite loop.
227
228 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
229
230         * chartab.c (Q_same): New variable.
231         (Q_same_of): New variable.
232         (Fput_char_attribute): Convert char-specs in value of
233         `{->|<-}same' to characters and put reverse links.
234         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
235         for `{->|<-}same'.
236         (syms_of_chartab): Add new symbols `{->|<-}same'.
237
238 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
239
240         * chartab.c (Q_component): New variable.
241         (Q_component_of): Likewise.
242         (Fput_char_attribute): Convert char-specs in value of
243         `{->|<-}ideographic-component-forms' to characters and put reverse
244         links.
245         (syms_of_chartab): Add new symbols
246         `{->|<-}ideographic-component-forms'.
247
248 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
249
250         * chartab.c (Q_identical): New variable.
251         (Q_identical_from): New variable.
252         (Fchar_feature): Regard `->identical' as a feature to find
253         ancestors.
254         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
255         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
256         for `{->|<-}identical'.
257         (syms_of_chartab): Add new symbols `{->|<-}identical'.
258
259 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
260
261         * char-ucs.h (encode_char_2): New inline function.
262         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
263
264 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
265
266         * chartab.c (Fput_char_attribute): Convert char-specs to
267         characters in value of `ideographic-structure'.
268         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
269         for `{<-|->}simplified(@...)'.
270         (Fdefine_char): bTry to use predefined character's id.
271
272 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
273
274         * fns.c (simplify_char_spec): Try to convert builtin chars to
275         defined chars.
276
277 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
278
279         * chartab.c (Fput_char_attribute): Convert char-specs in value of
280         `<-simplified[^*]*' to characters and put reverse links.
281
282 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
283
284         * chartab.c (Q_subsumptive): Renamed from Q_unified.
285         (Q_subsumptive_from): Renamed from Q_unified_from.
286         (Fchar_feature): Use `Q_subsumptive_from' instead of
287         `Q_unified_from'.
288         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
289         `Q_unified'.
290         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
291         `<-unified' to `<-subsumptive'.
292
293 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
294
295         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
296         inheritance itself; fix typo; stop recursive search if cyclic
297         inheritance is found.
298
299 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
300
301         * chartab.c (Q_denotational): New variable.
302         (Q_denotational_from): New variable.
303         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
304         (put_char_attribute): New function.
305         (Fput_char_attribute): Use `put_char_attribute'; regard
306         `->denotational' and `<-denotational' as same as `->unified' and
307         `<-unified'.
308         (syms_of_chartab): Add new symbols `->denotational' and
309         `<-denotational'.
310
311 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
312
313         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
314         `Fget_char_attribute'.
315         (Fchar_variants): Likewise.
316         (get_char_table): Likewise.
317         (Fchar_feature): New function.
318         (put_char_composition): Use `Fchar_feature' instead of
319         `Fget_char_attribute'.
320         (Fput_char_attribute): Likewise; don't put the target character
321         into its `->unified' value.
322         (syms_of_chartab): Add new builtin function `char-feature'.
323
324 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
325
326         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
327         `Fget_char_attribute'.
328         (char_encode_utf8): Likewise.
329
330         * chartab.h: Add an EXFUN for `Fchar_feature'.
331
332 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
333
334         * chartab.c (Vnext_defined_char_id): New variable.
335         (Fput_char_attribute): Accept characters in `->unified'.
336         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
337         new characters which are not related with builtin char-id ranges.
338         (vars_of_chartab): Add new variable `next-defined-char-id'.
339
340 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
341
342         * chartab.c (Q_unified): New variable.
343         (Q_unified_from): New variable.
344         (Fput_char_attribute): Add code for `->unified'.
345         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
346         XEmacs CHISE.
347
348 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
349
350         * mule-charset.c (decode_ccs_conversion): New function.
351         (decode_defined_char): Use `decode_ccs_conversion'.
352         (decode_builtin_char): Likewise.
353
354 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
355
356         * char-ucs.h: Change some charset-ids of private coded-charsets.
357
358 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
359
360         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
361         (char_encode_as_entity_reference): Likewise.
362         (decode_coding_big5): Modify for `decode_defined_char' and
363         `DECODE_CHAR'.
364         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
365         avoid compiler warning.
366         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
367
368         * mule-charset.c (decode_defined_char): Add new argument
369         `without_inheritance'.
370         (Fdecode_char): Add new optional argument `without_inheritance'.
371         (Fdecode_builtin_char): Modify for `Fdecode_char'.
372
373         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
374         (simplify_char_spec): Likewise.
375
376         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
377         setting.
378
379         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
380         (map_char_table): Likewise.
381         (Fdefine_char): Use `Fdecode_char' without inheritance.
382         (Ffind_char): Modify for `Fdecode_char'.
383
384         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
385
386         * char-ucs.h (decode_defined_char): Add new argument
387         `without_inheritance'.
388         (DECODE_CHAR): Likewise.
389         (MAKE_CHAR): Modify for `DECODE_CHAR'.
390
391 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
392
393         * chartab.c (Vchise_system_db_directory): New variable.
394         (vars_of_chartab): Add new variable `chise-system-db-directory'.
395
396 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
397
398         * chartab.c: EXFUN `Fmount_char_attribute_table'.
399         (print_chartab_range): Don't define when `UTF2000' is defined.
400         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
401         `CHISE_DS_open'.
402
403 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
404
405         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
406         and optional argument `rehash' is specified, call
407         `open_chise_data_source_maybe' before
408         `chise_ds_foreach_char_feature_name' is called.
409
410 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
411
412         * chartab.c (char_attribute_list_reset_map_func): New function
413         when HAVE_LIBCHISE is defined.
414         (Fchar_attribute_list): Add new optional argument `rehash' when
415         HAVE_LIBCHISE is defined.
416         (open_chise_data_source_maybe): Use "chise-db" instead of
417         "char-db".
418         (char_attribute_system_db_file): Likewise.
419         (Fload_char_attribute_table): Use
420         `chise_feature_foreach_char_with_value' instead of
421         `chise_char_feature_value_iterate'.
422
423 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
424
425         * chartab.c (Vchise_db_directory): New variable.
426         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
427
428 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
429
430         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
431         instead of HAVE_CHISE to specify using with libchise.
432
433         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
434
435         * chartab.h: Don't use HAVE_CHISE_CLIENT.
436
437         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
438         defined or HAVE_LIBCHISE_LIBCHISE is defined.
439         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
440         is defined.
441         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
442         HAVE_CHISE to specify using with libchise.
443         (syms_of_chartab): Don't define symbol `system-char-id' when
444         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
445
446 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
447
448         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
449         specify CHISE DB support.
450         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
451         of `char_attribute_system_db_file' to check feature DB file.
452
453         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
454         HAVE_CHISE_CLIENT to specify CHISE DB support.
455
456         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
457         specify CHISE DB support.
458         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
459         not defined.
460         (Freset_char_attribute_table): Use `chise_feature_setup_db'
461         instead of `char_attribute_system_db_file' to check feature DB
462         file.
463
464 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
465
466         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
467         `HAVE_CHISE_CLIENT'.
468
469 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
470
471         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
472         (Fsave_charset_mapping_table): Don't use
473         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
474
475         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
476         (HAVE_LIBCHISE): New macro.
477
478         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
479
480         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
481         (Fsave_char_attribute_table): Don't use
482         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
483
484 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
485
486         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
487         defined.
488         (save_uint16_byte_table): Likewise.
489         (save_byte_table): Likewise.
490         (char_table_get_db): Use `chise_ds_load_char_feature_value'
491         instead of `chise_char_load_feature_value'.
492         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
493
494 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
495
496         * chartab.h (struct Lisp_Char_Table): Delete member
497         `feature_table' if CHISE is defined.
498
499         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
500         (Fcopy_char_table): Likewise.
501         (char_table_open_db_maybe): Likewise.
502         (char_table_close_db_maybe): Likewise.
503         (char_table_get_db): Likewise.
504         (Fmount_char_attribute_table): Likewise.
505         (Fload_char_attribute_table): Likewise.
506
507 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
508
509         * mule-charset.c (load_char_decoding_entry_maybe): Use
510         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
511         `chise_ccs_decode'.
512
513 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
514
515         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
516         instead of `chise_open_data_source'.
517         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
518         `chise_ds_close'.
519
520 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
521
522         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
523         instead of `chise_ds_open_feature_table'.
524         (char_table_close_db_maybe): Don't use `chise_ft_close'.
525
526 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
527
528         * mule-charset.c (Fsave_charset_mapping_table): Use
529         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
530         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
531         `chise_ccs_sync' instead of `chise_ccst_close'.
532         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
533
534         * chartab.c (open_chise_data_source_maybe): Modify for
535         `chise_open_data_source'.
536         (char_table_open_db_maybe): Modify for
537         `chise_ds_open_feature_table'.
538
539 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
540
541         * mule-charset.c (load_char_decoding_entry_maybe): Use
542         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
543         `chise_ccst_close'.
544
545 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
546
547         * mule-charset.c (Fsave_charset_mapping_table): Use
548         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
549         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
550         `chise_dt_put_char' and `chise_dt_close'.
551         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
552         `chise_ccs_decode' and `chise_ccst_close' instead of
553         `chise_ds_open_decoding_table', `chise_dt_get_char' and
554         `chise_dt_close'.
555
556         * chartab.c (char_table_get_db): Use
557         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
558         (load_char_attribute_table_map_func): Modify for
559         `chise_char_feature_value_iterate'.
560         (Fload_char_attribute_table): Use
561         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
562
563 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
564
565         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
566
567 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
568
569         * chartab.c (put_char_table): Modify for inherited coded-charsets
570         in XEmacs CHISE.
571
572 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
573
574         * chartab.c (Fput_char_table_map_function): Fixed.
575         (word_boundary_p): Don't check charset in XEmacs CHISE.
576
577 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
578
579         * mule-charset.c (Fsave_charset_mapping_table): Use
580         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
581         instead of `chise_open_decoding_table'; refer
582         `default_chise_data_source'; use `chise_dt_close' instead of
583         `chise_close_decoding_table'.
584         (load_char_decoding_entry_maybe): Likewise.
585
586         * chartab.c (default_chise_data_source): New variable when `CHISE'
587         is defined.
588         (Fcopy_char_table): `ct->ds' is deleted.
589         (open_chise_data_source_maybe): New function.
590         (Fclose_char_data_source): New function.
591         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
592         use `chise_ds_open_feature_table' instead of
593         `chise_open_feature_table'.
594         (char_table_close_db_maybe): Use `chise_ft_close' instead of
595         `chise_close_feature_table'; `cit->ds' is deleted.
596         (syms_of_chartab): Add new builtin function
597         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
598
599         * chartab.h (default_chise_data_source): New extern variable.
600         (open_chise_data_source_maybe): New prototype.
601         (struct Lisp_Char_Table): Delete `ds'.
602
603 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
604
605         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
606         `CHISE' is defined.
607
608 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
609
610         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
611         not defined; add code for non-libchise setting.
612         (char_table_close_db_maybe): Likewise.
613         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
614         defined.
615         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
616         even if `CHISE' is not defined.
617         (Freset_char_attribute_table): Likewise.
618         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
619         `char_table_close_db_maybe' even if `CHISE' is not defined; use
620         `char_table_get_db'.
621         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
622         `char_table_close_db_maybe' even if `CHISE' is not defined.
623
624 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
625
626         * chartab.c (char_table_open_db_maybe): New function.
627         (char_table_close_db_maybe): New function.
628         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
629         (Freset_char_attribute_table): Likewise.
630         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
631         `char_table_close_db_maybe'.
632         (Fload_char_attribute_table): Likewise.
633
634 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
635
636         * chartab.c: Don't include <chise.h> because it is included in
637         chartab.h.
638         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
639         defined.
640         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
641         `CHISE' is defined.
642         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
643         `CHISE' is defined.
644         (Fclose_char_attribute_table): Close `ct->feature_table' and
645         `ct->ds' when `CHISE' is defined.
646         (Freset_char_attribute_table): Likewise.
647         (load_char_attribute_maybe): Use `cit->ds' and
648         `cit->feature_table' when `CHISE' is defined.
649         (Fload_char_attribute_table): Likewise.
650
651         * chartab.h: Include <chise.h> when `CHISE' is defined.
652         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
653         when `CHISE' is defined.
654
655 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
656
657         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
658         is defined.
659         (char_table_description): Likewise.
660         (Fmake_char_table): Likewise.
661         (Fcopy_char_table): Likewise.
662         (Fmount_char_attribute_table): Likewise.
663         (Fclose_char_attribute_table): Likewise.
664         (Freset_char_attribute_table): Likewise.
665         (load_char_attribute_maybe): Likewise.
666         (Fload_char_attribute_table): Likewise.
667
668         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
669         defined.
670
671 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
672
673         * chartab.c (load_char_attribute_table_map_func): New function
674         when CHISE is defined.
675         (Qload_char_attribute_table_map_function): Don't define when CHISE
676         is defined.
677         (Fload_char_attribute_table_map_function): Likewise.
678         (Fload_char_attribute_table): Use libchise when `CHISE' is
679         defined.
680         (syms_of_chartab): Don't define
681         `load-char-attribute-table-map-function' when CHISE is defined.
682
683 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
684
685         * chartab.c: Include <chise.h> when `CHISE' is defined.
686         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
687
688 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
689
690         * mule-charset.c (charset_code_point): Fix problem when searching
691         in mother CCS fails with `defined_only' mode.
692
693 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
694
695         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
696         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
697         (put_char_composition): Likewise.
698         (Fput_char_attribute): Likewise.
699         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
700
701 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
702
703         * chartab.c (Q_ucs): Deleted.
704         (Fput_char_attribute): Don't refer `->ucs'.
705         (Fdefine_char): Likewise.
706         (Ffind_char): Likewise.
707         (syms_of_chartab): Delete `->ucs'.
708
709 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
710
711         * mule-charset.c (Qmap_cns11643_2): Renamed from
712         `Qchinese_cns11643_2'.
713         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
714         `chinese-cns11643-2'.
715         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
716         `=cns11643-2'.
717
718 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
719
720         * mule-charset.c (Qmap_cns11643_1): Renamed from
721         `Qchinese_cns11643_1'.
722         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
723         `chinese-cns11643-1'.
724         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
725         `=cns11643-1'.
726
727 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
728
729         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
730         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
731         `chinese-gb12345'.
732         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
733         `=gb12345'.
734
735 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
736
737         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
738         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
739         `chinese-gb2312'.
740         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
741         `=gb2312'.
742
743 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
744
745         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
746         (syms_of_mule_charset): Add new symbol `=big5' instead of
747         `chinese-big5'.
748         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
749
750 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
751
752         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
753         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
754         `korean-ksc5601'.
755         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
756         `=ks-x1001'.
757
758 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
759
760         * mule-charset.c (Qmap_jis_x0212): Renamed from
761         `Qjapanese_jisx0212'.
762         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
763         `japanese-jisx0212'.
764         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
765         `=jis-x0212'.
766
767 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
768
769         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
770         `Qjapanese_jisx0208'.
771         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
772         of `japanese-jisx0208'.
773         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
774         `=jis-x0208-1983'.
775
776 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
777
778         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
779         `Qjapanese_jisx0208_1978'.
780         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
781         of `japanese-jisx0208-1978'.
782         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
783         `=jis-x0208-1978'.
784
785 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
786
787         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
788         only for XEmacs CHISE.
789
790 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
791
792         * char-ucs.h: Compact non-ISO-IR charset-ids.
793         (LEADING_BYTE_UCS): Changed to -177.
794         (LEADING_BYTE_CONTROL_1): Changed to -77.
795         (LEADING_BYTE_UCS_BMP): Changed to -176.
796         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
797
798 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
799
800         * mule-charset.c (Qiso_ir): New variable.
801         (Fmake_charset): Recognise new property `iso-ir'.
802         (syms_of_mule_charset): Add new symbol `iso-ir'.
803
804 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
805
806         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
807         n to -n; charset-id of non ISO-IR sets are changed to positive
808         numbers.
809
810 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
811
812         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
813         for &MCS-XXXXXXXX; values.
814
815 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
816
817         * mule.c (Vxemacs_chise_version): Renamed from
818         `Vutf_2000_version'.
819         (vars_of_mule): Add new variable `xemacs-chise-version'; define
820         `utf-2000-version' as an alias for `xemacs-chise-version'.
821
822 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
823
824         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
825         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
826         defined.
827
828         * config.h.in (CHISE): New macro.
829
830 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
831
832         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
833         of `ucs'.
834         (Qmap_ucs): New variable.
835         (syms_of_mule_charset): Add new symbol `=ucs'.
836         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
837
838         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
839         (simplify_char_spec): Likewise.
840
841         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
842
843         * char-ucs.h (Qmap_ucs): New extern variable.
844
845 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
846
847         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
848         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
849         don't define it when UTF2000 is not defined.
850         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
851         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
852         when UTF2000 is not defined.
853         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
854         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
855
856 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
857
858         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
859
860         * mule-charset.c (Vcharset_ucs_gb): Deleted.
861         (Qucs_gb): Deleted.
862         (syms_of_mule_charset): Delete `ucs-gb'.
863         (complex_vars_of_mule_charset): Likewise.
864
865 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
866
867         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
868
869         * mule-charset.c (Vcharset_ucs_cns): Deleted.
870         (Qucs_cns): Deleted.
871         (syms_of_mule_charset): Delete `ucs-cns'.
872         (complex_vars_of_mule_charset): Likewise.
873
874 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
875
876         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
877
878         * mule-charset.c (Vcharset_ucs_jis): Deleted.
879         (Qucs_jis): Deleted.
880         (syms_of_mule_charset): Delete `ucs-jis'.
881         (complex_vars_of_mule_charset): Likewise.
882
883 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
884
885         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
886
887         * mule-charset.c (Vcharset_ucs_ks): Deleted.
888         (Qucs_ks): Deleted.
889         (syms_of_mule_charset): Delete `ucs-ks'.
890         (complex_vars_of_mule_charset): Likewise.
891
892 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
893
894         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
895         (Qideograph_daikanwa_2): Deleted.
896         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
897         (complex_vars_of_mule_charset): Likewise.
898
899         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
900         (LEADING_BYTE_DAIKANWA_1): Deleted.
901         (LEADING_BYTE_DAIKANWA_2): Deleted.
902         (MIN_CHAR_DAIKANWA): Deleted.
903         (MAX_CHAR_DAIKANWA): Deleted.
904
905 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
906
907         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
908         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
909         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
910
911         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
912         (Vcharset_ideograph_daikanwa): Deleted.
913         (Qideograph_hanziku_{1..12}): Deleted.
914         (Qideograph_daikanwa): Deleted.
915         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
916         Vcharset_ideograph_daikanwa.
917         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
918         `ideograph-hanziku-{1..12}'.
919         (complex_vars_of_mule_charset): Likewise.
920
921 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
922
923         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
924
925         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
926         (Qideograph_gt_pj_{1..11}): Deleted.
927         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
928         (complex_vars_of_mule_charset): Likewise.
929
930 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
931
932         * mule-charset.c (Vcharset_ucs_big5): Deleted.
933         (Vcharset_ideograph_gt): Deleted.
934         (Qucs_big5): Deleted.
935         (Qideograph_gt): Deleted.
936         (syms_of_mule_charset): Delete symbol `ucs-big5' and
937         `ideograph-gt'.
938         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
939         and `ideograph-gt'.
940
941         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
942         (LEADING_BYTE_GT): Deleted.
943         (MIN_CHAR_GT): Deleted.
944         (MAX_CHAR_GT): Deleted.
945
946 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
947
948         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
949
950 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
951
952         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
953         (save_uint16_byte_table): Likewise.
954         (save_byte_table): Likewise; convert values by it.
955         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
956         for `ideographic-structure'.
957         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
958         as the filter for `ideographic-structure'.
959
960 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
961
962         * chartab.c (put_char_composition): New function.
963         (Fput_char_attribute): Use `put_char_composition'; use
964         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
965
966         * fns.c (simplify_char_spec): New function.
967         (char_ref_simplify_spec): New function.
968         (Fchar_refs_simplify_char_specs): New function.
969         (syms_of_fns): Add new builtin function
970         `char-refs-simplify-char-specs'.
971
972 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
973
974         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
975         (Qideograph_cbeta): Deleted.
976         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
977         (complex_vars_of_mule_charset): Likewise.
978
979         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
980         (MIN_CHAR_CBETA): Comment out.
981         (MAX_CHAR_CBETA): Likewise.
982
983 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
984
985         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
986         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
987         CHISE client feature.
988
989 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
990
991         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
992
993 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
994
995         * mule-charset.c (charset_lookup_description_1): Use
996         `NUM_LEADING_BYTES' in UTF-2000.
997
998 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
999
1000         * char-ucs.h (GC_CHARSETP): Deleted.
1001
1002 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1003
1004         * char-ucs.h (MAX_CHAR_GT): Updated.
1005
1006 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1007
1008         * text-coding.c: Sync with XEmacs 21.4.10.
1009
1010 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1011
1012         * mule-charset.c (Vcharset_china3_jef): Deleted.
1013         (Qchina3_jef): Deleted.
1014         (syms_of_mule_charset): Don't define `china3-jef'.
1015         (complex_vars_of_mule_charset): Likewise.
1016
1017         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1018         (MIN_CHAR_CHINA3_JEF): Comment out.
1019         (MAX_CHAR_CHINA3_JEF): Comment out.
1020
1021 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1022
1023         * mule-charset.c (Vcharset_ucs_gb): New variable.
1024         (Qucs_gb): New variable.
1025         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1026         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1027
1028         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1029
1030 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1031
1032         * mule-charset.c (charset_code_point): if a coded-charset has a
1033         final-byte, don't inherit the builtin range of the mother CCS.
1034
1035 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1036
1037         * mule-charset.c (charset_code_point): Fix problem about
1038         inheritance.
1039
1040 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1041
1042         * mule-charset.c (decode_builtin_char): Reorganized.
1043
1044 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1045
1046         * text-coding.c (char_encode_as_entity_reference): Modify for
1047         `charset_code_point'.
1048         (char_encode_shift_jis): Likewise.
1049         (char_encode_big5): Likewise.
1050         (char_encode_utf8): Likewise.
1051         (char_encode_iso2022): Likewise.
1052
1053         * mule-charset.c (charset_code_point): Add new argument
1054         `defined_only'.
1055         (Fencode_char): Add new optional argument `defined_only'.
1056
1057         * chartab.c (put_char_table): Modify for `charset_code_point'.
1058
1059         * char-ucs.h (charset_code_point): Add new argument
1060         `defined_only'.
1061         (encode_char_1): Modify for `charset_code_point'.
1062
1063 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1064
1065         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1066         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1067
1068 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1069
1070         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1071         (Qjis_x0208): Likewise.
1072         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1073         XCHARSET_FINAL(charset).
1074         (charset_code_point): Modify condition for final-byte based
1075         builtin-chars.
1076         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1077         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1078         in UTF-2000; specify `=jis-x0208' as the mother of
1079         `japanese-jisx0208-1978', `japanese-jisx0208' and
1080         `japanese-jisx0208-1990' in UTF-2000.
1081
1082 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1083
1084         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1085
1086 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1087
1088         * text-coding.c (decode_coding_utf16): Support UTF-16.
1089         (char_encode_utf16): Fixed.
1090
1091 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1092
1093         * text-coding.c (Qutf16): New variable in MULE.
1094         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1095         (Fcoding_system_type): Add `utf-16' in MULE.
1096         (struct detection_state): Add a structure for utf16 in MULE.
1097         (detect_coding_type): Setup st->utf16.mask in MULE.
1098         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1099         MULE.
1100         (reset_encoding_stream): Use `char_encode_utf16' and
1101         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1102         (detect_coding_utf16): New function [incomplete].
1103         (decode_coding_utf16): New function [support only UCS-2].
1104         (char_encode_utf16): New function.
1105         (char_finish_utf16): New function.
1106         (syms_of_file_coding): Add new symbol `utf-16'; setup
1107         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1108
1109         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1110         UTF-2000.
1111         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1112         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1113
1114 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1115
1116         * chartab.c (put_char_table): When a charset is specified as a
1117         range in UTF-2000, don't support builtin characters.
1118
1119 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1120
1121         * mule-charset.c (decode_defined_char): Don't refer external
1122         database if Qunbound or Qnil are found.
1123         (Fsave_charset_mapping_table): Don't define it if
1124         HAVE_CHISE_CLIENT is not defined.
1125         (Freset_charset_mapping_table): New function.
1126         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1127         found in external database.
1128         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1129         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1130         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1131
1132 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1133
1134         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1135         not.
1136
1137 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1138
1139         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1140         Q_lowercase, Q_uppercase in UTF-2000.
1141
1142         * chartab.c (get_char_table): Add special code for the standard
1143         case table to use character attribute `->downcase' and
1144         `->uppercase' for case operations in UTF-2000.
1145
1146         * casetab.c (Qflippedcase): New variable in UTF-2000.
1147         (Q_lowercase): Likewise.
1148         (Q_uppercase): Likewise.
1149         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1150         and `->uppercase' in UTF-2000.
1151         (complex_vars_of_casetab): Assign attribute name `downcase' to
1152         downcase and CANON table of Vstandard_case_table in UTF-2000;
1153         assign attribute name `flippedcase' to upcase and EQV table of
1154         Vstandard_case_table in UTF-2000.
1155
1156 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1157
1158         * text-coding.c (decode_add_er_char): Support isolated-chars.
1159         (char_encode_as_entity_reference): Likewise.
1160
1161 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1162
1163         * emacs.c (Vutf_2000_lisp_directory): New variable.
1164         (Vconfigure_utf_2000_lisp_directory): Likewise.
1165         (complex_vars_of_emacs): Add new variable
1166         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1167
1168 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1169
1170         * char-ucs.h (DECODE_CHAR): Delete special code for
1171         `chinese-big5-1' and `chinese-big5-2'.
1172
1173         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1174         (Qbig5_2): Likewise.
1175         (decode_defined_char): Support CONVERSION_BIG5_1 and
1176         CONVERSION_BIG5_2.
1177         (decode_builtin_char): Likewise.
1178         (charset_code_point): Likewise.
1179         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1180         'conversion in UTF-2000.
1181         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1182         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1183         `chinese-big5-2' as children of `chinese-big5'.
1184
1185         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1186         (CONVERSION_BIG5_2): New macro.
1187
1188 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1189
1190         * text-coding.c (char_encode_big5): Support entity-reference.
1191
1192 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1193
1194         * text-coding.c (char_encode_as_entity_reference): New function.
1195         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1196
1197 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1198
1199         * text-coding.c (decode_coding_big5): Support entity-reference
1200         decoding feature.
1201
1202 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1203
1204         * text-coding.c (allocate_coding_system): Initialize initial
1205         charsets for CODESYS_UTF8.
1206         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1207         charset-g2 for CODESYS_UTF8.
1208         (decode_coding_utf8): Use charset-g0.
1209         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1210         to force variants to map to UCS.
1211
1212 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1213
1214         * text-coding.c (Qutf_8_mcs): New variable.
1215         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1216         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1217         instead of `utf-8' in UTF-2000.
1218
1219 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1220
1221         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1222         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1223         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1224         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1225         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1226         CONVERSION_96x96x96x96 are introduced.
1227         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1228         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1229         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1230
1231         * char-ucs.h (CONVERSION_94): New macro.
1232         (CONVERSION_96): New macro.
1233         (CONVERSION_94x94): New macro.
1234         (CONVERSION_96x96): New macro.
1235         (CONVERSION_94x94x94): New macro.
1236         (CONVERSION_96x96x96): New macro.
1237         (CONVERSION_94x94x94x60): New macro.
1238         (CONVERSION_94x94x94x94): New macro.
1239         (CONVERSION_96x96x96x96): New macro.
1240
1241 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1242
1243         * chartab.c (Vcharacter_variant_table): Deleted.
1244         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1245         of `Vcharacter_variant_table'.
1246         (Fput_char_attribute): Likewise.
1247         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1248         (complex_vars_of_chartab): Likewise.
1249
1250 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1251
1252         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1253
1254         * fns.c (Qideographic_structure): New variable.
1255         (Qkeyword_char): New variable.
1256         (ids_format_unit): New function.
1257         (Fideographic_structure_to_ids): New function.
1258         (syms_of_fns): Add new symbols `ideographic-structure' and
1259         `:char'; add new builtin function `ideographic-structure-to-ids'.
1260
1261         * data.c (Fchar_ref_p): New function.
1262         (syms_of_data): Add new builtin function `char-ref-p'.
1263
1264         * chartab.h: Add an EXFUN for `Ffind_char'.
1265
1266 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1267
1268         * text-coding.c (Vcharacter_composition_table): Deleted.
1269         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1270         in every UTF-2000.
1271
1272         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1273         UTF-2000.
1274         (Vcharacter_composition_table): Deleted.
1275         (Fget_composite_char): Use the implementation for external-DB
1276         support in every UTF-2000.
1277         (Fput_char_attribute): Likewise.
1278         (char_attribute_system_db_file): Don't define if external-DB
1279         feature is not available.
1280         (Fsave_char_attribute_table): Likewise.
1281         (Fmount_char_attribute_table): Likewise.
1282         (Fclose_char_attribute_table): Likewise.
1283         (Freset_char_attribute_table): Likewise.
1284         (Fload_char_attribute_table): Likewise.
1285         (syms_of_chartab): Don't define `save-char-attribute-table',
1286         `mount-char-attribute-table', `reset-char-attribute-table',
1287         `close-char-attribute-table' and `load-char-attribute-table' if
1288         external-DB feature is not available.
1289         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1290
1291 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1292
1293         * text-coding.c (Qcomposition): Add extern if external-DB feature
1294         is supported.
1295         (Vcharacter_composition_table): Don't add extern if external-DB
1296         feature is supported.
1297         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1298         character composition rule if external-DB feature is supported.
1299
1300         * chartab.c (Vcharacter_composition_table): Don't define if
1301         external-DB feature is supported.
1302         (Qcomposition): New variable.
1303         (Fget_composite_char): New implementation for external-DB support.
1304         (Fput_char_attribute): Use `composition' property of each
1305         character instead of `Vcharacter_composition_table' to store
1306         character-composition rules if external-DB feature is supported.
1307         (syms_of_chartab): Add new symbol `composition'.
1308         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1309         external-DB feature is supported.
1310
1311 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1312
1313         * chartab.c (Vchar_db_stingy_mode): New variable.
1314         (load_char_attribute_maybe): Close database if
1315         Vchar_db_stingy_mode is not NIL.
1316         (Fload_char_attribute_table_map_function): Use
1317         `get_char_id_table_0' instead of `get_char_id_table'.
1318         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1319
1320         * chartab.h (get_char_id_table_0): New inline function.
1321         (get_char_id_table): Use `get_char_id_table_0'.
1322
1323 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1324
1325         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1326         and `COMPOSE_ADD_CHAR'.
1327         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1328
1329 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1330
1331         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1332         instead of `DECODE_ADD_UCS_CHAR'.
1333         (COMPOSE_ADD_CHAR): Likewise.
1334
1335 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1336
1337         * text-coding.c (decode_flush_er_chars): New inline function.
1338         (decode_add_er_char): New function.
1339         (decode_coding_utf8): Use `decode_flush_er_chars' and
1340         `decode_add_er_char'.
1341
1342 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1343
1344         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1345         done before `decode_output_utf8_partial_char'.
1346
1347         * mule-charset.c (complex_vars_of_mule_charset): Specify
1348         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1349         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1350
1351 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1352
1353         * mule-charset.c (decode_defined_char): New function; search
1354         mother.
1355         (decode_builtin_char): Don't search mother if
1356         XCHARSET_MAX_CODE(charset) == 0.
1357         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1358         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1359         (Fdecode_char): Use `decode_defined_char' instead of
1360         `DECODE_DEFINED_CHAR'.
1361         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1362         mother of `Vcharset_ucs_jis'.
1363
1364         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1365         instead of `DECODE_DEFINED_CHAR'.
1366
1367         * char-ucs.h (decode_defined_char): Renamed from
1368         `DECODE_DEFINED_CHAR'; changed to normal function.
1369         (DECODE_CHAR): Use `decode_defined_char' instead of
1370         `DECODE_DEFINED_CHAR'.
1371
1372         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1373
1374 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1375
1376         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1377
1378         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1379         variable.
1380         (Quse_entity_reference): New variable.
1381         (Qd): New variable.
1382         (Qx): New variable.
1383         (QX): New variable.
1384         (coding_system_description): Add description for
1385         `ccs_priority_list'.
1386         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1387         (allocate_coding_system): Initialize `ccs_priority_list' in
1388         UTF-2000.
1389         (Fmake_coding_system): Add description about
1390         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1391         (codesys).
1392         (Fcoding_system_property): Accept `disable-composition' and
1393         `use-entity-reference' in UTF-2000.
1394         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1395         in UTF-2000.
1396         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1397         (decode_coding_utf8): Decode entity-reference if
1398         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1399         (char_encode_utf8): Encode non-Unicode characters as
1400         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1401         (str->codesys).
1402         (syms_of_file_coding): Add new symbols `use-entity-reference',
1403         `d', `x', `X'.
1404         (vars_of_file_coding): Add new variable
1405         `coded-charset-entity-reference-alist'.
1406         (complex_vars_of_file_coding): Declare `disable-composition' and
1407         `use-entity-reference' to be coding-system-properties in UTF-2000.
1408
1409         * file-coding.h (struct Lisp_Coding_System): Add new member
1410         `use_entity_reference' and `ccs_priority_list'.
1411         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1412         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1413         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1414
1415 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1416
1417         * chartab.c (save_uint8_byte_table): Don't clear the table.
1418         (save_uint16_byte_table): Likewise.
1419         (save_byte_table): Likewise.
1420         (Fmount_char_attribute_table): New function.
1421         (syms_of_chartab): Add new builtin function
1422         `mount-char-attribute-table'.
1423
1424 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1425
1426         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1427         "w+" mode.
1428         (load_char_decoding_entry_maybe): Open database as read-only mode.
1429
1430         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1431         open database as "w+" mode.
1432         (load_char_attribute_maybe): Open database as read-only mode.
1433         (Fload_char_attribute_table): Likewise.
1434
1435 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1436
1437         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1438         (char_table_description): Delete member `db_file'.
1439         (Fmake_char_table): Don't refer `ct->db_file'.
1440         (Fcopy_char_table): Likewise.
1441         (Fsave_char_attribute_table): Likewise.
1442         (Fclose_char_attribute_table): Likewise.
1443         (Freset_char_attribute_table): Likewise.
1444         (load_char_attribute_maybe): Likewise.
1445         (Fload_char_attribute_table): Likewise.
1446
1447         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1448
1449 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1450
1451         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1452         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1453         `ct->db' is living.
1454         (load_char_attribute_maybe): Likewise.
1455         (Fload_char_attribute_table): Likewise.
1456
1457 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1458
1459         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1460         `ct->db_file' unconditionally.
1461
1462 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1463
1464         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1465         UTF-2000.
1466         (char_table_description): Add description for `db_file' and `db'
1467         in UTF-2000.
1468         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1469         UTF-2000.
1470         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1471         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1472         (Fclose_char_attribute_table): New function.
1473         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1474         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1475         and `cit->db'.
1476         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1477         (syms_of_chartab): Add new builtin function
1478         `Fclose_char_attribute_table'.
1479
1480 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1481
1482         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1483         `db' in UTF-2000.
1484         (load_char_attribute_maybe): Change interface.
1485         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1486
1487 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1488
1489         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1490
1491 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1492
1493         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1494         instead of `DECODE_CHAR' for mother; don't use special code for
1495         chinese-big5 to use code space of chinese-big5-1 and
1496         chinese-big5-2.
1497         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1498         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1499
1500         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1501         (MAX_CHAR_BIG5_CDP): Revival.
1502
1503 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1504
1505         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1506         the XLFD registry-encoding name of `chinese-big5'.
1507
1508 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1509
1510         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1511         (Qchinese_big5_cdp): Deleted.
1512         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1513         (complex_vars_of_mule_charset): Delete coded-charset
1514         `chinese-big5-cdp'.
1515
1516         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1517         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1518         `CHARSET_ID_OFFSET - n' for private CCS.
1519         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1520         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1521         of `MIN_LEADING_BYTE'.
1522         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1523         `(CHARSET_ID_OFFSET - 97)'.
1524         (MIN_CHAR_BIG5_CDP): Deleted.
1525         (MAX_CHAR_BIG5_CDP): Deleted.
1526
1527 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1528
1529         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1530
1531 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1532
1533         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1534         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1535         chartab.c].
1536
1537         * chartab.c (Vutf_2000_version): Moved to mule.c.
1538         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1539
1540 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1541
1542         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1543         when HAVE_CHISE_CLIENT is not defined.
1544
1545         * mule.c (vars_of_mule): Provide feature `chise' when
1546         HAVE_CHISE_CLIENT is defined.
1547
1548 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1549
1550         * config.h.in (UTF2000): Add comment.
1551         (HAVE_CHISE_CLIENT): New macro.
1552
1553 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1554
1555         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1556         CONSP.
1557         (Fput_char_attribute): Likewise.
1558         (char_attribute_system_db_file): Encode file-name of attribute.
1559         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1560         the initial value.
1561
1562 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1563
1564         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1565         (Fsave_charset_mapping_table): Use
1566         `char_attribute_system_db_file'.
1567         (load_char_decoding_entry_maybe): Likewise.
1568
1569         * chartab.h (Qsystem_char_id): New external variable.
1570         (char_attribute_system_db_file): New prototype.
1571
1572         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1573         (char_attribute_system_db_file): New function.
1574         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1575         (Freset_char_attribute_table): Likewise.
1576         (load_char_attribute_maybe): Likewise.
1577         (Fload_char_attribute_table): Likewise.
1578         (syms_of_chartab): Add new symbol `system-char-id'.
1579
1580 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1581
1582         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1583         `XCHARSET_GRAPHIC(ccs)'.
1584
1585 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1586
1587         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1588
1589 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1590
1591         * chartab.c (Q_ucs_variants): New variable.
1592         (syms_of_chartab): Add new symbol `->ucs-variants'.
1593         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1594         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1595         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1596
1597         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1598
1599         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1600         `HAVE_DATABASE' is defined.
1601         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1602         `HAVE_DATABASE' is defined.
1603
1604 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1605
1606         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1607         attribute-table.
1608         (Freset_char_attribute_table): New function.
1609         (syms_of_chartab): Add new builtin function
1610         `reset-char-attribute-table'.
1611
1612 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1613
1614         * chartab.c (load_char_attribute_maybe): Don't make directories.
1615
1616 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1617
1618         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1619
1620         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1621         for decoding-table.
1622
1623 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1624
1625         * mule-charset.c (Fsave_charset_mapping_table): Use
1626         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1627
1628         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1629         instead of `XCHARSET_CHARS'.
1630
1631 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1632
1633         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1634         (XCHARSET_BYTE_SIZE): Likewise.
1635
1636         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1637         mule-charset.c].
1638         (XCHARSET_BYTE_SIZE): Likewise.
1639
1640 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1641
1642         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1643         data-directory to store database.
1644         (Fsave_char_attribute_table): Likewise.
1645         (load_char_attribute_maybe): Likewise.
1646         (Fload_char_attribute_table): Likewise.
1647
1648 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1649
1650         * mule-charset.c (Fsave_charset_mapping_table): New function.
1651         (syms_of_mule_charset): Add new builtin function
1652         `save-charset-mapping-table'.
1653
1654 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1655
1656         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1657         (get_ccs_octet_table): New inline function.
1658         (put_ccs_octet_table): Likewise.
1659         (decoding_table_put_char): Use `get_ccs_octet_table' and
1660         `put_ccs_octet_table'.
1661         (decoding_table_remove_char): Use `decoding_table_put_char'.
1662         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1663
1664         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1665         into encoding_table.
1666         (make_charset): Use Qunbound instead Qnil as initial value of
1667         decoding_table.
1668
1669 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1670
1671         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1672         element is Qunloaded.
1673         (map_over_uint16_byte_table): Likewise.
1674         (map_over_byte_table): Likewise.
1675         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1676         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1677         database support, load encoding-table of the specified
1678         coded-charset if it is not loaded yet.
1679         (save_uint8_byte_table): New function of UTF-2000 with external
1680         database support.
1681         (save_uint16_byte_table): Likewise.
1682         (save_byte_table): Likewise.
1683         (Fput_char_attribute): Don't store value into external database
1684         even if the external database feature is supported in UTF-2000;
1685         set `attribute' as name of char-table if the external database
1686         feature is supported.
1687         (Fsave_char_attribute_table): New function in UTF-2000.
1688         (syms_of_chartab): Add new builtin function
1689         `save-char-attribute-table' in UTF-2000.
1690
1691 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1692
1693         * chartab.c (char_attribute_table_to_put): New variable in
1694         UTF-2000.
1695         (Qput_char_table_map_function): Likewise.
1696         (value_to_put): Likewise.
1697         (Fput_char_table_map_function): New function in UTF-2000.
1698         (put_char_table): Use `Fmap_char_attribute' for
1699         CHARTAB_RANGE_CHARSET in UTF-2000.
1700         (Fput_char_attribute): Store symbol instead of string in
1701         `XCHAR_TABLE_NAME (table)'.
1702         (load_char_attribute_maybe): Likewise.
1703         (syms_of_chartab): Add new symbol/function
1704         `put-char-table-map-function'.
1705
1706 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1707
1708         * database.h: Add new EXFUN for `Fmap_database'.
1709
1710         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1711         (syms_of_database): Likewise.
1712
1713         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1714         UTF-2000.
1715         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1716         (XCHAR_TABLE_UNLOADED): Likewise.
1717
1718         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1719         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1720         HAVE_DATABASE is defined.
1721         (char_attribute_table_to_load): New variable of UTF-2000 with
1722         external database support.
1723         (Qload_char_attribute_table_map_function): Likewise.
1724         (Fload_char_attribute_table_map_function): New function of
1725         UTF-2000 with external database support.
1726         (Fload_char_attribute_table): New function of UTF-2000.
1727         (Fmap_char_attribute): Call Fload_char_attribute_table if
1728         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1729         (syms_of_chartab): Add new symbol and function
1730         `load-char-attribute-table-map-function' in UTF-2000 with external
1731         database support; add new function `load-char-attribute-table' in
1732         UTF-2000.
1733
1734 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1735
1736         * chartab.h (load_char_attribute_maybe): New prototype for
1737         UTF-2000 with DATABASE support.
1738         (get_char_id_table): Use `load_char_attribute_maybe' if
1739         HAVE_DATABASE is defined.
1740
1741         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1742         with DATABASE support.
1743
1744 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1745
1746         * chartab.c (Fput_char_attribute): Use S-expression as key of
1747         external database.
1748
1749         * chartab.h (get_char_id_table): Use S-expression as key of
1750         external database.
1751
1752 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1753
1754         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1755         if an element is not loaded, load the corresponding attributes
1756         from an external database.
1757         (map_over_uint16_byte_table): Likewise.
1758         (map_over_byte_table): Likewise.
1759         (map_char_table): Modify for `map_over_uint8_byte_table',
1760         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1761         element is not loaded, load the corresponding attributes from an
1762         external database.
1763         (Fput_char_attribute): Change initial values to Qunloaded.
1764
1765         * chartab.h (get_char_id_table): If a character attribute is not
1766         loaded and the attribute value is not found in an external
1767         database, store Qunbound as the attribute value.
1768
1769 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1770
1771         * chartab.c (BT_UINT8_unloaded): New macro.
1772         (UINT8_VALUE_P): Accept Qunloaded.
1773         (UINT8_ENCODE): Likewise.
1774         (UINT8_DECODE): Likewise.
1775         (BT_UINT16_unloaded): New macro.
1776         (UINT16_VALUE_P): Accept Qunloaded.
1777         (UINT16_ENCODE): Likewise.
1778         (UINT16_DECODE): Likewise.
1779         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1780         BT_UINT16_unloaded.
1781         (mark_char_table): Mark `ct->name' in UTF-2000.
1782         (char_table_description): Add `name' in UTF-2000.
1783         (Fmake_char_table): Initialize `ct->name'.
1784         (Fcopy_char_table): Copy `ct->name'.
1785         (Fput_char_attribute): Store value into an external database if
1786         HAVE_DATABASE is defined.
1787
1788         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1789         UTF-2000.
1790         (CHAR_TABLE_NAME): New macro in UTF-2000.
1791         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1792         (get_char_id_table): Try to read an external database if Qunloaded
1793         is stored in a table.
1794
1795         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1796         Qunloaded.
1797
1798 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1799
1800         * database.h: Add EXFUN definitions for Fopen_database,
1801         Fput_database, Fget_database and Fclose_database.
1802
1803         * data.c (Qunloaded): New variable in UTF-2000.
1804
1805         * lisp.h (Qunloaded): New variable in UTF-2000.
1806
1807 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1808
1809         * mule-charset.c (put_char_ccs_code_point): Modify for
1810         `decoding_table_remove_char' and `decoding_table_put_char'.
1811         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1812
1813         * char-ucs.h (decoding_table_remove_char): Change arguments to
1814         hide decoding_table vector.
1815         (decoding_table_put_char): Likewise.
1816
1817 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1818
1819         * mule-charset.c (decoding_table_remove_char): Moved to
1820         char-ucs.h.
1821         (decoding_table_put_char): Likewise.
1822
1823         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1824         from mule-charset.c].
1825         (decoding_table_remove_char): New inline function [moved from
1826         mule-charset.c].
1827         (decoding_table_put_char): Likewise.
1828
1829 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1830
1831         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1832         extension.
1833
1834 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1835
1836         * mule-charset.c (decode_builtin_char): Support mother charsets.
1837
1838 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1839
1840         * mule-charset.c (Q94x94x60): New variable.
1841         (charset_code_point): Support conversion `94x94x60'.
1842         (Fmake_charset): Likewise.
1843         (syms_of_mule_charset): Add new symbol `94x94x60'.
1844
1845         * char-ucs.h (CONVERSION_94x94x60): New macro.
1846
1847 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1848
1849         * mule-charset.c (charset_code_point): Unify code about
1850         `code-offset'.
1851
1852 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1853
1854         * mule-charset.c (charset_code_point): Merge code about builtin
1855         characters into code about mother charsets; don't use
1856         `range_charset_code_point'.
1857         (range_charset_code_point): Deleted.
1858
1859 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1860
1861         * mule-charset.c (Qcode_offset): New variable.
1862         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1863         `max-code'; accept new property `code-offset'.
1864         (syms_of_mule_charset): Add new symbol `code-offset'.
1865
1866 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1867
1868         * mule-charset.c (range_charset_code_point): Fixed.
1869
1870 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1871
1872         * mule-charset.c (decode_builtin_char): Change semantics of
1873         code-offset of coded-charset.
1874         (charset_code_point): Likewise.
1875         (range_charset_code_point): Likewise.
1876         (complex_vars_of_mule_charset): Modify for the change.
1877
1878 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1879
1880         * mule-charset.c (Fencode_char): Reverse arguments.
1881
1882         * mule-charset.c (charset_code_point): Fixed.
1883
1884 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1885
1886         * mule-charset.c (Vcharset_mojikyo): Deleted.
1887         (Vcharset_mojikyo_2022_1): Deleted.
1888         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1889         (Qmin_code): New variable in UTF-2000.
1890         (Qmax_code): Likewise.
1891         (Qmother): Likewise.
1892         (Qconversion): Likewise.
1893         (Q94x60): Likewise.
1894         (Qmojikyo): Deleted.
1895         (Qmojikyo_2022_1): Deleted.
1896         (Qmojikyo_pj_{1..22}): Deleted.
1897         (mark_charset): Mark `cs->mother'.
1898         (charset_description): Add description for `mother'.
1899         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1900         new arguments `mother' and `conversion'; use
1901         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1902         (charset_code_point): Moved from char-ucs.h; support `mother'
1903         charset feature.
1904         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1905         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1906         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1907         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1908         allow 2 as the value of `graphic' in UTF-2000; add new properties
1909         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1910         require `final' in UTF-2000; modify for `make_charset'.
1911         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1912         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1913         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1914         (Fencode_char): New function.
1915         (syms_of_mule_charset): Add new builtin function `encode-char' in
1916         UTF-2000; add new symbols `min-code', `max-code', `mother',
1917         `conversion' and `94x60'; delete symbols `mojikyo',
1918         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1919         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1920         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1921         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1922
1923         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1924         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1925
1926         * char-ucs.h (Vcharset_mojikyo): Deleted.
1927         (Vcharset_mojikyo_2022_1): Deleted.
1928         (LEADING_BYTE_MOJIKYO): Deleted.
1929         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1930         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1931         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1932         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1933         add new member `mother'; add new member `conversion'.
1934         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1935         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1936         (CHARSET_MOTHER): New macro.
1937         (CHARSET_CONVERSION): New macro.
1938         (CONVERSION_IDENTICAL): New macro.
1939         (CONVERSION_94x60): New macro.
1940         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1941         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1942         (XCHARSET_MOTHER): New macro.
1943         (XCHARSET_CONVERSION): New macro.
1944         (MIN_CHAR_MOJIKYO): Deleted.
1945         (MAX_CHAR_MOJIKYO): Deleted.
1946         (DECODE_MOJIKYO_2022): Deleted.
1947         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1948         (charset_code_point): Changed to non-inline function.
1949         (encode_char_1): Use `charset_code_point'.
1950         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1951
1952 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1953
1954         * lread.c (read_compiled_function): Fix prototype.
1955         (read_vector): Likewise.
1956
1957 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1958
1959         * lrecord.h (struct lrecord_header): Delete `older'.
1960         (set_lheader_implementation): Delete code for `older'.
1961         (set_lheader_older_implementation): Deleted.
1962         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1963         (OLDER_RECORD_P): Deleted.
1964         (OLDER_RECORD_HEADER_P): Deleted.
1965         (alloc_older_lcrecord): Deleted.
1966         (alloc_older_lcrecord_type): Deleted.
1967
1968         * alloc.c (all_older_lcrecords): Deleted.
1969         (alloc_older_lcrecord): Deleted.
1970         (disksave_object_finalization_1): Delete code for older objects.
1971         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1972         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1973
1974 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1975
1976         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1977         instead of `make_older_vector'.
1978         (put_char_ccs_code_point): Likewise.
1979         (mark_charset): Mark `cs->decoding_table'.
1980         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1981
1982         * lisp.h (make_older_vector): Deleted.
1983         (make_vector_newer): Deleted.
1984
1985         * config.h.in (HAVE_GGC): Deleted.
1986
1987         * alloc.c (make_older_vector): Deleted.
1988         (make_vector_newer_1): Deleted.
1989         (make_vector_newer): Deleted.
1990
1991 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1992
1993         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1994         (Qideograph_daikanwa_2): New variable.
1995         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1996         (complex_vars_of_mule_charset): Add new coded-charset
1997         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1998         `LEADING_BYTE_DAIKANWA'.
1999
2000         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2001         (LEADING_BYTE_DAIKANWA_1): New macro.
2002         (LEADING_BYTE_DAIKANWA_2): New macro.
2003         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2004
2005 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2006
2007         * mule-charset.c (complex_vars_of_mule_charset): Change
2008         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2009         the second revised version.
2010
2011 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2012
2013         * mule-charset.c (Vcharset_ucs_smp): New variable.
2014         (Vcharset_ucs_sip): New variable.
2015         (Qucs_smp): New variable.
2016         (Qucs_sip): New variable.
2017         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2018         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2019         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2020         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2021         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2022         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2023
2024         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2025         (LEADING_BYTE_UCS_SIP): New macro.
2026         (MIN_CHAR_SMP): New macro.
2027         (MAX_CHAR_SMP): New macro.
2028         (MIN_CHAR_SIP): New macro.
2029         (MAX_CHAR_SIP): New macro.
2030
2031 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2032
2033         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2034         utf-2000.
2035
2036 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2037
2038         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2039         value; don't store value into `encoding_table' of `Lisp_Charset'.
2040         (mark_charset): `encoding_table' was deleted.
2041         (charset_description): Likewise.
2042         (make_charset): Likewise.
2043         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2044         `put_char_ccs_code_point'.
2045
2046         * chartab.h (Fput_char_attribute): New EXFUN.
2047
2048         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2049         is unified with normal symbol space.
2050         (Fget_char_attribute): Likewise.
2051         (Fput_char_attribute): Likewise; behavior of
2052         `put_char_ccs_code_point' is changed.
2053
2054         * char-ucs.h: Include "elhash.h".
2055         (Vchar_attribute_hash_table): New external variable.
2056         (struct Lisp_Charset): Delete `encoding_table'.
2057         (CHARSET_ENCODING_TABLE): New implementation; refer
2058         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2059         `Lisp_Charset'.
2060
2061 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2062
2063         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2064         (cs) == 0.
2065
2066 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2067
2068         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2069         `chinese-big5'.
2070
2071 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2072
2073         * chartab.c (uint8_byte_table_description): New constant.
2074         (uint8-byte-table): Use `uint8_byte_table_description'.
2075         (uint16_byte_table_description): New constant.
2076         (uint16-byte-table): Use `uint16_byte_table_description'.
2077
2078 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2079
2080         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2081         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2082
2083 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2084
2085         * mule-charset.c (Vcharset_ucs_ks): New variable.
2086         (Qucs_ks): New variable.
2087         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2088         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2089
2090         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2091
2092 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2093
2094         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2095         (Fdecode_char): Likewise.
2096
2097         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2098         chartab.h.
2099         (Fdefine_char): Modify for Fdecode_char.
2100         (Ffind_char): Likewise.
2101
2102         * mule-charset.c (Fdecode_char): Add new optional argument
2103         `defined-only'.
2104         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2105
2106 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2107
2108         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2109         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2110         (allocate_coding_system): Initialize initial-charsets of
2111         CODESYS_BIG5 in XEmacs UTF-2000.
2112         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2113         CODESYS_BIG5 in XEmacs UTF-2000.
2114         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2115         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2116
2117         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2118         variables.
2119         (Qideograph_hanziku_{1 .. 12}): Likewise.
2120         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2121         .. 12}'.
2122         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2123         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2124         `ideograph-hanziku-{1 .. 12}'.
2125
2126         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2127         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2128         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2129         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2130         (DECODE_DEFINED_CHAR): New inline function.
2131         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2132
2133 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2134
2135         * mule-charset.c (Vcharset_china3_jef): Renamed from
2136         `Vcharset_japanese_jef_china3'.
2137         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2138         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2139         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2140         (syms_of_mule_charset): Rename `china3-jef' from
2141         `japanese-jef-china3'.
2142         (complex_vars_of_mule_charset): Likewise; rename
2143         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2144
2145         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2146         `LEADING_BYTE_JEF_CHINA3'.
2147         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2148         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2149
2150 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2151
2152         * mule-charset.c (encode_builtin_char_1): Comment out special code
2153         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2154
2155         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2156         (MAX_CHAR_MOJIKYO_0): Comment out.
2157         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2158         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2159         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2160         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2161
2162 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2163
2164         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2165         (Qideograph_cbeta): New variable.
2166         (encode_builtin_char_1): Comment out special code for
2167         coded-charset `mojikyo' and `japanese-jef-china3'.
2168         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2169         (complex_vars_of_mule_charset): Add new coded-charset
2170         `ideograph-cbeta'.
2171
2172         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2173         (MIN_CHAR_CBETA): New macro.
2174         (MAX_CHAR_CBETA): New macro.
2175
2176 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2177
2178         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2179         (LEADING_BYTE_JEF_CHINA3): New macro.
2180         (MIN_CHAR_JEF_CHINA3): New macro.
2181         (MAX_CHAR_JEF_CHINA3): Likewise.
2182         (DECODE_CHAR): Fixed.
2183
2184 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2185
2186         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2187         (Qjapanese_jef_china3): New variable.
2188         (encode_builtin_char_1): Support `japanese-jef-china3'.
2189         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2190         (complex_vars_of_mule_charset): Add new coded-charset
2191         `japanese-jef-china3'.
2192
2193 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2194
2195         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2196         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2197         94^4, 96^3, 96^4, 128^n and 256^n set.
2198         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2199         (map_char_table): Likewise.
2200
2201 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2202
2203         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2204         UTF-2000.
2205
2206 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2207
2208         * chartab.h (get_char_id_table): New inline function.
2209
2210         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2211         function.
2212
2213 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2214
2215         * chartab.h (decode_char_table_range): New prototype in XEmacs
2216         UTF-2000.
2217         (put_char_id_table): New inline function in XEmacs UTF-2000.
2218
2219         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2220         function.
2221         (decode_char_table_range): Delete static declaration in XEmacs
2222         UTF-2000.
2223
2224 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2225
2226         * chartab.c (put_char_id_table): Use `put_char_table'.
2227
2228 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2229
2230         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2231         (map_over_uint16_byte_table): Likewise.
2232         (map_over_byte_table): Likewise.
2233         (map_char_table): Modify for `map_over_uint8_byte_table',
2234         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2235         UTF-2000.
2236
2237 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2238
2239         * chartab.c (struct map_char_table_for_charset_arg): New
2240         structure.
2241         (map_char_table_for_charset_fun): New function.
2242         (map_char_table): Use `map_char_table' for encoding_table of
2243         `range->charset'.
2244
2245 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2246
2247         * chartab.c (map_char_table): Check a character is found in
2248         range->charset instead of non default value is defined in
2249         char-table when range is CHARTAB_RANGE_ROW.
2250
2251 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2252
2253         * chartab.c (map_char_id_table): Deleted.
2254         (Fmap_char_attribute): Use `map_char_table' instead of
2255         `map_char_id_table'.
2256
2257 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2258
2259         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2260         UTF-2000.
2261         (update_syntax_table): Deleted in XEmacs UTF-2000.
2262
2263         * syntax.c (find_defun_start): Use `syntax_table' instead of
2264         `mirror_syntax_table' in XEmacs UTF-2000.
2265         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2266         UTF-2000.
2267         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2268         XEmacs UTF-2000.
2269         (Fmatching_paren): Likewise.
2270         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2271         in XEmacs UTF-2000.
2272         (find_start_of_comment): Likewise.
2273         (find_end_of_comment): Likewise.
2274         (Fforward_comment): Likewise.
2275         (scan_lists): Likewise.
2276         (char_quoted): Likewise.
2277         (Fbackward_prefix_chars): Likewise.
2278         (scan_sexps_forward): Likewise.
2279         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2280         (update_syntax_table): Likewise.
2281
2282         * search.c (skip_chars): Use `syntax_table' instead of
2283         `mirror_syntax_table' in XEmacs UTF-2000.
2284         (wordify): Likewise.
2285         (Freplace_match): Likewise.
2286
2287         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2288         `mirror_syntax_table' in XEmacs UTF-2000.
2289         (WORDCHAR_P_UNSAFE): Likewise.
2290         (re_match_2_internal): Likewise.
2291
2292         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2293         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2294
2295         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2296         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2297
2298         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2299         XEmacs UTF-2000.
2300
2301         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2302         UTF-2000.
2303         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2304         (char_table_description): Delete `mirror_table' in XEmacs
2305         UTF-2000.
2306         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2307         UTF-2000.
2308         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2309         (Fcopy_char_table): Likewise.
2310         (put_char_table): Don't call `update_syntax_table' in XEmacs
2311         UTF-2000.
2312
2313         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2314         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2315         (casify_region_internal): Likewise.
2316
2317         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2318
2319         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2320         `mirror_syntax_table' in XEmacs UTF-2000.
2321
2322         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2323         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2324         (Fexpand_abbrev): Likewise.
2325
2326 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2327
2328         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2329
2330 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2331
2332         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2333         (map_over_uint16_byte_table): Likewise.
2334         (map_over_byte_table): Likewise.
2335         (get_char_id_table): Refer `cit->default_value'.
2336         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2337         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2338         of character-id ranges.
2339         (mark_char_table): Mark `ct->default_value'.
2340         (char_table_description): Add `default_value'.
2341         (fill_char_table): Use `default_value'.
2342         (decode_char_table_range): Decode `nil' as
2343         `CHARTAB_RANGE_DEFAULT'.
2344         (get_char_id_table): Refer `cit->default_value'.
2345         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2346         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2347         temporary hack; check value of char-table is bound or not.
2348         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2349
2350         * chartab.h (struct Lisp_Char_Table): Add new member
2351         `default_value' in XEmacs UTF-2000.
2352         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2353         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2354         UTF-2000.
2355
2356 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2357
2358         * chartab.h (Lisp_Char_ID_Table): Deleted.
2359
2360         * chartab.c (char_table_description): Fix typo.
2361         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2362         `Lisp_Char_ID_Table'.
2363
2364 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2365
2366         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2367         `CHAR_ID_TABLE_P'.
2368
2369         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2370         `CHAR_ID_TABLE_P'.
2371
2372         * chartab.h (XCHAR_ID_TABLE): Deleted.
2373         (XSETCHAR_ID_TABLE): Deleted.
2374         (CHAR_ID_TABLE_P): Deleted.
2375
2376         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2377         `CHAR_ID_TABLE_P'.
2378         (Fget_composite_char): Likewise.
2379         (put_char_table): Likewise.
2380         (add_char_attribute_alist_mapper): Fixed.
2381         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2382         `CHAR_ID_TABLE_P'.
2383         (Fget_char_attribute): Likewise.
2384         (Fget_char_attribute): Likewise.
2385         (Fmap_char_attribute): Likewise.
2386
2387         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2388         `CHAR_ID_TABLE_P'.
2389         (encode_char_1): Likewise.
2390
2391 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2392
2393         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2394         `XCHAR_ID_TABLE'.
2395
2396         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2397         instead of `XCHAR_ID_TABLE'.
2398         (remove_char_ccs): Likewise.
2399
2400         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2401         `XCHAR_ID_TABLE'.
2402         (Fget_composite_char): Likewise.
2403         (Fchar_variants): Likewise.
2404         (put_char_table): Likewise.
2405         (add_char_attribute_alist_mapper): Likewise.
2406         (Fchar_attribute_alist): Likewise.
2407         (Fget_char_attribute): Likewise.
2408         (Fput_char_attribute): Likewise.
2409         (Fmap_char_attribute): Likewise.
2410         (Fmap_char_attribute): Likewise.
2411
2412         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2413         `XCHAR_ID_TABLE'.
2414         (encode_char_1): Likewise.
2415
2416 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2417
2418         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2419         `Lisp_Char_ID_Table'.
2420         (mark_char_id_table): Deleted.
2421         (print_char_id_table): Likewise.
2422         (char_id_table_equal): Likewise.
2423         (char_id_table_hash): Likewise.
2424         (char_id_table_description): Likewise.
2425         (char_id_table): Likewise.
2426         (make_char_id_table): Use `Fmake_char_table' and
2427         `fill_char_table'.
2428         (get_char_id_table): Use `Lisp_Char_Table' instead of
2429         `Lisp_Char_ID_Table'.
2430         (put_char_id_table): Likewise.
2431         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2432         `XCHAR_ID_TABLE'.
2433         (Fremove_char_attribute): Likewise.
2434         (syms_of_chartab): Don't define type `char-id-table'.
2435
2436         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2437         (char_id_table): Likewise.
2438         (GC_CHAR_ID_TABLE_P): Likewise.
2439         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2440         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2441         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2442         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2443         (get_char_id_table): Use `Lisp_Char_Table' instead of
2444         `Lisp_Char_ID_Table'.
2445         (put_char_id_table_0): Likewise.
2446         (put_char_id_table): Likewise.
2447
2448 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2449
2450         * chartab.h: Lisp_Byte_Table related codes are moved from
2451         chartab.h.
2452
2453         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2454
2455 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2456
2457         * chartab.h: Don't include "chartab.h".
2458         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2459         (Lisp_Char_ID_Table): Likewise.
2460         (char_id_table): Likewise.
2461         (XCHAR_ID_TABLE): Likewise.
2462         (XSETCHAR_ID_TABLE): Likewise.
2463         (CHAR_ID_TABLE_P): Likewise.
2464         (GC_CHAR_ID_TABLE_P): Likewise.
2465         (get_char_id_table): Likewise.
2466
2467         * char-ucs.h: Include "chartab.h".
2468         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2469         (Lisp_Char_ID_Table): Likewise.
2470         (char_id_table): Likewise.
2471         (XCHAR_ID_TABLE): Likewise.
2472         (XSETCHAR_ID_TABLE): Likewise.
2473         (CHAR_ID_TABLE_P): Likewise.
2474         (GC_CHAR_ID_TABLE_P): Likewise.
2475         (get_char_id_table): Likewise.
2476
2477 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2478
2479         * chartab.c (copy_uint8_byte_table): New function.
2480         (copy_uint16_byte_table): New function.
2481         (copy_byte_table): New function.
2482         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2483         characters to call.
2484         (map_over_uint16_byte_table): Likewise.
2485         (map_over_byte_table): Likewise.
2486         (get_byte_table): Move prototype to chartab.h.
2487         (put_byte_table): Likewise.
2488         (put_char_id_table_0): Moved to chartab.h.
2489         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2490         (char_table_entry_equal): Likewise.
2491         (char_table_entry_hash): Likewise.
2492         (char_table_entry_description): Likewise.
2493         (char_table_entry): Likewise.
2494         (make_char_table_entry): Likewise.
2495         (copy_char_table_entry): Likewise.
2496         (get_non_ascii_char_table_value): Likewise.
2497         (map_over_charset_ascii): Likewise.
2498         (map_over_charset_control_1): Likewise.
2499         (map_over_charset_row): Likewise.
2500         (map_over_other_charset): Likewise.
2501         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2502         (print_char_table): Likewise.
2503         (char_table_equal): Likewise.
2504         (char_table_hash): Likewise.
2505         (char_table_description): Likewise.
2506         (fill_char_table): Likewise.
2507         (Fcopy_char_table): Likewise.
2508         (get_char_table): Likewise.
2509         (Fget_range_char_table): Likewise.
2510         (put_char_table): Likewise.
2511         (map_char_table): Likewise.
2512         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2513         UTF-2000.
2514
2515 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2516
2517         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2518         `Vauto_fill_chars' in XEmacs UTF-2000.
2519
2520         * chartab.h (get_byte_table): New prototype [moved from
2521         chartab.c].
2522         (put_byte_table): Likewise [moved from chartab.c].
2523         (put_char_id_table_0): New inline function [moved from chartab.c].
2524         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2525         (Lisp_Char_Table_Entry): Likewise.
2526         (char_table_entry): Likewise.
2527         (XCHAR_TABLE_ENTRY): Likewise.
2528         (XSETCHAR_TABLE_ENTRY): Likewise.
2529         (CHAR_TABLE_ENTRYP): Likewise.
2530         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2531         (NUM_ASCII_CHARS): Likewise.
2532         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2533         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2534
2535 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2536
2537         * chartab.c (get_char_id_table): Change interface.
2538         (put_char_id_table_0): New function.
2539         (put_char_id_table): Change interface; new implementation.
2540         (Fget_composite_char): Modify for interface change of
2541         `get_char_id_table'.
2542         (Fchar_variants): Likewise.
2543         (add_char_attribute_alist_mapper): Likewise.
2544         (Fchar_attribute_alist): Likewise.
2545         (Fget_char_attribute): Likewise.
2546         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2547         as same as character as the first argument like `put-char-table';
2548         modify for interface change of `put_char_id_table'.
2549         (Fremove_char_attribute): Modify for interface change of
2550         `put_char_id_table'.
2551
2552 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2553
2554         * text-coding.c: Sync up with XEmacs 21.2.41.
2555         (COMPOSE_ADD_CHAR): Modify for interface change of
2556         `get_char_id_table'.
2557
2558         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2559         change of `put_char_id_table'.
2560         (remove_char_ccs): Likewise.
2561
2562         * chartab.h (put_char_id_table): Change interface.
2563
2564         * char-ucs.h (get_char_id_table): Change interface.
2565         (charset_code_point): Modify for interface change of
2566         `get_char_id_table'.
2567         (encode_char_1): Likewise.
2568
2569 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2570
2571         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2572         argument `ccs'.
2573         (map_over_uint16_byte_table): Likewise.
2574         (map_over_byte_table): Likewise.
2575         (map_char_id_table): Add new argument `range' like
2576         `map_char_table'.
2577         (Fmap_char_attribute): Add new argument `range' like
2578         `Fmap_char_table'.
2579
2580 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2581
2582         * chartab.c (map_over_uint8_byte_table): Change interface of
2583         mapping function to use struct chartab_range instead of Emchar.
2584         (map_over_uint16_byte_table): Likewise.
2585         (map_over_byte_table): Likewise.
2586         (map_char_id_table): Likewise.
2587         (struct slow_map_char_id_table_arg): Deleted.
2588         (slow_map_char_id_table_fun): Deleted.
2589         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2590         function `slow_map_char_table_fun' instead of struct
2591         `slow_map_char_id_table_arg' and function
2592         `slow_map_char_id_table_fun'.
2593
2594 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2595
2596         * mule-charset.c: Move char-it-table related codes to chartab.c.
2597         (Vutf_2000_version): Moved to chartab.c.
2598         (Fdefine_char): Likewise.
2599         (Ffind_char): Likewise.
2600         (syms_of_mule_charset): Move types `uint8-byte-table',
2601         `uint16-byte-table', `byte-table' and `char-id-table' to
2602         chartab.c; move functions `char_attribute_list,
2603         `find_char_attribute_table, `char_attribute_alist,
2604         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2605         `map_char_attribute, `define_char, `find_char, `char_variants and
2606         `get_composite_char to chartab.c; move symbols `=>ucs',
2607         `->decomposition', `compat', `isolated', `initial', `medial',
2608         `final', `vertical', `noBreak', `fraction', `super', `sub',
2609         `circle', `square', `wide', `narrow', `small' and `font' to
2610         chartab.c.
2611         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2612         setting codes for `Vcharacter_composition_table' and
2613         `Vcharacter_variant_table' to chartab.c.
2614         (complex_vars_of_mule_charset): Move setting code for
2615         `Vchar_attribute_hash_table' to chartab.c.
2616
2617         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2618         (make_char_id_table): New prototype.
2619         (put_char_id_table): Likewise.
2620         (Fget_char_attribute): Likewise.
2621
2622         * chartab.c: Move char-id-table related code from mule-charset.c.
2623         (Vutf_2000_version): Moved from mule-charset.c.
2624
2625         * char-ucs.h (Qucs): New external variable.
2626         (put_char_ccs_code_point): New prototype.
2627         (remove_char_ccs): Likewise.
2628
2629 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2630
2631         * mule-charset.c (Vcharset_ucs_jis): New variable.
2632         (Qucs_jis): Likewise.
2633         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2634         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2635
2636         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2637
2638 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2639
2640         * mule-charset.c (map_over_uint8_byte_table): New function.
2641         (map_over_uint16_byte_table): Likewise.
2642         (map_over_byte_table): Likewise.
2643         (map_char_id_table): Likewise.
2644         (slow_map_char_id_table_fun): Likewise.
2645         (Fmap_char_attribute): Likewise.
2646         (syms_of_mule_charset): Add new function `map-char-attribute'.
2647
2648 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2649
2650         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2651         (syms_of_mule_charset): Add new function `find-char'.
2652
2653 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2654
2655         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2656         XEmacs UTF-2000.
2657         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2658         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2659         XEmacs UTF-2000.
2660         (complex_vars_of_mule_charset): Add new coded-charset
2661         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2662         `ideograph-gt-pj-*'.
2663
2664         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2665
2666 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2667
2668         * mule-charset.c (encode_builtin_char_1): Purge codes about
2669         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2670         {MIN|MAX}_CHAR_HEBREW.
2671         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2672         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2673
2674         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2675         (MAX_CHAR_GREEK): Purged.
2676         (MIN_CHAR_CYRILLIC): Purged.
2677         (MAX_CHAR_CYRILLIC): Purged.
2678         (MIN_CHAR_HEBREW): Commented out.
2679         (MAX_CHAR_HEBREW): Likewise.
2680
2681 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2682
2683         * mule-charset.c (Qto_ucs): New variable.
2684         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2685         (Fdefine_char): Likewise.
2686         (syms_of_mule_charset): Add new symbol `=>ucs'.
2687
2688 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2689
2690         * mule-charset.c (Fdecode_char): Fixed.
2691
2692 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2693
2694         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2695         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2696         "tcvn5712-1".
2697
2698 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2699
2700         * mule-charset.c (Vcharset_ucs_big5): New variable.
2701         (Qucs_big5): Likewise.
2702         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2703         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2704
2705         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2706
2707 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2708
2709         * mule-charset.c (decode_builtin_char): Check Big5 code range
2710         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2711
2712 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2713
2714         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2715         (Qchinese_gb12345): Likewise.
2716         (Fdecode_builtin_char): Fixed.
2717         (syms_of_mule_charset): Add `chinese-gb12345'.
2718         (complex_vars_of_mule_charset): Add coded-charset
2719         `chinese-gb12345'.
2720
2721         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2722         (LEADING_BYTE_CHINESE_GB12345): New macro.
2723
2724 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2725
2726         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2727         and `latin-viscii-upper' for `latin-viscii'.
2728
2729 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2730
2731         * mule-charset.c (Fdecode_builtin_char): Comment out
2732         regularization code for ISO-IR GR representation.
2733
2734 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2735
2736         * mule-charset.c (decode_builtin_char): New function; renamed from
2737         `make_builtin_char'; return -1 instead of signal.
2738         (Fdecode_builtin_char): Use `decode_builtin_char'.
2739
2740         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2741         `make_builtin_char'.
2742         (DECODE_CHAR): Use `decode_builtin_char' instead of
2743         `make_builtin_char'; use mapping table of `chinese-big5' for
2744         `chinese-big5-{1,2}'.
2745
2746 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2747
2748         * text-coding.c (char_encode_big5): New function.
2749         (char_finish_big5): Likewise.
2750         (reset_encoding_stream): Use `char_encode_big5' and
2751         `char_finish_big5' for CODESYS_BIG5.
2752         (mule_encode): Don't use `encode_coding_big5'.
2753         (encode_coding_big5): Deleted.
2754
2755 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2756
2757         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2758         0x81- in XEmacs UTF-2000.
2759         (detect_coding_big5): Likewise.
2760
2761 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2762
2763         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2764         generate character-id if the CCS property does not have
2765         corresponding predefined character.
2766         (make_builtin_char): Return -1 if corresponding predefined
2767         character is not found.
2768         (Fdecode_char): Return nil if corresponding character is not
2769         found.
2770         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2771         don't map to builtin ucs space.
2772
2773 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2774
2775         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2776         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2777
2778 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2779
2780         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2781         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2782         (Qideograph_gt): Likewise.
2783         (Qideograph_gt_pj_{1..11}): Likewise.
2784         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2785         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2786         `ideograph-gt-pj-11'.
2787         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2788         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2789         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2790
2791         * char-ucs.h (LEADING_BYTE_GT): New macro.
2792         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2793         (MIN_CHAR_GT): Likewise.
2794         (MAX_CHAR_GT): Likewise.
2795
2796 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2797
2798         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2799         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2800
2801         * doprnt.c (unsigned_int_converters): Add `c'.
2802         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2803
2804         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2805         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2806         `MIN_CHAR_MOJIKYO'.
2807         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2808         (MAX_CHAR_MOJIKYO_0): New macro.
2809         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2810
2811 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2812
2813         * mule-charset.c (Fdefine_char): Delete cemented out code.
2814         (encode_builtin_char_1): Modify for new allocation of builtin
2815         Mojikyo characters.
2816
2817         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2818
2819 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2820
2821         * mule-charset.c (Vcharset_ucs_cns): New variable.
2822         (Qucs_cns): New variable.
2823         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2824         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2825
2826 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2827
2828         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2829
2830 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2831
2832         * search.c (search_buffer): Make `charset_base_code' as
2833         character-id >> 6 to eliminate the corresponding last byte in
2834         UTF-8 representation [I'm not sure it is right thing].
2835         (boyer_moore): Likewise.
2836
2837 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2838
2839         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2840         representation in MULE.
2841
2842 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2843
2844         * text-coding.c (Fmake_coding_system): Use
2845         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2846         `EXTERNAL_PROPERTY_LIST_LOOP'.
2847
2848 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2849
2850         * text-coding.c (decode_output_utf8_partial_char): New function.
2851         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2852
2853 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2854
2855         * text-coding.c (decode_coding_utf8): Output original byte
2856         sequence if it is broken; change order of conditions.
2857
2858         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2859         of conditions.
2860
2861         * mb-multibyte.h (BYTE_ASCII_P):
2862         Use bit ops for char-signedness safety.
2863         (BYTE_C0_P): Use bit ops for char-signedness safety.
2864         (BYTE_C1_P): Use bit ops for char-signedness safety.
2865
2866         * character.h: (XCHAR_OR_CHAR_INT):
2867         Always use inline function.
2868         Remove redundant type checking assert() - XINT will abort quite
2869         nicely.
2870
2871 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2872
2873         * text-coding.c: (Fencode_shift_jis_char):
2874         (Fencode_big5_char):
2875         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2876         Replace 0 with '\0' when working with bytes.
2877         Replace initial "(" with "\(" in docstrings.
2878
2879         (Fmake_coding_system):
2880         When type is ccl and value is vector, register it with a proper
2881         symbol.  And checks whether the given ccl program is valid.
2882         (mule_decode): When calling ccl_driver, if src indicates
2883         NULL pointer, set an empty string instead.
2884         (mule_encode): Likewise.
2885
2886         (detect_eol_type):
2887         (detect_coding_sjis):
2888         (decode_coding_sjis):
2889         (detect_coding_big5):
2890         (decode_coding_big5):
2891         (detect_coding_ucs4):
2892         (decode_coding_ucs4):
2893         (detect_coding_utf8):
2894         (decode_coding_utf8):
2895         (detect_coding_iso2022):
2896         (decode_coding_iso2022):
2897         (decode_coding_no_conversion):
2898         (mule_decode):
2899         Make all detecting and decoding functions take an Extbyte * arg.
2900         (text_encode_generic):
2901         (encode_coding_big5):
2902         (encode_coding_no_conversion):
2903         (mule_encode):
2904         Make all encoding functions take a Bufbyte * arg.
2905         Use size_t instead of unsigned int for memory sizes.
2906         Only cast to unsigned char whenever dereferencing Extbyte *.
2907
2908         (struct lrecord_description fcd_description_1): Use countof.
2909         (complex_vars_of_file_coding):
2910         Use countof instead of sizeof.
2911         Use CHECK_NATNUM instead of CHECK_INT.
2912
2913 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2914
2915         * mule-charset.c (Fget_char_attribute): Add new optional argument
2916         `default-value'.
2917         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2918         (remove_char_ccs): Likewise.
2919
2920 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2921
2922         * text-coding.c (char_encode_shift_jis): New implementation in
2923         UTF-2000.
2924         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2925         ...)'.
2926
2927         * mule-charset.c (Vcharset_chinese_big5): New variable in
2928         UTF-2000.
2929         (Qchinese_big5): New variable in UTF-2000.
2930         (BIG5_SAME_ROW): New macro in UTF-2000.
2931         (make_builtin_char): Use builtin characters of
2932         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2933         characters of `Vcharset_chinese_big5'.
2934         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2935         (complex_vars_of_mule_charset): Add new coded-charset
2936         `chinese-big5' in UTF-2000.
2937
2938         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2939         (Vcharset_chinese_big5): New external variable declaration.
2940         (Vcharset_japanese_jisx0208_1990): Likewise.
2941
2942 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2943
2944         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2945         function.
2946         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2947
2948 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2949
2950         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2951         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2952         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2953         `mojikyo-pj-*'.
2954
2955 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2956
2957         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2958
2959 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2960
2961         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2962         to 0.17.
2963
2964 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2965
2966         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2967         for `CHARSET_BY_ATTRIBUTES'.
2968         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2969         `CHARSET_BY_ATTRIBUTES'.
2970
2971         * text-coding.c (struct decoding_stream): Rename member `CH' to
2972         `CPOS'.
2973         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2974         (decode_coding_sjis): Likewise.
2975         (decode_coding_big5): Likewise.
2976         (decode_coding_ucs4): Likewise.
2977         (decode_coding_utf8): Likewise.
2978         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2979         `CHARSET_BY_ATTRIBUTES'.
2980         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2981         `str->counter'; decode 3, 4 bytes sets.
2982         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2983         sets.
2984         (decode_coding_no_conversion): Use `str->cpos' instead of
2985         `str->ch'.
2986
2987         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2988         (Qmojikyo_2022_1): New variable.
2989         (make_charset): Don't use `CHARSET_TYPE_*'.
2990         (range_charset_code_point): Support coded-charset
2991         `mojikyo-2022-1'.
2992         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2993         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2994         `CHARSET_BY_ATTRIBUTES'.
2995         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2996         `CHARSET_BY_ATTRIBUTES'.
2997         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2998         (complex_vars_of_mule_charset): Add new coded-charset
2999         `mojikyo-2022-1'.
3000
3001         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3002         interface; changed to inline function.
3003
3004         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3005         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3006         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3007         (CHARSET_TYPE_94): Deleted.
3008         (CHARSET_TYPE_94X94): Deleted.
3009         (CHARSET_TYPE_96): Deleted.
3010         (CHARSET_TYPE_96X96): Deleted.
3011         (CHARSET_TYPE_128): Deleted.
3012         (CHARSET_TYPE_128X128): Deleted.
3013         (CHARSET_TYPE_256): Deleted.
3014         (CHARSET_TYPE_256X256): Deleted.
3015         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3016         to inline function.
3017         (DECODE_MOJIKYO_2022): New inline function.
3018         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3019         `Vcharset_mojikyo_2022_1'.
3020
3021 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3022
3023         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3024         instead of `EQ'.
3025         (put_byte_table): Likewise.
3026         (char_id_table_equal): Use `get_byte_table' [new implementation].
3027
3028 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3029
3030         * mule-charset.c: Include <limits.h> in UTF-2000.
3031         (BT_UINT8_MIN): New macro in UTF-2000.
3032         (BT_UINT8_MAX): New macro in UTF-2000.
3033         (BT_UINT8_t): New macro in UTF-2000.
3034         (BT_UINT8_nil): New macro in UTF-2000.
3035         (BT_UINT8_unbound): New macro in UTF-2000.
3036         (INT_UINT8_P): New inline function in UTF-2000.
3037         (UINT8_VALUE_P): New inline function in UTF-2000.
3038         (UINT8_ENCODE): New inline function in UTF-2000.
3039         (UINT8_DECODE): New inline function in UTF-2000.
3040         (mark_uint8_byte_table): New function in UTF-2000.
3041         (print_uint8_byte_table): New function in UTF-2000.
3042         (uint8_byte_table_equal): New function in UTF-2000.
3043         (uint8_byte_table_hash): New function in UTF-2000.
3044         (make_uint8_byte_table): New function in UTF-2000.
3045         (uint8_byte_table_same_value_p): New function in UTF-2000.
3046         (BT_UINT16_MIN): New macro in UTF-2000.
3047         (BT_UINT16_MAX): New macro in UTF-2000.
3048         (BT_UINT16_t): New macro in UTF-2000.
3049         (BT_UINT16_nil): New macro in UTF-2000.
3050         (BT_UINT16_unbound): New macro in UTF-2000.
3051         (INT_UINT16_P): New inline function in UTF-2000.
3052         (UINT16_VALUE_P): New inline function in UTF-2000.
3053         (UINT16_ENCODE): New inline function in UTF-2000.
3054         (UINT16_DECODE): New inline function in UTF-2000.
3055         (UINT8_TO_UINT16): New inline function in UTF-2000.
3056         (mark_uint16_byte_table): New function in UTF-2000.
3057         (print_uint16_byte_table): New function in UTF-2000.
3058         (uint16_byte_table_equal): New function in UTF-2000.
3059         (uint16_byte_table_hash): New function in UTF-2000.
3060         (make_uint16_byte_table): New function in UTF-2000.
3061         (uint16_byte_table_same_value_p): New function in UTF-2000.
3062         (print_byte_table): New function in UTF-2000.
3063         (byte-table): Use `print_byte_table' as printer.
3064         (make_byte_table): Delete second argument `older'.
3065         (byte_table_same_value_p): New function in UTF-2000.
3066         (copy_byte_table): Deleted.
3067         (get_byte_table): New function in UTF-2000.
3068         (put_byte_table): New function in UTF-2000.
3069         (print_char_id_table): New function in UTF-2000.
3070         (char-id-table): Use `print_char_id_table' as printer.
3071         (make_char_id_table): Delete second argument `older'.
3072         (get_char_id_table): Use `get_byte_table [new implementation].
3073         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3074         implementation].
3075         (Ffind_char_attribute_table): New function in UTF-2000.
3076         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3077         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3078         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3079         (syms_of_mule_charset): Add new function
3080         `find-char-attribute-table' in UTF-2000.
3081
3082         * lrecord.h (enum lrecord_type): Add
3083         `lrecord_type_uint16_byte_table' and
3084         `lrecord_type_uint8_byte_table'.
3085
3086         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3087         (Lisp_Uint8_Byte_Table): New type.
3088         (XUINT8_BYTE_TABLE): New macro.
3089         (XSETUINT8_BYTE_TABLE): New macro.
3090         (UINT8_BYTE_TABLE_P): New macro.
3091         (GC_UINT8_BYTE_TABLE_P): New macro.
3092         (struct Lisp_Uint16_Byte_Table): New structure.
3093         (Lisp_Uint16_Byte_Table): New type.
3094         (XUINT16_BYTE_TABLE): New macro.
3095         (XSETUINT16_BYTE_TABLE): New macro.
3096         (UINT16_BYTE_TABLE_P): New macro.
3097         (GC_UINT16_BYTE_TABLE_P): New macro.
3098
3099 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3100
3101         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3102         (Vcharacter_ideographic_strokes_table): Deleted.
3103         (Vcharacter_total_strokes_table): Deleted.
3104         (Vcharacter_morohashi_daikanwa_table): Deleted.
3105         (Vcharacter_decomposition_table): Deleted.
3106         (Qname): Deleted because it is duplicated.
3107         (Qideographic_radical): Deleted.
3108         (Qideographic_strokes): Deleted.
3109         (Qtotal_strokes): Deleted.
3110         (Qmorohashi_daikanwa): Deleted.
3111         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3112         `ideographic-radical', `ideographic-strokes', `total-strokes',
3113         `morohashi-daikanwa' and `->decomposition'.
3114         (Fget_char_attribute): Likewise.
3115         (Fput_char_attribute): Likewise; use `make-vector' instead of
3116         `make_older_vector' for `->decomposition' value.
3117         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3118         `ideograph-daikanwa'.
3119         (syms_of_mule_charset): Delete builtin symbols `name',
3120         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3121         `morohashi-daikanwa'.
3122         (vars_of_mule_charset): Don't setup
3123         `Vcharacter_ideographic_radical_table',
3124         `Vcharacter_ideographic_strokes_table',
3125         `Vcharacter_total_strokes_table',
3126         `Vcharacter_morohashi_daikanwa_table' and
3127         `Vcharacter_decomposition_table'.
3128
3129 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3130
3131         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3132         `make_older_vector', `make_vector_newer_1' and
3133         `make_vector_newer'.
3134
3135         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3136         `make_older_vector' and `make_vector_newer'.
3137
3138         * config.h.in (HAVE_GGC): New macro.
3139
3140 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3141
3142         * mule-charset.c (struct char_attribute_list_closure): New
3143         structure in UTF-2000.
3144         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3145         (Fchar_attribute_list): Likewise.
3146         (Fset_charset_mapping_table): Use `make_vector_newer'.
3147         (Fdecode_builtin_char): New function in UTF-2000.
3148         (syms_of_mule_charset): Add new function `char-attribute-list' and
3149         `decode-builtin-char' in UTF-2000.
3150
3151         * lisp.h (make_vector_newer): New prototype.
3152
3153         * alloc.c (make_vector_newer_1): New function.
3154         (make_vector_newer): New function.
3155
3156 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3157
3158         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3159         50100)'.
3160
3161 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3162
3163         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3164         (Vcharacter_attribute_table): Deleted.
3165         (Vcharacter_name_table): Deleted.
3166         (put_char_attribute): Deleted.
3167         (remove_char_attribute): Deleted.
3168         (struct char_attribute_alist_closure): New structure.
3169         (add_char_attribute_alist_mapper): New function.
3170         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3171         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3172         (Fget_char_attribute): Likewise.
3173         (Fput_char_attribute): Likewise.
3174         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3175         of `remove_char_attribute'.
3176         (Fdefine_char): Return character.
3177         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3178         and `Vcharacter_name_table'.
3179         (complex_vars_of_mule_charset): Likewise
3180         `Vchar_attribute_hash_table'.
3181
3182 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3183
3184         * character.h (CHARC_CHARSET): New macro.
3185         (CHARC_CHARSET_ID): New macro.
3186         (CHARC_CODE_POINT): New macro.
3187         (CHARC_COLUMNS): New macro.
3188         (CHARC_TO_CHAR): New inline function.
3189         (CHARC_EQ): New inline function.
3190         (CHARC_ASCII_EQ): New inline function.
3191         (CHARC_IS_SPACE): New inline function.
3192         (ASCII_TO_CHARC): New inline function.
3193
3194         * char-ucs.h (encode_char_2): Deleted.
3195         (ENCODE_CHAR): Use `encode_char_1' again.
3196         (breakup_char_1): Likewise.
3197         (CHAR_TO_CHARC): New inline function.
3198
3199         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3200
3201 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3202
3203         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3204         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3205         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3206         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3207         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3208         `CHARC_IS_SPACE'.
3209         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3210
3211         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3212         `CHARC_CODE_POINT'.
3213         (x_output_display_block): Use `CHARC_CHARSET' and
3214         `CHARC_ASCII_EQ'.
3215
3216         * redisplay-tty.c (tty_output_display_block): Use
3217         `CHARC_ASCII_EQ'.
3218         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3219
3220         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3221
3222         * insdel.c (find_charsets_in_charc_string): Use
3223         `CHARC_CHARSET_ID'.
3224         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3225         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3226         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3227         (convert_charc_string_into_malloced_string): Likewise.
3228
3229 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3230
3231         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3232         instead of <Emchar_dynarr *> for buf; use
3233         `convert_bufbyte_string_into_charc_dynarr' instead of
3234         `convert_bufbyte_string_into_emchar_dynarr'; use
3235         `find_charsets_in_charc_string' instead of
3236         `find_charsets_in_emchar_string'.
3237
3238         * redisplay.h:
3239         - Include "character.h".
3240         (struct rune): New member `cglyph'; delete member `chr'.
3241
3242         * redisplay.c (redisplay_text_width_charc_string): New function;
3243         delete `redisplay_text_width_emchar_string'.
3244         (rtw_charc_dynarr): New variable; renamed from
3245         `rtw_emchar_dynarr'.
3246         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3247         `rtw_emchar_dynarr'; use
3248         `convert_bufbyte_string_into_charc_dynarr' instead of
3249         `convert_bufbyte_string_into_emchar_dynarr'; use
3250         `redisplay_text_width_charc_string' instead of
3251         `redisplay_text_width_emchar_string'.
3252         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3253         instead of `rtw_emchar_dynarr'; use
3254         `convert_bufbyte_string_into_charc_dynarr' instead of
3255         `convert_bufbyte_string_into_emchar_dynarr'.
3256         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3257         `redisplay_text_width_charc_string' instead of
3258         `redisplay_text_width_emchar_string'.
3259         (create_text_block): Modify for <struct rune> change.
3260         (generate_formatted_string_db): Likewise.
3261         (create_string_text_block): Likewise.
3262         (pixel_to_glyph_translation): Likewise.
3263
3264         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3265         instead of <const Emchar *>.
3266         (x_text_width): Likewise.
3267         (x_output_display_block): Use <Charc_dynarr *> instead
3268         <Emchar_dynarr *>; modify for <structure rune> change.
3269         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3270         *>.
3271
3272         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3273         <const Emchar *>; use `charc_string_displayed_columns' instead of
3274         `emchar_string_displayed_columns'.
3275         (tty_output_display_block): Use <Charc_dynarr *> instead of
3276         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3277         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3278         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3279         `tty_output_emchar_dynarr_dynarr'.
3280         (tty_output_charc_dynarr): New function; delete
3281         `tty_output_charc_dynarr'.
3282
3283         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3284         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3285         <Emchar_dynarr *> for buf; use
3286         `convert_bufbyte_string_into_charc_dynarr' instead of
3287         `convert_bufbyte_string_into_emchar_dynarr'.
3288
3289         * frame.c (title_string_charc_dynarr): New variable; renamed from
3290         `title_string_emchar_dynarr'.
3291         (generate_title_string): Use `title_string_charc_dynarr' instead
3292         of `title_string_emchar_dynarr'; use
3293         `convert_charc_string_into_malloced_string' instead of
3294         `convert_emchar_string_into_malloced_string'.
3295         (init_frame): Use `title_string_charc_dynarr' instead of
3296         `title_string_emchar_dynarr'.
3297
3298         * console.h:
3299         - Include "character.h".
3300         (struct console_methods): Use <const Charc *> instead of <const
3301         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3302         <Emchar_dynarr *> in output_string_method.
3303
3304         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3305         <Emchar_dynarr *>.
3306
3307         * console-stream.c (stream_text_width): Use <const Charc *>
3308         instead of <const Emchar *>.
3309
3310         * character.h (Charc_dynarr): New type.
3311
3312         * char-ucs.h (structure Charc): New structure; define new type
3313         `Charc'.
3314
3315         * char-lb.h (DECODE_CHAR): New inline function.
3316         (encode_char_1): New inline function.
3317         (ENCODE_CHAR): New macro.
3318         (structure Charc): New structure; define new type `Charc'.
3319
3320         * char-1byte.h (Vcharset_control_1): New macro.
3321         (Vcharset_latin_iso8859_1): New macro.
3322         (DECODE_CHAR): New inline function.
3323         (encode_char_1): New inline function.
3324         (ENCODE_CHAR): New macro.
3325         (structure Charc): New structure; define new type `Charc'.
3326
3327         * insdel.c (find_charsets_in_charc_string): New function; delete
3328         `find_charsets_in_emchar_string'.
3329         (charc_string_displayed_columns): New function; delete
3330         `emchar_string_displayed_columns'.
3331         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3332         `convert_bufbyte_string_into_emchar_dynarr'.
3333         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3334         `convert_charc_string_into_bufbyte_dynarr'.
3335         (convert_charc_string_into_malloced_string): New function; delete
3336         `convert_charc_string_into_malloced_string'.
3337
3338         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3339         `find_charsets_in_emchar_string'.
3340         (charc_string_displayed_columns): New prototype; delete
3341         `emchar_string_displayed_columns'.
3342         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3343         `convert_charc_string_into_bufbyte_dynarr'.
3344         (convert_charc_string_into_malloced_string): New prototype; delete
3345         `convert_charc_string_into_malloced_string'.
3346
3347 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3348
3349         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3350
3351 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3352
3353         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3354
3355         * char-ucs.h: Use <short> for <Charset_ID>.
3356
3357         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3358         <Charset_ID>.
3359
3360 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3361
3362         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3363         to 0.16.
3364
3365 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3366
3367         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3368         variable.
3369         (Qmorohashi_daikanwa): New variable.
3370         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3371         for `morohashi-daikanwa' attribute.
3372         (Fget_char_attribute): Likewise.
3373         (Fput_char_attribute): Likewise.
3374         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3375         has the same value of `ideograph-daikanwa'.
3376         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3377         (vars_of_mule_charset): Setup
3378         `Vcharacter_morohashi_daikanwa_table'.
3379
3380 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3381
3382         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3383         attributes.
3384         (add_charset_to_list_mapper): Add `key' instead of
3385         `XCHARSET_NAME (value)' to return aliases.
3386
3387 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3388
3389         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3390         variable.
3391         (Vcharacter_ideographic_strokes_table): New variable.
3392         (Qideographic_radical): New variable.
3393         (Qideographic_strokes): New variable.
3394         (Fchar_attribute_alist): Use
3395         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3396         attribute; use `Vcharacter_ideographic_strokes_table' for
3397         `ideographic-strokes' attribute.
3398         (Fget_char_attribute): Likewise.
3399         (Fput_char_attribute): Likewise.
3400         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3401         `ideographic-strokes'.
3402         (vars_of_mule_charset): Setup
3403         `Vcharacter_ideographic_radical_table' and
3404         `Vcharacter_ideographic_strokes_table'.
3405
3406 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3407
3408         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3409         (Qtotal_strokes): New variable.
3410         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3411         `total-strokes' attribute.
3412         (Fget_char_attribute): Likewise.
3413         (Fput_char_attribute): Likewise.
3414         (syms_of_mule_charset): Add new symbol `total-strokes'.
3415         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3416
3417 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3418
3419         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3420         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3421         are found.
3422         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3423         `->decomposition' attribute.
3424         (Fput_char_attribute): Likewise.
3425         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3426
3427 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3428
3429         * mule-charset.c (decoding_table_check_elements): New function.
3430         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3431
3432 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3433
3434         * mule-charset.c (Fset_charset_mapping_table): Use
3435         `put_char_ccs_code_point'.
3436
3437 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3438
3439         * mule-charset.c (decoding_table_put_char): New inline function.
3440         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3441
3442 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3443
3444         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3445         (XCHARSET_BYTE_SIZE): New macro.
3446         (decoding_table_remove_char): New inline function.
3447         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3448         `decoding_table_remove_char'.
3449         (remove_char_ccs): Use `decoding_table_remove_char'.
3450         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3451
3452 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3453
3454         * mule-charset.c (Vcharacter_name_table): New variable.
3455         (Qname): New variable.
3456         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3457         attribute.
3458         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3459         `Vcharacter_name_table' for `name' attribute.
3460         (Fremove_char_attribute): Use function `remove_char_ccs'.
3461         (put_char_ccs_code_point): New function.
3462         (remove_char_ccs): New function.
3463         (syms_of_mule_charset): Add new symbol `name'.
3464         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3465
3466 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3467
3468         * mule-charset.c (make_byte_table): Add new argument `older'.
3469         (make_char_id_table): Likewise.
3470         (copy_char_id_table): Comment out because it is not used.
3471         (put_char_id_table): Modify for `make_byte_table'.
3472         (Fput_char_attribute): Make encoding_table as older object;
3473         inherit older bit of `Vcharacter_composition_table'.
3474         (mark_charset): Don't mark `cs->encoding_table'.
3475         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3476         normal object; make `Vcharacter_composition_table' as an older
3477         object; delete staticpro for `Vcharacter_composition_table'; make
3478         `Vcharacter_variant_table' as a normal object.
3479
3480         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3481         (mark_object): Don't check older object in UTF-2000.
3482
3483         * lrecord.h (struct lrecord_header): Add new member `older' in
3484         UTF-2000.
3485         (set_lheader_implementation): Setup `SLI_header->older' in
3486         UTF-2000.
3487         (set_lheader_older_implementation): New macro in UTF-2000.
3488         (OLDER_RECORD_P): New macro in UTF-2000.
3489         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3490         (alloc_older_lcrecord): New prototype in UTF-2000.
3491         (alloc_older_lcrecord_type): New macro in UTF-2000.
3492
3493 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3494
3495         * mule-charset.c (byte_table_description): Use
3496         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3497         (char_id_table_description): Delete bogus `, 1'.
3498         (Fget_char_attribute): Refer encoding_table of each coded-charset
3499         to get value of coded-charset attribute of a character.
3500         (Fput_char_attribute): Use `make_older_vector' instead of
3501         `make_vector'; use encoding_table of each coded-charset to store
3502         value of coded-charset attribute of a character.
3503         (Fremove_char_attribute): Use encoding_table of each coded-charset
3504         to store value of coded-charset attribute of a character.
3505         (mark_charset): Mark `cs->encoding_table'; don't mark
3506         `cs->decoding_table'.
3507         (charset_description): Add description of new member
3508         `encoding_table'.
3509         (make_charset): Initialize `encoding_table'.
3510
3511         * char-ucs.h (struct Lisp_Charset): Add new member
3512         `encoding_table'.
3513         (CHARSET_ENCODING_TABLE): New macro.
3514         (XCHARSET_ENCODING_TABLE): New macro.
3515         (charset_code_point): New implementation.
3516         (encode_char_1): Likewise.
3517
3518         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3519         (disksave_object_finalization_1): Call finalizers of
3520         `all_older_lcrecords' in UTF-2000.
3521         (make_older_vector): New function in UTF-2000.
3522         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3523         UTF-2000.
3524
3525         * lisp.h (make_older_vector): New prototype in UTF-2000.
3526
3527 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3528
3529         * lrecord.h (enum lrecord_type): Rename
3530         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3531
3532         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3533         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3534         `get_char_code_table'.
3535
3536         * mule-charset.c (mark_char_id_table): Renamed from
3537         `mark_char_code_table'.
3538         (char_id_table_equal): Renamed from `char_code_table_equal'.
3539         (char_id_table_hash): Renamed from `char_code_table_hash'.
3540         (make_char_id_table): Renamed from `make_char_code_table'.
3541         (copy_char_id_table): Renamed from `copy_char_code_table'.
3542         (get_char_id_table): Renamed from `get_char_code_table'.
3543         (put_char_id_table): Renamed from `put_char_code_table'.
3544         (to_char_id): Renamed from `to_char_code'.
3545
3546         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3547         `Lisp_Char_Code_Table'.
3548         (char_id_table): Renamed from `char_code_table'.
3549         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3550         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3551         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3552         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3553         (get_char_id_table): Renamed from `get_char_code_table'.
3554
3555 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3556
3557         * lrecord.h (enum lrecord_type): Rename
3558         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3559
3560         * mule-charset.c (mark_byte_table): Renamed from
3561         `mark_char_byte_table'.
3562         (byte_table_equal): Renamed from `char_byte_table_equal'.
3563         (byte_table_hash): Renamed from `byte_table_hash'.
3564         (make_byte_table): Renamed from `make_byte_table'.
3565         (copy_byte_table): Renamed from `copy_char_byte_table'.
3566
3567         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3568         `Lisp_Char_Byte_Table'.
3569         (byte_table): Renamed from `char_byte_table'.
3570         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3571         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3572         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3573         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3574
3575 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3576
3577         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3578         (dfc_convert_to_internal_format): Likewise.
3579         
3580         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3581         * text-coding.c (Fcoding_system_alias_p): New function.
3582         * text-coding.c (Fcoding_system_aliasee): New function.
3583         * text-coding.c (append_suffix_to_symbol): New function.
3584         * text-coding.c (dangling_coding_system_alias_p): New function.
3585         * text-coding.c (Ffind_coding_system):
3586         * text-coding.c (Fcopy_coding_system):
3587         * text-coding.c (encode_coding_no_conversion):
3588         * text-coding.c (syms_of_file_coding):
3589         * text-coding.c (vars_of_file_coding):
3590         Rewrite coding system alias code.
3591         Allow nested aliases, like symbolic links.
3592         Allow redefinition of coding system aliases.
3593         Prevent existence of dangling coding system aliases.
3594         Eliminate convert_to_external_format.
3595         Eliminate convert_to_internal_format.
3596         
3597         * text-coding.c: Change enum eol_type to eol_type_t.
3598
3599 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3600
3601         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3602         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3603
3604         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3605         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3606
3607 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3608
3609         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3610         `ideograph-daikanwa'.
3611
3612         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3613         (Vcharset_ucs_bmp): Likewise.
3614         (Vcharset_mojikyo): Add new extern variable definition.
3615         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3616         (Vcharset_latin_iso8859_3): Likewise.
3617         (Vcharset_latin_iso8859_4): Likewise.
3618         (Vcharset_latin_iso8859_9): Likewise.
3619         (Vcharset_latin_viscii_lower): Likewise.
3620         (Vcharset_latin_viscii_upper): Likewise.
3621         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3622         `mojikyo' code-point is used to decode.
3623         (encode_char_2): New function [to convert `mojikyo' code-point to
3624         Mojikyo font encoding].
3625         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3626         (breakup_char_1): Likewise.
3627         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3628
3629 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3630
3631         * text-coding.c (Fmake_coding_system): Add document about
3632         `disable-composition' property.
3633
3634 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3635
3636         * text-coding.c (Qdisable_composition): New variable; delete
3637         `Qcomposite'.
3638         (Fmake_coding_system): Add new property `disable-composite';
3639         delete property `composite'.
3640         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3641         instead of `!CODING_SYSTEM_COMPOSITE'.
3642         (syms_of_file_coding): Add new symbol `disable-composition';
3643         delete symbol `composite'.
3644
3645         * file-coding.h (struct Lisp_Coding_System): Add
3646         `disable_composition'; delete `enable_composition'.
3647         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3648         `CODING_SYSTEM_COMPOSITE'.
3649         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3650         `XCODING_SYSTEM_COMPOSITE'.
3651
3652 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3653
3654         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3655         to 0.15.
3656
3657 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3658
3659         * text-coding.c (Qcomposite): New variable.
3660         (Fmake_coding_system): Add new property `composite'.
3661         (struct decoding_stream): Add `combined_char_count',
3662         `combined_chars' and `combining_table' in UTF-2000.
3663         (COMPOSE_FLUSH_CHARS): New macro.
3664         (COMPOSE_ADD_CHAR): New macro.
3665         (reset_decoding_stream): Reset `str->combined_char_count' and
3666         `str->combining_table' in UTF-2000.
3667         (decode_coding_iso2022): Modify for character-decomposition.
3668         (syms_of_file_coding): Add new symbol `composite'.
3669
3670 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3671
3672         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3673         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3674         of `Vcharacter_composition_table' if `->decomposition' property
3675         has only 1 element.
3676         (Qlatin_tcvn5712): New variable.
3677         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3678         (complex_vars_of_mule_charset): Add new coded-charset
3679         `latin-tcvn5712'.
3680
3681         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3682
3683 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3684
3685         * file-coding.h (struct Lisp_Coding_System): Add
3686         `enable_composition'.
3687         (CODING_SYSTEM_COMPOSITE): New macro.
3688         (XCODING_SYSTEM_COMPOSITE): New macro.
3689
3690 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3691
3692         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3693
3694 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3695
3696         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3697         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3698
3699 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3700
3701         * mule-charset.c (Vcharset_mojikyo): New variable.
3702         (Fdefine_char): Don't use coded-charset which does not have
3703         non-builtin character range to allocate character-id.
3704         (Qmojikyo): New variable.
3705         (syms_of_mule_charset): Add new symbol `mojikyo'.
3706         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3707
3708         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3709         (LEADING_BYTE_MOJIKYO): New macro.
3710         (MIN_CHAR_MOJIKYO): New macro.
3711         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3712         (MAX_CHAR_MOJIKYO): New macro.
3713
3714 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3715
3716         * mule-charset.c (remove_char_attribute): Fixed.
3717
3718 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3719
3720         * mule-charset.c (remove_char_attribute): New function.
3721         (Fremove_char_attribute): New function.
3722         (encode_builtin_char_1): Comment out builtin-support for
3723         greek-iso8859-7 and cyrillic-iso8859-5.
3724         (Fdecode_char): Check `code' is an integer.
3725         (syms_of_mule_charset): Add `remove-char-attribute'.
3726         (MIN_CHAR_GREEK): Deleted.
3727         (MAX_CHAR_GREEK): Likewise.
3728         (MIN_CHAR_CYRILLIC): Likewise.
3729         (MAX_CHAR_CYRILLIC): Likewise.
3730         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3731         MAX_CHAR_GREEK for `greek-iso8859-7'.
3732
3733         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3734         (MAX_CHAR_GREEK): Likewise.
3735         (MIN_CHAR_CYRILLIC): Likewise.
3736         (MAX_CHAR_CYRILLIC): Likewise.
3737
3738 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3739
3740         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3741         format is used without `ucs' property.
3742         (Fdecode_char): Fix problem with GR representation.
3743         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3744         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3745
3746 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3747
3748         * mule-charset.c (make_builtin_char): New function.
3749         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3750         (Fset_charset_mapping_table): Modify for new representation of
3751         code-point.
3752         (Fdecode_char): New function.
3753         (syms_of_mule_charset): Add new builtin function `decode-char' in
3754         UTF-2000.
3755
3756         * char-ucs.h (make_builtin_char): New prototype.
3757         (DECODE_CHAR): New inline function.
3758         (MAKE_CHAR): Use `DECODE_CHAR'.
3759
3760 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3761
3762         * text-coding.c (parse_charset_conversion_specs): Use
3763         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3764         `XCHARSET_TYPE'.
3765         (iso2022_designate): Likewise.
3766
3767         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3768         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3769
3770         * mule-charset.c (Vcharset_ucs): New variable.
3771         (print_charset): Change design; use `CHARSET_CHARS' and
3772         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3773         (make_charset): Change signature to specify `chars' and
3774         `dimension' instead of `type'.
3775         (range_charset_code_point): Modify for 256^n-set.
3776         (encode_builtin_char_1): Encode as `ucs' in default.
3777         (Fmake_charset): Modify for `make_charset'.
3778         (Fmake_reverse_direction_charset): Likewise.
3779         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3780         UTF-2000.
3781         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3782         for `make_charset'.
3783
3784         * char-ucs.h (Vcharset_ucs): New variable.
3785         (LEADING_BYTE_UCS): New macro.
3786         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3787         and `chars' to `unsigned short' from `unsigned int'.
3788         (CHARSET_TYPE): Deleted.
3789         (XCHARSET_TYPE): Deleted.
3790
3791 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3792
3793         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3794
3795         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3796         (ENCODE_CHAR): New macro.
3797
3798 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3799
3800         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3801         to 0.14 (Kawachi-Katakami).
3802
3803 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3804
3805         * text-coding.c (char_encode_shift_jis): Modify for
3806         `charset_code_point'.
3807         (char_encode_iso2022): Likewise.
3808
3809         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3810         (integer) instead of list of <Lisp_Object>s (integers) as the
3811         format of code-point of a coded-charset.
3812         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3813         (encode_builtin_char_1): New function; delete
3814         `split_builtin_char'.
3815         (charset_code_point): Return <int> instead of <Lisp_Object>.
3816         (Fsplit_char): Don't use `SPLIT_CHAR'.
3817
3818         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3819         prototype for `split_builtin_char'.
3820         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3821         (charset_code_point): Likewise.
3822         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3823         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3824
3825 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3826
3827         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3828         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3829
3830 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3831
3832         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3833
3834         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3835         (MAX_CHAR_OBS_94x94): Deleted.
3836
3837 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3838
3839         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3840
3841         * char-ucs.h (MAX_CHAR_BMP): New macro.
3842
3843 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3844
3845         * text-coding.c: Sync with r21-2-24.
3846
3847 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3848
3849         * file-coding.c: Modify for UTF-2000.
3850
3851 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3852
3853         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3854         to 0.13 (Takaida).
3855
3856 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3857
3858         * mule-charset.c (split_builtin_char): Delete builtin support for
3859         `katakana-jisx0201'.
3860         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3861         BMP area in builtin representation.
3862
3863         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3864         `Vcharset_katakana_jisx0201'.
3865
3866 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3867
3868         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3869         (Qisolated): New variable.
3870         (Qinitial): New variable.
3871         (Qmedial): New variable.
3872         (Qfinal): New variable.
3873         (Qvertical): New variable.
3874         (Qsmall): New variable.
3875         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3876         `Qvertical' and `Qsmall'.
3877         (Qmojikyo_pj_[1 .. 21]): New variable.
3878         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3879         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3880         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3881         .. 21]'.
3882
3883 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3884
3885         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3886         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3887         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3888
3889 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3890
3891         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3892         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3893         BMP.
3894         (Qjapanese_jisx0208_1990): New variable.
3895         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3896         (complex_vars_of_mule_charset): Add new coded-charset
3897         `japanese-jisx0208-1990'.
3898
3899         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3900         (MIN_CHAR_JIS_X0208_1990): New macro.
3901         (MAX_CHAR_JIS_X0208_1990): New macro.
3902
3903 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3904
3905         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3906         coded-charset is not found.
3907
3908 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3909
3910         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3911         (Fdefine_char): Use `Fmake_char'.
3912
3913 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3914
3915         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3916         (Vcharset_hiragana_jisx0208): Deleted.
3917         (Vcharset_katakana_jisx0208): Deleted.
3918         (Qideograph_daikanwa): New variable.
3919         (Qhiragana_jisx0208): Deleted.
3920         (Qkatakana_jisx0208): Deleted.
3921         (split_builtin_char): Split `ideograph-daikanwa'.
3922         (Fsplit_char): New implementation for UTF-2000.
3923         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3924         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3925         (complex_vars_of_mule_charset): Add new coded-charset
3926         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3927         `katakana-jisx0208'.
3928
3929         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3930         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3931         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3932         (MIN_CHAR_DAIKANWA): New macro.
3933         (MAX_CHAR_DAIKANWA): New macro.
3934
3935 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3936
3937         * data.c (Fstring_to_number): Don't recognize floating point if
3938         base is not 10.
3939
3940 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3941
3942         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3943
3944 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3945
3946         * mule-charset.c (Qsquare): New variable.
3947         (to_char_code): Add `Qsquare'.
3948         (syms_of_mule_charset): Add new symbol `square'.
3949
3950 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3951
3952         * mule-charset.c (Qcircle): New variable.
3953         (to_char_code): Add `Qcircle'.
3954         (syms_of_mule_charset): Add new symbol `circle'.
3955
3956 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3957
3958         * mule-charset.c (Qfont): New variable.
3959         (to_char_code): Add `Qfont'.
3960         (syms_of_mule_charset): Add new symbol `font'.
3961
3962 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3963
3964         * mule-charset.c (Qsub): New variable.
3965         (to_char_code): Add `Qsub'.
3966         (syms_of_mule_charset): Add new symbol `sub'.
3967
3968 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3969
3970         * mule-charset.c (Fput_char_attribute): Convert each element of
3971         VALUE to GL position if ATTRIBUTE is a GR-set,
3972
3973 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3974
3975         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3976         coded-charset is a GR-set.
3977
3978 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3979
3980         * mule-charset.c (Fput_char_attribute): Check each element of
3981         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3982
3983 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3984
3985         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3986         UTF-2000.
3987         (Qethiopic_ucs): New variable in UTF-2000.
3988         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3989         (complex_vars_of_mule_charset): Add new coded-charset
3990         `ethiopic-ucs' in UTF-2000.
3991
3992         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3993         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3994         9)'.
3995         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3996         10)'.
3997         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3998
3999 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4000
4001         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4002         `ascii'.
4003
4004 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4005
4006         * mule-charset.c (Vcharacter_variant_table): New variable.
4007         (Q_ucs): New variable.
4008         (Fchar_variants): New function.
4009         (Fput_char_attribute): Register `->ucs' value to
4010         `Vcharacter_variant_table'.
4011         (syms_of_mule_charset): Add new function `char-variants' and new
4012         symbol `->ucs'.
4013         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4014
4015 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4016
4017         * mule-charset.c (get_char_code_table): Allow negative character
4018         code.
4019         (put_char_code_table): Likewise.
4020         (Vcharacter_composition_table): New variable.
4021         (Q_decomposition): New variable.
4022         (Qwide): New variable.
4023         (Qnarrow): New variable.
4024         (Qcompat): New variable.
4025         (QnoBreak): New variable.
4026         (Qsuper): New variable.
4027         (Qfraction): New variable.
4028         (to_char_code): New function.
4029         (Fget_composite_char): New function.
4030         (Fput_char_attribute): Register `->decomposition' value to
4031         `Vcharacter_composition_table'.
4032         (syms_of_mule_charset): Add new function `get-composite-char', new
4033         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4034         `super' and `fraction'.
4035         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4036
4037 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4038
4039         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4040         character; copy the return value.
4041
4042 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4043
4044         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4045
4046         * mule-charset.c (range_charset_code_point): Must use make_int.
4047         (split_builtin_char): New function.
4048
4049 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4050
4051         * mule-charset.c (char_byte_table): Change name from
4052         "char-code-table" to "char-byte-table".
4053         (mark_char_code_table): New function.
4054         (char_code_table_equal): New function.
4055         (char_code_table_hash): New function.
4056         (char_code_table_description): New constant.
4057         (char_code_table): New type.
4058         (make_char_code_table): New function.
4059         (copy_char_code_table): New function.
4060         (get_char_code_table): Modify for `char_code_table' type.
4061         (put_char_code_table): Likewise.
4062         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4063         (Kashiwara).
4064
4065         * char-ucs.h (char_code_table): New type.
4066         (XCHAR_CODE_TABLE): New macro.
4067         (XSETCHAR_CODE_TABLE): New macro.
4068         (CHAR_CODE_TABLE_P): New macro.
4069         (GC_CHAR_CODE_TABLE_P): New macro.
4070         (struct Lisp_Char_Code_Table): New structure.
4071
4072 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4073
4074         * mule-charset.c (Fmake_charset): Setup byte_offset for
4075         {94|96}^n-set.
4076
4077 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4078
4079         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4080         character.
4081
4082 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4083
4084         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4085         is found.
4086
4087 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4088
4089         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4090         charset, it is regarded as a charset.
4091         (put_char_attribute): New function in UTF-2000.
4092         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4093         charset, mapping-table of the charset is modified.
4094         (Fdefine_char): New function in UTF-2000.
4095         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4096         `Fput_char_attribute'.
4097         (syms_of_mule_charset): Add new function `define-char' and new
4098         symbol `ucs' in UTF-2000.
4099         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4100
4101 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4102
4103         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4104         non-UTF-2000 configuration.
4105
4106 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4107
4108         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4109         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4110
4111         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4112         deleted.
4113         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4114         (Fset_charset_mapping_table): Likewise.
4115
4116         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4117         (CHARSET_ENCODING_TABLE): Delete.
4118         (XCHARSET_ENCODING_TABLE): Delete.
4119         (charset_code_point): New interface.
4120
4121 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4122
4123         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4124         instead of `charset_get_byte1' and `charset_get_byte2'.
4125
4126         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4127         (charset_get_byte2): Deleted.
4128
4129 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4130
4131         * char-ucs.h (SPLIT_CHAR): New inline function.
4132         (breakup_char_1): Use `SPLIT_CHAR'.
4133
4134         * mule-charset.c (range_charset_code_point): New function.
4135         (charset_code_point): New function.
4136
4137         * char-ucs.h (range_charset_code_point): New interface.
4138         (breakup_char_1): Use `range_charset_code_point'.
4139
4140 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4141
4142         * mule-charset.c (Fmake_charset): Delete unused local variable
4143         `code_offset'.
4144
4145         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4146         (breakup_char_1): Find a charset and code-point in
4147         `Vcharacter_attribute_table'.
4148
4149 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4150
4151         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4152         to 0.10 (Yao).
4153
4154 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4155
4156         * mule-charset.c (Vcharacter_attribute_table): New variable.
4157         (Fchar_attribute_alist): New function.
4158         (Fget_char_attribute): New function.
4159         (Fput_char_attribute): New function.
4160         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4161         too.
4162         (syms_of_mule_charset): Add new function `char-attribute-alist',
4163         `get-char-attribute' and `put-char-attribute'.
4164         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4165
4166 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4167
4168         * mule-charset.c (Fmake_charset): Just use
4169         `get_unallocated_leading_byte'.
4170
4171         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4172         sets; don't use final-byte based number for private sets.
4173
4174 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4175
4176         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4177         integer.
4178
4179 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4180
4181         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4182         to 0.9.
4183
4184 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4185
4186         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4187         of `CHAR_LEADING_BYTE' in UTF-2000.
4188
4189         * insdel.c (find_charsets_in_bufbyte_string): Use
4190         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4191         (find_charsets_in_emchar_string): Likewise.
4192
4193         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4194         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4195
4196         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4197         (CHAR_CHARSET_ID): New macro.
4198
4199 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4200
4201         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4202         charset-id - MIN_LEADING_BYTE.
4203         (put_char_table): Likewise.
4204
4205 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4206
4207         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4208         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4209         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4210         (CHARSET_ID_OFFSET): New macro.
4211         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4212         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4213         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4214         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4215         4).
4216         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4217         5).
4218         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4219         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4220         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4221         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4222         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4223
4224 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4225
4226         * mule-charset.c (next_allocated_leading_byte): New variable in
4227         UTF-2000.
4228         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4229         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4230         (get_unallocated_leading_byte): Simply use
4231         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4232         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4233         UTF-2000.
4234
4235         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4236         (MAX_LEADING_BYTE_PRIVATE): New macro.
4237         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4238         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4239
4240 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4241
4242         * mule-charset.c (Fmake_charset): Allocate final-byte based
4243         charset-id for 94-set, 96-set and 94x94-set.
4244
4245 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4246
4247         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4248         ambiguous `else'.
4249         (Fmake_charset): Likewise.
4250         (complex_vars_of_mule_charset): Modify the font registry of
4251         `ucs-bmp' not to match `Ethiopic-Unicode'.
4252
4253 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4254
4255         * mule-charset.c (complex_vars_of_mule_charset): Add font
4256         registory of `ucs-bmp'.
4257
4258 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4259
4260         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4261         coded-charsets in `default-coded-charset-priority-list' when
4262         breaking up a character.
4263
4264         * mule-charset.c (Vcharset_latin_viscii): New variable.
4265         (Qlatin_viscii): New variable.
4266         (make_charset): Don't use `decoding_table'.
4267         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4268         byte_offset.
4269         (Fset_charset_mapping_table): New implementation.
4270         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4271         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4272         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4273         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4274         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4275         charset `latin_viscii'.
4276
4277         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4278         (CHARSET_TYPE_94X94): Change to 1 from 2.
4279         (CHARSET_TYPE_96): Change to 2 from 1.
4280         (CHARSET_TYPE_128): New macro.
4281         (CHARSET_TYPE_128X128): Change to 5 from 4.
4282         (CHARSET_TYPE_256): New macro.
4283         (CHARSET_TYPE_256X256): Change to 7 from 5.
4284         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4285
4286 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4287
4288         * text-coding.c (char_encode_shift_jis): Refer
4289         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4290         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4291
4292         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4293         (char_byte_table_equal): New function in UTF-2000.
4294         (char_byte_table_hash): New function in UTF-2000.
4295         (char_byte_table_description): New constant in UTF-2000.
4296         (char_byte_table): New type in UTF-2000.
4297         (make_char_byte_table): New function in UTF-2000.
4298         (copy_char_byte_table): New function in UTF-2000.
4299         (make_char_code_table): New macro in UTF-2000.
4300         (get_char_code_table): New function in UTF-2000.
4301         (put_char_code_table): New function in UTF-2000.
4302         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4303         (charset_description): Add setting in UTF-2000.
4304         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4305         `CHARSET_TO_BYTE1_TABLE(cs)'.
4306         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4307         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4308         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4309         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4310         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4311         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4312         `CHARSET_TO_BYTE2_TABLE(cs)'.
4313
4314         * char-ucs.h (char_byte_table): New type.
4315         (XCHAR_BYTE_TABLE): New macro.
4316         (XSETCHAR_BYTE_TABLE): New macro.
4317         (CHAR_BYTE_TABLE_P): New macro.
4318         (GC_CHAR_BYTE_TABLE_P): New macro.
4319         (struct Lisp_Char_Byte_Table): New structure.
4320         (get_char_code_table): New interface.
4321         (Emchar_to_byte_table): Deleted.
4322         (get_byte_from_character_table): Deleted.
4323         (struct Lisp_Charset): Add `encoding_table'; delete
4324         `to_byte1_table' and `to_byte2_table'.
4325         (CHARSET_ENCODING_TABLE): New macro.
4326         (CHARSET_TO_BYTE1_TABLE): Deleted.
4327         (CHARSET_TO_BYTE2_TABLE): Deleted.
4328         (XCHARSET_ENCODING_TABLE): New macro.
4329         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4330         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4331
4332 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4333
4334         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4335         `vietnamese-viscii-*'.
4336
4337 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4338
4339         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4340         (Qvietnamese_viscii_upper): New variable.
4341         (Fdefine_charset_alias): New function.
4342         (syms_of_mule_charset): Add new function `define-charset-alias'.
4343         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4344         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4345         `latin-viscii-*'.
4346
4347 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4348
4349         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4350         (MAX_CHAR_OBS_94x94): New macro.
4351         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4352         for 94x94 sets.
4353
4354         * mule-charset.c (put_byte_from_character_table): Change unit size
4355         from 128 to 256.
4356         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4357         not defined.
4358         (Fmake_reverse_direction_charset): Modify dummy argument of
4359         `make_charset' for non-UTF-2000 environment.
4360
4361 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4362
4363         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4364
4365         * mule-charset.c (destroy_byte_from_character_table): New macro.
4366         (latin_jisx0201_to_ucs): Deleted.
4367         (latin_iso8859_2_to_ucs): Deleted.
4368         (latin_iso8859_3_to_ucs): Deleted.
4369         (latin_iso8859_4_to_ucs): Deleted.
4370         (latin_iso8859_9_to_ucs): Deleted.
4371         (latin_viscii_lower_to_ucs): Deleted.
4372         (latin_viscii_upper_to_ucs): Deleted.
4373         (mark_charset): Mark `cs->decoding_table'.
4374         (Fcharset_mapping_table): Fix DOC-string.
4375         (Fset_charset_mapping_table): New function.
4376         (syms_of_mule_charset): Add nwe function
4377         `set-charset-mapping-table'.
4378         (complex_vars_of_mule_charset): Don't setup and use
4379         `latin_*_to_ucs'.
4380
4381 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4382
4383         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4384         charset.
4385
4386 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4387
4388         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4389         (Vcharset_katakana_jisx0208): New variable.
4390         (Qhiragana_jisx0208): New variable.
4391         (Qkatakana_jisx0208): New variable.
4392         (make_charset): Add new argument `byte_offset'.
4393         (charset_get_byte1): Modify for new coded-charset definition; use
4394         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4395         `XCHARSET_BYTE_OFFSET'.
4396         (Fmake_charset): Modify for `make_charset'.
4397         (Fmake_reverse_direction_charset): Likewise.
4398         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4399         `katakana-jisx0208'.
4400         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4401         `.'  in font registry of charset `katakana-jisx0201',
4402         `latin-jisx0201', `vietnamese-viscii-lower' and
4403         `vietnamese-viscii-upper'; modify DOC-string of charset
4404         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4405         registry of charset `japanese-jisx0208' not to use font for JIS
4406         X0208:1990; add new charset `hiragana-jisx0208' and
4407         `katakana-jisx0208'.
4408
4409         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4410         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4411         (struct Lisp_Charset): Add `byte_offset'.
4412         (CHARSET_BYTE_OFFSET): New macro.
4413         (XCHARSET_UCS_MIN): New macro.
4414         (XCHARSET_UCS_MAX): New macro.
4415         (XCHARSET_CODE_OFFSET): New macro.
4416         (XCHARSET_BYTE_OFFSET): New macro.
4417         (MIN_CHAR_HIRAGANA): New macro.
4418         (MAX_CHAR_HIRAGANA): New macro.
4419         (MIN_CHAR_KATAKANA): New macro.
4420         (MAX_CHAR_KATAKANA): New macro.
4421         (MAKE_CHAR): Modify for new coded-charset definition; use
4422         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4423         `XCHARSET_BYTE_OFFSET'.
4424
4425 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4426
4427         * mule-charset.c (CHAR96): Deleted.
4428         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4429         <Lisp_Object>.
4430         (latin_iso8859_2_to_ucs): Likewise.
4431         (latin_iso8859_3_to_ucs): Likewise.
4432         (latin_iso8859_4_to_ucs): Likewise.
4433         (latin_iso8859_9_to_ucs): Likewise.
4434         (latin_viscii_lower_to_ucs): Likewise.
4435         (latin_viscii_upper_to_ucs): Likewise.
4436         (latin_tcvn5712_to_ucs): Commented out.
4437         (make_charset): Change type of argument `decoding_table' from
4438         <Emchar*> to <Lisp_Object> [vector of characters].
4439         (Fmake_charset): Modify for `make_charset'.
4440         (Fmake_reverse_direction_charset): Likewise.
4441         (Fcharset_mapping_table): New function in UTF-2000.
4442         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4443         UTF-2000.
4444         (complex_vars_of_mule_charset): Modify for type change of
4445         `*_to_ucs'; modify for `make_charset'.
4446
4447         * char-ucs.h (struct Lisp_Charset): Change type of
4448         `decoding_table' from <Emchar*> to <Lisp_Object>.
4449         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4450
4451 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4452
4453         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4454         error with non-UTF-2000-Mule.
4455
4456 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4457
4458         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4459         in lisp again].
4460         (Vcharset_chinese_cns11643_4): Likewise.
4461         (Vcharset_chinese_cns11643_5): Likewise.
4462         (Vcharset_chinese_cns11643_6): Likewise.
4463         (Vcharset_chinese_cns11643_7): Likewise.
4464         (Qchinese_cns11643_3): Likewise.
4465         (Qchinese_cns11643_4): Likewise.
4466         (Qchinese_cns11643_5): Likewise.
4467         (Qchinese_cns11643_6): Likewise.
4468         (Qchinese_cns11643_7): Likewise.
4469         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4470         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4471         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4472         (complex_vars_of_mule_charset): Likewise.
4473
4474 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4475
4476         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4477         96-set.
4478         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4479         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4480
4481 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4482
4483         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4484         0xFF60.
4485         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4486         (breakup_char_1): Likewise.
4487
4488         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4489         one of them includes the specified character.
4490
4491 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4492
4493         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4494
4495 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4496
4497         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4498
4499 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4500
4501         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4502         definition for non-UTF-2000 Mule.
4503         (latin_iso8859_3_to_ucs): Likewise.
4504         (latin_iso8859_4_to_ucs): Likewise.
4505         (latin_iso8859_9_to_ucs): Likewise.
4506         (latin_jisx0201_to_ucs): Likewise.
4507         (MIN_CHAR_THAI): Likewise.
4508         (MAX_CHAR_THAI): Likewise.
4509         (MIN_CHAR_GREEK): Likewise.
4510         (MAX_CHAR_GREEK): Likewise.
4511         (MIN_CHAR_HEBREW): Likewise.
4512         (MAX_CHAR_HEBREW): Likewise.
4513         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4514         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4515         (MIN_CHAR_CYRILLIC): Likewise.
4516         (MAX_CHAR_CYRILLIC): Likewise.
4517
4518 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4519
4520         * char-ucs.h (breakup_char_1): Use
4521         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4522         thai-tis620 and katakana-jisx0201 area.
4523
4524 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4525
4526         * char-ucs.h (breakup_char_1): Use
4527         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4528         area.
4529
4530         * text-coding.c (reset_encoding_stream): Fixed.
4531         (char_encode_ucs4): Delete `& 255'.
4532
4533         * char-ucs.h (breakup_char_1): Use
4534         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4535
4536 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4537
4538         * file-coding.c (Fmake_coding_system): Don't set up
4539         `codesys->fixed.size'.
4540         (encode_coding_no_conversion): Don't refer
4541         `str->codesys->fixed.size'.
4542
4543 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4544
4545         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4546         (latin_a_char_to_byte1): Deleted.
4547         (latin_a_char_to_byte2): Deleted.
4548
4549 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4550
4551         * mule-charset.c (make_charset): Add new argument `ucs_min',
4552         `ucs_max' and `code_offset'.
4553         (charset_get_byte1): New implementation [delete specific charset
4554         depended implementations].
4555         (Fmake_charset): Modify for `make_charset'.
4556         (Fmake_reverse_direction_charset): Likewise.
4557         (complex_vars_of_mule_charset): Likewise.
4558
4559         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4560         `code_offset'.
4561         (CHARSET_UCS_MIN): New macro.
4562         (CHARSET_UCS_MAX): New macro.
4563         (CHARSET_CODE_OFFSET): New macro.
4564         (MAKE_CHAR): Delete charset depended definitions [except
4565         katakana-jisx0201].
4566
4567 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4568
4569         * char-ucs.h (breakup_char_1): Use
4570         `Vdefault_coded_charset_priority_list' for C0-Controls,
4571         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4572
4573 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4574
4575         * char-ucs.h (charset_get_byte1): New function.
4576         (XCHARSET_GET_BYTE1): Deleted.
4577         (charset_get_byte2): New function.
4578         (XCHARSET_GET_BYTE2): Deleted.
4579         (Vdefault_coded_charset_priority_list): New external variable.
4580         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4581         `Vdefault_preferred_coded_charset_list'.
4582
4583         * mule-charset.c (charset_get_byte1): New function.
4584         (charset_get_byte2): New function.
4585         (Vdefault_coded_charset_priority_list): New variable.
4586         (vars_of_mule_charset): Add new variable
4587         `default-coded-charset-priority-list'.
4588
4589 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4590
4591         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4592         (XCHARSET_GET_BYTE2): New inline function.
4593         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4594         `XCHARSET_GET_BYTE2'.
4595
4596 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4597
4598         * mule-charset.c (make_charset): Initialize
4599         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4600         NULL if table is not defined.
4601
4602 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4603
4604         * text-coding.c (char_encode_shift_jis): Use
4605         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4606         `ucs_to_latin_jisx0201'.
4607
4608         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4609         (ucs_to_latin_iso8859_2): Deleted.
4610         (ucs_to_latin_iso8859_3): Deleted.
4611         (ucs_to_latin_iso8859_4): Deleted.
4612         (ucs_to_latin_iso8859_9): Deleted.
4613         (ucs_to_latin_viscii_lower): Deleted.
4614         (ucs_to_latin_viscii_upper): Deleted.
4615         (ucs_to_latin_tcvn5712): Deleted.
4616         (make_charset): Add new argument `decoding_table'; set up
4617         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4618         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4619         `decoding_table' is defined in UTF-2000.
4620         (Fmake_charset): Modify for `make_charset'.
4621         (Fmake_reverse_direction_charset): Likewise.
4622         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4623         and `GENERATE_96_SET'.
4624
4625         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4626         (ucs_to_latin_jisx0201): Deleted.
4627         (latin_iso8859_2_to_ucs): Deleted.
4628         (ucs_to_latin_iso8859_2): Deleted.
4629         (latin_iso8859_3_to_ucs): Deleted.
4630         (ucs_to_latin_iso8859_3): Deleted.
4631         (latin_iso8859_4_to_ucs): Deleted.
4632         (ucs_to_latin_iso8859_4): Deleted.
4633         (latin_iso8859_9_to_ucs): Deleted.
4634         (ucs_to_latin_iso8859_9): Deleted.
4635         (latin_viscii_lower_to_ucs): Deleted.
4636         (ucs_to_latin_viscii_lower): Deleted.
4637         (latin_viscii_upper_to_ucs): Deleted.
4638         (ucs_to_latin_viscii_upper): Deleted.
4639         (struct Lisp_Charset): Renamed `encoding_table' to
4640         `to_byte1_table'; add `to_byte2_table'.
4641         (CHARSET_DECODING_TABLE): New macro.
4642         (CHARSET_TO_BYTE1_TABLE): New macro.
4643         (CHARSET_TO_BYTE2_TABLE): New macro.
4644         (XCHARSET_DECODING_TABLE): New macro.
4645         (XCHARSET_TO_BYTE1_TABLE): New macro.
4646         (XCHARSET_TO_BYTE2_TABLE): New macro.
4647         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4648         tables.
4649         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4650         don't use `ucs_to_*' tables.
4651
4652 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4653
4654         * text-coding.c (Fmake_coding_system): Don't set up
4655         `codesys->fixed.size'.
4656         (encode_coding_no_conversion): Use `if' instead of `switch'.
4657
4658         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4659
4660 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4661
4662         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4663         (Fmake_charset): Modify for `make_charset'.
4664         (Fmake_reverse_direction_charset): Likewise.
4665         (complex_vars_of_mule_charset): Likewise.
4666
4667 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4668
4669         * text-coding.c (char_encode_shift_jis): Use table
4670         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4671
4672 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4673
4674         * text-coding.c (text_encode_generic): Use `if' instead of
4675         `switch'.
4676         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4677         decode JIS-Latin.
4678
4679 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4680
4681         * text-coding.c (encode_coding_sjis): Deleted.
4682         (char_encode_shift_jis): New function.
4683         (char_finish_shift_jis): New function.
4684         (reset_encoding_stream): Set up `encode_char' and `finish' for
4685         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4686         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4687         (char_encode_utf8): Treat `eol_type'.
4688
4689 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4690
4691         * file-coding.c (decode_coding_iso2022): Use
4692         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4693
4694 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4695
4696         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4697         to 0.7 (Hirano).
4698
4699 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4700
4701         * char-lb.h (CHAR_COLUMNS): New macro.
4702
4703 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4704
4705         * text-coding.c (char_encode_ucs4): New function.
4706         (char_finish_ucs4): New function.
4707         (encode_coding_ucs4): Deleted.
4708         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4709         (text_encode_generic): Delete local variable `charset' and `half'.
4710         (ucs_to_mule_table): Deleted.
4711         (mule_to_ucs_table): Deleted.
4712         (Fset_ucs_char): Deleted.
4713         (ucs_to_char): Deleted.
4714         (Fucs_char): Deleted.
4715         (Fset_char_ucs): Deleted.
4716         (Fchar_ucs): Deleted.
4717         (decode_ucs4): Deleted.
4718         (mule_char_to_ucs4): Deleted.
4719         (encode_ucs4): Deleted.
4720         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4721         (decode_coding_utf8): Likewise.
4722         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4723         (char_encode_iso2022): Fixed.
4724         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4725         `Fset_char_ucs' and `Fchar_ucs'.
4726         (complex_vars_of_file_coding): Don't initialize
4727         `ucs_to_mule_table'.
4728
4729         * objects-tty.c (tty_initialize_font_instance): Don't use
4730         `XCHARSET_COLUMNS'.
4731
4732         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4733         UTF-2000.
4734
4735         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4736         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4737
4738         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4739         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4740         (emchar_string_displayed_columns): Likewise.
4741
4742         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4743         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4744         (string_column_at_point): Likewise.
4745         (Fmove_to_column): Likewise.
4746
4747         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4748         `encoding_table' and `decoding_table'.
4749         (CHARSET_REP_BYTES): Deleted.
4750         (XCHARSET_REP_BYTES): Deleted.
4751         (XCHARSET_COLUMNS): Deleted.
4752         (CHAR_COLUMNS): New macro.
4753         (lookup_composite_char): Deleted unconditionally.
4754         (composite_char_string): Likewise.
4755
4756 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4757
4758         * char-ucs.h (Emchar_to_byte_table): New type.
4759         (get_byte_from_character_table): New function interface.
4760         (Vcharset_latin_jisx0201): New variable.
4761         (latin_jisx0201_to_ucs): New variable.
4762         (ucs_to_latin_jisx0201): New variable.
4763         (Vcharset_latin_iso8859_2): New variable.
4764         (latin_iso8859_2_to_ucs): New variable.
4765         (ucs_to_latin_iso8859_2): New variable.
4766         (Vcharset_latin_iso8859_3): New variable.
4767         (latin_iso8859_3_to_ucs): New variable.
4768         (ucs_to_latin_iso8859_3): New variable.
4769         (Vcharset_latin_iso8859_4): New variable.
4770         (latin_iso8859_4_to_ucs): New variable.
4771         (ucs_to_latin_iso8859_4): New variable.
4772         (Vcharset_latin_iso8859_9): New variable.
4773         (latin_iso8859_9_to_ucs): New variable.
4774         (ucs_to_latin_iso8859_9): New variable.
4775         (Vcharset_latin_viscii_lower): New variable.
4776         (latin_viscii_lower_to_ucs): New variable.
4777         (ucs_to_latin_viscii_lower): New variable.
4778         (Vcharset_latin_viscii_upper): New variable.
4779         (latin_viscii_upper_to_ucs): New variable.
4780         (ucs_to_latin_viscii_upper): New variable.
4781         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4782         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4783         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4784         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4785         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4786         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4787         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4788         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4789         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4790         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4791
4792         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4793         (Vcharset_latin_viscii_upper): New variable.
4794         (make_byte_from_character_table): New function.
4795         (put_byte_from_character_table): New function.
4796         (get_byte_from_character_table): New function.
4797         (CHAR96): New macro.
4798         (ucs_to_latin_jisx0201): New variable.
4799         (latin_jisx0201_to_ucs): New variable.
4800         (ucs_to_latin_iso8859_2): New variable.
4801         (latin_iso8859_2_to_ucs): New variable.
4802         (ucs_to_latin_iso8859_3): New variable.
4803         (latin_iso8859_3_to_ucs): New variable.
4804         (ucs_to_latin_iso8859_4): New variable.
4805         (latin_iso8859_4_to_ucs): New variable.
4806         (ucs_to_latin_iso8859_9): New variable.
4807         (latin_iso8859_9_to_ucs): New variable.
4808         (ucs_to_latin_viscii_lower): New variable.
4809         (latin_viscii_lower_to_ucs): New variable.
4810         (ucs_to_latin_viscii_upper): New variable.
4811         (latin_viscii_upper_to_ucs): New variable.
4812         (ucs_to_latin_tcvn5712): New variable.
4813         (latin_tcvn5712_to_ucs): New variable.
4814         (Qlatin_viscii_lower): New variable.
4815         (Qlatin_viscii_upper): New variable.
4816         (syms_of_mule_charset): Set up new symbol
4817         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4818         (complex_vars_of_mule_charset): Set up new charset
4819         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4820         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4821         `ucs_to_<CHARSET>' tables.
4822
4823 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4824
4825         * text-coding.c: New file.
4826
4827 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4828
4829         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4830
4831         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4832         (MAKE_CHAR): Modify for `ucs-bmp'.
4833         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4834         non-MULE characters of BMP.
4835
4836 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4837
4838         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4839         to 0.6.
4840
4841 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4842
4843         * lstream.h:
4844         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4845         - Include character.h for `CHAR_ASCII_P'.
4846
4847         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4848
4849         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4850         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4851
4852         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4853         (BYTE_C0_P): Likewise.
4854         (BYTE_C1_P): Likewise.
4855         (Lstream_get_emchar_1): Likewise.
4856         (Lstream_fput_emchar): Likewise.
4857         (Lstream_funget_emchar): Likewise.
4858         (copy_internal_to_external): Likewise.
4859         (copy_external_to_internal): Likewise.
4860
4861         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4862         (BYTE_C0_P): Likewise.
4863         (BYTE_C1_P): Likewise.
4864         (Lstream_get_emchar_1): Likewise.
4865         (Lstream_fput_emchar): Likewise.
4866         (Lstream_funget_emchar): Likewise.
4867         (copy_internal_to_external): Likewise.
4868         (copy_external_to_internal): Likewise.
4869
4870         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4871         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4872
4873         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4874         (BYTE_ASCII_P): Moved to mb-1byte.h.
4875
4876 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4877
4878         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4879
4880         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4881         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4882         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4883         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4884         (VALIDATE_CHARPTR_FORWARD): Likewise.
4885         (simple_charptr_emchar): Moved to mb-multibyte.h.
4886         (simple_set_charptr_emchar): Likewise.
4887         (simple_charptr_copy_char): Likewise.
4888         (non_ascii_charptr_emchar): Likewise.
4889         (non_ascii_set_charptr_emchar): Likewise.
4890         (non_ascii_charptr_copy_char): Likewise.
4891         (charptr_emchar): Moved to mb-*byte.h.
4892         (set_charptr_emchar): Likewise.
4893         (charptr_copy_char): Likewise.
4894
4895         * mb-1byte.h, mb-multibyte.h: New files.
4896
4897 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4898
4899         * mb-utf-8.h (MULTIBYTE): New macro.
4900         (MAX_EMCHAR_LEN): Moved from buffer.h.
4901         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4902
4903         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4904
4905         * mb-lb.h, multibyte.h: New files.
4906
4907         * char-1byte.h (Charset_ID): Moved from buffer.h.
4908         (MIN_LEADING_BYTE): Likewise.
4909         (LEADING_BYTE_ASCII): Likewise.
4910         (NUM_LEADING_BYTES): Likewise.
4911         (CHARSETP): Likewise.
4912         (CHARSET_BY_LEADING_BYTE): Likewise.
4913         (XCHARSET_LEADING_BYTE): Likewise.
4914         (XCHARSET_GRAPHIC): Likewise.
4915         (XCHARSET_COLUMNS): Likewise.
4916         (XCHARSET_DIMENSION): Likewise.
4917         (CHAR_CHARSET): Likewise.
4918         (CHAR_LEADING_BYTE): Likewise.
4919         (BREAKUP_CHAR): Likewise.
4920         (Vcharset_ascii): Likewise.
4921
4922         * buffer.h: Include multibyte.h unconditionally.
4923         (VALID_CHARPTR_P): Moved to multibyte.h.
4924         (ASSERT_VALID_CHARPTR): Likewise.
4925         (REAL_INC_CHARPTR): Likewise.
4926         (REAL_INC_CHARBYTIND): Likewise.
4927         (REAL_DEC_CHARPTR): Likewise.
4928         (INC_CHARPTR): Likewise.
4929         (INC_CHARBYTIND): Likewise.
4930         (DEC_CHARPTR): Likewise.
4931         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4932         (VALIDATE_CHARPTR_FORWARD): Likewise.
4933         (charptr_n_addr): Likewise.
4934         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4935         (simple_charptr_emchar): Moved to multibyte.h.
4936         (simple_set_charptr_emchar): Likewise.
4937         (simple_charptr_copy_char): Likewise.
4938         (non_ascii_charptr_emchar): Likewise.
4939         (non_ascii_set_charptr_emchar): Likewise.
4940         (non_ascii_charptr_copy_char): Likewise.
4941         (charptr_emchar): Likewise.
4942         (set_charptr_emchar): Likewise.
4943         (charptr_copy_char): Likewise.
4944         (charptr_emchar_n): Likewise.
4945         (Charset_ID): Moved to char-1byte.h.
4946         (Vcharset_ascii): Likewise.
4947         (CHAR_CHARSET): Likewise.
4948         (CHAR_LEADING_BYTE): Likewise.
4949         (LEADING_BYTE_ASCII): Likewise.
4950         (NUM_LEADING_BYTES): Likewise.
4951         (MIN_LEADING_BYTE): Likewise.
4952         (CHARSETP): Likewise.
4953         (CHARSET_BY_LEADING_BYTE): Likewise.
4954         (XCHARSET_LEADING_BYTE): Likewise.
4955         (XCHARSET_GRAPHIC): Likewise.
4956         (XCHARSET_COLUMNS): Likewise.
4957         (XCHARSET_DIMENSION): Likewise.
4958         (BREAKUP_CHAR): Likewise.
4959
4960 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4961
4962         * character.h: Add document about interface for characters.
4963
4964         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4965         (MAKE_CHAR): Delete comment about
4966         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4967         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4968         (BREAKUP_CHAR): Modify name of arguments.
4969         (CHAR_CHARSET): Modify name of argument.
4970
4971         * buffer.h: Delete document about Emchar accessors.
4972
4973 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4974
4975         * character.h (CHAR_INTP): Moved from buffer.h
4976         (CHAR_OR_CHAR_INTP): Likewise.
4977         (XCHAR_OR_CHAR_INT): Likewise.
4978         (CHECK_CHAR_COERCE_INT): Likewise.
4979
4980         * buffer.h (CHAR_INTP): Moved to character.h
4981         (CHAR_OR_CHAR_INTP): Likewise.
4982         (XCHAR_OR_CHAR_INT): Likewise.
4983         (CHECK_CHAR_COERCE_INT): Likewise.
4984
4985 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4986
4987         * character.h:
4988         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4989         - Include char-1byte.h, char-lb.h or char-ucs.h.
4990
4991         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4992
4993         * buffer.h: Include character unconditionally.
4994         (valid_char_p): Moved to char-*.h.
4995         (non_ascii_valid_char_p): Moved to char-lb.h.
4996
4997         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4998
4999 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5000
5001         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5002         in UTF-2000 because it is not ported yet and not to use
5003         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5004         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5005         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5006
5007         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5008         (CHAR_ASCII_P): Moved from character.h.
5009
5010         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5011         (CHAR_ASCII_P): Likewise.
5012         (CHAR_FIELD1_MASK): Deleted.
5013         (CHAR_FIELD2_MASK): Deleted.
5014         (CHAR_FIELD3_MASK): Deleted.
5015         (MAX_CHAR_BASIC_LATIN): New macro.
5016         (CHAR_FIELD1): Deleted.
5017         (CHAR_FIELD2_INTERNAL): Deleted.
5018         (CHAR_FIELD3_INTERNAL): Deleted.
5019         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5020         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5021         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5022         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5023         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5024         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5025         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5026         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5027         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5028         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5029         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5030         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5031         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5032         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5033         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5034         (MIN_CHAR_COMPOSITION): Deleted.
5035         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5036         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5037
5038 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5039
5040         * buffer.h: Include mb-utf-8.h in UTF-2000.
5041
5042         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5043
5044         * mb-utf-8.h: New file.
5045
5046 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5047
5048         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5049         instead of `int'.
5050
5051         * mule-charset.h, buffer.h (Charset_ID): New type.
5052
5053 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5054
5055         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5056         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5057         instead of `MULE_CHAR_PRIVATE_OFFSET',
5058         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5059         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5060         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5061
5062         * character.h (Vcharset_japanese_jisx0212): New variable
5063         definition.
5064
5065 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5066
5067         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5068         (charset_by_attributes): Delete array about direction.
5069         (latin_a_char_to_charset): New variable in UTF-2000.
5070         (latin_a_char_to_byte1): New variable in UTF-2000.
5071         (latin_a_char_to_byte2): New variable in UTF-2000.
5072         (Qucs_bmp): New variable.
5073         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5074         `Bufbyte'.
5075         (next_allocated_2_byte_leading_byte): Likewise.
5076         (non_ascii_set_charptr_emchar): Likewise.
5077         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5078         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5079         `charset_by_attributes'.
5080         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5081         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5082         and `CHARSET_BY_LEADING_BYTE'.
5083         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5084         `utf-2000-version' to `vars_of_mule_charset'.
5085         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5086         define `leading-code-private-11' in UTF-2000; move setting of
5087         `utf-2000-version' from `syms_of_mule_charset'.
5088         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5089         UTF-2000.
5090
5091         * character.h (Charset_ID): New type.
5092         (LEADING_BYTE_UCS_BMP): New macro.
5093         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5094         (CHARSET_ID_OFFSET_94): New macro.
5095         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5096         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5097         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5098         final-byte.
5099         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5100         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5101         (CHARSET_ID_OFFSET_96): New macro.
5102         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5103         CHARSET_ID_OFFSET_96 and final-byte.
5104         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5105         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5106         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5107         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5108         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5109         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5110         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5111         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5112         (LEADING_BYTE_THAI_TIS620): Likewise.
5113         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5114         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5115         (CHARSET_ID_OFFSET_94x94): New macro.
5116         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5117         CHARSET_ID_OFFSET_94x94 and final-byte.
5118         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5119         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5120         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5121         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5122         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5123         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5124         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5125         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5126         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5127         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5128         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5129         (CHARSET_TYPE_128X128): New macro.
5130         (CHARSET_TYPE_256X256): New macro.
5131         (XCHARSET_PRIVATE_P): Delete unconditionally.
5132         (charset_by_attributes): Delete array about direction.
5133         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5134         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5135         (MIN_CHAR_94): New macro.
5136         (MAX_CHAR_94): New macro.
5137         (MIN_CHAR_96): New macro.
5138         (MAX_CHAR_96): New macro.
5139         (MIN_CHAR_94x94): New macro.
5140         (MAX_CHAR_94x94): New macro.
5141         (MIN_CHAR_96x96): New macro.
5142         (MAX_CHAR_96x96): New macro.
5143         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5144         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5145         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5146         - 32)'.
5147         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5148         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5149         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5150         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5151         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5152         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5153         `XCHARSET_LEADING_BYTE' to make code-point.
5154         (latin_a_char_to_charset): New variable.
5155         (latin_a_char_to_byte1): New variable.
5156         (latin_a_char_to_byte2): New variable.
5157         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5158         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5159         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5160
5161         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5162         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5163         (find_charsets_in_emchar_string): Likewise.
5164         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5165
5166         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5167         `int'.
5168         (decode_coding_iso2022): Likewise.
5169
5170         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5171         of `unsigned char'.
5172
5173         * redisplay.c (redisplay_text_width_emchar_string): Use
5174         `Charset_ID' instead of `unsigned char'.
5175         (redisplay_frame_text_width_string): Likewise.
5176
5177         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5178         `unsigned char'.
5179
5180         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5181         instead of `unsigned char'.
5182         (face_cachel_charset_font_metric_info): Likewise.
5183
5184         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5185         (get_non_ascii_char_table_value): Likewise.
5186         (get_char_table): Likewise.
5187         (put_char_table): Likewise.
5188         (map_over_other_charset): Likewise.
5189         (map_char_table): Likewise.
5190
5191         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5192         instead of `unsigned char'.
5193
5194 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5195
5196         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5197         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5198
5199         * mule-charset.c (leading_code_private_11): Don't define in
5200         UTF-2000.
5201
5202         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5203         in UTF-2000 because it is not ported yet and not to use
5204         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5205
5206 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5207
5208         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5209
5210 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5211
5212         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5213         in UTF-2000.
5214
5215         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5216         of unsigned char to store leading-byte.
5217
5218         * chartab.c (get_non_ascii_char_table_value): Don't use
5219         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5220
5221         * file-coding.c (encode_coding_big5): Delete bogus implementation
5222         in UTF2000.
5223
5224         * character.h (LEADING_BYTE_*): Delete definition for
5225         non-UTF-2000.
5226         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5227         (LEADING_BYTE_PREFIX_P): Deleted.
5228         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5229         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5230         (BUFBYTE_LEADING_BYTE_P): Deleted.
5231         (CHARSET_PRIVATE_P): Deleted unconditionally.
5232         (rep_bytes_by_first_byte): Deleted unconditionally.
5233         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5234         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5235         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5236         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5237         (CHAR_FIELD2): Deleted.
5238         (CHAR_FIELD3): Deleted.
5239         (MAKE_CHAR): Delete definition for non-UTF-2000.
5240         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5241         (breakup_char_1): New implementation.
5242         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5243         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5244
5245 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5246
5247         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5248         condition.
5249
5250 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5251
5252         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5253         (CHARSET_PRIVATE_P): Likewise.
5254         (XCHARSET_PRIVATE_P): Likewise.
5255         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5256
5257         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5258         UTF2000.
5259         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5260
5261 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5262
5263         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5264         (NUM_LEADING_BYTES): Changed from 128 to 256.
5265         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5266         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5267         UTF2000.
5268         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5269
5270         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5271         UTF2000.
5272         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5273         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5274         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5275         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5276         (Qchinese_cns11643_3): New variable in UTF2000.
5277         (Qchinese_cns11643_4): New variable in UTF2000.
5278         (Qchinese_cns11643_5): New variable in UTF2000.
5279         (Qchinese_cns11643_6): New variable in UTF2000.
5280         (Qchinese_cns11643_7): New variable in UTF2000.
5281         (syms_of_mule_charset): Define `chinese-cns11643-3',
5282         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5283         and `chinese-cns11643-7' in UTF2000.
5284         (vars_of_mule_charset): Initialize
5285         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5286         + 1 in UTF2000.
5287         (complex_vars_of_mule_charset): Setup charset
5288         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5289         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5290
5291 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5292
5293         * mule-charset.c: Move setting for `leading-code-private-11' from
5294         `syms_of_mule_charset' to `vars_of_mule_charset'.
5295
5296 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5297
5298         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5299         and `NUM_LEADING_BYTES' in assert.
5300
5301 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5302
5303         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5304         instead of 128.
5305         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5306         `NUM_LEADING_BYTES' instead of 128.
5307
5308 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5309
5310         * mule-charset.h (charset_by_leading_byte): Use
5311         `NUM_LEADING_BYTES' instead of 128.
5312         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5313
5314         * mule-charset.c (charset_by_leading_byte): Use
5315         `NUM_LEADING_BYTES' instead of 128.
5316         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5317
5318         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5319         128.
5320
5321 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5322
5323         * mule-charset.c (syms_of_mule_charset): Update to
5324         0.4 (Shin-Imamiya).
5325
5326 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5327
5328         * file-coding.c (encode_coding_sjis): New implementation for
5329         UTF2000.  (decode_coding_sjis): Ditto.
5330
5331 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5332
5333         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5334         Don't define in UTF2000.
5335
5336         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5337         defined.
5338
5339         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5340         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5341         MULE.
5342
5343 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5344
5345         * config.h.in (CHAR_IS_UCS4): New macro.
5346
5347         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5348         conventional MULE representation.
5349         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5350
5351         * mule-charset.h: Reverted to original.
5352
5353         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5354         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5355         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5356
5357         * character.h: New file.
5358
5359         * file-coding.c (Fmake_coding_system): Set 1 to
5360         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5361         defined.
5362         (encode_coding_no_conversion): New implementation for UTF2000.
5363
5364         * file-coding.h (struct Lisp_Coding_System): Add new member
5365         `fixed.size'.
5366
5367 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5368
5369         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5370         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5371         (encode_coding_iso2022): New implementation for UTF2000.
5372
5373 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5374
5375         * mule-canna.c (c2mu): New implementation for UTF2000.
5376         (m2c): Likewise.
5377
5378 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5379
5380         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5381
5382 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5383
5384         * file-coding.c (reset_encoding_stream): Set 0 to
5385         `str->iso2022.current_char_boundary' in UTF2000.
5386         (encode_utf8): Don't define in UTF2000.
5387         (encode_coding_utf8): New implementation for UTF-8 representation
5388         of UTF2000.
5389         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5390
5391 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5392
5393         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5394
5395         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5396         UTF2000.
5397         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5398
5399         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5400
5401         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5402         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5403         as UTF-8 in UTF2000.
5404         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5405         (non_ascii_valid_char_p): Don't define in UTF2000.
5406         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5407         (Lstream_get_emchar_1): Likewise.
5408         (utf-2000-version): New variable in UTF2000.
5409
5410         * lread.c (read_escape): Add new reader `u'.
5411
5412         * insdel.c (three_to_one_table): Don't define in UTF2000.
5413         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5414         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5415         UTF2000.
5416         (bytind_to_bufpos_func): Likewise.
5417         (buffer_mule_signal_inserted_region): Likewise.
5418         (vars_of_insdel): Don't initialize `three_to_one_table'.
5419         (init_buffer_text): Use `buf->text->mule_size' instead of
5420         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5421         UTF2000.
5422
5423         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5424         UTF-8 representation in UTF2000.
5425         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5426         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5427         (decode_coding_iso2022): Don't define local variable `lb' in
5428         UTF2000; don't use LEADING_BYTE in UTF2000; use
5429         `DECODE_ADD_UCS_CHAR' in UTF2000.
5430         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5431
5432         * config.h.in (UTF2000): New macro.
5433
5434         * buffer.h (struct buffer_text): Add new member `mule_size' and
5435         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5436         (valid_char_p): Return always 1 in UTF2000.
5437         (MAX_EMCHAR_LEN): 6 in UTF2000.
5438         (three_to_one_table): Don't define in UTF2000.
5439         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5440         UTF2000.
5441         (real_bytind_to_bufpos): Likewise.
5442
5443         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5444
5445 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5446
5447         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5448         representation change.
5449         (Vutf_2000_version): New variable.
5450         (leading_code_private_11): New variable.
5451         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5452         `leading-code-private-11'.
5453
5454         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5455         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5456         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5457         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5458         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5459         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5460         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5461         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5462         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5463         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5464         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5465         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5466         (MIN_CHAR_GREEK): New macro.
5467         (MAX_CHAR_GREEK): New macro.
5468         (MIN_CHAR_CYRILLIC): New macro.
5469         (MAX_CHAR_CYRILLIC): New macro.
5470         (MIN_CHAR_HEBREW): New macro.
5471         (MAX_CHAR_HEBREW): New macro.
5472         (MIN_CHAR_THAI): New macro.
5473         (MAX_CHAR_THAI): New macro.
5474         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5475         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5476         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5477         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5478         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5479         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5480         (CHAR_FIELD2): New inline function.
5481         (CHAR_FIELD3): New inline function.
5482         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5483         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5484         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5485         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5486         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5487         (MIN_CHAR_COMPOSITION): Likewise.
5488         (CHAR_LEADING_BYTE): Modified for character representation change.
5489         (MAKE_CHAR): Likewise.
5490
5491         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5492         (Vcharset_greek_iso8859_7): Likewise.
5493         (Vcharset_cyrillic_iso8859_5): Likewise.
5494         (Vcharset_hebrew_iso8859_8): Likewise.
5495         (Vcharset_thai_tis620): Likewise.
5496         (Vcharset_katakana_jisx0201): Likewise.
5497
5498 2004-02-02  Vin Shelton <acs@xemacs.org>
5499
5500         * XEmacs 21.4.15 is released
5501
5502 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
5503
5504         * device-x.c (x_error_handler): Don't call stderr_out
5505
5506 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
5507
5508         * buffer.c (other-buffer): Clarify documentation of order of
5509         arguments for FSF Emacs.
5510
5511 2003-10-11  Olivier Galibert  <galibert@pobox.com>
5512
5513         * window.c (Fdelete_window): Dirty the mirror structure _before_
5514         marking the window deleted.
5515
5516 2003-09-15  Jerry James  <james@xemacs.org>
5517
5518         * event-msw.c (debug_mswin_messages): Conditionally compile
5519         messages missing from the Cygwin headers.
5520
5521 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
5522
5523         * data.c (eq_with_ebola_notice): Fix typo in comment.
5524         (Ftrue_list_p): Improve docstring.
5525
5526 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
5527
5528         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
5529
5530 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
5531
5532         * search.c (trivial_regexp_p): Regexps containing "\{" are
5533         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
5534         Stefan Monnier for suggesting a diagnosis.
5535
5536 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
5537
5538         * elhash.c (make-hash-table): Clarify use of :test #'equal.
5539
5540 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
5541
5542         * search.c (Fsearch_forward):
5543         (Fsearch_backward):
5544         Document negative count.
5545
5546 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
5547
5548         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
5549
5550 2003-09-13  Martin Buchholz  <martin@xemacs.org>
5551
5552         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
5553
5554 2003-09-15  Vin Shelton  <acs@xemacs.org>
5555
5556         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
5557         21.5.
5558
5559 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
5560
5561         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
5562         (re_search_2): Match the first byte of Bufbyte, not Emchar.
5563         (re_match_2_internal): Use TRANSLATE instead of
5564         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
5565         non-ASCII char case conversion.
5566
5567 2003-09-08  Mike Sperber  <mike@xemacs.org>
5568
5569         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
5570         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
5571
5572 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
5573
5574        * .gdbinit (pobj): fix printing of symbol name.
5575
5576 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
5577
5578         * frame-x.c (x_layout_widgets): When resizing is about to cause
5579         frame size slip, mark it for redisplay.
5580
5581 2003-08-18  Jerry James  <james@xemacs.org>
5582
5583         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
5584
5585 2003-09-03  Vin Shelton <acs@xemacs.org>
5586
5587         * XEmacs 21.4.14 is released
5588
5589 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5590
5591         * config.h.in (REGEX_MALLOC): Make it configure'able.
5592
5593 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5594
5595         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5596         linking.
5597         * sysdll.c (dll_init):
5598         * sysdll.c (dll_open):
5599         * sysdll.c (dll_close):
5600         * sysdll.c (dll_function):
5601         * sysdll.c (dll_variable):
5602         * sysdll.c (dll_error):
5603         Add support for loading bundles using Darwin/MacOSX
5604         native API.
5605
5606 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5607
5608         * process.c (start-process-internal): Document coding systems.
5609
5610 2003-07-30  Jerry James  <james@xemacs.org>
5611
5612         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5613
5614 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5615
5616         * event-msw.c (mswindows_enqueue_mouse_button_event):
5617         * event-msw.c (mswindows_wnd_proc):
5618           enqueue button event when scrollwheel event isn't handled by 
5619           mswindows_handle_mousewheel_event, such as when the scrollbars
5620           are not showing.
5621
5622 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5623
5624         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5625
5626 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5627
5628         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5629
5630 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5631
5632         * regex.c (re_match_2_internal): Fix matching degenerate word
5633         boundaries.
5634
5635 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5636
5637         * XEmacs 21.4.13 is released
5638
5639 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5640
5641         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5642         * lisp.h (<inttypes.h>):
5643         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5644         the definition.
5645
5646 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5647
5648         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5649         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5650         Result: "temacs can only be run in -batch mode."
5651         Fix: Check xemacs executable candidate for directory-ness.
5652
5653 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5654
5655         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5656           they conflict with <sys/types.h>.
5657
5658 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5659
5660         * database.c: Berkeley DB wants __STDC__ to be defined.
5661
5662 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5663
5664         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5665
5666 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5667
5668         * process-unix.c (unix_send_process): Fix C++ compile error.
5669
5670 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5671
5672         * Added .dylib as an acceptable shared library file extension
5673         * to support MacOSX.
5674
5675 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5676
5677         * EmacsFrameP.h (EmacsFramePart):
5678         Kludge to allow compiling with Motif1, but linking with Motif2.
5679
5680 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5681
5682         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5683
5684
5685 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5686
5687         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5688
5689 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5690
5691         * sysdll.c: Included lisp.h to define needed alloca_array.
5692
5693 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5694
5695         Make XEmacs redisplay 10 times faster.
5696         If, that is, you're using a slow X connection and MoveOpaque.
5697         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5698         Use compress_motion = TRUE.
5699         * EmacsFrame.c (emacsFrameClassRec): 
5700         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5701         * EmacsManager.c (emacsManagerClassRec):
5702         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5703
5704 2003-01-30  Vin Shelton  <acs@xemacs.org>
5705
5706         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5707
5708 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5709
5710         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5711         Patch by Martin Buchholz.
5712
5713 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5714
5715         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5716         Thanks to icc for warning and Martin Buchholz for reporting.
5717
5718 2003-01-29  Vin Shelton <acs@xemacs.org>
5719
5720         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5721
5722         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5723         remember to multiply by the element size.
5724
5725 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5726
5727         * XEmacs 21.4.12 "Portable Code" is released.
5728
5729 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5730
5731         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5732         * s/cygwin.sc: new linker file.
5733
5734 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5735
5736         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5737
5738         * redisplay-x.c (x_output_string): Use X11-specified types.
5739         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5740         * emacs.c (__free_hook): Use typeof with Intel compiler.
5741         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5742
5743 2003-01-08  Andy Piper  <andy@xemacs.org>
5744
5745         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5746         reserve size during unexec().
5747
5748 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5749
5750         * process-unix.c (unix_create_process): Don't let outchannel block.
5751
5752 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5753
5754         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5755         Needed for IsBadReadPtr().
5756
5757 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5758
5759         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5760
5761 2002-12-14  Ben Wing  <ben@xemacs.org>
5762
5763         * callint.c: Declaration error.
5764         * dumper.c (pdump):
5765         * dumper.c (pdump_load): Warning fix.
5766         * process.c: GCPRO error.
5767         * glyphs.c (unmap_subwindow):
5768         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5769         * event-stream.c (maybe_kbd_translate): Wrong argument to
5770         character_to_event().
5771
5772         * alloc.c (garbage_collect_1):
5773         * emacs.c:
5774         * emacs.c (debug_can_access_memory):
5775         * emacs.c (fatal_error_signal):
5776         * emacs.c (mswindows_handle_hardware_exceptions):
5777         * emacs.c (main_1):
5778         * emacs.c (main):
5779         * emacs.c (assert_failed):
5780         * emacs.c (syms_of_emacs):
5781         * lisp.h:
5782         * print.c:
5783         * print.c (std_handle_out_va):
5784         * print.c (write_string_to_stdio_stream):
5785         * print.c (write_fmt_string):
5786         * print.c (printing_badness):
5787         * print.c (printing_major_badness):
5788         * print.c (print_internal):
5789         * print.c (debug_print_no_newline):
5790         * print.c (debug_backtrace):
5791         Be more defensive in handling bad values when printing.  Add code
5792         from trunk involving inhibit_non_essential_printing_operations.
5793         When going down or in debug_print(), don't do external conversion
5794         and such and try really, really hard when printing to avoid core
5795         dumping.  Add force-debugging-signal, debug_break().
5796
5797 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5798
5799         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5800         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5801
5802 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5803
5804         * database.c: Fix open_database. Berkeley DB API has changed in
5805         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5806
5807 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5808
5809         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5810
5811 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5812
5813         * event-Xt.c (Xt_timeout):
5814         (Xt_timeout_callback):
5815         (emacs_Xt_add_timeout):
5816         (emacs_Xt_remove_timeout):
5817         (Xt_timeout_to_emacs_event):
5818         Turn completed_timeouts from a stack into a queue.  Fixes
5819         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5820
5821 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5822
5823         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5824         * emacs.c (main): Assert that mmap'd allocation is disabled.
5825
5826 2002-10-14  Andy Piper  <andy@xemacs.org>
5827
5828         * glyphs-widget.c (layout_query_geometry): add in fiddle
5829         factor. Include border text in width layout calculation.
5830         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5831
5832 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5833
5834         * XEmacs 21.4.10 "Military Intelligence" is released.
5835
5836 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5837
5838         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5839         using the NAS private array SoundFileInfo that no longer exists in
5840         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5841         and earlier.  This is broken for some versions between 1.5a and
5842         1.5f.
5843
5844 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5845
5846         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5847
5848         * emacs.c (shut_down_emacs): Improve crash message.
5849
5850 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5851
5852         * file-coding.c (determine_real_coding_system): Check for coding
5853         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5854         shebangs and Python PEP 263.
5855
5856 2002-10-08  Andy Piper  <andy@xemacs.org>
5857
5858         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5859         if static sizes haven't been set.
5860
5861 2002-08-30  Mike Alexander  <mta@arbortext.com>
5862
5863         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5864         to close a socket.
5865
5866 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5867
5868         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5869
5870 2002-09-20  Mike Sperber <mike@xemacs.org>
5871
5872         (This partially gets back my patch from 2002-07-20 without the
5873         bug.)
5874         * callproc.c (child_setup): Remove Ben's comment noting confusion
5875         over the file descriptors >= 3: close_process_descs() doesn't
5876         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5877         * process-unix.c (unix_create_process): Call
5878         begin_dont_check_for_quit to inhibit unwanted interaction (and
5879         thus breaking of X event synchronicity) in the child.
5880
5881 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5882
5883         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5884         widget.
5885
5886 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5887
5888         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5889         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5890         the xemacs process did not exit, but looped infinitely here.  This
5891         fixes that problem.
5892
5893 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5894
5895         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5896         (find_context): Improve comments.
5897
5898         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5899         (re_match_2): An XCHAR_TABLE operation was missing.
5900
5901         Many of the following changes were inspired by Andy Piper's (now
5902         obsolete) patch to make syntax-table text property lookup optional.
5903
5904         [Documentation]
5905
5906         * syntax.h (top level): Document semantics of syntax flags.
5907         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5908         * syntax.c, syntax.h (top level): Document syntax cache better in
5909         comments.
5910
5911         [Instrument syntax caching (temporary change)]
5912
5913         * syntax.h (enum syntax_cache_statistics_functions, struct
5914         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5915         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5916         * syntax.c (scan_words, Fforward_comment, scan_lists,
5917         Fbackward_prefix_characters):
5918         * font-lock.c (find_context):
5919         Use them to instrument syntax caching. 
5920         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5921         syntax_cache_statistics_function_names): New type and variables.
5922         * syntax.c (update_syntax_cache): Update and report statistics.
5923
5924         [Major syntax cache optimizations]
5925
5926         syntax.c (lookup_syntax_properties): Default off.
5927
5928         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5929         * syntax.c (update_syntax_cache):
5930         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5931
5932         [Minor syntax cache optimizations and code clarifications]
5933
5934         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5935         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5936         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5937         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5938         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5939         (Code clarification.)
5940
5941         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5942         scan_lists): Compute code from syncode, use Boolean macros instead
5943         of redundant masking operations.  (Code clarification; any decent
5944         compiler can do this optimization.)
5945
5946         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5947         for clarity.
5948
5949         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5950         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5951         use F*_single_property_change instead of F*_extent_change.
5952         Currently F*_single_property_change is _much_ less efficient.
5953
5954         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5955         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5956         syntax_cache.object properly, don't leave Qt or Qnil.
5957         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5958         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5959         tests for Qt or Qnil.
5960
5961 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5962
5963         * redisplay.c (point_in_line_start_cache): 
5964         * extents.c (print_extent_1):
5965         Fix warnings.
5966
5967         * extents.c (Fset_extent_property): Document `syntax-table' property.
5968
5969         * extents.h (Fnext_single_property_change): EXFUN it.
5970
5971 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5972
5973         * search.c (clear_unused_search_regs): New static function.
5974         (search_buffer): 
5975         (simple_search): 
5976         (boyer_moore):
5977         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5978         Minor clarifications in comments.
5979
5980         * regex.c (re_match_2_internal): Ensure no stale submatches.
5981
5982 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5983
5984         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5985
5986 2002-08-29  Jerry James  <james@xemacs.org>
5987
5988         * lisp.h: structrures -> structures.
5989
5990 2002-06-03  Andy Piper  <andy@xemacs.org>
5991
5992         * frame.c (frame_conversion_internal): add conversion appropriate
5993         for setting frame dimensions in pixels.
5994
5995         * console.h (struct console_methods): add device-specific widget
5996         layout functions.
5997
5998         * emacs.c (main_1): initialize glyph vars.
5999
6000         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
6001         (handle_focus_event_2): new function. Allow focus to
6002         be set to a particular window and widget.
6003         (enqueue_focus_event): new function. Create a
6004         synthetic focus event.
6005         (emacs_Xt_handle_magic_event): call
6006         handle_focus_event_2.
6007
6008         * frame.c (Fset_frame_pixel_height): new function. Allow
6009         pixel-based sizing. Does the right thing on character-oriented
6010         displays.
6011         (Fset_frame_pixel_width): ditto.
6012         (Fset_frame_pixel_size): ditto.
6013         (syms_of_frame): declare.
6014
6015         * general-slots.h: add :vertically-justify and
6016         :horizontally-justify.
6017
6018         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
6019         (mswindows_widget_border_width): new function.
6020         (mswindows_combo_box_instantiate): set border widths.
6021         (console_type_create_glyphs_mswindows): declare.
6022
6023         * glyphs-widget.c:
6024         (check_valid_justification): allow vertical and horizontal
6025         justification.
6026         (widget_border_width): new function. Call device methods.
6027         (widget_instance_border_width): ditto.
6028         (logical_unit_height): new function. Determine the height of a
6029         logical-unit. Logical units are intended to provide grid-like
6030         layout for subcontrols in a layout. If the layout is
6031         :vertically-justify top then subcontrols will be positioned on
6032         logical-unit boundaries, thus allowing adjacent subcontrols to
6033         line up.
6034         (widget_logical_unit_height): ditto for widgets.
6035         (redisplay_widget): misc cleanup.
6036         (widget_spacing): new function. Call device specific
6037         methods. Intended to be the default gap between adjacent widgets.
6038         (widget_query_geometry): use new spacing functions to determine
6039         appropriate geometry.
6040         (initialize_widget_image_instance): initialize horizontal and
6041         vertical justification.
6042         (widget_instantiate): use logica-units where appropriate for
6043         sizing large widgets.
6044         (button_query_geometry): use widget_instance_border_width.
6045         (tree_view_query_geometry): ditto.
6046         (tab_control_query_geometry): ditto.
6047         (edit_field_query_geometry): new function.
6048         (layout_update): pick up :justify, :horizontally-justify and
6049         :vertically-justify none of which worked previously. :justify is
6050         used as a fallback for both horizontal and vertical justification.
6051         (layout_query_geometry): use logical units to size appropriately.
6052         (layout_layout): ditto.
6053         (Fwidget_logical_to_character_width): new function. Allow users to
6054         convert from logical units to characters so that frame sizes can
6055         be set appropriately.
6056         (Fwidget_logical_to_character_height): ditto.
6057         (syms_of_glyphs_widget): declare.
6058         (image_instantiator_edit_fields): add edit_field_query_geometry.
6059         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
6060         :horizontally-justify.
6061         (specifier_vars_of_glyphs_widget): new function. Declare
6062         Vwidget_border_width which is not yet used.
6063
6064         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
6065         (x_widget_border_width): new function.
6066         (x_widget_instantiate): create a sensible name for widgets.
6067         (console_type_create_glyphs_x): declare x_widget_border_width.
6068
6069         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
6070         (struct Lisp_Image_Instance): add :vertically-justify and
6071         :horizontally-justify.
6072         (LAYOUT_JUSTIFY_TOP): new.
6073         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
6074         (ROUND_UP): new macro. Round argument up to next integral
6075         interval.
6076
6077         * redisplay-output.c (redisplay_output_layout): misc formatting.
6078
6079         * symsinit.h: declare specifier_vars_of_glyphs_widget.
6080
6081 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
6082
6083         * XEmacs 21.4.9 "Informed Management" is released.
6084
6085 2002-08-19  Andy Piper  <andy@xemacs.org>
6086
6087         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
6088         win32 format.
6089
6090         * realpath.c (xrealpath): normalize drive spec also so that dir
6091         sep chars are not mixed on cygwin.
6092
6093 2002-08-06  Jerry James  <james@xemacs.org>
6094
6095         * window.c (Fsplit_window): Count only half of the divider width
6096         against the left window when splitting horizontally. 
6097
6098 2002-06-24  Andy Piper  <andy@xemacs.org>
6099
6100         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
6101         toolbar was cleared.
6102
6103         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
6104         function. Split out from mswindows_output_frame_toolbars.
6105         (mswindows_output_frame_toolbars): move clear pieces to
6106         mswindows_output_frame_toolbars.
6107
6108         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
6109         out from gtk_output_frame_toolbars.
6110         (gtk_output_frame_toolbars): move clear pieces to
6111         gtk_clear_frame_toolbars.
6112
6113         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
6114         the frame is cleared. How this ever worked before is a mystery.
6115         (x_output_frame_toolbars): Only output toolbars.
6116         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
6117
6118         * gutter.c (update_gutter_geometry):
6119         Mark frame layout changed.
6120         (update_frame_gutter_geometry, update_frame_gutters):
6121         Respect frame_layout_changed.
6122
6123         * console.h (struct console_methods): add
6124         clear_frame_toolbars_method.
6125
6126         * redisplay.c (redisplay_frame): call
6127         update_frame_toolbars_geometry and re-order update_frame_toolbars.
6128
6129         * toolbar.h: declare update_frame_toolbars_geometry.
6130
6131         * toolbar.c (update_frame_toolbars_geometry): new function. Split
6132         out from update_frame_toolbars.  Call clear_frame_toolbars.
6133         (update_frame_toolbars): only output, do not change geometry.
6134
6135         * redisplay.c: add frame_layout_changed.
6136
6137         * redisplay.h: add frame_layout_changed.
6138         (CLASS_RESET_CHANGED_FLAGS): set it.
6139         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
6140         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
6141         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
6142
6143         * device.h (struct device): add frame_layout_changed.
6144         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
6145
6146         * frame.h (struct frame): add frame_layout_changed.
6147         (MARK_FRAME_LAYOUT_CHANGED): new.
6148
6149 2002-06-30  Mike Alexander  <mta@arbortext.com>
6150
6151         * event-msw.c (mswindows_need_event): Don't wait for a new message
6152         if the queue is not empty.  Suggested by Paul Moore.
6153
6154 2002-06-12  Andy Piper  <andy@xemacs.org>
6155
6156         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
6157         for printing on accurately.
6158
6159 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
6160
6161         * event-msw.c (mswindows_wnd_proc): Add a handler for the
6162         WM_ACTIVATE message. Make sure that the frame is visible if the
6163         window is visible. This seemss to fix the problem where XEmacs
6164         appears to freeze after switching desktops with certain virtual
6165         window managers.
6166         (debug_output_mswin_message): Added code to output message
6167         parameters for WM_WINDOWPOSCHANGED, 
6168         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
6169
6170 2002-05-25  Andy Piper  <andy@xemacs.org>
6171
6172         * select-x.c (vars_of_select_x): Fix docstring of
6173         x-selection-strict-motif-ownership
6174
6175 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6176
6177         * keymap.c (get_keymap):
6178         Add comment about do_autoload GCPROs own args.
6179
6180 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6181
6182         * bytecode.c (execute_optimized_program): check_opcode ifdef
6183         ERROR_CHECK_BYTE_CODE.
6184
6185 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6186
6187         Thanks to Ben Wing and Michael Sperber.
6188
6189         * eval.c (Fcommand_execute):
6190         (Feval):
6191         (Ffuncall):
6192         (Fmacroexpand_internal):
6193         (function_argcount):
6194         callint.c (Fcall_interactively):
6195         Add comment about do_autoload GCPROs own args.
6196
6197         * (do_autoload): GCPRO both args as well as local Lisp_Object.
6198
6199         * eval.c (Ffuncall): Extra braces to placate GCC.
6200
6201 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
6202
6203         * backtrace.h (grow_specpdl):
6204         (SPECPDL_RESERVE):
6205         * EmacsFrame.c (EmacsFrameSetValues):
6206         * eval.c (grow_specpdl):
6207         * ExternalShell.c (hack_event_masks_1):
6208         * glyphs-x.c (convert_EImage_to_XImage): 
6209         (x_finalize_image_instance):
6210         * ralloc.c (page_size):
6211         (r_alloc_sbrk):
6212         * xgccache.c (gc_cache_hash):
6213         Fix unsigned comparison warnings.
6214
6215 2002-07-29  Jerry James  <james@xemacs.org>
6216
6217         * lread.c (locate_file): Any nonnegative return value indicates
6218         success if MODE is nonnegative.
6219
6220 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
6221
6222         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
6223         argument. 
6224
6225 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
6226
6227         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
6228
6229         * dumper.c (pdump_get_indirect_count):
6230         (pdump_scan_by_alignment):
6231         (pdump_dump_root_struct_ptrs):
6232         (pdump_dump_rtables):
6233         (pdump_dump_root_objects):
6234         (pdump):
6235         * nas.c (WaveOpenDataForReading):
6236         * fns.c (print_bit_vector):
6237         * font-lock.c (SINGLE_SYNTAX_STYLE):
6238         * glyphs.c (check_for_ignored_expose):
6239         (find_matching_subwindow):
6240         * glyphs-eimage.c:
6241         * imgproc.c (get_histogram):
6242         * redisplay.c (point_in_line_start_cache):
6243         * redisplay-output.c (redisplay_unmap_subwindows):
6244         * symbols.c (defsymbol_massage_name_1):
6245         (defkeyword_massage_name):
6246         (deferror_massage_name_and_message):
6247         * redisplay-x.c (x_output_string): 
6248         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
6249         * frame.h (struct frame):
6250         * filelock.c (current_lock_owner):
6251         * doprnt.c (emacs_doprnt_1):
6252         * lisp.h (struct Lisp_Bit_Vector):
6253         (DO_REALLOC):
6254         Fix warnings.
6255
6256 2002-02-13  Ben Wing  <ben@xemacs.org>
6257
6258         * event-stream.c (reset_key_echo):
6259         * event-stream.c (reset_this_command_keys):
6260         * event-stream.c (execute_command_event):
6261         If console is dead as a result of C-x 5 0, then post-command stuff
6262         needs to be careful and do only non-console-specific stuff.
6263
6264 2002-07-01  Mike Sperber <mike@xemacs.org>
6265
6266         * process-unix.c (unix_send_process): Mark coding_outstream as
6267         non-open upon SIGPIPE.
6268
6269         * event-stream.c (Fnext_event): Reorder switch cases to something
6270         that makes sense.
6271
6272 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
6273
6274         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
6275         Don't bogusly reinitialize ascii_character property.
6276
6277 2002-07-08  Mike Sperber <mike@xemacs.org>
6278
6279         * process.c (Fstart_process_internal): Do error checking before we
6280         fork off the child, so the child can't muck with the state of the
6281         parent.
6282
6283 2002-07-08  Mike Sperber <mike@xemacs.org>
6284
6285         * ralloc.c (init_ralloc): Allocate properly for pdump.
6286
6287 2002-06-12  Andy Piper  <andy@xemacs.org>
6288
6289         * glyphs.c (query_string_geometry): check the string.
6290
6291         * glyphs-widget.c (widget_logical_unit_height): cope with nil
6292         widget names.
6293
6294 2002-06-17  Jerry James  <james@xemacs.org>
6295
6296         * sysdll.c: Remove RTLD_GLOBAL initialization.
6297         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
6298
6299 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
6300
6301         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
6302
6303 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
6304
6305         * sysdep.c (sys_rename): Make sys_rename work for the case where
6306         Windows rename sets errno to EACCES if target file exists.
6307
6308 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
6309
6310         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6311         Fix detection of metric units to work on Win95
6312
6313 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
6314
6315         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
6316
6317 2002-04-25  Andy Piper  <andy@xemacs.org>
6318
6319         * redisplay.c (create_text_block): Remove extra comment trailer.
6320
6321 2002-04-24  Andy Piper  <andy@xemacs.org>
6322
6323         * redisplay.c (create_text_block): Don't actually add propagation
6324         data if the line ends after we have added a glyph.
6325
6326 2002-04-22  Andy Piper  <andy@xemacs.org>
6327
6328         * extents.c (extent_fragment_update): check for glyphs we have
6329         previously displayed.
6330         * extents.c (print_extent_1): warning removal.
6331         * extents.h: change prototype.
6332         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
6333         widths correctly for wide glyphs.
6334         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
6335         * redisplay.c (prop_type): add PROP_GLYPH.
6336         * redisplay.c (struct prop_block): add glyph type
6337         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
6338         to the propagation data.
6339         * redisplay.c (create_text_block): if there is a glyph in the
6340         propagation data use it to salt extent_fragment_update.
6341         * redisplay.c (create_string_text_block): ditto.
6342
6343 2002-04-13  Nix  <nix@esperi.demon.co.uk>
6344
6345         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
6346         * redisplay-output.c (compare_runes): Compare them.
6347         * redisplay.c: Update copyright date.
6348         * redisplay.c (pos_data): Add need_baseline_computation field.
6349         * redisplay.c (add_glyph_rune): Update ascent, descent, and
6350         need_baseline_computation; zero yoffset. Set max_pixmap_height
6351         for all pixmaps, not just automatically positioned ones.
6352         * redisplay.c (calculate_yoffset): New, compute yoffset values.
6353         * redisplay.c (calculate_baseline): New, compute textual baseline.
6354         * redisplay.c (add_glyph_rune): Call them.
6355         * redisplay.c (create_text_block): Likewise.
6356         * redisplay.c (create_overlay_glyph_block): Likewise.
6357         * redisplay.c (add_margin_runes): Likewise.
6358         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
6359
6360         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
6361         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
6362         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
6363         * redisplay-msw.c (mswindows_output_string): Likewise.
6364         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
6365         * redisplay-gtk.c (gtk_output_display_block): Likewise.
6366         * redisplay-x.c (x_output_display_block): Likewise.
6367
6368 2002-03-28  Ben Wing  <ben@xemacs.org>
6369
6370         * redisplay.c: Fixed bug in redisplay
6371         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
6372         and down of the lines, since they're bigger than the line
6373         size. (It was seen most obviously when there's a horizontal scroll
6374         bar, e.g. do C-h a glyph or something like that.) The problem was
6375         that the glyph-contrib-p setting on glyphs was ignored even if it
6376         was set properly, which it wasn't until now.
6377
6378 2002-04-24  Andy Piper  <andy@xemacs.org>
6379
6380         * lisp.h (Dynarr_end): Fix definition.
6381
6382 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
6383
6384         * redisplay.c (mark_redisplay): Remove call to
6385         update_frame_window_mirror.
6386
6387 2001-11-15  Andy Piper  <andy@xemacs.org>
6388
6389         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
6390         cygwin (again).
6391
6392 2002-02-13  Andy Piper  <andy@xemacs.org>
6393
6394         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
6395         we did in fact enqueue the XM_MAPFRAME event.
6396
6397 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
6398
6399         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
6400         to fix problem switching between virtual desktops under virtuawin
6401         virtual window manager.
6402
6403 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
6404
6405         * event-msw.c: Typo fix.
6406         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
6407         magic XM_MAPFRAME event has been sent.
6408
6409 2001-11-23  Andy Piper  <andy@xemacs.org>
6410
6411         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
6412
6413 2001-11-21  Andy Piper  <andy@xemacs.org>
6414
6415         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
6416         mouse events outside the frame.
6417
6418 2002-03-20  Andy Piper  <andy@xemacs.org>
6419
6420         * menubar-msw.c (mswindows_popup_menu): warning removal.
6421         * dialog-msw.c (dialog_popped_down): ditto.
6422
6423 2001-12-11  Andy Piper  <andy@xemacs.org>
6424
6425         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6426         * dialog-msw.c (mswindows_make_dialog_box_internal): set
6427         popup_up_p.
6428         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6429         * menubar-msw.c (mswindows_handle_wm_command): ditto.
6430         * menubar-msw.c (mswindows_popup_menu): ditto.
6431
6432 2001-10-29  Andy Piper  <andy@xemacs.org>
6433
6434         * dialog-msw.c (handle_directory_dialog_box): quit if the user
6435         cancels.
6436
6437 2002-01-03  Andy Piper  <andy@xemacs.org>
6438
6439         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6440         letters.
6441         (xrealpath): ditto.
6442
6443 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6444
6445         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6446         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6447         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6448         Detect and handle case where machine is set up for metric units
6449
6450 2002-04-02  Andy Piper  <andy@xemacs.org>
6451
6452         * dired-msw.c (mswindows_get_files): 
6453         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6454         completely handled by XEmacs. Suggested by Thomas Vogler
6455         <mail@thomas-vogler.de>.
6456
6457 2001-11-14  Andy Piper  <andy@xemacs.org>
6458
6459         * nt.c (REG_ROOT): change registry key to XEmacs.
6460
6461 2002-04-27  Andy Piper  <andy@xemacs.org>
6462
6463         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6464
6465 2002-04-26  Andy Piper  <andy@xemacs.org>
6466
6467         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6468         behavior.
6469
6470 2002-03-14  Mike Alexander  <mta@arbortext.com>
6471
6472         * event-msw.c (mswindows_unwait_process): New, remove process from
6473         wait list
6474         * process-nt.c (nt_finalize_process_data): Call
6475         mswindows_unwait_process
6476         * console-msw.h: Declare mswindows_unwait_process
6477
6478 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6479
6480         * editfns.c (Fdecode_time):
6481         (Fformat_time_string):
6482         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6483         (make_time): Warning elimination (change arg name).
6484
6485 2001-11-24  Andy Piper  <andy@xemacs.org>
6486
6487         * window.c (Fsplit_window): Doc return type.
6488
6489 2002-04-01  Andy Piper  <andy@xemacs.org>
6490
6491         * emacs.c (Fkill_emacs): Only output message box in interactive
6492         mode.
6493
6494 2002-04-26  Andy Piper  <andy@xemacs.org>
6495  
6496         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6497         cygwin.
6498
6499 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6500
6501         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6502         bit platform.
6503
6504 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6505
6506         * XEmacs 21.4.8 "Honest Recruiter" is released.
6507
6508 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6509
6510         Supersedes 2002-04-17 patch.
6511
6512         * process.h (PROCESS_LIVE_P): Use the process status as
6513         evidence of health, not the state of the input stream.
6514         (PROCESS_READABLE_P): Say if the process is readable
6515         from. (It may be dead nonetheless.)
6516         (CHECK_READABLE_PROCESS): Test for that condition.
6517
6518         * process.c (create_process): Use PROCESS_READABLE_P.
6519         (read_process_output, set_process_filter): Likewise.
6520
6521         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6522         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6523
6524         This code is #if 0'd, this is not the time to add new functions:
6525
6526         * process.c (Fprocess_readable_p): Report readability status.
6527         * process.c (Qprocess_readable_p): New, associated symbol...
6528         * process.c (syms_of_process): ... initialize it.
6529
6530 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6531
6532         * XEmacs 21.4.7 "Economic Science" is released.
6533
6534 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6535
6536         * process.h (PROCESS_LIVE_P): Use the process status as
6537         evidence of health, not the state of the input stream.
6538
6539 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6540
6541         * sysdep.c (sys_siglist): change "signum" to "signal"
6542
6543 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6544
6545         * s/darwin.h: New file.
6546         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6547         
6548 2002-04-23  Andreas Jaeger  <aj@suse.de>
6549
6550         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6551         which use lib64 for 64-bit libs.
6552         (START_FILES): Likewise.
6553
6554 2002-02-11  Mike Sperber  <mike@xemacs.org>
6555
6556         * device-x.c: 
6557         (x_IO_error_handler):
6558         (x_init_device): Temporarily keep device in static variable
6559         `device_being_initialized' so we can recover gracefully from
6560         internal XOpenDevice failure.  (XOpenDevice is documented to
6561         return NULL on failure, but sometimes calls the IO error handler
6562         instead.)
6563
6564 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6565
6566         * dired.c (Ffile_name_all_completions): Change documentation --
6567         remove reference to completion-ignored-extensions.
6568         * dired.c (vars_of_dired): Change documentation for
6569         completion-ignored-extensions -- remove reference to
6570         file-name-all-completions.
6571
6572 2002-03-06  Jerry James  <james@xemacs.org>
6573
6574         * emodules.c (emodules_load): Fix multiple loading of same module.
6575
6576 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6577         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6578         RTLD_LAZY to avoid incorrect symbol binding when using nested
6579         shared libraries on Solaris.
6580
6581 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6582
6583         * fileio.c (Ffind_file_name_handler): Improve docstring.
6584
6585 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6586
6587         * fns.c (Fmapconcat): Improve docstring.
6588
6589 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6590
6591         * device-gtk.c: Add prototype for
6592         emacs_gtk_selection_clear_event_handle.
6593         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6594         selection.  Setup signal handler for "selection_clear_event"
6595         (emacs_gtk_selection_clear_event_handle).
6596
6597         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6598         other applications owning the clipboard (based on
6599         x_handle_selection_clear).
6600
6601 2001-12-23  William M. Perry  <wmperry@gnu.org>
6602
6603         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6604         
6605 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6606
6607         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6608
6609 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6610
6611         * XEmacs 21.4.6 "Common Lisp" is released.
6612
6613 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6614
6615         * search.c (Freplace_match): Add missing sub-expression functionality.
6616
6617         * buffer.c (decode_buffer): Add a check for pointer type to
6618         decode_buffer, before gcc's CSE optimization reorders a
6619         dereference in front of the allow_string test.
6620
6621 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6622
6623         * window.c (window_loop): Fix bug that sometimes prevented
6624         window_loop() from iterating across multiple devices.  Also, at
6625         Ben's request, changed infloop-detecting code to abort() instead
6626         of silently terminating window_loop().
6627
6628 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6629
6630         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6631         * editfns.c (make_time): New function.
6632         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6633         * lisp.h (make_time): Prototype and comment it.
6634         * dired.c (wasteful_word_to_lisp): Deprecate.
6635         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6636
6637 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6638
6639         * fileio.c (auto_save_1): Use current coding system, not
6640         escape-quoted.
6641
6642 2001-11-13  Ben Wing  <ben@xemacs.org>
6643
6644         * window.c:
6645         * window.c (window_truncation_on):
6646         * window.c (syms_of_window):
6647         truncate-partial-width-windows should respect the buffer being
6648         displayed, like other redisplay vars.
6649
6650 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6651
6652         * event-stream.c (Fread_key_sequence): save current buffer.
6653
6654 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6655
6656         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6657
6658 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6659
6660         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6661
6662 2001-10-26  Mike Alexander  <mta@arbortext.com>
6663
6664         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6665
6666 2001-10-25  Andy Piper  <andy@xemacs.org>
6667
6668         * ChangeLog:
6669         * dialog-msw.c (handle_directory_proc): new function.
6670          (handle_directory_dialog_box): new fucntion.
6671          (handle_file_dialog_box): use new directory dialog support.
6672          (mswindows_make_dialog_box_internal): ditto.
6673         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6674         handling.
6675         (mswindows_find_frame): make global.
6676         * fileio.c (Fexpand_file_name): build fix.
6677         * general-slots.h: add Qdirectory.
6678         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6679         handling.
6680         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6681         cygwin not leaving win32 paths unchanged.
6682         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6683         cygwin runtime to do path conversion.
6684         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6685         (syms_of_win32): add new function.
6686         * window.c (window_loop): build fix.
6687
6688 2001-10-15  Andy Piper  <andy@xemacs.org>
6689
6690         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6691
6692 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6693
6694         * XEmacs 21.4.5 "Civil Service" is released.
6695
6696 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6697
6698         * glyphs-x.c: Force buffer-tab highlight update when moving the
6699         buffer, avoiding an ugly black border, used for keyboard focus
6700         indication, on a widget that can never have keyboard focus, the
6701         buffer tab.
6702
6703 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6704
6705         * process-unix.c (unix_open_multicast_group): Remove too much
6706         conversion between host and network byte order.
6707
6708 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6709
6710         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6711         before replacing them.
6712
6713         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6714         operation.
6715
6716         * src/window.c (undedicate_windows): Use it.
6717         * src/window.h: Add prototype.
6718
6719 2001-09-17  Ben Wing  <ben@xemacs.org>
6720
6721         * fileio.c (normalize_filename):
6722         * fileio.c (Fexpand_file_name):
6723         Fix various C++ compile errors in Andy's recent code.
6724         
6725         * callint.c (Fcall_interactively):
6726         * editfns.c (Ftemp_directory):
6727         * editfns.c (Fuser_full_name):
6728         * emacs.c (argmatch):
6729         * lread.c (locate_file_map_suffixes):
6730         * redisplay-x.c (x_ring_bell):
6731         Fix sign-compare warnings.
6732         
6733 2001-09-08  Andy Piper  <andy@xemacs.org>
6734
6735         * fileio.c (normalize_filename): copied from nt.c
6736         * (Ffile_name_directory): enable win32 paths under cygwin.
6737         * (Ffile_name_nondirectory): ditto.
6738         * (directory_file_name): ditto.
6739         * (Fexpand_file_name): ditto.
6740         * (Ffile_truename): ditto.
6741         * (Fsubstitute_in_file_name): ditto.
6742         * (Ffile_name_absolute_p): ditto.
6743         * (Ffile_readable_p): ditto.
6744
6745 2001-09-08  Andy Piper  <andy@xemacs.org>
6746
6747         * device-msw.c (mswindows_finish_init_device): remove dde
6748         initialization.
6749         * device-msw.c (mswindows_init_dde): factor out from
6750         mswindows_finish_init_device()
6751         * device-msw.c (init_mswindows_very_early): new function
6752         initialize but don't enable dde.
6753         * emacs.c (main_1): call init_mswindows_very_early.
6754         * event-msw.c:
6755         * event-msw.c (mswindows_dde_callback): only execute when we are
6756         ready.
6757         * symsinit.h: declare init_mswindows_very_early.
6758
6759 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6760
6761         [sjt: This has been in 21.5 for months with no complaints.]
6762
6763         * console.h (struct console_methods): Added flags member.
6764         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6765         (CONMETH_IMPL_FLAG):
6766         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6767         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6768
6769         * device.c (window_system_pixelated_geometry): Use the above macros.
6770
6771         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6772         implememntation flag.
6773         * device.h (DEVICE_DISPLAY_P): Use it.
6774
6775         * frame.c (delete_frame_internal): Use the above macro.
6776
6777         * redisplay.c (redisplay_device): Use it.
6778         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6779         (redisplay_frame): Ditto.
6780
6781         * device-msw.c (mswindows_device_implementation_flags): Removed.
6782         (msprinter_device_implementation_flags): Removed.
6783         (console_type_create_device_mswindows): Removed references to
6784         implementation_flags methods, set implementation flags here.
6785         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6786
6787         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6788         (console_type_create_device_gtk): Removed method declaration.
6789         Added commented out statement which semantically matches the
6790         commented out statement in the above removed method.
6791
6792 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6793
6794         The attached patch fixes a few warnings. 
6795
6796         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6797         * src/frame-gtk.c: guard against GNOME calls in GTK only
6798         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6799         * src/select-gtk.c: prototype lisp_to_time
6800
6801 2001-06-08  Ben Wing  <ben@xemacs.org>
6802
6803         ------ gc-in-window-procedure fixes ------
6804         
6805         * alloc.c:
6806         * alloc.c (struct post_gc_action):
6807         * alloc.c (register_post_gc_action):
6808         * alloc.c (run_post_gc_actions):
6809         * alloc.c (garbage_collect_1):
6810         Create "post-gc actions", to avoid those dreaded "GC during window
6811         procedure" problems.
6812
6813         * event-msw.c:
6814         Abort, clean and simple, when GC in window procedure.  We want
6815         to flush these puppies out.
6816
6817         * glyphs-msw.c:
6818         * glyphs-msw.c (finalize_destroy_window):
6819         * glyphs-msw.c (mswindows_finalize_image_instance):
6820         Use a post-gc action when destroying subwindows.
6821
6822         * lisp.h:
6823         Declare register_post_gc_action().
6824
6825         * scrollbar-msw.c:
6826         * scrollbar-msw.c (unshow_that_mofo):
6827         Use a post-gc action when unshowing scrollbar windows, if in gc.
6828
6829         * redisplay.c (mark_redisplay):
6830         Add comment about the utter evilness of what's going down here.
6831
6832         ------ cygwin setitimer fixes ------
6833         
6834         * Makefile.in.in (sheap_objs):
6835         * Makefile.in.in (profile_objs):
6836         * Makefile.in.in (objs):
6837         Compile profile.c only when HAVE_SETITIMER.
6838         
6839         * nt.c (mswindows_sigset):
6840         * nt.c (mswindows_sighold):
6841         * nt.c (mswindows_sigrelse):
6842         * nt.c (mswindows_sigpause):
6843         * nt.c (mswindows_raise):
6844         * nt.c (close_file_data):
6845         Style fixes.
6846         
6847         * nt.c:
6848         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6849         
6850         * profile.c:
6851         * profile.c (Fstart_profiling):
6852         * profile.c (Fstop_profiling):
6853         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6854         instead of just plain setitimer().
6855         
6856         * signal.c:
6857         * signal.c (set_one_shot_timer):
6858         * signal.c (alarm):
6859         Define qxe_setitimer() as an encapsulation around setitimer() --
6860         call setitimer() directly unless Cygwin or MS Win, in which case
6861         we use our simulated version in win32.c.
6862         
6863         * systime.h:
6864         * systime.h (struct itimerval):
6865         * systime.h (ITIMER_REAL):
6866         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6867         comment about "qxe" and the policy regarding encapsulation.
6868
6869         * win32.c:
6870         * win32.c (setitimer_helper_proc):
6871         * win32.c (setitimer_helper_period):
6872         * win32.c (setitimer_helper):
6873         * win32.c (mswindows_setitimer):
6874         Move setitimer() emulation here, so Cygwin can use it.
6875         Rename a couple of functions and variables to be longer and more
6876         descriptive.  In setitimer_helper_proc(), send the signal
6877         using either mswindows_raise() or (on Cygwin) kill().  If for
6878         some reason we are still getting lockups, we'll change the kill()
6879         to directly invoke the signal handlers.
6880
6881         ------ windows shell fixes ------
6882         
6883         * callproc.c:
6884         * ntproc.c:
6885         Comments about how these two files must die.
6886
6887         * callproc.c (init_callproc):
6888         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6889         not just COMSPEC. (more correct and closer to FSF.) Don't
6890         force a value for SHELL into the environment. (Comments added
6891         to explain why not.)
6892         
6893         * nt.c (init_user_info):
6894         Don't shove a fabricated SHELL into the environment.  See above.
6895
6896 2001-06-01  Ben Wing  <ben@xemacs.org>
6897
6898         * Makefile.in.in (ldflags):
6899         eliminate that pesky "defaulting to 00401000" warning.
6900         * nt.h:
6901         eliminate warnings.
6902
6903 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6904
6905         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6906         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6907
6908 2001-04-24  Jerry James <james@xemacs.org>
6909
6910         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6911         correct order.
6912
6913 2001-06-01  Ben Wing  <ben@xemacs.org>
6914
6915         * event-msw.c (debug_mswin_messages):
6916         conditionalize the messages that were causing compile errors.
6917         (if only macros could generate #ifdef statements ...)
6918
6919 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6920
6921         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6922
6923 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6924
6925         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6926
6927 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6928
6929         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6930         * process-unix.c (unix_canonicalize_host_name):
6931         sysdep.c (init_system_name):
6932         Use it to conditionally support IPv6 canonicalization.
6933
6934 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6935
6936         * event-msw.c:
6937         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6938
6939 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6940
6941         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6942         attempt is made to scroll when no scroll bar is available.
6943
6944 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6945
6946         * input-method-motif.c (XIM_delete_frame): New callback.
6947         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6948         got deleted from 21.4.3.)
6949
6950 2001-06-01  Ben Wing  <ben@xemacs.org>
6951
6952         * nt.c (mswindows_utime):
6953         * nt.c (close_file_data):
6954         fix off-by-one-indirection error.
6955
6956 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6957
6958         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6959         because set_file_times() now takes Lisp_Object path, instead of
6960         char*.
6961         * nt.c: Include buffer.h.
6962         * nt.c (convert_from_time_t): New.
6963         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6964         not set mtime correctly.
6965         * nt.h: Declare mswindows_utime().
6966         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6967         path, instead of char*.
6968         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6969
6970 2001-05-30  Ben Wing  <ben@xemacs.org>
6971
6972         For 21.4:
6973
6974         (Stephen, just take all event-msw.c patches.  This includes
6975         the "iconify" fix below.)
6976
6977         * event-msw.c:
6978         * event-msw.c (mswindows_dequeue_dispatch_event):
6979         * event-msw.c (assert):
6980         * event-msw.c (emacs_mswindows_quit_p):
6981         * event-msw.c (debug_mswin_messages):
6982         * event-msw.c (debug_output_mswin_message):
6983         * event-msw.c (vars_of_event_mswindows):
6984         Fix yet more problems with C-g handling.
6985         Implement debug-mswindows-events.
6986         
6987 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6988
6989         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6990         
6991 2001-05-23  Ben Wing  <ben@xemacs.org>
6992
6993         * event-msw.c (winsock_writer):
6994         * event-msw.c (winsock_closer):
6995         prior kludgy code was clobbering the buffer, thinking it was
6996         "unused" space to store an unneeded return value; instead, use
6997         the variable we've already got staring us in the face.
6998
6999 2001-05-17  Andy Piper  <andy@xemacs.org>
7000
7001         * sysfile.h: don't assume that file attributes are boolean
7002
7003 2001-05-23  Ben Wing  <ben@xemacs.org>
7004
7005         * device-msw.c (msprinter_init_device):
7006         signal an error rather than crash with an unavailable network
7007         printer (from Mike Alexander).
7008         
7009         * event-msw.c:
7010         * event-msw.c (struct winsock_stream):
7011         * event-msw.c (winsock_writer):
7012         * event-msw.c (winsock_closer):
7013         * event-msw.c (make_winsock_stream_1):
7014         cleanup headers.  fix (hopefully) an error with data corruption
7015         when sending to a network connection.
7016
7017         * fileio.c (Fexpand_file_name): Fix evil code that attempts
7018         to handle the ~user prefix by (a) always assuming we're referencing
7019         ourselves and not even verifying the user -- hence any file with
7020         a tilde as its first char is invalid! (b) if there wasn't a slash
7021         following the filename, the pointer was set *past* the end of
7022         file and we started reading from uninitialized memory.  Now we
7023         simply treat these as files, always.
7024
7025         * buffer.c (common_init_complex_vars_of_buffer): comment change.
7026         
7027 2001-05-19  Ben Wing  <ben@xemacs.org>
7028
7029         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
7030
7031         * process-nt.c:
7032         * process-nt.c (vars_of_process_nt):
7033         remove unused mswindows-quote-process-args.  rec for 21.4.
7034         
7035 2001-05-12  Ben Wing  <ben@xemacs.org>
7036
7037         * event-msw.c (mswindows_dde_callback):
7038         * event-msw.c (mswindows_wnd_proc):
7039         eliminate cygwin warnings.
7040
7041 2001-05-06  Ben Wing  <ben@xemacs.org>
7042
7043         * console-msw.h:
7044         * device-msw.c:
7045         * device-msw.c (print_dialog_worker):
7046         * device-msw.c (mswindows_handle_print_dialog_box):
7047         * device-msw.c (syms_of_device_mswindows):
7048         * dialog-msw.c (mswindows_make_dialog_box_internal):
7049         * general-slots.h:
7050         implement printing the selection when it's selected.
7051
7052 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
7053
7054         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
7055
7056 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7057
7058         * lisp.h (EMACS_INT_MAX): This should be one bit less since
7059         EMACS_INT is signed.
7060
7061 2001-04-15  Michael Lausch  <mla@1012surf.net>
7062
7063         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
7064         gtk_widget_request_size() to give scrollbar >0 width for
7065         GTK >1.2.8.
7066
7067 2001-05-30  William M. Perry  <wmperry@gnu.org>
7068
7069         * event-gtk.c: Check for buttons as modifier keys.
7070
7071 2001-05-25  Craig Lanning  <CraigL@Knology.net>
7072
7073         * s\mingw32.h:
7074         Properly find MinGW's <process.h> inside Cygwin's restructured
7075         include directories.  Don't try to include <cygwin/version.h>
7076         since we are dropping support for MinGW in versions of Cygwin
7077         earlier than b21.
7078         * nt.c:
7079         Drop support for MinGW in versions of Cygwin before b21.
7080         * sysdep.c:
7081         Properly find MinGW's <process.h> inside Cygwin's restructured
7082         include directories.
7083         * syswindows.h:
7084         Drop support for MinGW in versions of Cygwin before b21.
7085         * unexcw.c:
7086         Even though a.out.h is no longer detected by configure, allow
7087         MinGW to use it until we figure out how to do the job with Win32.
7088
7089 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
7090
7091         * syntax.c (find_start_of_comment):
7092         Fix `unbalanced parentheses' bug when dealing with mixed comment
7093         styles in c++/java/etc. mode
7094
7095 2001-05-29  Mike Alexander  <mta@arbortext.com>
7096
7097         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
7098         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
7099
7100 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
7101
7102         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
7103
7104 2001-03-31  Mike Sperber <mike@xemacs.org>
7105
7106         * search.c (Freplace_match): Support FSF-style specification of
7107         match subexpression when applied to a buffer.
7108
7109 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7110
7111         * event-stream.c (is_scrollbar_event): add missing semicolon
7112
7113 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
7114
7115         * Makefile.in.in: Use TAR macro instead of hardcoding
7116           tar.  Allows use of GNU tar instead of system tar
7117
7118 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7119
7120         * event-stream.c (is_scrollbar_event): add missing semicolon
7121
7122 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7123
7124         * XEmacs 21.4.3 "Academic Rigor" is released.
7125
7126 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7127
7128         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
7129
7130 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7131
7132         * buffer.c (Vcase_fold_search): Remove obsolete
7133           comment about non ASCII case-fold-search.  This
7134           bug has been fixed by case-table changes.
7135
7136 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
7137
7138         * event-msw.c: Restore include of events-mod.h.
7139
7140 2001-04-22   zhaoway  <zw@debian.org>
7141
7142         * event-stream.c (is_scrollbar_event): Noop returning 0 if
7143         !HAVE_SCROLLBARS.
7144
7145 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
7146
7147         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
7148
7149 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
7150
7151         * mule-charset.c (Fmake_charset): Add missing else.
7152
7153 2001-04-23  Ben Wing  <ben@xemacs.org>
7154
7155         * event-msw.c (FAKE_MOD_QUIT):
7156         * event-msw.c (mswindows_dequeue_dispatch_event):
7157         * event-msw.c (mswindows_wnd_proc):
7158         * event-msw.c (emacs_mswindows_quit_p):
7159         Get critical quit working.
7160
7161 2001-05-05  Ben Wing  <ben@xemacs.org>
7162
7163         * console-msw.h:
7164         * device-msw.c:
7165         * device-msw.c (mswindows_get_default_margin):
7166         * frame-msw.c (mswindows_size_frame_internal):
7167         * frame-msw.c (msprinter_init_frame_1):
7168         * frame-msw.c (vars_of_frame_mswindows):
7169         Change top/bottom margin defaults to 0.5 inches.
7170
7171 2001-05-01  Martin Buchholz  <martin@xemacs.org>
7172
7173         Fix link error with gcc 3.0 on Linux.
7174         * terminfo.c (UP): Remove.
7175         * terminfo.c (BC): Remove.
7176         * terminfo.c (PC): Remove.
7177         They weren't used, and in any case, these symbols should be
7178         defined in the *library*.
7179
7180 2001-05-03  Martin Buchholz  <martin@xemacs.org>
7181
7182         * s/aix4.h: Fix crash with xlc -O3.
7183         Improve comment explaining how -O3 works.
7184
7185 2001-04-15  Ben Wing  <ben@xemacs.org>
7186
7187         * event-stream.c:
7188         * event-stream.c (Fnext_event):
7189         * event-stream.c (is_scrollbar_event):
7190         * event-stream.c (execute_command_event):
7191         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
7192         crash' problem.  His fix introduces other problems.  We filter
7193         out scrollbar events specifically, making them somewhat invisible
7194         to command-building, and not appearing in `this-command-keys'.
7195         More work is still needed (see comments in event-stream.c), but
7196         this fixes all the major problems.
7197
7198 2001-04-20  Ben Wing  <ben@xemacs.org>
7199
7200         * .cvsignore: Added stuff for Windows.
7201
7202 2001-04-28  Ben Wing  <ben@xemacs.org>
7203
7204         * buffer.c (Ferase_buffer):
7205         * editfns.c (buffer_insert1):
7206         * editfns.c (Finsert_before_markers):
7207         * editfns.c (Finsert_string):
7208         * editfns.c (Finsert_char):
7209         * editfns.c (Fdelete_region):
7210         * editfns.c (Fwiden):
7211         * editfns.c (Fnarrow_to_region):
7212         remove bogus lines setting zmacs_region_stays to 0.
7213         
7214 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7215
7216         * process-unix.c (unix_open_network_stream): If connect() fails
7217         invalidate file descriptor after closing it.
7218
7219 2001-03-08  Mike Alexander  <mta@arbortext.com>
7220
7221         * event-msw.c (mswindows_need_event_in_modal_loop):
7222         Don't dispatch a message if we didn't get one.
7223         (mswindows_need_event):
7224         Terminate the correct process when one exits instead of the first
7225         one on Vprocess_list and look for process termination when in
7226         mswindows_protect_modal_loop.
7227
7228 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
7229
7230         * XEmacs 21.4.1 "Copyleft" is released.
7231
7232 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7233
7234         * input-method-motif.c (XIM_delete_frame): New callback.
7235         (XIM_init_frame): Register it.
7236
7237 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7238
7239         * XEmacs 21.4.0 "Solid Vapor" is released.
7240
7241 2001-04-15  Ben Wing  <ben@xemacs.org>
7242
7243         * cmdloop.c (call_command_loop):
7244         Fix braino in bit-rotting code.
7245         
7246 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
7247
7248         * extents.c (Fset_extent_endpoints): Force creation of extent info
7249         in buffer_or_string.
7250
7251         * extents.c (process_extents_for_insertion_mapper): Correctly
7252         check for open-open zero-length extents.
7253
7254 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7255
7256         * lisp.h: New typedefs Memory_count, Element_count.
7257         * regex.c:
7258         * regex.h:
7259         Sign-compare warning elimination: several unsigned -> signed.
7260         Based on work by Ben Wing <ben@xemacs.org>.
7261
7262 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
7263
7264         * XEmacs 21.2.47 "Zephir" is released.
7265
7266 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
7267
7268         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
7269
7270 2001-04-03  Mike Sperber <mike@xemacs.org>
7271
7272         * search.c: Revert previous patch due because of release.
7273
7274 2001-03-30  Ben Wing  <ben@xemacs.org>
7275
7276         * s\cygwin32.h:
7277         Add missing killpg prototype.
7278
7279         * elhash.c:
7280         Add a comment about fixing problems when a new entry is added
7281         while mapping.
7282
7283         * frame-msw.c (mswindows_init_frame_1):
7284         Fix compile warnings.
7285
7286         * menubar.c (vars_of_menubar):
7287         Provide `menu-accelerator-support' to indicate that we properly
7288         support %_ in menu specifications, so that package code can
7289         conditionalize on this (and remove %_ from menu specifications
7290         on older versions).
7291
7292         * event-msw.c:
7293         * scrollbar-msw.c:
7294         * scrollbar-msw.c (can_scroll):
7295         * scrollbar-msw.h:
7296         Fix handling of mouse wheel under Windows to follow standards --
7297         now scrolls window under pointer, not selected window.
7298
7299 2001-03-31  Mike Sperber <mike@xemacs.org>
7300
7301         * search.c (Freplace_match): Support FSF-style specification of
7302         match subexpression when applied to a buffer.
7303
7304 2001-03-15  Martin Buchholz  <martin@xemacs.org>
7305
7306         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
7307         function to modify KEYMAP, so map over a copy of the hash table.
7308
7309 2001-03-21  Martin Buchholz <martin@xemacs.org>
7310
7311         * XEmacs 21.2.46 "Urania" is released.
7312
7313 2001-03-20  Dan Holmsand  <dan@eyebee.com>
7314
7315         * realpath.c (xrealpath): Make file-truename work with symlinks to
7316         /cygdrive paths on cygwin. Always lowercase drive-letters on
7317         native windows.
7318         (cygwin_readlink): Don't try to find canonical filename unless
7319         file exists.
7320
7321 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
7322
7323         * ChangeLog: Log GTK merge.
7324
7325         * dumper.c:
7326         * select-x.c:
7327         * specifier.c:
7328         * symeval.h:
7329         Revert gratuitous whitespace changes from GTK merge.
7330
7331         * emacs.c: Document end of complex #ifdef @ l. 1495.
7332
7333
7334 2001-03-12  Andy Piper  <andy@xemacs.org>
7335
7336         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
7337         have to do likewise.
7338
7339 2001-03-12  Andy Piper  <andy@xemacs.org>
7340
7341         * sysdep.c: we only support mingw now.
7342
7343 2001-03-09  Andy Piper  <andy@xemacs.org>
7344
7345         * unexcw.c (copy_executable_and_dump_data_section): making approx
7346         overrun a warning only.
7347
7348 2001-03-10  William M. Perry  <wmperry@aventail.com>
7349
7350         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
7351         satisfy Stephen's identical-after-cpp plea.
7352
7353 2001-03-02  Ben Wing  <ben@xemacs.org>
7354
7355         * cmds.c:
7356         * cmds.c (Fforward_char):
7357         * syntax.c:
7358         * window.c:
7359
7360         Augment documentation of the most common motion commands to make
7361         note of the shifted-motion support.
7362         
7363 2001-03-02  Ben Wing  <ben@xemacs.org>
7364
7365         * nt.c (mswindows_fstat):
7366         * nt.c (mswindows_stat):
7367         * search.c (boyer_moore):
7368         Fix compile warnings under Windows.
7369         
7370         * sysdep.c (sys_readdir):
7371         Fix buggy filename-conversion code under Mule.
7372
7373 2001-03-09  William M. Perry  <wmperry@aventail.com>
7374
7375         * Makefile.in.in:
7376         * config.h.in:
7377         * console.c:
7378         * console.h:
7379         * device.c:
7380         * device.h:
7381         * dragdrop.c:
7382         * emacs.c:
7383         * event-stream.c:
7384         * events.c:
7385         * events.h:
7386         * faces.c:
7387         * frame.h:
7388         * general-slots.h:
7389         * glyphs.c:
7390         * gutter.c:
7391         * inline.c:
7392         * lisp.h:
7393         * lrecord.h:
7394         * make-src-depend:
7395         * redisplay-output.c:
7396         * redisplay.c:
7397         * symsinit.h:
7398         * sysfile.h:
7399         * toolbar.c:
7400         * window.c:
7401         The Great GTK Merge.
7402
7403         * ChangeLog.GTK:
7404         * console-gtk.c:
7405         * console-gtk.h:
7406         * device-gtk.c:
7407         * emacs-marshals.c:
7408         * emacs-widget-accessors.c:
7409         * event-gtk.c:
7410         * frame-gtk.c:
7411         * gccache-gtk.c:
7412         * gccache-gtk.h:
7413         * glade.c:
7414         * glyphs-gtk.c:
7415         * glyphs-gtk.h:
7416         * gtk-glue.c:
7417         * gtk-xemacs.c:
7418         * gtk-xemacs.h:
7419         * gui-gtk.c:
7420         * gui-gtk.h:
7421         * menubar-gtk.c:
7422         * native-gtk-toolbar.c:
7423         * objects-gtk.c:
7424         * objects-gtk.h:
7425         * redisplay-gtk.c:
7426         * scrollbar-gtk.c:
7427         * scrollbar-gtk.h:
7428         * select-gtk.c:
7429         * toolbar-gtk.c:
7430         * ui-byhand.c:
7431         * ui-gtk.c:
7432         * ui-gtk.h:
7433         The Great GTK Merge: new files.
7434
7435 2001-02-26  Ben Wing  <ben@xemacs.org>
7436
7437         Reapplied Lstream change.
7438
7439 2001-02-26  Ben Wing  <ben@xemacs.org>
7440
7441         Undid the last change, since it is more controversial than I
7442         thought.  It should be back in at some point soon.
7443         
7444 2001-02-25  Ben Wing  <ben@xemacs.org>
7445
7446         * buffer.c:
7447         * callproc.c (Fold_call_process_internal):
7448         * event-msw.c (ntpipe_slurp_reader):
7449         * event-msw.c (ntpipe_shove_writer):
7450         * event-msw.c (winsock_reader):
7451         * event-msw.c (winsock_writer):
7452         * file-coding.c:
7453         * file-coding.c (detect_eol_type):
7454         * file-coding.c (detect_coding_type):
7455         * file-coding.c (determine_real_coding_system):
7456         * file-coding.c (Fdetect_coding_region):
7457         * file-coding.c (decoding_reader):
7458         * file-coding.c (decoding_writer):
7459         * file-coding.c (mule_decode):
7460         * file-coding.c (Fdecode_coding_region):
7461         * file-coding.c (encoding_reader):
7462         * file-coding.c (encoding_writer):
7463         * file-coding.c (mule_encode):
7464         * file-coding.c (Fencode_coding_region):
7465         * file-coding.c (detect_coding_sjis):
7466         * file-coding.c (decode_coding_sjis):
7467         * file-coding.c (encode_coding_sjis):
7468         * file-coding.c (detect_coding_big5):
7469         * file-coding.c (decode_coding_big5):
7470         * file-coding.c (encode_coding_big5):
7471         * file-coding.c (detect_coding_ucs4):
7472         * file-coding.c (decode_coding_ucs4):
7473         * file-coding.c (encode_coding_ucs4):
7474         * file-coding.c (detect_coding_utf8):
7475         * file-coding.c (decode_coding_utf8):
7476         * file-coding.c (encode_coding_utf8):
7477         * file-coding.c (detect_coding_iso2022):
7478         * file-coding.c (decode_coding_iso2022):
7479         * file-coding.c (encode_coding_iso2022):
7480         * file-coding.c (decode_coding_no_conversion):
7481         * file-coding.c (encode_coding_no_conversion):
7482         * glyphs-x.c (write_lisp_string_to_temp_file):
7483         * gpmevent.c (tty_get_foreign_selection):
7484         * lisp.h:
7485         * lstream.c:
7486         * lstream.c (Lstream_flush_out):
7487         * lstream.c (Lstream_adding):
7488         * lstream.c (Lstream_write_1):
7489         * lstream.c (Lstream_write):
7490         * lstream.c (Lstream_raw_read):
7491         * lstream.c (Lstream_read_more):
7492         * lstream.c (Lstream_read):
7493         * lstream.c (Lstream_unread):
7494         * lstream.c (Lstream_fputc):
7495         * lstream.c (stdio_reader):
7496         * lstream.c (stdio_writer):
7497         * lstream.c (filedesc_reader):
7498         * lstream.c (filedesc_writer):
7499         * lstream.c (lisp_string_reader):
7500         * lstream.c (struct fixed_buffer_stream):
7501         * lstream.c (make_fixed_buffer_input_stream):
7502         * lstream.c (make_fixed_buffer_output_stream):
7503         * lstream.c (fixed_buffer_reader):
7504         * lstream.c (fixed_buffer_writer):
7505         * lstream.c (struct resizing_buffer_stream):
7506         * lstream.c (resizing_buffer_writer):
7507         * lstream.c (dynarr_writer):
7508         * lstream.c (lisp_buffer_reader):
7509         * lstream.c (lisp_buffer_writer):
7510         * lstream.h:
7511         * lstream.h (lstream_implementation):
7512         * lstream.h (struct lstream):
7513         * md5.c (Fmd5):
7514         * process-nt.c (nt_send_process):
7515         * process-unix.c (unix_send_process):
7516         
7517         Correct Lstream lossage due to mixing of signed and unsigned
7518         quantities.  All Lstream uses of size_t and ssize_t are now a
7519         single signed data type Lstream_data_count.  This fixes problems
7520         under Windows with sending large quantities of data to a process,
7521         and may well fix other subtle bugs.
7522
7523 2001-02-23  Martin Buchholz <martin@xemacs.org>
7524
7525         * XEmacs 21.2.45 "Thelxepeia" is released.
7526
7527 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7528
7529         * lisp-union.h (XSETINT): 
7530         (XSETCHAR):
7531         (XSETOBJ): 
7532         Reverse previous change of 2001-02-06.
7533
7534 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7535
7536         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7537         buffers.
7538         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7539         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7540         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7541         * regex.c (POS_AS_IN_BUFFER): removed
7542         * regex.c (re_search_2):
7543         * regex.c (re_match_2):
7544         Don't use an offset of 1 when calculating buffer positions, since
7545         `BI_BUF_BEGV' does it already.
7546
7547 2001-02-18  Wim Dumon  <wim@easics.be>
7548
7549         * insdel.c (prepare_to_modify_buffer): Also check for
7550         supersession when clash-detection is enabled. 
7551
7552 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7553
7554         * regex.c (re_match_2_internal):
7555         Convert temp characters from 'const unsigned char' to 're_char'.
7556         Fix crashing bug with extended characters under mule.
7557         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7558         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7559         font-lock, pdump, and new syntax-table code.
7560         * syntax.c (find_start_of_comment):
7561         (find_end_of_comment):
7562         (forward-comment):
7563         Fix crashing bugs involving moving beyond end of buffer.
7564         * syntax.c (find_start_of_comment):
7565         Fixed logic to allow proper detection of cases where the same
7566         character is used to end both a two-char comment start and a
7567         two-char comment end sequence. Fixes `(forward-comment -1)'.
7568         * syntax.c (find_start_of_comment):
7569         Return position just past last comment-end character for all cases
7570         (previously was only done for two-char comment-end sequences).
7571         * syntax.c (forward-comment):
7572         Take value returned from `find_end_of_comment', rather than
7573         incrementing it.
7574         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7575         Properly deal with BUFFERP (syntax_cache.object)
7576
7577 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7578
7579         * alloc.c (Fgarbage_collect): 
7580         * alloc.c (make_bit_vector_from_byte_vector):
7581         -Wsign-compare-correctness.
7582
7583 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7584
7585         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7586         (XSETCHAR): Likewise.
7587         (XSETOBJ): Likewise.
7588
7589 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7590
7591         * mule-canna.c (canna-func-delete_previous): 
7592         Rename to canna-func-delete-previous.
7593
7594 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7595
7596         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7597
7598 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7599
7600         * font-lock.c (find_context): Fix C++ compile errors introduced by
7601         recent patch
7602
7603 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7604
7605         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7606         pragma, but earlier ones barf on the same pragma.
7607
7608 2001-02-06  Mike Sperber <mike@xemacs.org>
7609
7610         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7611         `configure-mule-lisp-directory'.
7612
7613 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7614
7615         Make sure dump-id.c is compiled in the same way as other .c's.
7616         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7617         * dump-id.h: Remove.
7618         * emacs.c: Move dump-id.h into dumper.h.
7619         * dumper.h: Move dump-id.h into dumper.h.
7620         * Makefile.in.in:
7621         Use standard .c.o rule for building dump-id.o.
7622         Remove preprocessor flags from link command.
7623         Add dump-id.o to ${otherobjs} if PDUMP.
7624
7625 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7626
7627         Port FSF 20.7 syntax table improvements.
7628         * syntax.c.
7629         * syntax.h.
7630
7631         Fixups for new syntax table stuff.
7632         * dired.c: Include syntax.c.
7633         (Fdirectory_files): Initialize regex_match_object and
7634         regex_emacs_buffer.
7635         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7636         and Fget_char_property.
7637
7638         Use ported FSF 20.7 syntax table improvements.
7639         * font-lock.c.
7640         * regex.c.
7641         * search.c.
7642         
7643 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7644
7645         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7646         Unixware's enum boolean from sys/types.h.
7647
7648 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7649
7650         Fix support for building with latest Purify.
7651         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7652         (PURIFY_FLAGS): Likewise.
7653
7654 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7655
7656         * fileio.c (lisp_string_set_file_times): New.
7657         * fileio.c (Fcopy_file): Use it.
7658         Fixes bug:
7659         (copy-file filename non-ascii-filename t t)
7660         ==> No such file or directory, non-ascii-filename
7661
7662 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7663
7664         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7665         USHRT_MAX seems clearer than ~0 anyways.
7666
7667 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7668
7669         dumper improvements.  Inspired by Olivier.
7670         * dumper.c (pdump_max_align): New.
7671         * dumper.c (pdump_add_entry): Use pdump_max_align.
7672         * dumper.c (pdump_get_entry_list): Likewise.
7673         * dumper.c (pdump_scan_by_alignment): Likewise.
7674         Don't iterate through unnecessary alignments.
7675         * dumper.c (pdump_file_get): No need to align result of malloc().
7676         * dumper.c (pdump_mallocadr): Remove.  
7677         The result of malloc() is guaranteed to be maximally aligned.
7678         * dumper.c: s/elmt/elt/g;
7679         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7680         * dumper.c (pdump_alert_undump_object): Likewise.
7681         * dumper.c (pdump_align_table): 
7682         Don't support alignments > 64.
7683         Store ALIGNOF's, not shift counts, in table.
7684
7685 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7686
7687         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7688         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7689         * systime.h: Use HAVE_UTIME.
7690         * sysdep.c (struct utimbuf): Remove.
7691         * sysdep.c (set_file_times): Prefer utime() to utimes().
7692         * config.h.in (HAVE_UTIME): New.
7693         * config.h.in (HAVE_UTIME_H): Remove.
7694         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7695
7696 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7697
7698         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7699
7700 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7701
7702         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7703
7704 2001-02-08  Martin Buchholz <martin@xemacs.org>
7705
7706         * XEmacs 21.2.44 "Thalia" is released.
7707
7708 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7709
7710         Fixes crashes in kill-emacs on some systems.
7711         * process-unix.c (unix_kill_child_process):
7712         It's OK for kill() to fail with ESRCH.
7713
7714 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7715
7716         Contortions to make .gdbinit tricks work on most systems.
7717         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7718         * alloc.c (dbg_valmask): Make non-const.
7719         * alloc.c (dbg_typemask): Make non-const.
7720         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7721         * alloc.c (dbg_valbits): Make non-const.
7722         * alloc.c (dbg_gctypebits): Make non-const.
7723         * .gdbinit (decode_object): Make it work with AIX cc.
7724
7725 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7726
7727         * elhash.c (make_general_lisp_hash_table):
7728         Use simpler and more efficient calloc to clear entries.
7729
7730 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7731
7732         * window.c (window_scroll): Work around an AIX C compiler bug.
7733         Fixes 'scroll-up' does nothing problem with xlC.
7734
7735 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7736
7737         * .gdbinit: Remove obsolete comment.
7738
7739 2001-01-31  Mike Alexander  <mta@arbortext.com>
7740
7741         * select.c (Fown_selection_internal): Set owned_p for device
7742         method correctly.
7743
7744 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7745
7746         Port to g++ 2.97.
7747         "not" cannot be used as a macro name as it is an operator in C++
7748         * config.h.in: Stop #defining `not'.
7749         * chartab.c (check_category_char): not ==> not_p
7750         * chartab.h: Likewise.
7751         * regex.c (re_match_2_internal): Likewise.
7752
7753 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7754
7755         * lisp-disunion.h: Fix up comments.
7756
7757 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7758
7759         * keymap.c (define_key_check_and_coerce_keysym):
7760         (syms_of_keymap):
7761         Support mouse-6 and mouse-7 bindings in the obvious way.
7762
7763 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7764
7765         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7766
7767 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7768
7769         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7770         Previous patch missed DEFVAR_INT_MAGIC.
7771         Make sure future DEFVAR_foo use correct types.
7772         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7773         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7774         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7775         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7776         * (DEFVAR_INT): Likewise.
7777         * redisplay.c (vertical_clip): Should be of type Fixnum.
7778         * redisplay.c (horizontal_clip): Likewise.
7779         * lisp.h (dump_add_opaque_int): New.
7780         (dump_add_opaque_fixnum): New.
7781
7782 2001-01-29  Andy Piper  <andy@xemacs.org>
7783
7784         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7785         since they can be eval'ed
7786
7787 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7788
7789         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7790         Oops, XEmacs redefines `class'.  Use `typename' instead.
7791
7792 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7793
7794         * dumper.c: Fix C++ compile errors.
7795
7796 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7797
7798         * tparam.c: Use correct prototypes.
7799
7800 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7801
7802         * sysproc.h: #include util.h for NetBSD's openpty.
7803
7804 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7805
7806         More 64-bit correctness.
7807         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7808         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7809         Fix up comments.
7810         This finally finishes the 64-bit SGI port.
7811         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7812         * symbols.c: Fix up comments and type casts.
7813         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7814         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7815         * symeval.h (Fixnum): New type.
7816         * symeval.h (symbol_value_type): Fix up comment.
7817
7818         * commands.h:
7819         * nt.c:
7820         * emacs.c:
7821         * data.c:
7822         * redisplay.c:
7823         * abbrev.c:
7824         * dired-msw.c:
7825         * event-Xt.c:
7826         * eldap.c:
7827         * window.c:
7828         * sound.c:
7829         * event-stream.c:
7830         * eval.c:
7831         * buffer.c:
7832         * mule-canna.c: A million DEFVAR_INTs here...
7833         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7834         * extents.c:
7835         * cmdloop.c:
7836         * lisp.h:
7837         * select-x.c:
7838         * console-x.h:
7839         * event-msw.c:
7840         * mule-wnnfns.c:
7841         * hpplay.c:
7842         * ralloc.c:
7843         * alloc.c:
7844         * keymap.c:
7845         * profile.c:
7846         s/int/Fixnum/g in DEFVAR_INT declarations.
7847
7848 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7849
7850         Port pdump to SGI alignment-sensitive environment.
7851         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7852         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7853         properly aligned.
7854         Define and use aligned reading and writing macros.
7855         Use buffered stdio instead of posix i/o for faster dumping.
7856         Eliminate kludgy 256 byte space for header.
7857         Read and write from dump file using structs for alignment safety.
7858         * dumper.c (pdump_align_stream): New.
7859         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7860         * dumper.c (PDUMP_READ_ALIGNED): New.
7861         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7862         * dumper.c (pdump_static_Lisp_Object): New struct.
7863         * dumper.c (pdump_static_pointer): New struct.
7864         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7865         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7866         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7867         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7868
7869         * dumper.c (pdump_backtrace):
7870         * dumper.c (pdump_get_indirect_count):
7871         * dumper.c (pdump_register_object):
7872         * dumper.c (pdump_register_struct):
7873         * dumper.c (pdump_reloc_one):
7874         * dumper.c (pdump_scan_by_alignment):
7875         * dumper.c (pdump_dump_from_root_struct_ptrs):
7876         * dumper.c (pdump_dump_opaques):
7877         * dumper.c (pdump_dump_rtables):
7878         * dumper.c (pdump_dump_from_root_objects):
7879         * dumper.c (pdump):
7880         * dumper.c (pdump_load_finish):
7881         Use aligned reading and writing.
7882
7883         * dumper.c (pdump_free): Make static.
7884         * dumper.c (pdump_hFile): Likewise.
7885         * dumper.c (pdump_hMap): Likewise.
7886
7887 2001-01-26  Martin Buchholz <martin@xemacs.org>
7888
7889         * XEmacs 21.2.43 "Terspichore" is released.
7890
7891 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7892
7893         Type fiddling for window_config.saved_windows_count
7894         * window.c (struct window_config): 
7895         Make saved_windows_count member unsigned.
7896         * window.c (sizeof_window_config_for_n_windows): 
7897         Make parameter unsigned.
7898         * window.c (mark_window_config):
7899         * window.c (window_config_equal):
7900         * window.c (free_window_configuration):
7901         * window.c (Fset_window_configuration):
7902         * window.c (count_windows):
7903         * window.c (Fcurrent_window_configuration):
7904         * window.c (reinit_vars_of_window):
7905         Update all callers and users.
7906
7907 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7908
7909         Alignment correctness for flexible arrays.
7910         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7911         Make alignment-correct. Add interesting comments.
7912         * alloc.c (size_vector):
7913         * alloc.c (make_vector_internal):
7914         * alloc.c (make_bit_vector_internal):
7915         * alloc.c (sweep_bit_vectors_1):
7916         * fns.c (size_bit_vector):
7917         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7918         * window.c (sizeof_window_config_for_n_windows): 
7919         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7920
7921 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7922
7923         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7924
7925 2001-01-23  Andy Piper  <andy@xemacs.org>
7926
7927         * select.c (Fown_selection_internal): pass owned_p
7928
7929         * select-msw.c (mswindows_own_selection): New Signature.
7930
7931         * console.h (struct console_methods): add owned_p to
7932         _own_selection.
7933
7934         * select-x.c (x_own_selection): pass owned_p
7935         (hack_motif_clipboard_selection): use owned_p
7936         (vars_of_select_x): new variable -
7937         x_selection_strict_motif_ownership.
7938
7939 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7940
7941         * specifier.h (specifier_data_offset): Remove pointless parens.
7942         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7943
7944 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7945
7946         Make Lisp_Object sizeof methods be alignment-correct.
7947         pdump must restore objects to the same alignment as the C compiler
7948         assumes.  It really matters on SGIs.
7949         * lstream.c (aligned_sizeof_lstream): New.
7950         (sizeof_lstream): Use aligned_sizeof_lstream.
7951         (Lstream_new): Likewise.
7952         * opaque.c (aligned_sizeof_opaque): New.
7953         (sizeof_opaque): Use aligned_sizeof_opaque.
7954         (make_opaque): Likewise.
7955         * specifier.c (aligned_sizeof_specifier): New.
7956         (sizeof_specifier): Use aligned_sizeof_specifier.
7957         (make_specifier_internal): Likewise.
7958
7959 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7960
7961         * lstream.h (struct lstream): Use max_align_t for trailing data.
7962         * specifier.h (struct Lisp_Specifier): Likewise.
7963
7964 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7965
7966         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7967         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7968         (CCL_SUSPEND): Likewise.
7969         (CCL_INVALID_CMD): Likewise.
7970         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7971         (ccl_driver): Likewise.
7972         (CCL_WRITE_CHAR): Macro hygiene.
7973         (CCL_WRITE_STRING): Macro hygiene.
7974
7975 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7976
7977         Port "portable" dumper to SunOS 4 and HP-UX.
7978         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7979         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7980         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7981
7982 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7983
7984         * lisp.h (ALIGNOF): A better definition for C++.
7985
7986 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7987
7988         Macro hygiene.
7989         Fix printf warnings: int format, long int arg.
7990         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7991         (PUSH_FAILURE_POINT): Use correct printf formats.
7992         (POP_FAILURE_POINT): Use correct printf formats.  
7993         Use do {...} while (0)
7994
7995 2001-01-20  Martin Buchholz <martin@xemacs.org>
7996
7997         * XEmacs 21.2.42 "Poseidon" is released.
7998
7999 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8000
8001         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
8002
8003 2001-01-19  Martin Buchholz  <martin@xemacs.org>
8004
8005         De-kludgify FIXED_TYPE free list frobbing.
8006         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
8007         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
8008         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
8009         * alloc.c (Lisp_Free): New pseudo lisp object definition.
8010         * alloc.c (LRECORD_FREE_P): New.
8011         * alloc.c (MARK_LRECORD_AS_FREE): New.
8012         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
8013         * alloc.c (STRUCT_FREE_P): Deleted.
8014         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
8015         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
8016         * alloc.c (STRING_CHARS_FREE_P): New.
8017         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
8018         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
8019         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
8020         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
8021         * alloc.c (resize_string): Use new definitions.
8022         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
8023         * alloc.c (verify_string_chars_integrity): Use new definitions.
8024         * alloc.c (compact_string_chars): Use new definitions.
8025         * alloc.c: Update monster comments.
8026         * lrecord.h (lrecord_type): Add some new lrecord types for
8027         alloc.c's use.
8028
8029 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8030
8031         Improve alignment hackery.
8032         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
8033         (max_align_t): Moved from opaque.h - general purpose.
8034         (ALIGN_PTR): Use size_t, not long.
8035         * opaque.h (max_align_t): Move to lisp.h.
8036
8037 2001-01-18  Norbert Koch  <nk@LF.net>
8038
8039         * gui.h: Fix and add prototypes to fix build problems.
8040
8041 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8042
8043         temacs is going away, so `dump-temacs' is now a bad name.
8044         * .dbxrc (dump-temacs): Rename to `dmp'.
8045         * .gdbinit (dump-temacs): Rename to `dmp'.
8046
8047 2001-01-17  Andy Piper  <andy@xemacs.org>
8048
8049         * glyphs.c (print_image_instance): comment to make martin happy.
8050
8051         * glyphs-x.c (x_redisplay_widget): update faces after a frame
8052         change.
8053
8054         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
8055         activation.
8056         (mswindows_tab_control_redisplay): warning suppression.
8057
8058         * glyphs-widget.c (widget_update): re-write to cope with updated
8059         items.
8060         (widget_instantiate): use new gui_item functions.
8061         (tab_control_update): deleted.
8062         (progress_gauge_update): deleted.
8063         (image_instantiator_progress_guage): take out update reference.
8064         (image_instantiator_tree_view): ditto.
8065         (image_instantiator_tab_control): ditto.
8066
8067         * gui.c (widget_gui_parse_item_keywords): new function. Do things
8068         Right the new way.
8069         (gui_item_add_keyval_pair): re-write to cope with descriptors and
8070         return whether anything was changed.
8071         (update_gui_item_keywords): as it sounds.
8072
8073         * gui.h: declare widget_gui_parse_item_keywords.
8074
8075         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
8076         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
8077
8078 2001-01-17  Martin Buchholz <martin@xemacs.org>
8079
8080         * XEmacs 21.2.41 "Polyhymnia" is released.
8081
8082 2001-01-16  Didier Verna  <didier@xemacs.org>
8083
8084         * glyphs.c (image_instantiate): don't use fallbacks when
8085         instantiating a face's background pixmap by inheritance.
8086
8087 2001-01-14  Mike Sperber <mike@xemacs.org>
8088
8089         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
8090         Conditionalize accordingly.
8091
8092 2001-01-16  Martin Buchholz  <martin@xemacs.org>
8093
8094         * dumper.c (pdump_file_get): Fix a compiler warning.
8095
8096 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8097
8098         Make Purify happy when pdumping.
8099         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
8100         iniitalizing all bits of new lisp object memory.
8101         * symbols.c (Fmake_local_variable): Likewise.
8102         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
8103         * symbols.c (Fdefvaralias): Likewise.
8104         * mule-charset.c (vars_of_mule_charset): Likewise.
8105
8106 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8107         Add the `-nd' flag when running pre-dump operations under the debugger.
8108         * .dbxrc (run-temacs): Add `-nd'.
8109         * .dbxrc (update-elc): Likewise.
8110         * .dbxrc (dump-temacs): Likewise.
8111         * .gdbinit (run-temacs): Likewise.
8112         * .gdbinit (check-temacs): Likewise.
8113         * .gdbinit (update-elc): Likewise.
8114         * .gdbinit (dump-temacs): Likewise.
8115
8116 2001-01-14  Martin Buchholz  <martin@xemacs.org>
8117
8118         Allow building 64-bit executables on AIX with GNU malloc, e.g.
8119         export OBJECT_MODE=64
8120         configure --pdump --use-union-type=no
8121         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
8122         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
8123
8124         * miscplay.c (sndcnv8U_2mono):
8125         Avoid two uses of `++' in the same expression.
8126         Suppresses a GCC warning.
8127
8128 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8129
8130         Make sure future compilers don't miscompile alloc.c.
8131         * alloc.c:
8132         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
8133         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
8134
8135 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8136
8137         * dumper.c: A little post-pdump-rename comment fixup.
8138
8139 2001-01-09  Jerry James  <james@eecs.ku.edu>
8140
8141         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
8142
8143 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8144
8145         * *.[ch]: Globally rename symbols using the following `pdump-rename'
8146         script:
8147         #!/bin/sh
8148         replace_symbol () {
8149           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
8150         }
8151
8152         replace_symbol pdump_wire_lists pdump_weak_object_chains
8153         replace_symbol pdump_wire_list dump_add_weak_object_chain
8154
8155         replace_symbol pdump_wires pdump_root_objects
8156         replace_symbol pdump_wire dump_add_root_object
8157
8158         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
8159         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
8160
8161         replace_symbol dumpstructinfos pdump_root_struct_ptrs
8162         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
8163         replace_symbol dumpstructinfo pdump_root_struct_ptr
8164         replace_symbol dumpstruct dump_add_root_struct_ptr
8165
8166         replace_symbol dumpopaque dump_add_opaque
8167         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
8168         replace_symbol dumpopaqueinfos pdump_opaques
8169         replace_symbol dumpopaqueinfo pdump_opaque
8170
8171         replace_symbol nb_structdump nb_root_struct_ptrs
8172         replace_symbol nb_opaquedump nb_opaques
8173
8174         replace_symbol align_table pdump_align_table
8175         replace_symbol dump_header pdump_header
8176
8177         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
8178         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
8179
8180
8181 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8182
8183         * s/aix4.h: Keep the C for AIX compiler from overaggressively
8184         optimizing bytecount_to_charcount().
8185
8186 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8187
8188         * config.h.in:
8189         (HAVE_DLFCN_H): Removed.
8190         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
8191
8192 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8193
8194         Portable dumper maintainability improvements.
8195         * alloc.c (staticpro):
8196         * alloc.c (staticpro_nodump):
8197         * alloc.c (garbage_collect_1):
8198         * alloc.c (reinit_alloc_once_early):
8199         * alloc.c (init_alloc_once_early):
8200         * alloc.c: Move dumper functions to alloc.c.
8201         * dumper.c (pdump_backtrace):
8202         * dumper.c (pdump_dump_structs):
8203         * dumper.c (pdump_dump_opaques):
8204         * dumper.c (pdump_dump_rtables):
8205         * dumper.c (pdump_dump_wired):
8206         * dumper.c (pdump):
8207         * dumper.c (pdump_load_check):
8208         * dumper.c (pdump_load_finish):
8209         * dumper.c (pdump_file_unmap):
8210         * dumper.c (pdump_file_get):
8211         * dumper.c (pdump_resource_free):
8212         * dumper.c (pdump_resource_get):
8213         * dumper.c (pdump_file_free):
8214         * dumper.c (pdump_file_try):
8215         * dumper.c (pdump_load):
8216         Remove fixed size limits on staticpro(), staticpro_nodump(),
8217         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
8218         Remove custom code for dumping lrecord_implementations_table - use
8219         dumpopaque instead.
8220         Remove (most of the) custom code for dumping staticpros - dump it
8221         like any other dynarr.
8222
8223         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
8224         * dumper.c: Moved functions from alloc.c.
8225         * alloc.c (dumpstruct): Moved to dumper.c.
8226         * alloc.c (dumpopaque): Likewise.
8227         * alloc.c (pdump_wire): Likewise.
8228         * alloc.c (pdump_wire_list): Likewise.
8229
8230         * lisp.h (Dynarr_sizeof): New.
8231         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
8232         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
8233         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
8234
8235         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
8236         * lisp.h (dumpopaque): ditto.
8237         * lisp.h (pdump_wire): ditto.
8238         * lisp.h (pdump_wire_list): ditto.
8239
8240 2001-01-09  Martin Buchholz  <martin@xemacs.org>
8241
8242         * make-src-depend (PrintPatternDeps):
8243         Use `sort' to make output independent of perl version.
8244
8245 2001-01-08  Martin Buchholz  <martin@xemacs.org>
8246
8247         Port to Netbsd 1.5.
8248         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
8249         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
8250
8251 2001-01-03  Didier Verna  <didier@xemacs.org>
8252
8253         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
8254         that `focus_frame' is alive before thinking of calling
8255         `redisplay_redraw_cursor' on it.
8256
8257 2001-01-08  Martin Buchholz <martin@xemacs.org>
8258
8259         * XEmacs 21.2.40 is released.
8260
8261 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8262
8263         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
8264
8265 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8266
8267         * alloc.c (dbg_valmask): Make const.
8268         * alloc.c (dbg_typemask): Make const.
8269         * alloc.c (dbg_USE_UNION_TYPE): Make const.
8270         * alloc.c (dbg_valbits): Make const.
8271         * alloc.c (dbg_gctypebits): Make const.
8272
8273 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
8274
8275         * redisplay-x.c (x_bevel_area):
8276         redisplay.h (struct rune):
8277         Typo fixes in comments.
8278
8279 2001-01-05  Andy Piper  <andy@xemacs.org>
8280
8281         * glyphs-x.c (x_redisplay_widget): use size changed for offset
8282         adjustment.
8283
8284         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
8285
8286 2001-01-05  Martin Buchholz  <martin@xemacs.org>
8287
8288         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
8289
8290         * mule-ccl.c (stack_idx_of_map_multiple):
8291         Non const global data must not be initialized!
8292         Found by MIYASHITA Hisashi.
8293
8294 2001-01-02  Andy Piper  <andy@xemacs.org>
8295
8296         * frame.c (change_frame_size): make sure frame size is always
8297         marked as changed.
8298
8299         * glyphs.c (image_instance_layout): minor code reuse.
8300
8301         * window.c (Fcurrent_window_configuration): revert previous
8302         change.
8303
8304 2001-01-02  Martin Buchholz  <martin@xemacs.org>
8305
8306         * glyphs.h:
8307         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
8308
8309 2000-12-31  Andy Piper  <andy@xemacs.org>
8310
8311         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
8312         when widget gets unmapped.
8313
8314         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
8315         function. Make sure widgets losing focus don't just drop it.
8316         (handle_focus_event_1): record the widget with focus.
8317
8318 2000-12-31  Andy Piper  <andy@xemacs.org>
8319
8320         * window.c (allocate_window): use
8321         make_image_instance_cache_hash_table.
8322         (make_dummy_parent): ditto.
8323         (Fset_window_configuration): ditto.
8324
8325         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
8326
8327         * glyphs.c (process_image_string_instantiator): use
8328         INSTANTIATOR_TYPE.
8329         (get_image_instantiator_governing_domain): ditto.
8330         (normalize_image_instantiator): ditto.
8331         (instantiate_image_instantiator): ditto.
8332         (make_image_instance_1): ditto.
8333         (image_instantiate): ditto. Key on glyph *and* instantiator type.
8334         (instantiator_eq_equal): new function for use with instance hash
8335         tables.
8336         (instantiator_eq_hash): ditto.
8337         (make_image_instance_cache_hash_table): create a suitable hash
8338         table for storing image instances.
8339
8340         * elhash.h (hash_table_weakness): new internal weakness type
8341         HASH_TABLE_KEY_CAR_VALUE_WEAK.
8342         declare new functions.
8343
8344         * elhash.c (finish_marking_weak_hash_tables): introduce yet
8345         another weakness type for glyphs.
8346         (make_standard_lisp_hash_table): new function split out from
8347         make_general_lisp_hash_table.
8348         (make_lisp_hash_table): call make_standard_lisp_hash_table.
8349         (hash_table_instantiate): ditto.
8350         (Fmake_hash_table): ditto.
8351
8352 2000-12-31  Martin Buchholz <martin@xemacs.org>
8353
8354         * XEmacs 21.2.39 is released.
8355
8356 2000-12-29  Andy Piper  <andy@xemacs.org>
8357
8358         * menubar.c (menubar_visible_p_changed): signal the frame changed.
8359
8360         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
8361         the frame has changed so that we pick up geometry changes such as
8362         menubar visibility.
8363
8364 2000-12-28  Andy Piper  <andy@xemacs.org>
8365
8366         * lastfile.c (my_ebss): make a char array so we can pad the
8367         bss. Fixes cygwin unexec.
8368
8369         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
8370
8371 2000-12-26  Andy Piper  <andy@xemacs.org>
8372
8373         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
8374         comments and try and be more precise about a non-/SIGIO world.
8375         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
8376         SIGIO.
8377
8378         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
8379         we don't normalize to zero width or height.
8380
8381 2000-12-24  Andy Piper  <andy@xemacs.org>
8382
8383         * Makefile.in.in (ldflags): add -mwindows when appropriate.
8384
8385 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
8386
8387         * s/sco5.h: SCO 5 has pty support.
8388
8389 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
8390
8391         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
8392         input-method-xlib.c contains whole contents of input-method-xfs.c,
8393         so we can use input-method-xlib.c's code for USE_XFONTSET
8394         using #ifdefs.
8395         * input-method-xfs.c: removed.
8396
8397 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
8398
8399         * file-coding.h (enum coding_category_type): reorder enumerators to
8400         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
8401         (now one greater than largest real coding_category_type enumerator).
8402         * file-coding.c (coding_category_symbol, coding_category_by_priority,
8403         coding_category_system, fcd_descriptihon_1, decode_coding_category,
8404         Fcoding_category_list, Fset_coding_priority_list,
8405         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
8406         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
8407
8408 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8409
8410         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
8411         * redisplay-output.c (redisplay_output_window): Clear top of window
8412         when face is changed.
8413         * redisplay-x.c (x_redraw_exposed_window): Call
8414         redisplay_clear_top_of_window.
8415         * redisplay.h: Publish redisplay_clear_top_of_window.
8416
8417 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8418
8419         * buffer.c (Fkill_buffer): Map over all devices.
8420         * window.c (window_loop): Remove UNSHOW_BUFFER code.
8421         (list_windows): New function.
8422         (list_all_windows): Ditto.
8423         (Freplace_buffer_in_windows): Use them.
8424
8425 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8426
8427         * database.c (berkdb_subtype): Recognize new subtype `queue'.
8428         (Fopen_database): Use `db_create' instead of `db_open'.
8429         (syms_of_database): Initialize Qqueue.
8430
8431 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8432
8433         * buffer.c (common_init_complex_vars_of_buffer): Initialize
8434         buffer_local_face_property.
8435         * buffer.h (struct buffer): New member buffer_local_face_property.
8436         * window.c (Fset_window_buffer):  Mark window's face as changed
8437         when buffer has buffer local face.
8438         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8439         * objects.c (color_after_change): Set buffer_local_face_property
8440         when locale of face specifier is buffer.
8441         * objects.c (font_after_change): Ditto.
8442         * objects.c (face_boolean_after_change): Ditto.
8443         * glyphs.c (image_after_change): Ditto.
8444
8445 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8446
8447         * nt.c (mswindows_fstat): Report file permissions, volume serial
8448         number, etc. Code adapted from FSF Emacs 20.7.
8449
8450 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8451
8452         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8453         of stat when we don't have symbolic links, to make sure
8454         mswindows_stat is called on mswindows.
8455
8456 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8457
8458         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8459
8460 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8461
8462         * doprnt.c (emacs_doprnt_1): More printing fixes.
8463         Make printing of numbers compatible with libc and FSF Emacs.
8464         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8465         Use the system printf to do most of the hard work of formatting,
8466         instead of doprnt_1().
8467         Calculate memory to allocate for format string.
8468         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8469         (doprnt_1): Cleaner code and documentation.
8470
8471 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8472
8473         * Makefile.in.in: Use the loop variable to install headers.
8474
8475 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8476
8477         * window.c (Fsplit_window): Don't invalidate face cache.
8478
8479 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8480
8481         * minibuf.c (Fall_completions): Undo the previous change
8482         which removed checking elements start with space.
8483
8484 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8485
8486         * mule-canna.c: Didier suppression.
8487
8488 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8489
8490         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8491         (warning suppression).  Add English comment translations.
8492
8493 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8494
8495         * unexelfsgi.c (unexec): Better test for mmap failure.
8496
8497 2000-12-05  Martin Buchholz <martin@xemacs.org>
8498
8499         * XEmacs 21.2.38 is released.
8500
8501 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8502
8503         * redisplay.c (bar-cursor): Make a user variable.
8504
8505         * symsinit.h: Add init_postgresql_from_environment.
8506
8507 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8508
8509         * regex.c: Convert to clean C.
8510
8511 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8512
8513         * realpath.c:
8514         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8515         initialization.
8516         (sys_readlink): renamed to system_readlink to avoid conflict with
8517         the other sys_readlink.
8518
8519 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8520
8521         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8522
8523 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8524
8525         * postgresql.c (init_postgresql_from_environment): new function.
8526         (vars_of_postgresql): Move code initializing Lisp variables out and
8527         into init_postgresql_from_environment.
8528         emacs.c (main_1): Call init_postgresql_from_environment if and only
8529         if running a dumped XEmacs.
8530
8531 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8532
8533         * buffer.c: Make find-file-compare-truenames default to true on
8534         windows.
8535
8536         * realpath.c (win32_abs_start):
8537         (cygwin_readlink):
8538         (win32_readlink): New functions.
8539         (xrealpath): Return really real filenames on windows.
8540
8541         * fileio.c (Ffile_truename): Make file-truename work on windows.
8542
8543 2000-11-29  Didier Verna  <didier@xemacs.org>
8544
8545         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8546         * faces.c (update_face_cachel_data): use it.
8547         * faces.c (add_face_cachel): use it. Complete background pixmap
8548         frobbing in face cache if `update_face_cachel_data' has not done so.
8549
8550 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8551
8552         * search.c (string_match_1): Don't set last_thing_searched
8553         when search failed.
8554
8555 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8556
8557         * buffer.c: Include casetab.h
8558         (common_init_complex_vars_of_buffer): Use new case-table object.
8559         * buffer.h: Include casetab.h
8560         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8561         (DOWNCASE_TABLE_OF): Ditto.
8562         * bufslots.h: Remove char-tables and add case-table.
8563         * casetab.c: Include casetab.h
8564         (CASE_TABLE_P): Removed.
8565         (mark_case_table): New function.
8566         (allocate_case_table): New function.
8567         (Fcase_table_p): Use new case-table.
8568         (case_table_char): New function.
8569         (Fget_case_table): Ditto.
8570         (Fput_case_table): Ditto.
8571         (Fput_case_table_pair): Ditto.
8572         (Fcopy_case_table): Ditto.
8573         (Fcurrent_case_table): Return case-table.
8574         (Fstandard_case_table): Return case-table.
8575         (Fset_case_table): Fix doc-string.
8576         (set_case_table): Use case-table
8577         (syms_of_casetab): DEFSUBR new functions.
8578         (complex_vars_of_casetab): Set up standard case-table.
8579         * casetab.h: New file.
8580         * editfns.c: Include casetab.h
8581         (Fcompare_buffer_substrings): Use case-table.
8582         * inline.c: Include casetab.h
8583         * lisp.h: Remove bogus extern.
8584         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8585         * search.c: Include casetab.h
8586         (TRANSLATE_ASCII): Removed.
8587         (TRANSLATE): Unconditionally translate character.
8588         (looking_at_1): Use case-table.
8589         (string_match_1): Ditto.
8590         (fast_string_match): Ditto.
8591         (search_command): Ditto.
8592         (search_buffer): Separate boyer_moore.  Check whether
8593         boyer_moore is possible.
8594         (simple_search): New function.
8595         (boyer_moore): Separated from search_buffer. Translate char.
8596
8597 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8598
8599         * regex.c (RE_TR_ASCII): Removed.
8600         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8601         (PATFETCH): Call PATFETCH_RAW.
8602         (PATFETCH_RAW): Fetch Emchar.
8603         (PATUNFETCH): Decrement charptr.
8604         (GET_BUFFER_SPACE): Rename b to buf_end.
8605         (BUF_PUSH): Ditto.
8606         (BUF_PUSH_2): Ditto.
8607         (BUF_PUSH_3): Ditto.
8608         (EXTEND_BUFFER): Ditto.
8609         (SET_LIST_BIT): Ditto.
8610         (regex_compile): Ditto.  Translate non ASCII char.
8611         (compile_range): Ditto.
8612         (re_search_2): Ditto.
8613         (re_match_2_internal): Compare Emchar.
8614         (bcmp_translate): Ditto.
8615
8616 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8617
8618         * lisp.h (basic char/int typedefs):  comment improvement.
8619
8620 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8621
8622         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8623         unstomp inhibit_site_lisp.  Improve comments.
8624
8625 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8626
8627         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8628
8629 2000-11-28  Andy Piper  <andy@xemacs.org>
8630
8631         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8632         clipped display for windows in the gutter also.
8633         (redisplay_display_boxes_in_window_p): change semantics of return
8634         codes to be more intuitive.
8635
8636         * gutter.h: declare display_boxes_in_gutter_p.
8637
8638         * gutter.c (display_boxes_in_gutter_p): new function for
8639         redisplay.
8640
8641 2000-11-22  Andy Piper  <andy@xemacs.org>
8642
8643         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8644         autodetect domain.
8645
8646 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8647
8648         * callproc.c (Fold_call_process_internal):
8649         * gpm.c (Freceive_gpm_event):
8650         (tty_get_foreign_selection): Might be just warning supression.
8651         * fileio.c (Fwrite_region_internal):
8652         (Fset_visited_file_modtime):
8653         * keymap.c (event_matches_key_specifier_p):
8654         Initialize GCPROed variable.
8655
8656         * menubar-x.c (command_builder_find_menu_accelerator):
8657         Initialize before use.
8658
8659 2000-11-23  Andy Piper  <andy@xemacs.org>
8660
8661         * unexcw.c (unexec): make the resulting executable executable.
8662
8663 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8664
8665         * doc.c (get_doc_string):
8666         Use size_t, not int, for result of XSTRING_LENGTH.
8667
8668         * cmds.c (Fdelete_char):
8669         * cmds.c (Fpoint_at_eol):
8670         * cmds.c (Fself_insert_command):
8671         Use EMACS_INT, not int, for result of XINT.
8672         Someday, someone will want to insert more than 2**31 identical characters.
8673
8674         * cmds.c (Fdelete_char):
8675         * cmds.c (Fdelete_backward_char):
8676         * syntax.c (Fforward_word):
8677         * syntax.c (Fforward_comment):
8678         Make COUNT argument optional, for consistency with forward-char et al.
8679
8680 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8681
8682         * lisp.h:
8683         * print.c (long_to_string):
8684         Return a useful value: the pointer at end of data written.
8685
8686         * doprnt.c:
8687         Use `static const char * const' for constant strings.
8688         (union printf_arg): Delete `i', `ui' members.
8689         (get_doprnt_args):
8690         (emacs_doprnt_1):
8691         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8692         Do all printf-ing via the `l' specifier.
8693         Use EMACS_INT instead of int.
8694         Optimize.
8695
8696 2000-11-20  Didier Verna  <didier@xemacs.org>
8697
8698         * faces.c (update_face_cachel_data): don't frob the background
8699         pixmap when the window is being created. The face is needed but
8700         does not exist yet.
8701
8702 2000-11-20  Andy Piper  <andy@xemacs.org>
8703
8704         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8705         messing with a debug environment.
8706
8707 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8708
8709         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8710
8711 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8712
8713         * casetab.c (Fcase_table_p): Fix compile error and crash.
8714
8715 2000-11-18  Philip Aston  <philipa@mail.com>
8716
8717         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8718
8719 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8720
8721         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8722         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8723
8724 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8725
8726         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8727         * unexelf.c: Use HAVE_ELF_H.
8728         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8729         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8730         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8731         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8732         for testing.
8733         So this is an unexelfsgi.c from a different line of development.
8734
8735 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8736
8737         * regex.c (RE_TR_ASCII): New function.
8738         (RE_TRANSLATE): Call it.
8739
8740 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8741
8742         * buffer.h (TRT_TABLE_OF): Remove assert.
8743         (IN_TRT_TABLE_DOMAIN): Removed.
8744
8745 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8746
8747         * free-hook.c (log_gcpro):
8748         (show_gcprohist): Add support for GCPRO5.
8749
8750 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8751
8752         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8753
8754 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8755
8756         * symeval.h: Declare flush_all_buffer_local_cache.
8757
8758         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8759         (flush_buffer_local_cache): Added.
8760         (flush_all_buffer_local_cache): Added.
8761
8762         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8763
8764         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8765         (pdump_dump_data): Ditto.
8766         (pdump_reloc_one): Ditto.
8767         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8768         before dumping.
8769
8770
8771 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8772
8773         * buffer.c: Remove if 0'ed entry.
8774         * buffer.h: Rewrite TRT to use char-table.
8775         * bufslots.h: Remove mirror tables.
8776         * casetab.c: Remove mirror tables.
8777         (CASE_TABLE_P): New macro.
8778         (Fcase_table_p): Element of a case table is string or char-table.
8779         (make_mirror_trt_table): Removed.
8780         (set_case_table): Setup char-table from strings for backward
8781         compatibility.
8782         * dired.c (Fdirectory_files):
8783         * dired-msw.c: (mswindows_get_files):
8784         * lisp.h: Change prototype of re_pattern_buffer.
8785         * regex.c: (RE_TRANSLATE): New macro.
8786         (TRANSLATE_P): Ditto.
8787         Change translate to type RE_TRANSLATE_TYPE.
8788         * regex.h: Define RE_TRANSLATE_TYPE
8789         * search.c (TRANSLATE): New macro.
8790         (TRANSLATE_ASCII): New macro.
8791         Translate table is changed to Lisp_Object.
8792         (signal_failure): Inhibit return.
8793
8794 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8795
8796         * device-msw.c:
8797         * eldap.c:
8798         * event-Xt.c:
8799         * event-stream.c:
8800         * print.c:
8801         Do UNGCPRO before return.
8802
8803 2000-11-14  Martin Buchholz <martin@xemacs.org>
8804
8805         * XEmacs 21.2.37 is released.
8806
8807 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8808
8809         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8810         Add comments about discarded return value.
8811
8812 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8813
8814         * callint.c:
8815         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8816
8817 2000-10-27  Andy Piper  <andy@xemacs.org>
8818
8819         * gutter.c (Fset_default_gutter_position): default left and right
8820         gutters to visible.
8821         (calculate_gutter_size): calculate resonable heuristic for left
8822         and right gutter sizes.
8823         (specifier_vars_of_gutter): change left and right gutter sizes to
8824         autodetect.
8825         (calculate_gutter_size_from_display_lines): new function.
8826         (output_gutter): check for resizing on left and right gutters.
8827         (clear_gutter): don't special case top and left gutters.
8828         (specifier_vars_of_gutter): use new signature for
8829         set_specifier_caching.
8830
8831         * glyphs-x.c (x_redisplay_widget): spelling fix.
8832         * glyphs.c (specifier_vars_of_glyphs):
8833         * menubar.c (specifier_vars_of_menubar):
8834         * redisplay.c (specifier_vars_of_redisplay):
8835         * toolbar.c (specifier_vars_of_toolbar):
8836         * window.c (specifier_vars_of_window):
8837         * scrollbar.c (specifier_vars_of_scrollbar):
8838         (complex_vars_of_scrollbar): use new signature for
8839         set_specifier_caching.
8840
8841         * specifier.c (set_specifier_caching): include recompute flag.
8842         (recompute_one_cached_specifier_in_window): always recompute if
8843         flag set.
8844         (recompute_one_cached_specifier_in_frame): ditto.
8845
8846         * specifier.h (struct specifier_caching): add recompute flag.
8847
8848 2000-10-24  Andy Piper  <andy@xemacs.org>
8849
8850         * unexcw.c (copy_executable_and_dump_data_section): add new
8851         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8852         5.0 happy.
8853
8854 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8855
8856         * console-x.h (x_device): New member modifier_release_time.
8857         * event-Xt.c (x_handle_sticky_modifiers):
8858         Bound interval modifier keys are sticky.
8859         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8860         * events.h: extern it.
8861
8862 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8863
8864         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8865
8866 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8867
8868         * event-stream.c (execute_command_event): Preserve current_events
8869         and the like when event is misc-user-event.
8870         Inhibit quit during the call to maybe_echo_keys.
8871
8872 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8873
8874         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8875         symlink when buffer is killed.
8876         (inhibit_clash_detection): New variable.
8877
8878 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8879
8880         * console.c (Fset_input_method): Trigger redisplay on tty.
8881
8882 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8883
8884         * process.c (Fprocess_status): Revert to previous behavior:
8885         (process-status "nosuchprocess") ==> nil
8886
8887 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8888
8889         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8890         Work around another GCC 2.95.2 optimizer bug.
8891
8892 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8893
8894         * process.c (Fget_process): Use LIST_LOOP_2.
8895         (kill_buffer_processes): Use LIST_LOOP_2.
8896
8897         * minibuf.c (Fall_completions):
8898         Delete old non-functional code for FSF fourth argument.
8899
8900         * frame.c (frame_matches_frame_spec):
8901         Renamed from `frame_matches_frametype'.  Update all callers.
8902         (device_matches_device_spec):
8903         Renamed from 'device_matches_console_spec'.  Update all callers.
8904
8905         * doc.c (Fsubstitute_command_keys):
8906         Remove buffer overflow crash.  Small code cleanups.
8907
8908         * casetab.c (check_case_table): Simpler code.
8909
8910         * window.c (Freplace_buffer_in_windows):
8911         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8912         (and similar implementation) as Fdelete_windows_on.
8913         Update all callers.
8914
8915         * alloc.c (Fmake_list):
8916         * alloc.c (make_vector):
8917         * alloc.c (Fmake_vector):
8918         * alloc.c (make_bit_vector):
8919         * alloc.c (Fmake_bit_vector):
8920         * alloc.c (Fbit_vector):
8921         * alloc.c (Fmake_string):
8922         * alloc.c (Fpurecopy):
8923         * alloc.c (Fmemory_limit):
8924         * buffer.c:
8925         * buffer.c (Fget_buffer):
8926         * buffer.c (Fkill_buffer):
8927         * buffer.c (complex_vars_of_buffer):
8928         * bytecode.c (Fcompiled_function_stack_depth):
8929         * callint.c (Fprefix_numeric_value):
8930         * event-stream.c:
8931         * event-stream.c (Fread_key_sequence):
8932         * casetab.c:
8933         * casetab.c (Fcase_table_p):
8934         * casetab.c (check_case_table):
8935         * casetab.c (Fset_case_table):
8936         * casetab.c (Fset_standard_case_table):
8937         * chartab.c:
8938         * chartab.c (Fchar_table_type):
8939         * chartab.c (Freset_char_table):
8940         * chartab.c (Fget_char_table):
8941         * chartab.c (Fget_range_char_table):
8942         * chartab.c (Fput_char_table):
8943         * chartab.c (Fmap_char_table):
8944         * chartab.c (Fcategory_table_p):
8945         * chartab.c (Fcheck_category_at):
8946         * chartab.c (Fchar_in_category_p):
8947         * chartab.c (Fcategory_table):
8948         * chartab.c (Fcopy_category_table):
8949         * chartab.c (Fset_category_table):
8950         * chartab.c (Fcategory_designator_p):
8951         * chartab.c (Fcategory_table_value_p):
8952         * cmds.c (Fdelete_char):
8953         * cmds.c (Fdelete_backward_char):
8954         * cmds.c (Fself_insert_command):
8955         * cmds.c (Fself_insert_internal):
8956         * console.c (Fvalid_console_type_p):
8957         * console.c (Fcdfw_console):
8958         * console.c (Fconsole_type):
8959         * console.c (Fconsole_name):
8960         * console.c (Fconsole_device_list):
8961         * console.c (Fconsole_on_window_system_p):
8962         * data.c:
8963         * data.c (Feq):
8964         * data.c (Fold_eq):
8965         * data.c (Fsubr_interactive):
8966         * data.c (Fchar_to_int):
8967         * data.c (Fint_to_char):
8968         * data.c (Fsetcar):
8969         * data.c (Fsetcdr):
8970         * data.c (Fnumber_to_string):
8971         * data.c (Fstring_to_number):
8972         * data.c (Frem):
8973         * database.c (mark_database):
8974         * database.c (finalize_database):
8975         * database.c (Fdatabase_live_p):
8976         * database.c (Fdatabasep):
8977         * device-x.c (Fx_get_resource):
8978         * device.c (Fdfw_device):
8979         * dired.c:
8980         * dired.c (Ffile_name_completion):
8981         * dired.c (Ffile_name_all_completions):
8982         * dired.c (Fuser_name_completion):
8983         * dired.c (Fuser_name_completion_1):
8984         * dired.c (Fuser_name_all_completions):
8985         * doc.c (Fdocumentation):
8986         * doc.c (Fdocumentation_property):
8987         * doc.c (Fsubstitute_command_keys):
8988         * editfns.c:
8989         * editfns.c (Fchar_to_string):
8990         * editfns.c (Fstring_to_char):
8991         * editfns.c (Ftemp_directory):
8992         * editfns.c (Finsert_char):
8993         * editfns.c (Fbuffer_substring_no_properties):
8994         * editfns.c (Fnarrow_to_region):
8995         * editfns.c (Fchar_equal):
8996         * editfns.c (Fchar_Equal):
8997         * editfns.c (Ftranspose_regions):
8998         * emacs.c (Fdump_emacs):
8999         * eval.c (Fthrow):
9000         * eval.c (Fcommand_execute):
9001         * eval.c (Fautoload):
9002         * eval.c (Fbacktrace):
9003         * eval.c (Fbacktrace_frame):
9004         * events.c:
9005         * events.c (Fcopy_event):
9006         * events.c (Fcharacter_to_event):
9007         * events.c (Fevent_button):
9008         * events.c (Fevent_process):
9009         * extents.c:
9010         * extents.c (Fnext_extent_change):
9011         * extents.c (Fextent_property):
9012         * faces.c (Ffacep):
9013         * faces.c (Fmake_face):
9014         * file-coding.c:
9015         * file-coding.c (Fencode_shift_jis_char):
9016         * file-coding.c (Fencode_big5_char):
9017         * fileio.c (Ffile_name_directory):
9018         * fileio.c (Ffile_name_nondirectory):
9019         * fileio.c (Ffile_name_as_directory):
9020         * fileio.c (Fdirectory_file_name):
9021         * fileio.c (Ffile_truename):
9022         * fileio.c (Fsubstitute_in_file_name):
9023         * fileio.c (Ffile_modes):
9024         * fileio.c (Fset_file_modes):
9025         * fileio.c (Fset_default_file_modes):
9026         * fileio.c (Fverify_visited_file_modtime):
9027         * floatfns.c (Facos):
9028         * floatfns.c (Fasin):
9029         * floatfns.c (Fatan):
9030         * floatfns.c (Fcos):
9031         * floatfns.c (Fsin):
9032         * floatfns.c (Ftan):
9033         * floatfns.c (Fbessel_j0):
9034         * floatfns.c (Fbessel_j1):
9035         * floatfns.c (Fbessel_jn):
9036         * floatfns.c (Fbessel_y0):
9037         * floatfns.c (Fbessel_y1):
9038         * floatfns.c (Fbessel_yn):
9039         * floatfns.c (Ferf):
9040         * floatfns.c (Ferfc):
9041         * floatfns.c (Flog_gamma):
9042         * floatfns.c (Fexp):
9043         * floatfns.c (Fexpt):
9044         * floatfns.c (Flog):
9045         * floatfns.c (Flog10):
9046         * floatfns.c (Fsqrt):
9047         * floatfns.c (Fcube_root):
9048         * floatfns.c (Facosh):
9049         * floatfns.c (Fasinh):
9050         * floatfns.c (Fatanh):
9051         * floatfns.c (Fcosh):
9052         * floatfns.c (Fsinh):
9053         * floatfns.c (Ftanh):
9054         * floatfns.c (Fabs):
9055         * floatfns.c (Ffloat):
9056         * floatfns.c (Flogb):
9057         * floatfns.c (Fceiling):
9058         * floatfns.c (Ffloor):
9059         * floatfns.c (Fround):
9060         * floatfns.c (Ftruncate):
9061         * floatfns.c (Ffceiling):
9062         * floatfns.c (Fffloor):
9063         * floatfns.c (Ffround):
9064         * floatfns.c (Fftruncate):
9065         * fns.c (Fstring_equal):
9066         * fns.c (Fstring_lessp):
9067         * fns.c (concat2):
9068         * fns.c (concat3):
9069         * fns.c (vconcat2):
9070         * fns.c (vconcat3):
9071         * fns.c (Fsubstring):
9072         * fns.c (Fassoc):
9073         * fns.c (Fold_assoc):
9074         * fns.c (assoc_no_quit):
9075         * fns.c (Fassq):
9076         * fns.c (Fold_assq):
9077         * fns.c (assq_no_quit):
9078         * fns.c (Frassoc):
9079         * fns.c (Fold_rassoc):
9080         * fns.c (Frassq):
9081         * fns.c (Fold_rassq):
9082         * fns.c (rassq_no_quit):
9083         * fns.c (Fremassoc):
9084         * fns.c (remassoc_no_quit):
9085         * fns.c (Fremassq):
9086         * fns.c (remassq_no_quit):
9087         * fns.c (Fremrassoc):
9088         * fns.c (Fremrassq):
9089         * fns.c (remrassq_no_quit):
9090         * fns.c (Fsort):
9091         * fns.c (Fplist_get):
9092         * fns.c (Fplist_put):
9093         * fns.c (Fplist_remprop):
9094         * fns.c (Fplist_member):
9095         * fns.c (Flax_plist_get):
9096         * fns.c (Flax_plist_put):
9097         * fns.c (Flax_plist_remprop):
9098         * fns.c (Flax_plist_member):
9099         * fns.c (Fequal):
9100         * fns.c (Fold_equal):
9101         * fns.c (Frequire):
9102         * fns.c (Fbase64_encode_region):
9103         * fns.c (Fbase64_encode_string):
9104         * fns.c (Fbase64_decode_region):
9105         * frame.c:
9106         * frame.c (frame_matches_frame_spec):
9107         * frame.c (device_matches_device_spec):
9108         * frame.c (next_frame):
9109         * frame.c (previous_frame):
9110         * frame.c (Fnext_frame):
9111         * frame.c (Fprevious_frame):
9112         * frame.c (Fframe_property):
9113         * frame.c (Fset_frame_height):
9114         * frame.c (Fset_frame_size):
9115         * frame.h:
9116         * glyphs.c:
9117         * glyphs.c (if):
9118         * glyphs.c (decode_error_behavior_flag):
9119         * glyphs.c (Fmake_image_instance):
9120         * indent.c (Findent_to):
9121         * intl.c (Fignore_defer_gettext):
9122         * keymap.c (Fkeymapp):
9123         * keymap.c (Flookup_key):
9124         * lread.c:
9125         * lread.c (Fload_internal):
9126         * lread.c (Feval_buffer):
9127         * lread.c (Feval_region):
9128         * macros.c (Fexecute_kbd_macro):
9129         * marker.c (set_marker_internal):
9130         * marker.c (Fset_marker):
9131         * marker.c (set_marker_restricted):
9132         * marker.c (Fcopy_marker):
9133         * marker.c (noseeum_copy_marker):
9134         * menubar.c:
9135         * menubar.c (Fpopup_menu):
9136         * minibuf.c:
9137         * mule-charset.c (Fcharset_name):
9138         * mule-charset.c (Fchar_charset):
9139         * mule-charset.c (Fchar_octet):
9140         * mule-charset.c (Fsplit_char):
9141         * mule-wnnfns.c (Fwnn_open):
9142         * mule-wnnfns.c (Fwnn_dict_comment):
9143         * mule-wnnfns.c (Fwnn_quit_henkan):
9144         * mule-wnnfns.c (Fwnn_word_toroku):
9145         * mule-wnnfns.c (Fwnn_word_sakujo):
9146         * mule-wnnfns.c (Fwnn_word_use):
9147         * mule-wnnfns.c (Fwnn_hindo_set):
9148         * objects.c:
9149         * objects.c (Fmake_color_instance):
9150         * objects.c (Fmake_font_instance):
9151         * print.c (Fwrite_char):
9152         * process.c:
9153         * process.c (mark_process):
9154         * process.c (print_process):
9155         * process.c (get_process_from_usid):
9156         * process.c (Fprocessp):
9157         * process.c (Fprocess_live_p):
9158         * process.c (Fget_process):
9159         * process.c (Fget_buffer_process):
9160         * process.c (get_process):
9161         * process.c (Fprocess_id):
9162         * process.c (Fprocess_name):
9163         * process.c (Fprocess_command):
9164         * process.c (init_process_io_handles):
9165         * process.c (start_process_unwind):
9166         * process.c (Fstart_process_internal):
9167         * process.c (Fopen_multicast_group_internal):
9168         * process.c (Fset_process_window_size):
9169         * process.c (read_process_output):
9170         * process.c (send_process):
9171         * process.c (Fprocess_tty_name):
9172         * process.c (Fset_process_buffer):
9173         * process.c (Fprocess_buffer):
9174         * process.c (Fprocess_mark):
9175         * process.c (set_process_filter):
9176         * process.c (Fset_process_filter):
9177         * process.c (Fprocess_filter):
9178         * process.c (Fprocess_send_region):
9179         * process.c (Fprocess_send_string):
9180         * process.c (exec_sentinel):
9181         * process.c (Fset_process_sentinel):
9182         * process.c (Fprocess_sentinel):
9183         * process.c (status_notify):
9184         * process.c (Fprocess_status):
9185         * process.c (Fprocess_exit_status):
9186         * process.c (process_send_signal):
9187         * process.c (Fprocess_send_eof):
9188         * process.c (deactivate_process):
9189         * process.c (remove_process):
9190         * process.c (Fdelete_process):
9191         * process.c (kill_buffer_processes):
9192         * process.c (Fprocess_kill_without_query):
9193         * process.c (Fprocess_kill_without_query_p):
9194         * rangetab.c:
9195         * rangetab.c (Fget_range_table):
9196         * rangetab.c (Fput_range_table):
9197         * rangetab.c (Fremove_range_table):
9198         * rangetab.c (Fclear_range_table):
9199         * search.c:
9200         * search.c (Fskip_chars_forward):
9201         * search.c (Fskip_chars_backward):
9202         * search.c (Fskip_syntax_forward):
9203         * search.c (Fskip_syntax_backward):
9204         * search.c (search_command):
9205         * search.c (Freplace_match):
9206         * search.c (Fregexp_quote):
9207         * select.c (Fown_selection_internal):
9208         * select.c (Fselection_owner_p):
9209         * select.c (Fselection_exists_p):
9210         * select.c (Fget_selection_internal):
9211         * specifier.c:
9212         * symbols.c:
9213         * symbols.c (Fintern):
9214         * symbols.c (Fintern_soft):
9215         * symbols.c (Funintern):
9216         * symbols.c (Fapropos_internal):
9217         * symbols.c (Fset_default):
9218         * syntax.c:
9219         * syntax.c (Fsyntax_table_p):
9220         * syntax.c (Fcopy_syntax_table):
9221         * syntax.c (Fset_syntax_table):
9222         * syntax.c (Fchar_syntax):
9223         * syntax.c (syntax_match):
9224         * syntax.c (Fmatching_paren):
9225         * syntax.c (Fforward_word):
9226         * syntax.c (scan_lists):
9227         * syntax.c (Fscan_lists):
9228         * syntax.c (Fscan_sexps):
9229         * syntax.c (Fparse_partial_sexp):
9230         * toolbar.c (Fcheck_toolbar_button_syntax):
9231         * tooltalk.doc:
9232         * window.c:
9233         * window.c (Fwindowp):
9234         * window.c (Fwindow_live_p):
9235         * window.c (Fwindow_point):
9236         * window.c (Fdelete_window):
9237         * window.c (Fnext_window):
9238         * window.c (Fprevious_window):
9239         * window.c (Fother_window):
9240         * window.c (window_loop):
9241         * window.c (Fget_lru_window):
9242         * window.c (Fsplit_window):
9243         * window.c (Fenlarge_window):
9244         * window.c (Fenlarge_window_pixels):
9245         * window.c (Fshrink_window):
9246         * window.c (Fshrink_window_pixels):
9247         * window.c (change_window_height):
9248         * window.c (Fwindow_configuration_p):
9249         * window.c (Fcurrent_window_configuration):
9250         * window.h:
9251         * casefiddle.c (casify_object):
9252         * casefiddle.c (Fupcase):
9253         * casefiddle.c (Fdowncase):
9254         * casefiddle.c (Fcapitalize):
9255         * casefiddle.c (Fupcase_initials):
9256         * casefiddle.c (casify_region_internal):
9257         * casefiddle.c (casify_region):
9258         * casefiddle.c (Fupcase_region):
9259         * casefiddle.c (Fdowncase_region):
9260         * casefiddle.c (Fcapitalize_region):
9261         * casefiddle.c (Fupcase_initials_region):
9262         * casefiddle.c (Fupcase_word):
9263         * casefiddle.c (Fdowncase_word):
9264         * casefiddle.c (Fcapitalize_word):
9265         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
9266         Replace 0 with '\0' when working with bytes.
9267         Replace initial "(" with "\(" in docstrings.
9268
9269 2000-11-01  Martin Buchholz  <martin@xemacs.org>
9270
9271         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
9272
9273         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
9274
9275 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9276
9277         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
9278
9279 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9280
9281         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
9282         correctly.
9283
9284 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9285
9286         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
9287         (inhibit_auto_save_session): New variable.
9288         (vars_of_fileio): Declare and initialize them.
9289         * fileio.c (Fdo_auto_save): Don't create session file if
9290         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
9291
9292 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9293
9294         * sgiplay.c (play_internal): C++ compilability.
9295         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
9296         * callproc.c (Fold_call_process_internal):
9297         Remove unused vars `env', `first'.
9298         * scrollbar.c (update_scrollbar_instance):
9299         #### unused var `current_window'.
9300         * redisplay-tty.c: Put currently unused vars insert_mode_on,
9301         etc. within #ifdef NOT_YET.
9302         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
9303         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
9304         * specifier.c (specifier_instance):
9305         #### unused var `tag'.
9306         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
9307
9308 2000-10-27  Martin Buchholz  <martin@xemacs.org>
9309
9310         * fns.c (Fbutlast):
9311         * fns.c (list_sort):
9312         * fns.c (Ffillarray):
9313         * fns.c (bytecode_nconc2):
9314         * fns.c (Fnconc):
9315         * fns.c (mapcar1):
9316         * fns.c (Fmapconcat):
9317         Be pedantically 64-bit correct.  For the time when someone will
9318         want to have a list with length > 2**32.
9319
9320         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9321         Work around MIPSpro compiler bug.
9322
9323         * process-unix.c (unix_kill_child_process): Add snarky comment.
9324         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
9325
9326         * config.h.in: Oops, _getpt ==> _getpty
9327
9328 2000-10-26  Martin Buchholz  <martin@xemacs.org>
9329
9330         * config.h.in:
9331         * regex.c:
9332         Use void*, not char*, as return type of alloca().
9333
9334         * alloc.c (free_marker): Side effect inside assert expression!
9335
9336 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
9337
9338         * mule-charset.c (Fset_charset_ccl_program): To check
9339         if the given ccl program is valid, use setup_ccl_program()
9340         instead of CHECK_VECTOR().
9341         (Fmake_charset): Likewise.
9342
9343 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
9344
9345         * faces.c (get_extent_fragment_face_cache_index):
9346         Fix cachel.merged_faces memory leak.
9347
9348 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
9349
9350         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
9351         Reset MSB of octets obtained by DECODE_SJIS
9352         because of the incompatibility with Emacs.
9353         (ccl_driver)<CCL_ENCODE_SJIS>:
9354         Set MSB of octets before passing them to
9355         ENCODE_SJIS because of the incompatibility
9356         with Emacs.
9357
9358 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
9359
9360         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
9361         (DECLARE_LRECORD): Undo the last change.
9362         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
9363
9364 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
9365
9366         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
9367         the implementation to lrecord_implementations_table.
9368
9369 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
9370
9371         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
9372         initial value of `lrecord_type_##c_name' and
9373         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
9374         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
9375         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
9376         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
9377         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
9378
9379 2000-10-17  Martin Buchholz  <martin@xemacs.org>
9380
9381         * miscplay.c (sndcnv8S_2mono):
9382         (sndcnv2monounsigned):
9383         (sndcnvULaw_2linear):
9384         (sndcnv16swap):
9385         Remove implementation-defined behavior.
9386
9387 2000-10-12  Martin Buchholz  <martin@xemacs.org>
9388
9389         * input-method-xlib.c: Warning suppression.
9390
9391 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
9392
9393         * mule-ccl.c: Sync up with Emacs 21.0.90.
9394         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
9395         Do nothing.
9396         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
9397         Likewise.
9398         (ccl_driver[WriteMultibyteChar2]): Bug fix.
9399         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
9400         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
9401         leading char belongs to official 2-dimensional charset.
9402         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
9403         write the given character as is.  Otherwise,
9404         if it is a multibyte char, convert it by
9405         non_ascii_set_charptr_emchar, then write it.
9406         (CCL_WRITE_STRING): Likewise.
9407         (ccl_get_compiled_code): New function.
9408         (setup_ccl_program): When ccl_prog is invalid,
9409         return -1.
9410         (Fregister_code_conversion_map): New function.
9411         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
9412
9413         * mule-ccl.h: Sync up with Emacs 21.0.90.
9414         (Fregister_ccl_program): export it.
9415
9416         * redisplay-msw.c (separate_textual_runs):
9417         If ccl program is not valid, don't do ccl conversion.
9418
9419         * redisplay-x.c (separate_textual_runs): Ditto.
9420
9421         * file-coding.c (Fmake_coding_system):
9422         When type is ccl and value is vector, register it
9423         with a proper symbol.  And checks whether the
9424         given ccl program is valid.
9425         (mule_decode): When calling ccl_driver, if src indicates
9426         NULL pointer, set an empty string instead.
9427         (mule_encode): Likewise.
9428
9429 2000-10-11  Martin Buchholz  <martin@xemacs.org>
9430
9431         The following large batch of changes gets us back to a state of
9432         C++ compilability.  Extbyte is now a char, which means that
9433         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9434
9435         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9436
9437         * sound.c (Fplay_sound): Type correctness.
9438
9439         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9440         (x_get_window_property): Type correctness.
9441         (receive_incremental_selection): unsigned char ==> Extbyte
9442         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9443         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9444         (Fx_store_cutbuffer_internal): Type correctness.
9445
9446         * process-unix.c (try_to_initialize_subtty): Type correctness.
9447
9448         * objects-x.c (x_print_color_instance): Type correctness.
9449         (x_print_font_instance): Type correctness.
9450         (x_list_fonts): SExtbyte ==> Extbyte.
9451         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9452         (x_find_charset_font): SExtbyte ==> Extbyte.
9453         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9454         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9455         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9456         Use bufbyte_strcmp.
9457
9458         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9459         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9460         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9461         (BYTE_C0_P): Use bit ops for char-signedness safety.
9462         (BYTE_C1_P): Use bit ops for char-signedness safety.
9463         (CHARSET_BY_LEADING_BYTE):
9464         (CHARSET_BY_ATTRIBUTES):
9465         Always use inline function.
9466         Use type_checking_assert.
9467         Hide chlook.
9468
9469         * mule-charset.c (non_ascii_charptr_copy_char):
9470         Modify to work with both ASCII and non-ASCII characters.
9471         Improve docs and variable names.
9472         Replace over-clever fall-through switch with a simple loop.
9473         (Lstream_get_emchar_1):
9474         Replace over-clever fall-through switch with a simple loop.
9475
9476         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9477         Warning suppression.
9478
9479         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9480         the return value of Lstream_getc, which could be EOF as well.
9481
9482         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9483
9484         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9485         APIs can be used on Extbytes without casts.  Risky!
9486         (SExtbyte): Remove.
9487         (UExtbyte): Remove.
9488
9489         * input-method-xlib.c (XIM_init_device):
9490         Use Xlib.h instead of IntrinsicP.h.
9491         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9492         which will break in X11R7.
9493         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9494         to call XRegisterIMInstantiateCallback with correct types.
9495
9496         * gui-x.c (button_item_to_widget_value): Type correctness.
9497
9498         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9499
9500         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9501         (xbm_instantiate_1): Type correctness.
9502         (BUILD_GLYPH_INST):  Type correctness.
9503
9504         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9505
9506         * file-coding.c:
9507         (decode_coding_sjis):
9508         (decode_coding_big5):
9509         (decode_coding_ucs4):
9510         (decode_coding_utf8):
9511         (decode_coding_iso2022):
9512         (decode_coding_no_conversion):
9513         Make all decoding functions take an Extbyte * arg.
9514         (encode_coding_sjis):
9515         (encode_coding_big5):
9516         (encode_coding_ucs4):
9517         (encode_coding_utf8):
9518         (encode_coding_iso2022):
9519         (encode_coding_no_conversion):
9520         Make all encoding functions take a Bufbyte * arg.
9521         Use size_t instead of unsigned int for memory sizes.
9522         Only cast to unsigned char whenever dereferencing Extbyte *.
9523
9524         * doc.c (unparesseuxify_doc_string): Type correctness.
9525
9526         * console-x.c (split_up_display_spec):
9527         Rewrite without using details of internal string representation.
9528         (x_semi_canonicalize_device_connection): Type correctness.
9529
9530         * config.h.in:
9531         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9532         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9533         (HAVE_XFREE386): Removed.
9534
9535         * buffer.h (DEC_CHARPTR): `const' correctness.
9536         (bufbyte_strcmp): New.
9537         (bufbyte_memcmp): New.
9538
9539         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9540
9541         * buffer.h (XCHAR_OR_CHAR_INT):
9542         Always use inline function.
9543         Remove redundant type checking assert() - XINT will abort quite nicely.
9544
9545 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9546
9547         * search.c (Freplace_match): Set newtext to an empty string.
9548
9549 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9550
9551         * s/decosf1-3.h: Remove #include of stropts.h
9552         * s/ptx.h: Remove #include of stropts.h
9553         * s/usg5-4.h: Remove #include of stropts.h
9554         * sysproc.h:
9555         * config.h.in:
9556         Use stropts.h, not sys/stropts.h.
9557         Use strtio.h, not sys/strtio.h.
9558
9559 2000-10-04  Martin Buchholz <martin@xemacs.org>
9560
9561         * XEmacs 21.2.36 is released.
9562
9563 2000-09-21  Andy Piper  <andy@xemacs.org>
9564
9565         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9566         changes still involve copying the widget tree.
9567         (update_widget_face): make sure a change is register in the widget
9568         tree. Call update_tab_widget_face appropriately.
9569         (update_tab_widget_face): ditto.
9570         (x_tab_control_redisplay): make sure non-structural changes still
9571         involve copying the widget tree.
9572
9573 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9574
9575         * lread.c (locate_file): Check the path element is non-nil.
9576
9577 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9578
9579         * lisp.h: Warning suppression for SCO compilers.
9580
9581         * redisplay-tty.c (reset_tty_modes): Fix crash.
9582         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9583
9584 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9585
9586         Big signal/process handling overhaul.  Bugs fixed:
9587         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9588         M-x comint-kill-subjob should work for both values nil and t of
9589         process-connection-type. It was broken on most platforms.
9590         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9591         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9592         * process-unix.c: Signal/Process handling overhaul.
9593         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9594         (allocate_pty): Use all available modern methods of allocating
9595         ptys, falling back to old style BSD allocation as a last resort.
9596         Use allegedly more secure Unix98 pty allocation by default.
9597         (allocate_pty_the_old_fashioned_way): New. the last resort.
9598         (unix_create_process): Push ptem, ldterm, ttcompat where
9599         available.  Autoconfiscate.
9600         (try_to_initialize_subtty): New.
9601         (unix_kill_child_process): Proper signal handling for ptys on most
9602         platforms, using special knowledge of AIX, BSD, etc...
9603         (unix_create_process): Always disconnect_controlling_terminal() for
9604         subprocesses, whether using ptys or not.
9605         * process.h: Remove old getpt-dependent PTY code.
9606         * process.c (Fprocess_send_signal): New, obvious generic function.
9607         (decode_signal): New.
9608         (Finterrupt_process):
9609         (Fkill_process):
9610         (Fquit_process):
9611         (Fstop_process):
9612         (Fcontinue_process):
9613         (Fsignal_process): Use decode_signal.
9614         (process_send_signal):
9615         Many docstring corrections.
9616         Allow any signal to be sent to a process object.
9617         * config.h.in: Add symbols for big signal/process overhaul.
9618         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9619         * sysproc.h: Include process-related headers, where available:
9620         sys/stropts.h sys/strtio.h pty.h libutil.h
9621         * s/irix4-0.h:
9622         * s/irix5-0.h:
9623         * s/cygwin32.h:
9624         * s/gnu.h:
9625         * s/linux.h:
9626         * s/hpux.h:
9627         * s/aix3-1.h:
9628         Remove old S&M pty stuff.
9629         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9630         * systty.h: Simplify cpp hackery, improve comments.
9631         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9632
9633         * editfns.c (Fformat_time_string):
9634         Be a little more paranoid with the return value of ctime.
9635
9636         * fileio.c (check_executable):
9637         (check_writable):
9638         Use symbolic constants X_OK, W_OK.
9639
9640         * console-x.c (split_up_display_spec): Fix a warning.
9641
9642 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9643
9644         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9645         * ntproc.c (sys_spawnve): make_string ==> build_string
9646         Small clarity improvements.
9647
9648 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9649
9650         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9651
9652         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9653
9654         * config.h.in (HAVE_STRCASECMP): Remove.
9655
9656 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9657
9658         * redisplay-output.c (redisplay_output_pixmap):
9659         Cleaner and possibly more 64-bit correct code.
9660
9661 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9662
9663         * dumper.c (pdump_load_finish): move restoration of
9664         `noninteractive1' to emacs.c (main_1).
9665         * emacs.c (main_1): protect LISP-visible command-line flags
9666         from pdump_load().
9667
9668 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9669
9670         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9671         DUMP_TARGET instead of literal program names.
9672
9673 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9674
9675         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9676
9677 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9678
9679         * *: Spelling mega-patch
9680
9681 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9682
9683         * fns.c (bad_bad_turtle):
9684         Delete "Eek!" comment, since we fixed the bug to which it refers.
9685
9686 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9687
9688         * alloca.c: Replace REGISTER with register.
9689
9690 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9691
9692         * file-coding.c (ucs_to_char): Use countof.
9693
9694 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9695
9696         * file-coding.c: (ucs_to_char):
9697         (complex_vars_of_file_coding):
9698         Use countof instead of sizeof.
9699         Use CHECK_NATNUM instead of CHECK_INT.
9700
9701         * sysdep.c (strcasecmp): Remove.
9702         * device-x.c (ascii_strcasecmp): New.
9703         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9704         Avoid using non-standard non-portable strcasecmp.
9705
9706 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9707
9708         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9709         * font-lock.c: remove reference to emacsfns.h.
9710         * search.c: small doc improvement.
9711         * event-Xt.c: correct file names in comments.
9712         * console-x.h Correct file names in comments.
9713         * frame.c: Correct file names in comments.
9714         * event-stream.c: remove Energize from comments.
9715
9716 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9717
9718         * symeval.h (DEFERROR_STANDARD):
9719         (DEFERROR):
9720         (DEFSYMBOL):
9721         (DEFSYMBOL_NO_DUMP):
9722         (DEFSYMBOL_MULTIWORD_PREDICATE):
9723         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9724         (DEFKEYWORD):
9725         The construct &##name is not sensible C.
9726         Fixes compilation errors with Unixware native compiler.
9727
9728 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9729
9730         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9731         (next_frame_internal): Removed.  We now just have next_frame.
9732         (next_frame):
9733         Write a simpler and cleaner one-pass algorithm.
9734         Remove called_from_delete_device arg and #ifdefed-out code.
9735         (previous_frame):
9736         Renamed from prev_frame.  Update callers.
9737         Cleaned up to have an analogous implementation to next_frame.
9738         (other_visible_frames_internal): Remove the
9739         called_from_delete_device bogus arg, and hence, remove this
9740         function.  Just use other_visible_frames().
9741
9742         * window.c (Fnext_window):
9743         Prettify docstring.
9744         Since next_frame() is guaranteed to return a frame, remove check
9745         for nil inserted in previous patch.
9746         (Fprevious_window):
9747         Prettify docstring.
9748         Make code look more like Fnext_window.
9749         (window_loop):
9750         Respect the `console' arg when iterating through windows.
9751         Fixes bug: (get-buffer-window buffer t device) not respecting
9752         the `device' arg.
9753         This function needs more work, as others have pointed out.
9754
9755         * frame.h: Rename prev_frame to previous_frame.
9756         device_matches_console_spec no longer takes a `frame' arg.
9757
9758         * s/gnu.h:
9759         * s/linux.h:
9760         * s/hpux.h:
9761         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9762         From "Golubev I. N." <gin@mo.msk.ru>.
9763
9764         * make-src-depend: Fix typo.
9765
9766 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9767
9768         * window.c (Fnext_window):
9769         next_frame() might return nil, not a frame.
9770         Fixes this crash:
9771         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9772
9773         * frame.c (next_frame_internal):
9774         We've passed a frame if we've passed its device.
9775         Fixes this crash:
9776         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9777 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9778
9779 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9780
9781         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9782         Allow option to suppress accelerators in menu/dialog items.
9783         (populate_or_checksum_helper): Pass dialog title through above.
9784
9785 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9786
9787         * event-msw.c (mswindows_key_to_emacs_keysym):
9788         Add "pause" key, fix "menu" key.
9789
9790 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9791
9792         * eval.c (reinit_vars_of_eval):
9793         Increase max_lisp_eval_depth to 1000,
9794         required for thai-xtis.el to byte-compile under some circumstances.
9795
9796 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9797
9798         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9799         From Kenichi Handa.
9800
9801 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9802
9803         * make-src-depend: Make the generated Makefiles smaller.
9804
9805         * s/hpux.h (SETUP_SLAVE_PTY):
9806         Provide a %d in the format string for the errno argument.
9807
9808         * editfns.c (Ftemp_directory):
9809         Warning fix.
9810         Avoid buffer overrun on very long file name.
9811
9812         * input-method-xlib.c (XIM_init_device):
9813         6th parameter of XRegisterIMInstantiateCallback has different
9814         pointer types on different OSes, so simply cast to (void *).
9815
9816         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9817
9818         * sysdll.c (dll_open):
9819         shl_load will hang hard if passed a NULL filename.
9820         Simply return NULL for compatibility with dlopen.
9821         * sysdll.c: Conform to XEmacs coding standards.
9822
9823         * sysdep.c (get_pty_max_bytes):
9824         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9825
9826 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9827
9828         * tooltalk.c: Add #include <syssignal.h>
9829
9830 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9831
9832         * s/hpux.h: Don't use undefined function sigunblock().
9833
9834 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9835
9836         * config.h.in: Add HAVE_BALLOON_HELP.
9837         * emacs.c: Use HAVE_BALLOON_HELP.
9838         * Makefile.in.in (x_objs):
9839         Make Balloon Help conditional on finding shape.h.
9840
9841 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9842
9843         * syntax.c (regex_emacs_buffer_p): New variable.
9844         * syntax.h (regex_emacs_buffer_p): extern.
9845         * search.c (looking_at_1):
9846         (string_match_1):
9847         (fast_string_match):
9848         (search_buffer): Set regex_emacs_buffer_p.
9849         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9850         when before_dot, at_dot, after_dot.
9851
9852 2000-08-23  Andy Piper  <andy@xemacs.org>
9853
9854         * gui-x.c (popup_selection_callback): Only set action_occurred
9855         when we really have an image instance.
9856         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9857
9858 2000-08-23  Andy Piper  <andy@xemacs.org>
9859
9860         * gui-msw.c (mswindows_handle_gui_wm_command): set
9861         action_occurred.
9862         * gui-x.c (popup_selection_callback): ditto.
9863
9864         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9865         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9866         (struct Lisp_Image_Instance): add action_occurred flag.
9867
9868         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9869         (image_instance_changed): ditto.
9870         (reset_frame_subwindow_instance_cache): only unmap windows - do
9871         not remove them from the cache also.
9872
9873         * glyphs-widget.c (tab_control_update): better debug.
9874         (progress_gauge_update): ditto.
9875         (layout_update): ditto.
9876         (layout_instantiate): ditto.
9877         (tab_control_order_only_changed): cope with null pending items.
9878
9879         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9880         debug. Force selection of an item when an action occurred. Cope
9881         with null pending_items.
9882         (mswindows_progress_gauge_redisplay): better debug.
9883         * glyphs-x.c (x_tab_control_redisplay): ditto.
9884
9885         * redisplay.c (redisplay_frame): reset the frame cache if the
9886         frame is garbaged.
9887
9888         * window.c (Fset_window_configuration): potentially re-enable
9889         frame cache reset.
9890         (window_unmap_subwindows): need to finalize instances here since
9891         it is only used in mark_window_as_deleted.
9892
9893 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9894
9895         * nas.c (SndOpenDataForReading):
9896         nas.c (WaveOpenDataForReading):
9897         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9898         Somehow escaped from the 2000-08-14 patch.
9899
9900 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9901
9902         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9903         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9904
9905 2000-08-21  Andy Piper  <andy@xemacs.org>
9906
9907         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9908         window if it is not already displayed.
9909
9910         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9911         it is not already displayed.
9912
9913         * window.c (Fset_window_configuration): don't reset the frame
9914         cache.
9915
9916         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9917         instances from the frame cache if we are actually finalizing them.
9918         (reset_frame_subwindow_instance_cache): reset frame cache only
9919         after unmapping everything.
9920         (map_subwindow): set displayed flag after mapping.
9921
9922 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9923
9924         * data.c (indirect_function):
9925         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9926
9927         * eval.c (function_argcount):
9928         Use original function when signaling errors.
9929
9930 2000-08-18  Andy Piper  <andy@xemacs.org>
9931
9932         * frame.c (delete_frame_internal): use new
9933         free_frame_subwindow_instances name.
9934
9935         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9936         (add_tab_item): make return type correct.
9937         (mswindows_tab_control_instantiate): assert index of tab.
9938         (mswindows_tab_control_redisplay): Re-code to use
9939         gui_item_equal_sans_selected and gui_item_list_find_selected.
9940
9941         * glyphs-widget.c (tab_control_update): Correct comment.
9942
9943         * window.c (window_unmap_subwindows): use new
9944         unmap_subwindow_instance_cache_mapper.
9945         (window_unmap_subwindows_cache_mapper): deleted.
9946         (Fset_window_configuration): comparisons should now be with
9947         EQ. Preserve the subwindow instance cache across configuration
9948         changes.
9949         (allocate_window): ditto.
9950         (make_dummy_parent): ditto.
9951
9952         * glyphs.c (free_frame_subwindow_instances): rename from
9953         free_frame_subwindow_instance_cache. finalize all instances rather
9954         than just those in the display cache.
9955         (finalize_all_subwindow_instances): walk windows unmapping and
9956         finalizing subwindows.
9957         (unmap_subwindow_instance_cache_mapper): moved from
9958         window.c. Allow finalization as well as unmapping.
9959
9960         * gui.c (gui_item_list_find_selected): new function.
9961
9962         * gui.h (gui_item_list_find_selected): declare.
9963
9964         * glyphs-x.c (x_tab_control_redisplay): pick tab
9965         explicitly. Re-code to use gui_item_equal_sans_selected and
9966         gui_item_list_find_selected.
9967
9968         * glyphs-x.h: add lwlib-utils.h
9969
9970         * buffer.c (Frecord_buffer): undo previous change.
9971
9972 2000-08-09  Vin Shelton  <acs@xemacs.org>
9973
9974         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9975         possible.  Create temporary files more securely.  The patch was
9976         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9977         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9978         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9979         for details.
9980
9981 2000-08-07  Ben Wing  <ben@xemacs.org>
9982
9983         * getloadavg.c: remove duplicate (and windows-breaking)
9984         includes of fcntl.h and sys/file.h.
9985
9986         * nt.c: remove duplicate getloadavg() definition.
9987
9988         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9989         encodings.
9990
9991 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9992
9993         * eval.c (function_argcount): If function needs to be autoloaded
9994         actually use the loaded definition.
9995         GCPRO function.
9996
9997 2000-08-05  Ben Wing  <ben@xemacs.org>
9998
9999         * getloadavg.c: add prototype for getloadavg().  remove
10000         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
10001         of the code).  remove duplicate header includes.
10002
10003         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
10004
10005         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
10006         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
10007         useful load average.
10008
10009         * alloc.c (reinit_alloc_once_early): removed references to
10010         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
10011         the lisp vars are the only things referencing the malloc_sbrk_*
10012         vars, and they were already if 0'd out.  these vars only exist
10013         in the older malloc.c, which is basically unused, and they're
10014         only for informational purposes.
10015
10016         * m\*.h: removed useless VIRT_ADDR_VARIES.
10017
10018         * m\powerpc.h: removed stray NO_ARG_ARRAY.
10019
10020 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10021
10022         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
10023         color if the image is a mono pixmap.
10024
10025 2000-07-30  Ben Wing  <ben@xemacs.org>
10026
10027         * Makefile.in.in (release):
10028         Remove stray @.
10029
10030         * buffer.c (directory_is_current_directory):
10031         * dired-msw.c (mswindows_get_files):
10032         * dired.c:
10033         * dired.c (Fdirectory_files):
10034         * dired.c (file_name_completion_stat):
10035         * dired.c (Ffile_attributes):
10036         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
10037         preprocessor tricks, to avoid problems on some machines
10038         (e.g. SCO).
10039
10040         * callproc.c (egetenv): GC docs.
10041
10042         * console-msw.h:
10043         * console-msw.h (struct mswindows_dialog_id):
10044         * lrecord.h (lrecord_type):
10045         New object for use with MSW dialogs.
10046
10047         * console.h (struct console_methods):
10048         New enable/disable frame methods, for proper modal dialogs.
10049
10050         * device-msw.c (msprinter_default_printer): Fix to follow
10051         proper Mule conventions.
10052
10053         * device-msw.c:
10054         * device-msw.c (signal_open_printer_error):
10055         * device-msw.c (msprinter_init_device):
10056         * device-msw.c (ensure_not_printing):
10057         * device-msw.c (plist_get_margin):
10058         * device-msw.c (Fmsprinter_select_settings):
10059         * device-msw.c (finalize_devmode):
10060         * device-msw.c (Fmsprinter_settings_despecialize):
10061         * device-msw.c (signal_enum_priner_error):
10062         * extents.c (decode_extent):
10063         * extents.c (decode_map_extents_flags):
10064         * extents.c (decode_extent_at_flag):
10065         * extents.c (Fextent_at):
10066         * extents.c (Fextents_at):
10067         * extents.c (symbol_to_glyph_layout):
10068         [[[[2]]]] Use structured errors.
10069
10070         * dialog-msw.c:
10071         * dialog-msw.c (mswindows_is_dialog_msg):
10072         * dialog-msw.c (mark_mswindows_dialog_id):
10073         * dialog-msw.c (dialog_proc):
10074         * dialog-msw.c (handle_question_dialog_box):
10075         * dialog-msw.c (syms_of_dialog_mswindows):
10076         Define new object to clean up marking; use it as a dialog identifier.
10077         Call new delete-dialog-box-hook.
10078
10079         * dialog-x.c (dbox_selection_callback):
10080         * dialog-x.c (dbox_descriptor_to_widget_value):
10081         * dialog-x.c (x_make_dialog_box_internal):
10082         Call new delete-dialog-box-hook.
10083         Return an id.
10084
10085         * dialog.c:
10086         * dialog.c (syms_of_dialog):
10087         * dialog.c (vars_of_dialog):
10088         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
10089
10090         * eval.c:
10091         * eval.c (signal_call_debugger):
10092         when noninteractive, output stack traces on the console instead
10093         of in a (never-seen) buffer.
10094
10095         * eval.c (signal_type_error):
10096         * eval.c (invalid_argument_2):
10097         * lisp.h:
10098         new funs for use w/structured errors.
10099
10100         * event-Xt.c:
10101         * event-Xt.c (x_to_emacs_keysym):
10102         * event-Xt.c (describe_event):
10103         * event-Xt.c (emacs_Xt_event_handler):
10104         * event-Xt.c (vars_of_event_Xt):
10105         * event-msw.c:
10106         * event-msw.c (mswindows_wnd_proc):
10107         * event-msw.c (vars_of_event_mswindows):
10108         rename {x,mswindows}-debug-events to debug-{}-events for
10109         consistency with other debug-foo variables.
10110
10111         * event-stream.c:
10112         document next-event more clearly.
10113
10114         * fileio.c (Ffile_name_directory):
10115         * fileio.c (Ffile_name_nondirectory):
10116         * fileio.c (Funhandled_file_name_directory):
10117         * fileio.c (file_name_as_directory):
10118         * fileio.c (Ffile_name_as_directory):
10119         * fileio.c (directory_file_name):
10120         * fileio.c (Fdirectory_file_name):
10121         * fileio.c (Fmake_temp_name):
10122         * fileio.c (Ffile_truename):
10123         * fileio.c (Fsubstitute_in_file_name):
10124         * fileio.c (expand_and_dir_to_file):
10125         * fileio.c (barf_or_query_if_file_exists):
10126         * fileio.c (check_executable):
10127         * fileio.c (Ffile_exists_p):
10128         * fileio.c (Ffile_writable_p):
10129         * fileio.c (Ffile_directory_p):
10130         * fileio.c (Ffile_regular_p):
10131         * fileio.c (Ffile_modes):
10132         * fileio.c (Ffile_newer_than_file_p):
10133         * fileio.c (Fverify_visited_file_modtime):
10134         * fileio.c (Fset_visited_file_modtime):
10135         * fileio.c (auto_save_1):
10136         (1). (2).
10137         fix up gcpro's.
10138
10139         * frame-msw.c:
10140         * frame-msw.c (mswindows_init_frame_1):
10141         * frame-msw.c (mswindows_enable_frame):
10142         * frame-msw.c (error_frame_unsizable):
10143         * frame-msw.c (msprinter_init_frame_1):
10144         * frame-msw.c (msprinter_init_frame_3):
10145         * frame-msw.c (console_type_create_frame_mswindows):
10146         (2).
10147         implement new enable/disable frame methods.
10148
10149         * frame-x.c:
10150         * frame-x.c (x_enable_frame):
10151         * frame-x.c (console_type_create_frame_x):
10152         implement new enable/disable frame methods.
10153
10154         * frame.c:
10155         * frame.c (Fdisable_frame):
10156         * frame.c (syms_of_frame):
10157         * frame.h (struct frame):
10158         implement new enable/disable frame methods/functions.
10159
10160         * general-slots.h:
10161         add initial-focus.
10162
10163         * glyphs-msw.c (mswindows_widget_instantiate):
10164         comment that initial-focus should be implemented.
10165
10166         * glyphs-widget.c:
10167         * glyphs-widget.c (check_valid_instantiator):
10168         * glyphs-widget.c (check_valid_orientation):
10169         * glyphs-widget.c (check_valid_tab_orientation):
10170         * glyphs-widget.c (check_valid_justification):
10171         * glyphs-widget.c (check_valid_border):
10172         * glyphs-widget.c (check_valid_callback):
10173         * glyphs-widget.c (check_valid_int_or_function):
10174         * glyphs-widget.c (check_valid_string_or_vector):
10175         * glyphs-widget.c (check_valid_item_list_1):
10176         * glyphs-widget.c (widget_validate):
10177         * glyphs-widget.c (combo_box_validate):
10178         * glyphs-widget.c (widget_instantiate):
10179         * glyphs-widget.c (syms_of_glyphs_widget):
10180         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
10181         * glyphs-widget.c (image_instantiator_combo_box):
10182         * glyphs-widget.c (image_instantiator_scrollbar):
10183         * glyphs-widget.c (image_instantiator_tab_control):
10184         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
10185         (2).
10186         support (unimplemented) keyword initial-focus.
10187         reindent long macros.
10188
10189         * glyphs-x.c (x_redisplay_widget):
10190         * glyphs-x.c (x_button_instantiate):
10191         * glyphs-x.c (x_button_redisplay):
10192         * glyphs-x.c (x_progress_gauge_instantiate):
10193         * glyphs-x.c (x_edit_field_instantiate):
10194         * glyphs-x.c (x_combo_box_instantiate):
10195         * glyphs-x.c (x_tab_control_instantiate):
10196         * glyphs-x.c (x_label_instantiate):
10197         * gui-x.c:
10198         * gui-x.c (button_item_to_widget_value):
10199         * gui-x.c (gui_items_to_widget_values_1):
10200         * gui-x.c (gui_item_children_to_widget_values):
10201         * gui-x.c (gui_items_to_widget_values):
10202         * gui-x.h:
10203         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10204         add new flag to gui-parsing routines to indicate whether
10205         accelerator specs should be supported.
10206
10207         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
10208
10209         * glyphs.h (struct Lisp_Image_Instance):
10210         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
10211         add initial-focus flag.
10212
10213         * gui.c:
10214         * gui.c (syms_of_gui):
10215         * gui.c (vars_of_gui):
10216         clean up menu-no-selection-hook.
10217
10218         * gui.h:
10219         support delete-dialog-box-hook.
10220
10221         * lread.c (Fload_internal):
10222         * lread.c (locate_file_in_directory_mapper):
10223         (1).
10224
10225         * lrecord.h:
10226         * lrecord.h (struct toolbar_button):
10227         * lrecord.h (syms_of_toolbar):
10228         document how to create a new object.
10229
10230         * menubar-msw.c (mswindows_char_is_accelerator):
10231         may be called on frames w/o menus.
10232
10233         * menubar.c (vars_of_menubar):
10234         clean up :filter docs.
10235
10236         * nt.c (readdir):
10237         * ntproc.c:
10238         (1).
10239
10240         * process-nt.c:
10241         * process-nt.c (validate_signal_number):
10242         * process-nt.c (signal_cannot_launch):
10243         * process-nt.c (nt_create_process):
10244         * process-nt.c (nt_send_process):
10245         * process-nt.c (nt_kill_child_process):
10246         * process-nt.c (nt_open_network_stream):
10247         * process-nt.c (syms_of_process_nt):
10248         (2).
10249         delete quote-handling.  call new lisp code that does it better.
10250
10251         * process-unix.c (connect_to_file_descriptor):
10252         * process-unix.c (allocate_pty):
10253         * process-unix.c (unix_send_process):
10254         * process-unix.c (unix_kill_child_process):
10255         * process-unix.c (unix_open_network_stream):
10256         * process-unix.c (unix_open_multicast_group):
10257         (1). (2).
10258
10259         * process.c:
10260         * process.c (Fstart_process_internal):
10261         (2).  need to canonicalize process path even if absolute.
10262
10263         * select-msw.c (symbol_to_ms_cf):
10264         * select-msw.c (ms_cf_to_symbol):
10265         * select-msw.c (cf_is_autofreed):
10266         * select-msw.c (mswindows_destroy_selection):
10267         * select.c:
10268         * select.c (syms_of_select):
10269         * select.h:
10270         support dibv5, fix bugs. (from Mike Alexander)
10271
10272         * select.c (Fget_selection_internal):
10273         * select.c (select_convert_out):
10274
10275         * sysdep.c:
10276         * sysdep.c (xemacs_stat):
10277         renamed.
10278
10279         * sysdep.c (mkdir):
10280         * sysdep.c (rmdir):
10281         but keep original stat() here because we provide encapsulation
10282         around these funs.
10283
10284         * sysfile.h:
10285         * sysfile.h (fstat):
10286         remove stat garbage.
10287
10288         * syswindows.h:
10289         fix X/MSW conflict.
10290         don't include tchar.h.  it's inappropriate because it makes
10291         compile-time distinctions when we want runtime distinctions.
10292         (we provide our own tchar replacements)
10293
10294         * toolbar.c:
10295         use default object printer for toolbar-button.
10296
10297         * unexcw.c:
10298         make sure we don't encapsulate.
10299
10300         * window.c (vars_of_window):
10301         emphasize that temp-buffer-show-hook is obsolete.
10302
10303 2000-08-05  Martin Buchholz  <martin@xemacs.org>
10304
10305         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
10306         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
10307
10308         * events.c (Fevent_timestamp_lessp):
10309         Not 64-bit clean.  Use EMACS_INT, not int.
10310
10311 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
10312
10313         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
10314         unsigned int and changed the last enum to
10315         lrecord_type_last_built_in_type.
10316         (lrecord_implementations_table): changed prototype to know how
10317         long the array is supposed to be.
10318         (lrecord_type_count): new unsigned int to keep track of the
10319         current number of lisp lrecord types.
10320         (DEFINE_EXTERNAL_LRECORD):
10321         (DECLARE_EXTERNAL_LRECORD): Added these two for external
10322         dynamic-modules to declare new lisp types. They are the same
10323         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
10324         int for each new type, and increment lrecord_type_count by 1.
10325
10326         * alloc.c (lrecord_implementations_table): Changed to reference
10327         lrecord_type_last_built_in_type for the size of the array.
10328         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
10329
10330 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10331
10332         * glyphs.h (check_valid_item_list): Renamed from
10333         check_valid_item_list_1.
10334
10335 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
10336
10337         * select.c (Qselect_coerce): New.
10338         * select.c (Vselection_coercion_alist): New.
10339         * select.c (syms_of_select): Declare.
10340         * select.c (get-selection-internal): Use it.
10341         Use the new select-coerce functionality.
10342
10343         * select.c (select_coerce): New.
10344         * select.h (select_coerce): Declare.
10345         New function to coerce one type of data into another.
10346
10347 2000-08-03  Martin Buchholz  <martin@xemacs.org>
10348
10349         * callproc.c (Fcall_process_internal):
10350         (Fcall_process_internal):
10351         * process-unix.c (unix_create_process):
10352         Save and restore the value of errno, so that error messages are accurate.
10353
10354 2000-08-01  Martin Buchholz  <martin@xemacs.org>
10355
10356         * elhash.c (print_hash_table):
10357         Fix printing of hash tables to also use `key-and-value' instead of `t'.
10358         Prettify docstrings and indentation.
10359
10360 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10361
10362         * window.c (Fwindow_pixel_edges): Subtract frame border and
10363         gutter size.
10364
10365 2000-07-31  Andy Piper  <andy@xemacs.org>
10366
10367         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
10368         will acknowledge the change.
10369
10370         * glyphs.h: declare tab_control_order_only_changed.
10371
10372         * glyphs-x.c (x_tab_control_redisplay): use
10373         tab_control_order_only_changed.
10374
10375         * glyphs-widget.c (tab_control_order_only_changed): new function.
10376
10377         * glyphs-msw.c (mswindows_tab_control_redisplay): use
10378         tab_control_order_only_changed.
10379
10380         * gui.c (gui_item_equal_sans_selected): new function.
10381         (gui_item_equal): use it.
10382
10383         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
10384         :properties in favor of :items..
10385
10386         * glyphs-widget.c (check_valid_item_list): rename from
10387         check_valid_item_list_1.
10388         (check_valid_item_list_1): renamed.
10389         (combo_box_validate): deprecate :properties in favor of :items.
10390         (widget_instantiate): ditto.
10391         (tab_control_update): ditto.
10392         (image_instantiator_combo_box): ditto.
10393         (image_instantiator_tree_view): ditto.
10394         (image_instantiator_tab_control): ditto.
10395         (layout_post_instantiate): remove dead code.
10396
10397         * print.c (debug_print_no_newline): only write to debugger if in
10398         WIN32_NATIVE.
10399
10400         * elhash.c (Fmake_hash_table): update doc string.
10401
10402         * event-msw.c (mswindows_wnd_proc): don't allow processing of
10403         messages whilst in GC. This at least stops XEmacs crashing but has
10404         the potential for wierd behaviour.
10405
10406 2000-07-31  Martin Buchholz  <martin@xemacs.org>
10407
10408         * config.h.in:
10409         Make existence of s&m files optional.
10410
10411         * s/bsd386.h: Remove HAVE_GETLOADAVG.
10412         * s/freebsd.h: Remove HAVE_GETLOADAVG.
10413         * s/gnu.h: Remove HAVE_GETLOADAVG.
10414         * s/netbsd.h: Remove HAVE_GETLOADAVG.
10415         * s/sol2.h: Remove HAVE_GETLOADAVG.
10416         * lisp.h: Remove getloadavg() declaration.
10417         * fns.c:
10418         Include <sys/loadavg.h> if available.
10419         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
10420         * config.h.in:  Group together getloadavg()-related macros.
10421         Use only configure-time tests to detect getloadavg().
10422
10423 2000-07-30  Martin Buchholz  <martin@xemacs.org>
10424
10425         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10426
10427 2000-07-25  Andy Piper  <andy@xemacs.org>
10428
10429         * syswindows.h: add tchar.h for native builds.
10430
10431         * frame.c (syms_of_frame): remove set-glyph-image.
10432
10433         * general-slots.h: add Qset_glyph_image.
10434
10435         * glyphs-widget.c (layout_update): add domain arg to
10436         set-glyph-image.
10437         (syms_of_glyphs_widget): remove set-glyph-image.
10438
10439 2000-07-23  Ben Wing  <ben@xemacs.org>
10440
10441         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10442         Vpopup_frame_list.
10443
10444 2000-07-22  Andy Piper  <andy@xemacs.org>
10445
10446         * symsinit.h: add syms_of_win32().
10447
10448         * gui-msw.c (syms_of_gui_mswindows): remove
10449         Fmswindows_shell_execute.
10450         (Fmswindows_shell_execute): moved to win32.c.
10451
10452         * emacs.c (main_1): add syms_of_win32 ().
10453
10454         * win32.c (init_potentially_nonexistent_functions): rewrite in
10455         compiler-friendly terms.
10456         (Fmswindows_shell_execute): move here from gui-msw.c.
10457         (syms_of_win32): new.
10458
10459         * device-msw.c (Fmswindows_printer_list): clean up args to
10460         EnumPrinters.
10461         Don't include tchar under cygwin or mingw.
10462         (msprinter_default_printer): make cygwin-friendly.
10463
10464 2000-07-21  Andy Piper  <andy@xemacs.org>
10465
10466         * glyphs-widget.c (image_instantiator_tree_view): use tab
10467         control's update function.
10468         (layout_property): new function. Retrieve items.
10469
10470         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10471         function. Re-populate the tree view from the pending items.
10472
10473         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10474         is designated the parent if the domain is an image instance. This
10475         is needed so that dirtiness can be cascade up the hierarchy and
10476         thus for layout children to be redisplayed correctly.
10477         (allocate_image_instance): rename glyph -> parent.
10478
10479         * redisplay.h: change redisplay_output_layout signature.
10480
10481         * redisplay-msw.c (mswindows_output_display_block): use domain
10482         arg.
10483
10484         * redisplay-x.c (x_output_display_block): use domain arg.
10485
10486 2000-07-10  Andy Piper  <andy@xemacs.org>
10487
10488         * window.c (Fset_window_configuration): add comment.
10489
10490         * redisplay-output.c (compare_runes):
10491         (redisplay_output_subwindow): redisplay rather than update subwindow.
10492         (redisplay_output_layout): ditto.
10493
10494         * redisplay-msw.c (mswindows_frame_output_end):
10495         (mswindows_frame_output_end): make defer window pos optional.
10496
10497         * lisp.h: add Flast.
10498
10499         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10500         normalize method. Change update method to be for changed
10501         instantiators. Add redisplay method. Change signature of layout
10502         method.
10503         (struct Lisp_Image_Instance): add instantiator.
10504         (IMAGE_INSTANCE_INSTANTIATOR): new.
10505         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10506         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10507         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10508
10509         * glyphs.c:
10510         (find_instantiator_differences): new function.
10511         (Fset_instantiator_property): new convenience function.
10512         (check_image_instance_structure): strictly check for vector
10513         instantiators.
10514         (normalize_image_instantiator): make non-static.
10515         (instantiate_image_instantiator): pass on dest_mask and use new
10516         signatures for image_instance_layout and friends.
10517         (mark_image_instance): mark the instantiator. Mark the subwindow
10518         face not the widget face.
10519         (image_instance_equal): add instantiator.
10520         (image_instance_hash): ditto.
10521         (allocate_image_instance): ditto.
10522         (Fset_image_instance_property): removed.
10523         (Fimage_instance_file_name): ditto.
10524         (Fcolorize_image_instance): ditto.
10525         (image_instance_layout): add offsets to be set.
10526         (update_image_instance): new function. update an image instance
10527         from its changed instantiator.
10528         (inherit_normalize): add dest_mask.
10529         (xbm_normalize): ditto.
10530         (xface_normalize): ditto.
10531         (xpm_normalize): ditto.
10532         (text_update): set_property -> update.
10533         (image_instantiate): use the glyph identity as a hash key, not the
10534         instantiator.
10535         (glyph_width): use new image_instance_layout signature.
10536         (glyph_ascent): ditto.
10537         (glyph_descent): ditto.
10538         (glyph_height): ditto.
10539         (glyph_query_geometry): ressurrect.
10540         (glyph_layout): ditto.
10541         (redisplay_subwindow): update -> redisplay.
10542         (syms_of_glyphs): add Fset_instantiator_property.
10543         (image_instantiator_format_create): set_property -> update.
10544
10545         * glyphs-x.c:
10546         (autodetect_normalize): add dest_maks to signature.
10547         (x_redisplay_subwindow): update -> redisplay.
10548         (x_redisplay_widget): ditto.
10549         (x_button_redisplay): ditto.
10550         (x_progress_gauge_redisplay): ditto.
10551         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10552         stacking order.
10553         (console_type_create_glyphs_x): update -> redisplay.
10554         (image_instantiator_format_create_glyphs_x): ditto.
10555
10556         * glyphs-widget.c:
10557         (check_valid_instantiator): disallow glyphs in the instantiator,
10558         they must now be vectors.
10559         (check_valid_instantiator_list): ditto.
10560         (glyph_instantiator_to_glyph): use internal symbol rather than
10561         intern.
10562         (widget_update): renamed from widget_set_property. Call cascaded
10563         update methods.
10564         (redisplay_widget): renamed from update_widget.
10565         (widget_layout): image_instance_layout now takes position as well
10566         as size.
10567         (widget_normalize): ditto.
10568         (widget_instantiate): ditto.
10569         (tab_control_query_geometry) ditto.:
10570         (tab_control_update): renamed from tab_control_set_property.
10571         (progress_gauge_update): set_property -> update.
10572         (layout_normalize): rewrite so that child instantiators are
10573         normalized also.
10574         (layout_update): new function. Create glyphs from the normalized
10575         children and cope with any other layout keywords. We do not
10576         instantiate children here that will be take care of by
10577         redisplay_output_layout.
10578         (layout_instantiate): call layout_update and not much else.
10579         (layout_post_instantiate): not sure whether this is needed
10580         anymore.
10581         (layout_query_geometry): query glyph geometry rather than
10582         image_instance geometry.
10583         (layout_layout): set offsets from pass in parameters. Use glyph
10584         geometry and layout functions rather than image instance ones.
10585         (native_layout_layout): ditto.
10586         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10587         (image_instantiator_widget): set_property -> update.
10588         (image_instantiator_buttons): ditto.
10589         (image_instantiator_progress_guage): ditto.
10590         (image_instantiator_tab_control): ditto.
10591         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10592         (image_instantiator_layout): add update method.
10593
10594         * glyphs-msw.c (bmp_normalize):
10595         (mswindows_resource_normalize): add dest_mask so that it can be
10596         proprogated by layout_normalize.
10597         (begin_defer_window_pos): make optional because it may not be the
10598         right thing to do and it introduces differences with X.
10599         (mswindows_unmap_subwindow): ditto.
10600         (mswindows_map_subwindow): ditto.
10601         (mswindows_redisplay_subwindow): renamed from
10602         mswindows_update_subwindow.
10603         (mswindows_redisplay_widget): ditto.
10604         (mswindows_button_redisplay): renamed from
10605         mswindows_button_update. Update is now what the instantiation
10606         function does for a changed instantiator.
10607         (mswindows_progress_gauge_instantiate): set the progress value
10608         here if appropriate.
10609         (mswindows_tab_control_redisplay): cope with re-ordering of the
10610         members of the tab widget by simply selecting the new top
10611         widget. This makes things appear ok if you click on a tab.
10612         (mswindows_combo_box_instantiate): image_instance_layout now takes
10613         position as well as size.
10614         (mswindows_progress_gauge_redisplay): renamed from
10615         mswindows_progress_gauge_update.
10616         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10617         (image_instantiator_format_create_glyphs_mswindows): ditto.
10618
10619         * glyphs-eimage.c (jpeg_normalize):
10620         (gif_normalize):
10621         (png_normalize):
10622         (tiff_normalize): add dest_mask so that it can be proprogated by
10623         layout_normalize.
10624
10625         * elhash.c:
10626         (print_hash_table):
10627         (hash_table_weakness_validate):
10628         (decode_hash_table_weakness):
10629         (Fhash_table_weakness):
10630         (Fhash_table_type):
10631         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10632
10633         * console.h (struct console_methods): move update_* to
10634         redisplay_*.
10635
10636 2000-07-20  Ben Wing  <ben@xemacs.org>
10637
10638         * *.[ch] (XSETOBJ): remove unused middle argument.
10639         lisp-disunion.h: correct wrap_object() to one argument.
10640
10641 2000-07-15  Ben Wing  <ben@xemacs.org>
10642
10643         * s/cygwin32.h:
10644         * s/cygwin32.h (CYGWIN_CONV_PATH):
10645         Add missing logb prototype for v1.1.
10646         Use post-b20 names and alias to pre-b20 names when pre-b20.
10647
10648         * s/windowsnt.h: [5].
10649
10650 2000-07-15  Ben Wing  <ben@xemacs.org>
10651
10652         * Makefile.in.in (x_objs):
10653         * Makefile.in.in (sheap_objs):
10654         * Makefile.in.in (objs):
10655         added win32.o, cosmetic cleanups.
10656
10657         * alloc.c (Fmake_byte_code):
10658         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10659         etc. macros which declare their own args now.
10660
10661         * alloc.c (syms_of_alloc):
10662         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10663
10664         * buffer.c:
10665         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10666
10667         * buffer.c (Fget_file_buffer):
10668         Fixed GCPRO problem.
10669
10670         * buffer.c (get_truename_buffer):
10671         Fixed comment about GC checking.
10672
10673         * buffer.c (syms_of_buffer):
10674         Undeclared those dedicated frame funs.
10675         [2].
10676
10677         * buffer.h:
10678         Define convenience macros for internal/external conversions.
10679         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10680         and Qenvironment_variable_encoding for cleaner code.
10681
10682         * bufslots.h:
10683         Remove dedicated-frame; in lisp.
10684
10685         * bytecode.c (funcall_compiled_function):
10686         [1].
10687
10688         * bytecode.c (syms_of_bytecode):
10689         [2].
10690
10691         * console-msw.c:
10692         * console-msw.c (mswindows_show_console): Rewrote.
10693
10694         * console-msw.c (Fmswindows_debugging_output): New.
10695         Sends to OutputDebugString (special MSWin debugger interface).
10696
10697         * console-msw.c (Fmswindows_message_box):
10698         Fixed stupid bugs so it works when called from kill-emacs.
10699
10700         * console-msw.c (syms_of_console_mswindows):
10701         Declare Fmswindows_debugging_output.
10702
10703         * console-msw.h:
10704         New MSWin prototypes.
10705
10706         * console-msw.h (struct mswindows_frame):
10707         New entry last-click-mods for improved button-modifier support.
10708
10709         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10710         New struct entry `popup' with corresponding accessor.
10711
10712         * console-x.c:
10713         * console-x.c (split_up_display_spec):
10714         * console-x.c (get_display_arg_connection):
10715         * console-x.c (x_semi_canonicalize_console_connection):
10716         * console-x.c (x_canonicalize_device_connection):
10717         [[[6]]]: Change char to more specific type.
10718         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10719
10720         * console-x.c (x_semi_canonicalize_console_connection):
10721         * console-x.c (x_canonicalize_device_connection):
10722         [[[9]]]: Fix up error signalling to use new structured error system.
10723
10724         * console-x.h:
10725         [[[4]]]: Define codesys aliases:
10726         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10727         Qx_color_name_encoding, Qx_display_name_encoding.
10728
10729         * console.h (struct console_methods):
10730         New method make_dialog_box_internal supersedes older
10731         popup_dialog_box method.
10732
10733         * data.c:
10734         Define many new errors, part of new structured errors.
10735
10736         * data.c (init_errors_once_early):
10737         * data.c (syms_of_data):
10738         [2].
10739
10740         * device-msw.c (mswindows_init_device):
10741         [[[5]]]: Cleanup to support NT 3.51.
10742
10743         * device-msw.c (decode_devmode): Cleanup.
10744
10745         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10746         * device-msw.c (mswindows_handle_print_dialog_box):
10747         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10748         * device-msw.c (syms_of_device_mswindows):
10749         Delete the dialog box primitives recently introduced by Kirill and
10750         instead interface to general dialog box interface.
10751
10752         * device-x.c:
10753         * device-x.c (compute_x_app_name):
10754         * device-x.c (x_init_device):
10755         * device-x.c (Fx_valid_keysym_name_p):
10756         * device-x.c (Fx_set_font_path):
10757         [6].
10758         [7].
10759
10760         * device.h (wrap_device): New.
10761         First of its kind; meant to replace XSETDEVICE.
10762
10763         * dialog-msw.c: Many file-dialog symbols.
10764
10765         * dialog-msw.c (mswindows_register_popup_frame): New.
10766         * dialog-msw.c (mswindows_is_dialog_msg): New.
10767         For supporting kbd traversal in dialog boxes.
10768
10769         * dialog-msw.c (dialog_proc):
10770         Support hitting ESC in dialogs.
10771
10772         * dialog-msw.c (struct):
10773         Common dialog box errors.
10774
10775         * dialog-msw.c (handle_file_dialog_box): New.
10776         Add file dialog code.
10777
10778         * dialog-msw.c (handle_question_dialog_box):
10779         Redo existing code to support new question dialog syntax.
10780
10781         * dialog-msw.c (console_type_create_dialog_mswindows):
10782         We support new dialog console method.
10783
10784         * dialog-msw.c (syms_of_dialog_mswindows):
10785         * dialog-msw.c (vars_of_dialog_mswindows):
10786         New file dialog symbols, vars.
10787
10788         * dialog-x.c:
10789         * dialog-x.c (maybe_run_dbox_text_callback):
10790         * dialog-x.c (dbox_descriptor_to_widget_value):
10791         * dialog-x.c (x_make_dialog_box_internal):
10792         * dialog-x.c (console_type_create_dialog_x):
10793         Mule-ize entire file.
10794         Redo to support question dialog syntax.
10795         [6].
10796
10797         * dialog.c:
10798         * dialog.c (Fmake_dialog_box_internal):
10799         * dialog.c (syms_of_dialog):
10800         Kill old popup-dialog-box, replace with new primitive.
10801         Just call device method or signal error.
10802
10803         * eldap.c (Fldap_open):
10804         * eldap.c (Fldap_search_basic):
10805         * eldap.c (Fldap_add):
10806         * eldap.c (Fldap_modify):
10807         [1].
10808         [7].
10809
10810         * emacs.c:
10811         * emacs.c (make_arg_list_1):
10812         * emacs.c (make_arg_list):
10813         Mule-ize call to dll_init().
10814         [6].
10815         [8].
10816
10817         * emacs.c (make_argc_argv):
10818         * emacs.c (free_argc_argv):
10819         * emacs.c (init_cmdargs):
10820         * emacs.c (main_1):
10821         * emacs.c (Fkill_emacs):
10822         * emacs.c (Fdump_emacs):
10823         Update comments about what can be used in syms_* etc.
10824         Call init_win32() when necessary.
10825         Fix up MS Win dialog box in kill-buffer to actually work right.
10826         [7].
10827
10828         * eval.c:
10829         * eval.c (For):
10830         * eval.c (Fand):
10831         * eval.c (Fprogn):
10832         * eval.c (Fprog1):
10833         * eval.c (Fprog2):
10834         * eval.c (FletX):
10835         * eval.c (Flet):
10836         * eval.c (condition_case_3):
10837         * eval.c (Feval):
10838         * eval.c (function_argcount):
10839         * eval.c (funcall_lambda):
10840         [1].
10841
10842         * eval.c (type_error): New.
10843         * eval.c (maybe_type_error): New.
10844         * eval.c (continuable_type_error): New.
10845         * eval.c (maybe_continuable_type_error): New.
10846         * eval.c (type_error_with_frob): New.
10847         * eval.c (maybe_type_error_with_frob): New.
10848         * eval.c (continuable_type_error_with_frob): New.
10849         * eval.c (maybe_continuable_type_error_with_frob): New.
10850         New functions for use with structured errors.
10851
10852         * event-Xt.c:
10853         * event-Xt.c (x_event_to_emacs_event):
10854         Buttons are now modifiers too.
10855
10856         * event-Xt.c (emacs_Xt_current_event_timestamp):
10857         Implement new event method.
10858         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10859
10860         * event-msw.c:
10861         * event-msw.c (ntpipe_shove_writer): [5].
10862         * event-msw.c (mswindows_enqueue_mouse_button_event):
10863         * event-msw.c (mswindows_drain_windows_queue):
10864         * event-msw.c (mswindows_wnd_proc): [7].
10865         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10866         * event-msw.c (mswindows_modifier_state):
10867         Throughout: support new button modifiers.
10868
10869         * event-msw.c (emacs_mswindows_current_event_timestamp):
10870         Implement new event method.
10871         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10872
10873         * event-stream.c:
10874         * event-stream.c (event_stream_current_event_timestamp): New.
10875         * event-stream.c (maybe_kbd_translate): New functionality.
10876         * event-stream.c (vars_of_event_stream):
10877         Document new kbd-translate-table functionality.
10878
10879         * event-stream.c (Fcurrent_event_timestamp): New.
10880         New primitive for use in fabricated events.
10881         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10882
10883         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10884
10885         * events.c:
10886         * events.c (Fmake_event):
10887         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10888         [1].
10889         [9].
10890
10891         * events.c (format_event_object): fix gcc warnings.
10892
10893         * events.c (Fevent_timestamp): Document new primitives.
10894
10895         * events.c (TIMESTAMP_HALFSPACE): New.
10896
10897         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10898         comparing timestamps correctly (half-space algorithm).
10899
10900         * events.c (Fevent_modifier_bits): Doc fix.
10901
10902         * events.c (Fevent_modifiers): Major doc addition.
10903         * events.c (event_x_y_pixel_internal): Typo fix.
10904         * events.c (syms_of_events): Declare new primitives.
10905
10906         * events.h:
10907         Update long comment for button modifiers, timestamps.
10908
10909         * events.h (struct event_stream):
10910         New current_event_timestamp method.
10911
10912         * extents.c:
10913         * extents.c (extent_in_region_p):
10914         * extents.c (decode_extent):
10915         * extents.c (Fset_extent_parent):
10916         * extents.c (decode_map_extents_flags):
10917         Fix gcc warnings.
10918         [9].
10919
10920         * extents.c (struct extent_at_arg):
10921         * extents.c (decode_extent_at_flag):
10922         * extents.c (extent_at_mapper):
10923         * extents.c (extent_at_bytind):
10924         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10925         * extents.c (Fextents_at): New primitive. [9].
10926         * extents.c (symbol_to_glyph_layout): [9].
10927         Support new primitive `extents-at'.
10928
10929
10930         * extents.c (get_text_property_bytind):
10931         extent_at_bytind has another arg.
10932         [9].
10933
10934         * extents.c (syms_of_extents): New primitive.
10935
10936         * file-coding.c (Fmake_coding_system): [1].
10937         * file-coding.c (subsidiary_coding_system): fix gcc warning
10938         * file-coding.c (syms_of_file_coding): [2].
10939
10940         * fileio.c (Fexpand_file_name):
10941         * fileio.c (Fsysnetunam):
10942         * fileio.c (Ffile_exists_p):
10943         * fileio.c (Ffile_executable_p):
10944         * fileio.c (Fverify_visited_file_modtime):
10945         Clean up GCPROing.
10946
10947         * fileio.c (syms_of_fileio): [2].
10948
10949         * filelock.c (lock_file_1):
10950         * filelock.c (current_lock_owner):
10951         * filelock.c (lock_if_free):
10952         * filelock.c (lock_file):
10953         * filelock.c (unlock_file):
10954         Clean up GCPROing.
10955
10956         * fns.c (concat): Fix gcc warning.
10957
10958         * fns.c (Fmember):
10959         * fns.c (Fold_member):
10960         * fns.c (Fmemq):
10961         * fns.c (Fold_memq):
10962         * fns.c (memq_no_quit):
10963         * fns.c (Fassoc):
10964         * fns.c (Fold_assoc):
10965         * fns.c (Fassq):
10966         * fns.c (Fold_assq):
10967         * fns.c (assq_no_quit):
10968         * fns.c (Frassoc):
10969         * fns.c (Fold_rassoc):
10970         * fns.c (Frassq):
10971         * fns.c (Fold_rassq):
10972         * fns.c (rassq_no_quit):
10973         * fns.c (Fdelete):
10974         * fns.c (Fold_delete):
10975         * fns.c (Fdelq):
10976         * fns.c (Fold_delq):
10977         * fns.c (delq_no_quit):
10978         * fns.c (Fremassoc):
10979         * fns.c (Fremassq):
10980         * fns.c (remassq_no_quit):
10981         * fns.c (Fremrassoc):
10982         * fns.c (Fremrassq):
10983         * fns.c (remrassq_no_quit):
10984         * fns.c (Freverse):
10985         * fns.c (mapcar1):
10986         [1].
10987
10988         * frame-msw.c (mswindows_init_frame_1):
10989         * frame-msw.c (mswindows_delete_frame):
10990         Register popups with dialog code so keyboard traversing works.
10991
10992         * frame-tty.c (tty_raise_frame_no_select): [1].
10993
10994         * frame-x.c:
10995         * frame-x.c (x_set_frame_text_value):
10996         * frame-x.c (x_set_frame_properties):
10997         * frame-x.c (x_create_widgets):
10998         [7].
10999
11000         * frame.c:
11001         * frame.c (Fmouse_pixel_position): Minor doc fixes.
11002
11003         * frame.h (wrap_frame): New.
11004         Macro like wrap_device.
11005
11006         * general.c:
11007         * general.c (SYMBOL):
11008         * general.c (syms_of_general):
11009         Major reorg.  This is now just a wrapper and symbols themselves
11010         are listed in general-slots.h.
11011
11012         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
11013         * glyphs-msw.c (mswindows_resource_instantiate): [5].
11014
11015         * glyphs-msw.c (mswindows_native_layout_instantiate):
11016         Add DS_CONTROL so keyboard traversal will work.
11017
11018         * glyphs-widget.c:
11019         * glyphs-widget.c (syms_of_glyphs_widget):
11020         Move some symbols to general-slots.h.
11021
11022         * glyphs-x.c:
11023         * glyphs-x.c (xbm_instantiate_1):
11024         * glyphs-x.c (x_xbm_instantiate):
11025         * glyphs-x.c (x_xface_instantiate):
11026         * glyphs-x.c (autodetect_instantiate):
11027         * glyphs-x.c (cursor_font_instantiate):
11028         * glyphs-x.c (x_update_widget):
11029         * glyphs-x.c (x_widget_instantiate):
11030         * glyphs.c (bitmap_to_lisp_data):
11031         * glyphs.c (pixmap_to_lisp_data):
11032         [7].
11033
11034         * glyphs.c (syms_of_glyphs):
11035         [2].
11036
11037         * gui-x.c:
11038         * gui-x.c (print_widget_value):
11039         * gui-x.c (menu_separator_style_and_to_external):
11040         * gui-x.c (add_accel_and_to_external):
11041         * gui-x.c (button_item_to_widget_value):
11042         * gui-x.c (gui_items_to_widget_values_1):
11043         * gui-x.c (gui_items_to_widget_values):
11044         * gui-x.c (syms_of_gui_x):
11045         * gui-x.c (vars_of_gui_x):
11046         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
11047         [9].
11048
11049         * gui-x.h:
11050         Muleize, prototype changes matching gui-x.c.
11051
11052         * gui.c:
11053         * gui.c (separator_string_p):
11054         * gui.c (gui_item_add_keyval_pair):
11055         * gui.c (make_gui_item_from_keywords_internal):
11056         * gui.c (signal_too_long_error):
11057         * gui.c (parse_gui_item_tree_item):
11058         * gui.c (syms_of_gui):
11059         * gui.c (vars_of_gui):
11060         * gui.h:
11061         menu-no-selection-hook moved here (used by MSWin).
11062         Move some symbols to general-slots.h.
11063         [6].
11064         [9].
11065
11066         * insdel.c (get_buffer_pos_char):
11067         * insdel.c (get_buffer_range_char):
11068         Add GC comments.
11069
11070         * keymap.c (keymap_lookup_directly):
11071         * keymap.c (keymap_store):
11072         * keymap.c (ensure_meta_prefix_char_keymapp):
11073         * keymap.c (describe_map):
11074         * keymap.h:
11075         Support new button modifiers.
11076
11077         * lisp-disunion.h (wrap_object):
11078         * lisp-disunion.h (XSETOBJ):
11079         Rename make_obj to wrap_object.
11080
11081         * lisp-union.h:
11082         * lisp-union.h (make_int):
11083         * lisp-union.h (make_char):
11084         Support wrap_object.
11085
11086         * lisp.h:
11087         * lisp.h (LIST_LOOP):
11088         * lisp.h (EXTERNAL_LIST_LOOP):
11089         * lisp.h (LIST_LOOP_2):
11090         * lisp.h (EXTERNAL_LIST_LOOP_1):
11091         * lisp.h (EXTERNAL_LIST_LOOP_2):
11092         * lisp.h (EXTERNAL_LIST_LOOP_3):
11093         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
11094         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11095         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
11096         * lisp.h (EXTERNAL_ALIST_LOOP_5):
11097         * lisp.h (EXTERNAL_ALIST_LOOP_6):
11098         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
11099         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
11100         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
11101         * lisp.h (struct Lisp_Symbol):
11102         * lisp.h (maybe_continuable_error_with_frob):
11103         Fix up section comments.
11104         Add new types for char to indicate usage.
11105         Delete symbols auto-generated from general-slots.h.
11106         Add prototypes for structured error functions.
11107         Add long comments describing looping macros and change interface
11108         so that lvalues are automatically declared.
11109         Add NO_DECLARE macro in case callers want to declare lvalues
11110         themselves.
11111
11112         * lread.c (read_syntax_error):
11113         * lread.c (continuable_read_syntax_error):
11114         * lread.c (read_structure):
11115         * lread.c (sequence_reader):
11116         * lread.c (read_list_conser):
11117         * lread.c (read_compiled_function):
11118         Rename syntax_error and continuable_syntax_error to avoid clash
11119         with same-named structured error functions.
11120
11121         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11122         * menubar-msw.c (populate_menu_add_item):
11123         * menubar-msw.c (populate_or_checksum_helper):
11124         [5].
11125         [9].
11126
11127         * menubar-x.c:
11128         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11129         Mule-ize whole file.
11130
11131         * menubar.c (Fnormalize_menu_item_name): Add optimization.
11132
11133         * mule-charset.c (Fmake_charset):
11134         * mule-wnnfns.c (Fwnn_set_param):
11135         [1].
11136
11137         * ntproc.c (create_child):
11138         * ntproc.c (Fwin32_set_current_locale):
11139         Add comments portending doom.
11140
11141         * objects-msw.c:
11142         * objects-msw.c (old_font_enum_callback_2):
11143         * objects-msw.c (font_enum_callback_1):
11144         * objects-msw.c (mswindows_enumerate_fonts):
11145         [5].
11146
11147         * objects-x.c:
11148         * objects-x.c (allocate_nearest_color):
11149         * objects-x.c (x_parse_nearest_color):
11150         * objects-x.c (x_initialize_color_instance):
11151         * objects-x.c (x_print_color_instance):
11152         * objects-x.c (x_finalize_color_instance):
11153         * objects-x.c (x_valid_color_name_p):
11154         * objects-x.c (x_initialize_font_instance):
11155         * objects-x.c (x_print_font_instance):
11156         * objects-x.c (valid_x_font_name_p):
11157         * objects-x.c (truename_via_FONT_prop):
11158         * objects-x.c (truename_via_random_props):
11159         * objects-x.c (truename_via_XListFonts):
11160         * objects-x.c (x_font_truename):
11161         * objects-x.c (x_font_instance_truename):
11162         * objects-x.c (x_font_instance_properties):
11163         * objects-x.c (x_list_fonts):
11164         * objects-x.c (x_find_charset_font):
11165         Mule-ize entire file.
11166         [7].
11167
11168         * objects-x.h:
11169         Mule-verify.
11170
11171         * print.c:
11172         * print.c (std_handle_out_external):
11173         * print.c (debug_print_no_newline):
11174         * print.c (syms_of_print):
11175         Output to all debugger kinds in debug-print.
11176         Fix console-output code under MSWin to actually work.
11177
11178         * process-nt.c (send_signal):
11179         * process-nt.c (nt_create_process):
11180         Use newer Unicode macros.
11181
11182         * process-unix.c (unix_create_process):
11183         * process-unix.c (unix_canonicalize_host_name):
11184         * process-unix.c (unix_open_network_stream):
11185         [7].
11186
11187         * scrollbar-x.c:
11188         Mule-verify.
11189
11190         * search.c (syms_of_search):
11191         [2].
11192
11193         * select-msw.c (mswindows_destroy_selection):
11194         Use LIST_LOOP_2.
11195
11196         * select-x.c (symbol_to_x_atom):
11197         [7].
11198
11199         * select.c (syms_of_select):
11200         [2].
11201
11202         * sound.c (Fplay_sound_file):
11203         [7].
11204
11205         * specifier.c:
11206         * specifier.c (decode_specifier_type):
11207         * specifier.c (Fvalid_specifier_locale_type_p):
11208         * specifier.c (check_valid_locale_or_locale_type):
11209         * specifier.c (decode_locale):
11210         * specifier.c (decode_locale_type):
11211         * specifier.c (decode_locale_list):
11212         * specifier.c (check_valid_domain):
11213         * specifier.c (decode_specifier_tag_set):
11214         * specifier.c (Fcanonicalize_tag_set):
11215         * specifier.c (Fdefine_specifier_tag):
11216         * specifier.c (Fspecifier_tag_predicate):
11217         * specifier.c (check_valid_inst_list):
11218         * specifier.c (check_valid_spec_list):
11219         * specifier.c (decode_how_to_add_specification):
11220         * specifier.c (check_modifiable_specifier):
11221         * specifier.c (specifier_add_spec):
11222         * specifier.c (boolean_validate):
11223         * specifier.c (display_table_validate):
11224         [9].
11225
11226         * specifier.c (syms_of_specifier):
11227         Move some symbols to general-slots.h.
11228         [2].
11229
11230         * symbols.c:
11231         * symbols.c (Fmapatoms):
11232         * symbols.c (Fapropos_internal):
11233         Add GCPROs.
11234
11235         * symbols.c (set_default_buffer_slot_variable):
11236         * symbols.c (set_default_console_slot_variable):
11237         [1].
11238
11239         * symbols.c (defsymbol_massage_name_1):
11240         * symbols.c (defkeyword_massage_name):
11241         * symbols.c (deferror_1):
11242         * symbols.c (deferror):
11243         * symbols.c (deferror_massage_name_and_message):
11244         * symeval.h:
11245         * symeval.h (DEFSYMBOL):
11246         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
11247
11248         * symbols.c (syms_of_symbols):
11249         [2].
11250
11251         * symsinit.h:
11252         * symsinit.h (init_win32): New.
11253         Also new is syms_of_dialog_mswindows.
11254
11255         * syswindows.h:
11256         Add new Unicode macros, missing Cygwin wide-char functions,
11257         convenience conversion macros for Qmswindows_tstr, macros for
11258         encapsulating required MSWin <-> Cygwin filename conversions,
11259         prototype for dynamically-extracted (not in NT 3.51) functions.
11260
11261         * toolbar-x.c:
11262         Mule-verify.
11263
11264         * tooltalk.c (Fadd_tooltalk_message_arg):
11265         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11266         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11267         [7].
11268
11269         * tooltalk.c (syms_of_tooltalk):
11270         [2].
11271
11272         * unexnt.c:
11273         * unexnt.c (unexec):
11274         Fix up headers, declaration of unexec() to be more standard.
11275
11276 2000-07-20  Martin Buchholz  <martin@xemacs.org>
11277
11278         * offix.h: Revert change to guard macros - they're used in offix.c!
11279
11280 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11281
11282         * lisp.h: Defsubred Fdelete.
11283
11284         * console-msw.h:  (msprinter_default_printer): Added.
11285
11286         * console-msw.c (msprinter_canonicalize_console_connection):
11287         (msprinter_canonicalize_device_connection): Added.
11288
11289         * device-msw.c (msprinter_default_printer):
11290         (Fmswingows_get_default_printer):
11291         (signal_enum_priner_error):
11292         (Fmswingows_printer_list): Added.
11293
11294 2000-07-19  Martin Buchholz <martin@xemacs.org>
11295
11296         * XEmacs 21.2.35 is released.
11297
11298 2000-07-19  Martin Buchholz  <martin@xemacs.org>
11299
11300         * select-x.c (x_handle_selection_request):
11301         Text selected in xemacs and pasted into xterm failed to appear.
11302         Spelling fixes and cosmetic changes.
11303
11304 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11305
11306         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
11307         XEmacs frame (fix for doubling chars in dialog boxes).
11308
11309 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11310
11311         * select.c (select_convert_in, select_convert_out):
11312         Don't call intern() every time.
11313
11314         * select.c (Qselect_convert_in, Qselect_convert_out): New.
11315         * select.c (vars_of_select): Initialise them.
11316
11317 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11318
11319         * select.c (selection-coercible-types): New.
11320
11321         * select.c (own-selection-internal):
11322         * select.c (get-selection-internal):
11323         MULE bug fix - these should default to COMPOUND_TEXT and not
11324         STRING for MULE. I think.
11325
11326         * select.c (select_convert_out): Use selection-coercible-types
11327         to find types that we can attempt to perform coercions on.
11328
11329 2000-07-18  Martin Buchholz  <martin@xemacs.org>
11330
11331         * mule-wnnfns.c:
11332         * mule-canna.c:
11333         Add coding: cookie to identify encoding.
11334
11335         * mule-canna.c (CANNA_mode_keys): make static.
11336         Use proper prototypes, even for functions of no arguments.
11337         Remove external prototype for Fding().
11338
11339         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
11340
11341         * select.c (syms_of_select): Add missing DEFSUBR.
11342
11343 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11344
11345         * select.c (get_selection_internal, own_selection_internal):
11346         Make the type default to STRING, rather than placing a nil type
11347         into Vselection_alist.
11348
11349 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11350
11351         * gpmevent.c (tty_selection_exists_p):
11352         * gpmevent.c (tty_own_selection):
11353         Updated parameter lists.
11354
11355 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
11356
11357         * select.h (selection-alist): Removed declaration.
11358
11359         * select.h (get_local_selection):
11360         * select.c (get_local_selection):
11361         Made static.
11362
11363         * select.h (convert_selection): Removed declaration.
11364         * select.c (convert_selection): Removed.
11365         This function belongs in Lisp.
11366
11367         * select.h (select_convert_in): Declare.
11368         * select.h (select_convert_out): Declare.
11369         * select.c (select_convert_in): New.
11370         * select.c (select_convert_out): New.
11371         New conversion functions for other files to call.
11372
11373         * select.h (select_notify_buffer_kill): Declare.
11374         * select.c (select_notify_buffer_kill): New.
11375         New functions that get called from kill-buffer.
11376
11377         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
11378         X-specific lisp code.
11379
11380         * select.h: Declare some of the lisp-visible functions for
11381         external use.
11382
11383         * select.c (clean_local_selection_data): Removed. This was
11384         a disgusting function, and previously should have been in
11385         select-x.c in any case. The functionality is now provided
11386         in select-convert-from-integer (select.el).
11387
11388         * select.c (available-selection-types): Fixed stupidity where
11389         INTEGER and ATOM got added twice. Also add STRING when we see an
11390         extent.
11391
11392         * select.c (get-selection-internal): Removed symbol stripping. No
11393         longer causes conversion when data comes from the internal cache.
11394
11395         * select.c (syms_of_select): Added new functions.
11396
11397         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
11398         error checking - previously this called abort!
11399
11400         * select-x.c (x_own_selection): Changed comment.
11401
11402         * select-x.c (x_handle_selection_request): Use select_convert_out.
11403         Don't mess with selection-alist; it's an internal variable of select.c.
11404
11405         * select-x.c (x_get_foreign_selection): Use select_convert_in.
11406
11407         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
11408         rather than messing with selection-alist.
11409
11410         * select-msw.c (mswindows_get_foreign_selection):
11411         Use TO_INTERNAL_FORMAT rather than hacking.
11412
11413 2000-07-14  Martin Buchholz  <martin@xemacs.org>
11414
11415         * process-unix.c (unix_open_multicast_group):
11416         (unix_open_multicast_group): Remove useless casts.
11417
11418 2000-07-13  Martin Buchholz  <martin@xemacs.org>
11419
11420         * sound.c (Fplay_sound): Fix `unused variable' warning.
11421
11422         * emacs.c (main): Use correct type for _environ on SCO5.
11423
11424 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
11425
11426         * console.h (own_selection_method):
11427         * console.h (selection_exists_p_method):
11428         * console.h (available_selection_types_method): New.
11429         * console.h (register_selection_data_type_method): New.
11430         * console.h (selection_data_type_name): New.
11431
11432         * console-msw.h (mswindows_destroy_selection): Declare it.  New
11433         function & alist to track GlobalAlloc()'d handles that need
11434         releasing when the clipboard data gets replaced or emptied.
11435
11436         * event-msw.c (mswindows_wnd_proc): Call it.
11437
11438         * lisp.h, general.c (Qappend): New symbol representing a
11439         `how-to-add' mode.
11440
11441         * select.c (own-selection-internal):
11442         * select.c (selection-exists-p):
11443         * select.c (available-selection-types): New.
11444         * select.c (register-selection-data-type): New.
11445         * select.c (selection-data-type-name): New.  New functions to deal
11446         with device-specific selection data formats.
11447         * select.c (selection-converter-out-alist): Renamed.
11448         * select.c (selection-converter-in-alist): New.
11449         * select.c (selection-appender-alist): New.  Added new alists.
11450         * select.c (syms_of_select, vars_of_select): Added new symbols &
11451         variables.
11452         * select.c (get_local_selection): Split.
11453         * select.c: Removed spurious type checking - selections may now be
11454         of any type, not just strings.
11455         * select.c (own-selection-internal):
11456
11457         * select.h, select.c (convert_selection): New. Created
11458         convert_selection() function based on get_local_selection().
11459         * select.h, select.c (QCF_*): New symbols representing mswindows
11460         clipboard formats.
11461         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11462         symbols representing `how-to-add' modes.
11463
11464         * select-msw.c (x_sym_p): New.
11465         * select-msw.c (symbol_to_ms_cf): New.
11466         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11467         symbols & clipboard formats. Can also handle string names.
11468         * select-msw.c (mswindows_own_selection):
11469         * select-msw.c (mswindows_selection_exists_p):
11470         Added `data-type' parameter. Use it.
11471         * select-msw.c (mswindows_available_selection_types): New.
11472         * select-msw.c (mswindows_register_selection_data_type): New.
11473         * select-msw.c (mswindows_selection_data_type_name): New.
11474         * select-msw.c (mswindows_own_selection):
11475         * select-msw.c (mswindows_get_foreign_selection):
11476         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11477         * select-msw.c (console_create_select_mswindows): Added new methods.
11478         * select-msw.c (mswindows_destroy_selection): New.
11479         * select-msw.c (Vhandle_alist): New list.
11480         * select-msw.c (mswindows_own_selection):
11481
11482         * select-x.c (x_own_selection):
11483         * select-x.c (x_selection_exists_p):
11484         * select-x.c: Added some comments about maybe using new
11485         functionality.
11486         * select-x.c (x_own_selection):
11487
11488         * specifier.c: Remove definition of Qappend (now in general.c)
11489         * specifier.c (syms_of_specifier): Remove Qappend.
11490
11491 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11492
11493         * config.h.in: Add socklen_t.
11494
11495         * s/decosf4-0.h: No special compiler flags needed or desired.
11496         In particular, undefine _BSD for DEC OSF 4.0.
11497
11498 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11499
11500         * redisplay-msw.c (msprinter_frame_output_end): Added.
11501         (console_type_create_redisplay_mswindows): Referred the above.
11502
11503         * frame.c (setup_frame_without_minibuffer): Do not create a
11504         default minibuffer frame on a printer device.
11505
11506         * frame-msw.c (apply_dc_geometry): Added.
11507         (msprinter_start_page):
11508         (msprinter_init_frame_3):
11509         (msprinter_eject_page): Use it.
11510
11511         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11512         and removed residual duplex and orientation properties.
11513
11514 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11515
11516         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11517
11518         * unexalpha.c: Remove system prototypes from C sources!
11519
11520 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11521
11522         * eval.c: Remove references to M-x edit-options in DEFUNs for
11523         `defvar' and `defconst'.
11524
11525 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11526
11527         * config.h.in: Remove SMART_INCLUDE hackery.
11528
11529         PostgreSQL hacking:
11530         * config.h.in: Don't use SMART_INCLUDE.
11531
11532         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11533         * inline.c: Simply #include "postgresql.h"
11534         * postgresql.c:
11535         - Don't use SMART_INCLUDE
11536         - Use simply "const".
11537         - Use standard doc string conventions.
11538         - Use correct type for result of PQstatus.
11539
11540 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11541
11542         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11543
11544         C++ compilation changes.
11545         * config.h.in (EXTERN_C): Define.
11546         * config.h.in (not): This is also a C++ keyword.
11547         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11548         * cm.c: Use EXTERN_C.
11549         * redisplay-tty.c: Use EXTERN_C.
11550         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11551
11552 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11553
11554         * general.c: Remove duplicate definition for Qfunction.
11555
11556 2000-07-08  Ben Wing  <ben@xemacs.org>
11557
11558         * device-msw.c (msprinter_init_device):
11559         * device-msw.c (sync_printer_with_devmode):
11560         * device-msw.c (handle_devmode_changes):
11561         * device-msw.c (print_dialog_worker):
11562         * device-msw.c (Fmsprinter_apply_settings):
11563         * device-msw.c (hash_devmode):
11564         * device-msw.c (Fmsprinter_settings_despecialize):
11565         use Qmswindows_tstr, not Qctext.
11566
11567         * vm-limit.c (check_memory_limits):
11568         avoid infinite loop printing warning messages.
11569
11570 2000-07-05  Craig Lanning  <lanning@scra.org>
11571
11572         * Makefile.in.in: Add support for including the Windows resources
11573         when building with the cygwin and mingw targets.
11574
11575         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11576         not set or not correct.
11577         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11578         (init_initial_directory): Don't try to use $PWD on the
11579         WIN32_NATIVE target.
11580
11581         * s\cygwin32.h:
11582         [[Add -mwindows to eliminate console window.]] not required --ben
11583         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11584         (MAIL_USE_POP): removed; now handled by configure.
11585
11586         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11587         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11588         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11589         (MAIL_USE_POP): removed; now handled by configure.
11590         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11591         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11592         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11593         constant string.
11594         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11595         up from <winsock.h> via systime.h.
11596         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11597         (getpagesize): from Dan Holmsand, added.
11598         Added #endif which was left dangling by Ben's mega patch; added
11599         comment to help prevent this in the future.
11600
11601         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11602
11603 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11604
11605         * console-msw.h (struct mswindows_device): Removed unnecessary
11606         cached device geometry values.
11607         Added update_tick and an accessor macro.
11608         (Lisp_Devmode): Added lrecord declaration.
11609         (struct msprinter_device): Contain devmode as a Lisp object.
11610         Added mswindows_get_selected_frame_hwnd();
11611
11612         * console.h (struct console_methods): Indentation nitpicking.
11613
11614         * device-msw.c (mswindows_init_device): Do not initialize geometry
11615         cache. Initialize update tick.
11616         (mswindows_device_system_metrics): Ask the device for its geometry.
11617         (global_free_2_maybe):
11618         (devmode_to_hglobal):
11619         (handle_printer_changes):
11620         (ensure_not_printing):
11621         (print_dialog_worker):
11622         (Fmsprinter_print_setup_dialog):
11623         (Fmsprinter_print_dialog):
11624         (plist_get_margin):
11625         (plist_set_margin):
11626         (Fmsprinter_page_setup_dialog): Added functions.
11627         (sync_printer_with_devmode):
11628         (handle_devmode_changes):
11629         (Fmsprinter_get_settings):
11630         (Fmsprinter_select_settings):
11631         (Fmsprinter_apply_settings):
11632         (allocate_devmode):
11633         (Fmsprinter_settings_copy):
11634         (Fmsprinter_settings_despecialize):
11635         (print_devmode):
11636         (finalize_devmode):
11637         (equal_devmode):
11638         (hash_devmode): Added functions
11639         (syms_of_device_mswindows): Init devmode lrecord class.
11640
11641         * device.h: Added an exfun for find-device.
11642
11643         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11644         geometry; although, recreate the device compatible DC.
11645
11646         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11647         (msprinter_init_frame_3):
11648         (msprinter_frame_property):
11649         (msprinter_internal_frame_property_p):
11650         (msprinter_frame_properties):
11651         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11652         print job properties (will move to device settings).
11653
11654         * lisp.h: Added symbols.
11655
11656         * general.c (syms_of_general): Declared them.
11657
11658         * hash.c (string_hash): Added.
11659
11660         * lrecord.h (lrecord_type): Added devmode lrecord type.
11661
11662 2000-07-02  Mike Sperber <mike@xemacs.org>
11663
11664         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11665         FreeBSD 4.0.
11666
11667 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11668
11669         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11670         integer.
11671
11672 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11673
11674         * data.c (Fstring_to_number): Don't recognize floating point if
11675         base is not 10.
11676
11677 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11678
11679         * glyphs-widget.c (tab_control_query_geometry):
11680         (widget_query_geometry):
11681         (button_query_geometry):
11682         * glyphs.c (text_query_geometry):
11683         Enforce type correctness.
11684
11685 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11686
11687         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11688         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11689
11690 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11691
11692         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11693         conflicts with gcc's fixincluded version of FOO.h.
11694
11695         * glyphs.h (image_instance_geometry): Remove trailing `,'
11696
11697 2000-06-08  Mike Alexander  <mta@arbortext.com>
11698
11699         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11700         (shove_thread): Don't write the same output twice
11701         (make_ntpipe_output_stream): Increase priority of shove thread
11702         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11703         chance to run
11704         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11705         it.
11706
11707 2000-06-12  Ben Wing  <ben@xemacs.org>
11708
11709         * s\mingw32.h (sigset):
11710         * s\windowsnt.h (sigset):
11711         rename msw_ to mswindows_ for consistency with general convention.
11712
11713 2000-06-12  Ben Wing  <ben@xemacs.org>
11714
11715         * console-msw.c:
11716         * console-msw.c (mswindows_get_console_hwnd):
11717         * console-msw.c (mswindows_ensure_console_allocated):
11718         * console-msw.c (mswindows_hide_console):
11719         * console-msw.c (mswindows_show_console):
11720         * console-msw.c (mswindows_ensure_console_buffered):
11721         * console-msw.c (mswindows_output_console_string):
11722         * console-msw.c (mswindows_windows9x_p):
11723         * console-msw.h:
11724         * device-msw.c (mswindows_get_workspace_coords):
11725         * device-msw.c (mswindows_device_system_metrics):
11726         * dialog-msw.c (mswindows_popup_dialog_box):
11727         * event-msw.c (mswindows_wnd_proc):
11728         * frame-msw.c (mswindows_size_frame_internal):
11729         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11730         * menubar-msw.c (displayable_menu_item):
11731         * menubar-msw.c (mswindows_char_is_accelerator):
11732         * nt.c:
11733         * nt.c (mswindows_sigset):
11734         * nt.c (mswindows_sigrelse):
11735         * nt.c (mswindows_sigpause):
11736         * nt.c (mswindows_raise):
11737         * nt.c (timer_proc):
11738         * ntproc.c:
11739         * ntproc.c (find_child_console):
11740         * ntproc.c (sys_kill):
11741         * print.c:
11742         * print.c (std_handle_out_external):
11743         * process-nt.c (find_child_console):
11744         * process-nt.c (send_signal_the_95_way):
11745         * process-nt.c (ensure_console_window_exists):
11746         * process-nt.c (nt_create_process):
11747         * syssignal.h:
11748         rename msw_ to mswindows_ for consistency with general convention.
11749
11750         * emacs.c:
11751         * dumper.c:
11752         include nt.h, not syswindows.h.
11753
11754         * nt.c (mswindows_fstat):
11755         * nt.c (mswindows_stat):
11756         prefix mswindows_ instead of attempting to directly override the
11757         library functions.  fix declarations.
11758
11759         * nt.h:
11760         include syswindows.h.  move some sysdep.h stuff here.
11761
11762         * ntheap.h:
11763         include syswindows.h, not <windows.h>.
11764
11765         * ntplay.c:
11766         clean up headers.
11767
11768         * sysdep.c:
11769         clean up headers.
11770
11771         * sysdep.c (sys_fstat):
11772         * sysdep.c (sys_stat):
11773         call mswindows versions when appropriate.
11774
11775         * sysdep.h:
11776         move mswin decls to nt.h.
11777
11778         * syswindows.h:
11779         add long comment describing appropriate use of the various windows
11780         headers.
11781
11782 2000-06-11  Ben Wing  <ben@xemacs.org>
11783
11784         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11785
11786 2000-06-10  Ben Wing  <ben@xemacs.org>
11787
11788         * Makefile.in.in (release):
11789         Correction to make sure xemacs.exe always dumped when correct.
11790
11791         * alloca.c:
11792         * balloon_help.c:
11793         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11794
11795         * buffer.c (set_buffer_internal):
11796         [[[[2]]]]: Remove HAVE_FEP code.
11797
11798         * buffer.c (init_initial_directory):
11799         [3].
11800
11801         * bytecode.c:
11802         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11803         individual files.
11804
11805         * callproc.c:
11806         * callproc.c (call_process_cleanup):
11807         * callproc.c (Fold_call_process_internal):
11808         * callproc.c (child_setup):
11809         * callproc.c (getenv_internal):
11810         * callproc.c (init_callproc):
11811         * callproc.c (vars_of_callproc):
11812         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11813         __CYGWIN32__ -> CYGWIN.
11814         DOS_NT -> WIN32_NATIVE.
11815         Remove MSDOS support/references, converting to WIN32_NATIVE
11816           where correct.
11817         __MINGW32__ -> MINGW.
11818         Fix windows.h includes.
11819         Remove bogus HAVE_NTGUI.
11820
11821         * config.h.in:
11822         [2].
11823
11824         * console-msw.c:
11825         mswindows_message_outputted added for use in allowing startup
11826         errors on the console to be seen.
11827
11828         * console-msw.c (msw_ensure_console_allocated):
11829         * console-msw.c (msw_output_console_string):
11830         * console-msw.c (DHEADER):
11831         * console-msw.c (DOPAQUE_DATA):
11832         * console-msw.c (DEVENT):
11833         * console-msw.c (DCONS):
11834         * console-msw.c (DCONSCDR):
11835         * console-msw.c (DSTRING):
11836         * console-msw.c (DVECTOR):
11837         * console-msw.c (DSYMBOL):
11838         * console-msw.c (DSYMNAME):
11839         Fix warnings.
11840
11841         * console-stream.c (stream_init_console):
11842         Fix text/binary problems.
11843
11844         * device-msw.c:
11845         * device-msw.c (mswindows_finish_init_device):
11846         * device-msw.c (mswindows_delete_device):
11847         [1].
11848
11849         * device.c (handle_asynch_device_change):
11850         [3].
11851
11852         * dgif_lib.c:
11853         * dgif_lib.c (DGifOpenFileName):
11854         * dgif_lib.c (DGifOpenFileHandle):
11855         * dgif_lib.c (DGifGetLine):
11856         * dgif_lib.c (DGifGetPixel):
11857         Added config.h/lisp.h, fix up includes.
11858         [1].
11859
11860         * dired-msw.c:
11861         [4].
11862
11863         * dired.c:
11864         * dired.c (file_name_completion):
11865         * dired.c (Ffile_attributes):
11866         * dired.c (syms_of_dired):
11867         [1].
11868
11869         * dumper.c:
11870         * dumper.c (pdump_file_unmap):
11871         * dumper.c (pdump_load):
11872         [1].
11873
11874         * editfns.c:
11875         * editfns.c (Ftemp_directory):
11876         * editfns.c (user_login_name):
11877         * editfns.c (Fuser_real_login_name):
11878         * editfns.c (get_home_directory):
11879         [1].
11880
11881         * elhash.c (finish_marking_weak_hash_tables):
11882         [[[[5]]]]: Fix GCC warnings.
11883
11884         * emacs.c:
11885         * emacs.c (mswindows_handle_hardware_exceptions):
11886         * emacs.c (make_arg_list_1):
11887         * emacs.c (main_1):
11888         * emacs.c (Fkill_emacs):
11889         * emacs.c (Fdump_emacs):
11890         [1].
11891         Fix problems with nested crashes, add long comment.
11892
11893         * event-Xt.c (init_event_Xt_late):
11894         [1].
11895
11896         * event-msw.c:
11897         * event-msw.c (mswindows_dde_callback):
11898         * event-msw.c (mswindows_handle_sticky_modifiers):
11899         * event-msw.c (mswindows_wnd_proc):
11900         [1].
11901         [5].
11902
11903         * events.c (character_to_event):
11904         [1].
11905
11906         * fileio.c:
11907         * fileio.c (Ffile_name_directory):
11908         * fileio.c (Ffile_name_nondirectory):
11909         * fileio.c (directory_file_name):
11910         * fileio.c (Fexpand_file_name):
11911         * fileio.c (Fsubstitute_in_file_name):
11912         * fileio.c (Ffile_name_absolute_p):
11913         * fileio.c (check_executable):
11914         * fileio.c (Ffile_readable_p):
11915         * fileio.c (Ffile_accessible_directory_p):
11916         * fileio.c (Ffile_modes):
11917         * fileio.c (Funix_sync):
11918         * fileio.c (vars_of_fileio):
11919         [1]. [4].
11920
11921         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11922
11923         Expand getdefdir defn.
11924         Fix bogus rename() comment.
11925
11926         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11927         to use standard XEmacs include files, e.g. sysfile.h, rather
11928         than system-specific includes.
11929
11930         * fns.c:
11931         * fns.c (Fsubseq):
11932         [5]. [6].
11933
11934         * frame.c (vars_of_frame):
11935         [1].
11936
11937         * getloadavg.c:
11938         * getloadavg.c (getloadavg):
11939         [1]. [6].
11940         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11941         (We don't use it elsewhere in the code; just add a comment.)
11942
11943         * gif_io.c:
11944         [6].
11945         Add config.h.
11946
11947         * glyphs-msw.c:
11948         * glyphs-msw.c (mswindows_resource_instantiate):
11949         [1].
11950
11951         * glyphs-x.c (x_native_layout_instantiate):
11952         [5].
11953
11954         * gui-msw.c (Fmswindows_shell_execute):
11955         [1].
11956
11957         * insdel.c:
11958         [4].
11959
11960         * lisp.h:
11961         [4]. [5].
11962
11963         * lread.c (locate_file_in_directory_mapper):
11964         [1].
11965
11966         * lstream.c:
11967         [4].
11968
11969         * mem-limits.h:
11970         * mem-limits.h (get_lim_data):
11971         [1].
11972
11973         * menubar-msw.c:
11974         [4].
11975
11976         * ndir.h:
11977         [1].
11978
11979         * nt.c:
11980         * nt.c (getwd):
11981         * nt.c (closedir):
11982         * nt.c (rva_to_section):
11983         * nt.c (mswindows_executable_type):
11984         [1]. [6].
11985         Fix closedir() defn.
11986
11987         * nt.h:
11988         [[[[8]]]]: *_OK defs moved to sysfile.h.
11989
11990         * ntproc.c:
11991         [6]. [7].
11992
11993         * objects-x.c:
11994         [4].
11995
11996         * print.c:
11997         * print.c (std_handle_out_external):
11998         [1]. [4].
11999
12000         * process-nt.c:
12001         * process-nt.c (nt_create_process):
12002         [6].
12003         try to fix process quoting somewhat.
12004
12005         * process-unix.c (unix_create_process):
12006         [1].
12007
12008         * process.c:
12009         * process.c (vars_of_process):
12010         Add Vnull_device.
12011
12012         * process.h:
12013         [1].
12014
12015         * realpath.c:
12016         * realpath.c (xrealpath):
12017         [1].
12018
12019         * redisplay-tty.c (init_tty_for_redisplay):
12020         [3].
12021
12022         * redisplay.c:
12023         [4]. [6].
12024
12025         * scrollbar-msw.c:
12026         [4].
12027
12028         * sheap.c:
12029         * sheap.c (more_static_core):
12030         * sheap.c (report_sheap_usage):
12031         [5]. [6].
12032
12033         * signal.c:
12034         * signal.c (alarm_signal):
12035         [1]. [6].
12036
12037         * sound.c:
12038         [6].
12039
12040         * strftime.c:
12041         * strftime.c (zone_name):
12042         [1]. [5].
12043
12044         * symsinit.h (init_sunpro):
12045         [1].
12046
12047         * syscommctrl.h:
12048         commctrl.h not in Cygwin b20.1.
12049
12050         * sysdep.c:
12051         * sysdep.c (endif):
12052         * sysdep.c (sys_subshell):
12053         * sysdep.c (init_baud_rate):
12054         * sysdep.c (emacs_get_tty):
12055         * sysdep.c (emacs_set_tty):
12056         * sysdep.c (tty_init_sys_modes_on_device):
12057         * sysdep.c (init_system_name):
12058         * sysdep.c (sys_open):
12059         * sysdep.c (interruptible_open):
12060         * sysdep.c (sys_fopen):
12061         * sysdep.c (sys_mkdir):
12062         * sysdep.c (sys_rename):
12063         * sysdep.c (get_process_times_1):
12064         [1]. [6].
12065
12066         * sysdep.h:
12067         [1].
12068
12069         * sysdir.h:
12070         * sysdir.h (DIRENTRY_NONEMPTY):
12071         [1]. [6].
12072
12073         * sysdll.c (dll_init):
12074         * sysdll.h:
12075         [1].
12076
12077         * sysfile.h:
12078         [1]. [6]. [8].
12079         added text/binary defs.
12080
12081         * sysfloat.h:
12082         [1].
12083
12084         * sysproc.h:
12085         * sysproc.h (EDESTADDRREQ):
12086         * sysproc.h (poll_fds_for_input):
12087         [1]. [6].
12088
12089         * syspwd.h:
12090         [6].
12091
12092         * syssignal.h:
12093         [1].
12094
12095         * systime.h:
12096         [1]. [6].
12097
12098         * systty.h:
12099         [1].
12100
12101         * syswindows.h:
12102         [1].
12103         Always define WIN32_LEAN_AND_MEAN.
12104
12105         * unexcw.c (unexec):
12106         [5].
12107
12108         * unexec.c:
12109         * unexec.c (copy_text_and_data):
12110         * unexec.c (adjust_lnnoptrs):
12111         [1].
12112
12113         * unexnt.c:
12114         * unexnt.c (_start):
12115         [1].
12116
12117 2000-06-07  Ben Wing  <ben@xemacs.org>
12118
12119         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
12120         was used only as a model.  We've long since extracted any useful
12121         logic or code out of this. (I just did an exhaustive search.)
12122
12123         * s\msdos.h: Removed.
12124
12125         * s\windows95.h: Removed.
12126
12127 2000-06-10  Ben Wing  <ben@xemacs.org>
12128
12129         * s\cygwin32.h:
12130         [1]. [5].
12131         Don't use extern with fun defs.
12132
12133         * s\mingw32.h:
12134         [1]. [7].
12135         Remove nt\inc include.
12136         Remove getdisk, getdefdir. (The former is unused, the latter
12137         expanded in fileio.h.)
12138
12139         * s\windowsnt.h:
12140         * s\windowsnt.h (WIN32_NATIVE):
12141         * s\windowsnt.h (HAVE_STRCASECMP):
12142         [1]. [7].
12143         Add long comment about preprocessor changes.
12144         Remove getdisk, getdefdir. (The former is unused, the latter
12145         expanded in fileio.h.)
12146
12147 2000-06-10  Ben Wing  <ben@xemacs.org>
12148
12149         * m\arm.h:
12150         * m\delta.h:
12151         * m\intel386.h:
12152         * m\sequent.h:
12153         * m\template.h:
12154         * m\windowsnt.h:
12155         [1].
12156         Remove bogus/unused NO_SOCK_SIGIO.
12157
12158 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
12159
12160         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
12161         not an Emchar.
12162
12163 2000-06-04  Mike Sperber <mike@xemacs.org>
12164
12165         * casetab.c (set_case_table): For `set-standard-case-table',
12166         actually deposit the new case tables where the rest of XEmacs can
12167         see them.
12168
12169 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
12170
12171         * data.c (Faset): Don't cast XCHAR() to unsigned char.
12172
12173 2000-06-05  Ben Wing  <ben@xemacs.org>
12174
12175         * callproc.c (child_setup): Don't do close_load_descs() under
12176         MS Windows.  Put in a comment explaining why.
12177
12178 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
12179
12180         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
12181         Toolkit shell" which breaks `kill-compilation' on Windows NT
12182         native, retaining STDERR handling improvements.
12183
12184 2000-06-01  Andreas Jaeger  <aj@suse.de>
12185
12186         * s/s390.h: Support for S390, based on a patch by Martin
12187         Schwidefsky <schwidefsky@de.ibm.com>.
12188
12189 2000-05-30  Andy Piper  <andy@xemacs.org>
12190
12191         * window.c (allocate_window):
12192         (make_dummy_parent):
12193         (Fset_window_configuration): use new hashtable type.
12194
12195         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
12196         (struct image_instantiator_methods):
12197         (struct Lisp_Image_Instance): make instance geometry signed.
12198
12199         * glyphs.c (instantiate_image_instantiator):
12200         (image_instance_query_geometry):
12201         (image_instance_layout):
12202         (image_instance_layout):
12203         (query_string_geometry):
12204         (text_query_geometry):
12205         (image_instantiate):
12206         (image_instantiate):
12207         (cache_subwindow_instance_in_frame_maybe):
12208         (subwindow_query_geometry): make instance geometry signed.
12209
12210         * glyphs-widget.c (widget_query_geometry):
12211         (widget_layout):
12212         (button_query_geometry):
12213         (tree_view_query_geometry):
12214         (tab_control_query_geometry):
12215         (layout_query_geometry):
12216         (layout_layout):
12217         (native_layout_layout): make instance geometry signed.
12218
12219 2000-05-29  Olivier Galibert  <galibert@pobox.com>
12220
12221         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
12222         constant.
12223
12224         * general.c (syms_of_general): Add Qfull_assoc symbol.
12225
12226         * data.c (finish_marking_weak_lists): Mark full-assoc lists
12227         correctly.
12228         (decode_weak_list_type): Decode full-assoc type.
12229         (encode_weak_list_type): Encode full-assoc type.
12230         (Fmake_weak_list): Update doc string.
12231
12232 2000-05-30  Andy Piper  <andy@xemacs.org>
12233
12234         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
12235
12236         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
12237         (decode_hash_table_weakness): ditto.
12238         (Fhash_table_weakness): ditto.
12239         (Fhash_table_type): ditto.
12240         (finish_marking_weak_hash_tables): ditto.
12241         (hash_table_weakness_validate): ditto.
12242         (syms_of_elhash): ditto.
12243
12244 2000-05-28  Martin Buchholz <martin@xemacs.org>
12245
12246         * XEmacs 21.2.34 is released.
12247
12248 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12249
12250         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
12251         start cache.
12252         (updating_line_start_cache): Gone.
12253         (regenerate_window): Replace resetting of VERTICAL_CLIP by
12254         generic code to force a minimum of 1 line laid out in the
12255         CMOTION_DISP case.
12256
12257 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12258
12259         * glyphs.c (instantiate_image_instantiator): Check for initialized
12260         height & width no longer special cases IMAGE_NOTHING.
12261         (nothing_instantiate): Set height and width of instance.
12262
12263 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12264
12265         * unexelf.c (unexec): Search for ".data" section.
12266         Initialize new_data2_offset from old_data_index.
12267         Remove redundant check for ElfW.
12268
12269 2000-05-23  Andy Piper  <andy@xemacs.org>
12270
12271         * glyphs.c (get_image_instantiator_governing_domain): allow more
12272         specific domains as the governing domain rather than expecting an
12273         exact match. This fixes problems with layouts.
12274
12275 2000-05-22  Andy Piper  <andy@xemacs.org>
12276
12277         * redisplay-output.c (compare_runes): check for non-images
12278
12279         * glyphs.c (set_glyph_dirty_p): ditto.
12280         (update_glyph_cachel_data): ditto.
12281
12282         * glyphs-widget.c (layout_post_instantiate): ditto.
12283         (layout_post_instantiate): ditto.
12284
12285         * event-msw.c (mswindows_wnd_proc): warning removal.
12286
12287 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
12288
12289         * s\mingw32.h: Added #undef for CLASH_DETECTION.
12290
12291         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
12292
12293         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
12294
12295         * nt.c (rva_to_section): mingw32 needs rva_to_section.
12296         (mswindows_executable_type): mingw32 now has enough headers for
12297         this to work.
12298
12299 2000-05-20  Andy Piper  <andy@xemacs.org>
12300
12301         * console-msw.c (mswindows_output_last_error): ; -> ,
12302
12303 2000-05-12  Andy Piper  <andy@xemacs.org>
12304
12305         * console-msw.c (FROB): compare ints with ints.
12306
12307 2000-05-11  Andy Piper  <andy@xemacs.org>
12308
12309         * glyphs-x.c (x_finalize_image_instance): make minimal build
12310         happy.
12311
12312 2000-05-20  Ben Wing  <ben@xemacs.org>
12313
12314         * event-Xt.c:
12315         * event-Xt.c (vars_of_event_Xt):
12316         move modifier-keys-are-sticky to event-stream.c.
12317
12318         * event-msw.c:
12319         * event-msw.c (mswindows_enqueue_mouse_button_event):
12320         * event-msw.c (key_needs_default_processing_p):
12321         * event-msw.c (XEMSW_LCONTROL):
12322         * event-msw.c (mswindows_handle_sticky_modifiers):
12323         * event-msw.c (FROB):
12324         * event-msw.c (clear_sticky_modifiers):
12325         * event-msw.c (output_modifier_keyboard_state):
12326         * event-msw.c (output_alt_keyboard_state):
12327         * event-msw.c (mswindows_wnd_proc):
12328         * event-msw.c (mswindows_modifier_state):
12329         * event-msw.c (emacs_mswindows_handle_magic_event):
12330         implement sticky modifiers.
12331
12332         * event-stream.c:
12333         * event-stream.c (vars_of_event_stream):
12334         move modifier-keys-are-sticky here.
12335
12336         * lisp.h:
12337         add CHECK_FUNCTION.
12338
12339         * rangetab.c:
12340         implement map-range-table.
12341
12342
12343 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
12344
12345         * redisplay-tty.c (reset_tty_modes):
12346         (tty_redisplay_shutdown): Adjust argument type to
12347         tty_frame_output_end.
12348
12349 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12350
12351         * eval.c (Fbacktrace): Don't output a line with only right
12352         parenthesis.
12353
12354 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
12355
12356         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
12357         (Fpq_reset_poll): Ditto.
12358
12359 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
12360
12361         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
12362
12363 2000-05-16  Ben Wing  <ben@xemacs.org>
12364
12365         * buffer.c:
12366         * buffer.c (dfc_convert_to/from_internal_format):
12367         * buffer.c (reinit_vars_of_buffer):
12368         Fix conversion functions to allow reentrancy.
12369
12370         * console-msw.c:
12371         * console-msw.c (mswindows_output_last_error):
12372         New fun, generally useful -- output a human-readable
12373         version of GetLastError() on the console.
12374
12375         * console-msw.h:
12376         * console-msw.h (struct mswindows_frame):
12377         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
12378
12379         * console-stream.c (stream_output_begin):
12380         * console-stream.c (stream_output_end):
12381         * console-stream.c (stream_output_vertical_divider):
12382         * console-stream.c (stream_clear_region):
12383         * console-stream.c (stream_flash):
12384         * console-stream.c (console_type_create_stream):
12385         Delete blank stream methods, not needed.
12386
12387         * console.h (struct console_methods):
12388         Split begin/end methods into window and frame.
12389
12390         * event-msw.c:
12391         * event-msw.c (mswindows_handle_paint):
12392         * event-msw.c (output_alt_keyboard_state):
12393         * event-msw.c (mswindows_wnd_proc):
12394         * event-msw.c (vars_of_event_mswindows):
12395         Comment about problems with ignored-expose.
12396         Define mswindows-debug-events; not really implemented.
12397
12398         * frame-msw.c (mswindows_init_frame_1):
12399         random cleanups.
12400
12401         * glyphs-msw.c:
12402         * glyphs-msw.c (begin_defer_window_pos):
12403         * glyphs-msw.c (mswindows_unmap_subwindow):
12404         * glyphs-msw.c (mswindows_map_subwindow):
12405         * glyphs-msw.c (mswindows_resize_subwindow):
12406         Use DeferWindowPos to reduce flashing when mapping/unmapping.
12407
12408         * glyphs.c (make_image_instance_1):
12409         Fix crash.
12410
12411         * gutter.c (Fredisplay_gutter_area):
12412         Use new begin/end methods.
12413
12414         * lisp.h (Dynarr_new2):
12415         New creation fun.
12416
12417         * redisplay-msw.c:
12418         * redisplay-msw.c (mswindows_frame_output_begin):
12419         * redisplay-msw.c (mswindows_frame_output_end):
12420         * redisplay-msw.c (console_type_create_redisplay_mswindows):
12421         New begin/end methods -- handle DeferWindowPos.
12422
12423         * redisplay-output.c (redisplay_move_cursor):
12424         * redisplay-output.c (redraw_cursor_in_window):
12425         * redisplay-output.c (redisplay_update_line):
12426         * redisplay-output.c (redisplay_output_window):
12427         New begin/end methods.
12428
12429         * redisplay-tty.c:
12430         * redisplay-tty.c (tty_frame_output_begin):
12431         * redisplay-tty.c (tty_frame_output_end):
12432         * redisplay-tty.c (console_type_create_redisplay_tty):
12433         New begin/end methods.
12434
12435         * redisplay-x.c:
12436         * redisplay-x.c (x_window_output_begin):
12437         * redisplay-x.c (x_window_output_end):
12438         * redisplay-x.c (console_type_create_redisplay_x):
12439         New begin/end methods.
12440
12441         * redisplay.c (redisplay_frame):
12442         * redisplay.c (Fredisplay_echo_area):
12443         New begin/end methods.
12444         use MAYBE_DEVMETH for clear_frame; it may not exist.
12445
12446         * window.h (WINDOW_XFRAME):
12447         WINDOW_XFOO macros -- get locale and decode struct pointer.
12448
12449
12450 2000-05-12  Ben Wing  <ben@xemacs.org>
12451
12452         * emacs.c:
12453         * emacs.c (ensure_no_quitting_from_now_on):
12454         * emacs.c (fatal_error_signal):
12455         * emacs.c (mswindows_handle_hardware_exceptions):
12456         * emacs.c (main):
12457         * emacs.c (Fkill_emacs):
12458         * emacs.c (shut_down_emacs):
12459         * emacs.c (assert_failed):
12460         various improvements in fatal error handling.
12461
12462         * eval.c:
12463         move preparing_for_armageddon to emacs.c.
12464
12465         * lisp.h:
12466         declare fatal_error_in_progress.
12467
12468         * print.c:
12469         * print.c (std_handle_out_external):
12470         * print.c (std_handle_out_va):
12471         * print.c (stderr_out):
12472         * print.c (stdout_out):
12473         use console under mswin when no standard output.
12474         don't do code conversion during fatal error.
12475
12476         * scrollbar.c (Fscrollbar_page_up):
12477         * scrollbar.c (Fscrollbar_page_down):
12478         fix missing else.  reindent.
12479
12480 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12481
12482         Emergency fix.
12483
12484         * glyphs.h (GLYPH_CACHEL_DESCENT):
12485         (GLYPH_CACHEL_DESCENT):
12486         (GLYPH_CACHEL_DESCENT):
12487         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12488         used in case these are inline functions.
12489         Use more absurd values to error check.
12490
12491         include window.h for error check functions.
12492
12493 2000-05-11  Ben Wing  <ben@xemacs.org>
12494
12495         * cmdloop.c (Freally_early_error_handler):
12496         Display message box under windows; otherwise, message will disappear
12497         before it can be viewed.
12498
12499         * console-msw.c:
12500         * console-msw.c (Fmswindows_message_box):
12501         * console-msw.c (FROB):
12502         * console-msw.c (syms_of_console_mswindows):
12503         Define new fun `mswindows-message-box'.
12504         #### I will merge this into `popup-dialog-box'; just give me
12505         a bit of time.
12506
12507         * general.c:
12508         * general.c (syms_of_general):
12509         Some new symbols used in `mswindows-message-box'.
12510
12511         * glyphs.c:
12512         * glyphs.c (Fset_image_instance_property):
12513         put warning in this fun.
12514
12515         * glyphs.h:
12516         * glyphs.h (GLYPH_CACHEL_WIDTH):
12517         * glyphs.h (GLYPH_CACHEL_ASCENT):
12518         * glyphs.h (GLYPH_CACHEL):
12519         * glyphs.h (GLYPH_CACHEL_GLYPH):
12520         define error-checking versions to try to catch a bug i've seen --
12521         redisplay gets in an infinite loop because the glyph width of the
12522         continuation glyph is 65535.
12523
12524         * lisp.h:
12525         Extern message-box stuff.
12526
12527         * window.c (allocate_window):
12528         * window.c (make_dummy_parent):
12529         * window.c (Fset_window_configuration):
12530         Use EQUAL not EQ for subwindow caches to make them work a bit
12531         better. (Something is still very broken.)
12532
12533
12534 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12535
12536         * glyphs.c (image_instantiate): Suppress gcc warnings.
12537         (Fmake_image_instance): Fix doc string.
12538         * specifier.c (Fmake_specifier): Ditto.
12539
12540 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12541
12542         * paths.h.in (PATH_LOCK): Removed.
12543         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12544         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12545
12546 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12547
12548         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12549         Document (featurep '(and xemacs 21.02)).
12550
12551 2000-05-09  Ben Wing  <ben@xemacs.org>
12552
12553         * buffer.c (complex_vars_of_buffer):
12554         update modeline-format doc.
12555
12556         * device.h:
12557         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12558
12559         * emacs.c:
12560         timeline of all released versions of Emacs, for use in creating
12561         authorship comments and in synching up.
12562
12563         * glyphs-widget.c (image_instantiator_buttons):
12564         * glyphs-widget.c (image_instantiator_edit_fields):
12565         * glyphs-widget.c (image_instantiator_combo_box):
12566         * glyphs-widget.c (image_instantiator_scrollbar):
12567         * glyphs-widget.c (image_instantiator_progress_guage):
12568         * glyphs-widget.c (image_instantiator_tree_view):
12569         * glyphs-widget.c (image_instantiator_tab_control):
12570         * glyphs-widget.c (image_instantiator_labels):
12571         * glyphs-widget.c (image_instantiator_layout):
12572         * glyphs-widget.c (image_instantiator_native_layout):
12573         rename decode_domain method to governing_domain.
12574
12575         * glyphs.c:
12576         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12577         * glyphs.c (add_entry_to_device_ii_format_list):
12578         make sure we don't put an entry more than once into the list.
12579         * glyphs.c (check_instance_cache_mapper):
12580         *************************************************************
12581         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12582         HAVE BEEN GETTING.
12583         *************************************************************
12584         * glyphs.c (get_image_instantiator_governing_domain):
12585         clean up, expand on new concept of governing domain.
12586         * glyphs.c (instantiate_image_instantiator):
12587         * glyphs.c (allocate_image_instance):
12588         use governing_domain instead of cache_domain in naming.
12589         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12590         * glyphs.c (make_image_instance_1):
12591         * glyphs.c (Fmake_image_instance):
12592         allow for any domain (not just device), and process the
12593         governing domain correctly.  very big doc fix.
12594         * glyphs.c (Fimage_instance_domain):
12595         new primitive, to retrieve the governing domain of an image instance.
12596         * glyphs.c (image_instantiate):
12597         use new governing_domain stuff.  this fixes a crash you could get
12598         by instantiating certain widget glyphs in frame locales. (should
12599         signal an error instead of crashing.)
12600         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12601         * glyphs.c (Fglyphp): clean up doc.
12602         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12603         * glyphs.c (syms_of_glyphs):
12604         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12605         * glyphs.c (image_instantiator_format_create): add some comments about
12606         bogus code.
12607         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12608         for current-display-table. (Apparently Hrjove implemented in 1998 a
12609         design I wrote up in 1996, but didn't update the doc string.)
12610
12611         * glyphs.h: clean up a doc string.
12612         * glyphs.h (governing_domain):
12613         * glyphs.h (struct image_instantiator_methods):
12614         changes for governing_domain stuff.
12615
12616         * gutter.c:
12617         * gutter.c (Fgutter_specifier_p):
12618         * gutter.c (Fgutter_size_specifier_p):
12619         * gutter.c (Fgutter_visible_specifier_p):
12620         * objects.c:
12621         * objects.c (Fcolor_specifier_p):
12622         * objects.c (Ffont_specifier_p):
12623         * objects.c (Fface_boolean_specifier_p):
12624         doc strings moved to make-*-specifier.
12625
12626         * redisplay.c (add_disp_table_entry_runes_1):
12627         * redisplay.c (generate_fstring_runes):
12628         * redisplay.c (screen):
12629         add random comments and doc strings.
12630
12631         * specifier.c:
12632         * specifier.c (Fmake_specifier):
12633         major overhaul of this doc string.
12634
12635         * specifier.c (Fvalid_specifier_domain_p):
12636         comment about the bogosity of image instances being domains.
12637         * specifier.c (decode_domain):
12638         now non-static, used in glyphs.c.
12639         * specifier.c (specifier_instance):
12640         comment about the bogosity of image instances being domains.
12641         * specifier.c (Fgeneric_specifier_p):
12642         move doc string to make-generic-specifier.
12643         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12644         rebackslashify.
12645
12646         * specifier.h:
12647         * specifier.h (DOMAIN_FRAME):
12648         * specifier.h (DOMAIN_LIVE_P):
12649         * specifier.h (DOMAIN_XDEVICE):
12650         rebackslashify.
12651         add comments about problems with these macros.
12652         prototype for decode_domain.
12653
12654         * toolbar.c:
12655         * toolbar.c (Ftoolbar_specifier_p):
12656         move doc string to `make-toolbar-specifier'.
12657
12658         * window.c (window_unmap_subwindows_cache_mapper):
12659         *************************************************************
12660         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12661         HAVE BEEN GETTING.
12662         *************************************************************
12663
12664 2000-05-09  Andy Piper  <andy@xemacs.org>
12665
12666         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12667
12668         * window.c (Fset_window_configuration): reset the frame subwindow
12669         cache and re-initialize the window subwindow caches.
12670
12671         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12672
12673 2000-05-09  Ben Wing  <ben@xemacs.org>
12674
12675         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12676         DWORD.
12677
12678 2000-04-26  Mike Woolley  <mike@bulsara.com>
12679
12680         * ntheap.c: Changed recreate_heap to limit the amount reserved
12681         for the heap to that which is actually available. Also now
12682         displays a message box (with some dignostics) in the event that
12683         it still can't start.
12684
12685 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12686
12687         * callproc.c (Fold_call_process_internal): GCPRO path
12688
12689 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12690
12691         Patch by Bill Perry.
12692
12693         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12694         back data instead of #ifdef.
12695         (Fscrollbar_page_down): ditto.
12696
12697 2000-05-07  Ben Wing  <ben@xemacs.org>
12698
12699         * buffer.h:
12700         Kludge for defining Qmswindows_tstr.
12701
12702         * nt.c:
12703         * nt.c (open_input_file):
12704         * nt.c (open_output_file):
12705         * nt.c (rva_to_section):
12706         * nt.c (mswindows_executable_type):
12707         Move all memory-mapped-file routines here (some were in unexnt.c,
12708         which is bad because they are used by process-nt.c, and unexnt
12709         won't be around when portable dumping).  Synched the above routines
12710         with FSF 20.6.
12711
12712         * nt.h:
12713         Removed ifdef'd out bogus code.
12714         Fixed some prototypes.
12715
12716         * nt.h (file_data):
12717         * nt.h (OFFSET_TO_RVA):
12718         * nt.h (RVA_TO_OFFSET):
12719         * nt.h (RVA_TO_PTR):
12720         Moved the memory-mapped-file structures, macros and prototypes
12721         here, to parallel nt.c.  ntheap.h should really be removed
12722         entirely, and it's a non-portable-dumper specific file.
12723
12724         * ntheap.h (round_to_next):
12725         Moved the memory-mapped-file structures, macros and prototypes
12726         to nt.h.
12727
12728         * ntproc.c (compare_env):
12729         Moved rva_to_section and mswindows_executable_type to nt.c.
12730         Moved compare_env to process-nt.c.
12731         ntproc.c will die, one day.
12732
12733         * ntproc.c (sys_spawnve):
12734         Account for win32_ -> mswindows_.
12735
12736         * process-nt.c:
12737         * process-nt.c (struct nt_process_data):
12738         * process-nt.c (ensure_console_window_exists):
12739         * process-nt.c (compare_env):
12740         * process-nt.c (nt_create_process):
12741         * process-nt.c (nt_kill_process_by_pid):
12742         * process-nt.c (syms_of_process_nt):
12743         * process-nt.c (vars_of_process_nt):
12744         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12745         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12746         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12747         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12748         Move compare_env here from ntproc.c.
12749
12750         * process.c (Fprocess_send_region):
12751         Takes an optional fourth argument, BUFFER, which should fix some
12752         problems with call-process.
12753
12754         * syscommctrl.h:
12755         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12756
12757         * syswindows.h:
12758         Move ICC_BAR_CLASSES to syscommctrl.h.
12759         Add preliminary macros for MSWindows/Mule.  More to come.
12760
12761         * unexnt.c:
12762         * unexnt.c (unexec):
12763         open_output_file moved to nt.c.
12764
12765
12766 2000-05-05  Andy Piper  <andy@xemacs.org>
12767
12768         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12769         instance from the frame cache also since GC may catch up too late
12770         to make frame deletion sane.
12771
12772 2000-05-04  Andy Piper  <andy@xemacs.org>
12773
12774         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12775         (x_finalize_image_instance): ungcpro on deletion.
12776
12777         * glyphs.c (image_instantiator_format_create): give pointers a
12778         query geometry method so that the geometry is at least set.
12779
12780         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12781         initialize layouts if using widgets.
12782
12783 2000-05-03  Andy Piper  <andy@xemacs.org>
12784
12785         * nt.c: remove bogus reference to sysmmsystem.h
12786
12787         * gui-x.c (popup_selection_callback): fix no selection abort.
12788
12789 2000-05-02  Andy Piper  <andy@xemacs.org>
12790
12791         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12792         (mswindows_widget_instantiate): ditto.
12793
12794         * glyphs-widget.c (initialize_widget_image_instance): initialize
12795         children correctly.
12796         (widget_instantiate): cope with children and items in the same
12797         instance.
12798
12799         * glyphs.c (mark_image_instance): cope with children as a first
12800         class member.
12801         (image_instance_equal): ditto.
12802         (image_instance_hash): ditto.
12803         (image_instance_changed): ditto.
12804
12805 2000-04-30  Andy Piper  <andy@xemacs.org>
12806
12807         * glyphs.c (subwindow_query_geometry): new function. Return some
12808         defaults.
12809         (subwindow_instantiate): don't assign dimensions if none have been
12810         given.
12811         (image_instantiator_format_create): add subwindow_query_geometry.
12812         (print_image_instance): cope with layouts as widgets.
12813
12814 2000-04-29  Andy Piper  <andy@xemacs.org>
12815
12816         * frame.c (delete_frame_internal): call
12817         free_frame_subwindow_instance_cache so that all subwindows are
12818         finalized before their parent.
12819         (mark_frame): remove subwindow_cachels.
12820         (Fmake_frame): remove subwindow_cachel manipulation.
12821         (allocate_frame_core): subwindow_instance_cache is a weak list.
12822         (delete_frame_internal): set subwindow_instance_cache to nil.
12823
12824         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12825         finalization safe.
12826         (mswindows_finalize_image_instance): use the device
12827         not the domain as the domain may have died already.
12828
12829         * glyphs-x.c (x_finalize_image_instance): ditto.
12830         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12831         HEIGHT.
12832
12833         * redisplay-output.c (redisplay_unmap_subwindows): update for
12834         subwindow instance cache as a weak list.
12835         (redisplay_unmap_subwindows_maybe): ditto.
12836         (redisplay_unmap_subwindows_except_us): ditto.
12837
12838         * glyphs.c (unmap_subwindow): error checking will check the domain
12839         so don't deal with it here. Don't use cachels anymore.
12840         (map_subwindow): ditto.
12841         (update_subwindow_cachel_data): remove old accessor names.
12842         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12843         (Fresize_subwindow): don't update cachel.
12844         (mark_subwindow_cachels):
12845         (update_subwindow_cachel_data):
12846         (add_subwindow_cachel):
12847         (get_subwindow_cachel_index):
12848         (update_subwindow_cachel):
12849         (reset_subwindow_cachels):
12850         (mark_subwindow_cachels_as_not_updated): deleted.
12851         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12852         subwindow instance to the frame cache.
12853         (find_matching_subwindow): update for subwindow instance cache as
12854         a weak list.
12855         (update_widget_instances): ditto.
12856         (image_instance_type_to_mask):inlined.
12857         (free_frame_subwindow_instance_cache): new function. finalize all
12858         subwindows that are instantiated.
12859
12860         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12861         of cachel information.
12862         (IMAGE_INSTANCE_DISPLAY_X):
12863         (IMAGE_INSTANCE_DISPLAY_Y):
12864         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12865         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12866         (XIMAGE_INSTANCE_DISPLAY_X):
12867         (XIMAGE_INSTANCE_DISPLAY_Y):
12868         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12869         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12870         remove subwindow_cachel structure and function references.
12871         (image_instance_type_to_mask): inline from glyphs.c
12872
12873         * redisplay.c (redisplay_frame): remove subwindow_cachel
12874         references.
12875
12876         * frame.h (struct frame): remove subwindow_cachels.
12877         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12878
12879         * frameslots.h: add subwindow_instance_cache.
12880
12881         * window.c (replace_window): check subwindow cache of replacement.
12882         (window_unmap_subwindows_cache_mapper):
12883         (window_unmap_subwindows): new functions. Unmap all subwindows
12884         cached on this window.
12885         (mark_window_as_deleted): unmap all subwindows.
12886
12887 2000-04-27  Andy Piper  <andy@xemacs.org>
12888
12889         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12890
12891         * glyphs-widget.c (widget_layout): return something.
12892         (layout_layout): return something. Fail if not initialized.
12893         (layout_query_geometry): ditto.
12894         (image_instantiator_native_layout): new function. Initialized the
12895         native layout type.
12896         (widget_instantiate): don't do layout stuff here.
12897
12898         * glyphs.c (instantiate_image_instantiator): reorded calling or
12899         instantiate and post_instantiate with layout in between.
12900         (image_instance_layout): be more selective about deciding whether
12901         the layout has been done or not.
12902
12903         * glyphs.h (struct image_instantiator_methods): return a value
12904         from layout_method.
12905
12906 2000-04-26  Andy Piper  <andy@xemacs.org>
12907
12908         * glyphs.c (allocate_image_instance): make initial width and
12909         height unspecified. Set initialized to 0.
12910
12911         * syscommctrl.h new file. Encapsulates commctrl.h.
12912
12913         * syswindows.h new file. Encapsulates windows.h.
12914
12915         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12916         * nt.c: ditto.
12917         * console-msw.h: ditto.
12918
12919         * redisplay-tty.c (tty_output_display_block): remove layout references.
12920
12921         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12922         window handle rather than just the frame.
12923
12924         * glyphs.c (mark_image_instance): remove layout references.
12925         (print_image_instance): ditto.
12926         (image_instance_equal): ditto.
12927         (image_instance_hash): ditto.
12928         (decode_image_instance_type): ditto.
12929         (encode_image_instance_type): ditto.
12930         (image_instantiate): ditto.
12931         (allocate_glyph): ditto.
12932         (Fimage_instance_height): ditto.
12933         (Fimage_instance_width): ditto.
12934         (update_subwindow): ditto.
12935
12936         * redisplay-x.c (x_output_display_block): recode for layouts as
12937         widgets.
12938
12939         * redisplay-output.c (redisplay_output_layout): recode for layouts
12940         as widgets.
12941         (compare_runes): remove layout references.
12942
12943         * redisplay-msw.c (mswindows_output_display_block): recode for
12944         layouts as widgets.
12945
12946         * glyphs-widget.c (image_instantiator_layout): remove
12947         layout_possible_dest_types.
12948         (layout_possible_dest_types): deleted.
12949
12950         * glyphs.h (image_instance_type): remove layout references.
12951         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12952         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12953         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12954
12955 2000-04-25  Andy Piper  <andy@xemacs.org>
12956
12957         * glyphs-widget.c (image_instantiator_buttons):
12958         (image_instantiator_edit_fields):
12959         (image_instantiator_combo_box):
12960         (image_instantiator_scrollbar):
12961         (image_instantiator_progress_guage):
12962         (image_instantiator_tree_view):
12963         (image_instantiator_tab_control):
12964         (image_instantiator_labels):
12965         (image_instantiator_layout): call default post_instantiate method.
12966         (widget_post_instantiate): new function. Simply lays out the
12967         widgets.
12968
12969         * glyphs.h (struct image_instantiator_methods): add
12970         post_instantiate method.
12971
12972         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12973         method calls.
12974
12975 2000-04-23  Andy Piper  <andy@xemacs.org>
12976
12977         * glyphs.h (struct image_instantiator_methods): add
12978         decode_domain_method.
12979         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12980         derived from the domain.
12981         (IMAGE_INSTANCE_FRAME): new accessor.
12982         (XIMAGE_INSTANCE_FRAME): ditto.
12983
12984         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12985         instead of _SUBWINDOW_FRAME.
12986         (finalize_image_instance): ditto.
12987         (Fimage_instance_foreground): ditto.
12988         (Fimage_instance_background): ditto.
12989         (image_instantiate): ditto.
12990         (update_subwindow_cachel): ditto.
12991         (update_subwindow): ditto.
12992         (unmap_subwindow): ditto.
12993         (map_subwindow): ditto
12994         (subwindow_instantiate): ditto.
12995         * glyphs-msw.c (mswindows_update_widget): ditto.
12996         (mswindows_progress_gauge_instantiate): ditto.
12997         (mswindows_tab_control_update): ditto.
12998         * glyphs-x.c (x_update_widget): ditto.
12999         (x_widget_instantiate): ditto.
13000         (x_tab_control_instantiate): ditto.
13001         (x_tab_control_update): ditto.
13002         * event-msw.c (mswindows_wnd_proc): ditto
13003
13004         * glyphs-widget.c (image_instantiator_layout): use
13005         subwindow_decode_domain.
13006         (image_instantiator_buttons): ditto.
13007         (image_instantiator_edit_fields): ditto.
13008         (image_instantiator_combo_box): ditto.
13009         (image_instantiator_scrollbar): ditto.
13010         (image_instantiator_progress_guage): ditto.
13011         (image_instantiator_tree_view): ditto.
13012         (image_instantiator_tab_control): ditto.
13013         (image_instantiator_labels): ditto.
13014         (image_instantiator_layout): ditto.
13015
13016         * glyphs.c: add instance error checking to many functions.
13017         (instantiate_image_instantiator): decode device from cache_domain.
13018         (image_instantiate): partially rewrite by using
13019         decode_image_instantiator_domain to determine what domain the
13020         instance needs to be cached in.
13021         (decode_image_instantiator_domain): new function. Determine what
13022         domain the image needs to be cached in.
13023         (check_window_subwindow_cache): new error checking function.
13024         (check_instance_cache_mapper): ditto.
13025         (check_image_instance_structure): ditto.
13026         (subwindow_decode_domain): new function. Encodes a window as a
13027         subwindow's cache domain.
13028         (image_instantiator_format_create): use it for text and
13029         subwindows.
13030
13031 2000-04-21  Andy Piper  <andy@xemacs.org>
13032
13033         * glyphs.c (image_instance_device): new function.
13034         (image_instance_frame): new function.
13035         (image_instance_window): new function.
13036         (image_instance_live_p): new function.
13037
13038         * window.c (mark_window_as_deleted): reset the subwindow_instance_
13039         cache to nil.
13040
13041         * glyphs.h (struct Lisp_Image_Instance): device->domain.
13042         (IMAGE_INSTANCE_DOMAIN): new accessor.
13043         (XIMAGE_INSTANCE_DOMAIN): ditto.
13044
13045         * glyphs-x.c (x_finalize_image_instance): device->domain.
13046
13047         * glyphs-msw.c (init_image_instance_geometry): device->domain.
13048         (mswindows_finalize_image_instance): ditto.
13049
13050         * glyphs-eimage.c (jpeg_instantiate): device->domain.
13051         (gif_instantiate): ditto.
13052         (png_instantiate): ditto.
13053         (tiff_instantiate): ditto.
13054
13055         * glyphs.c (instantiate_image_instantiator): use domain rather
13056         than device.
13057         (mark_image_instance): device -> domain.
13058         (print_image_instance): ditto.
13059         (finalize_image_instance): ditto.
13060         (image_instance_equal): ditto.
13061         (allocate_image_instance): ditto.
13062         (Fcolorize_image_instance): ditto.
13063         (query_string_geometry): ditto.
13064         (image_instantiate): ditto
13065         (query_string_font): ditto.
13066         (image_instantiate): ditto.
13067         (update_subwindow): ditto.
13068         (unmap_subwindow): ditto.
13069         (map_subwindow): ditto.
13070         (subwindow_instantiate): ditto.
13071
13072         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
13073         (DOMAIN_FRAME): ditto.
13074         (DOMAIN_WINDOW): ditto.
13075         (DOMAIN_LIVE_P): ditto.
13076         (XDOMAIN_DEVICE): ditto.
13077         (XDOMAIN_FRAME): ditto.
13078         (XDOMAIN_WINDOW): ditto.
13079
13080         * specifier.c (Fvalid_specifier_domain_p): add image instances as
13081         a valid specifier domain.
13082
13083 2000-04-19  Andy Piper  <andy@xemacs.org>
13084
13085         * glyphs-widget.c (syms_of_glyphs_widget): remove
13086         widget-callback-current-channel.
13087         (vars_of_glyphs_widget): ditto.
13088         * glyphs.h: ditto
13089
13090         * gui.c (get_gui_callback): revert to previous behaviour.
13091
13092 2000-04-18  Andy Piper  <andy@xemacs.org>
13093
13094         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
13095         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
13096         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
13097
13098         * glyphs.c (image_instance_equal): add margin_width.
13099         (image_instance_hash): ditto.
13100
13101         * glyphs-widget.c (widget_instantiate): deal with margin-width.
13102         (layout_query_geometry): ditto.
13103         (layout_layout): ditto.
13104         (syms_of_glyphs_widget): add margin-width.
13105         (image_instantiator_layout): allow margin-width.
13106
13107         * glyphs.c (update_widget_instances): make a normal function.
13108         (syms_of_glyphs): remove Qupdate_widget_instances.
13109         * glyphs.h: ditto.
13110
13111         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
13112         so that we don't corrupt ideas about the last event or
13113         command. Remove widget-callback-current-channel fiddling.
13114         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
13115
13116 2000-05-01  Martin Buchholz <martin@xemacs.org>
13117
13118         * XEmacs 21.2.33 is released.
13119
13120 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
13121
13122         * make-src-depend: Allow dots in header file name.
13123
13124 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
13125
13126         * mule-charset.h (struct charset_lookup): Add
13127         next_allocated_1_byte_leading_byte and
13128         next_allocated_2_byte_leading_byte.
13129         * mule-charset.c: Move above two variables so that those values
13130         will be dumped.
13131
13132 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
13133
13134         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
13135         when string length is zero.
13136         (find_charsets_in_emchar_string): Ditto.
13137
13138 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
13139
13140         * lisp.h: extern Qdialog and Qmenubar.
13141
13142         * gui-x.c: added events.h.
13143                 also fixed typo which made the file uncompilable.
13144
13145         * general.c: Added Qmenubar and Qdialog
13146
13147 2000-04-28  Ben Wing  <ben@xemacs.org>
13148
13149         * frame-msw.c (mswindows_init_frame_1):
13150         * frame-msw.c (mswindows_mark_frame):
13151         * event-msw.c (mswindows_enqueue_dispatch_event):
13152         * console-msw.h:
13153         * console-msw.h (struct mswindows_frame):
13154         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
13155         there are now three hash tables for callbacks.
13156         mswindows_enqueue_dispatch_event is no longer static.
13157
13158         * dialog-x.c (maybe_run_dbox_text_callback):
13159         * dialog-x.c (dbox_descriptor_to_widget_value):
13160         switch to new cons3 form for callbacks.
13161
13162         * glyphs-msw.c (mswindows_register_gui_item):
13163         * glyphs-msw.c (mswindows_widget_instantiate):
13164         * glyphs-msw.c (add_tree_item):
13165         * glyphs-msw.c (add_tab_item):
13166         new image instance parameter, so it can be passed to callback-ex.
13167         respect :callback-ex as well as :callback.
13168
13169         * glyphs-widget.c (VALID_GUI_KEYWORDS):
13170         add :callback-ex.
13171
13172         * glyphs.c (print_image_instance):
13173         prettify, e.g. now prints widget type.
13174
13175         * gui-x.h:
13176         certain funs have new image instance parameter.
13177
13178         * gui.c:
13179         * gui.c (get_gui_callback):
13180         * gui.c (gui_item_add_keyval_pair):
13181         * gui.c (gui_item_init):
13182         * gui.c (gui_add_item_keywords_to_plist):
13183         * gui.c (mark_gui_item):
13184         * gui.c (gui_item_hash):
13185         * gui.c (gui_item_equal):
13186         * gui.c (copy_gui_item):
13187         * gui.c (syms_of_gui):
13188         recognize callback-ex in a number of places.
13189         also, fix the annoying "can't get out of yes-no dialog" bug.
13190
13191         * gui.h:
13192         * gui.h (struct Lisp_Gui_Item):
13193         recognize callback-ex in a number of places.
13194
13195         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13196         new parameter in button_item_to_widget_value.
13197
13198         * glyphs-x.c (x_update_widget):
13199         * glyphs-x.c (x_button_instantiate):
13200         * glyphs-x.c (x_button_update):
13201         * glyphs-x.c (x_progress_gauge_instantiate):
13202         * glyphs-x.c (x_edit_field_instantiate):
13203         * glyphs-x.c (x_combo_box_instantiate):
13204         * glyphs-x.c (x_tab_control_instantiate):
13205         * glyphs-x.c (x_label_instantiate):
13206         new image instance parameter in various places.
13207
13208         * event-Xt.c:
13209         * event-Xt.c (enqueue_Xt_dispatch_event):
13210         this fun gets exported.
13211
13212         * gui-msw.c:
13213         * gui-msw.c (mswindows_handle_gui_wm_command):
13214         handle both :callback and :callback-ex, and generate our own
13215         event because it's one of the callback-ex arguments.
13216
13217         * gui-x.c:
13218         * gui-x.c (popup_selection_callback):
13219         handle both :callback and :callback-ex, and generate our own
13220         event because it's one of the callback-ex arguments.
13221         * gui-x.c (button_item_to_widget_value):
13222         * gui-x.c (gui_items_to_widget_values_1):
13223         * gui-x.c (gui_item_children_to_widget_values):
13224         * gui-x.c (gui_items_to_widget_values):
13225         new image instance parameter in various places.
13226
13227         * fns.c (Freplace_list):
13228         fix small typo in doc string.
13229
13230         * lisp.h:
13231         declare enqueue_Xt_dispatch_event.
13232
13233 2000-04-28  Ben Wing  <ben@xemacs.org>
13234
13235         * buffer.c:
13236         * buffer.c (Frecord_buffer):
13237         * buffer.c (syms_of_buffer):
13238         delete record-buffer-hook.
13239
13240         * fns.c:
13241         * fns.c (Freplace_list):
13242         * fns.c (syms_of_fns):
13243         new primitive replace-list.
13244
13245         * frameslots.h:
13246         slot for old buffer-alist.
13247
13248         * lisp.h:
13249         exfun replace-list.
13250
13251         * redisplay.c:
13252         * redisplay.c (redisplay_frame):
13253         * redisplay.c (syms_of_redisplay):
13254         * redisplay.c (vars_of_redisplay):
13255         new hook buffer-list-changed-hook.
13256         call it.
13257
13258 2000-04-27  Ben Wing  <ben@xemacs.org>
13259
13260         * extents.h: extern in_modeline_generation.
13261
13262         * redisplay.c (generate_formatted_string_db): set
13263         in_modeline_generation.
13264
13265         * extents.c (extent_changed_for_redisplay): don't mark redisplay
13266         flags if in modeline generation.  otherwise frame-modified-tick
13267         is ticked far too often.
13268         Declare in_modeline_generation.
13269
13270 2000-04-26  Ben Wing  <ben@xemacs.org>
13271
13272         * emacs.c (vars_of_emacs): document quick-build "error-checking"
13273         option.
13274         (vars_of_emacs): add quick-build as an error-checking option.
13275         A bit kludgy, but there doesn't seem much point in creating
13276         a real var for this.
13277
13278         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
13279
13280 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13281
13282         * redisplay.h (struct display_line): Add a new variable,
13283         line_continuation.
13284
13285         * redisplay.c (create_text_block): Set dl->line_continuation if
13286         the line continues.
13287         (create_string_text_block): Ditto.
13288         (regenerate_window_incrementally): Use line_continuation instead
13289         of searching continuation glyph.
13290         (add_margin_runes): Call add_glyph_rune.
13291         (add_glyph_rune): Handle margin glyph.
13292
13293 2000-04-20  Martin Buchholz  <martin@xemacs.org>
13294
13295         * filelock.c (fill_in_lock_file_name):
13296         ANSIfy.
13297         Check for IS_ANY_SEP instead of '/'.
13298         (lock_file_1):
13299         Avoid generating gratuitous garbage.  Call user_login_name() directly.
13300         Never check errno without first seeing that system call failed.
13301         (unlock_file): Add GCPRO.
13302         (Flock_buffer): Fix docstring.
13303         (Ffile_locked_p): Fix docstring.  Add GCPRO.
13304
13305 2000-04-19  Martin Buchholz  <martin@xemacs.org>
13306
13307         * sysdep.c (get_pty_max_bytes):
13308         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
13309         strings longer than 252 bytes.
13310
13311         * md5.c: Unconditionally include ANSI header <limits.h>
13312
13313         * glyphs-x.c (convert_EImage_to_XImage):
13314         * lisp-union.h (union Lisp_Object):
13315         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
13316
13317 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
13318
13319         * filelock.c (current_lock_owner): Remove unused variable o, p.
13320
13321 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
13322
13323         * callint.c: Remove multiply defined symbol Qlet
13324         (syms_of_callint): ditto.
13325
13326 2000-04-14  Andy Piper  <andy@xemacs.org>
13327
13328         * general.c (syms_of_general): add last-command, this-command, let
13329         and funcall.
13330
13331         * lisp.h: declare various symbols.
13332
13333         * glyphs.h: declare Qwidget_callback_current_channel;
13334
13335         * glyphs-widget.c (syms_of_glyphs_widget): add
13336         Qgui_callback_current_channel.
13337         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
13338
13339         * gui-msw.c (mswindows_handle_gui_wm_command): bind
13340         widget-callback-current-channel when invoking the interactive
13341         arg. Also bind last-command and next-command when invoking the
13342         widget updates.
13343         * gui-x.c (popup_selection_callback): ditto.
13344
13345         * gui.c (get_gui_callback): massage args so that we are always
13346         calling eval. This allows us to add our own variable bindings
13347         outside.
13348
13349         * glyphs-x.c (x_button_instantiate): use
13350         gui_items_to_widget_values since this is GC safe.
13351         (x_progress_gauge_instantiate): ditto.
13352         (x_edit_field_instantiate): ditto.
13353         (x_label_instantiate): ditto.
13354
13355         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
13356         (emacs_Xt_event_widget_focus_out): new function
13357         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
13358         focus.
13359         (emacs_Xt_event_add_widget_actions): new function. add focus
13360         functions as actions.
13361         (init_event_Xt_late): use it.
13362
13363 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
13364
13365         * event-stream.c (Fdispatch_event): Doc fix.
13366
13367 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
13368
13369         * postgresql.c: Remove all references to PQsetenv*.
13370
13371         * postgresql.h: Remove references to PGsetenvHandler object.
13372         * lrecord.h (lrecord_type): Ditto.
13373
13374 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13375
13376         * glyphs-msw.h (struct mswindows_image_instance_data): Added
13377         real_heigh and real_width members, and accessor macros for these.
13378
13379         * glyphs-msw.c (init_image_instance_geometry): New function.
13380         (init_image_instance_from_dibitmap): Use it.
13381         (mswindows_resource_instantiate): Use it.
13382         (init_image_instance_from_xbm_inline): Use it.
13383         (mswindows_initialize_image_instance_mask): Use real bitmap
13384         geometry.
13385         (mswindows_create_resized_bitmap): Ditto.
13386         (mswindows_create_resized_mask): Ditto.
13387
13388         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
13389         and bitmap to their surface size.
13390
13391 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
13392
13393         * process-unix.c (unix_send_process): Guard against process MIA
13394         after Faccept_process_output.
13395
13396 2000-04-11  Ben Wing  <ben@xemacs.org>
13397
13398         * eval.c (unbind_to_hairy): fix brokenness introduced by
13399         nanosecond speed improvements.
13400
13401 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
13402
13403         * sunplay.c (init_device): To play sounds correctly, the device
13404         apparently needs to be initialized at least once by XEmacs.  Make
13405         it so.
13406
13407 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13408
13409         * redisplay.c (add_margin_runes): Add text image glyph
13410           handling.
13411
13412 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
13413
13414         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
13415         gcc is newer than 2.5.
13416
13417 2000-04-06  Colin Rafferty  <colin@xemacs.org>
13418
13419         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
13420
13421         * fns.c (size_bit_vector):
13422         * alloc.c (size_vector):
13423         (make_vector_internal):
13424         (make_bit_vector_internal):
13425         (sweep_bit_vectors_1):
13426         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13427
13428 2000-04-06  Andy Piper  <andy@xemacs.org>
13429
13430         * gmalloc.c (malloc): undo previous change.
13431         (malloc): ditto.
13432         (free): ditto.
13433         (realloc): ditto.
13434
13435 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
13436
13437         * line-number.c (buffer_line_number): Revert to former version.
13438
13439 2000-04-06  Andy Piper  <andy@xemacs.org>
13440
13441         * gmalloc.c (malloc): add error checking.
13442         (malloc): ditto.
13443         (free): ditto.
13444         (realloc): ditto.
13445
13446         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13447         button_item_to_widget_value arg.
13448
13449         * glyphs-x.c (x_button_instantiate): add extra
13450         button_item_to_widget_value arg.
13451         (x_progress_gauge_instantiate): ditto.
13452         (x_edit_field_instantiate): ditto.
13453         (x_label_instantiate): ditto.
13454
13455         * gui-x.c (gui_items_to_widget_values_1): add extra
13456         button_item_to_widget_value arg.
13457         (button_item_to_widget_value): add extra menu_item_p arg.
13458
13459         * gui-x.h: change signature of button_item_to_widget_value.
13460
13461         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13462         button_item_to_widget_value arg.
13463
13464 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13465
13466         * buffer.h (struct buffer): auto_save_modified should be long.
13467
13468 2000-04-05  Andy Piper  <andy@xemacs.org>
13469
13470         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13471         type.
13472         (button_query_geometry): give a little more room so that athena
13473         buttons fit.
13474
13475 2000-04-05  Andy Piper  <andy@xemacs.org>
13476
13477         * faces.c (complex_vars_of_faces): The widget face should inherit
13478         the font of the gui-element face.
13479
13480 2000-04-04  Andy Piper  <andy@xemacs.org>
13481
13482         * glyphs-x.c (x_button_update): new function. unconditionally
13483         update a button's state when the instance is dirty.
13484         (image_instantiator_format_create_glyphs_x): add x_button_update.
13485         (x_widget_instantiate): remove old resize cruft.
13486
13487 2000-04-02  Andy Piper  <andy@xemacs.org>
13488
13489         * frame.c (change_frame_size_1): The introduction of gutters means
13490         that we need to allow 0 as a potential frame dimension.
13491
13492 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13493
13494         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13495         image glyph if allow_cursor.
13496         (add_hscroll_rune): Don't allow cursor to border glyph.
13497         (create_text_block): Ditto.
13498
13499         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13500         text not in buffer.
13501         (redisplay_output_layout): Call ensure_face_cachel_complete for
13502         text image glyph.
13503
13504
13505 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13506
13507         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13508
13509         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13510         not in buffer
13511
13512         * redisplay-tty.c (tty_output_display_block): Delete the routine
13513         for text image glyph
13514         * redisplay-x.c (x_output_display_block): ditto
13515         * redisplay-msw.c (mswindows_output_display_block): ditto
13516
13517 2000-02-02  Mike Alexander  <mta@arbortext.com>
13518
13519         Note: Some of these were committed by accident as part of other
13520         patches.
13521
13522         * regex.c (regex_compile): Avoid compiler warnings.
13523
13524         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13525
13526         * nt.h: Declare term_ntproc correctly.
13527
13528         * nt.c: Remove incorrect declaration of get_home_directory which
13529         is declared correctly in lisp.h.
13530
13531         * keymap.c (get_keyelt): Avoid compiler warnings.
13532         (raw_lookup_key_mapper): Avoid compiler warnings.
13533
13534         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13535
13536         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13537
13538         * filemode.c (mode_string): Avoid compiler warnings.
13539
13540         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13541         avoid warning.
13542
13543         * events-mod.h: Undef some things that winuser.h defines differently.
13544
13545         * data.c (Faset): Avoid compiler warnings.
13546
13547         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13548
13549 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13550
13551         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13552         Fall through to simple beep on error.
13553         Replace "extern" by real header file.
13554
13555         * linuxplay.c: Use nativesound.h
13556         (play_sound_data): Return error code. Be less verbose on error.
13557
13558         * sunplay.c: Use nativesound.h
13559         (play_sound_data): Return error code. Be less verbose on error.
13560
13561         * ntplay.c: Use nativesound.h
13562         (play_sound_data): Return fake error code
13563
13564         * sgiplay.c: Use nativesound.h
13565         (play_sound_data): Return error code
13566
13567         * hpplay.c: Use nativesound.h, partially implement
13568         new error code. Break compilation until finished.
13569         (play_sound_data): error code.
13570
13571         * nativesound.h (play_sound_file):
13572           (play_sound_data): Prototype in new header.
13573
13574 2000-03-31  Andy Piper  <andy@xemacs.org>
13575
13576         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13577         for toggle and radio buttons.
13578         (image_instantiator_buttons): use it.
13579
13580 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13581
13582         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13583         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13584         found. Scrollbar event probably belonged to some old config.
13585
13586 2000-03-31  Andy Piper  <andy@xemacs.org>
13587
13588         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13589         than 1.
13590         (initialize_widget_image_instance): default layout to
13591         LAYOUT_HORIZONTAL rather than 0.
13592         (widget_instantiate): reverse the item list at the end rather than
13593         every iteration.
13594         (layout_layout): re-code for the border text at the front of the
13595         item list rather than at the end.
13596         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13597         provided by the user.
13598         (widget_query_geometry): comment.
13599
13600 2000-03-30  Andy Piper  <andy@xemacs.org>
13601
13602         * glyphs-widget.c (image_instantiator_layout): allow standard
13603         widget keywords in layouts.
13604
13605         * gutter.c (output_gutter): cope with nil gutter contents.
13606
13607         * frame.c (Fset_frame_properties): add gutter docs.
13608
13609 2000-03-29  Andy Piper  <andy@xemacs.org>
13610
13611         * toolbar-msw.c (TBSTYLE_FLAT): add.
13612         (mswindows_output_toolbar): minor fiddling.
13613
13614 2000-03-29  Andy Piper  <andy@xemacs.org>
13615
13616         * gutter.c (output_gutter): force gutter size recalculation if
13617         what we are trying to display won't fit.
13618         (update_gutter_geometry): new function. A per-gutter version of
13619         update_frame_gutter_geometry.
13620         (update_frame_gutter_geometry): use it.
13621         (redraw_exposed_gutter): add extra debugging output.
13622
13623 2000-03-28  Mike Alexander  <mta@arbortext.com>
13624
13625         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13626         (pdump_file_unmap): Implement it on Windows
13627         (pdump_file_get): Save alocated handles for pdump_file_unmap
13628
13629 2000-03-28  Andy Piper  <andy@xemacs.org>
13630
13631         * gui.c (get_gui_callback): treat Quit specially.
13632
13633 2000-03-27  Andy Piper  <andy@xemacs.org>
13634
13635         * glyphs.c (image_instantiate): be careful to check in the same
13636         way we assigned.
13637
13638 2000-03-27  Didier Verna  <didier@xemacs.org>
13639
13640         * config.h.in: define the proper SMART_INCLUDE macro.
13641         handle renaming of `foo_h_path' to `foo_h_file'.
13642
13643         * database.c: ditto.
13644
13645         * emacs.c: ditto.
13646
13647         * linuxplay.c: ditto.
13648
13649         * terminfo.c: ditto.
13650
13651         * tooltalk.h: ditto.
13652
13653 2000-03-27  Andy Piper  <andy@xemacs.org>
13654
13655         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13656         gets updated whenever the face might have changed.
13657
13658 2000-03-26  Mike Alexander  <mta@arbortext.com>
13659
13660         * dumper.c (pdump_resource_free): Fix the comment.
13661
13662 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13663
13664         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13665
13666 2000-03-22  Mike Alexander  <mta@arbortext.com>
13667
13668         * dumper.c: Include Windows headers on Windows
13669         (pdump_resource_free): Add a body to the function
13670         (pdump_load): exe_name -> exe_path and add some comments.
13671
13672 2000-03-25  Mike Alexander  <mta@arbortext.com>
13673
13674         * gui.c (copy_gui_item_tree): Return a value in all cases
13675
13676 2000-03-21  Didier Verna  <didier@xemacs.org>
13677
13678         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13679         lwlib/config.h.in.
13680         (SMART_INCLUDE): new macro.
13681         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13682         the proper location.
13683
13684         * postgresql.c: use it.
13685
13686         * inline.c: ditto.
13687
13688 2000-03-24  Andy Piper  <andy@xemacs.org>
13689
13690         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13691         do this.
13692
13693 2000-03-24  Andy Piper  <andy@xemacs.org>
13694
13695         * redisplay-output.c (compare_runes): use image_instance_changed
13696         to detect changes. Do not depend on glyphs_changed, only depend on
13697         dirtiness.
13698          (redisplay_output_layout): add debug messages.
13699         (compare_runes): ditto.
13700
13701         * glyphs.h: declare new functions.
13702         (struct Lisp_Image_Instance): remove percent and associated
13703         accessors.
13704
13705         * gui.h: declare new copying functions.
13706
13707         * gui.c (copy_gui_item_tree): new function.
13708         (copy_gui_item): new function.
13709         (gui_item_id_hash): revert to standard hash.
13710         (gui_item_hash): ditto.
13711         (gui_item_hash_internal): deleted.
13712         (mark_gui_item): mark value.
13713         (gui_item_add_keyval_pair): add value.
13714         (gui_item_init): ditto.
13715         (gui_add_item_keywords_to_plist): ditto.
13716         (gui_item_equal): ditto.
13717         (syms_of_gui): add Q_value.
13718
13719         * glyphs-x.c (x_progress_gauge_update): use pending items and
13720         value for setting the state.
13721         (x_update_widget): don't set items from pending here.
13722
13723         * glyphs-widget.c (update_widget): update items here.
13724         (progress_gauge_set_property): use items for storing value. Put
13725         new value in pending items.
13726
13727         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13728         items for new value. Convert percent -> value.
13729         (mswindows_tab_control_update): don't update items here.
13730
13731         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13732         (update_subwindow): ditto.
13733         (image_instance_changed): new function. Compare hash values and
13734         past and present widget items.
13735         (image_instantiate): We more careful about where we instantiate
13736         things.
13737         (image_instantiate): add error checking.
13738
13739         * gutter.c (syms_of_gutter): use -hook.
13740
13741 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13742
13743         * console-tty.c (Fset_console_tty_input_coding_system): Use
13744         Qkeyboard.
13745         (Fset_console_tty_output_coding_system): Use Qterminal.
13746         (tty_init_console): Use Qkeyboard and Qterminal.
13747
13748 2000-03-21  Ben Wing  <ben@xemacs.org>
13749
13750         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13751         From Mike Alexander <mta@arbortext.com>.
13752
13753 2000-03-21  Ben Wing  <ben@xemacs.org>
13754
13755         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13756         process brokenness.  Proper implementation to come.
13757         * callproc.c:
13758         Rename call-process-internal to old-call-process-internal.
13759         New impl. in process.el.
13760
13761 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13762
13763         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13764
13765 2000-03-20  Andy Piper  <andy@xemacs.org>
13766
13767         * glyphs.c (full_list_hash): make hashes of the same elements in
13768         different orders return different values.
13769
13770 2000-03-20  Martin Buchholz <martin@xemacs.org>
13771
13772         * XEmacs 21.2.32 is released.
13773
13774 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13775
13776         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13777         (DFC_MALLOC_USE_CONVERTED_DATA):
13778         Add aliasing-safe casts to allow use with char* or unsigned char*
13779         lvalues.
13780
13781         * eldap.c (Fldap_open):
13782         (Fldap_search_basic):
13783         (Fldap_add):
13784         (Fldap_modify):
13785         Make C++-compilable.
13786         Make sure GCPRO'ed variables are initialized.
13787         Use temp variables to avoid repeated calls to Flength.
13788
13789 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13790
13791         * sysfile.h:
13792         Make sure PATH_MAX is always defined.
13793         Include limits.h for PATH_MAX.
13794         Deprecate use of MAXPATHLEN.
13795
13796 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13797
13798         * emacs.c: Add reinit_vars_of_fileio.
13799         * symsinit.h: Add reinit_vars_of_fileio.
13800         * fileio.c (reinit_vars_of_fileio): New.
13801         * fileio.c (Fmake_temp_name):
13802         Initialize temp_name random number from microseconds to make
13803         collisions even less likely.  Initialize always at process startup
13804         time.  (make-temp-name) used to return the same file name twice in
13805         a row when PDUMP.
13806         Random stylistic fiddling.
13807         Comment fixes.
13808
13809 2000-03-20  Andy Piper  <andy@xemacs.org>
13810
13811         * glyphs.c (image_instantiate): allow text glyphs to be
13812         instantiated in the minibuffer window.
13813
13814 2000-03-19  Andy Piper  <andy@xemacs.org>
13815
13816         * glyphs.c (image_instance_hash): be careful about which items we
13817         hash on.
13818
13819         * glyphs-widget.c (tab_control_set_property): record into pending
13820         items rather than the actual items.
13821
13822         * glyphs-x.c (x_update_widget): use pending items to update with.
13823
13824         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13825         to update with.
13826
13827         * glyphs.c (mark_image_instance): mark pending items.
13828
13829         * window.c (Fset_window_configuration): record the buffer.
13830         (Fselect_window): totally revert previous change which breaks many
13831         things.
13832
13833 2000-03-18  Andy Piper  <andy@xemacs.org>
13834
13835         * glyphs-msw.c (mswindows_tab_control_update): force selected
13836         item.
13837
13838         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13839         window domain cache, otherwise we get inconsistencies at
13840         startup. There is something fishy at startup which can lead to the
13841         minibuffer being the selected window when the gutter content is
13842         instantiated.
13843
13844         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13845         gcpros.
13846         (parse_gui_item_tree_children): ditto.
13847         (parse_gui_item_tree_item): ditto.
13848
13849         * glyphs.c (Fupdate_widget_instances): return something.
13850
13851 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13852
13853         * window.c (Fselect_window): Undo 2000-03-17 change.
13854
13855 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13856
13857         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13858         against v7.0 libraries.  Insta-coredump city until the postgres
13859         folks fix it.
13860
13861 2000-03-17  Andy Piper  <andy@xemacs.org>
13862
13863         * faces.c (complex_vars_of_faces): don't give the widget face an
13864         inherited background pixmap.
13865
13866         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13867         selected item.
13868
13869         * event-stream.c (Fdispatch_non_command_events): return something.
13870
13871         * gutter.c (output_gutter): use widget face.
13872         (clear_gutter): ditto.
13873
13874         * NEWS: adjust again.
13875
13876         * window.c (Fselect_window): make sure this runs to completion to
13877         avoid oddities with Fset_window_configuration.
13878         (Fcurrent_window_configuration): in general do not save the
13879         minibuffer as the selected window.
13880
13881         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13882
13883 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13884
13885         * emacs.c (Frunning_temacs_p): Revert previous patch.
13886         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13887
13888 2000-03-16  Andy Piper  <andy@xemacs.org>
13889
13890         * glyphs-x.c (x_tab_control_update): if no widget values then
13891         return.
13892
13893         * NEWS: update for new features.
13894
13895         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13896         synthetic event to the native system.
13897         (reinit_vars_of_event_Xt): set force_event_pending to
13898         emacs_Xt_force_event_pending.
13899
13900         * events.h (struct event_stream): add force_event_pending.
13901
13902         * specifier.c (recompute_one_cached_specifier_in_window): add
13903         comment.
13904
13905         * redisplay.c (redisplay_frame): don't call
13906         update_frame_subwindows. Reset subwindow cachels when
13907         subwindows_changed, removing this was an optimization too far.
13908
13909         * redisplay-output.c (compare_runes): reorganize so that we catch
13910         glyph changes when we want them. Set optimize_output when this
13911         would help layouts.
13912         (redisplay_output_layout): remove frame_really_changed, use
13913         optimize_output instead.
13914
13915         * redisplay-msw.c (mswindows_output_display_block): reset
13916         optimize_output after outputting a glyph.
13917         * redisplay-x.c (x_output_display_block): ditto.
13918         * redisplay-tty.c (tty_output_display_block): ditto.
13919
13920         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13921         functions.
13922         (gutter_specs_changed): do specific gutter positions.
13923         (top_gutter_specs_changed): new function. Only update the
13924         specified gutter specs.
13925         (bottom_gutter_specs_changed): ditto.
13926         (left_gutter_specs_changed): ditto.
13927         (right_gutter_specs_changed): ditto.
13928
13929         * gui.c (gui_item_hash_internal): new function, does a real hash.
13930         (gui_item_id_hash): use it.
13931         (gui_item_hash): hash the eval'ed gui_item.
13932
13933         * gui-x.c (popup_selection_callback): send an eval event to call
13934         Fupdate_widget_instances.
13935
13936         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13937         to call Fupdate_widget_instances.
13938
13939         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13940         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13941
13942         * glyphs.c: (update_frame_subwindows): deleted.
13943         (Fupdate_widget_instances): new function for updating the dirty
13944         state of widgets that might have changed.
13945         (syms_of_glyphs): add Qupdate_widget_instances.
13946         (full_list_hash): hash a list completely.
13947         (image_instance_hash): use it for items and properties.
13948
13949         * frame-msw.c (mswindows_size_frame_internal): remove unused
13950         variable.
13951
13952         * faces.h (struct face_cachel): fix comment.
13953
13954         * event-stream.c (Fdispatch_non_command_events): new
13955         function. Process non-command events, forcing an event cycle
13956         beforehand.
13957         (syms_of_event_stream): declare.
13958         (event_stream_force_event_pending): new function. Force an event
13959         on the native event queue so that an event cycle will occur next
13960         time we check.
13961
13962         * event-msw.c:
13963         (struct ntpipe_shove_stream):
13964         (mswindows_enqueue_dispatch_event):
13965         (mswindows_dequeue_dispatch_event):
13966         (mswindows_cancel_dispatch_event):
13967         (mswindows_pump_outstanding_events):
13968         (mswindows_drain_windows_queue):
13969         (mswindows_handle_paint):
13970         (mswindows_wnd_proc):
13971         (mswindows_key_to_emacs_keysym):
13972         (get_process_input_waitable):
13973         (emacs_mswindows_delete_stream_pair): re-indent file.
13974         (mswindows_need_event): do not process further fds if the windows
13975         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13976         fixes the 100% cpu problem.
13977         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13978
13979 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13980
13981         * alloc.h: New.
13982         * dumper.h: New.
13983         * dumper.c: New.
13984
13985         * emacs.c: Moved dump file searching to dumper.c.
13986         (Frunning_temacs_p): Fixed.
13987
13988         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13989         last_lrecord_type_index_assigned.
13990
13991 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13992
13993         * symsinit.h: Added reinit parameter to init_console_stream
13994         declaration.
13995
13996         * lisp.h: Added file parameter to pdump_load declaration.
13997
13998         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13999         support.  Added dump file searching.
14000
14001         * config.h.in: Added EMACS_PROGNAME.
14002
14003         * console-stream.c (init_console_stream): Fix reinitialisation
14004         when running from temacs.
14005
14006         * alloc.c (pdump): Add id support.
14007         (pdump_load): Add file parameter and signature/id support.
14008
14009         * Makefile.in.in: Add full pdump support.
14010
14011 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
14012
14013         * postgresql.c: Update documentation to reflect latest code
14014         status.
14015         (print_result): Show tuple counts in printed representation when
14016         appropriate.
14017         (Fpq_put_nbytes): MULE-ize.
14018         (Fpq_get_line_async): Ditto.
14019
14020 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14021
14022         * postgresql.c (Fpq_lo_import): Fix return value.
14023         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
14024
14025 2000-03-13  Ben Wing  <ben@xemacs.org>
14026
14027         * alloc.c (pdump_load):
14028         Fix compile warning under mswin.
14029
14030 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14031
14032         * postgresql.c: Mule-ization, bug fixes.
14033         Use PG_CODING to encapsulate coding system name changes.
14034         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
14035         (pg-coding-system): Create.
14036
14037         (Fpq_conn_defaults): Mule-ize.
14038         (Fpq_connectdb): Mule-ize & bug fix.
14039         (Fpq_connect_start): Mule-ize.
14040         (Fpq_set_client_encoding): Mule-ize.
14041         (Fpq_finish): Document `DEAD' connection status.
14042         (Fpq_clear): Ditto.
14043         (Fpq_pgconn): Mule-ize.
14044         (Fpq_exec): Mule-ize & bug fix.
14045         (Fpq_send_query): Ditto.
14046         (Fpq_get_result): Ditto.
14047         (Fpq_res_status): Mule-ize.
14048         (Fpq_result_error_message): Mule-ize.
14049         (Fpq_ntuples): fix comments.
14050         (Fpq_fname): Mule-ize.
14051         (Fpq_fnumber): Mule-ize.
14052         (Fpq_ftype): fix comments.
14053         (Fpq_get_value): Mule-ize.
14054         (Fpq_cmd_status): Ditto.
14055         (Fpq_cmd_tuples): Ditto.
14056         (Fpq_oid_value): Ditto.
14057         (Fpq_notifies): Ditto.
14058         (Fpq_lo_import): Ditto.
14059         (Fpq_lo_export): Ditto.
14060         (Fpq_get_line): Ditto.
14061         (Fpq_put_line): Mule-ize and bug fix.
14062         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
14063
14064 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14065
14066         * postgresql.c (vars_of_postgresql): Mule-ize.
14067         (Fpq_conn_defaults): Ditto.
14068
14069 2000-03-12  Ben Wing  <ben@xemacs.org>
14070
14071         * alloc.c (Fmake_byte_code):
14072         * alloc.c (debug_string_purity_print):
14073         * alloc.c (pdump_backtrace):
14074         * alloc.c (pdump_get_indirect_count):
14075         * alloc.c (pdump_register_sub):
14076         * alloc.c (pdump_register_object):
14077         * alloc.c (pdump_register_struct):
14078         * alloc.c (pdump_dump_data):
14079         * alloc.c (pdump_reloc_one):
14080         Minor cleanups.
14081
14082         * console-msw.c:
14083         * console-msw.c (GetConsoleHwnd):
14084         * console-msw.c (msw_hide_console):
14085         * console-msw.c (msw_show_console):
14086         * console-msw.c (msw_ensure_console_buffered):
14087         * console-msw.c (msw_output_console_string):
14088         * console-msw.c (console_type_create_mswindows):
14089
14090         a) Added functions to manipulate the console window for use with
14091         shell support.
14092
14093         b) Added support for writing text to the console, which is now
14094         used under Windows when xemacs is not being run non-interactively,
14095         to write text that would otherwise be destined for stdout because
14096         under these circumstances, text written to stdout tends to
14097         disappear and not be seen.
14098
14099         * console-msw.h:
14100         * event-Xt.c:
14101         * event-Xt.c (x_event_to_emacs_event):
14102         * event-Xt.c (describe_event_window):
14103         * events-mod.h (XEMACS_MOD_CONTROL):
14104         * events.c:
14105         * events.c (Fmake_event):
14106         * events.c (character_to_event):
14107         * events.c (event_to_character):
14108         * events.c (format_event_object):
14109         * events.c (Fevent_modifiers):
14110         * events.h:
14111         * events.h (struct key_data):
14112         * events.h (struct button_data):
14113         * events.h (struct misc_user_data):
14114         * frame-x.c (Fcde_start_drag_internal):
14115         * frame-x.c (Foffix_start_drag_internal):
14116         * gpmevent.c (Freceive_gpm_event):
14117         * keymap.c:
14118         * keymap.c (bucky_sym_to_bucky_bit):
14119         * keymap.c (control_meta_superify):
14120         * keymap.c (make_key_description):
14121         * keymap.c (keymap_lookup_directly):
14122         * keymap.c (create_bucky_submap):
14123         * keymap.c (keymap_store):
14124         * keymap.c (define_key_check_and_coerce_keysym):
14125         * keymap.c (define_key_parser):
14126         * keymap.c (define_key_alternate_name):
14127         * keymap.c (Fdefine_key):
14128         * keymap.c (raw_lookup_key_mapper):
14129         * keymap.c (struct map_keymap_unsorted_closure):
14130         * keymap.c (map_keymap_unsorted_mapper):
14131         * keymap.c (map_keymap_sort_predicate):
14132         * keymap.c (map_keymap_sorted):
14133         * keymap.c (accessible_keymaps_mapper_1):
14134         * keymap.c (where_is_recursive_mapper):
14135         * keymap.c (describe_map_mapper):
14136         * keymap.c (describe_map_sort_predicate):
14137         * keymap.c (describe_map):
14138         * keymap.c (complex_vars_of_keymap):
14139         And a number of other files, the key modifier preprocessor
14140         constants that xemacs uses have names that conflict with constants
14141         defined under MS Windows for other purposes, so they were renamed
14142         to begin with the prefix XEMACS_. The variables that hold such
14143         modifiers were changed to consistently be of type int to fix
14144         various compile warnings.
14145
14146         * console.c (complex_vars_of_console):
14147         * device.c:
14148         * device-msw.c:
14149         * device-msw.c (mswindows_finish_init_device):
14150         * device-msw.c (msw_get_workspace_coords):
14151         * device-msw.c (mswindows_device_system_metrics):
14152         and various other files, added support for a new
14153         device property called offset-workspace which returns the position
14154         of the upper left corner of the workspace area and goes along with
14155         the existing size-workspace property.
14156
14157         * dialog-msw.c:
14158         * dialog-msw.c (push_bufbyte_string_as_unicode):
14159         * dialog-msw.c (mswindows_popup_dialog_box):
14160         Added support for XEmacs-style accelerator specifications in
14161         button text.  Note: I didn't add support for this under X Windows,
14162         and somebody needs to do this.
14163
14164         * dialog.c:
14165         * dialog.c (Fpopup_dialog_box):
14166         Documented the support for accelerators that was just mentioned.
14167
14168         editfns.c (get_home_directory): Changed behavior under Windows
14169         when HOME not defined; former behavior was irretrievably broken.
14170
14171         * emacs.c:
14172         * emacs.c (main_1):
14173         * emacs.c (main):
14174         * minibuf.c (clear_echo_area_internal):
14175         * minibuf.c (echo_area_append):
14176         * print.c:
14177         * print.c (std_handle_out_external):
14178         * print.c (std_handle_out_va):
14179         * print.c (fatal):
14180         * print.c (write_string_to_stdio_stream):
14181         * print.c (output_string):
14182         * print.c (debug_print):
14183         * print.c (debug_backtrace):
14184         * print.c (debug_short_backtrace):
14185         Cleaned up the code that prints text to stdout so that this can be
14186         changed to output into a console window instead under MS Windows,
14187         as described above.
14188
14189         * eval.c:
14190         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
14191         * eval.c (internal_catch):
14192         * eval.c (unwind_to_catch):
14193         * eval.c (throw_or_bomb_out):
14194         * eval.c (condition_case_1):
14195         * eval.c (signal_1):
14196         * eval.c (check_error_state_sanity):
14197         * eval.c (call_with_suspended_errors_1):
14198         * eval.c (call_with_suspended_errors):
14199         * eval.c (reinit_vars_of_eval):
14200         Added code to catch throw loops and check for a pesky bug that may
14201         be gone now.
14202
14203         * event-msw.c:
14204         * event-msw.c (key_needs_default_processing_p):
14205         * event-msw.c (mswindows_wnd_proc):
14206         * event-msw.c (mswindows_modifier_state):
14207         * event-msw.c (emacs_mswindows_quit_p):
14208         * event-msw.c (vars_of_event_mswindows):
14209         a) Added support for using the alt key to select menu items as is
14210         standard under MS Windows.  This is controlled using the variable
14211         menu-accelerator-enabled, just like under X Windows.  There is an
14212         option on the options menu to turn this support on.  I really
14213         think that it should be on by default under Windows, but I'm not
14214         going to make this change yet.
14215
14216         b)  Added support for dynamic display size changes under Windows.
14217
14218         * event-stream.c:
14219         * event-stream.c (maybe_echo_keys):
14220         * event-stream.c (Fnext_event):
14221         * event-stream.c (command_builder_find_leaf):
14222         * event-stream.c (lookup_command_event):
14223         * event-stream.c (execute_command_event):
14224         * event-stream.c (pre_command_hook):
14225         * event-stream.c (post_command_hook):
14226         * event-stream.c (syms_of_event_stream):
14227         * event-stream.c (vars_of_event_stream):
14228         * event-stream.c (complex_vars_of_event_stream):
14229         * events.h (struct command_builder):
14230
14231         a) Tried to clean up a little bit the horribly written x-specific
14232         accelerator code that crept into this file.  I moved this code
14233         into menubar-x.c where it belongs. I also needed to move the
14234         command builder structure into the file events.h because it is
14235         accessed directly by this accelerator code.  What I didn't do, but
14236         which should be done at some point, is to properly abstract this
14237         code using device methods instead of the kludgy way that it
14238         currently hooks into the event code.
14239
14240         b) Added the lisp variables this-command-properties and
14241         last-command- properties, which should be used to synchronize two
14242         adjacent commands in preference to playing games with the variable
14243         this-command, which is typically what happens.
14244
14245         c) Added some slightly nasty code to hook into the lisp support
14246         for shifted- motion-key selection.  This is actually necessary for
14247         somewhat complicated reasons, which are described in
14248         simple.el. (NB: I think the proper thing would be to have the code
14249         that calls the pre and post command hooks also call out to generic
14250         lisp functions in simple.el, where all built-in stuff could be
14251         added.  I will think about this more.)
14252
14253         * event-unixoid.c (poll_fds_for_input):
14254         * lread.c (readchar):
14255         * redisplay-tty.c (tty_clear_frame):
14256         * redisplay-x.c (x_get_gc):
14257         * signal.c (interrupt_signal):
14258         And a whole bunch of other files: fixed up places that printed
14259         directly to stderr to instead call the function stderr_out so that
14260         the changes I made under Windows work correctly.
14261
14262         * filemode.c (mode_string):
14263         Warning fixes.
14264
14265         * frame-msw.c:
14266         * frame-msw.c (mswindows_size_frame_internal):
14267         Fixed the computation of frame size and position to keep the frame
14268         within the workspace area, rather than within the physical
14269         dimensions of the screen, so that the frame doesn't overlap window
14270         manager decorations, such as the start menu and toolbar, typically
14271         at the bottom of the screen.
14272
14273         * frame.c (vars_of_frame):
14274         Changed the default frame title format under MS Windows to consist
14275         of buffername-XEmacs, which is standard under MS Windows.  I think
14276         it might be a good idea to change this everywhere because I think
14277         it is superior to the current frame title format, but this is the
14278         kind of change that is likely to cause some people to get annoyed,
14279         so I'm not making it.
14280
14281         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
14282
14283         * gui-msw.c (mswindows_handle_gui_wm_command):
14284         Fixed compile warnings.
14285
14286         * gui-x.c:
14287         * gui-x.c (strdup_and_add_accel):
14288         * gui-x.c (button_item_to_widget_value):
14289         * gui-x.h:
14290         Added code to automatically put an accelerator onto the beginning
14291         of menu items that don't have one as is now the standard, and is
14292         described more later.  Also fixed things so that the menu item
14293         name can be an evaluated expression, again a new standard.
14294
14295         * gui.c:
14296         * gui.c (gui_item_add_keyval_pair):
14297         * gui.c (make_gui_item_from_keywords_internal):
14298         * gui.c (gui_add_item_keywords_to_plist):
14299         * gui.c (gui_item_accelerator):
14300         * gui.c (gui_name_accelerator):
14301         * gui.c (gui_item_included_p):
14302         * gui.c (gui_item_display_flush_left):
14303         * gui.c (gui_item_display_flush_right):
14304         * gui.c (parse_gui_item_tree_item):
14305         * gui.c (parse_gui_item_tree_children):
14306         * gui.c (parse_gui_item_tree_list):
14307         Mule-ized.  Cleanup.  GCPRO addition.
14308
14309         * line-number.c (buffer_line_number):
14310         * lisp.h:
14311         * lisp.h (EMACS_INT_MAX):
14312         Added the manifest constant EMACS_INT_MIN corresponding to the
14313         existing constant EMACS_INT_MAX.  This is partially to fix compile
14314         warnings under Windows, and partly for cleanliness.
14315
14316         * menubar-msw.c:
14317         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
14318         * menubar-msw.c (msw_translate_menu_or_dialog_item):
14319         * menubar-msw.c (displayable_menu_item):
14320         * menubar-msw.c (populate_menu_add_item):
14321         * menubar-msw.c (populate_or_checksum_helper):
14322         * menubar-msw.c (populate_menu):
14323         * menubar-msw.c (update_frame_menubar_maybe):
14324         * menubar-msw.c (prune_menubar):
14325         * menubar-msw.c (msw_char_is_accelerator):
14326         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
14327         * menubar-msw.c (mswindows_handle_wm_command):
14328         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
14329         * menubar-msw.c (mswindows_handle_wm_initmenu):
14330         * menubar-msw.c (mswindows_update_frame_menubars):
14331         * menubar-msw.c (mswindows_free_frame_menubars):
14332         * menubar-msw.c (mswindows_popup_menu):
14333         Fixed a bug in handling accelerators where an extra character
14334         would be displayed in the menu item.  Also generalized the
14335         function displayable_menu_item because it is now used by the
14336         dialog box code as well.  And finally, added code in the functions
14337         that create the menubar to extract a list of accelerators for the
14338         top level menubar, which is used in the event code to determine
14339         whether a particular alt-key combination should be used to invoke
14340         a menu item, or should be passed through to access the standard
14341         XEmacs keymap binding for this key combination.
14342
14343         Much needed GCPROing.
14344
14345         * menubar-x.c:
14346         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14347         * menubar-x.c (menu_item_descriptor_to_widget_value):
14348         * menubar-x.c (restore_in_menu_callback):
14349         * menubar-x.c (x_popup_menu):
14350         * menubar-x.c (menu_move_up):
14351         * menubar-x.c (menu_move_down):
14352         * menubar-x.c (menu_move_left):
14353         * menubar-x.c (menu_move_right):
14354         * menubar-x.c (menu_select_item):
14355         * menubar-x.c (command_builder_operate_menu_accelerator):
14356         * menubar-x.c (menu_accelerator_junk_on_error):
14357         * menubar-x.c (command_builder_find_menu_accelerator):
14358         * menubar-x.c (Faccelerate_menu):
14359         * menubar.h:
14360         Moved a whole bunch of code here that was previously in
14361         event-stream.c as described above.  There is also code connected
14362         to the new standard of adding an accelerator to the beginning of
14363         menu items that don't have one as described above and below.
14364
14365         * menubar.c:
14366         * menubar.c (menu_parse_submenu_keywords):
14367         * menubar.c (Fmenu_find_real_submenu):
14368         * menubar.c (Fnormalize_menu_item_name):
14369         * menubar.c (syms_of_menubar):
14370         * menubar.c (vars_of_menubar):
14371         * menubar.c (complex_vars_of_menubar):
14372
14373         a) Cleaned up a bunch of documentation and improved it.
14374
14375         b) XEmacs now automatically adds an accelerator onto the beginning
14376         of any menu items that don't have one.  I did this because there
14377         will inevitably be some menu items on the main menubar that don't
14378         have accelerators on them because the package that adds that
14379         particular menu item hasn't yet been fixed up to have accelerators
14380         in them and it looked rather strange to have some items with and
14381         some items without accelerators, especially since even in items
14382         without accelerators, you can, at least under windows, still
14383         access the item through an accelerator corresponding to the first
14384         character in the item's name.  If people don't like this behavior,
14385         I can add a variable to turn it off optionally, but I'm not sure
14386         this is a good idea because we really do need to have accelerators
14387         on all of the menu items, and if a package doesn't like the
14388         accelerators being put on the first character, then it should put
14389         the accelerators where they belong.
14390
14391         c) I made a behavior change, which is that the descriptor that
14392         specifies the text of the menu item, which formerly was just a
14393         string, can now also be an evaluated expression.  This makes this
14394         descriptor parallel with all of the others, which could also be
14395         evaluated expressions.  This also obviates the need for the
14396         keyword :label, which was previously listed in the documentation
14397         as unimplemented, and which was for the same purpose.
14398
14399         d) GCPROing.
14400
14401         * ntproc.c:
14402         * ntproc.c (new_child):
14403         * ntproc.c (sys_spawnve):
14404         * ntproc.c (find_child_console):
14405         * ntproc.c (sys_kill):
14406         Fixed compile warnings.  By the way, this file should really go
14407         away entirely, and this will happen as soon as Kirill makes his
14408         final round of process cleanups, which affect the function
14409         call-process.
14410
14411         * process-nt.c:
14412         * process-nt.c (struct nt_process_data):
14413         * process-nt.c (find_process_from_pid):
14414         * process-nt.c (send_signal_the_nt_way):
14415         * process-nt.c (enable_child_signals):
14416         * process-nt.c (find_child_console):
14417         * process-nt.c (send_signal_the_95_way):
14418         * process-nt.c (nt_finalize_process_data):
14419         * process-nt.c (ensure_console_window_exists):
14420         * process-nt.c (nt_create_process):
14421         * process-nt.c (nt_kill_child_process):
14422         * process-nt.c (nt_kill_process_by_pid):
14423         * process-nt.c (nt_open_network_stream):
14424         * process-nt.c (vars_of_process_nt):
14425         Copied over code from Emacs 20.5 to correctly send signals to sub-
14426         processes under Windows 95.  Also added code to automatically
14427         create and hide console window when a sub-process is created under
14428         Windows 95, which obviates the need for the separate runemacs.exe
14429         executable, and finally implemented some variables that were
14430         implemented in Emacs 20.5, but previously not in XEmacs.  These
14431         include mswindows- start-process-share-console and
14432         mswindows-start-process-inherit-error-mode. (Both of these only
14433         apply to Windows 95.)
14434
14435         * regex.c (regex_compile): Fixed a compile warning.
14436
14437         * select-msw.c:
14438         * select-msw.c (mswindows_own_selection):
14439         * select-msw.c (mswindows_get_foreign_selection):
14440         * select-msw.c (mswindows_disown_selection):
14441         * select-msw.c (console_type_create_select_mswindows):
14442         * select-msw.c (syms_of_select_mswindows):
14443         Cleaned up the file and implemented the device method
14444         selection_exists_p, which had accidentally been left out.  Also
14445         removed four lisp functions that were remnants from before the
14446         time when the selection code was properly device abstracted.
14447         These functions are no longer needed because there are generic
14448         equivalents, and because they were added recently and don't exist
14449         in FSF Emacs, I don't think there's any problem with just deleting
14450         them.
14451
14452         * sysdep.c:
14453         * sysdep.c (sys_subshell):
14454         Fixed a compile warning, although in this case there's probably
14455         something wrong with this code, and it ought to be looked into
14456         more thoroughly by somebody who understands it.
14457
14458         * window.c:
14459         * window.c (Fwindow_text_area_height):
14460         * window.c (Fwindow_width):
14461         * window.c (Fwindow_full_width):
14462         * window.c (Fwindow_pixel_width):
14463         * window.c (debug_print_window):
14464         * window.c (syms_of_window):
14465         Added functions window-text-area-height and window-full-width,
14466         which are functions for returning various width and height
14467         characteristics of a window. (One of these functions is necessary
14468         for making the file dialog box work correctly, and the other one
14469         was added for completeness.)  Also added a table to the
14470         documentation for window-height which describes the entire scheme
14471         for accessing width and height characteristics of a window.
14472
14473 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14474
14475         * nt.c (fstat): Added a comment for another problem with
14476         non-encapsulated [f]stat(), reported by Adrian Aichner
14477         <aichner@ecf.teradyne.com>.
14478
14479 2000-03-11  Andy Piper  <andy@xemacs.org>
14480
14481         * window.c (make_dummy_parent): initialize subwindow instance
14482         cache.
14483         (Fset_window_configuration): zero extent_modiff.
14484
14485 2000-03-10  Andy Piper  <andy@xemacs.org>
14486
14487         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14488         more changes can be triggered.
14489         (Fredisplay_frame): ditto.
14490         (Fredraw_device): ditto.
14491         (Fredisplay_device): ditto.
14492         (redisplay_frame): make non-static.
14493         (redisplay_frame): call update_frame_gutter_geometry outside of
14494         display proper.
14495
14496         * gutter.h: declare update_frame_gutter_geometry.
14497
14498         * redisplay.h: declare redisplay_frame.
14499
14500         * gutter.c (update_frame_gutter_geometry): move geometry changes
14501         in update_frame_gutters here. Geometry changes can only occur
14502         outside of redisplay.
14503         (update_frame_gutters): remove geometry change code.
14504         (Fredisplay_gutter_area): make sure that we are in display when we
14505         update and that we have flushed any size changes.
14506
14507 2000-03-11  Andy Piper  <andy@xemacs.org>
14508
14509         * alloc.c (pdump_dump_data): remove i & count shadows.
14510
14511 2000-02-27  Mike Alexander  <mta@arbortext.com>
14512
14513         * sysdep.h: Declare pdump_read_file
14514
14515         * sysdep.c (pdump_read_file): New function
14516
14517         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14518         dump data
14519
14520 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14521
14522         * lrecord.h: add `lrecord_type_pgsetenv'.
14523
14524 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14525
14526         * symsinit.h: declare (vars|syms)_of* functions.
14527         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14528
14529 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14530
14531         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14532
14533         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14534         GCCs.
14535
14536         * emacs.c (main_1): Call postgres initialization code.
14537
14538         * postgresql.h: New file.  PostgreSQL RDBMS support.
14539         * postgresql.c: New file.
14540
14541 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14542
14543         * redisplay-output.c (redisplay_output_display_block): Disable
14544         redundant code.
14545
14546 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14547
14548         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14549         (Fcanna_henkan_next): Ditto.
14550         (Fcanna_bunsetu_henkou): Ditto.
14551         (Fcanna_henkan_kakutei): Ditto.
14552         (Fcanna_henkan_end): Ditto.
14553         (Fcanna_henkan_quit): Ditto.
14554         (Fcanna_henkan_next): Set retun value correctly.
14555         (c2mu): Use unsigned char instead of signed char.
14556
14557 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14558
14559         * emacs.c (main_1): Always call syms_of_gui.
14560         * inline.c: include gui.h
14561
14562 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14563
14564         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14565         converted to Lisp_Object.
14566         (Qtop_bottom): New variable.
14567         (syms_of_redisplay): Initialize it.
14568         * redisplay.h (Vvisible_bell): Ditto.
14569         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14570         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14571         only flash top and bottom.
14572
14573 2000-03-08  Andy Piper  <andy@xemacs.org>
14574
14575         * buffer.c (Frename_buffer): record new buffer name the right way.
14576
14577 2000-03-08  Andy Piper  <andy@xemacs.org>
14578
14579         * glyphs.c (update_subwindow): increase hash depth so that widget
14580         items get picked up properly.
14581
14582         * redisplay-output.c (compare_runes): increase hash depth so that
14583         widget items get picked up properly.
14584
14585 2000-03-08  Andy Piper  <andy@xemacs.org>
14586
14587         * gutter.c (output_gutter): add some debug.
14588
14589         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14590         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14591         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14592
14593         * redisplay-output.c (compare_runes): use display_hash to
14594         determine if glyphs really are not the same.
14595
14596         * glyphs.c (update_subwindow): check display_hash to see if
14597         anything really needs to be updated. If not then do
14598         nothing. Record the display_hash after updating.
14599         (image_instance_equal): compare the image_instance face also.
14600
14601 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14602
14603         * redisplay.h: Fix comment style.
14604
14605 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14606
14607         * consle-msw.h (struct mswindows_frame):
14608         Added new member paint_pending to indicate whether a WM_PAINT
14609         magic event has been queued for this frame.
14610
14611         * event-msw.c (mswindows_drain_windows_queue):
14612         Don't queue a WM_PAINT magic event if one is already queued.
14613         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14614
14615         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14616
14617 2000-03-07  Didier Verna  <didier@xemacs.org>
14618
14619         * dired.c: #include `regex.h' after `sysfile.h'.
14620
14621 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14622
14623         * sound.c (init_nas_sound): Fix compiler warning.
14624
14625         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14626         (FREE_STRUCT_P):
14627         (MARK_STRUCT_AS_FREE):
14628         (MARK_STRUCT_AS_NOT_FREE):
14629         Make `gcc -fstrict-aliasing' work properly.
14630
14631 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14632
14633         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14634         (mswindows_delete_device): Call CoUnnitialize().
14635
14636         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14637
14638 2000-02-25    <CraigL@DyCon.com>
14639
14640         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14641         <errno.h>.
14642
14643         * sysdep.c: This extern declaration for environ prevents MinGW
14644         from finding the variable in CRTDLL.DLL.
14645
14646         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14647         windows headers.
14648         (SHGFI_EXETYPE): ..
14649         (WM_MOUSEWHEEL): ..
14650         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14651         definitions.
14652         (MMRESULT): Removed, now defined in cygwin's windows headers.
14653         (TIMECAPS): ..
14654         (uid_t,gid_t,pid_t,ssize_t): ..
14655         (_timeb): Removed, MinGW defines both _timeb and timeb.
14656         (HAVE_H_ERRNO): Added.
14657         (HAVE_TZNAME): Added, configure is not detecting this.
14658
14659 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14660
14661         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14662         * syntax.c (syntax_match): Use it.
14663
14664         * cmds.c: Import auto-fill-chars from FSF Emacs.
14665         (Vauto_fill_chars): New variables.
14666         (internal_self_insert): Check Vauto_fill_chars.
14667         (vars_of_cmds):
14668         Declare auto-fill-chars as a Lisp variable and initialize it.
14669
14670 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14671
14672         * fileio.c (Fmake_symbolic_link):
14673         (Ffile_symlink_p):
14674         Run handlers even if local machine doesn't have symlinks.
14675
14676 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14677
14678         * event-msw.c (mswindows_drain_windows_queue):
14679         Don't generate paint magic events for non-XEmacs frames.
14680
14681 2000-03-05  Andy Piper  <andy@xemacs.org>
14682
14683         * redisplay.c (redisplay_frame): generate_displayable_area and
14684         friends assumes that we are not in GC, we therefore have to make
14685         sure that this doesn't happen.
14686
14687         * gutter.c (calculate_gutter_size): generate_displayable_area
14688         assumes that we are not in GC, we therefore have to make sure that
14689         this doesn't happen.
14690
14691 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14692
14693         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14694
14695 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14696
14697         * redisplay.c (regenerate_window): Make sure we set a sane value
14698         for end_pos even if we jump out of the loop.
14699         (regenerate_window): Answer Ben's question :-).
14700         (start_end_of_last_line): Add may_error argument.
14701         (start_of_last_line):
14702         (end_of_last_line): Pass may_error = 0.
14703         (end_of_last_line_may_error): New function.
14704         (pixel_to_glyph_translation): Use it, so we don't crash in
14705         event_to_glyph.
14706
14707 2000-03-04  Andy Piper  <andy@xemacs.org>
14708
14709         * window.h (struct window): add gutter_extent_modiff.
14710
14711         * window.c (allocate_window): zero out gutter_extent_modiff.
14712
14713         * redisplay.h: declare sync_display_line_structs.
14714
14715         * redisplay.c (add_glyph_rune): add a better comment.
14716
14717         * redisplay-output.c (sync_display_line_structs): made non-static.
14718         (compare_runes): remove unneccesary glyph cachel access.
14719
14720         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14721
14722         * gutter.c (output_gutter): don't output the gutter if extent
14723         changes only involve extents in buffers. use 4 sets of display
14724         lines.
14725         (gutter_extent_signal_changed_region_maybe): new function. Mark
14726         extents in gutters as changed.
14727         (update_frame_gutters): use 4 sets of display lines.
14728         (reset_gutter_display_lines): ditto.
14729         (free_frame_gutters): ditto.
14730         (redraw_exposed_gutter): force output of gutters.
14731
14732         * frame.h (struct frame): add 4 sets of gutter display lines.
14733
14734         * extents.c: (extent_changed_for_redisplay): signal changes to
14735         extents in strings in the gutter as well as extents in buffers.
14736
14737 2000-03-02  Andy Piper  <andy@xemacs.org>
14738
14739         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14740
14741         * frame.c (Fmake_frame): make sure the gutters get initialized
14742         after the frame is visible.
14743         (set_frame_selected_window): re-arrange compilation macros a
14744         little.
14745         (change_frame_size_1): mark gutters changed.
14746
14747         * device.c (Fset_device_class): mark gutters changed.
14748
14749 2000-03-01  Andy Piper  <andy@xemacs.org>
14750
14751         * window.c (window_top_frame_gutter_height): deleted.
14752         (window_bottom_frame_gutter_height): ditto.
14753         (window_left_frame_gutter_height): ditto.
14754         (window_right_frame_gutter_height): ditto.
14755         (window_top_gutter_height): don't use them.
14756         (window_bottom_gutter_height): ditto.
14757         (window_left_gutter_width): ditto.
14758         (window_right_gutter_width): ditto.
14759         (Fsplit_window): ditto.
14760         (Fwindow_pixel_edges): don't use border dimensions here.
14761
14762         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14763         (update_scrollbar_instance): ditto.
14764
14765         * redisplay.c (generate_modeline): don't take gutters into account.
14766         (generate_modeline): ditto.
14767         (redisplay_frame): small gutter display optimization.
14768
14769         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14770
14771         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14772         gutters into account.
14773
14774         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14775         for window position and type.
14776
14777         * gutter.c (get_gutter_coords): fix for frame gutters.
14778         (update_frame_gutters): update frame geometry if the gutters have
14779         changed.
14780         (init_frame_gutters): record current gutter geometries.
14781
14782         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14783         var.
14784         (mswindows_widget_instantiate): ditto.
14785
14786         * frame.h (struct frame): add current_gutter_bounds.
14787
14788         * frame.c (change_frame_size_1): position window and minibuffer
14789         appropriately taking into account the frame gutters.
14790
14791         * frame-x.c: (x_initialize_frame_size): take into account the
14792         frame gutters.
14793
14794 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14795
14796         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14797
14798 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14799
14800         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14801
14802 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14803
14804         * file-coding.c (reset_decoding_stream): Clear previous
14805         detection state when autodetect.
14806
14807 2000-02-29  Didier Verna  <didier@xemacs.org>
14808
14809         * extents.c (set_extent_glyph_1): don't require extents to be
14810         attached.
14811
14812 2000-02-27  Andy Piper  <andy@xemacs.org>
14813
14814         * gutter.c (Fset_default_gutter_position): don't default left and
14815         right gutter visibility to t.
14816         (Fset_default_gutter_position): run
14817         default-gutter-position-changed-hook.
14818         (syms_of_gutter): add default-gutter-position-changed-hook.
14819
14820 2000-02-26  Andy Piper  <andy@xemacs.org>
14821
14822         * specifier.c (Fmake_specifier): add gutter references.
14823
14824         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14825
14826         * lisp.h: declare Fvalid_plist_p.
14827
14828         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14829         as changed.
14830         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14831         well as its visibility so that it gets reconstructed.
14832         (construct_window_gutter_spec): new function. Construct a string
14833         to be displayed in the gutter from a plist of strings. Take care
14834         to only use elements that are declared as visible.
14835         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14836         WINDOW_GUTTER.
14837         (gutter_validate): allow plists of strings in the specifier.
14838         (gutter_specs_changed): construct the real_gutter from the gutter
14839         specs using construct_window_gutter_spec.
14840         (gutter_visible_validate): gutter-visible is a new specifier type.
14841         (Fgutter_visible_specifier_p): new function for the new specifier.
14842         (syms_of_gutter): declare gutter-visible and
14843         Fgutter_visible_specifier_p.
14844         (specifier_type_create_gutter): intitalize new gutter-visible
14845         specifier.
14846         (reinit_specifier_type_create_gutter): ditto.
14847         (specifier_vars_of_gutter): use new specifier type for gutter
14848         visibility.
14849         (init_frame_gutters): construct real_gutter correctly.
14850         (Fgutter_specifier_p): beef up documentation.
14851         (Fgutter_size_specifier_p): ditto.
14852
14853         * winslots.h: add real_gutter slots.
14854
14855 2000-02-25  Andy Piper  <andy@xemacs.org>
14856
14857         * device-msw.c: Be kind to older cygwin versions. From Raymond
14858         Toy <toy@rtp.ericsson.se>.
14859
14860         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14861         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14862
14863 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14864
14865         * elhash.c (MARK_OBJ): Practice macro hygiene.
14866
14867 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14868
14869         * miscplay.c: s/__inline__/inline/g;
14870         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14871         (get_device_compdc): INLINE ==> static inline
14872         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14873         find -name '*.h' | \
14874         xargs global-replace \
14875         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14876
14877 2000-02-25  Andy Piper  <andy@xemacs.org>
14878
14879         * window.c (window_top_frame_gutter_height): new function.
14880         (window_top_window_gutter_height): ditto.
14881         (window_top_gutter_height): use them.
14882         (window_bottom_frame_gutter_height): new function.
14883         (window_bottom_window_gutter_height): ditto.
14884         (window_bottom_gutter_height): use them.
14885         (window_left_window_gutter_width): new function.
14886         (window_left_frame_gutter_width): ditto.
14887         (window_left_gutter_width): use them.
14888         (window_right_window_gutter_width): new function.
14889         (window_right_frame_gutter_width): ditto.
14890         (window_right_gutter_width): use them.
14891         (window_pixel_height): new function. calulate window pixel height
14892         with frame gutter involvement.
14893         (Fsplit_window): calculate new sizes taking frame gutters into
14894         account.
14895         (window_char_height_to_pixel_height): don't include frame gutters.
14896         (window_char_height): use window_pixel_height.
14897         (window_pixheight): rename from window_pixel_height.
14898         (change_window_height): use it.
14899         (window_pixel_height_to_char_height): don't include frame gutters.
14900         (window_char_width_to_pixel_width): ditto.
14901
14902 2000-02-25  Andy Piper  <andy@xemacs.org>
14903
14904         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14905         if it is.
14906
14907 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14908
14909         * alloc.c (staticpro):
14910         (staticpro_nodump):
14911         (dumpstruct):
14912         (dumpopaque):
14913         (pdump_wire):
14914         (pdump_wire_list):
14915         (compact_string_chars):
14916         (pdump_dump_wired):
14917         Convert:  if (foo) abort();  ==>  assert (! foo);
14918
14919         * eldap.c (Fldap_search_basic):
14920         (Fldap_add):
14921         (Fldap_modify):
14922         (Fldap_delete):
14923         Fix compiler warnings, and possible crashes if (random) return
14924         value were to be used.
14925
14926 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14927
14928         * device-msw.c: Workaround ResetDC failure.
14929
14930         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14931         applying a devmode.
14932
14933         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14934         (mswindows_text_width): Do not start printer page.
14935
14936         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14937
14938         * glyphs-msw.c: Added image methods to msprinter console and
14939         msprinter-specific image instantiation.
14940
14941 2000-02-20  Mike Alexander  <mta@arbortext.com>
14942
14943         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14944         to avoid crashes when selection-sets-clipboard is on
14945         (mswindows_own_selection): ditto
14946
14947 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14948
14949         * glyphs-msw.c:
14950         * redisplay-msw.c (get_frame_dc):
14951         (get_frame_compdc):
14952         * console-msw.h:
14953         * device-msw.c (mswindows_init_device):
14954         (mswindows_delete_device):
14955         (msprinter_init_device):
14956         (msprinter_delete_device):
14957         * frame-msw.c (mswindows_init_frame_1):
14958         (mswindows_delete_frame):
14959         (msprinter_init_frame_3):
14960         (msprinter_delete_frame): Move compatible DC to device object from
14961         frame object, for both mswindows and msprinter. Only one at a time
14962         is needed, it is a real waste to have one per frame!
14963
14964 2000-02-23  Andy Piper  <andy@xemacs.org>
14965
14966         * glyphs.c: add dynamic width and height elements.
14967         (image_instance_equal): ditto.
14968
14969         * glyphs-widget.c (widget_query_geometry): calculate width and
14970         height dynamically if required.
14971         (initialize_widget_image_instance): initialize dynamic dimensions.
14972         (widget_instantiate): pick-up dynamic dimensions.
14973
14974         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14975         dynamic determination. Add appropriate macros.
14976
14977         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14978         dimensions safe.
14979         (WINDOW_GUTTER_SIZE): ditto.
14980         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14981
14982         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14983         inline.
14984         (get_frame_dc): ditto.
14985
14986         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14987         here.
14988
14989 2000-02-23  Martin Buchholz <martin@xemacs.org>
14990
14991         * XEmacs 21.2.31 is released.
14992
14993 2000-02-22  Ben Wing <ben@xemacs.org>
14994
14995         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14996
14997 2000-02-22  Andy Piper  <andy@xemacs.org>
14998
14999         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
15000
15001 2000-02-21  Mike Sperber <mike@xemacs.org>
15002
15003         * .dbxrc:
15004         * .gdbinit:
15005         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
15006         variables.
15007
15008 2000-02-21  Mike Sperber <mike@xemacs.org>
15009
15010         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
15011
15012 2000-02-21  Martin Buchholz <martin@xemacs.org>
15013
15014         * XEmacs 21.2.30 is released.
15015
15016 2000-02-20  Martin Buchholz  <martin@xemacs.org>
15017
15018         Performance hacking.
15019         * *.c (syms_of_*):
15020         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
15021         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
15022         * emacs.c (main_1):
15023         * lisp.h (DEFUN):
15024         * console.c (DEFVAR_CONSOLE_LOCAL_1):
15025         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
15026         * symeval.h (DEFVAR_SYMVAL_FWD):
15027         * symbols.c (guts_of_unbound_marker):
15028         Make all c_readonly objects also lisp_readonly and marked for life.
15029         * lrecord.h (struct lrecord_implementation):
15030         Document flags better.
15031         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
15032         * lrecord.h (DECLARE_LRECORD):
15033         * lrecord.h (XSETRECORD):
15034         * lrecord.h (RECORDP):
15035         * lrecord.h (RECORD_TYPEP):
15036         * lrecord.h (RECORD_MARKER): New.
15037         * lrecord.h (error_check_*):
15038         * lrecord.h (CONCHECK_NONRECORD):
15039         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
15040         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
15041         * lrecord.h (set_lheader_implementation):
15042         * lrecord.h (enum lrecord_type): New.
15043         * symeval.h (SYMBOL_VALUE_MAGIC_P):
15044         * alloc.c (disksave_object_finalization_1):
15045         * alloc.c (mark_object):
15046         * alloc.c (lrecord_type_index):
15047         * alloc.c (tick_lcrecord_stats):
15048         * alloc.c (Fgarbage_collect):
15049         * alloc.c (init_alloc_once_early):
15050         * alloc.c (pdump_load):
15051         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
15052         * alloc.c (lrecord_type_index): Delete.
15053         Make lisp object type indexes be constant.
15054           Makes (byte-compile) 5% faster.
15055         Put all marker functions into their own array.
15056           Makes (garbage-collect) 5% faster.
15057         Optimize SYMBOL_VALUE_MAGIC_P.
15058           Makes (byte-compile) 2-3% faster.
15059         * config.h.in (gc_checking_assert): New.
15060         * alloc.c: Use gc_checking_assert().
15061         * .dbxrc: Make compatible with new object type implementation.
15062         * .gdbinit: Make compatible with new object type implementation.
15063         * alloc.c: Delete all symbols defined only for debugging, such as
15064         Lisp_Type_Vector and lrecord_charset.
15065
15066 2000-02-21  Andy Piper  <andy@xemacs.org>
15067
15068         * gui-msw.c (Fmswindows_shell_execute): fix file location
15069         problems.
15070
15071         * buffer.c (Fkill_buffer): remove buffer from alist buffer
15072         unshowing so that set_window_buffer doesn't undo
15073         kill_buffer_hook's hard work.
15074
15075         * glyphs-widget.c (tab_control_query_geometry): don't count the
15076         first item when calculating geometry.
15077
15078         * glyphs.c (map_subwindow): remove redundant code.
15079         (update_frame_subwindows): be more circumspect about when to
15080         update subwindows.
15081
15082         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
15083         when items haven't changed. Update faces if faces have changed as
15084         well as just the widget face.
15085         (x_tab_control_update): Update faces if faces have changed as well
15086         as just the widget face.
15087
15088 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15089
15090         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
15091         registration.
15092         (build_syscolor_string): Use mswindows_color_to_string to try to
15093         get a named color.
15094         (mswindows_device_system_metrics): Reverse the foreground and
15095         background colors so that they match the documentation.
15096
15097         * objects-msw.c: (mswindows_X_color_map): tweak some values so
15098         they match the default Windows palette.
15099         (mswindows_color_to_string): New function.
15100
15101 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15102
15103         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
15104
15105 2000-02-18  Olivier Galibert  <galibert@pobox.com>
15106
15107         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
15108         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
15109
15110         * symbols.c (init_symbols_once_early): Removed obsolete
15111         DATA_SEG_BITS related kludge.
15112         (defvar_magic): Ditto.
15113
15114         * malloc.c: Removed obsolete DATA_SEG_BITS
15115         * ralloc.c: Ditto.
15116         * mem-limits.h: Ditto.
15117
15118         * Makefile.in.in: Removed obsolete HAVE_SHM
15119         * emacs.c: Ditto.
15120
15121 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15122
15123         *  device-msw.c (mswindows_delete_device): Free DDE string
15124         handles.
15125
15126 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15127
15128         * keymap.c (get_keyelt):
15129         * unexnt.c (unexec):
15130         * vm-limit.c (memory_warnings):
15131         * ntheap.c (recreate_heap):
15132         * ntheap.h (UNINIT_PTR):
15133         * select-msw.c (Fmswindows_get_clipboard):
15134         (Fmswindows_set_clipboard):
15135         * objects-msw.h (MSWINDOWS_BAD_HFONT):
15136         * objects-msw.c:
15137         * menubar-msw.c (displayable_menu_item):
15138         * glyphs-msw.c:
15139         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
15140         * sysdep.c (sys_subshell):
15141         * process-nt.c (nt_create_process):
15142         * nt.c (normalize_filename):
15143         (dostounix_filename):
15144         (unixtodos_filename):
15145         * ntproc.c (win32_executable_type):
15146         * ntplay.c (play_sound_data_1):
15147         (play_sound_file):
15148         * editfns.c (get_home_directory):
15149         * event-msw.c (struct winsock_stream):
15150         (mswindows_dde_callback):
15151         * device-msw.c (msprinter_init_device):
15152         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
15153
15154         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
15155         mswindows_clear_toolbar were swapped!
15156
15157         * objects-msw.c:(colormap_t):
15158         (fontmap_t):
15159         * emacs.c (struct standard_args): Fixed const jumble.
15160
15161         * glyphs-widget.c (update_widget): Fixed comparison notation.
15162
15163         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
15164
15165         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
15166         __declspec(noreturn) syntax.
15167
15168 2000-02-19  Martin Buchholz  <martin@xemacs.org>
15169
15170         * eldap.c (Fldap_open):
15171         (Fldap_search_basic):
15172         (Fldap_add):
15173         (Fldap_modify):
15174         Use new coding system conversion macros.
15175
15176 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15177
15178         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
15179
15180 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
15181
15182         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
15183         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15184
15185         * eldap.c (Qadd, Qreplace): New constant symbols
15186         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
15187         interruptions by XEmacs signals
15188         Remove unnecessary calls to slow_down_interrupts and
15189         speed_up_interrupts
15190         (Fldap_search_basic): Renamed from Fldap_search_internal
15191         Added new optional parameter VERBOSE that triggers the
15192         display of progress messages
15193         Remove unnecessary calls to slow_down_interrupts and
15194         speed_up_interrupts
15195         LDAP result code analysis rewritten
15196         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15197         (syms_of_eldap): Define the new symbols and functions
15198
15199
15200 2000-02-17  Martin Buchholz  <martin@xemacs.org>
15201
15202         * realpath.c: Determine PATH_MAX maximally portably.
15203
15204         * insdel.c (bytecount_to_charcount): Optimize.
15205         The function used to be optimized for entirely ASCII sequences.
15206         Now it is optimized for successive characters from the same
15207         charset.  This also wins big for _mostly_ ASCII sequences.
15208
15209         * fileio.c (Ffile_truename): convert return from realpath() using
15210         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
15211         - Rewrite GCPROing slightly.
15212
15213         * sysdep.c (sys_open): Do filename conversion, like all other
15214         sys_* functions.  Fixes bug:
15215         (let ((file-name-coding-system 'iso-8859-2))
15216            (write-region x y latin2-name))
15217         ==> writes filename using internal encoding.
15218
15219 2000-02-18  Martin Buchholz  <martin@xemacs.org>
15220
15221         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
15222         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
15223         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
15224         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
15225         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
15226         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
15227         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
15228         (CONST_IF_NOT_DEBUG): Delete.
15229         * alloc.c (this_one_is_unmarkable): Delete.
15230         (mark_object): Don't check for this_one_is_unmarkable. Use the
15231         c_readonly flag instead.
15232         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
15233
15234 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15235
15236         * event-msw.c (mswindows_drain_windows_queue):
15237         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
15238         away redundant repaint events.
15239
15240 2000-02-17  Andy Piper  <andy@xemacs.org>
15241
15242         * redisplay.h: declare mark_redisplay_structs.
15243
15244         * redisplay.c (redisplay_window):
15245         (redisplay_frame): don't check subwindows_state_changed.
15246         (mark_redisplay): mark gutters here.
15247
15248         * glyphs.c: (instantiate_image_instantiator): always layout if we
15249         haven't done so already.
15250         (allocate_image_instance): don't mark as dirty.
15251         (update_subwindow): bind inhibit_quit.
15252
15253         * gutter.c (mark_gutters): new function.
15254
15255         * glyphs-x.c (x_update_widget): Always resize to get round a
15256         widget bug.
15257
15258         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
15259         breaking absolutely everything.
15260
15261         * gutter.h: declare mark_gutters.
15262
15263 2000-02-16  Martin Buchholz <martin@xemacs.org>
15264
15265         * XEmacs 21.2.29 is released.
15266
15267 2000-02-15  Olivier Galibert  <galibert@pobox.com>
15268
15269         * fns.c (size_bit_vector): Fix computation of the size.
15270
15271 2000-02-15  Martin Buchholz  <martin@xemacs.org>
15272
15273         * *.[ch]: Change CONST to const globally.
15274         find -name '*.[ch]' | \
15275         xargs global-replace \
15276         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
15277         - Remove vestigial references to CONST_IS_LOSING
15278
15279 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15280
15281         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
15282         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
15283         events instead of dispatching them directly.
15284         (mswindows_handle_paint): New function to do repainting.
15285         (mswindows_wnd_proc):
15286         (emacs_mswindows_handle_magic_event): Call above function.
15287
15288 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15289
15290         * objects-msw.c (mswindows_create_font_variant): Return the new
15291         font handle.
15292         (initialize_font_instance): Get font metrics from the underlined
15293         variant of the font to cope with the case where the underlined
15294         font has a bigger descent.
15295
15296 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15297
15298         * gui.c (gui_item_accelerator): Return the first underlined
15299         character in item name.
15300
15301 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15302
15303         * lisp.h: Added Qprinter.
15304
15305         * general.c (syms_of_general): Initialized it.
15306
15307         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
15308         (get_frame_dc):
15309         (get_frame_compdc): Made inline.
15310
15311         * console.h (struct console_methods): Added eject_page method.
15312
15313         * frame.h: Added FRAME_DISPLAY_P and friends.
15314         Aligned backslahes in many macros in more readable fashion.
15315         Added page_number to struct frame, and an accessor macro
15316         for it.
15317
15318         * defice.h: Added DEVICE_DISPLAY_P and friends.
15319
15320         * device.c (Fdevice_printer_p): Used these.
15321
15322         * frame.c (allocate_frame_core): Initialize page number.
15323         (Fprint_job_page_number):
15324         (Fprint_job_eject_page): Implemented.
15325
15326         * frame-msw.c (msprinter_eject_page): Added method.
15327         (msprinter_start_page): Added.
15328
15329         * window.c (Fwindow_truncated_p): Fixed docstring.
15330         (Fwindow_last_line_visible_height): Implemented.
15331
15332 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15333
15334         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
15335
15336 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15337
15338         * syntax.c (scan_words): Always advance at least one character.
15339
15340 2000-02-13  Andy Piper  <andy@xemacs.org>
15341
15342         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
15343         to make sure the glyph is in the cachels.
15344
15345         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
15346         global image instance flag.
15347         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
15348         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
15349
15350         * glyphs.c (allocate_image_instance): set dirty bits correctly.
15351         (Fset_image_instance_property): mark layout as changed.
15352         (invalidate_glyph_geometry_maybe): mark layout as changed.
15353         (glyph_width): use new NEEDS_LAYOUT macro.
15354         (glyph_ascent): ditto.
15355         (glyph_descent): ditto.
15356         (glyph_height): ditto.
15357         (image_instance_layout): mark layout as clean after laying out.
15358         (update_subwindow): don't mark layout as clean here.
15359
15360         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
15361         should no longer be needed.
15362
15363         * glyphs-x.c (x_update_widget): sanitize asserts.
15364         (x_finalize_image_instance): sanitize assignment to widgets.
15365
15366         * glyphs-widget.c (widget_instantiate): don't need to clear the
15367         layout flag here.
15368
15369 2000-02-13  Martin Buchholz  <martin@xemacs.org>
15370
15371         * sysdep.c (getcwd): Use standard prototype.
15372         * sysdep.h (getcwd): Use standard prototype.
15373
15374         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
15375         (sequence, start, end).
15376         Remove redundant type checking.
15377         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
15378         view of `caller-protects') to avoid a crash where the real fix was
15379         found elsewhere.
15380
15381 2000-02-12  Martin Buchholz  <martin@xemacs.org>
15382
15383         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
15384
15385         * s/sol2.h: Remove feature macro initialization.
15386
15387         * alloc.c (alloc_lcrecord): Add more type checking assertions.
15388         (vector_hash): New.  Code from internal_hash.
15389         * lrecord.h:
15390         Fix up allocation subsystem comments.
15391
15392         * config.h.in: Add __EXTENSIONS__ for Solaris.
15393
15394         * systime.h (EMACS_GETTIMEOFDAY): New.
15395         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
15396         Remove Solaris-specific code.
15397         Use void* for the (ignored) second arg for gettimeofday().
15398
15399         * elhash.c (hash_table_hash): Implement it, finally.
15400         * elhash.c:  Use hashcode_t.
15401
15402         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
15403         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
15404
15405         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
15406         * fns.c (size_bit_vector):
15407         * alloc.c (size_vector):
15408         (make_vector_internal):
15409         (make_bit_vector_internal):
15410         (sweep_bit_vectors_1):
15411         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
15412
15413 2000-02-10  Martin Buchholz  <martin@xemacs.org>
15414
15415         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
15416         Include strings.h to avoid warnings for bzero and strcasecmp.
15417
15418 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15419
15420         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
15421         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
15422
15423         * fns.c (size_bit_vector): New.  Declare bit vectors as a
15424         sequence.
15425
15426 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15427
15428         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15429         use a value field instead.
15430         (symbol_value_forward_forward): Use value field.
15431         (DEFVAR_SYMVAL_FWD): Use value field.
15432         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
15433         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15434         (DEFVAR_CONST_INT): Ditto.
15435         (DEFVAR_BOOL): Ditto.
15436         (DEFVAR_CONST_BOOL): Ditto.
15437         (DEFVAR_INT_MAGIC): Ditto.
15438         (DEFVAR_BOOL_MAGIC): Ditto.
15439
15440         * symbols.c (guts_of_unbound_marker): Use value field.
15441         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15442         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15443
15444         * lisp.h: Declare dumpopaque and noninteractive1.
15445
15446         * alloc.c (dumpopaque): Added.
15447         (pdump_dump_opaquevec): Added.
15448         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15449         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15450         noninteractive.
15451
15452 2000-02-10  Andy Piper  <andy@xemacs.org>
15453
15454         * glyphs.c (image_instance_layout): if the size changes, mark it
15455         as such.
15456
15457         * redisplay-output.c (redisplay_output_layout): Update the
15458         subwindow here.
15459         (redisplay_output_subwindow): ditto.
15460
15461         * glyphs.c (update_subwindow): make sure we reset flags for
15462         layouts as well as everything else.
15463
15464         * glyphs-widget.c (layout_layout): don't need to set the instances
15465         dimensions here.
15466
15467 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15468
15469         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15470         not HAVE_DLOPEN, which is a lower-level thing.
15471
15472         * .cvsignore: Ignore gmon.out
15473
15474 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15475
15476         * .cvsignore: Ignore portable dumper xemacs.dmp file
15477
15478 2000-02-09  Andy Piper  <andy@xemacs.org>
15479
15480         * redisplay-output.c (redisplay_output_layout): be more clever
15481         about when we output based on the changed flags.
15482
15483         * glyphs.h (struct image_instantiator_methods): add update_method.
15484         (struct Lisp_Image_Instance): add changed flags. Declare new
15485         macros for manipulating them.
15486
15487         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15488         (image_instance_parent_glyph): find an image_instance's parent
15489         glyph or image_instance.
15490         (image_instance_layout): mark the size as changed.
15491         (set_image_instance_dirty_p): new function. mark an image
15492         instance, plus all of its parents, as dirty.
15493         (Fset_image_instance_property): use it.
15494         (Fglyph_animated_timeout_handler): use it.
15495         (update_subwindow): call update_widget and device methods for
15496         update_subwindow. Mark all changed flags as clean.
15497         (Fresize_subwindow): mark size as changed.
15498
15499         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15500         failures.
15501         (x_update_subwindow): only resize subwindows here.
15502         (x_update_widget): new function. Update all changed properties of
15503         a widget.
15504         (x_resize_subwindow): deleted.
15505         (x_widget_set_property): deleted.
15506         (x_progress_gauge_set_property): deleted.
15507         (x_progress_gauge_update): new function. Implement recorded
15508         changes.
15509         (x_tab_control_update): ditto.
15510         (x_tab_control_set_property): deleted.
15511         (console_type_create_glyphs_x): declare new functions.
15512         (image_instantiator_format_create_glyphs_x): ditto.
15513
15514         * glyphs-widget.c (widget_set_property): mark text changed.
15515         (update_widget): new function. Update properties of a widget.
15516         (widget_instantiate): for layouts make sure we set their
15517         children's parent correctly.
15518         (tab_control_set_property): new function. Record changes that will
15519         take place under redisplay's control.
15520         (progress_gauge_set_property): ditto.
15521         (image_instantiator_progress_guage): declare new functions.
15522         (image_instantiator_tab_control): ditto.
15523
15524         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15525         now.
15526         (mswindows_update_widget): new function. Update all properties on
15527         a widget that have changed.
15528         (mswindows_button_update): new function. Update a button's set
15529         state.
15530         (mswindows_tab_control_update): new function. Update the items in
15531         a tab.
15532         (mswindows_tab_control_set_property): deleted.
15533         (mswindows_progress_gauge_update): new function. Update the
15534         progress gauge's progress.
15535         (mswindows_widget_set_property): deleted. This is all done
15536         asynchronously now.
15537         (mswindows_progress_gauge_set_property): ditto.
15538         (console_type_create_glyphs_mswindows): declare new methods.
15539         (image_instantiator_format_create_glyphs_mswindows): ditto.
15540
15541         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15542         (msprinter_set_frame_properties): ditto.
15543
15544         * console.h (struct console_methods): Add update_widget_method.
15545
15546 2000-02-09  Andy Piper  <andy@xemacs.org>
15547
15548         * gui-msw.c (Fmswindows_shell_execute): Make
15549         mswindows-shell-execute industrial strength.
15550
15551 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15552
15553         * lrecord.h: Make macro argument `props' match member function `plist'.
15554         * fns.c (Fget):
15555         * fns.c (Fput):
15556         * fns.c (Fremprop):
15557         * fns.c (Fobject_plist):
15558         * alloc.c:
15559         * symbols.c:
15560         Object property list frobbing cleanup.
15561         - Allow any lisp object (compared with `eq'), not just symbols, as
15562           keys in object plists.
15563         - Move symbol plist frobbing into symbols.c, where it belongs.
15564         - Move string plist frobbing into alloc.c, where it belongs.
15565         - Everything's an lrecord now, so no need to test for symbolp, etc.
15566         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15567
15568         * extents.c: Reorder code to remove declarations.
15569
15570         * frame.h (store_in_alist): Remove useless declaration.
15571
15572 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15573
15574         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15575         * config.h.in: Add HAVE_XCONVERTCASE.
15576
15577 2000-02-07  Andy Piper  <andy@xemacs.org>
15578
15579         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15580         it breaks many things.
15581
15582 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15583
15584         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15585         actually can start a common comment type.
15586         * src/syntax.h (SYNTAX_END_P): ditto for end.
15587
15588 2000-02-07  Martin Buchholz <martin@xemacs.org>
15589
15590         * XEmacs 21.2.28 is released.
15591
15592 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15593
15594         * event-Xt.c (x_keysym_to_character): New.
15595         (maybe_define_x_key_as_self_inserting_character): New.
15596         (x_has_keysym): New.
15597         Auto-define all keys on the keyboard as self-insert-key.
15598
15599 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15600
15601         * menubar.c (vars_of_menubar): A small code simplification.
15602
15603         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15604
15605         * ExternalShell.c:
15606         * ExternalClient.c:
15607         * EmacsShell-sub.c:
15608         * EmacsManager.c:
15609         * EmacsFrame.c:
15610         Use consistent style for specifying X resources.
15611
15612         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15613         This makes (dontusethis-set-symbol-value-handler) actually usable.
15614
15615         * lrecord.h (lrecord_decription_type):
15616         * alloc.c (pdump_register_sub):
15617         (pdump_dump_data):
15618         (pdump_reloc_one):
15619         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15620         Comply with XEmacs coding style.
15621         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15622         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15623
15624         * keymap.c (Faccessible_keymaps):
15625         Make (accessible-keymaps map "\C-h") do the Right Thing.
15626         Make (accessible-keymaps map []) do the Right Thing.
15627         Make (accessible-keymaps map "") do the Right Thing.
15628         (check_keymap_definition_loop): New function.
15629         (keymap_store_internal): Keep luser from shooting self in foot,
15630           via (define-key ctl-x-4-map "p" global-map).
15631         Remove fullness slot from struct Lisp_Keymap, since hash tables
15632         are now reliable.
15633         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15634
15635 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15636
15637         * redisplay.c (init_redisplay): Fix small memory leak.
15638         * elhash.h:
15639         * elhash.c (pdump_reorganize_hash_table):
15640         Rename from reorganize_hash_table. Change prototype.
15641         Reuse the original memory for hentries.  Save 100k.
15642         * alloc.c (PDUMP_READ): new macro.
15643         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15644         * alloc.c: No need to #ifndef before #undef.
15645
15646         * print.c: Allow debug_print() to print readably by modifying
15647         debug_print_readably.  Use consistent variable names.
15648
15649         * .dbxrc: Try to get things to work even if stopped in a function
15650         without source available by explicitly specifying source files.
15651 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15652
15653         * unexnt.c (_start): Removed bogus code which caused loading heap
15654         from differrent executable file.
15655         Removed bogus assignment to _fmode, which caused inconsistencies.
15656
15657 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15658
15659         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15660         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15661         Do not preliminary `#define signal sigset'.
15662
15663         * systime.h: Do not prototype environ on windows nt and cygwin,
15664         this conflicts with system header.
15665
15666         * syssignal.h: Use correct define for WINDOWSNT
15667
15668         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15669         with system header.
15670
15671         * sysdep.c (near start of file): Fixed commentary and rearranged
15672         ifdefs in readable order.
15673         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15674         (start_of_text):
15675         (end_of_text):
15676         (end_of_data): Do not compile in if using PDUMP.
15677
15678         * symsinit.h: Prototyped vars_of_nt().
15679
15680         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15681         (find_child_console): Use it.
15682         (sys_kill): Use it.
15683
15684         * ntheap.h: Do not extern os_subtype.
15685
15686         * ntheap.c (cache_system_info): Do not cache unneeded:
15687         nt_major_version, nt_minor_version and os_subtype.
15688         (recreate_heap): Do not compile in when PDUMPing.
15689
15690         * nt.c (geteuid and friends): Use the new varibale
15691         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15692         (init_user_info): Removed the above mentioned hackery.
15693         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15694         stat has been fixed in the C runtime.
15695         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15696
15697         * file-coding.c (struct file_coding_dump): Do not define
15698         ucs_to_mule_table in the struct if not MULE.
15699         (struct struct lrecord_description fcd_description_1): Do not dump
15700         the above.
15701
15702         * emacs.c (main_1): Call vars_of_nt().
15703         (right before Fdump_emacs_data): Don't need lastfile if using both
15704         portabe dumper and system malloc.
15705
15706         * alloc.c (Fmemory_limit): Conditionalized out.
15707         (pdump): Use OPEN_BINARY for the portable dump file.
15708         (pdump_load): Ditto.
15709
15710 2000-02-02  Mike Alexander  <mta@arbortext.com>
15711
15712         * nt.c (convert_time): Set tm_isdst before calling mktime and
15713         avoid calling it at all if the compiler supports 64 bit integers.
15714         Also initialize utc_base_ft before using it.
15715
15716 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15717
15718         * frame.c (change_frame_size_1): Take f->internal_border_width
15719         into consideration when calculating the width of the frame.
15720
15721 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15722
15723         * window.c (frame_min_height):
15724         (frame_size_valid_p):
15725         (frame_pixsize_valid_p): Added.
15726         (check_frame_size): Generalized.
15727
15728         * window.h: Prototyped the above.
15729
15730         * lisp.h:
15731         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15732         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15733         Deleted Vwin32_* and Vbinary_process_* unused variables.
15734
15735         * device-msw.c (msprinter_init_device): Do not get printer font
15736         list; Added DEVMODE functions.
15737
15738         * frame-msw.c: Added lots of printer code.
15739
15740         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15741         general.c.
15742
15743         * console-msw.h: Added more msprinter device private slots.
15744
15745 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15746
15747         * event-msw.c (key_needs_default_processing_p): Added.
15748         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15749
15750 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15751
15752         * glyphs.c (image_instance_layout): Mark image instance as clean
15753         after layout.
15754         (glyph_dirty_p): Removed redundant function.
15755         (invalidate_glyph_geometry_maybe): Added.
15756         (update_glyph_cachel_data): Call it.
15757
15758         * glyphs.h: Prototyped it.
15759
15760         * redisplay.c (add_glyph_rune): Call it.
15761         (redisplay_window): Reset glyphs cachels when frame faces have
15762         changed, thus forcing recomputation of built-in border glyphs.
15763
15764 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15765
15766         * Makefile.in.in: Make portable dumper and purify play well together.
15767         Add imperfect, but better than nothing, support for pdump.
15768         Remove xemacs.dmp when temacs is re-generated.
15769         Don't ignore errors when dumping xemacs.
15770
15771         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15772
15773 2000-01-28  Andy Piper  <andy@xemacs.org>
15774
15775         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15776         (setup_normal_frame): ditto.
15777         (setup_frame_without_minibuffer): ditto.
15778         (setup_minibuffer_frame): ditto.
15779         (delete_frame_internal): ditto.
15780         (Fmake_frame_invisible): ditto.
15781         (Ficonify_frame): ditto.
15782
15783         * window.h: change Fset_window_buffer signature.
15784
15785         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15786         (Fset_window_buffer): allow recording of buffer if the window is
15787         the selected window.
15788         (window_loop): Use new Fset_window signature.
15789
15790 2000-01-23  Daniel Pittman  <daniel@danann.net>
15791
15792         * config.h.in: Added template for `HAVE_ATHENA_3D'
15793
15794 2000-01-29  Andy Piper  <andy@xemacs.org>
15795
15796         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15797
15798         * gutter.c (output_gutter): Don't output if the window isn't live.
15799
15800 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15801
15802         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15803         of 01/12/00: Moved SetFocus back here where it belongs.
15804
15805 2000-01-23  Andy Piper  <andy@xemacs.org>
15806
15807         * s/cygwin32.h: declare printer things.
15808
15809 2000-01-26  Andy Piper  <andy@xemacs.org>
15810
15811         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15812         Alexander.
15813
15814 2000-01-24  Andy Piper  <andy@xemacs.org>
15815
15816         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15817         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15818
15819         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15820
15821         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15822
15823         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15824
15825         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15826         (mswindows_output_display_block): Avoid local shadows.
15827
15828         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15829         (mswindows_enqueue_mouse_button_event): ditto.
15830         (mswindows_handle_gui_wm_command): remove declaration.
15831
15832         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15833         warnings.
15834
15835         * console-msw.h: Avoid shadows.
15836         (mswindows_get_toolbar_button_text):
15837         (emacs_mswindows_create_stream_pair):
15838         (emacs_mswindows_delete_stream_pair):
15839         (mswindows_handle_toolbar_wm_command): declare.
15840
15841         * device-msw.c (build_syscolor_string): Avoid shadows.
15842
15843 2000-01-23  Andy Piper  <andy@xemacs.org>
15844
15845         * glyphs-widget.c (widget_instantiate): reverse the items for
15846         layouts so that children are in the expected order.
15847
15848 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15849
15850         * ralloc.c: safe_bcopy ==> memmove
15851         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15852         * s/msdos.h: Remove BCOPY macros.
15853         * insdel.c (gap_right): Remove BCOPY conditional code.
15854         * insdel.c (gap_left): Remove BCOPY conditional code.
15855         XEmacs demands a working ANSI C compiler - hence memmove.
15856
15857         * regex.c (regex_compile): Remove accidental use of trigraphs.
15858
15859 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15860
15861         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15862         event timestamp.
15863
15864 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15865
15866         * event-msw.c (mswindows_drain_windows_queue): Added the
15867         parameter.
15868         (mswindows_need_event): Commented the call to
15869         mswindows_drain_windows_queue().
15870         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15871         only.
15872
15873         * console-msw.h: Moved a few function prototypes here from
15874         event-msw.c.
15875
15876         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15877         parameter from unsigned short to unsigned long.
15878         (Fmswindows_shell_execute): Added return value.
15879
15880 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15881
15882         * sysdep.c (init_system_name):
15883           process-unix.c (unix_canonicalized_host_name):
15884         Don't call freeaddrinfo() if getaddrinfo() fails.
15885
15886         * process-unix.c (unix_open_unix_network_stream):
15887         Moved the code to get a port # into address loop.
15888
15889 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15890
15891         * buffer.c (reinit_vars_of_buffer):
15892         The right place to initialize conversion_in_dynarr and
15893         conversion_out_dynarr.
15894
15895         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15896
15897         * process-unix.c (unix_canonicalize_host_name): Muleize.
15898         (unix_open_network_stream): Muleize.
15899
15900         * buffer.h: Fix up prototypes for ralloc.c functions.
15901
15902 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15903         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15904         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15905                 instead of gethostbyname()
15906         * process-unix.c: In unix_canonicalize_host_name() and
15907                 unix_open_network_stream(), add code to use getaddrinfo()
15908                 instead of gethostbyname().
15909
15910 2000-01-27  Daniel Pittman <daniel@danann.net>
15911
15912         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15913         libs when built with flat Athena.
15914
15915 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15916
15917         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15918         Use coding standards for function prototypes.
15919
15920 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15921
15922         * dialog-msw.c (push_lisp_string_as_unicode):
15923         * doc.c (unparesseuxify_doc_string):
15924         * dired.c (Fuser_name_completion_1):
15925         * dired.c (Fuser_name_all_completions):
15926         * dired.c (free_user_cache):
15927         * dired.c (user_name_completion):
15928         * console-x.c (get_display_arg_connection):
15929         * minibuf.c (clear_echo_area_internal):
15930         * minibuf.c (echo_area_append):
15931         * eldap.c (Fldap_open):
15932         * eldap.c (Fldap_search_internal):
15933         * frame-x.c (x_set_frame_text_value):
15934         * frame-x.c (x_set_frame_properties):
15935         * frame-x.c (x_create_widgets):
15936         * redisplay-tty.c (term_get_fkeys_1):
15937         * objects-x.c (x_parse_nearest_color):
15938         * objects-x.c (x_valid_color_name_p):
15939         * objects-x.c (x_initialize_font_instance):
15940         * objects-x.c (x_list_fonts):
15941         * objects-x.c (x_find_charset_font):
15942         * tooltalk.c (Fadd_tooltalk_message_arg):
15943         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15944         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15945         * process-unix.c (unix_create_process):
15946         * ntproc.c (sys_spawnve):
15947         * sound.c (Fplay_sound_file):
15948         * sound.c (Fplay_sound):
15949         * buffer.c (init_initial_directory):
15950         * buffer.c (init_buffer):
15951         * editfns.c (init_editfns):
15952         * editfns.c (Ftemp_directory):
15953         * editfns.c (Fuser_full_name):
15954         * editfns.c (uncache_home_directory):
15955         * editfns.c (get_home_directory):
15956         * editfns.c (Fuser_home_directory):
15957         * editfns.c (Fformat_time_string):
15958         * editfns.c (Fcurrent_time_string):
15959         * gui-x.c (button_item_to_widget_value):
15960         * database.c (Fopen_database):
15961         * event-Xt.c (x_to_emacs_keysym):
15962         * event-Xt.c (x_event_to_emacs_event):
15963         * event-Xt.c (describe_event_window):
15964         * event-msw.c (mswindows_wnd_proc):
15965         * glyphs-eimage.c (jpeg_instantiate):
15966         * glyphs-eimage.c (gif_instantiate):
15967         * glyphs-eimage.c (png_instantiate):
15968         * glyphs-eimage.c (tiff_instantiate):
15969         * glyphs-x.c (xbm_instantiate_1):
15970         * glyphs-x.c (x_xbm_instantiate):
15971         * glyphs-x.c (x_xface_instantiate):
15972         * glyphs-x.c (autodetect_instantiate):
15973         * glyphs-x.c (cursor_font_instantiate):
15974         * glyphs-x.c (x_widget_instantiate):
15975         * glyphs-x.c (x_widget_set_property):
15976         * glyphs-x.c (x_widget_property):
15977         * glyphs-x.c (BUILD_GLYPH_INST):
15978         * print.c (write_string_to_stdio_stream):
15979         * print.c (output_string):
15980         * print.c (Falternate_debugging_output):
15981         * print.c (Fexternal_debugging_output):
15982         * glyphs-msw.c (extract_xpm_color_names):
15983         * glyphs-msw.c (mswindows_xpm_instantiate):
15984         * glyphs-msw.c (bmp_instantiate):
15985         * glyphs-msw.c (resource_name_to_resource):
15986         * glyphs-msw.c (mswindows_resource_instantiate):
15987         * glyphs-msw.c (xbm_instantiate_1):
15988         * glyphs-msw.c (mswindows_xbm_instantiate):
15989         * glyphs-msw.c (mswindows_xface_instantiate):
15990         * glyphs-msw.c (mswindows_widget_instantiate):
15991         * glyphs-msw.c (add_tree_item):
15992         * glyphs-msw.c (add_tab_item):
15993         * glyphs-msw.c (mswindows_combo_box_instantiate):
15994         * glyphs-msw.c (mswindows_widget_property):
15995         * glyphs-msw.c (mswindows_combo_box_property):
15996         * glyphs-msw.c (mswindows_widget_set_property):
15997         * console.c (stuff_buffered_input):
15998         * objects-msw.c (mswindows_initialize_color_instance):
15999         * objects-msw.c (mswindows_valid_color_name_p):
16000         * objects-msw.c (mswindows_list_fonts):
16001         * objects-msw.c (mswindows_font_instance_truename):
16002         * bytecode.c (optimize_compiled_function):
16003         * select-x.c (symbol_to_x_atom):
16004         * select-x.c (x_atom_to_symbol):
16005         * select-x.c (hack_motif_clipboard_selection):
16006         * select-x.c (selection_data_to_lisp_data):
16007         * select-x.c (lisp_data_to_selection_data):
16008         * select-x.c (Fx_get_cutbuffer_internal):
16009         * select-x.c (Fx_store_cutbuffer_internal):
16010         * buffer.h (TO_EXTERNAL_FORMAT): New function.
16011         * buffer.h (TO_INTERNAL_FORMAT): New function.
16012         * emacs.c (make_arg_list_1):
16013         * emacs.c (make_argc_argv):
16014         * emacs.c (main_1):
16015         * emacs.c (Fdump_emacs):
16016         * emacs.c (split_string_by_emchar_1):
16017         * file-coding.h:
16018         * lisp.h:
16019         * lstream.h:
16020         * symsinit.h:
16021         * device-x.c (x_init_device):
16022         * device-x.c (Fx_valid_keysym_name_p):
16023         * device-x.c (Fx_get_font_path):
16024         * device-x.c (Fx_set_font_path):
16025         * glyphs.c (bitmap_to_lisp_data):
16026         * glyphs.c (pixmap_to_lisp_data):
16027         * alloc.c (make_ext_string): Use coding system arguments.  Update
16028         all callers.
16029         * alloc.c (build_string):
16030         * callproc.c (child_setup):
16031         * callproc.c (init_callproc):
16032         * fileio.c (lisp_strerror):
16033         * fileio.c (directory_file_name):
16034         * fileio.c (Fexpand_file_name):
16035         * fileio.c (Ffile_truename):
16036         * fileio.c (Fsysnetunam):
16037         * fileio.c (Fdo_auto_save):
16038         * sysdep.c (sys_readdir):
16039         * tests.c: New file.  Allow adding C tests.
16040         Replace GET_* macros with a more comprehensible and flexible
16041         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
16042         Modify all calls.
16043         Any coding system can be used to do format conversion.
16044         Eliminate enum external_data_format.
16045         Eliminate convert_to_external_format.
16046         Eliminate convert_to_internal_format.
16047         Make sure file-name, keyboard, terminal, and ctext are always
16048         defined as coding systems or aliases.  Make
16049         file-name-coding-system, terminal-coding-system, and
16050         keyboard-coding-system magical variables that are equivalent to
16051         defining the corresponding coding system aliases.
16052
16053         * file-coding.c (Fcoding_system_canonical_name_p): New function.
16054         * file-coding.c (Fcoding_system_alias_p): New function.
16055         * file-coding.c (Fcoding_system_aliasee): New function.
16056         * file-coding.c (append_suffix_to_symbol): New function.
16057         * file-coding.c (dangling_coding_system_alias_p): New function.
16058         * file-coding.c (Ffind_coding_system):
16059         * file-coding.c (Fcopy_coding_system):
16060         * file-coding.c (encode_coding_no_conversion):
16061         * file-coding.c (syms_of_file_coding):
16062         * file-coding.c (vars_of_file_coding):
16063         Rewrite coding system alias code.
16064         Allow nested aliases, like symbolic links.
16065         Allow redefinition of coding system aliases.
16066         Prevent existence of dangling coding system aliases.
16067
16068         * dired.c (Fuser_name_completion_1):
16069         * dired.c (Fuser_name_all_completions):
16070         A crash would happen if user did QUIT in the middle of building
16071         user_name_cache.  Remove redundant code in mainline and unwind_protect.
16072
16073         * lisp.h:
16074         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
16075
16076         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
16077         an unsigned char *.  Update all callers.
16078
16079 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16080
16081         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
16082
16083 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16084
16085         * elhash.c (hentry_description): Use more portable definition.
16086         (resize_hash_table): Initialize new hentries using
16087         xnew_array_and_zero, thereby simplifying the code.
16088
16089         * mule-charset.c (make_charset): Make sure entire object is
16090         initialized, to avoid Purify warnings.
16091
16092         * alloc.c (resize_string): Fix unlikely crash with big strings.
16093
16094 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16095
16096         * realpath.c (xrealpath):
16097         Don't call getwd().
16098
16099 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16100
16101         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
16102
16103 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
16104
16105         * unexelfsgi.c (unexec): Change the way we decide which segment
16106         should be extended.
16107
16108         Assumption that .bss section should be outside the PT_LOADable
16109         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
16110         it's present) is inside the 'data' segment. This would fail the
16111         test which was used to find a segment to grow and cover new
16112         heap. Instead of this assumption, I created another one - on IRIX
16113         the segment to grow should start below .bss and it's address
16114         should extent above the end of .bss. Once this segment is
16115         identified, it's grown to accommodate the new heap and new
16116         zero-length .bss section is added at the end of .data2.
16117
16118 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16119
16120         * eval.c (Feval): Wrong number of arguments should use original
16121         function, not the indirect_function version of it.
16122
16123 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
16124
16125         * glyphs-x.c (x_button_instantiate): Don't add image if
16126         it is not a pixmap.
16127         (x_locate_pixmap_file): Call Fexpand_file_name when file name
16128         is relative.
16129
16130 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
16131
16132         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
16133         declaration.
16134         (DEFVAR_INT_MAGIC): Ditto.
16135         (DEFVAR_BOOL_MAGIC): Ditto.
16136         * glyphs.h: Reindent backslash.
16137
16138 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16139
16140         * glyphs-widget.c (layout_query_geometry):
16141         (layout_layout): Use correct types for gheight, gwidth.
16142
16143 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16144
16145         * EmacsManager.c (QueryGeometry): Purified.
16146
16147 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16148
16149         * alloc.c (make_float): Make sure entire object is initialized, to
16150         avoid Purify warnings.
16151         (pdump_register_sub): Remove useless assignment.
16152         (pdump): Use xmalloc, not malloc.
16153         (pdump_load): Use xmalloc, not malloc.
16154
16155 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16156
16157         * callproc.c:
16158         * dired-msw.c:
16159         * fileio.c:
16160         * process-nt.c:
16161         * redisplay-msw.c:
16162         * sysdep.c: Removed redundant #include <windows.h>
16163
16164 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16165
16166         * frame.c (delete_frame_internal): Do not delete device when its
16167         implementation so declares.
16168         (delete_frame_internal): Set device selected frame to nil when
16169         last frame goes away.
16170
16171         * device-msw.c (msprinter_device_system_metrics): Implemented.
16172         (mswindows_device_system_metrics): Added 'device-dpi property.
16173
16174         * device.c: (Fdevice_printer_p): Added.
16175         Added 'offset-workspace device metric.
16176
16177         * console.h (device_metrics): Declared DM_offset_workspace.
16178
16179 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16180
16181         * fileio.c (Ffile_truename): Remove pointless and confusing
16182         initialization of elen.
16183
16184         * glyphs-widget.c: Compiler warning fixes.
16185
16186 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
16187
16188         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
16189         instead of a Lisp_Object as argument to make it consistent with
16190         the other LIVE_P macros.
16191         (CHECK_LIVE_PROCESS): New macro.
16192
16193         * process.c: Declare Qprocess_live_p.
16194         (Fprocess_live_p): New function.
16195         (create_process): Use PROCESS_LIVE_P.
16196         (read_process_output): Ditto.
16197         (set_process_filter): Ditto.
16198         (Fdelete_process): Ditto.
16199         (kill_buffer_processes): Ditto
16200         (process_send_signal): Use CHECK_LIVE_PROCESS.
16201         (Fprocess_input_coding_system): Check whether process is still
16202         alive (fix PR#1061).
16203         (Fprocess_output_coding_system): Ditto.
16204         (Fprocess_coding_system): Ditto.
16205         (Fset_process_input_coding_system): Ditto.
16206         (Fset_process_output_coding_system): Ditto.
16207
16208 2000-01-23  Andy Piper  <andy@xemacs.org>
16209
16210         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
16211         layout and widget.
16212
16213         * glyphs.c (mark_image_instance): take into account changed
16214         image_instance format.
16215         (image_instance_equal): ditto.
16216         (image_instance_hash): ditto.
16217
16218         * glyphs-widget.c (widget_instantiate): Incorporate layout
16219         instantiation here. Delay layout of the layout until later.
16220         (layout_instantiate): deleted.
16221         (layout_query_geometry): new function. get the geometry of a
16222         layout.
16223         (layout_layout): layout a layout dynamically.
16224         (image_instantiator_widget): New function - splitting up
16225         image_instantiator_format_create_glyphs_widget for netwinder
16226         compilation.
16227         (image_instantiator_buttons):
16228         (image_instantiator_edit_fields):
16229         (image_instantiator_combo_box):
16230         (image_instantiator_scrollbar):
16231         (image_instantiator_progress_guage):
16232         (image_instantiator_tree_view):
16233         (image_instantiator_tab_control):
16234         (image_instantiator_labels):
16235         (image_instantiator_layout): ditto.
16236         (image_instantiator_format_create_glyphs_widget): Call preceding
16237         functions.
16238
16239 2000-01-22  Martin Buchholz  <martin@xemacs.org>
16240
16241         * process.c (Fset_process_coding_system):
16242         * device-x.c (Fx_keysym_hash_table):
16243         Docstring fixes.
16244
16245         * lstream.c (Lstream_write): Return documented value, not 0.
16246
16247         * fileio.c (directory_file_name):
16248         (Fsubstitute_in_file_name):
16249         (Fsubstitute_insert_file_contents_internal):
16250         (Fwrite_region_internal):
16251         * emacs.c:
16252         * sysdep.c:
16253         * getloadavg.c:
16254         * systty.h:
16255         Remove vestigial APOLLO-conditional code.
16256
16257 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16258
16259         * getpagesize.h: Add guard macros.
16260         * libsst.h: Add guard macros.
16261         * libst.h: Add guard macros.
16262         * line-number.h: Add guard macros.
16263         * ndir.h: Add guard macros.
16264         * sysfloat.h: Add guard macros.
16265         * sysfile.h: Add guard macros.
16266         * sysproc.h: Add guard macros.
16267         * syswait.h: Add guard macros.
16268         * xintrinsic.h: Add guard macros.
16269         * xintrinsicp.h: Add guard macros.
16270         * xmmanager.h: Add guard macros.
16271         * xmmanagerp.h: Add guard macros.
16272         * xmprimitive.h: Add guard macros.
16273         * xmu.h: Add guard macros.
16274         * gpmevent.h: Add copyright statement. Add guard macros.
16275         * miscplay.h: Add guard macros.
16276         * *.h: Use consistent C-standards-approved guard macro names.
16277
16278         * opaque.c (make_opaque): Switch parameter order.
16279         * opaque.h (make_opaque): Switch parameter order.
16280         Update all callers.
16281         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
16282
16283         * config.h.in (type_checking_assert): Added.
16284         (bufpos_checking_assert): Added.
16285
16286 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16287
16288         * alloc.c: Harmless pdump changes.
16289         - Use countof().
16290         - spell alignment correctly.
16291         * sysdep.c: Use countof()
16292
16293 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16294
16295         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
16296         initially_selected_for_input() console method, default to 0.
16297         (semi_canonicalize_console_connection): Try to delegate to
16298         canonicalize_console_connection if no such console method.
16299         (canonicalize_console_connection): Vice versa.
16300         (print_console): Do not print nil connection.
16301
16302         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
16303         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
16304         (XDEVIMPF_FRAMELESS_OK): Added.
16305         (CONSOLE_INHERITS_METHOD): Added.
16306
16307         * console-msw.c (mswindows_canonicalize_console_connection):
16308         Added.
16309         (mswindows_canonicalize_device_connection): Added.
16310
16311         * console-msw.h (struct msprinter_device): Added this struct and
16312         accessor macros.
16313         (mswindows_device): Made fontlist a lisp object.
16314
16315         * device.c (semi_canonicalize_device_connection):  Try to delegate
16316         to canonicalize_device_connection if no such console method.
16317         (canonicalize_device_connection): Vice versa.
16318         (print_device): Do not print nil connection.
16319
16320         * device-msw.c (mswindows_init_device): Call InitCommonControls
16321         when have widgets.
16322         (mswindows_delete_device): Removed fontlist deallocation.
16323         (mswindows_mark_device): Added.
16324
16325         * events.c (event_equal): Added abort() at unreached code.
16326         (event_hash): Ditto.
16327
16328         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
16329         fallback tags of Windows devices.
16330
16331         * general.c (syms_of_general): Initialized Qmsprinter.
16332
16333         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
16334         of fallback tags of Windows devices.
16335
16336         * lisp.h: Declared Qmsprinter.
16337
16338         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
16339         of strings.
16340         (mswindows_list_fonts): Ditto.
16341         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
16342         that it can be used by both mswindows and msprinter devices.
16343         (initialize_font_instance): Added.
16344         (mswindows_initialize_font_instance): Use it.
16345         (msprinter_initialize_font_instance): Added.
16346
16347         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
16348         and implementation flags check.
16349         (redisplay_without_hooks): Changed the call to the above.
16350         (Fredraw_device): Ditto.
16351         (Fredisplay_device): Ditto.
16352
16353         * redisplay-msw.c (get_frame_dc): Implemented.
16354         (get_frame_compdc): Implemented.
16355         (many functions): Use the two functions above to get device
16356         contexts, ether for a window or a printer.
16357
16358 2000-01-21  Olivier Galibert  <galibert@pobox.com>
16359
16360         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
16361         initialization here.
16362         (init_symbols_once_early): Call it.
16363         * emacs.c (main_1): Call it.
16364         * symsinit.h: Declare it.
16365
16366 2000-01-19  Olivier Galibert  <galibert@pobox.com>
16367
16368         * alloc.c: Use a lrecord_header * in the backtrace instead of a
16369         Lisp_Object.
16370         (pdump_backtrace): Ditto.
16371         (pdump_register_object): Ditto.  Cleanup use of the pointers.
16372         (pdump_get_entry): Abort if trying to register a null pointer.
16373         (pdump_dump_data): Cleanup types when relocating.
16374         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
16375         (pdump_dump_rtables): Remove bad casts.
16376         (pdump_load): Cleanup relocation w.r.t union type.  Use a
16377         Lisp_Object instead of a EMACS_INT for the hashtable
16378         reorganization.
16379
16380 2000-01-20  Martin Buchholz  <martin@xemacs.org>
16381
16382         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
16383
16384         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
16385
16386         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
16387
16388         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
16389
16390 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16391
16392         * faces.h (FACE_STRIKETHRU_P): Added.
16393
16394         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
16395         of font variants.
16396
16397         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
16398         (mswindows_set_dc_font): New function, aware of font variants,
16399         separated from mswindows_update_dc.
16400
16401         * objects-msw.h (struct mswindows_font_instance_data): Added
16402         definition.
16403
16404         * objects-msw.c (mswindows_finalize_font_instance): Delete all
16405         cached fonts and the data structure.
16406         (mswindows_initialize_font_instance): Added creation of font data
16407         structure.
16408         (mswindows_print_font_instance): Print at least something.
16409         (mswindows_create_font_variant): Implemented.
16410         (mswindows_get_hfont): Implemented.
16411
16412 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
16413
16414         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
16415         prototyping problem with msvc.
16416
16417         * emacs.c (main_1): added syms_of_gui_mswindows() call
16418
16419         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
16420         syms_of_gui_mswindows() function
16421
16422         * symsinit.h: added the prototype for syms_of_gui_mswindows()
16423
16424 2000-01-18  Martin Buchholz <martin@xemacs.org>
16425
16426         * XEmacs 21.2.27 is released.
16427
16428 2000-01-18  Martin Buchholz  <martin@xemacs.org>
16429
16430         * glyphs-eimage.c (struct tiff_error_struct):
16431         (tiff_error_func):
16432         (tiff_warning_func):
16433         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16434
16435         * unexmips.c:
16436         * unexhp9k3.c:
16437         * unexfreebsd.c:
16438         * unexec.c: Remove vestigial Lucid C code.
16439         * unexalpha.c:
16440         * unexaix.c:
16441         * termcap.c:
16442         * libsst.c: Ansify.
16443         Remove declarations of errno and strerror().
16444
16445         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16446
16447         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16448
16449 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16450
16451         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16452         Optimize.
16453
16454 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16455
16456         * md5.c:
16457         * file-coding.c:
16458         * file-coding.h:
16459         Change enum eol_type to eol_type_t.
16460
16461 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16462
16463         * gui.c (get_gui_callback): Check cons before accessing car.
16464
16465 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16466
16467         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16468         (XSETSPECIFIER_TYPE): Ditto.
16469
16470 2000-01-17  Didier Verna  <didier@xemacs.org>
16471
16472         * redisplay.c (generate_fstring_runes): compute string size in
16473         characters, not bytes.
16474
16475 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16476
16477         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16478
16479 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16480
16481         * print.c (print_error_message): Call print_prepare().
16482
16483 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16484
16485         * .dbxrc: Renamed from dbxrc.
16486
16487         * events.c (event_to_character):
16488         Use `assert (foo)' instead of `if (!foo) abort()'
16489
16490         * .gdbinit (xtype): Add documentation.
16491         * .gdbinit (check-temacs): New function.
16492         * .gdbinit (check-xemacs): New function.
16493         * dbxrc (check-xemacs): New function.
16494         * dbxrc (check-xemacs): New function.
16495
16496 2000-01-14  Andy Piper  <andy@xemacs.org>
16497
16498         * glyphs-widget.c (widget_query_geometry): Make sure that we
16499         calculate default dimensions correctly.
16500
16501 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16502
16503         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16504
16505         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16506         pdump_wire'd variable.
16507
16508         * emacs.c: (main_1): Conditionalized calls to
16509         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16510
16511 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16512
16513         * window.c (Fset_window_configuration):
16514         * sysdep.c (_start):
16515         * input-method-motif.c (res):
16516         * event-Xt.c (Xt_process_to_emacs_event):
16517         Simple compiler warning fixes.
16518
16519         * bytecode.c (funcall_compiled_function): Use the original
16520         function symbol on the backtrace list in preference to the
16521         compiled_function object in error messages.
16522
16523 2000-01-13  Andy Piper  <andy@xemacs.org>
16524
16525         * glyphs-x.c (update_widget_face): Make sure we update the widget
16526         background as well as foreground.
16527
16528 2000-01-13  Andy Piper  <andy@xemacs.org>
16529
16530         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16531         fields to subwindow.
16532         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16533         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16534         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16535         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16536
16537         * glyphs-widget.c (check_valid_tab_orientation): new function.
16538         (initialize_widget_image_instance): zero orientation and
16539         justification.
16540         (widget_instantiate): pick up orientation.
16541         (tab_control_query_geometry): return appropriate values for
16542         vertical tabs.
16543
16544         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16545         appropriate creation flags for left, right and bottom tabs.
16546
16547         * s/cygwin32.h: add tab definitions.
16548
16549 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16550
16551         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16552         frame upon hiding a subwindow.
16553         (mswindows_button_instantiate): Changed the push button style to
16554         BS_PUSHBUTTON.
16555         (mswindows_button_instantiate): Removed button BS_NOTIFY
16556         style.
16557         (mswindows_button_instantiate): Removed redundant check for
16558         a disabled gui item.
16559         (mswindows_button_instantiate): Made use of WS_TABSTOP
16560         consistent: "operable" controls (edit, button, tree, scroll) have
16561         this style, "display-only" ones (static, progress gauge) do
16562         not. This style is currently ignored by XEmacs though. Also,
16563         removed the WS_EX_CONTROLPARENT style - it is not for children,
16564         it is for their parents!
16565         (mswindows_edit_field_instantiate): Ditto.
16566         (mswindows_progress_gauge_instantiate): Ditto.
16567         (mswindows_tree_view_instantiate): Ditto.
16568         (mswindows_tab_control_instantiate): Ditto.
16569         (mswindows_scrollbar_instantiate): Ditto.
16570         (mswindows_combo_box_instantiate): Ditto.
16571         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16572         style to the "clip" window.
16573         (mswindows_button_instantiate): Removed compilation warning by
16574         equally typing terms of the ?: operator.
16575
16576 2000-01-12  Didier Verna  <didier@xemacs.org>
16577
16578         * redisplay.c (generate_fstring_runes): new parameter holding the
16579         last modeline-format extent.
16580         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16581         extent, fill the glyph block with it.
16582         (generate_fstring_runes): handle these parameters.
16583         (generate_formatted_string_db): ditto.
16584
16585         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16586         glyphs'extents in the modeline.
16587
16588 1999-01-11  Mike Woolley  <mike@bulsara.com>
16589
16590         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16591         256Mb, as a workaround for the non-starting problem many people
16592         have experienced.
16593
16594 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16595
16596         * console-tty.c (Fset_console_tty_output_coding_system):
16597         Force redrawing tty frame.
16598
16599 2000-01-10  Didier Verna  <didier@xemacs.org>
16600
16601         * redisplay.c (generate_fstring_runes): fix size computation bug.
16602
16603 2000-01-09  William M. Perry <wmperry@aventail.com>
16604
16605         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16606
16607 2000-01-09  Andy Piper  <andy@xemacs.org>
16608
16609         * glyphs-msw.c: index -> i to avoid shadows.
16610         (xbm_create_bitmap_from_data): make static.
16611         (check_valid_string_or_int): deleted.
16612         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16613
16614         * glyphs-x.c (x_update_subwindow): remove unused args.
16615
16616         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16617         back pointer - this is done in allocate_image_instance.
16618         (query_string_font): return Qnil to make the compiler happy.
16619         (unmap_subwindow): set to ~0 to make the compiler happy.
16620         (glyph_query_geometry): comment out until used.
16621         (glyph_layout): ditto.
16622
16623 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16624
16625         * insdel.c (signal_after_change): Remove extraneous unbind_to().