96084eb2edf9a4f1eb18c594c10ea883b31a8ee9
[chise/xemacs-chise.git] / src / ChangeLog
1 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * text-coding.c (char_encode_as_entity_reference): Allow prefix
4         within 8 characters; fix infinite loop.
5
6 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
7
8         * chartab.c (Q_same): New variable.
9         (Q_same_of): New variable.
10         (Fput_char_attribute): Convert char-refs in value of `{->|<-}same'
11         to characters and put reverse links.
12         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
13         for `{->|<-}same'.
14         (syms_of_chartab): Add new symbols `{->|<-}same'.
15
16 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
17
18         * chartab.c (Q_component): New variable.
19         (Q_component_of): Likewise.
20         (Fput_char_attribute): Convert char-refs in value of
21         `{->|<-}ideographic-component-forms' to characters and put reverse
22         links.
23         (syms_of_chartab): Add new symbols
24         `{->|<-}ideographic-component-forms'.
25
26 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
27
28         * chartab.c (Q_identical): New variable.
29         (Q_identical_from): New variable.
30         (Fchar_feature): Regard `->identical' as a feature to find
31         ancestors.
32         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
33         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
34         for `{->|<-}identical'.
35         (syms_of_chartab): Add new symbols `{->|<-}identical'.
36
37 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
38
39         * char-ucs.h (encode_char_2): New inline function.
40         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
41
42 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
43
44         * chartab.c (Fput_char_attribute): Convert char-specs to
45         characters in value of `ideographic-structure'.
46         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
47         for `{<-|->}simplified(@...)'.
48         (Fdefine_char): bTry to use predefined character's id.
49
50 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
51
52         * fns.c (simplify_char_spec): Try to convert builtin chars to
53         defined chars.
54
55 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
56
57         * chartab.c (Fput_char_attribute): Convert char-refs in value of
58         `<-simplified[^*]*' to characters and put reverse links.
59
60 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
61
62         * chartab.c (Q_subsumptive): Renamed from Q_unified.
63         (Q_subsumptive_from): Renamed from Q_unified_from.
64         (Fchar_feature): Use `Q_subsumptive_from' instead of
65         `Q_unified_from'.
66         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
67         `Q_unified'.
68         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
69         `<-unified' to `<-subsumptive'.
70
71 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
72
73         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
74         inheritance itself; fix typo; stop recursive search if cyclic
75         inheritance is found.
76
77 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
78
79         * chartab.c (Q_denotational): New variable.
80         (Q_denotational_from): New variable.
81         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
82         (put_char_attribute): New function.
83         (Fput_char_attribute): Use `put_char_attribute'; regard
84         `->denotational' and `<-denotational' as same as `->unified' and
85         `<-unified'.
86         (syms_of_chartab): Add new symbols `->denotational' and
87         `<-denotational'.
88
89 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
90
91         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
92         `Fget_char_attribute'.
93         (Fchar_variants): Likewise.
94         (get_char_table): Likewise.
95         (Fchar_feature): New function.
96         (put_char_composition): Use `Fchar_feature' instead of
97         `Fget_char_attribute'.
98         (Fput_char_attribute): Likewise; don't put the target character
99         into its `->unified' value.
100         (syms_of_chartab): Add new builtin function `char-feature'.
101
102 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
103
104         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
105         `Fget_char_attribute'.
106         (char_encode_utf8): Likewise.
107
108         * chartab.h: Add an EXFUN for `Fchar_feature'.
109
110 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
111
112         * chartab.c (Vnext_defined_char_id): New variable.
113         (Fput_char_attribute): Accept characters in `->unified'.
114         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
115         new characters which are not related with builtin char-id ranges.
116         (vars_of_chartab): Add new variable `next-defined-char-id'.
117
118 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
119
120         * chartab.c (Q_unified): New variable.
121         (Q_unified_from): New variable.
122         (Fput_char_attribute): Add code for `->unified'.
123         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
124         XEmacs CHISE.
125
126 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
127
128         * mule-charset.c (decode_ccs_conversion): New function.
129         (decode_defined_char): Use `decode_ccs_conversion'.
130         (decode_builtin_char): Likewise.
131
132 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
133
134         * char-ucs.h: Change some charset-ids of private coded-charsets.
135
136 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
137
138         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
139         (char_encode_as_entity_reference): Likewise.
140         (decode_coding_big5): Modify for `decode_defined_char' and
141         `DECODE_CHAR'.
142         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
143         avoid compiler warning.
144         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
145
146         * mule-charset.c (decode_defined_char): Add new argument
147         `without_inheritance'.
148         (Fdecode_char): Add new optional argument `without_inheritance'.
149         (Fdecode_builtin_char): Modify for `Fdecode_char'.
150
151         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
152         (simplify_char_spec): Likewise.
153
154         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
155         setting.
156
157         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
158         (map_char_table): Likewise.
159         (Fdefine_char): Use `Fdecode_char' without inheritance.
160         (Ffind_char): Modify for `Fdecode_char'.
161
162         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
163
164         * char-ucs.h (decode_defined_char): Add new argument
165         `without_inheritance'.
166         (DECODE_CHAR): Likewise.
167         (MAKE_CHAR): Modify for `DECODE_CHAR'.
168
169 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
170
171         * chartab.c (Vchise_system_db_directory): New variable.
172         (vars_of_chartab): Add new variable `chise-system-db-directory'.
173
174 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
175
176         * chartab.c: EXFUN `Fmount_char_attribute_table'.
177         (print_chartab_range): Don't define when `UTF2000' is defined.
178         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
179         `CHISE_DS_open'.
180
181 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
182
183         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
184         and optional argument `rehash' is specified, call
185         `open_chise_data_source_maybe' before
186         `chise_ds_foreach_char_feature_name' is called.
187
188 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
189
190         * chartab.c (char_attribute_list_reset_map_func): New function
191         when HAVE_LIBCHISE is defined.
192         (Fchar_attribute_list): Add new optional argument `rehash' when
193         HAVE_LIBCHISE is defined.
194         (open_chise_data_source_maybe): Use "chise-db" instead of
195         "char-db".
196         (char_attribute_system_db_file): Likewise.
197         (Fload_char_attribute_table): Use
198         `chise_feature_foreach_char_with_value' instead of
199         `chise_char_feature_value_iterate'.
200
201 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
202
203         * chartab.c (Vchise_db_directory): New variable.
204         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
205
206 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
207
208         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
209         instead of HAVE_CHISE to specify using with libchise.
210
211         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
212
213         * chartab.h: Don't use HAVE_CHISE_CLIENT.
214
215         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
216         defined or HAVE_LIBCHISE_LIBCHISE is defined.
217         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
218         is defined.
219         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
220         HAVE_CHISE to specify using with libchise.
221         (syms_of_chartab): Don't define symbol `system-char-id' when
222         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
223
224 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
225
226         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
227         specify CHISE DB support.
228         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
229         of `char_attribute_system_db_file' to check feature DB file.
230
231         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
232         HAVE_CHISE_CLIENT to specify CHISE DB support.
233
234         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
235         specify CHISE DB support.
236         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
237         not defined.
238         (Freset_char_attribute_table): Use `chise_feature_setup_db'
239         instead of `char_attribute_system_db_file' to check feature DB
240         file.
241
242 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
243
244         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
245         `HAVE_CHISE_CLIENT'.
246
247 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
248
249         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
250         (Fsave_charset_mapping_table): Don't use
251         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
252
253         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
254         (HAVE_LIBCHISE): New macro.
255
256         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
257
258         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
259         (Fsave_char_attribute_table): Don't use
260         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
261
262 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
263
264         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
265         defined.
266         (save_uint16_byte_table): Likewise.
267         (save_byte_table): Likewise.
268         (char_table_get_db): Use `chise_ds_load_char_feature_value'
269         instead of `chise_char_load_feature_value'.
270         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
271
272 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
273
274         * chartab.h (struct Lisp_Char_Table): Delete member
275         `feature_table' if CHISE is defined.
276
277         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
278         (Fcopy_char_table): Likewise.
279         (char_table_open_db_maybe): Likewise.
280         (char_table_close_db_maybe): Likewise.
281         (char_table_get_db): Likewise.
282         (Fmount_char_attribute_table): Likewise.
283         (Fload_char_attribute_table): Likewise.
284
285 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
286
287         * mule-charset.c (load_char_decoding_entry_maybe): Use
288         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
289         `chise_ccs_decode'.
290
291 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
292
293         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
294         instead of `chise_open_data_source'.
295         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
296         `chise_ds_close'.
297
298 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
299
300         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
301         instead of `chise_ds_open_feature_table'.
302         (char_table_close_db_maybe): Don't use `chise_ft_close'.
303
304 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
305
306         * mule-charset.c (Fsave_charset_mapping_table): Use
307         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
308         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
309         `chise_ccs_sync' instead of `chise_ccst_close'.
310         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
311
312         * chartab.c (open_chise_data_source_maybe): Modify for
313         `chise_open_data_source'.
314         (char_table_open_db_maybe): Modify for
315         `chise_ds_open_feature_table'.
316
317 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
318
319         * mule-charset.c (load_char_decoding_entry_maybe): Use
320         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
321         `chise_ccst_close'.
322
323 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
324
325         * mule-charset.c (Fsave_charset_mapping_table): Use
326         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
327         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
328         `chise_dt_put_char' and `chise_dt_close'.
329         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
330         `chise_ccs_decode' and `chise_ccst_close' instead of
331         `chise_ds_open_decoding_table', `chise_dt_get_char' and
332         `chise_dt_close'.
333
334         * chartab.c (char_table_get_db): Use
335         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
336         (load_char_attribute_table_map_func): Modify for
337         `chise_char_feature_value_iterate'.
338         (Fload_char_attribute_table): Use
339         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
340
341 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
342
343         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
344
345 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
346
347         * chartab.c (put_char_table): Modify for inherited coded-charsets
348         in XEmacs CHISE.
349
350 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
351
352         * chartab.c (Fput_char_table_map_function): Fixed.
353         (word_boundary_p): Don't check charset in XEmacs CHISE.
354
355 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
356
357         * mule-charset.c (Fsave_charset_mapping_table): Use
358         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
359         instead of `chise_open_decoding_table'; refer
360         `default_chise_data_source'; use `chise_dt_close' instead of
361         `chise_close_decoding_table'.
362         (load_char_decoding_entry_maybe): Likewise.
363
364         * chartab.c (default_chise_data_source): New variable when `CHISE'
365         is defined.
366         (Fcopy_char_table): `ct->ds' is deleted.
367         (open_chise_data_source_maybe): New function.
368         (Fclose_char_data_source): New function.
369         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
370         use `chise_ds_open_feature_table' instead of
371         `chise_open_feature_table'.
372         (char_table_close_db_maybe): Use `chise_ft_close' instead of
373         `chise_close_feature_table'; `cit->ds' is deleted.
374         (syms_of_chartab): Add new builtin function
375         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
376
377         * chartab.h (default_chise_data_source): New extern variable.
378         (open_chise_data_source_maybe): New prototype.
379         (struct Lisp_Char_Table): Delete `ds'.
380
381 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
382
383         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
384         `CHISE' is defined.
385
386 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
387
388         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
389         not defined; add code for non-libchise setting.
390         (char_table_close_db_maybe): Likewise.
391         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
392         defined.
393         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
394         even if `CHISE' is not defined.
395         (Freset_char_attribute_table): Likewise.
396         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
397         `char_table_close_db_maybe' even if `CHISE' is not defined; use
398         `char_table_get_db'.
399         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
400         `char_table_close_db_maybe' even if `CHISE' is not defined.
401
402 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
403
404         * chartab.c (char_table_open_db_maybe): New function.
405         (char_table_close_db_maybe): New function.
406         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
407         (Freset_char_attribute_table): Likewise.
408         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
409         `char_table_close_db_maybe'.
410         (Fload_char_attribute_table): Likewise.
411
412 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
413
414         * chartab.c: Don't include <chise.h> because it is included in
415         chartab.h.
416         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
417         defined.
418         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
419         `CHISE' is defined.
420         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
421         `CHISE' is defined.
422         (Fclose_char_attribute_table): Close `ct->feature_table' and
423         `ct->ds' when `CHISE' is defined.
424         (Freset_char_attribute_table): Likewise.
425         (load_char_attribute_maybe): Use `cit->ds' and
426         `cit->feature_table' when `CHISE' is defined.
427         (Fload_char_attribute_table): Likewise.
428
429         * chartab.h: Include <chise.h> when `CHISE' is defined.
430         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
431         when `CHISE' is defined.
432
433 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
434
435         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
436         is defined.
437         (char_table_description): Likewise.
438         (Fmake_char_table): Likewise.
439         (Fcopy_char_table): Likewise.
440         (Fmount_char_attribute_table): Likewise.
441         (Fclose_char_attribute_table): Likewise.
442         (Freset_char_attribute_table): Likewise.
443         (load_char_attribute_maybe): Likewise.
444         (Fload_char_attribute_table): Likewise.
445
446         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
447         defined.
448
449 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
450
451         * chartab.c (load_char_attribute_table_map_func): New function
452         when CHISE is defined.
453         (Qload_char_attribute_table_map_function): Don't define when CHISE
454         is defined.
455         (Fload_char_attribute_table_map_function): Likewise.
456         (Fload_char_attribute_table): Use libchise when `CHISE' is
457         defined.
458         (syms_of_chartab): Don't define
459         `load-char-attribute-table-map-function' when CHISE is defined.
460
461 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
462
463         * chartab.c: Include <chise.h> when `CHISE' is defined.
464         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
465
466 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
467
468         * mule-charset.c (charset_code_point): Fix problem when searching
469         in mother CCS fails with `defined_only' mode.
470
471 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
472
473         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
474         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
475         (put_char_composition): Likewise.
476         (Fput_char_attribute): Likewise.
477         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
478
479 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
480
481         * chartab.c (Q_ucs): Deleted.
482         (Fput_char_attribute): Don't refer `->ucs'.
483         (Fdefine_char): Likewise.
484         (Ffind_char): Likewise.
485         (syms_of_chartab): Delete `->ucs'.
486
487 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
488
489         * mule-charset.c (Qmap_cns11643_2): Renamed from
490         `Qchinese_cns11643_2'.
491         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
492         `chinese-cns11643-2'.
493         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
494         `=cns11643-2'.
495
496 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
497
498         * mule-charset.c (Qmap_cns11643_1): Renamed from
499         `Qchinese_cns11643_1'.
500         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
501         `chinese-cns11643-1'.
502         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
503         `=cns11643-1'.
504
505 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
506
507         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
508         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
509         `chinese-gb12345'.
510         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
511         `=gb12345'.
512
513 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
514
515         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
516         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
517         `chinese-gb2312'.
518         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
519         `=gb2312'.
520
521 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
522
523         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
524         (syms_of_mule_charset): Add new symbol `=big5' instead of
525         `chinese-big5'.
526         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
527
528 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
529
530         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
531         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
532         `korean-ksc5601'.
533         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
534         `=ks-x1001'.
535
536 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
537
538         * mule-charset.c (Qmap_jis_x0212): Renamed from
539         `Qjapanese_jisx0212'.
540         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
541         `japanese-jisx0212'.
542         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
543         `=jis-x0212'.
544
545 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
546
547         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
548         `Qjapanese_jisx0208'.
549         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
550         of `japanese-jisx0208'.
551         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
552         `=jis-x0208-1983'.
553
554 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
555
556         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
557         `Qjapanese_jisx0208_1978'.
558         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
559         of `japanese-jisx0208-1978'.
560         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
561         `=jis-x0208-1978'.
562
563 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
564
565         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
566         only for XEmacs CHISE.
567
568 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
569
570         * char-ucs.h: Compact non-ISO-IR charset-ids.
571         (LEADING_BYTE_UCS): Changed to -177.
572         (LEADING_BYTE_CONTROL_1): Changed to -77.
573         (LEADING_BYTE_UCS_BMP): Changed to -176.
574         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
575
576 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
577
578         * mule-charset.c (Qiso_ir): New variable.
579         (Fmake_charset): Recognise new property `iso-ir'.
580         (syms_of_mule_charset): Add new symbol `iso-ir'.
581
582 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
583
584         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
585         n to -n; charset-id of non ISO-IR sets are changed to positive
586         numbers.
587
588 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
589
590         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
591         for &MCS-XXXXXXXX; values.
592
593 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
594
595         * mule.c (Vxemacs_chise_version): Renamed from
596         `Vutf_2000_version'.
597         (vars_of_mule): Add new variable `xemacs-chise-version'; define
598         `utf-2000-version' as an alias for `xemacs-chise-version'.
599
600 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
601
602         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
603         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
604         defined.
605
606         * config.h.in (CHISE): New macro.
607
608 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
609
610         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
611         of `ucs'.
612         (Qmap_ucs): New variable.
613         (syms_of_mule_charset): Add new symbol `=ucs'.
614         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
615
616         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
617         (simplify_char_spec): Likewise.
618
619         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
620
621         * char-ucs.h (Qmap_ucs): New extern variable.
622
623 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
624
625         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
626         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
627         don't define it when UTF2000 is not defined.
628         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
629         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
630         when UTF2000 is not defined.
631         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
632         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
633
634 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
635
636         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
637
638         * mule-charset.c (Vcharset_ucs_gb): Deleted.
639         (Qucs_gb): Deleted.
640         (syms_of_mule_charset): Delete `ucs-gb'.
641         (complex_vars_of_mule_charset): Likewise.
642
643 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
644
645         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
646
647         * mule-charset.c (Vcharset_ucs_cns): Deleted.
648         (Qucs_cns): Deleted.
649         (syms_of_mule_charset): Delete `ucs-cns'.
650         (complex_vars_of_mule_charset): Likewise.
651
652 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
653
654         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
655
656         * mule-charset.c (Vcharset_ucs_jis): Deleted.
657         (Qucs_jis): Deleted.
658         (syms_of_mule_charset): Delete `ucs-jis'.
659         (complex_vars_of_mule_charset): Likewise.
660
661 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
662
663         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
664
665         * mule-charset.c (Vcharset_ucs_ks): Deleted.
666         (Qucs_ks): Deleted.
667         (syms_of_mule_charset): Delete `ucs-ks'.
668         (complex_vars_of_mule_charset): Likewise.
669
670 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
671
672         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
673         (Qideograph_daikanwa_2): Deleted.
674         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
675         (complex_vars_of_mule_charset): Likewise.
676
677         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
678         (LEADING_BYTE_DAIKANWA_1): Deleted.
679         (LEADING_BYTE_DAIKANWA_2): Deleted.
680         (MIN_CHAR_DAIKANWA): Deleted.
681         (MAX_CHAR_DAIKANWA): Deleted.
682
683 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
684
685         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
686         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
687         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
688
689         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
690         (Vcharset_ideograph_daikanwa): Deleted.
691         (Qideograph_hanziku_{1..12}): Deleted.
692         (Qideograph_daikanwa): Deleted.
693         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
694         Vcharset_ideograph_daikanwa.
695         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
696         `ideograph-hanziku-{1..12}'.
697         (complex_vars_of_mule_charset): Likewise.
698
699 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
700
701         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
702
703         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
704         (Qideograph_gt_pj_{1..11}): Deleted.
705         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
706         (complex_vars_of_mule_charset): Likewise.
707
708 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
709
710         * mule-charset.c (Vcharset_ucs_big5): Deleted.
711         (Vcharset_ideograph_gt): Deleted.
712         (Qucs_big5): Deleted.
713         (Qideograph_gt): Deleted.
714         (syms_of_mule_charset): Delete symbol `ucs-big5' and
715         `ideograph-gt'.
716         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
717         and `ideograph-gt'.
718
719         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
720         (LEADING_BYTE_GT): Deleted.
721         (MIN_CHAR_GT): Deleted.
722         (MAX_CHAR_GT): Deleted.
723
724 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
725
726         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
727
728 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
729
730         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
731         (save_uint16_byte_table): Likewise.
732         (save_byte_table): Likewise; convert values by it.
733         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
734         for `ideographic-structure'.
735         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
736         as the filter for `ideographic-structure'.
737
738 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
739
740         * chartab.c (put_char_composition): New function.
741         (Fput_char_attribute): Use `put_char_composition'; use
742         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
743
744         * fns.c (simplify_char_spec): New function.
745         (char_ref_simplify_spec): New function.
746         (Fchar_refs_simplify_char_specs): New function.
747         (syms_of_fns): Add new builtin function
748         `char-refs-simplify-char-specs'.
749
750 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
751
752         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
753         (Qideograph_cbeta): Deleted.
754         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
755         (complex_vars_of_mule_charset): Likewise.
756
757         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
758         (MIN_CHAR_CBETA): Comment out.
759         (MAX_CHAR_CBETA): Likewise.
760
761 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
762
763         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
764         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
765         CHISE client feature.
766
767 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
768
769         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
770
771 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
772
773         * mule-charset.c (charset_lookup_description_1): Use
774         `NUM_LEADING_BYTES' in UTF-2000.
775
776 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
777
778         * char-ucs.h (GC_CHARSETP): Deleted.
779
780 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
781
782         * char-ucs.h (MAX_CHAR_GT): Updated.
783
784 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
785
786         * text-coding.c: Sync with XEmacs 21.4.10.
787
788 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
789
790         * mule-charset.c (Vcharset_china3_jef): Deleted.
791         (Qchina3_jef): Deleted.
792         (syms_of_mule_charset): Don't define `china3-jef'.
793         (complex_vars_of_mule_charset): Likewise.
794
795         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
796         (MIN_CHAR_CHINA3_JEF): Comment out.
797         (MAX_CHAR_CHINA3_JEF): Comment out.
798
799 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
800
801         * mule-charset.c (Vcharset_ucs_gb): New variable.
802         (Qucs_gb): New variable.
803         (syms_of_mule_charset): Add new symbol `ucs-gb'.
804         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
805
806         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
807
808 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
809
810         * mule-charset.c (charset_code_point): if a coded-charset has a
811         final-byte, don't inherit the builtin range of the mother CCS.
812
813 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
814
815         * mule-charset.c (charset_code_point): Fix problem about
816         inheritance.
817
818 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
819
820         * mule-charset.c (decode_builtin_char): Reorganized.
821
822 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
823
824         * text-coding.c (char_encode_as_entity_reference): Modify for
825         `charset_code_point'.
826         (char_encode_shift_jis): Likewise.
827         (char_encode_big5): Likewise.
828         (char_encode_utf8): Likewise.
829         (char_encode_iso2022): Likewise.
830
831         * mule-charset.c (charset_code_point): Add new argument
832         `defined_only'.
833         (Fencode_char): Add new optional argument `defined_only'.
834
835         * chartab.c (put_char_table): Modify for `charset_code_point'.
836
837         * char-ucs.h (charset_code_point): Add new argument
838         `defined_only'.
839         (encode_char_1): Modify for `charset_code_point'.
840
841 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
842
843         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
844         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
845
846 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
847
848         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
849         (Qjis_x0208): Likewise.
850         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
851         XCHARSET_FINAL(charset).
852         (charset_code_point): Modify condition for final-byte based
853         builtin-chars.
854         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
855         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
856         in UTF-2000; specify `=jis-x0208' as the mother of
857         `japanese-jisx0208-1978', `japanese-jisx0208' and
858         `japanese-jisx0208-1990' in UTF-2000.
859
860 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
861
862         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
863
864 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
865
866         * text-coding.c (decode_coding_utf16): Support UTF-16.
867         (char_encode_utf16): Fixed.
868
869 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
870
871         * text-coding.c (Qutf16): New variable in MULE.
872         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
873         (Fcoding_system_type): Add `utf-16' in MULE.
874         (struct detection_state): Add a structure for utf16 in MULE.
875         (detect_coding_type): Setup st->utf16.mask in MULE.
876         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
877         MULE.
878         (reset_encoding_stream): Use `char_encode_utf16' and
879         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
880         (detect_coding_utf16): New function [incomplete].
881         (decode_coding_utf16): New function [support only UCS-2].
882         (char_encode_utf16): New function.
883         (char_finish_utf16): New function.
884         (syms_of_file_coding): Add new symbol `utf-16'; setup
885         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
886
887         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
888         UTF-2000.
889         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
890         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
891
892 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
893
894         * chartab.c (put_char_table): When a charset is specified as a
895         range in UTF-2000, don't support builtin characters.
896
897 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
898
899         * mule-charset.c (decode_defined_char): Don't refer external
900         database if Qunbound or Qnil are found.
901         (Fsave_charset_mapping_table): Don't define it if
902         HAVE_CHISE_CLIENT is not defined.
903         (Freset_charset_mapping_table): New function.
904         (load_char_decoding_entry_maybe): Store Qnil if a character is not
905         found in external database.
906         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
907         if HAVE_CHISE_CLIENT is not defined; add new builtin function
908         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
909
910 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
911
912         * text-coding.c (decode_coding_utf8): Check CCS is specified or
913         not.
914
915 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
916
917         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
918         Q_lowercase, Q_uppercase in UTF-2000.
919
920         * chartab.c (get_char_table): Add special code for the standard
921         case table to use character attribute `->downcase' and
922         `->uppercase' for case operations in UTF-2000.
923
924         * casetab.c (Qflippedcase): New variable in UTF-2000.
925         (Q_lowercase): Likewise.
926         (Q_uppercase): Likewise.
927         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
928         and `->uppercase' in UTF-2000.
929         (complex_vars_of_casetab): Assign attribute name `downcase' to
930         downcase and CANON table of Vstandard_case_table in UTF-2000;
931         assign attribute name `flippedcase' to upcase and EQV table of
932         Vstandard_case_table in UTF-2000.
933
934 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
935
936         * text-coding.c (decode_add_er_char): Support isolated-chars.
937         (char_encode_as_entity_reference): Likewise.
938
939 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
940
941         * emacs.c (Vutf_2000_lisp_directory): New variable.
942         (Vconfigure_utf_2000_lisp_directory): Likewise.
943         (complex_vars_of_emacs): Add new variable
944         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
945
946 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
947
948         * char-ucs.h (DECODE_CHAR): Delete special code for
949         `chinese-big5-1' and `chinese-big5-2'.
950
951         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
952         (Qbig5_2): Likewise.
953         (decode_defined_char): Support CONVERSION_BIG5_1 and
954         CONVERSION_BIG5_2.
955         (decode_builtin_char): Likewise.
956         (charset_code_point): Likewise.
957         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
958         'conversion in UTF-2000.
959         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
960         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
961         `chinese-big5-2' as children of `chinese-big5'.
962
963         * char-ucs.h (CONVERSION_BIG5_1): New macro.
964         (CONVERSION_BIG5_2): New macro.
965
966 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
967
968         * text-coding.c (char_encode_big5): Support entity-reference.
969
970 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
971
972         * text-coding.c (char_encode_as_entity_reference): New function.
973         (char_encode_utf8): Use `char_encode_as_entity_reference'.
974
975 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
976
977         * text-coding.c (decode_coding_big5): Support entity-reference
978         decoding feature.
979
980 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
981
982         * text-coding.c (allocate_coding_system): Initialize initial
983         charsets for CODESYS_UTF8.
984         (Fmake_coding_system): Accept charset-g0, charset-g1 and
985         charset-g2 for CODESYS_UTF8.
986         (decode_coding_utf8): Use charset-g0.
987         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
988         to force variants to map to UCS.
989
990 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
991
992         * text-coding.c (Qutf_8_mcs): New variable.
993         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
994         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
995         instead of `utf-8' in UTF-2000.
996
997 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
998
999         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1000         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1001         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1002         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1003         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1004         CONVERSION_96x96x96x96 are introduced.
1005         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1006         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1007         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1008
1009         * char-ucs.h (CONVERSION_94): New macro.
1010         (CONVERSION_96): New macro.
1011         (CONVERSION_94x94): New macro.
1012         (CONVERSION_96x96): New macro.
1013         (CONVERSION_94x94x94): New macro.
1014         (CONVERSION_96x96x96): New macro.
1015         (CONVERSION_94x94x94x60): New macro.
1016         (CONVERSION_94x94x94x94): New macro.
1017         (CONVERSION_96x96x96x96): New macro.
1018
1019 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1020
1021         * chartab.c (Vcharacter_variant_table): Deleted.
1022         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1023         of `Vcharacter_variant_table'.
1024         (Fput_char_attribute): Likewise.
1025         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1026         (complex_vars_of_chartab): Likewise.
1027
1028 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1029
1030         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1031
1032         * fns.c (Qideographic_structure): New variable.
1033         (Qkeyword_char): New variable.
1034         (ids_format_unit): New function.
1035         (Fideographic_structure_to_ids): New function.
1036         (syms_of_fns): Add new symbols `ideographic-structure' and
1037         `:char'; add new builtin function `ideographic-structure-to-ids'.
1038
1039         * data.c (Fchar_ref_p): New function.
1040         (syms_of_data): Add new builtin function `char-ref-p'.
1041
1042         * chartab.h: Add an EXFUN for `Ffind_char'.
1043
1044 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1045
1046         * text-coding.c (Vcharacter_composition_table): Deleted.
1047         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1048         in every UTF-2000.
1049
1050         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1051         UTF-2000.
1052         (Vcharacter_composition_table): Deleted.
1053         (Fget_composite_char): Use the implementation for external-DB
1054         support in every UTF-2000.
1055         (Fput_char_attribute): Likewise.
1056         (char_attribute_system_db_file): Don't define if external-DB
1057         feature is not available.
1058         (Fsave_char_attribute_table): Likewise.
1059         (Fmount_char_attribute_table): Likewise.
1060         (Fclose_char_attribute_table): Likewise.
1061         (Freset_char_attribute_table): Likewise.
1062         (Fload_char_attribute_table): Likewise.
1063         (syms_of_chartab): Don't define `save-char-attribute-table',
1064         `mount-char-attribute-table', `reset-char-attribute-table',
1065         `close-char-attribute-table' and `load-char-attribute-table' if
1066         external-DB feature is not available.
1067         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1068
1069 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1070
1071         * text-coding.c (Qcomposition): Add extern if external-DB feature
1072         is supported.
1073         (Vcharacter_composition_table): Don't add extern if external-DB
1074         feature is supported.
1075         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1076         character composition rule if external-DB feature is supported.
1077
1078         * chartab.c (Vcharacter_composition_table): Don't define if
1079         external-DB feature is supported.
1080         (Qcomposition): New variable.
1081         (Fget_composite_char): New implementation for external-DB support.
1082         (Fput_char_attribute): Use `composition' property of each
1083         character instead of `Vcharacter_composition_table' to store
1084         character-composition rules if external-DB feature is supported.
1085         (syms_of_chartab): Add new symbol `composition'.
1086         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1087         external-DB feature is supported.
1088
1089 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1090
1091         * chartab.c (Vchar_db_stingy_mode): New variable.
1092         (load_char_attribute_maybe): Close database if
1093         Vchar_db_stingy_mode is not NIL.
1094         (Fload_char_attribute_table_map_function): Use
1095         `get_char_id_table_0' instead of `get_char_id_table'.
1096         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1097
1098         * chartab.h (get_char_id_table_0): New inline function.
1099         (get_char_id_table): Use `get_char_id_table_0'.
1100
1101 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1102
1103         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1104         and `COMPOSE_ADD_CHAR'.
1105         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1106
1107 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1108
1109         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1110         instead of `DECODE_ADD_UCS_CHAR'.
1111         (COMPOSE_ADD_CHAR): Likewise.
1112
1113 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1114
1115         * text-coding.c (decode_flush_er_chars): New inline function.
1116         (decode_add_er_char): New function.
1117         (decode_coding_utf8): Use `decode_flush_er_chars' and
1118         `decode_add_er_char'.
1119
1120 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1121
1122         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1123         done before `decode_output_utf8_partial_char'.
1124
1125         * mule-charset.c (complex_vars_of_mule_charset): Specify
1126         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1127         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1128
1129 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1130
1131         * mule-charset.c (decode_defined_char): New function; search
1132         mother.
1133         (decode_builtin_char): Don't search mother if
1134         XCHARSET_MAX_CODE(charset) == 0.
1135         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1136         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1137         (Fdecode_char): Use `decode_defined_char' instead of
1138         `DECODE_DEFINED_CHAR'.
1139         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1140         mother of `Vcharset_ucs_jis'.
1141
1142         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1143         instead of `DECODE_DEFINED_CHAR'.
1144
1145         * char-ucs.h (decode_defined_char): Renamed from
1146         `DECODE_DEFINED_CHAR'; changed to normal function.
1147         (DECODE_CHAR): Use `decode_defined_char' instead of
1148         `DECODE_DEFINED_CHAR'.
1149
1150         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1151
1152 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1153
1154         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1155
1156         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1157         variable.
1158         (Quse_entity_reference): New variable.
1159         (Qd): New variable.
1160         (Qx): New variable.
1161         (QX): New variable.
1162         (coding_system_description): Add description for
1163         `ccs_priority_list'.
1164         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1165         (allocate_coding_system): Initialize `ccs_priority_list' in
1166         UTF-2000.
1167         (Fmake_coding_system): Add description about
1168         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1169         (codesys).
1170         (Fcoding_system_property): Accept `disable-composition' and
1171         `use-entity-reference' in UTF-2000.
1172         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1173         in UTF-2000.
1174         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1175         (decode_coding_utf8): Decode entity-reference if
1176         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1177         (char_encode_utf8): Encode non-Unicode characters as
1178         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1179         (str->codesys).
1180         (syms_of_file_coding): Add new symbols `use-entity-reference',
1181         `d', `x', `X'.
1182         (vars_of_file_coding): Add new variable
1183         `coded-charset-entity-reference-alist'.
1184         (complex_vars_of_file_coding): Declare `disable-composition' and
1185         `use-entity-reference' to be coding-system-properties in UTF-2000.
1186
1187         * file-coding.h (struct Lisp_Coding_System): Add new member
1188         `use_entity_reference' and `ccs_priority_list'.
1189         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1190         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1191         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1192
1193 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1194
1195         * chartab.c (save_uint8_byte_table): Don't clear the table.
1196         (save_uint16_byte_table): Likewise.
1197         (save_byte_table): Likewise.
1198         (Fmount_char_attribute_table): New function.
1199         (syms_of_chartab): Add new builtin function
1200         `mount-char-attribute-table'.
1201
1202 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1203
1204         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1205         "w+" mode.
1206         (load_char_decoding_entry_maybe): Open database as read-only mode.
1207
1208         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1209         open database as "w+" mode.
1210         (load_char_attribute_maybe): Open database as read-only mode.
1211         (Fload_char_attribute_table): Likewise.
1212
1213 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1214
1215         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1216         (char_table_description): Delete member `db_file'.
1217         (Fmake_char_table): Don't refer `ct->db_file'.
1218         (Fcopy_char_table): Likewise.
1219         (Fsave_char_attribute_table): Likewise.
1220         (Fclose_char_attribute_table): Likewise.
1221         (Freset_char_attribute_table): Likewise.
1222         (load_char_attribute_maybe): Likewise.
1223         (Fload_char_attribute_table): Likewise.
1224
1225         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1226
1227 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1228
1229         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1230         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1231         `ct->db' is living.
1232         (load_char_attribute_maybe): Likewise.
1233         (Fload_char_attribute_table): Likewise.
1234
1235 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1236
1237         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1238         `ct->db_file' unconditionally.
1239
1240 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1241
1242         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1243         UTF-2000.
1244         (char_table_description): Add description for `db_file' and `db'
1245         in UTF-2000.
1246         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1247         UTF-2000.
1248         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1249         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1250         (Fclose_char_attribute_table): New function.
1251         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1252         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1253         and `cit->db'.
1254         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1255         (syms_of_chartab): Add new builtin function
1256         `Fclose_char_attribute_table'.
1257
1258 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1259
1260         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1261         `db' in UTF-2000.
1262         (load_char_attribute_maybe): Change interface.
1263         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1264
1265 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1266
1267         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1268
1269 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1270
1271         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1272         instead of `DECODE_CHAR' for mother; don't use special code for
1273         chinese-big5 to use code space of chinese-big5-1 and
1274         chinese-big5-2.
1275         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1276         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1277
1278         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1279         (MAX_CHAR_BIG5_CDP): Revival.
1280
1281 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1282
1283         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1284         the XLFD registry-encoding name of `chinese-big5'.
1285
1286 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1287
1288         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1289         (Qchinese_big5_cdp): Deleted.
1290         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1291         (complex_vars_of_mule_charset): Delete coded-charset
1292         `chinese-big5-cdp'.
1293
1294         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1295         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1296         `CHARSET_ID_OFFSET - n' for private CCS.
1297         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1298         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1299         of `MIN_LEADING_BYTE'.
1300         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1301         `(CHARSET_ID_OFFSET - 97)'.
1302         (MIN_CHAR_BIG5_CDP): Deleted.
1303         (MAX_CHAR_BIG5_CDP): Deleted.
1304
1305 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1306
1307         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1308
1309 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1310
1311         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1312         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1313         chartab.c].
1314
1315         * chartab.c (Vutf_2000_version): Moved to mule.c.
1316         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1317
1318 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1319
1320         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1321         when HAVE_CHISE_CLIENT is not defined.
1322
1323         * mule.c (vars_of_mule): Provide feature `chise' when
1324         HAVE_CHISE_CLIENT is defined.
1325
1326 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1327
1328         * config.h.in (UTF2000): Add comment.
1329         (HAVE_CHISE_CLIENT): New macro.
1330
1331 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1332
1333         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1334         CONSP.
1335         (Fput_char_attribute): Likewise.
1336         (char_attribute_system_db_file): Encode file-name of attribute.
1337         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1338         the initial value.
1339
1340 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1341
1342         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1343         (Fsave_charset_mapping_table): Use
1344         `char_attribute_system_db_file'.
1345         (load_char_decoding_entry_maybe): Likewise.
1346
1347         * chartab.h (Qsystem_char_id): New external variable.
1348         (char_attribute_system_db_file): New prototype.
1349
1350         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1351         (char_attribute_system_db_file): New function.
1352         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1353         (Freset_char_attribute_table): Likewise.
1354         (load_char_attribute_maybe): Likewise.
1355         (Fload_char_attribute_table): Likewise.
1356         (syms_of_chartab): Add new symbol `system-char-id'.
1357
1358 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1359
1360         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1361         `XCHARSET_GRAPHIC(ccs)'.
1362
1363 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1364
1365         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1366
1367 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1368
1369         * chartab.c (Q_ucs_variants): New variable.
1370         (syms_of_chartab): Add new symbol `->ucs-variants'.
1371         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1372         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1373         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1374
1375         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1376
1377         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1378         `HAVE_DATABASE' is defined.
1379         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1380         `HAVE_DATABASE' is defined.
1381
1382 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1383
1384         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1385         attribute-table.
1386         (Freset_char_attribute_table): New function.
1387         (syms_of_chartab): Add new builtin function
1388         `reset-char-attribute-table'.
1389
1390 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1391
1392         * chartab.c (load_char_attribute_maybe): Don't make directories.
1393
1394 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1395
1396         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1397
1398         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1399         for decoding-table.
1400
1401 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1402
1403         * mule-charset.c (Fsave_charset_mapping_table): Use
1404         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1405
1406         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1407         instead of `XCHARSET_CHARS'.
1408
1409 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1410
1411         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1412         (XCHARSET_BYTE_SIZE): Likewise.
1413
1414         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1415         mule-charset.c].
1416         (XCHARSET_BYTE_SIZE): Likewise.
1417
1418 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1419
1420         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1421         data-directory to store database.
1422         (Fsave_char_attribute_table): Likewise.
1423         (load_char_attribute_maybe): Likewise.
1424         (Fload_char_attribute_table): Likewise.
1425
1426 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1427
1428         * mule-charset.c (Fsave_charset_mapping_table): New function.
1429         (syms_of_mule_charset): Add new builtin function
1430         `save-charset-mapping-table'.
1431
1432 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1433
1434         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1435         (get_ccs_octet_table): New inline function.
1436         (put_ccs_octet_table): Likewise.
1437         (decoding_table_put_char): Use `get_ccs_octet_table' and
1438         `put_ccs_octet_table'.
1439         (decoding_table_remove_char): Use `decoding_table_put_char'.
1440         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1441
1442         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1443         into encoding_table.
1444         (make_charset): Use Qunbound instead Qnil as initial value of
1445         decoding_table.
1446
1447 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1448
1449         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1450         element is Qunloaded.
1451         (map_over_uint16_byte_table): Likewise.
1452         (map_over_byte_table): Likewise.
1453         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1454         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1455         database support, load encoding-table of the specified
1456         coded-charset if it is not loaded yet.
1457         (save_uint8_byte_table): New function of UTF-2000 with external
1458         database support.
1459         (save_uint16_byte_table): Likewise.
1460         (save_byte_table): Likewise.
1461         (Fput_char_attribute): Don't store value into external database
1462         even if the external database feature is supported in UTF-2000;
1463         set `attribute' as name of char-table if the external database
1464         feature is supported.
1465         (Fsave_char_attribute_table): New function in UTF-2000.
1466         (syms_of_chartab): Add new builtin function
1467         `save-char-attribute-table' in UTF-2000.
1468
1469 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1470
1471         * chartab.c (char_attribute_table_to_put): New variable in
1472         UTF-2000.
1473         (Qput_char_table_map_function): Likewise.
1474         (value_to_put): Likewise.
1475         (Fput_char_table_map_function): New function in UTF-2000.
1476         (put_char_table): Use `Fmap_char_attribute' for
1477         CHARTAB_RANGE_CHARSET in UTF-2000.
1478         (Fput_char_attribute): Store symbol instead of string in
1479         `XCHAR_TABLE_NAME (table)'.
1480         (load_char_attribute_maybe): Likewise.
1481         (syms_of_chartab): Add new symbol/function
1482         `put-char-table-map-function'.
1483
1484 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1485
1486         * database.h: Add new EXFUN for `Fmap_database'.
1487
1488         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1489         (syms_of_database): Likewise.
1490
1491         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1492         UTF-2000.
1493         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1494         (XCHAR_TABLE_UNLOADED): Likewise.
1495
1496         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1497         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1498         HAVE_DATABASE is defined.
1499         (char_attribute_table_to_load): New variable of UTF-2000 with
1500         external database support.
1501         (Qload_char_attribute_table_map_function): Likewise.
1502         (Fload_char_attribute_table_map_function): New function of
1503         UTF-2000 with external database support.
1504         (Fload_char_attribute_table): New function of UTF-2000.
1505         (Fmap_char_attribute): Call Fload_char_attribute_table if
1506         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1507         (syms_of_chartab): Add new symbol and function
1508         `load-char-attribute-table-map-function' in UTF-2000 with external
1509         database support; add new function `load-char-attribute-table' in
1510         UTF-2000.
1511
1512 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1513
1514         * chartab.h (load_char_attribute_maybe): New prototype for
1515         UTF-2000 with DATABASE support.
1516         (get_char_id_table): Use `load_char_attribute_maybe' if
1517         HAVE_DATABASE is defined.
1518
1519         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1520         with DATABASE support.
1521
1522 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1523
1524         * chartab.c (Fput_char_attribute): Use S-expression as key of
1525         external database.
1526
1527         * chartab.h (get_char_id_table): Use S-expression as key of
1528         external database.
1529
1530 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1531
1532         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1533         if an element is not loaded, load the corresponding attributes
1534         from an external database.
1535         (map_over_uint16_byte_table): Likewise.
1536         (map_over_byte_table): Likewise.
1537         (map_char_table): Modify for `map_over_uint8_byte_table',
1538         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1539         element is not loaded, load the corresponding attributes from an
1540         external database.
1541         (Fput_char_attribute): Change initial values to Qunloaded.
1542
1543         * chartab.h (get_char_id_table): If a character attribute is not
1544         loaded and the attribute value is not found in an external
1545         database, store Qunbound as the attribute value.
1546
1547 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1548
1549         * chartab.c (BT_UINT8_unloaded): New macro.
1550         (UINT8_VALUE_P): Accept Qunloaded.
1551         (UINT8_ENCODE): Likewise.
1552         (UINT8_DECODE): Likewise.
1553         (BT_UINT16_unloaded): New macro.
1554         (UINT16_VALUE_P): Accept Qunloaded.
1555         (UINT16_ENCODE): Likewise.
1556         (UINT16_DECODE): Likewise.
1557         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1558         BT_UINT16_unloaded.
1559         (mark_char_table): Mark `ct->name' in UTF-2000.
1560         (char_table_description): Add `name' in UTF-2000.
1561         (Fmake_char_table): Initialize `ct->name'.
1562         (Fcopy_char_table): Copy `ct->name'.
1563         (Fput_char_attribute): Store value into an external database if
1564         HAVE_DATABASE is defined.
1565
1566         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1567         UTF-2000.
1568         (CHAR_TABLE_NAME): New macro in UTF-2000.
1569         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1570         (get_char_id_table): Try to read an external database if Qunloaded
1571         is stored in a table.
1572
1573         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1574         Qunloaded.
1575
1576 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1577
1578         * database.h: Add EXFUN definitions for Fopen_database,
1579         Fput_database, Fget_database and Fclose_database.
1580
1581         * data.c (Qunloaded): New variable in UTF-2000.
1582
1583         * lisp.h (Qunloaded): New variable in UTF-2000.
1584
1585 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1586
1587         * mule-charset.c (put_char_ccs_code_point): Modify for
1588         `decoding_table_remove_char' and `decoding_table_put_char'.
1589         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1590
1591         * char-ucs.h (decoding_table_remove_char): Change arguments to
1592         hide decoding_table vector.
1593         (decoding_table_put_char): Likewise.
1594
1595 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1596
1597         * mule-charset.c (decoding_table_remove_char): Moved to
1598         char-ucs.h.
1599         (decoding_table_put_char): Likewise.
1600
1601         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1602         from mule-charset.c].
1603         (decoding_table_remove_char): New inline function [moved from
1604         mule-charset.c].
1605         (decoding_table_put_char): Likewise.
1606
1607 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1608
1609         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1610         extension.
1611
1612 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1613
1614         * mule-charset.c (decode_builtin_char): Support mother charsets.
1615
1616 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1617
1618         * mule-charset.c (Q94x94x60): New variable.
1619         (charset_code_point): Support conversion `94x94x60'.
1620         (Fmake_charset): Likewise.
1621         (syms_of_mule_charset): Add new symbol `94x94x60'.
1622
1623         * char-ucs.h (CONVERSION_94x94x60): New macro.
1624
1625 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1626
1627         * mule-charset.c (charset_code_point): Unify code about
1628         `code-offset'.
1629
1630 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1631
1632         * mule-charset.c (charset_code_point): Merge code about builtin
1633         characters into code about mother charsets; don't use
1634         `range_charset_code_point'.
1635         (range_charset_code_point): Deleted.
1636
1637 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1638
1639         * mule-charset.c (Qcode_offset): New variable.
1640         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1641         `max-code'; accept new property `code-offset'.
1642         (syms_of_mule_charset): Add new symbol `code-offset'.
1643
1644 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1645
1646         * mule-charset.c (range_charset_code_point): Fixed.
1647
1648 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1649
1650         * mule-charset.c (decode_builtin_char): Change semantics of
1651         code-offset of coded-charset.
1652         (charset_code_point): Likewise.
1653         (range_charset_code_point): Likewise.
1654         (complex_vars_of_mule_charset): Modify for the change.
1655
1656 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1657
1658         * mule-charset.c (Fencode_char): Reverse arguments.
1659
1660         * mule-charset.c (charset_code_point): Fixed.
1661
1662 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1663
1664         * mule-charset.c (Vcharset_mojikyo): Deleted.
1665         (Vcharset_mojikyo_2022_1): Deleted.
1666         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1667         (Qmin_code): New variable in UTF-2000.
1668         (Qmax_code): Likewise.
1669         (Qmother): Likewise.
1670         (Qconversion): Likewise.
1671         (Q94x60): Likewise.
1672         (Qmojikyo): Deleted.
1673         (Qmojikyo_2022_1): Deleted.
1674         (Qmojikyo_pj_{1..22}): Deleted.
1675         (mark_charset): Mark `cs->mother'.
1676         (charset_description): Add description for `mother'.
1677         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1678         new arguments `mother' and `conversion'; use
1679         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1680         (charset_code_point): Moved from char-ucs.h; support `mother'
1681         charset feature.
1682         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1683         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1684         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1685         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1686         allow 2 as the value of `graphic' in UTF-2000; add new properties
1687         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1688         require `final' in UTF-2000; modify for `make_charset'.
1689         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1690         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1691         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1692         (Fencode_char): New function.
1693         (syms_of_mule_charset): Add new builtin function `encode-char' in
1694         UTF-2000; add new symbols `min-code', `max-code', `mother',
1695         `conversion' and `94x60'; delete symbols `mojikyo',
1696         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1697         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1698         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1699         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1700
1701         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1702         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1703
1704         * char-ucs.h (Vcharset_mojikyo): Deleted.
1705         (Vcharset_mojikyo_2022_1): Deleted.
1706         (LEADING_BYTE_MOJIKYO): Deleted.
1707         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1708         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1709         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1710         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1711         add new member `mother'; add new member `conversion'.
1712         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1713         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1714         (CHARSET_MOTHER): New macro.
1715         (CHARSET_CONVERSION): New macro.
1716         (CONVERSION_IDENTICAL): New macro.
1717         (CONVERSION_94x60): New macro.
1718         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1719         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1720         (XCHARSET_MOTHER): New macro.
1721         (XCHARSET_CONVERSION): New macro.
1722         (MIN_CHAR_MOJIKYO): Deleted.
1723         (MAX_CHAR_MOJIKYO): Deleted.
1724         (DECODE_MOJIKYO_2022): Deleted.
1725         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1726         (charset_code_point): Changed to non-inline function.
1727         (encode_char_1): Use `charset_code_point'.
1728         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1729
1730 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1731
1732         * lread.c (read_compiled_function): Fix prototype.
1733         (read_vector): Likewise.
1734
1735 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1736
1737         * lrecord.h (struct lrecord_header): Delete `older'.
1738         (set_lheader_implementation): Delete code for `older'.
1739         (set_lheader_older_implementation): Deleted.
1740         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1741         (OLDER_RECORD_P): Deleted.
1742         (OLDER_RECORD_HEADER_P): Deleted.
1743         (alloc_older_lcrecord): Deleted.
1744         (alloc_older_lcrecord_type): Deleted.
1745
1746         * alloc.c (all_older_lcrecords): Deleted.
1747         (alloc_older_lcrecord): Deleted.
1748         (disksave_object_finalization_1): Delete code for older objects.
1749         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1750         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1751
1752 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1753
1754         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1755         instead of `make_older_vector'.
1756         (put_char_ccs_code_point): Likewise.
1757         (mark_charset): Mark `cs->decoding_table'.
1758         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1759
1760         * lisp.h (make_older_vector): Deleted.
1761         (make_vector_newer): Deleted.
1762
1763         * config.h.in (HAVE_GGC): Deleted.
1764
1765         * alloc.c (make_older_vector): Deleted.
1766         (make_vector_newer_1): Deleted.
1767         (make_vector_newer): Deleted.
1768
1769 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1770
1771         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1772         (Qideograph_daikanwa_2): New variable.
1773         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1774         (complex_vars_of_mule_charset): Add new coded-charset
1775         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1776         `LEADING_BYTE_DAIKANWA'.
1777
1778         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1779         (LEADING_BYTE_DAIKANWA_1): New macro.
1780         (LEADING_BYTE_DAIKANWA_2): New macro.
1781         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1782
1783 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1784
1785         * mule-charset.c (complex_vars_of_mule_charset): Change
1786         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1787         the second revised version.
1788
1789 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1790
1791         * mule-charset.c (Vcharset_ucs_smp): New variable.
1792         (Vcharset_ucs_sip): New variable.
1793         (Qucs_smp): New variable.
1794         (Qucs_sip): New variable.
1795         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1796         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1797         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1798         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1799         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1800         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1801
1802         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1803         (LEADING_BYTE_UCS_SIP): New macro.
1804         (MIN_CHAR_SMP): New macro.
1805         (MAX_CHAR_SMP): New macro.
1806         (MIN_CHAR_SIP): New macro.
1807         (MAX_CHAR_SIP): New macro.
1808
1809 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1810
1811         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1812         utf-2000.
1813
1814 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1815
1816         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1817         value; don't store value into `encoding_table' of `Lisp_Charset'.
1818         (mark_charset): `encoding_table' was deleted.
1819         (charset_description): Likewise.
1820         (make_charset): Likewise.
1821         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1822         `put_char_ccs_code_point'.
1823
1824         * chartab.h (Fput_char_attribute): New EXFUN.
1825
1826         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1827         is unified with normal symbol space.
1828         (Fget_char_attribute): Likewise.
1829         (Fput_char_attribute): Likewise; behavior of
1830         `put_char_ccs_code_point' is changed.
1831
1832         * char-ucs.h: Include "elhash.h".
1833         (Vchar_attribute_hash_table): New external variable.
1834         (struct Lisp_Charset): Delete `encoding_table'.
1835         (CHARSET_ENCODING_TABLE): New implementation; refer
1836         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1837         `Lisp_Charset'.
1838
1839 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1840
1841         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1842         (cs) == 0.
1843
1844 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1845
1846         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1847         `chinese-big5'.
1848
1849 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1850
1851         * chartab.c (uint8_byte_table_description): New constant.
1852         (uint8-byte-table): Use `uint8_byte_table_description'.
1853         (uint16_byte_table_description): New constant.
1854         (uint16-byte-table): Use `uint16_byte_table_description'.
1855
1856 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1857
1858         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1859         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1860
1861 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1862
1863         * mule-charset.c (Vcharset_ucs_ks): New variable.
1864         (Qucs_ks): New variable.
1865         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1866         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1867
1868         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1869
1870 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1871
1872         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
1873         (Fdecode_char): Likewise.
1874
1875         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
1876         chartab.h.
1877         (Fdefine_char): Modify for Fdecode_char.
1878         (Ffind_char): Likewise.
1879
1880         * mule-charset.c (Fdecode_char): Add new optional argument
1881         `defined-only'.
1882         (Fdecode_builtin_char): Modify for `Fdecode_char'.
1883
1884 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1885
1886         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
1887         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
1888         (allocate_coding_system): Initialize initial-charsets of
1889         CODESYS_BIG5 in XEmacs UTF-2000.
1890         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
1891         CODESYS_BIG5 in XEmacs UTF-2000.
1892         (decode_coding_big5): Use initial-charset-g0 and -g1 of
1893         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
1894
1895         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
1896         variables.
1897         (Qideograph_hanziku_{1 .. 12}): Likewise.
1898         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
1899         .. 12}'.
1900         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
1901         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
1902         `ideograph-hanziku-{1 .. 12}'.
1903
1904         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
1905         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
1906         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
1907         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
1908         (DECODE_DEFINED_CHAR): New inline function.
1909         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
1910
1911 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1912
1913         * mule-charset.c (Vcharset_china3_jef): Renamed from
1914         `Vcharset_japanese_jef_china3'.
1915         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
1916         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
1917         `{MIN|MAX}_CHAR_JEF_CHINA3'..
1918         (syms_of_mule_charset): Rename `china3-jef' from
1919         `japanese-jef-china3'.
1920         (complex_vars_of_mule_charset): Likewise; rename
1921         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
1922
1923         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
1924         `LEADING_BYTE_JEF_CHINA3'.
1925         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
1926         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
1927
1928 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1929
1930         * mule-charset.c (encode_builtin_char_1): Comment out special code
1931         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
1932
1933         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
1934         (MAX_CHAR_MOJIKYO_0): Comment out.
1935         (MIN_CHAR_CBETA): Changed to 0x00E20000.
1936         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
1937         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
1938         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
1939
1940 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1941
1942         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
1943         (Qideograph_cbeta): New variable.
1944         (encode_builtin_char_1): Comment out special code for
1945         coded-charset `mojikyo' and `japanese-jef-china3'.
1946         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
1947         (complex_vars_of_mule_charset): Add new coded-charset
1948         `ideograph-cbeta'.
1949
1950         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
1951         (MIN_CHAR_CBETA): New macro.
1952         (MAX_CHAR_CBETA): New macro.
1953
1954 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1955
1956         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
1957         (LEADING_BYTE_JEF_CHINA3): New macro.
1958         (MIN_CHAR_JEF_CHINA3): New macro.
1959         (MAX_CHAR_JEF_CHINA3): Likewise.
1960         (DECODE_CHAR): Fixed.
1961
1962 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1963
1964         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
1965         (Qjapanese_jef_china3): New variable.
1966         (encode_builtin_char_1): Support `japanese-jef-china3'.
1967         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
1968         (complex_vars_of_mule_charset): Add new coded-charset
1969         `japanese-jef-china3'.
1970
1971 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1972
1973         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
1974         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
1975         94^4, 96^3, 96^4, 128^n and 256^n set.
1976         (put_char_table): Use `XCHARSET_CELL_RANGE'.
1977         (map_char_table): Likewise.
1978
1979 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1980
1981         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
1982         UTF-2000.
1983
1984 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1985
1986         * chartab.h (get_char_id_table): New inline function.
1987
1988         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
1989         function.
1990
1991 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1992
1993         * chartab.h (decode_char_table_range): New prototype in XEmacs
1994         UTF-2000.
1995         (put_char_id_table): New inline function in XEmacs UTF-2000.
1996
1997         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
1998         function.
1999         (decode_char_table_range): Delete static declaration in XEmacs
2000         UTF-2000.
2001
2002 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2003
2004         * chartab.c (put_char_id_table): Use `put_char_table'.
2005
2006 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2007
2008         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2009         (map_over_uint16_byte_table): Likewise.
2010         (map_over_byte_table): Likewise.
2011         (map_char_table): Modify for `map_over_uint8_byte_table',
2012         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2013         UTF-2000.
2014
2015 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2016
2017         * chartab.c (struct map_char_table_for_charset_arg): New
2018         structure.
2019         (map_char_table_for_charset_fun): New function.
2020         (map_char_table): Use `map_char_table' for encoding_table of
2021         `range->charset'.
2022
2023 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2024
2025         * chartab.c (map_char_table): Check a character is found in
2026         range->charset instead of non default value is defined in
2027         char-table when range is CHARTAB_RANGE_ROW.
2028
2029 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2030
2031         * chartab.c (map_char_id_table): Deleted.
2032         (Fmap_char_attribute): Use `map_char_table' instead of
2033         `map_char_id_table'.
2034
2035 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2036
2037         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2038         UTF-2000.
2039         (update_syntax_table): Deleted in XEmacs UTF-2000.
2040
2041         * syntax.c (find_defun_start): Use `syntax_table' instead of
2042         `mirror_syntax_table' in XEmacs UTF-2000.
2043         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2044         UTF-2000.
2045         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2046         XEmacs UTF-2000.
2047         (Fmatching_paren): Likewise.
2048         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2049         in XEmacs UTF-2000.
2050         (find_start_of_comment): Likewise.
2051         (find_end_of_comment): Likewise.
2052         (Fforward_comment): Likewise.
2053         (scan_lists): Likewise.
2054         (char_quoted): Likewise.
2055         (Fbackward_prefix_chars): Likewise.
2056         (scan_sexps_forward): Likewise.
2057         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2058         (update_syntax_table): Likewise.
2059
2060         * search.c (skip_chars): Use `syntax_table' instead of
2061         `mirror_syntax_table' in XEmacs UTF-2000.
2062         (wordify): Likewise.
2063         (Freplace_match): Likewise.
2064
2065         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2066         `mirror_syntax_table' in XEmacs UTF-2000.
2067         (WORDCHAR_P_UNSAFE): Likewise.
2068         (re_match_2_internal): Likewise.
2069
2070         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2071         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2072
2073         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2074         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2075
2076         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2077         XEmacs UTF-2000.
2078
2079         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2080         UTF-2000.
2081         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2082         (char_table_description): Delete `mirror_table' in XEmacs
2083         UTF-2000.
2084         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2085         UTF-2000.
2086         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2087         (Fcopy_char_table): Likewise.
2088         (put_char_table): Don't call `update_syntax_table' in XEmacs
2089         UTF-2000.
2090
2091         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2092         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2093         (casify_region_internal): Likewise.
2094
2095         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2096
2097         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2098         `mirror_syntax_table' in XEmacs UTF-2000.
2099
2100         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2101         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2102         (Fexpand_abbrev): Likewise.
2103
2104 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2105
2106         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2107
2108 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2109
2110         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2111         (map_over_uint16_byte_table): Likewise.
2112         (map_over_byte_table): Likewise.
2113         (get_char_id_table): Refer `cit->default_value'.
2114         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2115         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2116         of character-id ranges.
2117         (mark_char_table): Mark `ct->default_value'.
2118         (char_table_description): Add `default_value'.
2119         (fill_char_table): Use `default_value'.
2120         (decode_char_table_range): Decode `nil' as
2121         `CHARTAB_RANGE_DEFAULT'.
2122         (get_char_id_table): Refer `cit->default_value'.
2123         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2124         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2125         temporary hack; check value of char-table is bound or not.
2126         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2127
2128         * chartab.h (struct Lisp_Char_Table): Add new member
2129         `default_value' in XEmacs UTF-2000.
2130         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2131         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2132         UTF-2000.
2133
2134 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2135
2136         * chartab.h (Lisp_Char_ID_Table): Deleted.
2137
2138         * chartab.c (char_table_description): Fix typo.
2139         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2140         `Lisp_Char_ID_Table'.
2141
2142 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2143
2144         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2145         `CHAR_ID_TABLE_P'.
2146
2147         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2148         `CHAR_ID_TABLE_P'.
2149
2150         * chartab.h (XCHAR_ID_TABLE): Deleted.
2151         (XSETCHAR_ID_TABLE): Deleted.
2152         (CHAR_ID_TABLE_P): Deleted.
2153
2154         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2155         `CHAR_ID_TABLE_P'.
2156         (Fget_composite_char): Likewise.
2157         (put_char_table): Likewise.
2158         (add_char_attribute_alist_mapper): Fixed.
2159         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2160         `CHAR_ID_TABLE_P'.
2161         (Fget_char_attribute): Likewise.
2162         (Fget_char_attribute): Likewise.
2163         (Fmap_char_attribute): Likewise.
2164
2165         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2166         `CHAR_ID_TABLE_P'.
2167         (encode_char_1): Likewise.
2168
2169 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2170
2171         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2172         `XCHAR_ID_TABLE'.
2173
2174         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2175         instead of `XCHAR_ID_TABLE'.
2176         (remove_char_ccs): Likewise.
2177
2178         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2179         `XCHAR_ID_TABLE'.
2180         (Fget_composite_char): Likewise.
2181         (Fchar_variants): Likewise.
2182         (put_char_table): Likewise.
2183         (add_char_attribute_alist_mapper): Likewise.
2184         (Fchar_attribute_alist): Likewise.
2185         (Fget_char_attribute): Likewise.
2186         (Fput_char_attribute): Likewise.
2187         (Fmap_char_attribute): Likewise.
2188         (Fmap_char_attribute): Likewise.
2189
2190         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2191         `XCHAR_ID_TABLE'.
2192         (encode_char_1): Likewise.
2193
2194 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2195
2196         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2197         `Lisp_Char_ID_Table'.
2198         (mark_char_id_table): Deleted.
2199         (print_char_id_table): Likewise.
2200         (char_id_table_equal): Likewise.
2201         (char_id_table_hash): Likewise.
2202         (char_id_table_description): Likewise.
2203         (char_id_table): Likewise.
2204         (make_char_id_table): Use `Fmake_char_table' and
2205         `fill_char_table'.
2206         (get_char_id_table): Use `Lisp_Char_Table' instead of
2207         `Lisp_Char_ID_Table'.
2208         (put_char_id_table): Likewise.
2209         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2210         `XCHAR_ID_TABLE'.
2211         (Fremove_char_attribute): Likewise.
2212         (syms_of_chartab): Don't define type `char-id-table'.
2213
2214         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2215         (char_id_table): Likewise.
2216         (GC_CHAR_ID_TABLE_P): Likewise.
2217         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2218         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2219         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2220         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2221         (get_char_id_table): Use `Lisp_Char_Table' instead of
2222         `Lisp_Char_ID_Table'.
2223         (put_char_id_table_0): Likewise.
2224         (put_char_id_table): Likewise.
2225
2226 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2227
2228         * chartab.h: Lisp_Byte_Table related codes are moved from
2229         chartab.h.
2230
2231         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2232
2233 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2234
2235         * chartab.h: Don't include "chartab.h".
2236         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2237         (Lisp_Char_ID_Table): Likewise.
2238         (char_id_table): Likewise.
2239         (XCHAR_ID_TABLE): Likewise.
2240         (XSETCHAR_ID_TABLE): Likewise.
2241         (CHAR_ID_TABLE_P): Likewise.
2242         (GC_CHAR_ID_TABLE_P): Likewise.
2243         (get_char_id_table): Likewise.
2244
2245         * char-ucs.h: Include "chartab.h".
2246         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2247         (Lisp_Char_ID_Table): Likewise.
2248         (char_id_table): Likewise.
2249         (XCHAR_ID_TABLE): Likewise.
2250         (XSETCHAR_ID_TABLE): Likewise.
2251         (CHAR_ID_TABLE_P): Likewise.
2252         (GC_CHAR_ID_TABLE_P): Likewise.
2253         (get_char_id_table): Likewise.
2254
2255 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2256
2257         * chartab.c (copy_uint8_byte_table): New function.
2258         (copy_uint16_byte_table): New function.
2259         (copy_byte_table): New function.
2260         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2261         characters to call.
2262         (map_over_uint16_byte_table): Likewise.
2263         (map_over_byte_table): Likewise.
2264         (get_byte_table): Move prototype to chartab.h.
2265         (put_byte_table): Likewise.
2266         (put_char_id_table_0): Moved to chartab.h.
2267         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2268         (char_table_entry_equal): Likewise.
2269         (char_table_entry_hash): Likewise.
2270         (char_table_entry_description): Likewise.
2271         (char_table_entry): Likewise.
2272         (make_char_table_entry): Likewise.
2273         (copy_char_table_entry): Likewise.
2274         (get_non_ascii_char_table_value): Likewise.
2275         (map_over_charset_ascii): Likewise.
2276         (map_over_charset_control_1): Likewise.
2277         (map_over_charset_row): Likewise.
2278         (map_over_other_charset): Likewise.
2279         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2280         (print_char_table): Likewise.
2281         (char_table_equal): Likewise.
2282         (char_table_hash): Likewise.
2283         (char_table_description): Likewise.
2284         (fill_char_table): Likewise.
2285         (Fcopy_char_table): Likewise.
2286         (get_char_table): Likewise.
2287         (Fget_range_char_table): Likewise.
2288         (put_char_table): Likewise.
2289         (map_char_table): Likewise.
2290         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2291         UTF-2000.
2292
2293 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2294
2295         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2296         `Vauto_fill_chars' in XEmacs UTF-2000.
2297
2298         * chartab.h (get_byte_table): New prototype [moved from
2299         chartab.c].
2300         (put_byte_table): Likewise [moved from chartab.c].
2301         (put_char_id_table_0): New inline function [moved from chartab.c].
2302         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2303         (Lisp_Char_Table_Entry): Likewise.
2304         (char_table_entry): Likewise.
2305         (XCHAR_TABLE_ENTRY): Likewise.
2306         (XSETCHAR_TABLE_ENTRY): Likewise.
2307         (CHAR_TABLE_ENTRYP): Likewise.
2308         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2309         (NUM_ASCII_CHARS): Likewise.
2310         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2311         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2312
2313 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2314
2315         * chartab.c (get_char_id_table): Change interface.
2316         (put_char_id_table_0): New function.
2317         (put_char_id_table): Change interface; new implementation.
2318         (Fget_composite_char): Modify for interface change of
2319         `get_char_id_table'.
2320         (Fchar_variants): Likewise.
2321         (add_char_attribute_alist_mapper): Likewise.
2322         (Fchar_attribute_alist): Likewise.
2323         (Fget_char_attribute): Likewise.
2324         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2325         as same as character as the first argument like `put-char-table';
2326         modify for interface change of `put_char_id_table'.
2327         (Fremove_char_attribute): Modify for interface change of
2328         `put_char_id_table'.
2329
2330 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2331
2332         * text-coding.c: Sync up with XEmacs 21.2.41.
2333         (COMPOSE_ADD_CHAR): Modify for interface change of
2334         `get_char_id_table'.
2335
2336         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2337         change of `put_char_id_table'.
2338         (remove_char_ccs): Likewise.
2339
2340         * chartab.h (put_char_id_table): Change interface.
2341
2342         * char-ucs.h (get_char_id_table): Change interface.
2343         (charset_code_point): Modify for interface change of
2344         `get_char_id_table'.
2345         (encode_char_1): Likewise.
2346
2347 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2348
2349         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2350         argument `ccs'.
2351         (map_over_uint16_byte_table): Likewise.
2352         (map_over_byte_table): Likewise.
2353         (map_char_id_table): Add new argument `range' like
2354         `map_char_table'.
2355         (Fmap_char_attribute): Add new argument `range' like
2356         `Fmap_char_table'.
2357
2358 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2359
2360         * chartab.c (map_over_uint8_byte_table): Change interface of
2361         mapping function to use struct chartab_range instead of Emchar.
2362         (map_over_uint16_byte_table): Likewise.
2363         (map_over_byte_table): Likewise.
2364         (map_char_id_table): Likewise.
2365         (struct slow_map_char_id_table_arg): Deleted.
2366         (slow_map_char_id_table_fun): Deleted.
2367         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2368         function `slow_map_char_table_fun' instead of struct
2369         `slow_map_char_id_table_arg' and function
2370         `slow_map_char_id_table_fun'.
2371
2372 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2373
2374         * mule-charset.c: Move char-it-table related codes to chartab.c.
2375         (Vutf_2000_version): Moved to chartab.c.
2376         (Fdefine_char): Likewise.
2377         (Ffind_char): Likewise.
2378         (syms_of_mule_charset): Move types `uint8-byte-table',
2379         `uint16-byte-table', `byte-table' and `char-id-table' to
2380         chartab.c; move functions `char_attribute_list,
2381         `find_char_attribute_table, `char_attribute_alist,
2382         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2383         `map_char_attribute, `define_char, `find_char, `char_variants and
2384         `get_composite_char to chartab.c; move symbols `=>ucs',
2385         `->decomposition', `compat', `isolated', `initial', `medial',
2386         `final', `vertical', `noBreak', `fraction', `super', `sub',
2387         `circle', `square', `wide', `narrow', `small' and `font' to
2388         chartab.c.
2389         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2390         setting codes for `Vcharacter_composition_table' and
2391         `Vcharacter_variant_table' to chartab.c.
2392         (complex_vars_of_mule_charset): Move setting code for
2393         `Vchar_attribute_hash_table' to chartab.c.
2394
2395         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2396         (make_char_id_table): New prototype.
2397         (put_char_id_table): Likewise.
2398         (Fget_char_attribute): Likewise.
2399
2400         * chartab.c: Move char-id-table related code from mule-charset.c.
2401         (Vutf_2000_version): Moved from mule-charset.c.
2402
2403         * char-ucs.h (Qucs): New external variable.
2404         (put_char_ccs_code_point): New prototype.
2405         (remove_char_ccs): Likewise.
2406
2407 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2408
2409         * mule-charset.c (Vcharset_ucs_jis): New variable.
2410         (Qucs_jis): Likewise.
2411         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2412         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2413
2414         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2415
2416 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2417
2418         * mule-charset.c (map_over_uint8_byte_table): New function.
2419         (map_over_uint16_byte_table): Likewise.
2420         (map_over_byte_table): Likewise.
2421         (map_char_id_table): Likewise.
2422         (slow_map_char_id_table_fun): Likewise.
2423         (Fmap_char_attribute): Likewise.
2424         (syms_of_mule_charset): Add new function `map-char-attribute'.
2425
2426 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2427
2428         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2429         (syms_of_mule_charset): Add new function `find-char'.
2430
2431 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2432
2433         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2434         XEmacs UTF-2000.
2435         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2436         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2437         XEmacs UTF-2000.
2438         (complex_vars_of_mule_charset): Add new coded-charset
2439         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2440         `ideograph-gt-pj-*'.
2441
2442         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2443
2444 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2445
2446         * mule-charset.c (encode_builtin_char_1): Purge codes about
2447         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2448         {MIN|MAX}_CHAR_HEBREW.
2449         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2450         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2451
2452         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2453         (MAX_CHAR_GREEK): Purged.
2454         (MIN_CHAR_CYRILLIC): Purged.
2455         (MAX_CHAR_CYRILLIC): Purged.
2456         (MIN_CHAR_HEBREW): Commented out.
2457         (MAX_CHAR_HEBREW): Likewise.
2458
2459 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2460
2461         * mule-charset.c (Qto_ucs): New variable.
2462         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2463         (Fdefine_char): Likewise.
2464         (syms_of_mule_charset): Add new symbol `=>ucs'.
2465
2466 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2467
2468         * mule-charset.c (Fdecode_char): Fixed.
2469
2470 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2471
2472         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2473         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2474         "tcvn5712-1".
2475
2476 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2477
2478         * mule-charset.c (Vcharset_ucs_big5): New variable.
2479         (Qucs_big5): Likewise.
2480         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2481         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2482
2483         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2484
2485 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2486
2487         * mule-charset.c (decode_builtin_char): Check Big5 code range
2488         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2489
2490 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2491
2492         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2493         (Qchinese_gb12345): Likewise.
2494         (Fdecode_builtin_char): Fixed.
2495         (syms_of_mule_charset): Add `chinese-gb12345'.
2496         (complex_vars_of_mule_charset): Add coded-charset
2497         `chinese-gb12345'.
2498
2499         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2500         (LEADING_BYTE_CHINESE_GB12345): New macro.
2501
2502 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2503
2504         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2505         and `latin-viscii-upper' for `latin-viscii'.
2506
2507 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2508
2509         * mule-charset.c (Fdecode_builtin_char): Comment out
2510         regularization code for ISO-IR GR representation.
2511
2512 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2513
2514         * mule-charset.c (decode_builtin_char): New function; renamed from
2515         `make_builtin_char'; return -1 instead of signal.
2516         (Fdecode_builtin_char): Use `decode_builtin_char'.
2517
2518         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2519         `make_builtin_char'.
2520         (DECODE_CHAR): Use `decode_builtin_char' instead of
2521         `make_builtin_char'; use mapping table of `chinese-big5' for
2522         `chinese-big5-{1,2}'.
2523
2524 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2525
2526         * text-coding.c (char_encode_big5): New function.
2527         (char_finish_big5): Likewise.
2528         (reset_encoding_stream): Use `char_encode_big5' and
2529         `char_finish_big5' for CODESYS_BIG5.
2530         (mule_encode): Don't use `encode_coding_big5'.
2531         (encode_coding_big5): Deleted.
2532
2533 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2534
2535         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2536         0x81- in XEmacs UTF-2000.
2537         (detect_coding_big5): Likewise.
2538
2539 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2540
2541         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2542         generate character-id if the CCS property does not have
2543         corresponding predefined character.
2544         (make_builtin_char): Return -1 if corresponding predefined
2545         character is not found.
2546         (Fdecode_char): Return nil if corresponding character is not
2547         found.
2548         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2549         don't map to builtin ucs space.
2550
2551 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2552
2553         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2554         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2555
2556 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2557
2558         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2559         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2560         (Qideograph_gt): Likewise.
2561         (Qideograph_gt_pj_{1..11}): Likewise.
2562         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2563         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2564         `ideograph-gt-pj-11'.
2565         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2566         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2567         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2568
2569         * char-ucs.h (LEADING_BYTE_GT): New macro.
2570         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2571         (MIN_CHAR_GT): Likewise.
2572         (MAX_CHAR_GT): Likewise.
2573
2574 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2575
2576         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2577         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2578
2579         * doprnt.c (unsigned_int_converters): Add `c'.
2580         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2581
2582         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2583         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2584         `MIN_CHAR_MOJIKYO'.
2585         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2586         (MAX_CHAR_MOJIKYO_0): New macro.
2587         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2588
2589 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2590
2591         * mule-charset.c (Fdefine_char): Delete cemented out code.
2592         (encode_builtin_char_1): Modify for new allocation of builtin
2593         Mojikyo characters.
2594
2595         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2596
2597 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2598
2599         * mule-charset.c (Vcharset_ucs_cns): New variable.
2600         (Qucs_cns): New variable.
2601         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2602         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2603
2604 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2605
2606         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2607
2608 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2609
2610         * search.c (search_buffer): Make `charset_base_code' as
2611         character-id >> 6 to eliminate the corresponding last byte in
2612         UTF-8 representation [I'm not sure it is right thing].
2613         (boyer_moore): Likewise.
2614
2615 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2616
2617         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2618         representation in MULE.
2619
2620 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2621
2622         * text-coding.c (Fmake_coding_system): Use
2623         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2624         `EXTERNAL_PROPERTY_LIST_LOOP'.
2625
2626 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2627
2628         * text-coding.c (decode_output_utf8_partial_char): New function.
2629         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2630
2631 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2632
2633         * text-coding.c (decode_coding_utf8): Output original byte
2634         sequence if it is broken; change order of conditions.
2635
2636         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2637         of conditions.
2638
2639         * mb-multibyte.h (BYTE_ASCII_P):
2640         Use bit ops for char-signedness safety.
2641         (BYTE_C0_P): Use bit ops for char-signedness safety.
2642         (BYTE_C1_P): Use bit ops for char-signedness safety.
2643
2644         * character.h: (XCHAR_OR_CHAR_INT):
2645         Always use inline function.
2646         Remove redundant type checking assert() - XINT will abort quite
2647         nicely.
2648
2649 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2650
2651         * text-coding.c: (Fencode_shift_jis_char):
2652         (Fencode_big5_char):
2653         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2654         Replace 0 with '\0' when working with bytes.
2655         Replace initial "(" with "\(" in docstrings.
2656
2657         (Fmake_coding_system):
2658         When type is ccl and value is vector, register it with a proper
2659         symbol.  And checks whether the given ccl program is valid.
2660         (mule_decode): When calling ccl_driver, if src indicates
2661         NULL pointer, set an empty string instead.
2662         (mule_encode): Likewise.
2663
2664         (detect_eol_type):
2665         (detect_coding_sjis):
2666         (decode_coding_sjis):
2667         (detect_coding_big5):
2668         (decode_coding_big5):
2669         (detect_coding_ucs4):
2670         (decode_coding_ucs4):
2671         (detect_coding_utf8):
2672         (decode_coding_utf8):
2673         (detect_coding_iso2022):
2674         (decode_coding_iso2022):
2675         (decode_coding_no_conversion):
2676         (mule_decode):
2677         Make all detecting and decoding functions take an Extbyte * arg.
2678         (text_encode_generic):
2679         (encode_coding_big5):
2680         (encode_coding_no_conversion):
2681         (mule_encode):
2682         Make all encoding functions take a Bufbyte * arg.
2683         Use size_t instead of unsigned int for memory sizes.
2684         Only cast to unsigned char whenever dereferencing Extbyte *.
2685
2686         (struct lrecord_description fcd_description_1): Use countof.
2687         (complex_vars_of_file_coding):
2688         Use countof instead of sizeof.
2689         Use CHECK_NATNUM instead of CHECK_INT.
2690
2691 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2692
2693         * mule-charset.c (Fget_char_attribute): Add new optional argument
2694         `default-value'.
2695         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2696         (remove_char_ccs): Likewise.
2697
2698 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2699
2700         * text-coding.c (char_encode_shift_jis): New implementation in
2701         UTF-2000.
2702         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2703         ...)'.
2704
2705         * mule-charset.c (Vcharset_chinese_big5): New variable in
2706         UTF-2000.
2707         (Qchinese_big5): New variable in UTF-2000.
2708         (BIG5_SAME_ROW): New macro in UTF-2000.
2709         (make_builtin_char): Use builtin characters of
2710         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2711         characters of `Vcharset_chinese_big5'.
2712         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2713         (complex_vars_of_mule_charset): Add new coded-charset
2714         `chinese-big5' in UTF-2000.
2715
2716         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2717         (Vcharset_chinese_big5): New external variable declaration.
2718         (Vcharset_japanese_jisx0208_1990): Likewise.
2719
2720 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2721
2722         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2723         function.
2724         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2725
2726 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2727
2728         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2729         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2730         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2731         `mojikyo-pj-*'.
2732
2733 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2734
2735         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2736
2737 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2738
2739         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2740         to 0.17.
2741
2742 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2743
2744         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2745         for `CHARSET_BY_ATTRIBUTES'.
2746         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2747         `CHARSET_BY_ATTRIBUTES'.
2748
2749         * text-coding.c (struct decoding_stream): Rename member `CH' to
2750         `CPOS'.
2751         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2752         (decode_coding_sjis): Likewise.
2753         (decode_coding_big5): Likewise.
2754         (decode_coding_ucs4): Likewise.
2755         (decode_coding_utf8): Likewise.
2756         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2757         `CHARSET_BY_ATTRIBUTES'.
2758         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2759         `str->counter'; decode 3, 4 bytes sets.
2760         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2761         sets.
2762         (decode_coding_no_conversion): Use `str->cpos' instead of
2763         `str->ch'.
2764
2765         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2766         (Qmojikyo_2022_1): New variable.
2767         (make_charset): Don't use `CHARSET_TYPE_*'.
2768         (range_charset_code_point): Support coded-charset
2769         `mojikyo-2022-1'.
2770         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2771         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2772         `CHARSET_BY_ATTRIBUTES'.
2773         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2774         `CHARSET_BY_ATTRIBUTES'.
2775         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2776         (complex_vars_of_mule_charset): Add new coded-charset
2777         `mojikyo-2022-1'.
2778
2779         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2780         interface; changed to inline function.
2781
2782         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2783         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2784         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2785         (CHARSET_TYPE_94): Deleted.
2786         (CHARSET_TYPE_94X94): Deleted.
2787         (CHARSET_TYPE_96): Deleted.
2788         (CHARSET_TYPE_96X96): Deleted.
2789         (CHARSET_TYPE_128): Deleted.
2790         (CHARSET_TYPE_128X128): Deleted.
2791         (CHARSET_TYPE_256): Deleted.
2792         (CHARSET_TYPE_256X256): Deleted.
2793         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2794         to inline function.
2795         (DECODE_MOJIKYO_2022): New inline function.
2796         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2797         `Vcharset_mojikyo_2022_1'.
2798
2799 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2800
2801         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2802         instead of `EQ'.
2803         (put_byte_table): Likewise.
2804         (char_id_table_equal): Use `get_byte_table' [new implementation].
2805
2806 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2807
2808         * mule-charset.c: Include <limits.h> in UTF-2000.
2809         (BT_UINT8_MIN): New macro in UTF-2000.
2810         (BT_UINT8_MAX): New macro in UTF-2000.
2811         (BT_UINT8_t): New macro in UTF-2000.
2812         (BT_UINT8_nil): New macro in UTF-2000.
2813         (BT_UINT8_unbound): New macro in UTF-2000.
2814         (INT_UINT8_P): New inline function in UTF-2000.
2815         (UINT8_VALUE_P): New inline function in UTF-2000.
2816         (UINT8_ENCODE): New inline function in UTF-2000.
2817         (UINT8_DECODE): New inline function in UTF-2000.
2818         (mark_uint8_byte_table): New function in UTF-2000.
2819         (print_uint8_byte_table): New function in UTF-2000.
2820         (uint8_byte_table_equal): New function in UTF-2000.
2821         (uint8_byte_table_hash): New function in UTF-2000.
2822         (make_uint8_byte_table): New function in UTF-2000.
2823         (uint8_byte_table_same_value_p): New function in UTF-2000.
2824         (BT_UINT16_MIN): New macro in UTF-2000.
2825         (BT_UINT16_MAX): New macro in UTF-2000.
2826         (BT_UINT16_t): New macro in UTF-2000.
2827         (BT_UINT16_nil): New macro in UTF-2000.
2828         (BT_UINT16_unbound): New macro in UTF-2000.
2829         (INT_UINT16_P): New inline function in UTF-2000.
2830         (UINT16_VALUE_P): New inline function in UTF-2000.
2831         (UINT16_ENCODE): New inline function in UTF-2000.
2832         (UINT16_DECODE): New inline function in UTF-2000.
2833         (UINT8_TO_UINT16): New inline function in UTF-2000.
2834         (mark_uint16_byte_table): New function in UTF-2000.
2835         (print_uint16_byte_table): New function in UTF-2000.
2836         (uint16_byte_table_equal): New function in UTF-2000.
2837         (uint16_byte_table_hash): New function in UTF-2000.
2838         (make_uint16_byte_table): New function in UTF-2000.
2839         (uint16_byte_table_same_value_p): New function in UTF-2000.
2840         (print_byte_table): New function in UTF-2000.
2841         (byte-table): Use `print_byte_table' as printer.
2842         (make_byte_table): Delete second argument `older'.
2843         (byte_table_same_value_p): New function in UTF-2000.
2844         (copy_byte_table): Deleted.
2845         (get_byte_table): New function in UTF-2000.
2846         (put_byte_table): New function in UTF-2000.
2847         (print_char_id_table): New function in UTF-2000.
2848         (char-id-table): Use `print_char_id_table' as printer.
2849         (make_char_id_table): Delete second argument `older'.
2850         (get_char_id_table): Use `get_byte_table [new implementation].
2851         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2852         implementation].
2853         (Ffind_char_attribute_table): New function in UTF-2000.
2854         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2855         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2856         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2857         (syms_of_mule_charset): Add new function
2858         `find-char-attribute-table' in UTF-2000.
2859
2860         * lrecord.h (enum lrecord_type): Add
2861         `lrecord_type_uint16_byte_table' and
2862         `lrecord_type_uint8_byte_table'.
2863
2864         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2865         (Lisp_Uint8_Byte_Table): New type.
2866         (XUINT8_BYTE_TABLE): New macro.
2867         (XSETUINT8_BYTE_TABLE): New macro.
2868         (UINT8_BYTE_TABLE_P): New macro.
2869         (GC_UINT8_BYTE_TABLE_P): New macro.
2870         (struct Lisp_Uint16_Byte_Table): New structure.
2871         (Lisp_Uint16_Byte_Table): New type.
2872         (XUINT16_BYTE_TABLE): New macro.
2873         (XSETUINT16_BYTE_TABLE): New macro.
2874         (UINT16_BYTE_TABLE_P): New macro.
2875         (GC_UINT16_BYTE_TABLE_P): New macro.
2876
2877 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2878
2879         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
2880         (Vcharacter_ideographic_strokes_table): Deleted.
2881         (Vcharacter_total_strokes_table): Deleted.
2882         (Vcharacter_morohashi_daikanwa_table): Deleted.
2883         (Vcharacter_decomposition_table): Deleted.
2884         (Qname): Deleted because it is duplicated.
2885         (Qideographic_radical): Deleted.
2886         (Qideographic_strokes): Deleted.
2887         (Qtotal_strokes): Deleted.
2888         (Qmorohashi_daikanwa): Deleted.
2889         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
2890         `ideographic-radical', `ideographic-strokes', `total-strokes',
2891         `morohashi-daikanwa' and `->decomposition'.
2892         (Fget_char_attribute): Likewise.
2893         (Fput_char_attribute): Likewise; use `make-vector' instead of
2894         `make_older_vector' for `->decomposition' value.
2895         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
2896         `ideograph-daikanwa'.
2897         (syms_of_mule_charset): Delete builtin symbols `name',
2898         `ideographic-radical', `ideographic-strokes', `total-strokes' and
2899         `morohashi-daikanwa'.
2900         (vars_of_mule_charset): Don't setup
2901         `Vcharacter_ideographic_radical_table',
2902         `Vcharacter_ideographic_strokes_table',
2903         `Vcharacter_total_strokes_table',
2904         `Vcharacter_morohashi_daikanwa_table' and
2905         `Vcharacter_decomposition_table'.
2906
2907 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2908
2909         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
2910         `make_older_vector', `make_vector_newer_1' and
2911         `make_vector_newer'.
2912
2913         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
2914         `make_older_vector' and `make_vector_newer'.
2915
2916         * config.h.in (HAVE_GGC): New macro.
2917
2918 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2919
2920         * mule-charset.c (struct char_attribute_list_closure): New
2921         structure in UTF-2000.
2922         (add_char_attribute_to_list_mapper): New function in UTF-2000.
2923         (Fchar_attribute_list): Likewise.
2924         (Fset_charset_mapping_table): Use `make_vector_newer'.
2925         (Fdecode_builtin_char): New function in UTF-2000.
2926         (syms_of_mule_charset): Add new function `char-attribute-list' and
2927         `decode-builtin-char' in UTF-2000.
2928
2929         * lisp.h (make_vector_newer): New prototype.
2930
2931         * alloc.c (make_vector_newer_1): New function.
2932         (make_vector_newer): New function.
2933
2934 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2935
2936         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
2937         50100)'.
2938
2939 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2940
2941         * mule-charset.c (Vchar_attribute_hash_table): New variable.
2942         (Vcharacter_attribute_table): Deleted.
2943         (Vcharacter_name_table): Deleted.
2944         (put_char_attribute): Deleted.
2945         (remove_char_attribute): Deleted.
2946         (struct char_attribute_alist_closure): New structure.
2947         (add_char_attribute_alist_mapper): New function.
2948         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
2949         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
2950         (Fget_char_attribute): Likewise.
2951         (Fput_char_attribute): Likewise.
2952         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
2953         of `remove_char_attribute'.
2954         (Fdefine_char): Return character.
2955         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
2956         and `Vcharacter_name_table'.
2957         (complex_vars_of_mule_charset): Likewise
2958         `Vchar_attribute_hash_table'.
2959
2960 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2961
2962         * character.h (CHARC_CHARSET): New macro.
2963         (CHARC_CHARSET_ID): New macro.
2964         (CHARC_CODE_POINT): New macro.
2965         (CHARC_COLUMNS): New macro.
2966         (CHARC_TO_CHAR): New inline function.
2967         (CHARC_EQ): New inline function.
2968         (CHARC_ASCII_EQ): New inline function.
2969         (CHARC_IS_SPACE): New inline function.
2970         (ASCII_TO_CHARC): New inline function.
2971
2972         * char-ucs.h (encode_char_2): Deleted.
2973         (ENCODE_CHAR): Use `encode_char_1' again.
2974         (breakup_char_1): Likewise.
2975         (CHAR_TO_CHARC): New inline function.
2976
2977         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
2978
2979 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2980
2981         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
2982         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
2983         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
2984         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
2985         (create_string_text_block): Use `CHARC_ASCII_EQ' and
2986         `CHARC_IS_SPACE'.
2987         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
2988
2989         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
2990         `CHARC_CODE_POINT'.
2991         (x_output_display_block): Use `CHARC_CHARSET' and
2992         `CHARC_ASCII_EQ'.
2993
2994         * redisplay-tty.c (tty_output_display_block): Use
2995         `CHARC_ASCII_EQ'.
2996         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
2997
2998         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
2999
3000         * insdel.c (find_charsets_in_charc_string): Use
3001         `CHARC_CHARSET_ID'.
3002         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3003         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3004         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3005         (convert_charc_string_into_malloced_string): Likewise.
3006
3007 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3008
3009         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3010         instead of <Emchar_dynarr *> for buf; use
3011         `convert_bufbyte_string_into_charc_dynarr' instead of
3012         `convert_bufbyte_string_into_emchar_dynarr'; use
3013         `find_charsets_in_charc_string' instead of
3014         `find_charsets_in_emchar_string'.
3015
3016         * redisplay.h:
3017         - Include "character.h".
3018         (struct rune): New member `cglyph'; delete member `chr'.
3019
3020         * redisplay.c (redisplay_text_width_charc_string): New function;
3021         delete `redisplay_text_width_emchar_string'.
3022         (rtw_charc_dynarr): New variable; renamed from
3023         `rtw_emchar_dynarr'.
3024         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3025         `rtw_emchar_dynarr'; use
3026         `convert_bufbyte_string_into_charc_dynarr' instead of
3027         `convert_bufbyte_string_into_emchar_dynarr'; use
3028         `redisplay_text_width_charc_string' instead of
3029         `redisplay_text_width_emchar_string'.
3030         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3031         instead of `rtw_emchar_dynarr'; use
3032         `convert_bufbyte_string_into_charc_dynarr' instead of
3033         `convert_bufbyte_string_into_emchar_dynarr'.
3034         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3035         `redisplay_text_width_charc_string' instead of
3036         `redisplay_text_width_emchar_string'.
3037         (create_text_block): Modify for <struct rune> change.
3038         (generate_formatted_string_db): Likewise.
3039         (create_string_text_block): Likewise.
3040         (pixel_to_glyph_translation): Likewise.
3041
3042         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3043         instead of <const Emchar *>.
3044         (x_text_width): Likewise.
3045         (x_output_display_block): Use <Charc_dynarr *> instead
3046         <Emchar_dynarr *>; modify for <structure rune> change.
3047         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3048         *>.
3049
3050         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3051         <const Emchar *>; use `charc_string_displayed_columns' instead of
3052         `emchar_string_displayed_columns'.
3053         (tty_output_display_block): Use <Charc_dynarr *> instead of
3054         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3055         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3056         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3057         `tty_output_emchar_dynarr_dynarr'.
3058         (tty_output_charc_dynarr): New function; delete
3059         `tty_output_charc_dynarr'.
3060
3061         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3062         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3063         <Emchar_dynarr *> for buf; use
3064         `convert_bufbyte_string_into_charc_dynarr' instead of
3065         `convert_bufbyte_string_into_emchar_dynarr'.
3066
3067         * frame.c (title_string_charc_dynarr): New variable; renamed from
3068         `title_string_emchar_dynarr'.
3069         (generate_title_string): Use `title_string_charc_dynarr' instead
3070         of `title_string_emchar_dynarr'; use
3071         `convert_charc_string_into_malloced_string' instead of
3072         `convert_emchar_string_into_malloced_string'.
3073         (init_frame): Use `title_string_charc_dynarr' instead of
3074         `title_string_emchar_dynarr'.
3075
3076         * console.h:
3077         - Include "character.h".
3078         (struct console_methods): Use <const Charc *> instead of <const
3079         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3080         <Emchar_dynarr *> in output_string_method.
3081
3082         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3083         <Emchar_dynarr *>.
3084
3085         * console-stream.c (stream_text_width): Use <const Charc *>
3086         instead of <const Emchar *>.
3087
3088         * character.h (Charc_dynarr): New type.
3089
3090         * char-ucs.h (structure Charc): New structure; define new type
3091         `Charc'.
3092
3093         * char-lb.h (DECODE_CHAR): New inline function.
3094         (encode_char_1): New inline function.
3095         (ENCODE_CHAR): New macro.
3096         (structure Charc): New structure; define new type `Charc'.
3097
3098         * char-1byte.h (Vcharset_control_1): New macro.
3099         (Vcharset_latin_iso8859_1): New macro.
3100         (DECODE_CHAR): New inline function.
3101         (encode_char_1): New inline function.
3102         (ENCODE_CHAR): New macro.
3103         (structure Charc): New structure; define new type `Charc'.
3104
3105         * insdel.c (find_charsets_in_charc_string): New function; delete
3106         `find_charsets_in_emchar_string'.
3107         (charc_string_displayed_columns): New function; delete
3108         `emchar_string_displayed_columns'.
3109         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3110         `convert_bufbyte_string_into_emchar_dynarr'.
3111         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3112         `convert_charc_string_into_bufbyte_dynarr'.
3113         (convert_charc_string_into_malloced_string): New function; delete
3114         `convert_charc_string_into_malloced_string'.
3115
3116         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3117         `find_charsets_in_emchar_string'.
3118         (charc_string_displayed_columns): New prototype; delete
3119         `emchar_string_displayed_columns'.
3120         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3121         `convert_charc_string_into_bufbyte_dynarr'.
3122         (convert_charc_string_into_malloced_string): New prototype; delete
3123         `convert_charc_string_into_malloced_string'.
3124
3125 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3126
3127         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3128
3129 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3130
3131         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3132
3133         * char-ucs.h: Use <short> for <Charset_ID>.
3134
3135         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3136         <Charset_ID>.
3137
3138 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3139
3140         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3141         to 0.16.
3142
3143 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3144
3145         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3146         variable.
3147         (Qmorohashi_daikanwa): New variable.
3148         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3149         for `morohashi-daikanwa' attribute.
3150         (Fget_char_attribute): Likewise.
3151         (Fput_char_attribute): Likewise.
3152         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3153         has the same value of `ideograph-daikanwa'.
3154         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3155         (vars_of_mule_charset): Setup
3156         `Vcharacter_morohashi_daikanwa_table'.
3157
3158 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3159
3160         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3161         attributes.
3162         (add_charset_to_list_mapper): Add `key' instead of
3163         `XCHARSET_NAME (value)' to return aliases.
3164
3165 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3166
3167         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3168         variable.
3169         (Vcharacter_ideographic_strokes_table): New variable.
3170         (Qideographic_radical): New variable.
3171         (Qideographic_strokes): New variable.
3172         (Fchar_attribute_alist): Use
3173         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3174         attribute; use `Vcharacter_ideographic_strokes_table' for
3175         `ideographic-strokes' attribute.
3176         (Fget_char_attribute): Likewise.
3177         (Fput_char_attribute): Likewise.
3178         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3179         `ideographic-strokes'.
3180         (vars_of_mule_charset): Setup
3181         `Vcharacter_ideographic_radical_table' and
3182         `Vcharacter_ideographic_strokes_table'.
3183
3184 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3185
3186         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3187         (Qtotal_strokes): New variable.
3188         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3189         `total-strokes' attribute.
3190         (Fget_char_attribute): Likewise.
3191         (Fput_char_attribute): Likewise.
3192         (syms_of_mule_charset): Add new symbol `total-strokes'.
3193         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3194
3195 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3196
3197         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3198         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3199         are found.
3200         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3201         `->decomposition' attribute.
3202         (Fput_char_attribute): Likewise.
3203         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3204
3205 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3206
3207         * mule-charset.c (decoding_table_check_elements): New function.
3208         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3209
3210 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3211
3212         * mule-charset.c (Fset_charset_mapping_table): Use
3213         `put_char_ccs_code_point'.
3214
3215 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3216
3217         * mule-charset.c (decoding_table_put_char): New inline function.
3218         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3219
3220 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3221
3222         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3223         (XCHARSET_BYTE_SIZE): New macro.
3224         (decoding_table_remove_char): New inline function.
3225         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3226         `decoding_table_remove_char'.
3227         (remove_char_ccs): Use `decoding_table_remove_char'.
3228         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3229
3230 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3231
3232         * mule-charset.c (Vcharacter_name_table): New variable.
3233         (Qname): New variable.
3234         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3235         attribute.
3236         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3237         `Vcharacter_name_table' for `name' attribute.
3238         (Fremove_char_attribute): Use function `remove_char_ccs'.
3239         (put_char_ccs_code_point): New function.
3240         (remove_char_ccs): New function.
3241         (syms_of_mule_charset): Add new symbol `name'.
3242         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3243
3244 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3245
3246         * mule-charset.c (make_byte_table): Add new argument `older'.
3247         (make_char_id_table): Likewise.
3248         (copy_char_id_table): Comment out because it is not used.
3249         (put_char_id_table): Modify for `make_byte_table'.
3250         (Fput_char_attribute): Make encoding_table as older object;
3251         inherit older bit of `Vcharacter_composition_table'.
3252         (mark_charset): Don't mark `cs->encoding_table'.
3253         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3254         normal object; make `Vcharacter_composition_table' as an older
3255         object; delete staticpro for `Vcharacter_composition_table'; make
3256         `Vcharacter_variant_table' as a normal object.
3257
3258         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3259         (mark_object): Don't check older object in UTF-2000.
3260
3261         * lrecord.h (struct lrecord_header): Add new member `older' in
3262         UTF-2000.
3263         (set_lheader_implementation): Setup `SLI_header->older' in
3264         UTF-2000.
3265         (set_lheader_older_implementation): New macro in UTF-2000.
3266         (OLDER_RECORD_P): New macro in UTF-2000.
3267         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3268         (alloc_older_lcrecord): New prototype in UTF-2000.
3269         (alloc_older_lcrecord_type): New macro in UTF-2000.
3270
3271 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3272
3273         * mule-charset.c (byte_table_description): Use
3274         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3275         (char_id_table_description): Delete bogus `, 1'.
3276         (Fget_char_attribute): Refer encoding_table of each coded-charset
3277         to get value of coded-charset attribute of a character.
3278         (Fput_char_attribute): Use `make_older_vector' instead of
3279         `make_vector'; use encoding_table of each coded-charset to store
3280         value of coded-charset attribute of a character.
3281         (Fremove_char_attribute): Use encoding_table of each coded-charset
3282         to store value of coded-charset attribute of a character.
3283         (mark_charset): Mark `cs->encoding_table'; don't mark
3284         `cs->decoding_table'.
3285         (charset_description): Add description of new member
3286         `encoding_table'.
3287         (make_charset): Initialize `encoding_table'.
3288
3289         * char-ucs.h (struct Lisp_Charset): Add new member
3290         `encoding_table'.
3291         (CHARSET_ENCODING_TABLE): New macro.
3292         (XCHARSET_ENCODING_TABLE): New macro.
3293         (charset_code_point): New implementation.
3294         (encode_char_1): Likewise.
3295
3296         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3297         (disksave_object_finalization_1): Call finalizers of
3298         `all_older_lcrecords' in UTF-2000.
3299         (make_older_vector): New function in UTF-2000.
3300         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3301         UTF-2000.
3302
3303         * lisp.h (make_older_vector): New prototype in UTF-2000.
3304
3305 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3306
3307         * lrecord.h (enum lrecord_type): Rename
3308         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3309
3310         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3311         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3312         `get_char_code_table'.
3313
3314         * mule-charset.c (mark_char_id_table): Renamed from
3315         `mark_char_code_table'.
3316         (char_id_table_equal): Renamed from `char_code_table_equal'.
3317         (char_id_table_hash): Renamed from `char_code_table_hash'.
3318         (make_char_id_table): Renamed from `make_char_code_table'.
3319         (copy_char_id_table): Renamed from `copy_char_code_table'.
3320         (get_char_id_table): Renamed from `get_char_code_table'.
3321         (put_char_id_table): Renamed from `put_char_code_table'.
3322         (to_char_id): Renamed from `to_char_code'.
3323
3324         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3325         `Lisp_Char_Code_Table'.
3326         (char_id_table): Renamed from `char_code_table'.
3327         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3328         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3329         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3330         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3331         (get_char_id_table): Renamed from `get_char_code_table'.
3332
3333 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3334
3335         * lrecord.h (enum lrecord_type): Rename
3336         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3337
3338         * mule-charset.c (mark_byte_table): Renamed from
3339         `mark_char_byte_table'.
3340         (byte_table_equal): Renamed from `char_byte_table_equal'.
3341         (byte_table_hash): Renamed from `byte_table_hash'.
3342         (make_byte_table): Renamed from `make_byte_table'.
3343         (copy_byte_table): Renamed from `copy_char_byte_table'.
3344
3345         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3346         `Lisp_Char_Byte_Table'.
3347         (byte_table): Renamed from `char_byte_table'.
3348         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3349         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3350         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3351         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3352
3353 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3354
3355         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3356         (dfc_convert_to_internal_format): Likewise.
3357         
3358         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3359         * text-coding.c (Fcoding_system_alias_p): New function.
3360         * text-coding.c (Fcoding_system_aliasee): New function.
3361         * text-coding.c (append_suffix_to_symbol): New function.
3362         * text-coding.c (dangling_coding_system_alias_p): New function.
3363         * text-coding.c (Ffind_coding_system):
3364         * text-coding.c (Fcopy_coding_system):
3365         * text-coding.c (encode_coding_no_conversion):
3366         * text-coding.c (syms_of_file_coding):
3367         * text-coding.c (vars_of_file_coding):
3368         Rewrite coding system alias code.
3369         Allow nested aliases, like symbolic links.
3370         Allow redefinition of coding system aliases.
3371         Prevent existence of dangling coding system aliases.
3372         Eliminate convert_to_external_format.
3373         Eliminate convert_to_internal_format.
3374         
3375         * text-coding.c: Change enum eol_type to eol_type_t.
3376
3377 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3378
3379         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3380         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3381
3382         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3383         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3384
3385 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3386
3387         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3388         `ideograph-daikanwa'.
3389
3390         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3391         (Vcharset_ucs_bmp): Likewise.
3392         (Vcharset_mojikyo): Add new extern variable definition.
3393         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3394         (Vcharset_latin_iso8859_3): Likewise.
3395         (Vcharset_latin_iso8859_4): Likewise.
3396         (Vcharset_latin_iso8859_9): Likewise.
3397         (Vcharset_latin_viscii_lower): Likewise.
3398         (Vcharset_latin_viscii_upper): Likewise.
3399         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3400         `mojikyo' code-point is used to decode.
3401         (encode_char_2): New function [to convert `mojikyo' code-point to
3402         Mojikyo font encoding].
3403         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3404         (breakup_char_1): Likewise.
3405         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3406
3407 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3408
3409         * text-coding.c (Fmake_coding_system): Add document about
3410         `disable-composition' property.
3411
3412 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3413
3414         * text-coding.c (Qdisable_composition): New variable; delete
3415         `Qcomposite'.
3416         (Fmake_coding_system): Add new property `disable-composite';
3417         delete property `composite'.
3418         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3419         instead of `!CODING_SYSTEM_COMPOSITE'.
3420         (syms_of_file_coding): Add new symbol `disable-composition';
3421         delete symbol `composite'.
3422
3423         * file-coding.h (struct Lisp_Coding_System): Add
3424         `disable_composition'; delete `enable_composition'.
3425         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3426         `CODING_SYSTEM_COMPOSITE'.
3427         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3428         `XCODING_SYSTEM_COMPOSITE'.
3429
3430 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3431
3432         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3433         to 0.15.
3434
3435 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3436
3437         * text-coding.c (Qcomposite): New variable.
3438         (Fmake_coding_system): Add new property `composite'.
3439         (struct decoding_stream): Add `combined_char_count',
3440         `combined_chars' and `combining_table' in UTF-2000.
3441         (COMPOSE_FLUSH_CHARS): New macro.
3442         (COMPOSE_ADD_CHAR): New macro.
3443         (reset_decoding_stream): Reset `str->combined_char_count' and
3444         `str->combining_table' in UTF-2000.
3445         (decode_coding_iso2022): Modify for character-decomposition.
3446         (syms_of_file_coding): Add new symbol `composite'.
3447
3448 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3449
3450         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3451         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3452         of `Vcharacter_composition_table' if `->decomposition' property
3453         has only 1 element.
3454         (Qlatin_tcvn5712): New variable.
3455         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3456         (complex_vars_of_mule_charset): Add new coded-charset
3457         `latin-tcvn5712'.
3458
3459         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3460
3461 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3462
3463         * file-coding.h (struct Lisp_Coding_System): Add
3464         `enable_composition'.
3465         (CODING_SYSTEM_COMPOSITE): New macro.
3466         (XCODING_SYSTEM_COMPOSITE): New macro.
3467
3468 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3469
3470         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3471
3472 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3473
3474         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3475         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3476
3477 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3478
3479         * mule-charset.c (Vcharset_mojikyo): New variable.
3480         (Fdefine_char): Don't use coded-charset which does not have
3481         non-builtin character range to allocate character-id.
3482         (Qmojikyo): New variable.
3483         (syms_of_mule_charset): Add new symbol `mojikyo'.
3484         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3485
3486         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3487         (LEADING_BYTE_MOJIKYO): New macro.
3488         (MIN_CHAR_MOJIKYO): New macro.
3489         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3490         (MAX_CHAR_MOJIKYO): New macro.
3491
3492 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3493
3494         * mule-charset.c (remove_char_attribute): Fixed.
3495
3496 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3497
3498         * mule-charset.c (remove_char_attribute): New function.
3499         (Fremove_char_attribute): New function.
3500         (encode_builtin_char_1): Comment out builtin-support for
3501         greek-iso8859-7 and cyrillic-iso8859-5.
3502         (Fdecode_char): Check `code' is an integer.
3503         (syms_of_mule_charset): Add `remove-char-attribute'.
3504         (MIN_CHAR_GREEK): Deleted.
3505         (MAX_CHAR_GREEK): Likewise.
3506         (MIN_CHAR_CYRILLIC): Likewise.
3507         (MAX_CHAR_CYRILLIC): Likewise.
3508         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3509         MAX_CHAR_GREEK for `greek-iso8859-7'.
3510
3511         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3512         (MAX_CHAR_GREEK): Likewise.
3513         (MIN_CHAR_CYRILLIC): Likewise.
3514         (MAX_CHAR_CYRILLIC): Likewise.
3515
3516 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3517
3518         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3519         format is used without `ucs' property.
3520         (Fdecode_char): Fix problem with GR representation.
3521         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3522         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3523
3524 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3525
3526         * mule-charset.c (make_builtin_char): New function.
3527         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3528         (Fset_charset_mapping_table): Modify for new representation of
3529         code-point.
3530         (Fdecode_char): New function.
3531         (syms_of_mule_charset): Add new builtin function `decode-char' in
3532         UTF-2000.
3533
3534         * char-ucs.h (make_builtin_char): New prototype.
3535         (DECODE_CHAR): New inline function.
3536         (MAKE_CHAR): Use `DECODE_CHAR'.
3537
3538 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3539
3540         * text-coding.c (parse_charset_conversion_specs): Use
3541         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3542         `XCHARSET_TYPE'.
3543         (iso2022_designate): Likewise.
3544
3545         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3546         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3547
3548         * mule-charset.c (Vcharset_ucs): New variable.
3549         (print_charset): Change design; use `CHARSET_CHARS' and
3550         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3551         (make_charset): Change signature to specify `chars' and
3552         `dimension' instead of `type'.
3553         (range_charset_code_point): Modify for 256^n-set.
3554         (encode_builtin_char_1): Encode as `ucs' in default.
3555         (Fmake_charset): Modify for `make_charset'.
3556         (Fmake_reverse_direction_charset): Likewise.
3557         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3558         UTF-2000.
3559         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3560         for `make_charset'.
3561
3562         * char-ucs.h (Vcharset_ucs): New variable.
3563         (LEADING_BYTE_UCS): New macro.
3564         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3565         and `chars' to `unsigned short' from `unsigned int'.
3566         (CHARSET_TYPE): Deleted.
3567         (XCHARSET_TYPE): Deleted.
3568
3569 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3570
3571         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3572
3573         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3574         (ENCODE_CHAR): New macro.
3575
3576 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3577
3578         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3579         to 0.14 (Kawachi-Katakami).
3580
3581 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3582
3583         * text-coding.c (char_encode_shift_jis): Modify for
3584         `charset_code_point'.
3585         (char_encode_iso2022): Likewise.
3586
3587         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3588         (integer) instead of list of <Lisp_Object>s (integers) as the
3589         format of code-point of a coded-charset.
3590         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3591         (encode_builtin_char_1): New function; delete
3592         `split_builtin_char'.
3593         (charset_code_point): Return <int> instead of <Lisp_Object>.
3594         (Fsplit_char): Don't use `SPLIT_CHAR'.
3595
3596         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3597         prototype for `split_builtin_char'.
3598         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3599         (charset_code_point): Likewise.
3600         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3601         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3602
3603 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3604
3605         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3606         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3607
3608 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3609
3610         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3611
3612         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3613         (MAX_CHAR_OBS_94x94): Deleted.
3614
3615 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3616
3617         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3618
3619         * char-ucs.h (MAX_CHAR_BMP): New macro.
3620
3621 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3622
3623         * text-coding.c: Sync with r21-2-24.
3624
3625 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3626
3627         * file-coding.c: Modify for UTF-2000.
3628
3629 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3630
3631         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3632         to 0.13 (Takaida).
3633
3634 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3635
3636         * mule-charset.c (split_builtin_char): Delete builtin support for
3637         `katakana-jisx0201'.
3638         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3639         BMP area in builtin representation.
3640
3641         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3642         `Vcharset_katakana_jisx0201'.
3643
3644 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3645
3646         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3647         (Qisolated): New variable.
3648         (Qinitial): New variable.
3649         (Qmedial): New variable.
3650         (Qfinal): New variable.
3651         (Qvertical): New variable.
3652         (Qsmall): New variable.
3653         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3654         `Qvertical' and `Qsmall'.
3655         (Qmojikyo_pj_[1 .. 21]): New variable.
3656         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3657         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3658         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3659         .. 21]'.
3660
3661 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3662
3663         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3664         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3665         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3666
3667 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3668
3669         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3670         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3671         BMP.
3672         (Qjapanese_jisx0208_1990): New variable.
3673         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3674         (complex_vars_of_mule_charset): Add new coded-charset
3675         `japanese-jisx0208-1990'.
3676
3677         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3678         (MIN_CHAR_JIS_X0208_1990): New macro.
3679         (MAX_CHAR_JIS_X0208_1990): New macro.
3680
3681 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3682
3683         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3684         coded-charset is not found.
3685
3686 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3687
3688         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3689         (Fdefine_char): Use `Fmake_char'.
3690
3691 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3692
3693         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3694         (Vcharset_hiragana_jisx0208): Deleted.
3695         (Vcharset_katakana_jisx0208): Deleted.
3696         (Qideograph_daikanwa): New variable.
3697         (Qhiragana_jisx0208): Deleted.
3698         (Qkatakana_jisx0208): Deleted.
3699         (split_builtin_char): Split `ideograph-daikanwa'.
3700         (Fsplit_char): New implementation for UTF-2000.
3701         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3702         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3703         (complex_vars_of_mule_charset): Add new coded-charset
3704         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3705         `katakana-jisx0208'.
3706
3707         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3708         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3709         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3710         (MIN_CHAR_DAIKANWA): New macro.
3711         (MAX_CHAR_DAIKANWA): New macro.
3712
3713 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3714
3715         * data.c (Fstring_to_number): Don't recognize floating point if
3716         base is not 10.
3717
3718 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3719
3720         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3721
3722 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3723
3724         * mule-charset.c (Qsquare): New variable.
3725         (to_char_code): Add `Qsquare'.
3726         (syms_of_mule_charset): Add new symbol `square'.
3727
3728 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3729
3730         * mule-charset.c (Qcircle): New variable.
3731         (to_char_code): Add `Qcircle'.
3732         (syms_of_mule_charset): Add new symbol `circle'.
3733
3734 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3735
3736         * mule-charset.c (Qfont): New variable.
3737         (to_char_code): Add `Qfont'.
3738         (syms_of_mule_charset): Add new symbol `font'.
3739
3740 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3741
3742         * mule-charset.c (Qsub): New variable.
3743         (to_char_code): Add `Qsub'.
3744         (syms_of_mule_charset): Add new symbol `sub'.
3745
3746 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3747
3748         * mule-charset.c (Fput_char_attribute): Convert each element of
3749         VALUE to GL position if ATTRIBUTE is a GR-set,
3750
3751 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3752
3753         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3754         coded-charset is a GR-set.
3755
3756 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3757
3758         * mule-charset.c (Fput_char_attribute): Check each element of
3759         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3760
3761 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3762
3763         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3764         UTF-2000.
3765         (Qethiopic_ucs): New variable in UTF-2000.
3766         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3767         (complex_vars_of_mule_charset): Add new coded-charset
3768         `ethiopic-ucs' in UTF-2000.
3769
3770         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3771         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3772         9)'.
3773         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3774         10)'.
3775         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3776
3777 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3778
3779         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3780         `ascii'.
3781
3782 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3783
3784         * mule-charset.c (Vcharacter_variant_table): New variable.
3785         (Q_ucs): New variable.
3786         (Fchar_variants): New function.
3787         (Fput_char_attribute): Register `->ucs' value to
3788         `Vcharacter_variant_table'.
3789         (syms_of_mule_charset): Add new function `char-variants' and new
3790         symbol `->ucs'.
3791         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3792
3793 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3794
3795         * mule-charset.c (get_char_code_table): Allow negative character
3796         code.
3797         (put_char_code_table): Likewise.
3798         (Vcharacter_composition_table): New variable.
3799         (Q_decomposition): New variable.
3800         (Qwide): New variable.
3801         (Qnarrow): New variable.
3802         (Qcompat): New variable.
3803         (QnoBreak): New variable.
3804         (Qsuper): New variable.
3805         (Qfraction): New variable.
3806         (to_char_code): New function.
3807         (Fget_composite_char): New function.
3808         (Fput_char_attribute): Register `->decomposition' value to
3809         `Vcharacter_composition_table'.
3810         (syms_of_mule_charset): Add new function `get-composite-char', new
3811         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3812         `super' and `fraction'.
3813         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3814
3815 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3816
3817         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3818         character; copy the return value.
3819
3820 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3821
3822         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3823
3824         * mule-charset.c (range_charset_code_point): Must use make_int.
3825         (split_builtin_char): New function.
3826
3827 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3828
3829         * mule-charset.c (char_byte_table): Change name from
3830         "char-code-table" to "char-byte-table".
3831         (mark_char_code_table): New function.
3832         (char_code_table_equal): New function.
3833         (char_code_table_hash): New function.
3834         (char_code_table_description): New constant.
3835         (char_code_table): New type.
3836         (make_char_code_table): New function.
3837         (copy_char_code_table): New function.
3838         (get_char_code_table): Modify for `char_code_table' type.
3839         (put_char_code_table): Likewise.
3840         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3841         (Kashiwara).
3842
3843         * char-ucs.h (char_code_table): New type.
3844         (XCHAR_CODE_TABLE): New macro.
3845         (XSETCHAR_CODE_TABLE): New macro.
3846         (CHAR_CODE_TABLE_P): New macro.
3847         (GC_CHAR_CODE_TABLE_P): New macro.
3848         (struct Lisp_Char_Code_Table): New structure.
3849
3850 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3851
3852         * mule-charset.c (Fmake_charset): Setup byte_offset for
3853         {94|96}^n-set.
3854
3855 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3856
3857         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3858         character.
3859
3860 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3861
3862         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3863         is found.
3864
3865 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3866
3867         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3868         charset, it is regarded as a charset.
3869         (put_char_attribute): New function in UTF-2000.
3870         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
3871         charset, mapping-table of the charset is modified.
3872         (Fdefine_char): New function in UTF-2000.
3873         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
3874         `Fput_char_attribute'.
3875         (syms_of_mule_charset): Add new function `define-char' and new
3876         symbol `ucs' in UTF-2000.
3877         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
3878
3879 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3880
3881         * mule-charset.c (Fcharset_name): Define `byte_offset' in
3882         non-UTF-2000 configuration.
3883
3884 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3885
3886         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
3887         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
3888
3889         * mule-charset.c (mark_charset): `cs->encoding_table' has been
3890         deleted.
3891         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
3892         (Fset_charset_mapping_table): Likewise.
3893
3894         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
3895         (CHARSET_ENCODING_TABLE): Delete.
3896         (XCHARSET_ENCODING_TABLE): Delete.
3897         (charset_code_point): New interface.
3898
3899 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3900
3901         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
3902         instead of `charset_get_byte1' and `charset_get_byte2'.
3903
3904         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
3905         (charset_get_byte2): Deleted.
3906
3907 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3908
3909         * char-ucs.h (SPLIT_CHAR): New inline function.
3910         (breakup_char_1): Use `SPLIT_CHAR'.
3911
3912         * mule-charset.c (range_charset_code_point): New function.
3913         (charset_code_point): New function.
3914
3915         * char-ucs.h (range_charset_code_point): New interface.
3916         (breakup_char_1): Use `range_charset_code_point'.
3917
3918 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3919
3920         * mule-charset.c (Fmake_charset): Delete unused local variable
3921         `code_offset'.
3922
3923         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
3924         (breakup_char_1): Find a charset and code-point in
3925         `Vcharacter_attribute_table'.
3926
3927 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3928
3929         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3930         to 0.10 (Yao).
3931
3932 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3933
3934         * mule-charset.c (Vcharacter_attribute_table): New variable.
3935         (Fchar_attribute_alist): New function.
3936         (Fget_char_attribute): New function.
3937         (Fput_char_attribute): New function.
3938         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
3939         too.
3940         (syms_of_mule_charset): Add new function `char-attribute-alist',
3941         `get-char-attribute' and `put-char-attribute'.
3942         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
3943
3944 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
3945
3946         * mule-charset.c (Fmake_charset): Just use
3947         `get_unallocated_leading_byte'.
3948
3949         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
3950         sets; don't use final-byte based number for private sets.
3951
3952 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3953
3954         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
3955         integer.
3956
3957 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3958
3959         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3960         to 0.9.
3961
3962 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3963
3964         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
3965         of `CHAR_LEADING_BYTE' in UTF-2000.
3966
3967         * insdel.c (find_charsets_in_bufbyte_string): Use
3968         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3969         (find_charsets_in_emchar_string): Likewise.
3970
3971         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
3972         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
3973
3974         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
3975         (CHAR_CHARSET_ID): New macro.
3976
3977 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3978
3979         * chartab.c (get_char_table): Don't use type `Charset_ID' for
3980         charset-id - MIN_LEADING_BYTE.
3981         (put_char_table): Likewise.
3982
3983 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3984
3985         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
3986         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
3987         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
3988         (CHARSET_ID_OFFSET): New macro.
3989         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
3990         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
3991         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
3992         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3993         4).
3994         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
3995         5).
3996         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
3997         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
3998         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
3999         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4000         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4001
4002 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4003
4004         * mule-charset.c (next_allocated_leading_byte): New variable in
4005         UTF-2000.
4006         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4007         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4008         (get_unallocated_leading_byte): Simply use
4009         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4010         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4011         UTF-2000.
4012
4013         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4014         (MAX_LEADING_BYTE_PRIVATE): New macro.
4015         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4016         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4017
4018 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4019
4020         * mule-charset.c (Fmake_charset): Allocate final-byte based
4021         charset-id for 94-set, 96-set and 94x94-set.
4022
4023 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4024
4025         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4026         ambiguous `else'.
4027         (Fmake_charset): Likewise.
4028         (complex_vars_of_mule_charset): Modify the font registry of
4029         `ucs-bmp' not to match `Ethiopic-Unicode'.
4030
4031 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4032
4033         * mule-charset.c (complex_vars_of_mule_charset): Add font
4034         registory of `ucs-bmp'.
4035
4036 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4037
4038         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4039         coded-charsets in `default-coded-charset-priority-list' when
4040         breaking up a character.
4041
4042         * mule-charset.c (Vcharset_latin_viscii): New variable.
4043         (Qlatin_viscii): New variable.
4044         (make_charset): Don't use `decoding_table'.
4045         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4046         byte_offset.
4047         (Fset_charset_mapping_table): New implementation.
4048         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4049         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4050         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4051         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4052         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4053         charset `latin_viscii'.
4054
4055         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4056         (CHARSET_TYPE_94X94): Change to 1 from 2.
4057         (CHARSET_TYPE_96): Change to 2 from 1.
4058         (CHARSET_TYPE_128): New macro.
4059         (CHARSET_TYPE_128X128): Change to 5 from 4.
4060         (CHARSET_TYPE_256): New macro.
4061         (CHARSET_TYPE_256X256): Change to 7 from 5.
4062         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4063
4064 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4065
4066         * text-coding.c (char_encode_shift_jis): Refer
4067         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4068         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4069
4070         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4071         (char_byte_table_equal): New function in UTF-2000.
4072         (char_byte_table_hash): New function in UTF-2000.
4073         (char_byte_table_description): New constant in UTF-2000.
4074         (char_byte_table): New type in UTF-2000.
4075         (make_char_byte_table): New function in UTF-2000.
4076         (copy_char_byte_table): New function in UTF-2000.
4077         (make_char_code_table): New macro in UTF-2000.
4078         (get_char_code_table): New function in UTF-2000.
4079         (put_char_code_table): New function in UTF-2000.
4080         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4081         (charset_description): Add setting in UTF-2000.
4082         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4083         `CHARSET_TO_BYTE1_TABLE(cs)'.
4084         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4085         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4086         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4087         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4088         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4089         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4090         `CHARSET_TO_BYTE2_TABLE(cs)'.
4091
4092         * char-ucs.h (char_byte_table): New type.
4093         (XCHAR_BYTE_TABLE): New macro.
4094         (XSETCHAR_BYTE_TABLE): New macro.
4095         (CHAR_BYTE_TABLE_P): New macro.
4096         (GC_CHAR_BYTE_TABLE_P): New macro.
4097         (struct Lisp_Char_Byte_Table): New structure.
4098         (get_char_code_table): New interface.
4099         (Emchar_to_byte_table): Deleted.
4100         (get_byte_from_character_table): Deleted.
4101         (struct Lisp_Charset): Add `encoding_table'; delete
4102         `to_byte1_table' and `to_byte2_table'.
4103         (CHARSET_ENCODING_TABLE): New macro.
4104         (CHARSET_TO_BYTE1_TABLE): Deleted.
4105         (CHARSET_TO_BYTE2_TABLE): Deleted.
4106         (XCHARSET_ENCODING_TABLE): New macro.
4107         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4108         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4109
4110 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4111
4112         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4113         `vietnamese-viscii-*'.
4114
4115 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4116
4117         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4118         (Qvietnamese_viscii_upper): New variable.
4119         (Fdefine_charset_alias): New function.
4120         (syms_of_mule_charset): Add new function `define-charset-alias'.
4121         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4122         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4123         `latin-viscii-*'.
4124
4125 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4126
4127         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4128         (MAX_CHAR_OBS_94x94): New macro.
4129         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4130         for 94x94 sets.
4131
4132         * mule-charset.c (put_byte_from_character_table): Change unit size
4133         from 128 to 256.
4134         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4135         not defined.
4136         (Fmake_reverse_direction_charset): Modify dummy argument of
4137         `make_charset' for non-UTF-2000 environment.
4138
4139 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4140
4141         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4142
4143         * mule-charset.c (destroy_byte_from_character_table): New macro.
4144         (latin_jisx0201_to_ucs): Deleted.
4145         (latin_iso8859_2_to_ucs): Deleted.
4146         (latin_iso8859_3_to_ucs): Deleted.
4147         (latin_iso8859_4_to_ucs): Deleted.
4148         (latin_iso8859_9_to_ucs): Deleted.
4149         (latin_viscii_lower_to_ucs): Deleted.
4150         (latin_viscii_upper_to_ucs): Deleted.
4151         (mark_charset): Mark `cs->decoding_table'.
4152         (Fcharset_mapping_table): Fix DOC-string.
4153         (Fset_charset_mapping_table): New function.
4154         (syms_of_mule_charset): Add nwe function
4155         `set-charset-mapping-table'.
4156         (complex_vars_of_mule_charset): Don't setup and use
4157         `latin_*_to_ucs'.
4158
4159 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4160
4161         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4162         charset.
4163
4164 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4165
4166         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4167         (Vcharset_katakana_jisx0208): New variable.
4168         (Qhiragana_jisx0208): New variable.
4169         (Qkatakana_jisx0208): New variable.
4170         (make_charset): Add new argument `byte_offset'.
4171         (charset_get_byte1): Modify for new coded-charset definition; use
4172         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4173         `XCHARSET_BYTE_OFFSET'.
4174         (Fmake_charset): Modify for `make_charset'.
4175         (Fmake_reverse_direction_charset): Likewise.
4176         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4177         `katakana-jisx0208'.
4178         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4179         `.'  in font registry of charset `katakana-jisx0201',
4180         `latin-jisx0201', `vietnamese-viscii-lower' and
4181         `vietnamese-viscii-upper'; modify DOC-string of charset
4182         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4183         registry of charset `japanese-jisx0208' not to use font for JIS
4184         X0208:1990; add new charset `hiragana-jisx0208' and
4185         `katakana-jisx0208'.
4186
4187         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4188         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4189         (struct Lisp_Charset): Add `byte_offset'.
4190         (CHARSET_BYTE_OFFSET): New macro.
4191         (XCHARSET_UCS_MIN): New macro.
4192         (XCHARSET_UCS_MAX): New macro.
4193         (XCHARSET_CODE_OFFSET): New macro.
4194         (XCHARSET_BYTE_OFFSET): New macro.
4195         (MIN_CHAR_HIRAGANA): New macro.
4196         (MAX_CHAR_HIRAGANA): New macro.
4197         (MIN_CHAR_KATAKANA): New macro.
4198         (MAX_CHAR_KATAKANA): New macro.
4199         (MAKE_CHAR): Modify for new coded-charset definition; use
4200         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4201         `XCHARSET_BYTE_OFFSET'.
4202
4203 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4204
4205         * mule-charset.c (CHAR96): Deleted.
4206         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4207         <Lisp_Object>.
4208         (latin_iso8859_2_to_ucs): Likewise.
4209         (latin_iso8859_3_to_ucs): Likewise.
4210         (latin_iso8859_4_to_ucs): Likewise.
4211         (latin_iso8859_9_to_ucs): Likewise.
4212         (latin_viscii_lower_to_ucs): Likewise.
4213         (latin_viscii_upper_to_ucs): Likewise.
4214         (latin_tcvn5712_to_ucs): Commented out.
4215         (make_charset): Change type of argument `decoding_table' from
4216         <Emchar*> to <Lisp_Object> [vector of characters].
4217         (Fmake_charset): Modify for `make_charset'.
4218         (Fmake_reverse_direction_charset): Likewise.
4219         (Fcharset_mapping_table): New function in UTF-2000.
4220         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4221         UTF-2000.
4222         (complex_vars_of_mule_charset): Modify for type change of
4223         `*_to_ucs'; modify for `make_charset'.
4224
4225         * char-ucs.h (struct Lisp_Charset): Change type of
4226         `decoding_table' from <Emchar*> to <Lisp_Object>.
4227         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4228
4229 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4230
4231         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4232         error with non-UTF-2000-Mule.
4233
4234 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4235
4236         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4237         in lisp again].
4238         (Vcharset_chinese_cns11643_4): Likewise.
4239         (Vcharset_chinese_cns11643_5): Likewise.
4240         (Vcharset_chinese_cns11643_6): Likewise.
4241         (Vcharset_chinese_cns11643_7): Likewise.
4242         (Qchinese_cns11643_3): Likewise.
4243         (Qchinese_cns11643_4): Likewise.
4244         (Qchinese_cns11643_5): Likewise.
4245         (Qchinese_cns11643_6): Likewise.
4246         (Qchinese_cns11643_7): Likewise.
4247         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4248         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4249         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4250         (complex_vars_of_mule_charset): Likewise.
4251
4252 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4253
4254         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4255         96-set.
4256         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4257         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4258
4259 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4260
4261         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4262         0xFF60.
4263         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4264         (breakup_char_1): Likewise.
4265
4266         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4267         one of them includes the specified character.
4268
4269 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4270
4271         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4272
4273 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4274
4275         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4276
4277 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4278
4279         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4280         definition for non-UTF-2000 Mule.
4281         (latin_iso8859_3_to_ucs): Likewise.
4282         (latin_iso8859_4_to_ucs): Likewise.
4283         (latin_iso8859_9_to_ucs): Likewise.
4284         (latin_jisx0201_to_ucs): Likewise.
4285         (MIN_CHAR_THAI): Likewise.
4286         (MAX_CHAR_THAI): Likewise.
4287         (MIN_CHAR_GREEK): Likewise.
4288         (MAX_CHAR_GREEK): Likewise.
4289         (MIN_CHAR_HEBREW): Likewise.
4290         (MAX_CHAR_HEBREW): Likewise.
4291         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4292         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4293         (MIN_CHAR_CYRILLIC): Likewise.
4294         (MAX_CHAR_CYRILLIC): Likewise.
4295
4296 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4297
4298         * char-ucs.h (breakup_char_1): Use
4299         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4300         thai-tis620 and katakana-jisx0201 area.
4301
4302 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4303
4304         * char-ucs.h (breakup_char_1): Use
4305         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4306         area.
4307
4308         * text-coding.c (reset_encoding_stream): Fixed.
4309         (char_encode_ucs4): Delete `& 255'.
4310
4311         * char-ucs.h (breakup_char_1): Use
4312         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4313
4314 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4315
4316         * file-coding.c (Fmake_coding_system): Don't set up
4317         `codesys->fixed.size'.
4318         (encode_coding_no_conversion): Don't refer
4319         `str->codesys->fixed.size'.
4320
4321 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4322
4323         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4324         (latin_a_char_to_byte1): Deleted.
4325         (latin_a_char_to_byte2): Deleted.
4326
4327 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4328
4329         * mule-charset.c (make_charset): Add new argument `ucs_min',
4330         `ucs_max' and `code_offset'.
4331         (charset_get_byte1): New implementation [delete specific charset
4332         depended implementations].
4333         (Fmake_charset): Modify for `make_charset'.
4334         (Fmake_reverse_direction_charset): Likewise.
4335         (complex_vars_of_mule_charset): Likewise.
4336
4337         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4338         `code_offset'.
4339         (CHARSET_UCS_MIN): New macro.
4340         (CHARSET_UCS_MAX): New macro.
4341         (CHARSET_CODE_OFFSET): New macro.
4342         (MAKE_CHAR): Delete charset depended definitions [except
4343         katakana-jisx0201].
4344
4345 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4346
4347         * char-ucs.h (breakup_char_1): Use
4348         `Vdefault_coded_charset_priority_list' for C0-Controls,
4349         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4350
4351 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4352
4353         * char-ucs.h (charset_get_byte1): New function.
4354         (XCHARSET_GET_BYTE1): Deleted.
4355         (charset_get_byte2): New function.
4356         (XCHARSET_GET_BYTE2): Deleted.
4357         (Vdefault_coded_charset_priority_list): New external variable.
4358         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4359         `Vdefault_preferred_coded_charset_list'.
4360
4361         * mule-charset.c (charset_get_byte1): New function.
4362         (charset_get_byte2): New function.
4363         (Vdefault_coded_charset_priority_list): New variable.
4364         (vars_of_mule_charset): Add new variable
4365         `default-coded-charset-priority-list'.
4366
4367 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4368
4369         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4370         (XCHARSET_GET_BYTE2): New inline function.
4371         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4372         `XCHARSET_GET_BYTE2'.
4373
4374 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4375
4376         * mule-charset.c (make_charset): Initialize
4377         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4378         NULL if table is not defined.
4379
4380 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4381
4382         * text-coding.c (char_encode_shift_jis): Use
4383         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4384         `ucs_to_latin_jisx0201'.
4385
4386         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4387         (ucs_to_latin_iso8859_2): Deleted.
4388         (ucs_to_latin_iso8859_3): Deleted.
4389         (ucs_to_latin_iso8859_4): Deleted.
4390         (ucs_to_latin_iso8859_9): Deleted.
4391         (ucs_to_latin_viscii_lower): Deleted.
4392         (ucs_to_latin_viscii_upper): Deleted.
4393         (ucs_to_latin_tcvn5712): Deleted.
4394         (make_charset): Add new argument `decoding_table'; set up
4395         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4396         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4397         `decoding_table' is defined in UTF-2000.
4398         (Fmake_charset): Modify for `make_charset'.
4399         (Fmake_reverse_direction_charset): Likewise.
4400         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4401         and `GENERATE_96_SET'.
4402
4403         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4404         (ucs_to_latin_jisx0201): Deleted.
4405         (latin_iso8859_2_to_ucs): Deleted.
4406         (ucs_to_latin_iso8859_2): Deleted.
4407         (latin_iso8859_3_to_ucs): Deleted.
4408         (ucs_to_latin_iso8859_3): Deleted.
4409         (latin_iso8859_4_to_ucs): Deleted.
4410         (ucs_to_latin_iso8859_4): Deleted.
4411         (latin_iso8859_9_to_ucs): Deleted.
4412         (ucs_to_latin_iso8859_9): Deleted.
4413         (latin_viscii_lower_to_ucs): Deleted.
4414         (ucs_to_latin_viscii_lower): Deleted.
4415         (latin_viscii_upper_to_ucs): Deleted.
4416         (ucs_to_latin_viscii_upper): Deleted.
4417         (struct Lisp_Charset): Renamed `encoding_table' to
4418         `to_byte1_table'; add `to_byte2_table'.
4419         (CHARSET_DECODING_TABLE): New macro.
4420         (CHARSET_TO_BYTE1_TABLE): New macro.
4421         (CHARSET_TO_BYTE2_TABLE): New macro.
4422         (XCHARSET_DECODING_TABLE): New macro.
4423         (XCHARSET_TO_BYTE1_TABLE): New macro.
4424         (XCHARSET_TO_BYTE2_TABLE): New macro.
4425         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4426         tables.
4427         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4428         don't use `ucs_to_*' tables.
4429
4430 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4431
4432         * text-coding.c (Fmake_coding_system): Don't set up
4433         `codesys->fixed.size'.
4434         (encode_coding_no_conversion): Use `if' instead of `switch'.
4435
4436         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4437
4438 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4439
4440         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4441         (Fmake_charset): Modify for `make_charset'.
4442         (Fmake_reverse_direction_charset): Likewise.
4443         (complex_vars_of_mule_charset): Likewise.
4444
4445 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4446
4447         * text-coding.c (char_encode_shift_jis): Use table
4448         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4449
4450 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4451
4452         * text-coding.c (text_encode_generic): Use `if' instead of
4453         `switch'.
4454         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4455         decode JIS-Latin.
4456
4457 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4458
4459         * text-coding.c (encode_coding_sjis): Deleted.
4460         (char_encode_shift_jis): New function.
4461         (char_finish_shift_jis): New function.
4462         (reset_encoding_stream): Set up `encode_char' and `finish' for
4463         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4464         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4465         (char_encode_utf8): Treat `eol_type'.
4466
4467 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4468
4469         * file-coding.c (decode_coding_iso2022): Use
4470         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4471
4472 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4473
4474         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4475         to 0.7 (Hirano).
4476
4477 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4478
4479         * char-lb.h (CHAR_COLUMNS): New macro.
4480
4481 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4482
4483         * text-coding.c (char_encode_ucs4): New function.
4484         (char_finish_ucs4): New function.
4485         (encode_coding_ucs4): Deleted.
4486         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4487         (text_encode_generic): Delete local variable `charset' and `half'.
4488         (ucs_to_mule_table): Deleted.
4489         (mule_to_ucs_table): Deleted.
4490         (Fset_ucs_char): Deleted.
4491         (ucs_to_char): Deleted.
4492         (Fucs_char): Deleted.
4493         (Fset_char_ucs): Deleted.
4494         (Fchar_ucs): Deleted.
4495         (decode_ucs4): Deleted.
4496         (mule_char_to_ucs4): Deleted.
4497         (encode_ucs4): Deleted.
4498         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4499         (decode_coding_utf8): Likewise.
4500         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4501         (char_encode_iso2022): Fixed.
4502         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4503         `Fset_char_ucs' and `Fchar_ucs'.
4504         (complex_vars_of_file_coding): Don't initialize
4505         `ucs_to_mule_table'.
4506
4507         * objects-tty.c (tty_initialize_font_instance): Don't use
4508         `XCHARSET_COLUMNS'.
4509
4510         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4511         UTF-2000.
4512
4513         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4514         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4515
4516         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4517         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4518         (emchar_string_displayed_columns): Likewise.
4519
4520         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4521         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4522         (string_column_at_point): Likewise.
4523         (Fmove_to_column): Likewise.
4524
4525         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4526         `encoding_table' and `decoding_table'.
4527         (CHARSET_REP_BYTES): Deleted.
4528         (XCHARSET_REP_BYTES): Deleted.
4529         (XCHARSET_COLUMNS): Deleted.
4530         (CHAR_COLUMNS): New macro.
4531         (lookup_composite_char): Deleted unconditionally.
4532         (composite_char_string): Likewise.
4533
4534 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4535
4536         * char-ucs.h (Emchar_to_byte_table): New type.
4537         (get_byte_from_character_table): New function interface.
4538         (Vcharset_latin_jisx0201): New variable.
4539         (latin_jisx0201_to_ucs): New variable.
4540         (ucs_to_latin_jisx0201): New variable.
4541         (Vcharset_latin_iso8859_2): New variable.
4542         (latin_iso8859_2_to_ucs): New variable.
4543         (ucs_to_latin_iso8859_2): New variable.
4544         (Vcharset_latin_iso8859_3): New variable.
4545         (latin_iso8859_3_to_ucs): New variable.
4546         (ucs_to_latin_iso8859_3): New variable.
4547         (Vcharset_latin_iso8859_4): New variable.
4548         (latin_iso8859_4_to_ucs): New variable.
4549         (ucs_to_latin_iso8859_4): New variable.
4550         (Vcharset_latin_iso8859_9): New variable.
4551         (latin_iso8859_9_to_ucs): New variable.
4552         (ucs_to_latin_iso8859_9): New variable.
4553         (Vcharset_latin_viscii_lower): New variable.
4554         (latin_viscii_lower_to_ucs): New variable.
4555         (ucs_to_latin_viscii_lower): New variable.
4556         (Vcharset_latin_viscii_upper): New variable.
4557         (latin_viscii_upper_to_ucs): New variable.
4558         (ucs_to_latin_viscii_upper): New variable.
4559         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4560         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4561         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4562         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4563         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4564         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4565         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4566         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4567         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4568         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4569
4570         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4571         (Vcharset_latin_viscii_upper): New variable.
4572         (make_byte_from_character_table): New function.
4573         (put_byte_from_character_table): New function.
4574         (get_byte_from_character_table): New function.
4575         (CHAR96): New macro.
4576         (ucs_to_latin_jisx0201): New variable.
4577         (latin_jisx0201_to_ucs): New variable.
4578         (ucs_to_latin_iso8859_2): New variable.
4579         (latin_iso8859_2_to_ucs): New variable.
4580         (ucs_to_latin_iso8859_3): New variable.
4581         (latin_iso8859_3_to_ucs): New variable.
4582         (ucs_to_latin_iso8859_4): New variable.
4583         (latin_iso8859_4_to_ucs): New variable.
4584         (ucs_to_latin_iso8859_9): New variable.
4585         (latin_iso8859_9_to_ucs): New variable.
4586         (ucs_to_latin_viscii_lower): New variable.
4587         (latin_viscii_lower_to_ucs): New variable.
4588         (ucs_to_latin_viscii_upper): New variable.
4589         (latin_viscii_upper_to_ucs): New variable.
4590         (ucs_to_latin_tcvn5712): New variable.
4591         (latin_tcvn5712_to_ucs): New variable.
4592         (Qlatin_viscii_lower): New variable.
4593         (Qlatin_viscii_upper): New variable.
4594         (syms_of_mule_charset): Set up new symbol
4595         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4596         (complex_vars_of_mule_charset): Set up new charset
4597         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4598         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4599         `ucs_to_<CHARSET>' tables.
4600
4601 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4602
4603         * text-coding.c: New file.
4604
4605 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4606
4607         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4608
4609         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4610         (MAKE_CHAR): Modify for `ucs-bmp'.
4611         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4612         non-MULE characters of BMP.
4613
4614 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4615
4616         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4617         to 0.6.
4618
4619 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4620
4621         * lstream.h:
4622         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4623         - Include character.h for `CHAR_ASCII_P'.
4624
4625         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4626
4627         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4628         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4629
4630         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4631         (BYTE_C0_P): Likewise.
4632         (BYTE_C1_P): Likewise.
4633         (Lstream_get_emchar_1): Likewise.
4634         (Lstream_fput_emchar): Likewise.
4635         (Lstream_funget_emchar): Likewise.
4636         (copy_internal_to_external): Likewise.
4637         (copy_external_to_internal): Likewise.
4638
4639         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4640         (BYTE_C0_P): Likewise.
4641         (BYTE_C1_P): Likewise.
4642         (Lstream_get_emchar_1): Likewise.
4643         (Lstream_fput_emchar): Likewise.
4644         (Lstream_funget_emchar): Likewise.
4645         (copy_internal_to_external): Likewise.
4646         (copy_external_to_internal): Likewise.
4647
4648         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4649         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4650
4651         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4652         (BYTE_ASCII_P): Moved to mb-1byte.h.
4653
4654 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4655
4656         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4657
4658         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4659         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4660         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4661         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4662         (VALIDATE_CHARPTR_FORWARD): Likewise.
4663         (simple_charptr_emchar): Moved to mb-multibyte.h.
4664         (simple_set_charptr_emchar): Likewise.
4665         (simple_charptr_copy_char): Likewise.
4666         (non_ascii_charptr_emchar): Likewise.
4667         (non_ascii_set_charptr_emchar): Likewise.
4668         (non_ascii_charptr_copy_char): Likewise.
4669         (charptr_emchar): Moved to mb-*byte.h.
4670         (set_charptr_emchar): Likewise.
4671         (charptr_copy_char): Likewise.
4672
4673         * mb-1byte.h, mb-multibyte.h: New files.
4674
4675 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4676
4677         * mb-utf-8.h (MULTIBYTE): New macro.
4678         (MAX_EMCHAR_LEN): Moved from buffer.h.
4679         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4680
4681         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4682
4683         * mb-lb.h, multibyte.h: New files.
4684
4685         * char-1byte.h (Charset_ID): Moved from buffer.h.
4686         (MIN_LEADING_BYTE): Likewise.
4687         (LEADING_BYTE_ASCII): Likewise.
4688         (NUM_LEADING_BYTES): Likewise.
4689         (CHARSETP): Likewise.
4690         (CHARSET_BY_LEADING_BYTE): Likewise.
4691         (XCHARSET_LEADING_BYTE): Likewise.
4692         (XCHARSET_GRAPHIC): Likewise.
4693         (XCHARSET_COLUMNS): Likewise.
4694         (XCHARSET_DIMENSION): Likewise.
4695         (CHAR_CHARSET): Likewise.
4696         (CHAR_LEADING_BYTE): Likewise.
4697         (BREAKUP_CHAR): Likewise.
4698         (Vcharset_ascii): Likewise.
4699
4700         * buffer.h: Include multibyte.h unconditionally.
4701         (VALID_CHARPTR_P): Moved to multibyte.h.
4702         (ASSERT_VALID_CHARPTR): Likewise.
4703         (REAL_INC_CHARPTR): Likewise.
4704         (REAL_INC_CHARBYTIND): Likewise.
4705         (REAL_DEC_CHARPTR): Likewise.
4706         (INC_CHARPTR): Likewise.
4707         (INC_CHARBYTIND): Likewise.
4708         (DEC_CHARPTR): Likewise.
4709         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4710         (VALIDATE_CHARPTR_FORWARD): Likewise.
4711         (charptr_n_addr): Likewise.
4712         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4713         (simple_charptr_emchar): Moved to multibyte.h.
4714         (simple_set_charptr_emchar): Likewise.
4715         (simple_charptr_copy_char): Likewise.
4716         (non_ascii_charptr_emchar): Likewise.
4717         (non_ascii_set_charptr_emchar): Likewise.
4718         (non_ascii_charptr_copy_char): Likewise.
4719         (charptr_emchar): Likewise.
4720         (set_charptr_emchar): Likewise.
4721         (charptr_copy_char): Likewise.
4722         (charptr_emchar_n): Likewise.
4723         (Charset_ID): Moved to char-1byte.h.
4724         (Vcharset_ascii): Likewise.
4725         (CHAR_CHARSET): Likewise.
4726         (CHAR_LEADING_BYTE): Likewise.
4727         (LEADING_BYTE_ASCII): Likewise.
4728         (NUM_LEADING_BYTES): Likewise.
4729         (MIN_LEADING_BYTE): Likewise.
4730         (CHARSETP): Likewise.
4731         (CHARSET_BY_LEADING_BYTE): Likewise.
4732         (XCHARSET_LEADING_BYTE): Likewise.
4733         (XCHARSET_GRAPHIC): Likewise.
4734         (XCHARSET_COLUMNS): Likewise.
4735         (XCHARSET_DIMENSION): Likewise.
4736         (BREAKUP_CHAR): Likewise.
4737
4738 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4739
4740         * character.h: Add document about interface for characters.
4741
4742         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4743         (MAKE_CHAR): Delete comment about
4744         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4745         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4746         (BREAKUP_CHAR): Modify name of arguments.
4747         (CHAR_CHARSET): Modify name of argument.
4748
4749         * buffer.h: Delete document about Emchar accessors.
4750
4751 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4752
4753         * character.h (CHAR_INTP): Moved from buffer.h
4754         (CHAR_OR_CHAR_INTP): Likewise.
4755         (XCHAR_OR_CHAR_INT): Likewise.
4756         (CHECK_CHAR_COERCE_INT): Likewise.
4757
4758         * buffer.h (CHAR_INTP): Moved to character.h
4759         (CHAR_OR_CHAR_INTP): Likewise.
4760         (XCHAR_OR_CHAR_INT): Likewise.
4761         (CHECK_CHAR_COERCE_INT): Likewise.
4762
4763 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4764
4765         * character.h:
4766         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4767         - Include char-1byte.h, char-lb.h or char-ucs.h.
4768
4769         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4770
4771         * buffer.h: Include character unconditionally.
4772         (valid_char_p): Moved to char-*.h.
4773         (non_ascii_valid_char_p): Moved to char-lb.h.
4774
4775         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4776
4777 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4778
4779         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4780         in UTF-2000 because it is not ported yet and not to use
4781         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4782         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4783         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4784
4785         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4786         (CHAR_ASCII_P): Moved from character.h.
4787
4788         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4789         (CHAR_ASCII_P): Likewise.
4790         (CHAR_FIELD1_MASK): Deleted.
4791         (CHAR_FIELD2_MASK): Deleted.
4792         (CHAR_FIELD3_MASK): Deleted.
4793         (MAX_CHAR_BASIC_LATIN): New macro.
4794         (CHAR_FIELD1): Deleted.
4795         (CHAR_FIELD2_INTERNAL): Deleted.
4796         (CHAR_FIELD3_INTERNAL): Deleted.
4797         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4798         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4799         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4800         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4801         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4802         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4803         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4804         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4805         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4806         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4807         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4808         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4809         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4810         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4811         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4812         (MIN_CHAR_COMPOSITION): Deleted.
4813         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4814         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4815
4816 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4817
4818         * buffer.h: Include mb-utf-8.h in UTF-2000.
4819
4820         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4821
4822         * mb-utf-8.h: New file.
4823
4824 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4825
4826         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4827         instead of `int'.
4828
4829         * mule-charset.h, buffer.h (Charset_ID): New type.
4830
4831 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4832
4833         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4834         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4835         instead of `MULE_CHAR_PRIVATE_OFFSET',
4836         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4837         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4838         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4839
4840         * character.h (Vcharset_japanese_jisx0212): New variable
4841         definition.
4842
4843 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4844
4845         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4846         (charset_by_attributes): Delete array about direction.
4847         (latin_a_char_to_charset): New variable in UTF-2000.
4848         (latin_a_char_to_byte1): New variable in UTF-2000.
4849         (latin_a_char_to_byte2): New variable in UTF-2000.
4850         (Qucs_bmp): New variable.
4851         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4852         `Bufbyte'.
4853         (next_allocated_2_byte_leading_byte): Likewise.
4854         (non_ascii_set_charptr_emchar): Likewise.
4855         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4856         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4857         `charset_by_attributes'.
4858         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4859         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4860         and `CHARSET_BY_LEADING_BYTE'.
4861         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4862         `utf-2000-version' to `vars_of_mule_charset'.
4863         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4864         define `leading-code-private-11' in UTF-2000; move setting of
4865         `utf-2000-version' from `syms_of_mule_charset'.
4866         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4867         UTF-2000.
4868
4869         * character.h (Charset_ID): New type.
4870         (LEADING_BYTE_UCS_BMP): New macro.
4871         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
4872         (CHARSET_ID_OFFSET_94): New macro.
4873         (MIN_CHARSET_ID_PRIVATE_94): New macro.
4874         (MAX_CHARSET_ID_PRIVATE_94): New macro.
4875         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
4876         final-byte.
4877         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
4878         (LEADING_BYTE_LATIN_JISX0201): Likewise.
4879         (CHARSET_ID_OFFSET_96): New macro.
4880         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
4881         CHARSET_ID_OFFSET_96 and final-byte.
4882         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
4883         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
4884         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
4885         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
4886         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
4887         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
4888         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
4889         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
4890         (LEADING_BYTE_THAI_TIS620): Likewise.
4891         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
4892         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
4893         (CHARSET_ID_OFFSET_94x94): New macro.
4894         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
4895         CHARSET_ID_OFFSET_94x94 and final-byte.
4896         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
4897         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
4898         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
4899         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
4900         (LEADING_BYTE_CHINESE_GB2312): Likewise.
4901         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
4902         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
4903         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
4904         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
4905         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
4906         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
4907         (CHARSET_TYPE_128X128): New macro.
4908         (CHARSET_TYPE_256X256): New macro.
4909         (XCHARSET_PRIVATE_P): Delete unconditionally.
4910         (charset_by_attributes): Delete array about direction.
4911         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
4912         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
4913         (MIN_CHAR_94): New macro.
4914         (MAX_CHAR_94): New macro.
4915         (MIN_CHAR_96): New macro.
4916         (MAX_CHAR_96): New macro.
4917         (MIN_CHAR_94x94): New macro.
4918         (MAX_CHAR_94x94): New macro.
4919         (MIN_CHAR_96x96): New macro.
4920         (MAX_CHAR_96x96): New macro.
4921         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
4922         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
4923         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
4924         - 32)'.
4925         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
4926         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
4927         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
4928         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
4929         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
4930         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
4931         `XCHARSET_LEADING_BYTE' to make code-point.
4932         (latin_a_char_to_charset): New variable.
4933         (latin_a_char_to_byte1): New variable.
4934         (latin_a_char_to_byte2): New variable.
4935         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
4936         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
4937         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
4938
4939         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
4940         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
4941         (find_charsets_in_emchar_string): Likewise.
4942         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
4943
4944         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
4945         `int'.
4946         (decode_coding_iso2022): Likewise.
4947
4948         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
4949         of `unsigned char'.
4950
4951         * redisplay.c (redisplay_text_width_emchar_string): Use
4952         `Charset_ID' instead of `unsigned char'.
4953         (redisplay_frame_text_width_string): Likewise.
4954
4955         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
4956         `unsigned char'.
4957
4958         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
4959         instead of `unsigned char'.
4960         (face_cachel_charset_font_metric_info): Likewise.
4961
4962         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
4963         (get_non_ascii_char_table_value): Likewise.
4964         (get_char_table): Likewise.
4965         (put_char_table): Likewise.
4966         (map_over_other_charset): Likewise.
4967         (map_char_table): Likewise.
4968
4969         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
4970         instead of `unsigned char'.
4971
4972 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
4973
4974         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
4975         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
4976
4977         * mule-charset.c (leading_code_private_11): Don't define in
4978         UTF-2000.
4979
4980         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
4981         in UTF-2000 because it is not ported yet and not to use
4982         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
4983
4984 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
4985
4986         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
4987
4988 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4989
4990         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
4991         in UTF-2000.
4992
4993         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
4994         of unsigned char to store leading-byte.
4995
4996         * chartab.c (get_non_ascii_char_table_value): Don't use
4997         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
4998
4999         * file-coding.c (encode_coding_big5): Delete bogus implementation
5000         in UTF2000.
5001
5002         * character.h (LEADING_BYTE_*): Delete definition for
5003         non-UTF-2000.
5004         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5005         (LEADING_BYTE_PREFIX_P): Deleted.
5006         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5007         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5008         (BUFBYTE_LEADING_BYTE_P): Deleted.
5009         (CHARSET_PRIVATE_P): Deleted unconditionally.
5010         (rep_bytes_by_first_byte): Deleted unconditionally.
5011         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5012         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5013         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5014         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5015         (CHAR_FIELD2): Deleted.
5016         (CHAR_FIELD3): Deleted.
5017         (MAKE_CHAR): Delete definition for non-UTF-2000.
5018         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5019         (breakup_char_1): New implementation.
5020         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5021         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5022
5023 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5024
5025         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5026         condition.
5027
5028 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5029
5030         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5031         (CHARSET_PRIVATE_P): Likewise.
5032         (XCHARSET_PRIVATE_P): Likewise.
5033         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5034
5035         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5036         UTF2000.
5037         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5038
5039 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5040
5041         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5042         (NUM_LEADING_BYTES): Changed from 128 to 256.
5043         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5044         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5045         UTF2000.
5046         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5047
5048         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5049         UTF2000.
5050         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5051         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5052         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5053         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5054         (Qchinese_cns11643_3): New variable in UTF2000.
5055         (Qchinese_cns11643_4): New variable in UTF2000.
5056         (Qchinese_cns11643_5): New variable in UTF2000.
5057         (Qchinese_cns11643_6): New variable in UTF2000.
5058         (Qchinese_cns11643_7): New variable in UTF2000.
5059         (syms_of_mule_charset): Define `chinese-cns11643-3',
5060         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5061         and `chinese-cns11643-7' in UTF2000.
5062         (vars_of_mule_charset): Initialize
5063         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5064         + 1 in UTF2000.
5065         (complex_vars_of_mule_charset): Setup charset
5066         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5067         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5068
5069 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5070
5071         * mule-charset.c: Move setting for `leading-code-private-11' from
5072         `syms_of_mule_charset' to `vars_of_mule_charset'.
5073
5074 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5075
5076         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5077         and `NUM_LEADING_BYTES' in assert.
5078
5079 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5080
5081         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5082         instead of 128.
5083         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5084         `NUM_LEADING_BYTES' instead of 128.
5085
5086 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5087
5088         * mule-charset.h (charset_by_leading_byte): Use
5089         `NUM_LEADING_BYTES' instead of 128.
5090         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5091
5092         * mule-charset.c (charset_by_leading_byte): Use
5093         `NUM_LEADING_BYTES' instead of 128.
5094         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5095
5096         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5097         128.
5098
5099 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5100
5101         * mule-charset.c (syms_of_mule_charset): Update to
5102         0.4 (Shin-Imamiya).
5103
5104 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5105
5106         * file-coding.c (encode_coding_sjis): New implementation for
5107         UTF2000.  (decode_coding_sjis): Ditto.
5108
5109 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5110
5111         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5112         Don't define in UTF2000.
5113
5114         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5115         defined.
5116
5117         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5118         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5119         MULE.
5120
5121 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5122
5123         * config.h.in (CHAR_IS_UCS4): New macro.
5124
5125         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5126         conventional MULE representation.
5127         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5128
5129         * mule-charset.h: Reverted to original.
5130
5131         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5132         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5133         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5134
5135         * character.h: New file.
5136
5137         * file-coding.c (Fmake_coding_system): Set 1 to
5138         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5139         defined.
5140         (encode_coding_no_conversion): New implementation for UTF2000.
5141
5142         * file-coding.h (struct Lisp_Coding_System): Add new member
5143         `fixed.size'.
5144
5145 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5146
5147         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5148         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5149         (encode_coding_iso2022): New implementation for UTF2000.
5150
5151 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5152
5153         * mule-canna.c (c2mu): New implementation for UTF2000.
5154         (m2c): Likewise.
5155
5156 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5157
5158         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5159
5160 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5161
5162         * file-coding.c (reset_encoding_stream): Set 0 to
5163         `str->iso2022.current_char_boundary' in UTF2000.
5164         (encode_utf8): Don't define in UTF2000.
5165         (encode_coding_utf8): New implementation for UTF-8 representation
5166         of UTF2000.
5167         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5168
5169 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5170
5171         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5172
5173         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5174         UTF2000.
5175         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5176
5177         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5178
5179         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5180         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5181         as UTF-8 in UTF2000.
5182         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5183         (non_ascii_valid_char_p): Don't define in UTF2000.
5184         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5185         (Lstream_get_emchar_1): Likewise.
5186         (utf-2000-version): New variable in UTF2000.
5187
5188         * lread.c (read_escape): Add new reader `u'.
5189
5190         * insdel.c (three_to_one_table): Don't define in UTF2000.
5191         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5192         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5193         UTF2000.
5194         (bytind_to_bufpos_func): Likewise.
5195         (buffer_mule_signal_inserted_region): Likewise.
5196         (vars_of_insdel): Don't initialize `three_to_one_table'.
5197         (init_buffer_text): Use `buf->text->mule_size' instead of
5198         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5199         UTF2000.
5200
5201         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5202         UTF-8 representation in UTF2000.
5203         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5204         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5205         (decode_coding_iso2022): Don't define local variable `lb' in
5206         UTF2000; don't use LEADING_BYTE in UTF2000; use
5207         `DECODE_ADD_UCS_CHAR' in UTF2000.
5208         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5209
5210         * config.h.in (UTF2000): New macro.
5211
5212         * buffer.h (struct buffer_text): Add new member `mule_size' and
5213         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5214         (valid_char_p): Return always 1 in UTF2000.
5215         (MAX_EMCHAR_LEN): 6 in UTF2000.
5216         (three_to_one_table): Don't define in UTF2000.
5217         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5218         UTF2000.
5219         (real_bytind_to_bufpos): Likewise.
5220
5221         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5222
5223 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5224
5225         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5226         representation change.
5227         (Vutf_2000_version): New variable.
5228         (leading_code_private_11): New variable.
5229         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5230         `leading-code-private-11'.
5231
5232         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5233         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5234         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5235         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5236         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5237         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5238         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5239         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5240         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5241         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5242         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5243         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5244         (MIN_CHAR_GREEK): New macro.
5245         (MAX_CHAR_GREEK): New macro.
5246         (MIN_CHAR_CYRILLIC): New macro.
5247         (MAX_CHAR_CYRILLIC): New macro.
5248         (MIN_CHAR_HEBREW): New macro.
5249         (MAX_CHAR_HEBREW): New macro.
5250         (MIN_CHAR_THAI): New macro.
5251         (MAX_CHAR_THAI): New macro.
5252         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5253         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5254         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5255         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5256         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5257         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5258         (CHAR_FIELD2): New inline function.
5259         (CHAR_FIELD3): New inline function.
5260         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5261         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5262         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5263         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5264         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5265         (MIN_CHAR_COMPOSITION): Likewise.
5266         (CHAR_LEADING_BYTE): Modified for character representation change.
5267         (MAKE_CHAR): Likewise.
5268
5269         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5270         (Vcharset_greek_iso8859_7): Likewise.
5271         (Vcharset_cyrillic_iso8859_5): Likewise.
5272         (Vcharset_hebrew_iso8859_8): Likewise.
5273         (Vcharset_thai_tis620): Likewise.
5274         (Vcharset_katakana_jisx0201): Likewise.
5275
5276 2003-09-03  Vin Shelton <acs@xemacs.org>
5277
5278         * XEmacs 21.4.14 is released
5279
5280 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5281
5282         * config.h.in (REGEX_MALLOC): Make it configure'able.
5283
5284 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5285
5286         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5287         linking.
5288         * sysdll.c (dll_init):
5289         * sysdll.c (dll_open):
5290         * sysdll.c (dll_close):
5291         * sysdll.c (dll_function):
5292         * sysdll.c (dll_variable):
5293         * sysdll.c (dll_error):
5294         Add support for loading bundles using Darwin/MacOSX
5295         native API.
5296
5297 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5298
5299         * process.c (start-process-internal): Document coding systems.
5300
5301 2003-07-30  Jerry James  <james@xemacs.org>
5302
5303         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5304
5305 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5306
5307         * event-msw.c (mswindows_enqueue_mouse_button_event):
5308         * event-msw.c (mswindows_wnd_proc):
5309           enqueue button event when scrollwheel event isn't handled by 
5310           mswindows_handle_mousewheel_event, such as when the scrollbars
5311           are not showing.
5312
5313 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5314
5315         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5316
5317 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5318
5319         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5320
5321 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5322
5323         * regex.c (re_match_2_internal): Fix matching degenerate word
5324         boundaries.
5325
5326 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5327
5328         * XEmacs 21.4.13 is released
5329
5330 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5331
5332         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5333         * lisp.h (<inttypes.h>):
5334         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5335         the definition.
5336
5337 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5338
5339         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5340         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5341         Result: "temacs can only be run in -batch mode."
5342         Fix: Check xemacs executable candidate for directory-ness.
5343
5344 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5345
5346         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5347           they conflict with <sys/types.h>.
5348
5349 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5350
5351         * database.c: Berkeley DB wants __STDC__ to be defined.
5352
5353 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5354
5355         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5356
5357 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5358
5359         * process-unix.c (unix_send_process): Fix C++ compile error.
5360
5361 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5362
5363         * Added .dylib as an acceptable shared library file extension
5364         * to support MacOSX.
5365
5366 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5367
5368         * EmacsFrameP.h (EmacsFramePart):
5369         Kludge to allow compiling with Motif1, but linking with Motif2.
5370
5371 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5372
5373         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5374
5375
5376 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5377
5378         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5379
5380 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5381
5382         * sysdll.c: Included lisp.h to define needed alloca_array.
5383
5384 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5385
5386         Make XEmacs redisplay 10 times faster.
5387         If, that is, you're using a slow X connection and MoveOpaque.
5388         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5389         Use compress_motion = TRUE.
5390         * EmacsFrame.c (emacsFrameClassRec): 
5391         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5392         * EmacsManager.c (emacsManagerClassRec):
5393         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5394
5395 2003-01-30  Vin Shelton  <acs@xemacs.org>
5396
5397         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5398
5399 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5400
5401         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5402         Patch by Martin Buchholz.
5403
5404 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5405
5406         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5407         Thanks to icc for warning and Martin Buchholz for reporting.
5408
5409 2003-01-29  Vin Shelton <acs@xemacs.org>
5410
5411         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5412
5413         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5414         remember to multiply by the element size.
5415
5416 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5417
5418         * XEmacs 21.4.12 "Portable Code" is released.
5419
5420 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5421
5422         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5423         * s/cygwin.sc: new linker file.
5424
5425 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5426
5427         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5428
5429         * redisplay-x.c (x_output_string): Use X11-specified types.
5430         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5431         * emacs.c (__free_hook): Use typeof with Intel compiler.
5432         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5433
5434 2003-01-08  Andy Piper  <andy@xemacs.org>
5435
5436         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5437         reserve size during unexec().
5438
5439 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5440
5441         * process-unix.c (unix_create_process): Don't let outchannel block.
5442
5443 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5444
5445         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5446         Needed for IsBadReadPtr().
5447
5448 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5449
5450         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5451
5452 2002-12-14  Ben Wing  <ben@xemacs.org>
5453
5454         * callint.c: Declaration error.
5455         * dumper.c (pdump):
5456         * dumper.c (pdump_load): Warning fix.
5457         * process.c: GCPRO error.
5458         * glyphs.c (unmap_subwindow):
5459         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5460         * event-stream.c (maybe_kbd_translate): Wrong argument to
5461         character_to_event().
5462
5463         * alloc.c (garbage_collect_1):
5464         * emacs.c:
5465         * emacs.c (debug_can_access_memory):
5466         * emacs.c (fatal_error_signal):
5467         * emacs.c (mswindows_handle_hardware_exceptions):
5468         * emacs.c (main_1):
5469         * emacs.c (main):
5470         * emacs.c (assert_failed):
5471         * emacs.c (syms_of_emacs):
5472         * lisp.h:
5473         * print.c:
5474         * print.c (std_handle_out_va):
5475         * print.c (write_string_to_stdio_stream):
5476         * print.c (write_fmt_string):
5477         * print.c (printing_badness):
5478         * print.c (printing_major_badness):
5479         * print.c (print_internal):
5480         * print.c (debug_print_no_newline):
5481         * print.c (debug_backtrace):
5482         Be more defensive in handling bad values when printing.  Add code
5483         from trunk involving inhibit_non_essential_printing_operations.
5484         When going down or in debug_print(), don't do external conversion
5485         and such and try really, really hard when printing to avoid core
5486         dumping.  Add force-debugging-signal, debug_break().
5487
5488 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5489
5490         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5491         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5492
5493 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5494
5495         * database.c: Fix open_database. Berkeley DB API has changed in
5496         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5497
5498 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5499
5500         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5501
5502 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5503
5504         * event-Xt.c (Xt_timeout):
5505         (Xt_timeout_callback):
5506         (emacs_Xt_add_timeout):
5507         (emacs_Xt_remove_timeout):
5508         (Xt_timeout_to_emacs_event):
5509         Turn completed_timeouts from a stack into a queue.  Fixes
5510         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5511
5512 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5513
5514         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5515         * emacs.c (main): Assert that mmap'd allocation is disabled.
5516
5517 2002-10-14  Andy Piper  <andy@xemacs.org>
5518
5519         * glyphs-widget.c (layout_query_geometry): add in fiddle
5520         factor. Include border text in width layout calculation.
5521         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5522
5523 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5524
5525         * XEmacs 21.4.10 "Military Intelligence" is released.
5526
5527 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5528
5529         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5530         using the NAS private array SoundFileInfo that no longer exists in
5531         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5532         and earlier.  This is broken for some versions between 1.5a and
5533         1.5f.
5534
5535 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5536
5537         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5538
5539         * emacs.c (shut_down_emacs): Improve crash message.
5540
5541 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5542
5543         * file-coding.c (determine_real_coding_system): Check for coding
5544         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5545         shebangs and Python PEP 263.
5546
5547 2002-10-08  Andy Piper  <andy@xemacs.org>
5548
5549         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5550         if static sizes haven't been set.
5551
5552 2002-08-30  Mike Alexander  <mta@arbortext.com>
5553
5554         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5555         to close a socket.
5556
5557 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5558
5559         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5560
5561 2002-09-20  Mike Sperber <mike@xemacs.org>
5562
5563         (This partially gets back my patch from 2002-07-20 without the
5564         bug.)
5565         * callproc.c (child_setup): Remove Ben's comment noting confusion
5566         over the file descriptors >= 3: close_process_descs() doesn't
5567         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5568         * process-unix.c (unix_create_process): Call
5569         begin_dont_check_for_quit to inhibit unwanted interaction (and
5570         thus breaking of X event synchronicity) in the child.
5571
5572 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5573
5574         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5575         widget.
5576
5577 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5578
5579         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5580         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5581         the xemacs process did not exit, but looped infinitely here.  This
5582         fixes that problem.
5583
5584 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5585
5586         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5587         (find_context): Improve comments.
5588
5589         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5590         (re_match_2): An XCHAR_TABLE operation was missing.
5591
5592         Many of the following changes were inspired by Andy Piper's (now
5593         obsolete) patch to make syntax-table text property lookup optional.
5594
5595         [Documentation]
5596
5597         * syntax.h (top level): Document semantics of syntax flags.
5598         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5599         * syntax.c, syntax.h (top level): Document syntax cache better in
5600         comments.
5601
5602         [Instrument syntax caching (temporary change)]
5603
5604         * syntax.h (enum syntax_cache_statistics_functions, struct
5605         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5606         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5607         * syntax.c (scan_words, Fforward_comment, scan_lists,
5608         Fbackward_prefix_characters):
5609         * font-lock.c (find_context):
5610         Use them to instrument syntax caching. 
5611         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5612         syntax_cache_statistics_function_names): New type and variables.
5613         * syntax.c (update_syntax_cache): Update and report statistics.
5614
5615         [Major syntax cache optimizations]
5616
5617         syntax.c (lookup_syntax_properties): Default off.
5618
5619         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5620         * syntax.c (update_syntax_cache):
5621         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5622
5623         [Minor syntax cache optimizations and code clarifications]
5624
5625         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5626         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5627         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5628         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5629         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5630         (Code clarification.)
5631
5632         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5633         scan_lists): Compute code from syncode, use Boolean macros instead
5634         of redundant masking operations.  (Code clarification; any decent
5635         compiler can do this optimization.)
5636
5637         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5638         for clarity.
5639
5640         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5641         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5642         use F*_single_property_change instead of F*_extent_change.
5643         Currently F*_single_property_change is _much_ less efficient.
5644
5645         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5646         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5647         syntax_cache.object properly, don't leave Qt or Qnil.
5648         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5649         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5650         tests for Qt or Qnil.
5651
5652 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5653
5654         * redisplay.c (point_in_line_start_cache): 
5655         * extents.c (print_extent_1):
5656         Fix warnings.
5657
5658         * extents.c (Fset_extent_property): Document `syntax-table' property.
5659
5660         * extents.h (Fnext_single_property_change): EXFUN it.
5661
5662 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5663
5664         * search.c (clear_unused_search_regs): New static function.
5665         (search_buffer): 
5666         (simple_search): 
5667         (boyer_moore):
5668         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5669         Minor clarifications in comments.
5670
5671         * regex.c (re_match_2_internal): Ensure no stale submatches.
5672
5673 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5674
5675         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5676
5677 2002-08-29  Jerry James  <james@xemacs.org>
5678
5679         * lisp.h: structrures -> structures.
5680
5681 2002-06-03  Andy Piper  <andy@xemacs.org>
5682
5683         * frame.c (frame_conversion_internal): add conversion appropriate
5684         for setting frame dimensions in pixels.
5685
5686         * console.h (struct console_methods): add device-specific widget
5687         layout functions.
5688
5689         * emacs.c (main_1): initialize glyph vars.
5690
5691         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5692         (handle_focus_event_2): new function. Allow focus to
5693         be set to a particular window and widget.
5694         (enqueue_focus_event): new function. Create a
5695         synthetic focus event.
5696         (emacs_Xt_handle_magic_event): call
5697         handle_focus_event_2.
5698
5699         * frame.c (Fset_frame_pixel_height): new function. Allow
5700         pixel-based sizing. Does the right thing on character-oriented
5701         displays.
5702         (Fset_frame_pixel_width): ditto.
5703         (Fset_frame_pixel_size): ditto.
5704         (syms_of_frame): declare.
5705
5706         * general-slots.h: add :vertically-justify and
5707         :horizontally-justify.
5708
5709         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5710         (mswindows_widget_border_width): new function.
5711         (mswindows_combo_box_instantiate): set border widths.
5712         (console_type_create_glyphs_mswindows): declare.
5713
5714         * glyphs-widget.c:
5715         (check_valid_justification): allow vertical and horizontal
5716         justification.
5717         (widget_border_width): new function. Call device methods.
5718         (widget_instance_border_width): ditto.
5719         (logical_unit_height): new function. Determine the height of a
5720         logical-unit. Logical units are intended to provide grid-like
5721         layout for subcontrols in a layout. If the layout is
5722         :vertically-justify top then subcontrols will be positioned on
5723         logical-unit boundaries, thus allowing adjacent subcontrols to
5724         line up.
5725         (widget_logical_unit_height): ditto for widgets.
5726         (redisplay_widget): misc cleanup.
5727         (widget_spacing): new function. Call device specific
5728         methods. Intended to be the default gap between adjacent widgets.
5729         (widget_query_geometry): use new spacing functions to determine
5730         appropriate geometry.
5731         (initialize_widget_image_instance): initialize horizontal and
5732         vertical justification.
5733         (widget_instantiate): use logica-units where appropriate for
5734         sizing large widgets.
5735         (button_query_geometry): use widget_instance_border_width.
5736         (tree_view_query_geometry): ditto.
5737         (tab_control_query_geometry): ditto.
5738         (edit_field_query_geometry): new function.
5739         (layout_update): pick up :justify, :horizontally-justify and
5740         :vertically-justify none of which worked previously. :justify is
5741         used as a fallback for both horizontal and vertical justification.
5742         (layout_query_geometry): use logical units to size appropriately.
5743         (layout_layout): ditto.
5744         (Fwidget_logical_to_character_width): new function. Allow users to
5745         convert from logical units to characters so that frame sizes can
5746         be set appropriately.
5747         (Fwidget_logical_to_character_height): ditto.
5748         (syms_of_glyphs_widget): declare.
5749         (image_instantiator_edit_fields): add edit_field_query_geometry.
5750         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5751         :horizontally-justify.
5752         (specifier_vars_of_glyphs_widget): new function. Declare
5753         Vwidget_border_width which is not yet used.
5754
5755         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5756         (x_widget_border_width): new function.
5757         (x_widget_instantiate): create a sensible name for widgets.
5758         (console_type_create_glyphs_x): declare x_widget_border_width.
5759
5760         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5761         (struct Lisp_Image_Instance): add :vertically-justify and
5762         :horizontally-justify.
5763         (LAYOUT_JUSTIFY_TOP): new.
5764         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5765         (ROUND_UP): new macro. Round argument up to next integral
5766         interval.
5767
5768         * redisplay-output.c (redisplay_output_layout): misc formatting.
5769
5770         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5771
5772 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5773
5774         * XEmacs 21.4.9 "Informed Management" is released.
5775
5776 2002-08-19  Andy Piper  <andy@xemacs.org>
5777
5778         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5779         win32 format.
5780
5781         * realpath.c (xrealpath): normalize drive spec also so that dir
5782         sep chars are not mixed on cygwin.
5783
5784 2002-08-06  Jerry James  <james@xemacs.org>
5785
5786         * window.c (Fsplit_window): Count only half of the divider width
5787         against the left window when splitting horizontally. 
5788
5789 2002-06-24  Andy Piper  <andy@xemacs.org>
5790
5791         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
5792         toolbar was cleared.
5793
5794         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
5795         function. Split out from mswindows_output_frame_toolbars.
5796         (mswindows_output_frame_toolbars): move clear pieces to
5797         mswindows_output_frame_toolbars.
5798
5799         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
5800         out from gtk_output_frame_toolbars.
5801         (gtk_output_frame_toolbars): move clear pieces to
5802         gtk_clear_frame_toolbars.
5803
5804         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
5805         the frame is cleared. How this ever worked before is a mystery.
5806         (x_output_frame_toolbars): Only output toolbars.
5807         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
5808
5809         * gutter.c (update_gutter_geometry):
5810         Mark frame layout changed.
5811         (update_frame_gutter_geometry, update_frame_gutters):
5812         Respect frame_layout_changed.
5813
5814         * console.h (struct console_methods): add
5815         clear_frame_toolbars_method.
5816
5817         * redisplay.c (redisplay_frame): call
5818         update_frame_toolbars_geometry and re-order update_frame_toolbars.
5819
5820         * toolbar.h: declare update_frame_toolbars_geometry.
5821
5822         * toolbar.c (update_frame_toolbars_geometry): new function. Split
5823         out from update_frame_toolbars.  Call clear_frame_toolbars.
5824         (update_frame_toolbars): only output, do not change geometry.
5825
5826         * redisplay.c: add frame_layout_changed.
5827
5828         * redisplay.h: add frame_layout_changed.
5829         (CLASS_RESET_CHANGED_FLAGS): set it.
5830         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
5831         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
5832         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
5833
5834         * device.h (struct device): add frame_layout_changed.
5835         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
5836
5837         * frame.h (struct frame): add frame_layout_changed.
5838         (MARK_FRAME_LAYOUT_CHANGED): new.
5839
5840 2002-06-30  Mike Alexander  <mta@arbortext.com>
5841
5842         * event-msw.c (mswindows_need_event): Don't wait for a new message
5843         if the queue is not empty.  Suggested by Paul Moore.
5844
5845 2002-06-12  Andy Piper  <andy@xemacs.org>
5846
5847         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
5848         for printing on accurately.
5849
5850 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
5851
5852         * event-msw.c (mswindows_wnd_proc): Add a handler for the
5853         WM_ACTIVATE message. Make sure that the frame is visible if the
5854         window is visible. This seemss to fix the problem where XEmacs
5855         appears to freeze after switching desktops with certain virtual
5856         window managers.
5857         (debug_output_mswin_message): Added code to output message
5858         parameters for WM_WINDOWPOSCHANGED, 
5859         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
5860
5861 2002-05-25  Andy Piper  <andy@xemacs.org>
5862
5863         * select-x.c (vars_of_select_x): Fix docstring of
5864         x-selection-strict-motif-ownership
5865
5866 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5867
5868         * keymap.c (get_keymap):
5869         Add comment about do_autoload GCPROs own args.
5870
5871 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5872
5873         * bytecode.c (execute_optimized_program): check_opcode ifdef
5874         ERROR_CHECK_BYTE_CODE.
5875
5876 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5877
5878         Thanks to Ben Wing and Michael Sperber.
5879
5880         * eval.c (Fcommand_execute):
5881         (Feval):
5882         (Ffuncall):
5883         (Fmacroexpand_internal):
5884         (function_argcount):
5885         callint.c (Fcall_interactively):
5886         Add comment about do_autoload GCPROs own args.
5887
5888         * (do_autoload): GCPRO both args as well as local Lisp_Object.
5889
5890         * eval.c (Ffuncall): Extra braces to placate GCC.
5891
5892 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
5893
5894         * backtrace.h (grow_specpdl):
5895         (SPECPDL_RESERVE):
5896         * EmacsFrame.c (EmacsFrameSetValues):
5897         * eval.c (grow_specpdl):
5898         * ExternalShell.c (hack_event_masks_1):
5899         * glyphs-x.c (convert_EImage_to_XImage): 
5900         (x_finalize_image_instance):
5901         * ralloc.c (page_size):
5902         (r_alloc_sbrk):
5903         * xgccache.c (gc_cache_hash):
5904         Fix unsigned comparison warnings.
5905
5906 2002-07-29  Jerry James  <james@xemacs.org>
5907
5908         * lread.c (locate_file): Any nonnegative return value indicates
5909         success if MODE is nonnegative.
5910
5911 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
5912
5913         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
5914         argument. 
5915
5916 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
5917
5918         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
5919
5920         * dumper.c (pdump_get_indirect_count):
5921         (pdump_scan_by_alignment):
5922         (pdump_dump_root_struct_ptrs):
5923         (pdump_dump_rtables):
5924         (pdump_dump_root_objects):
5925         (pdump):
5926         * nas.c (WaveOpenDataForReading):
5927         * fns.c (print_bit_vector):
5928         * font-lock.c (SINGLE_SYNTAX_STYLE):
5929         * glyphs.c (check_for_ignored_expose):
5930         (find_matching_subwindow):
5931         * glyphs-eimage.c:
5932         * imgproc.c (get_histogram):
5933         * redisplay.c (point_in_line_start_cache):
5934         * redisplay-output.c (redisplay_unmap_subwindows):
5935         * symbols.c (defsymbol_massage_name_1):
5936         (defkeyword_massage_name):
5937         (deferror_massage_name_and_message):
5938         * redisplay-x.c (x_output_string): 
5939         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
5940         * frame.h (struct frame):
5941         * filelock.c (current_lock_owner):
5942         * doprnt.c (emacs_doprnt_1):
5943         * lisp.h (struct Lisp_Bit_Vector):
5944         (DO_REALLOC):
5945         Fix warnings.
5946
5947 2002-02-13  Ben Wing  <ben@xemacs.org>
5948
5949         * event-stream.c (reset_key_echo):
5950         * event-stream.c (reset_this_command_keys):
5951         * event-stream.c (execute_command_event):
5952         If console is dead as a result of C-x 5 0, then post-command stuff
5953         needs to be careful and do only non-console-specific stuff.
5954
5955 2002-07-01  Mike Sperber <mike@xemacs.org>
5956
5957         * process-unix.c (unix_send_process): Mark coding_outstream as
5958         non-open upon SIGPIPE.
5959
5960         * event-stream.c (Fnext_event): Reorder switch cases to something
5961         that makes sense.
5962
5963 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
5964
5965         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
5966         Don't bogusly reinitialize ascii_character property.
5967
5968 2002-07-08  Mike Sperber <mike@xemacs.org>
5969
5970         * process.c (Fstart_process_internal): Do error checking before we
5971         fork off the child, so the child can't muck with the state of the
5972         parent.
5973
5974 2002-07-08  Mike Sperber <mike@xemacs.org>
5975
5976         * ralloc.c (init_ralloc): Allocate properly for pdump.
5977
5978 2002-06-12  Andy Piper  <andy@xemacs.org>
5979
5980         * glyphs.c (query_string_geometry): check the string.
5981
5982         * glyphs-widget.c (widget_logical_unit_height): cope with nil
5983         widget names.
5984
5985 2002-06-17  Jerry James  <james@xemacs.org>
5986
5987         * sysdll.c: Remove RTLD_GLOBAL initialization.
5988         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
5989
5990 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
5991
5992         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
5993
5994 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
5995
5996         * sysdep.c (sys_rename): Make sys_rename work for the case where
5997         Windows rename sets errno to EACCES if target file exists.
5998
5999 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
6000
6001         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6002         Fix detection of metric units to work on Win95
6003
6004 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
6005
6006         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
6007
6008 2002-04-25  Andy Piper  <andy@xemacs.org>
6009
6010         * redisplay.c (create_text_block): Remove extra comment trailer.
6011
6012 2002-04-24  Andy Piper  <andy@xemacs.org>
6013
6014         * redisplay.c (create_text_block): Don't actually add propagation
6015         data if the line ends after we have added a glyph.
6016
6017 2002-04-22  Andy Piper  <andy@xemacs.org>
6018
6019         * extents.c (extent_fragment_update): check for glyphs we have
6020         previously displayed.
6021         * extents.c (print_extent_1): warning removal.
6022         * extents.h: change prototype.
6023         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
6024         widths correctly for wide glyphs.
6025         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
6026         * redisplay.c (prop_type): add PROP_GLYPH.
6027         * redisplay.c (struct prop_block): add glyph type
6028         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
6029         to the propagation data.
6030         * redisplay.c (create_text_block): if there is a glyph in the
6031         propagation data use it to salt extent_fragment_update.
6032         * redisplay.c (create_string_text_block): ditto.
6033
6034 2002-04-13  Nix  <nix@esperi.demon.co.uk>
6035
6036         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
6037         * redisplay-output.c (compare_runes): Compare them.
6038         * redisplay.c: Update copyright date.
6039         * redisplay.c (pos_data): Add need_baseline_computation field.
6040         * redisplay.c (add_glyph_rune): Update ascent, descent, and
6041         need_baseline_computation; zero yoffset. Set max_pixmap_height
6042         for all pixmaps, not just automatically positioned ones.
6043         * redisplay.c (calculate_yoffset): New, compute yoffset values.
6044         * redisplay.c (calculate_baseline): New, compute textual baseline.
6045         * redisplay.c (add_glyph_rune): Call them.
6046         * redisplay.c (create_text_block): Likewise.
6047         * redisplay.c (create_overlay_glyph_block): Likewise.
6048         * redisplay.c (add_margin_runes): Likewise.
6049         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
6050
6051         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
6052         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
6053         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
6054         * redisplay-msw.c (mswindows_output_string): Likewise.
6055         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
6056         * redisplay-gtk.c (gtk_output_display_block): Likewise.
6057         * redisplay-x.c (x_output_display_block): Likewise.
6058
6059 2002-03-28  Ben Wing  <ben@xemacs.org>
6060
6061         * redisplay.c: Fixed bug in redisplay
6062         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
6063         and down of the lines, since they're bigger than the line
6064         size. (It was seen most obviously when there's a horizontal scroll
6065         bar, e.g. do C-h a glyph or something like that.) The problem was
6066         that the glyph-contrib-p setting on glyphs was ignored even if it
6067         was set properly, which it wasn't until now.
6068
6069 2002-04-24  Andy Piper  <andy@xemacs.org>
6070
6071         * lisp.h (Dynarr_end): Fix definition.
6072
6073 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
6074
6075         * redisplay.c (mark_redisplay): Remove call to
6076         update_frame_window_mirror.
6077
6078 2001-11-15  Andy Piper  <andy@xemacs.org>
6079
6080         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
6081         cygwin (again).
6082
6083 2002-02-13  Andy Piper  <andy@xemacs.org>
6084
6085         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
6086         we did in fact enqueue the XM_MAPFRAME event.
6087
6088 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
6089
6090         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
6091         to fix problem switching between virtual desktops under virtuawin
6092         virtual window manager.
6093
6094 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
6095
6096         * event-msw.c: Typo fix.
6097         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
6098         magic XM_MAPFRAME event has been sent.
6099
6100 2001-11-23  Andy Piper  <andy@xemacs.org>
6101
6102         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
6103
6104 2001-11-21  Andy Piper  <andy@xemacs.org>
6105
6106         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
6107         mouse events outside the frame.
6108
6109 2002-03-20  Andy Piper  <andy@xemacs.org>
6110
6111         * menubar-msw.c (mswindows_popup_menu): warning removal.
6112         * dialog-msw.c (dialog_popped_down): ditto.
6113
6114 2001-12-11  Andy Piper  <andy@xemacs.org>
6115
6116         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6117         * dialog-msw.c (mswindows_make_dialog_box_internal): set
6118         popup_up_p.
6119         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6120         * menubar-msw.c (mswindows_handle_wm_command): ditto.
6121         * menubar-msw.c (mswindows_popup_menu): ditto.
6122
6123 2001-10-29  Andy Piper  <andy@xemacs.org>
6124
6125         * dialog-msw.c (handle_directory_dialog_box): quit if the user
6126         cancels.
6127
6128 2002-01-03  Andy Piper  <andy@xemacs.org>
6129
6130         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6131         letters.
6132         (xrealpath): ditto.
6133
6134 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6135
6136         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6137         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6138         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6139         Detect and handle case where machine is set up for metric units
6140
6141 2002-04-02  Andy Piper  <andy@xemacs.org>
6142
6143         * dired-msw.c (mswindows_get_files): 
6144         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6145         completely handled by XEmacs. Suggested by Thomas Vogler
6146         <mail@thomas-vogler.de>.
6147
6148 2001-11-14  Andy Piper  <andy@xemacs.org>
6149
6150         * nt.c (REG_ROOT): change registry key to XEmacs.
6151
6152 2002-04-27  Andy Piper  <andy@xemacs.org>
6153
6154         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6155
6156 2002-04-26  Andy Piper  <andy@xemacs.org>
6157
6158         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6159         behavior.
6160
6161 2002-03-14  Mike Alexander  <mta@arbortext.com>
6162
6163         * event-msw.c (mswindows_unwait_process): New, remove process from
6164         wait list
6165         * process-nt.c (nt_finalize_process_data): Call
6166         mswindows_unwait_process
6167         * console-msw.h: Declare mswindows_unwait_process
6168
6169 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6170
6171         * editfns.c (Fdecode_time):
6172         (Fformat_time_string):
6173         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6174         (make_time): Warning elimination (change arg name).
6175
6176 2001-11-24  Andy Piper  <andy@xemacs.org>
6177
6178         * window.c (Fsplit_window): Doc return type.
6179
6180 2002-04-01  Andy Piper  <andy@xemacs.org>
6181
6182         * emacs.c (Fkill_emacs): Only output message box in interactive
6183         mode.
6184
6185 2002-04-26  Andy Piper  <andy@xemacs.org>
6186  
6187         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6188         cygwin.
6189
6190 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6191
6192         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6193         bit platform.
6194
6195 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6196
6197         * XEmacs 21.4.8 "Honest Recruiter" is released.
6198
6199 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6200
6201         Supersedes 2002-04-17 patch.
6202
6203         * process.h (PROCESS_LIVE_P): Use the process status as
6204         evidence of health, not the state of the input stream.
6205         (PROCESS_READABLE_P): Say if the process is readable
6206         from. (It may be dead nonetheless.)
6207         (CHECK_READABLE_PROCESS): Test for that condition.
6208
6209         * process.c (create_process): Use PROCESS_READABLE_P.
6210         (read_process_output, set_process_filter): Likewise.
6211
6212         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6213         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6214
6215         This code is #if 0'd, this is not the time to add new functions:
6216
6217         * process.c (Fprocess_readable_p): Report readability status.
6218         * process.c (Qprocess_readable_p): New, associated symbol...
6219         * process.c (syms_of_process): ... initialize it.
6220
6221 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6222
6223         * XEmacs 21.4.7 "Economic Science" is released.
6224
6225 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6226
6227         * process.h (PROCESS_LIVE_P): Use the process status as
6228         evidence of health, not the state of the input stream.
6229
6230 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6231
6232         * sysdep.c (sys_siglist): change "signum" to "signal"
6233
6234 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6235
6236         * s/darwin.h: New file.
6237         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6238         
6239 2002-04-23  Andreas Jaeger  <aj@suse.de>
6240
6241         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6242         which use lib64 for 64-bit libs.
6243         (START_FILES): Likewise.
6244
6245 2002-02-11  Mike Sperber  <mike@xemacs.org>
6246
6247         * device-x.c: 
6248         (x_IO_error_handler):
6249         (x_init_device): Temporarily keep device in static variable
6250         `device_being_initialized' so we can recover gracefully from
6251         internal XOpenDevice failure.  (XOpenDevice is documented to
6252         return NULL on failure, but sometimes calls the IO error handler
6253         instead.)
6254
6255 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6256
6257         * dired.c (Ffile_name_all_completions): Change documentation --
6258         remove reference to completion-ignored-extensions.
6259         * dired.c (vars_of_dired): Change documentation for
6260         completion-ignored-extensions -- remove reference to
6261         file-name-all-completions.
6262
6263 2002-03-06  Jerry James  <james@xemacs.org>
6264
6265         * emodules.c (emodules_load): Fix multiple loading of same module.
6266
6267 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6268         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6269         RTLD_LAZY to avoid incorrect symbol binding when using nested
6270         shared libraries on Solaris.
6271
6272 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6273
6274         * fileio.c (Ffind_file_name_handler): Improve docstring.
6275
6276 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6277
6278         * fns.c (Fmapconcat): Improve docstring.
6279
6280 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6281
6282         * device-gtk.c: Add prototype for
6283         emacs_gtk_selection_clear_event_handle.
6284         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6285         selection.  Setup signal handler for "selection_clear_event"
6286         (emacs_gtk_selection_clear_event_handle).
6287
6288         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6289         other applications owning the clipboard (based on
6290         x_handle_selection_clear).
6291
6292 2001-12-23  William M. Perry  <wmperry@gnu.org>
6293
6294         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6295         
6296 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6297
6298         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6299
6300 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6301
6302         * XEmacs 21.4.6 "Common Lisp" is released.
6303
6304 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6305
6306         * search.c (Freplace_match): Add missing sub-expression functionality.
6307
6308         * buffer.c (decode_buffer): Add a check for pointer type to
6309         decode_buffer, before gcc's CSE optimization reorders a
6310         dereference in front of the allow_string test.
6311
6312 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6313
6314         * window.c (window_loop): Fix bug that sometimes prevented
6315         window_loop() from iterating across multiple devices.  Also, at
6316         Ben's request, changed infloop-detecting code to abort() instead
6317         of silently terminating window_loop().
6318
6319 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6320
6321         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6322         * editfns.c (make_time): New function.
6323         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6324         * lisp.h (make_time): Prototype and comment it.
6325         * dired.c (wasteful_word_to_lisp): Deprecate.
6326         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6327
6328 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6329
6330         * fileio.c (auto_save_1): Use current coding system, not
6331         escape-quoted.
6332
6333 2001-11-13  Ben Wing  <ben@xemacs.org>
6334
6335         * window.c:
6336         * window.c (window_truncation_on):
6337         * window.c (syms_of_window):
6338         truncate-partial-width-windows should respect the buffer being
6339         displayed, like other redisplay vars.
6340
6341 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6342
6343         * event-stream.c (Fread_key_sequence): save current buffer.
6344
6345 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6346
6347         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6348
6349 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6350
6351         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6352
6353 2001-10-26  Mike Alexander  <mta@arbortext.com>
6354
6355         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6356
6357 2001-10-25  Andy Piper  <andy@xemacs.org>
6358
6359         * ChangeLog:
6360         * dialog-msw.c (handle_directory_proc): new function.
6361          (handle_directory_dialog_box): new fucntion.
6362          (handle_file_dialog_box): use new directory dialog support.
6363          (mswindows_make_dialog_box_internal): ditto.
6364         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6365         handling.
6366         (mswindows_find_frame): make global.
6367         * fileio.c (Fexpand_file_name): build fix.
6368         * general-slots.h: add Qdirectory.
6369         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6370         handling.
6371         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6372         cygwin not leaving win32 paths unchanged.
6373         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6374         cygwin runtime to do path conversion.
6375         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6376         (syms_of_win32): add new function.
6377         * window.c (window_loop): build fix.
6378
6379 2001-10-15  Andy Piper  <andy@xemacs.org>
6380
6381         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6382
6383 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6384
6385         * XEmacs 21.4.5 "Civil Service" is released.
6386
6387 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6388
6389         * glyphs-x.c: Force buffer-tab highlight update when moving the
6390         buffer, avoiding an ugly black border, used for keyboard focus
6391         indication, on a widget that can never have keyboard focus, the
6392         buffer tab.
6393
6394 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6395
6396         * process-unix.c (unix_open_multicast_group): Remove too much
6397         conversion between host and network byte order.
6398
6399 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6400
6401         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6402         before replacing them.
6403
6404         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6405         operation.
6406
6407         * src/window.c (undedicate_windows): Use it.
6408         * src/window.h: Add prototype.
6409
6410 2001-09-17  Ben Wing  <ben@xemacs.org>
6411
6412         * fileio.c (normalize_filename):
6413         * fileio.c (Fexpand_file_name):
6414         Fix various C++ compile errors in Andy's recent code.
6415         
6416         * callint.c (Fcall_interactively):
6417         * editfns.c (Ftemp_directory):
6418         * editfns.c (Fuser_full_name):
6419         * emacs.c (argmatch):
6420         * lread.c (locate_file_map_suffixes):
6421         * redisplay-x.c (x_ring_bell):
6422         Fix sign-compare warnings.
6423         
6424 2001-09-08  Andy Piper  <andy@xemacs.org>
6425
6426         * fileio.c (normalize_filename): copied from nt.c
6427         * (Ffile_name_directory): enable win32 paths under cygwin.
6428         * (Ffile_name_nondirectory): ditto.
6429         * (directory_file_name): ditto.
6430         * (Fexpand_file_name): ditto.
6431         * (Ffile_truename): ditto.
6432         * (Fsubstitute_in_file_name): ditto.
6433         * (Ffile_name_absolute_p): ditto.
6434         * (Ffile_readable_p): ditto.
6435
6436 2001-09-08  Andy Piper  <andy@xemacs.org>
6437
6438         * device-msw.c (mswindows_finish_init_device): remove dde
6439         initialization.
6440         * device-msw.c (mswindows_init_dde): factor out from
6441         mswindows_finish_init_device()
6442         * device-msw.c (init_mswindows_very_early): new function
6443         initialize but don't enable dde.
6444         * emacs.c (main_1): call init_mswindows_very_early.
6445         * event-msw.c:
6446         * event-msw.c (mswindows_dde_callback): only execute when we are
6447         ready.
6448         * symsinit.h: declare init_mswindows_very_early.
6449
6450 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6451
6452         [sjt: This has been in 21.5 for months with no complaints.]
6453
6454         * console.h (struct console_methods): Added flags member.
6455         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6456         (CONMETH_IMPL_FLAG):
6457         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6458         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6459
6460         * device.c (window_system_pixelated_geometry): Use the above macros.
6461
6462         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6463         implememntation flag.
6464         * device.h (DEVICE_DISPLAY_P): Use it.
6465
6466         * frame.c (delete_frame_internal): Use the above macro.
6467
6468         * redisplay.c (redisplay_device): Use it.
6469         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6470         (redisplay_frame): Ditto.
6471
6472         * device-msw.c (mswindows_device_implementation_flags): Removed.
6473         (msprinter_device_implementation_flags): Removed.
6474         (console_type_create_device_mswindows): Removed references to
6475         implementation_flags methods, set implementation flags here.
6476         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6477
6478         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6479         (console_type_create_device_gtk): Removed method declaration.
6480         Added commented out statement which semantically matches the
6481         commented out statement in the above removed method.
6482
6483 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6484
6485         The attached patch fixes a few warnings. 
6486
6487         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6488         * src/frame-gtk.c: guard against GNOME calls in GTK only
6489         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6490         * src/select-gtk.c: prototype lisp_to_time
6491
6492 2001-06-08  Ben Wing  <ben@xemacs.org>
6493
6494         ------ gc-in-window-procedure fixes ------
6495         
6496         * alloc.c:
6497         * alloc.c (struct post_gc_action):
6498         * alloc.c (register_post_gc_action):
6499         * alloc.c (run_post_gc_actions):
6500         * alloc.c (garbage_collect_1):
6501         Create "post-gc actions", to avoid those dreaded "GC during window
6502         procedure" problems.
6503
6504         * event-msw.c:
6505         Abort, clean and simple, when GC in window procedure.  We want
6506         to flush these puppies out.
6507
6508         * glyphs-msw.c:
6509         * glyphs-msw.c (finalize_destroy_window):
6510         * glyphs-msw.c (mswindows_finalize_image_instance):
6511         Use a post-gc action when destroying subwindows.
6512
6513         * lisp.h:
6514         Declare register_post_gc_action().
6515
6516         * scrollbar-msw.c:
6517         * scrollbar-msw.c (unshow_that_mofo):
6518         Use a post-gc action when unshowing scrollbar windows, if in gc.
6519
6520         * redisplay.c (mark_redisplay):
6521         Add comment about the utter evilness of what's going down here.
6522
6523         ------ cygwin setitimer fixes ------
6524         
6525         * Makefile.in.in (sheap_objs):
6526         * Makefile.in.in (profile_objs):
6527         * Makefile.in.in (objs):
6528         Compile profile.c only when HAVE_SETITIMER.
6529         
6530         * nt.c (mswindows_sigset):
6531         * nt.c (mswindows_sighold):
6532         * nt.c (mswindows_sigrelse):
6533         * nt.c (mswindows_sigpause):
6534         * nt.c (mswindows_raise):
6535         * nt.c (close_file_data):
6536         Style fixes.
6537         
6538         * nt.c:
6539         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6540         
6541         * profile.c:
6542         * profile.c (Fstart_profiling):
6543         * profile.c (Fstop_profiling):
6544         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6545         instead of just plain setitimer().
6546         
6547         * signal.c:
6548         * signal.c (set_one_shot_timer):
6549         * signal.c (alarm):
6550         Define qxe_setitimer() as an encapsulation around setitimer() --
6551         call setitimer() directly unless Cygwin or MS Win, in which case
6552         we use our simulated version in win32.c.
6553         
6554         * systime.h:
6555         * systime.h (struct itimerval):
6556         * systime.h (ITIMER_REAL):
6557         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6558         comment about "qxe" and the policy regarding encapsulation.
6559
6560         * win32.c:
6561         * win32.c (setitimer_helper_proc):
6562         * win32.c (setitimer_helper_period):
6563         * win32.c (setitimer_helper):
6564         * win32.c (mswindows_setitimer):
6565         Move setitimer() emulation here, so Cygwin can use it.
6566         Rename a couple of functions and variables to be longer and more
6567         descriptive.  In setitimer_helper_proc(), send the signal
6568         using either mswindows_raise() or (on Cygwin) kill().  If for
6569         some reason we are still getting lockups, we'll change the kill()
6570         to directly invoke the signal handlers.
6571
6572         ------ windows shell fixes ------
6573         
6574         * callproc.c:
6575         * ntproc.c:
6576         Comments about how these two files must die.
6577
6578         * callproc.c (init_callproc):
6579         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6580         not just COMSPEC. (more correct and closer to FSF.) Don't
6581         force a value for SHELL into the environment. (Comments added
6582         to explain why not.)
6583         
6584         * nt.c (init_user_info):
6585         Don't shove a fabricated SHELL into the environment.  See above.
6586
6587 2001-06-01  Ben Wing  <ben@xemacs.org>
6588
6589         * Makefile.in.in (ldflags):
6590         eliminate that pesky "defaulting to 00401000" warning.
6591         * nt.h:
6592         eliminate warnings.
6593
6594 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6595
6596         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6597         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6598
6599 2001-04-24  Jerry James <james@xemacs.org>
6600
6601         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6602         correct order.
6603
6604 2001-06-01  Ben Wing  <ben@xemacs.org>
6605
6606         * event-msw.c (debug_mswin_messages):
6607         conditionalize the messages that were causing compile errors.
6608         (if only macros could generate #ifdef statements ...)
6609
6610 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6611
6612         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6613
6614 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6615
6616         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6617
6618 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6619
6620         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6621         * process-unix.c (unix_canonicalize_host_name):
6622         sysdep.c (init_system_name):
6623         Use it to conditionally support IPv6 canonicalization.
6624
6625 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6626
6627         * event-msw.c:
6628         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6629
6630 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6631
6632         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6633         attempt is made to scroll when no scroll bar is available.
6634
6635 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6636
6637         * input-method-motif.c (XIM_delete_frame): New callback.
6638         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6639         got deleted from 21.4.3.)
6640
6641 2001-06-01  Ben Wing  <ben@xemacs.org>
6642
6643         * nt.c (mswindows_utime):
6644         * nt.c (close_file_data):
6645         fix off-by-one-indirection error.
6646
6647 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6648
6649         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6650         because set_file_times() now takes Lisp_Object path, instead of
6651         char*.
6652         * nt.c: Include buffer.h.
6653         * nt.c (convert_from_time_t): New.
6654         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6655         not set mtime correctly.
6656         * nt.h: Declare mswindows_utime().
6657         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6658         path, instead of char*.
6659         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6660
6661 2001-05-30  Ben Wing  <ben@xemacs.org>
6662
6663         For 21.4:
6664
6665         (Stephen, just take all event-msw.c patches.  This includes
6666         the "iconify" fix below.)
6667
6668         * event-msw.c:
6669         * event-msw.c (mswindows_dequeue_dispatch_event):
6670         * event-msw.c (assert):
6671         * event-msw.c (emacs_mswindows_quit_p):
6672         * event-msw.c (debug_mswin_messages):
6673         * event-msw.c (debug_output_mswin_message):
6674         * event-msw.c (vars_of_event_mswindows):
6675         Fix yet more problems with C-g handling.
6676         Implement debug-mswindows-events.
6677         
6678 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6679
6680         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6681         
6682 2001-05-23  Ben Wing  <ben@xemacs.org>
6683
6684         * event-msw.c (winsock_writer):
6685         * event-msw.c (winsock_closer):
6686         prior kludgy code was clobbering the buffer, thinking it was
6687         "unused" space to store an unneeded return value; instead, use
6688         the variable we've already got staring us in the face.
6689
6690 2001-05-17  Andy Piper  <andy@xemacs.org>
6691
6692         * sysfile.h: don't assume that file attributes are boolean
6693
6694 2001-05-23  Ben Wing  <ben@xemacs.org>
6695
6696         * device-msw.c (msprinter_init_device):
6697         signal an error rather than crash with an unavailable network
6698         printer (from Mike Alexander).
6699         
6700         * event-msw.c:
6701         * event-msw.c (struct winsock_stream):
6702         * event-msw.c (winsock_writer):
6703         * event-msw.c (winsock_closer):
6704         * event-msw.c (make_winsock_stream_1):
6705         cleanup headers.  fix (hopefully) an error with data corruption
6706         when sending to a network connection.
6707
6708         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6709         to handle the ~user prefix by (a) always assuming we're referencing
6710         ourselves and not even verifying the user -- hence any file with
6711         a tilde as its first char is invalid! (b) if there wasn't a slash
6712         following the filename, the pointer was set *past* the end of
6713         file and we started reading from uninitialized memory.  Now we
6714         simply treat these as files, always.
6715
6716         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6717         
6718 2001-05-19  Ben Wing  <ben@xemacs.org>
6719
6720         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6721
6722         * process-nt.c:
6723         * process-nt.c (vars_of_process_nt):
6724         remove unused mswindows-quote-process-args.  rec for 21.4.
6725         
6726 2001-05-12  Ben Wing  <ben@xemacs.org>
6727
6728         * event-msw.c (mswindows_dde_callback):
6729         * event-msw.c (mswindows_wnd_proc):
6730         eliminate cygwin warnings.
6731
6732 2001-05-06  Ben Wing  <ben@xemacs.org>
6733
6734         * console-msw.h:
6735         * device-msw.c:
6736         * device-msw.c (print_dialog_worker):
6737         * device-msw.c (mswindows_handle_print_dialog_box):
6738         * device-msw.c (syms_of_device_mswindows):
6739         * dialog-msw.c (mswindows_make_dialog_box_internal):
6740         * general-slots.h:
6741         implement printing the selection when it's selected.
6742
6743 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6744
6745         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6746
6747 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6748
6749         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6750         EMACS_INT is signed.
6751
6752 2001-04-15  Michael Lausch  <mla@1012surf.net>
6753
6754         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6755         gtk_widget_request_size() to give scrollbar >0 width for
6756         GTK >1.2.8.
6757
6758 2001-05-30  William M. Perry  <wmperry@gnu.org>
6759
6760         * event-gtk.c: Check for buttons as modifier keys.
6761
6762 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6763
6764         * s\mingw32.h:
6765         Properly find MinGW's <process.h> inside Cygwin's restructured
6766         include directories.  Don't try to include <cygwin/version.h>
6767         since we are dropping support for MinGW in versions of Cygwin
6768         earlier than b21.
6769         * nt.c:
6770         Drop support for MinGW in versions of Cygwin before b21.
6771         * sysdep.c:
6772         Properly find MinGW's <process.h> inside Cygwin's restructured
6773         include directories.
6774         * syswindows.h:
6775         Drop support for MinGW in versions of Cygwin before b21.
6776         * unexcw.c:
6777         Even though a.out.h is no longer detected by configure, allow
6778         MinGW to use it until we figure out how to do the job with Win32.
6779
6780 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6781
6782         * syntax.c (find_start_of_comment):
6783         Fix `unbalanced parentheses' bug when dealing with mixed comment
6784         styles in c++/java/etc. mode
6785
6786 2001-05-29  Mike Alexander  <mta@arbortext.com>
6787
6788         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
6789         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
6790
6791 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
6792
6793         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
6794
6795 2001-03-31  Mike Sperber <mike@xemacs.org>
6796
6797         * search.c (Freplace_match): Support FSF-style specification of
6798         match subexpression when applied to a buffer.
6799
6800 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6801
6802         * event-stream.c (is_scrollbar_event): add missing semicolon
6803
6804 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
6805
6806         * Makefile.in.in: Use TAR macro instead of hardcoding
6807           tar.  Allows use of GNU tar instead of system tar
6808
6809 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
6810
6811         * event-stream.c (is_scrollbar_event): add missing semicolon
6812
6813 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6814
6815         * XEmacs 21.4.3 "Academic Rigor" is released.
6816
6817 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
6818
6819         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
6820
6821 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
6822
6823         * buffer.c (Vcase_fold_search): Remove obsolete
6824           comment about non ASCII case-fold-search.  This
6825           bug has been fixed by case-table changes.
6826
6827 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
6828
6829         * event-msw.c: Restore include of events-mod.h.
6830
6831 2001-04-22   zhaoway  <zw@debian.org>
6832
6833         * event-stream.c (is_scrollbar_event): Noop returning 0 if
6834         !HAVE_SCROLLBARS.
6835
6836 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
6837
6838         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
6839
6840 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
6841
6842         * mule-charset.c (Fmake_charset): Add missing else.
6843
6844 2001-04-23  Ben Wing  <ben@xemacs.org>
6845
6846         * event-msw.c (FAKE_MOD_QUIT):
6847         * event-msw.c (mswindows_dequeue_dispatch_event):
6848         * event-msw.c (mswindows_wnd_proc):
6849         * event-msw.c (emacs_mswindows_quit_p):
6850         Get critical quit working.
6851
6852 2001-05-05  Ben Wing  <ben@xemacs.org>
6853
6854         * console-msw.h:
6855         * device-msw.c:
6856         * device-msw.c (mswindows_get_default_margin):
6857         * frame-msw.c (mswindows_size_frame_internal):
6858         * frame-msw.c (msprinter_init_frame_1):
6859         * frame-msw.c (vars_of_frame_mswindows):
6860         Change top/bottom margin defaults to 0.5 inches.
6861
6862 2001-05-01  Martin Buchholz  <martin@xemacs.org>
6863
6864         Fix link error with gcc 3.0 on Linux.
6865         * terminfo.c (UP): Remove.
6866         * terminfo.c (BC): Remove.
6867         * terminfo.c (PC): Remove.
6868         They weren't used, and in any case, these symbols should be
6869         defined in the *library*.
6870
6871 2001-05-03  Martin Buchholz  <martin@xemacs.org>
6872
6873         * s/aix4.h: Fix crash with xlc -O3.
6874         Improve comment explaining how -O3 works.
6875
6876 2001-04-15  Ben Wing  <ben@xemacs.org>
6877
6878         * event-stream.c:
6879         * event-stream.c (Fnext_event):
6880         * event-stream.c (is_scrollbar_event):
6881         * event-stream.c (execute_command_event):
6882         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
6883         crash' problem.  His fix introduces other problems.  We filter
6884         out scrollbar events specifically, making them somewhat invisible
6885         to command-building, and not appearing in `this-command-keys'.
6886         More work is still needed (see comments in event-stream.c), but
6887         this fixes all the major problems.
6888
6889 2001-04-20  Ben Wing  <ben@xemacs.org>
6890
6891         * .cvsignore: Added stuff for Windows.
6892
6893 2001-04-28  Ben Wing  <ben@xemacs.org>
6894
6895         * buffer.c (Ferase_buffer):
6896         * editfns.c (buffer_insert1):
6897         * editfns.c (Finsert_before_markers):
6898         * editfns.c (Finsert_string):
6899         * editfns.c (Finsert_char):
6900         * editfns.c (Fdelete_region):
6901         * editfns.c (Fwiden):
6902         * editfns.c (Fnarrow_to_region):
6903         remove bogus lines setting zmacs_region_stays to 0.
6904         
6905 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
6906
6907         * process-unix.c (unix_open_network_stream): If connect() fails
6908         invalidate file descriptor after closing it.
6909
6910 2001-03-08  Mike Alexander  <mta@arbortext.com>
6911
6912         * event-msw.c (mswindows_need_event_in_modal_loop):
6913         Don't dispatch a message if we didn't get one.
6914         (mswindows_need_event):
6915         Terminate the correct process when one exits instead of the first
6916         one on Vprocess_list and look for process termination when in
6917         mswindows_protect_modal_loop.
6918
6919 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
6920
6921         * XEmacs 21.4.1 "Copyleft" is released.
6922
6923 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6924
6925         * input-method-motif.c (XIM_delete_frame): New callback.
6926         (XIM_init_frame): Register it.
6927
6928 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6929
6930         * XEmacs 21.4.0 "Solid Vapor" is released.
6931
6932 2001-04-15  Ben Wing  <ben@xemacs.org>
6933
6934         * cmdloop.c (call_command_loop):
6935         Fix braino in bit-rotting code.
6936         
6937 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
6938
6939         * extents.c (Fset_extent_endpoints): Force creation of extent info
6940         in buffer_or_string.
6941
6942         * extents.c (process_extents_for_insertion_mapper): Correctly
6943         check for open-open zero-length extents.
6944
6945 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
6946
6947         * lisp.h: New typedefs Memory_count, Element_count.
6948         * regex.c:
6949         * regex.h:
6950         Sign-compare warning elimination: several unsigned -> signed.
6951         Based on work by Ben Wing <ben@xemacs.org>.
6952
6953 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
6954
6955         * XEmacs 21.2.47 "Zephir" is released.
6956
6957 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
6958
6959         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
6960
6961 2001-04-03  Mike Sperber <mike@xemacs.org>
6962
6963         * search.c: Revert previous patch due because of release.
6964
6965 2001-03-30  Ben Wing  <ben@xemacs.org>
6966
6967         * s\cygwin32.h:
6968         Add missing killpg prototype.
6969
6970         * elhash.c:
6971         Add a comment about fixing problems when a new entry is added
6972         while mapping.
6973
6974         * frame-msw.c (mswindows_init_frame_1):
6975         Fix compile warnings.
6976
6977         * menubar.c (vars_of_menubar):
6978         Provide `menu-accelerator-support' to indicate that we properly
6979         support %_ in menu specifications, so that package code can
6980         conditionalize on this (and remove %_ from menu specifications
6981         on older versions).
6982
6983         * event-msw.c:
6984         * scrollbar-msw.c:
6985         * scrollbar-msw.c (can_scroll):
6986         * scrollbar-msw.h:
6987         Fix handling of mouse wheel under Windows to follow standards --
6988         now scrolls window under pointer, not selected window.
6989
6990 2001-03-31  Mike Sperber <mike@xemacs.org>
6991
6992         * search.c (Freplace_match): Support FSF-style specification of
6993         match subexpression when applied to a buffer.
6994
6995 2001-03-15  Martin Buchholz  <martin@xemacs.org>
6996
6997         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
6998         function to modify KEYMAP, so map over a copy of the hash table.
6999
7000 2001-03-21  Martin Buchholz <martin@xemacs.org>
7001
7002         * XEmacs 21.2.46 "Urania" is released.
7003
7004 2001-03-20  Dan Holmsand  <dan@eyebee.com>
7005
7006         * realpath.c (xrealpath): Make file-truename work with symlinks to
7007         /cygdrive paths on cygwin. Always lowercase drive-letters on
7008         native windows.
7009         (cygwin_readlink): Don't try to find canonical filename unless
7010         file exists.
7011
7012 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
7013
7014         * ChangeLog: Log GTK merge.
7015
7016         * dumper.c:
7017         * select-x.c:
7018         * specifier.c:
7019         * symeval.h:
7020         Revert gratuitous whitespace changes from GTK merge.
7021
7022         * emacs.c: Document end of complex #ifdef @ l. 1495.
7023
7024
7025 2001-03-12  Andy Piper  <andy@xemacs.org>
7026
7027         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
7028         have to do likewise.
7029
7030 2001-03-12  Andy Piper  <andy@xemacs.org>
7031
7032         * sysdep.c: we only support mingw now.
7033
7034 2001-03-09  Andy Piper  <andy@xemacs.org>
7035
7036         * unexcw.c (copy_executable_and_dump_data_section): making approx
7037         overrun a warning only.
7038
7039 2001-03-10  William M. Perry  <wmperry@aventail.com>
7040
7041         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
7042         satisfy Stephen's identical-after-cpp plea.
7043
7044 2001-03-02  Ben Wing  <ben@xemacs.org>
7045
7046         * cmds.c:
7047         * cmds.c (Fforward_char):
7048         * syntax.c:
7049         * window.c:
7050
7051         Augment documentation of the most common motion commands to make
7052         note of the shifted-motion support.
7053         
7054 2001-03-02  Ben Wing  <ben@xemacs.org>
7055
7056         * nt.c (mswindows_fstat):
7057         * nt.c (mswindows_stat):
7058         * search.c (boyer_moore):
7059         Fix compile warnings under Windows.
7060         
7061         * sysdep.c (sys_readdir):
7062         Fix buggy filename-conversion code under Mule.
7063
7064 2001-03-09  William M. Perry  <wmperry@aventail.com>
7065
7066         * Makefile.in.in:
7067         * config.h.in:
7068         * console.c:
7069         * console.h:
7070         * device.c:
7071         * device.h:
7072         * dragdrop.c:
7073         * emacs.c:
7074         * event-stream.c:
7075         * events.c:
7076         * events.h:
7077         * faces.c:
7078         * frame.h:
7079         * general-slots.h:
7080         * glyphs.c:
7081         * gutter.c:
7082         * inline.c:
7083         * lisp.h:
7084         * lrecord.h:
7085         * make-src-depend:
7086         * redisplay-output.c:
7087         * redisplay.c:
7088         * symsinit.h:
7089         * sysfile.h:
7090         * toolbar.c:
7091         * window.c:
7092         The Great GTK Merge.
7093
7094         * ChangeLog.GTK:
7095         * console-gtk.c:
7096         * console-gtk.h:
7097         * device-gtk.c:
7098         * emacs-marshals.c:
7099         * emacs-widget-accessors.c:
7100         * event-gtk.c:
7101         * frame-gtk.c:
7102         * gccache-gtk.c:
7103         * gccache-gtk.h:
7104         * glade.c:
7105         * glyphs-gtk.c:
7106         * glyphs-gtk.h:
7107         * gtk-glue.c:
7108         * gtk-xemacs.c:
7109         * gtk-xemacs.h:
7110         * gui-gtk.c:
7111         * gui-gtk.h:
7112         * menubar-gtk.c:
7113         * native-gtk-toolbar.c:
7114         * objects-gtk.c:
7115         * objects-gtk.h:
7116         * redisplay-gtk.c:
7117         * scrollbar-gtk.c:
7118         * scrollbar-gtk.h:
7119         * select-gtk.c:
7120         * toolbar-gtk.c:
7121         * ui-byhand.c:
7122         * ui-gtk.c:
7123         * ui-gtk.h:
7124         The Great GTK Merge: new files.
7125
7126 2001-02-26  Ben Wing  <ben@xemacs.org>
7127
7128         Reapplied Lstream change.
7129
7130 2001-02-26  Ben Wing  <ben@xemacs.org>
7131
7132         Undid the last change, since it is more controversial than I
7133         thought.  It should be back in at some point soon.
7134         
7135 2001-02-25  Ben Wing  <ben@xemacs.org>
7136
7137         * buffer.c:
7138         * callproc.c (Fold_call_process_internal):
7139         * event-msw.c (ntpipe_slurp_reader):
7140         * event-msw.c (ntpipe_shove_writer):
7141         * event-msw.c (winsock_reader):
7142         * event-msw.c (winsock_writer):
7143         * file-coding.c:
7144         * file-coding.c (detect_eol_type):
7145         * file-coding.c (detect_coding_type):
7146         * file-coding.c (determine_real_coding_system):
7147         * file-coding.c (Fdetect_coding_region):
7148         * file-coding.c (decoding_reader):
7149         * file-coding.c (decoding_writer):
7150         * file-coding.c (mule_decode):
7151         * file-coding.c (Fdecode_coding_region):
7152         * file-coding.c (encoding_reader):
7153         * file-coding.c (encoding_writer):
7154         * file-coding.c (mule_encode):
7155         * file-coding.c (Fencode_coding_region):
7156         * file-coding.c (detect_coding_sjis):
7157         * file-coding.c (decode_coding_sjis):
7158         * file-coding.c (encode_coding_sjis):
7159         * file-coding.c (detect_coding_big5):
7160         * file-coding.c (decode_coding_big5):
7161         * file-coding.c (encode_coding_big5):
7162         * file-coding.c (detect_coding_ucs4):
7163         * file-coding.c (decode_coding_ucs4):
7164         * file-coding.c (encode_coding_ucs4):
7165         * file-coding.c (detect_coding_utf8):
7166         * file-coding.c (decode_coding_utf8):
7167         * file-coding.c (encode_coding_utf8):
7168         * file-coding.c (detect_coding_iso2022):
7169         * file-coding.c (decode_coding_iso2022):
7170         * file-coding.c (encode_coding_iso2022):
7171         * file-coding.c (decode_coding_no_conversion):
7172         * file-coding.c (encode_coding_no_conversion):
7173         * glyphs-x.c (write_lisp_string_to_temp_file):
7174         * gpmevent.c (tty_get_foreign_selection):
7175         * lisp.h:
7176         * lstream.c:
7177         * lstream.c (Lstream_flush_out):
7178         * lstream.c (Lstream_adding):
7179         * lstream.c (Lstream_write_1):
7180         * lstream.c (Lstream_write):
7181         * lstream.c (Lstream_raw_read):
7182         * lstream.c (Lstream_read_more):
7183         * lstream.c (Lstream_read):
7184         * lstream.c (Lstream_unread):
7185         * lstream.c (Lstream_fputc):
7186         * lstream.c (stdio_reader):
7187         * lstream.c (stdio_writer):
7188         * lstream.c (filedesc_reader):
7189         * lstream.c (filedesc_writer):
7190         * lstream.c (lisp_string_reader):
7191         * lstream.c (struct fixed_buffer_stream):
7192         * lstream.c (make_fixed_buffer_input_stream):
7193         * lstream.c (make_fixed_buffer_output_stream):
7194         * lstream.c (fixed_buffer_reader):
7195         * lstream.c (fixed_buffer_writer):
7196         * lstream.c (struct resizing_buffer_stream):
7197         * lstream.c (resizing_buffer_writer):
7198         * lstream.c (dynarr_writer):
7199         * lstream.c (lisp_buffer_reader):
7200         * lstream.c (lisp_buffer_writer):
7201         * lstream.h:
7202         * lstream.h (lstream_implementation):
7203         * lstream.h (struct lstream):
7204         * md5.c (Fmd5):
7205         * process-nt.c (nt_send_process):
7206         * process-unix.c (unix_send_process):
7207         
7208         Correct Lstream lossage due to mixing of signed and unsigned
7209         quantities.  All Lstream uses of size_t and ssize_t are now a
7210         single signed data type Lstream_data_count.  This fixes problems
7211         under Windows with sending large quantities of data to a process,
7212         and may well fix other subtle bugs.
7213
7214 2001-02-23  Martin Buchholz <martin@xemacs.org>
7215
7216         * XEmacs 21.2.45 "Thelxepeia" is released.
7217
7218 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7219
7220         * lisp-union.h (XSETINT): 
7221         (XSETCHAR):
7222         (XSETOBJ): 
7223         Reverse previous change of 2001-02-06.
7224
7225 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7226
7227         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7228         buffers.
7229         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7230         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7231         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7232         * regex.c (POS_AS_IN_BUFFER): removed
7233         * regex.c (re_search_2):
7234         * regex.c (re_match_2):
7235         Don't use an offset of 1 when calculating buffer positions, since
7236         `BI_BUF_BEGV' does it already.
7237
7238 2001-02-18  Wim Dumon  <wim@easics.be>
7239
7240         * insdel.c (prepare_to_modify_buffer): Also check for
7241         supersession when clash-detection is enabled. 
7242
7243 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7244
7245         * regex.c (re_match_2_internal):
7246         Convert temp characters from 'const unsigned char' to 're_char'.
7247         Fix crashing bug with extended characters under mule.
7248         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7249         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7250         font-lock, pdump, and new syntax-table code.
7251         * syntax.c (find_start_of_comment):
7252         (find_end_of_comment):
7253         (forward-comment):
7254         Fix crashing bugs involving moving beyond end of buffer.
7255         * syntax.c (find_start_of_comment):
7256         Fixed logic to allow proper detection of cases where the same
7257         character is used to end both a two-char comment start and a
7258         two-char comment end sequence. Fixes `(forward-comment -1)'.
7259         * syntax.c (find_start_of_comment):
7260         Return position just past last comment-end character for all cases
7261         (previously was only done for two-char comment-end sequences).
7262         * syntax.c (forward-comment):
7263         Take value returned from `find_end_of_comment', rather than
7264         incrementing it.
7265         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7266         Properly deal with BUFFERP (syntax_cache.object)
7267
7268 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7269
7270         * alloc.c (Fgarbage_collect): 
7271         * alloc.c (make_bit_vector_from_byte_vector):
7272         -Wsign-compare-correctness.
7273
7274 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7275
7276         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7277         (XSETCHAR): Likewise.
7278         (XSETOBJ): Likewise.
7279
7280 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7281
7282         * mule-canna.c (canna-func-delete_previous): 
7283         Rename to canna-func-delete-previous.
7284
7285 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7286
7287         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7288
7289 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7290
7291         * font-lock.c (find_context): Fix C++ compile errors introduced by
7292         recent patch
7293
7294 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7295
7296         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7297         pragma, but earlier ones barf on the same pragma.
7298
7299 2001-02-06  Mike Sperber <mike@xemacs.org>
7300
7301         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7302         `configure-mule-lisp-directory'.
7303
7304 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7305
7306         Make sure dump-id.c is compiled in the same way as other .c's.
7307         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7308         * dump-id.h: Remove.
7309         * emacs.c: Move dump-id.h into dumper.h.
7310         * dumper.h: Move dump-id.h into dumper.h.
7311         * Makefile.in.in:
7312         Use standard .c.o rule for building dump-id.o.
7313         Remove preprocessor flags from link command.
7314         Add dump-id.o to ${otherobjs} if PDUMP.
7315
7316 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7317
7318         Port FSF 20.7 syntax table improvements.
7319         * syntax.c.
7320         * syntax.h.
7321
7322         Fixups for new syntax table stuff.
7323         * dired.c: Include syntax.c.
7324         (Fdirectory_files): Initialize regex_match_object and
7325         regex_emacs_buffer.
7326         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7327         and Fget_char_property.
7328
7329         Use ported FSF 20.7 syntax table improvements.
7330         * font-lock.c.
7331         * regex.c.
7332         * search.c.
7333         
7334 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7335
7336         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7337         Unixware's enum boolean from sys/types.h.
7338
7339 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7340
7341         Fix support for building with latest Purify.
7342         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7343         (PURIFY_FLAGS): Likewise.
7344
7345 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7346
7347         * fileio.c (lisp_string_set_file_times): New.
7348         * fileio.c (Fcopy_file): Use it.
7349         Fixes bug:
7350         (copy-file filename non-ascii-filename t t)
7351         ==> No such file or directory, non-ascii-filename
7352
7353 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7354
7355         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7356         USHRT_MAX seems clearer than ~0 anyways.
7357
7358 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7359
7360         dumper improvements.  Inspired by Olivier.
7361         * dumper.c (pdump_max_align): New.
7362         * dumper.c (pdump_add_entry): Use pdump_max_align.
7363         * dumper.c (pdump_get_entry_list): Likewise.
7364         * dumper.c (pdump_scan_by_alignment): Likewise.
7365         Don't iterate through unnecessary alignments.
7366         * dumper.c (pdump_file_get): No need to align result of malloc().
7367         * dumper.c (pdump_mallocadr): Remove.  
7368         The result of malloc() is guaranteed to be maximally aligned.
7369         * dumper.c: s/elmt/elt/g;
7370         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7371         * dumper.c (pdump_alert_undump_object): Likewise.
7372         * dumper.c (pdump_align_table): 
7373         Don't support alignments > 64.
7374         Store ALIGNOF's, not shift counts, in table.
7375
7376 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7377
7378         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7379         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7380         * systime.h: Use HAVE_UTIME.
7381         * sysdep.c (struct utimbuf): Remove.
7382         * sysdep.c (set_file_times): Prefer utime() to utimes().
7383         * config.h.in (HAVE_UTIME): New.
7384         * config.h.in (HAVE_UTIME_H): Remove.
7385         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7386
7387 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7388
7389         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7390
7391 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7392
7393         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7394
7395 2001-02-08  Martin Buchholz <martin@xemacs.org>
7396
7397         * XEmacs 21.2.44 "Thalia" is released.
7398
7399 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7400
7401         Fixes crashes in kill-emacs on some systems.
7402         * process-unix.c (unix_kill_child_process):
7403         It's OK for kill() to fail with ESRCH.
7404
7405 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7406
7407         Contortions to make .gdbinit tricks work on most systems.
7408         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7409         * alloc.c (dbg_valmask): Make non-const.
7410         * alloc.c (dbg_typemask): Make non-const.
7411         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7412         * alloc.c (dbg_valbits): Make non-const.
7413         * alloc.c (dbg_gctypebits): Make non-const.
7414         * .gdbinit (decode_object): Make it work with AIX cc.
7415
7416 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7417
7418         * elhash.c (make_general_lisp_hash_table):
7419         Use simpler and more efficient calloc to clear entries.
7420
7421 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7422
7423         * window.c (window_scroll): Work around an AIX C compiler bug.
7424         Fixes 'scroll-up' does nothing problem with xlC.
7425
7426 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7427
7428         * .gdbinit: Remove obsolete comment.
7429
7430 2001-01-31  Mike Alexander  <mta@arbortext.com>
7431
7432         * select.c (Fown_selection_internal): Set owned_p for device
7433         method correctly.
7434
7435 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7436
7437         Port to g++ 2.97.
7438         "not" cannot be used as a macro name as it is an operator in C++
7439         * config.h.in: Stop #defining `not'.
7440         * chartab.c (check_category_char): not ==> not_p
7441         * chartab.h: Likewise.
7442         * regex.c (re_match_2_internal): Likewise.
7443
7444 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7445
7446         * lisp-disunion.h: Fix up comments.
7447
7448 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7449
7450         * keymap.c (define_key_check_and_coerce_keysym):
7451         (syms_of_keymap):
7452         Support mouse-6 and mouse-7 bindings in the obvious way.
7453
7454 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7455
7456         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7457
7458 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7459
7460         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7461         Previous patch missed DEFVAR_INT_MAGIC.
7462         Make sure future DEFVAR_foo use correct types.
7463         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7464         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7465         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7466         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7467         * (DEFVAR_INT): Likewise.
7468         * redisplay.c (vertical_clip): Should be of type Fixnum.
7469         * redisplay.c (horizontal_clip): Likewise.
7470         * lisp.h (dump_add_opaque_int): New.
7471         (dump_add_opaque_fixnum): New.
7472
7473 2001-01-29  Andy Piper  <andy@xemacs.org>
7474
7475         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7476         since they can be eval'ed
7477
7478 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7479
7480         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7481         Oops, XEmacs redefines `class'.  Use `typename' instead.
7482
7483 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7484
7485         * dumper.c: Fix C++ compile errors.
7486
7487 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7488
7489         * tparam.c: Use correct prototypes.
7490
7491 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7492
7493         * sysproc.h: #include util.h for NetBSD's openpty.
7494
7495 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7496
7497         More 64-bit correctness.
7498         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7499         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7500         Fix up comments.
7501         This finally finishes the 64-bit SGI port.
7502         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7503         * symbols.c: Fix up comments and type casts.
7504         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7505         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7506         * symeval.h (Fixnum): New type.
7507         * symeval.h (symbol_value_type): Fix up comment.
7508
7509         * commands.h:
7510         * nt.c:
7511         * emacs.c:
7512         * data.c:
7513         * redisplay.c:
7514         * abbrev.c:
7515         * dired-msw.c:
7516         * event-Xt.c:
7517         * eldap.c:
7518         * window.c:
7519         * sound.c:
7520         * event-stream.c:
7521         * eval.c:
7522         * buffer.c:
7523         * mule-canna.c: A million DEFVAR_INTs here...
7524         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7525         * extents.c:
7526         * cmdloop.c:
7527         * lisp.h:
7528         * select-x.c:
7529         * console-x.h:
7530         * event-msw.c:
7531         * mule-wnnfns.c:
7532         * hpplay.c:
7533         * ralloc.c:
7534         * alloc.c:
7535         * keymap.c:
7536         * profile.c:
7537         s/int/Fixnum/g in DEFVAR_INT declarations.
7538
7539 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7540
7541         Port pdump to SGI alignment-sensitive environment.
7542         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7543         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7544         properly aligned.
7545         Define and use aligned reading and writing macros.
7546         Use buffered stdio instead of posix i/o for faster dumping.
7547         Eliminate kludgy 256 byte space for header.
7548         Read and write from dump file using structs for alignment safety.
7549         * dumper.c (pdump_align_stream): New.
7550         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7551         * dumper.c (PDUMP_READ_ALIGNED): New.
7552         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7553         * dumper.c (pdump_static_Lisp_Object): New struct.
7554         * dumper.c (pdump_static_pointer): New struct.
7555         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7556         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7557         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7558         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7559
7560         * dumper.c (pdump_backtrace):
7561         * dumper.c (pdump_get_indirect_count):
7562         * dumper.c (pdump_register_object):
7563         * dumper.c (pdump_register_struct):
7564         * dumper.c (pdump_reloc_one):
7565         * dumper.c (pdump_scan_by_alignment):
7566         * dumper.c (pdump_dump_from_root_struct_ptrs):
7567         * dumper.c (pdump_dump_opaques):
7568         * dumper.c (pdump_dump_rtables):
7569         * dumper.c (pdump_dump_from_root_objects):
7570         * dumper.c (pdump):
7571         * dumper.c (pdump_load_finish):
7572         Use aligned reading and writing.
7573
7574         * dumper.c (pdump_free): Make static.
7575         * dumper.c (pdump_hFile): Likewise.
7576         * dumper.c (pdump_hMap): Likewise.
7577
7578 2001-01-26  Martin Buchholz <martin@xemacs.org>
7579
7580         * XEmacs 21.2.43 "Terspichore" is released.
7581
7582 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7583
7584         Type fiddling for window_config.saved_windows_count
7585         * window.c (struct window_config): 
7586         Make saved_windows_count member unsigned.
7587         * window.c (sizeof_window_config_for_n_windows): 
7588         Make parameter unsigned.
7589         * window.c (mark_window_config):
7590         * window.c (window_config_equal):
7591         * window.c (free_window_configuration):
7592         * window.c (Fset_window_configuration):
7593         * window.c (count_windows):
7594         * window.c (Fcurrent_window_configuration):
7595         * window.c (reinit_vars_of_window):
7596         Update all callers and users.
7597
7598 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7599
7600         Alignment correctness for flexible arrays.
7601         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7602         Make alignment-correct. Add interesting comments.
7603         * alloc.c (size_vector):
7604         * alloc.c (make_vector_internal):
7605         * alloc.c (make_bit_vector_internal):
7606         * alloc.c (sweep_bit_vectors_1):
7607         * fns.c (size_bit_vector):
7608         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7609         * window.c (sizeof_window_config_for_n_windows): 
7610         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7611
7612 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7613
7614         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7615
7616 2001-01-23  Andy Piper  <andy@xemacs.org>
7617
7618         * select.c (Fown_selection_internal): pass owned_p
7619
7620         * select-msw.c (mswindows_own_selection): New Signature.
7621
7622         * console.h (struct console_methods): add owned_p to
7623         _own_selection.
7624
7625         * select-x.c (x_own_selection): pass owned_p
7626         (hack_motif_clipboard_selection): use owned_p
7627         (vars_of_select_x): new variable -
7628         x_selection_strict_motif_ownership.
7629
7630 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7631
7632         * specifier.h (specifier_data_offset): Remove pointless parens.
7633         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7634
7635 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7636
7637         Make Lisp_Object sizeof methods be alignment-correct.
7638         pdump must restore objects to the same alignment as the C compiler
7639         assumes.  It really matters on SGIs.
7640         * lstream.c (aligned_sizeof_lstream): New.
7641         (sizeof_lstream): Use aligned_sizeof_lstream.
7642         (Lstream_new): Likewise.
7643         * opaque.c (aligned_sizeof_opaque): New.
7644         (sizeof_opaque): Use aligned_sizeof_opaque.
7645         (make_opaque): Likewise.
7646         * specifier.c (aligned_sizeof_specifier): New.
7647         (sizeof_specifier): Use aligned_sizeof_specifier.
7648         (make_specifier_internal): Likewise.
7649
7650 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7651
7652         * lstream.h (struct lstream): Use max_align_t for trailing data.
7653         * specifier.h (struct Lisp_Specifier): Likewise.
7654
7655 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7656
7657         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7658         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7659         (CCL_SUSPEND): Likewise.
7660         (CCL_INVALID_CMD): Likewise.
7661         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7662         (ccl_driver): Likewise.
7663         (CCL_WRITE_CHAR): Macro hygiene.
7664         (CCL_WRITE_STRING): Macro hygiene.
7665
7666 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7667
7668         Port "portable" dumper to SunOS 4 and HP-UX.
7669         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7670         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7671         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7672
7673 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7674
7675         * lisp.h (ALIGNOF): A better definition for C++.
7676
7677 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7678
7679         Macro hygiene.
7680         Fix printf warnings: int format, long int arg.
7681         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7682         (PUSH_FAILURE_POINT): Use correct printf formats.
7683         (POP_FAILURE_POINT): Use correct printf formats.  
7684         Use do {...} while (0)
7685
7686 2001-01-20  Martin Buchholz <martin@xemacs.org>
7687
7688         * XEmacs 21.2.42 "Poseidon" is released.
7689
7690 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7691
7692         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7693
7694 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7695
7696         De-kludgify FIXED_TYPE free list frobbing.
7697         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7698         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7699         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7700         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7701         * alloc.c (LRECORD_FREE_P): New.
7702         * alloc.c (MARK_LRECORD_AS_FREE): New.
7703         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7704         * alloc.c (STRUCT_FREE_P): Deleted.
7705         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7706         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7707         * alloc.c (STRING_CHARS_FREE_P): New.
7708         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7709         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7710         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7711         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7712         * alloc.c (resize_string): Use new definitions.
7713         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7714         * alloc.c (verify_string_chars_integrity): Use new definitions.
7715         * alloc.c (compact_string_chars): Use new definitions.
7716         * alloc.c: Update monster comments.
7717         * lrecord.h (lrecord_type): Add some new lrecord types for
7718         alloc.c's use.
7719
7720 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7721
7722         Improve alignment hackery.
7723         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7724         (max_align_t): Moved from opaque.h - general purpose.
7725         (ALIGN_PTR): Use size_t, not long.
7726         * opaque.h (max_align_t): Move to lisp.h.
7727
7728 2001-01-18  Norbert Koch  <nk@LF.net>
7729
7730         * gui.h: Fix and add prototypes to fix build problems.
7731
7732 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7733
7734         temacs is going away, so `dump-temacs' is now a bad name.
7735         * .dbxrc (dump-temacs): Rename to `dmp'.
7736         * .gdbinit (dump-temacs): Rename to `dmp'.
7737
7738 2001-01-17  Andy Piper  <andy@xemacs.org>
7739
7740         * glyphs.c (print_image_instance): comment to make martin happy.
7741
7742         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7743         change.
7744
7745         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7746         activation.
7747         (mswindows_tab_control_redisplay): warning suppression.
7748
7749         * glyphs-widget.c (widget_update): re-write to cope with updated
7750         items.
7751         (widget_instantiate): use new gui_item functions.
7752         (tab_control_update): deleted.
7753         (progress_gauge_update): deleted.
7754         (image_instantiator_progress_guage): take out update reference.
7755         (image_instantiator_tree_view): ditto.
7756         (image_instantiator_tab_control): ditto.
7757
7758         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7759         Right the new way.
7760         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7761         return whether anything was changed.
7762         (update_gui_item_keywords): as it sounds.
7763
7764         * gui.h: declare widget_gui_parse_item_keywords.
7765
7766         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7767         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7768
7769 2001-01-17  Martin Buchholz <martin@xemacs.org>
7770
7771         * XEmacs 21.2.41 "Polyhymnia" is released.
7772
7773 2001-01-16  Didier Verna  <didier@xemacs.org>
7774
7775         * glyphs.c (image_instantiate): don't use fallbacks when
7776         instantiating a face's background pixmap by inheritance.
7777
7778 2001-01-14  Mike Sperber <mike@xemacs.org>
7779
7780         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7781         Conditionalize accordingly.
7782
7783 2001-01-16  Martin Buchholz  <martin@xemacs.org>
7784
7785         * dumper.c (pdump_file_get): Fix a compiler warning.
7786
7787 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7788
7789         Make Purify happy when pdumping.
7790         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
7791         iniitalizing all bits of new lisp object memory.
7792         * symbols.c (Fmake_local_variable): Likewise.
7793         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
7794         * symbols.c (Fdefvaralias): Likewise.
7795         * mule-charset.c (vars_of_mule_charset): Likewise.
7796
7797 2001-01-15  Martin Buchholz  <martin@xemacs.org>
7798         Add the `-nd' flag when running pre-dump operations under the debugger.
7799         * .dbxrc (run-temacs): Add `-nd'.
7800         * .dbxrc (update-elc): Likewise.
7801         * .dbxrc (dump-temacs): Likewise.
7802         * .gdbinit (run-temacs): Likewise.
7803         * .gdbinit (check-temacs): Likewise.
7804         * .gdbinit (update-elc): Likewise.
7805         * .gdbinit (dump-temacs): Likewise.
7806
7807 2001-01-14  Martin Buchholz  <martin@xemacs.org>
7808
7809         Allow building 64-bit executables on AIX with GNU malloc, e.g.
7810         export OBJECT_MODE=64
7811         configure --pdump --use-union-type=no
7812         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
7813         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
7814
7815         * miscplay.c (sndcnv8U_2mono):
7816         Avoid two uses of `++' in the same expression.
7817         Suppresses a GCC warning.
7818
7819 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7820
7821         Make sure future compilers don't miscompile alloc.c.
7822         * alloc.c:
7823         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
7824         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
7825
7826 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7827
7828         * dumper.c: A little post-pdump-rename comment fixup.
7829
7830 2001-01-09  Jerry James  <james@eecs.ku.edu>
7831
7832         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
7833
7834 2001-01-13  Martin Buchholz  <martin@xemacs.org>
7835
7836         * *.[ch]: Globally rename symbols using the following `pdump-rename'
7837         script:
7838         #!/bin/sh
7839         replace_symbol () {
7840           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
7841         }
7842
7843         replace_symbol pdump_wire_lists pdump_weak_object_chains
7844         replace_symbol pdump_wire_list dump_add_weak_object_chain
7845
7846         replace_symbol pdump_wires pdump_root_objects
7847         replace_symbol pdump_wire dump_add_root_object
7848
7849         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
7850         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
7851
7852         replace_symbol dumpstructinfos pdump_root_struct_ptrs
7853         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
7854         replace_symbol dumpstructinfo pdump_root_struct_ptr
7855         replace_symbol dumpstruct dump_add_root_struct_ptr
7856
7857         replace_symbol dumpopaque dump_add_opaque
7858         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
7859         replace_symbol dumpopaqueinfos pdump_opaques
7860         replace_symbol dumpopaqueinfo pdump_opaque
7861
7862         replace_symbol nb_structdump nb_root_struct_ptrs
7863         replace_symbol nb_opaquedump nb_opaques
7864
7865         replace_symbol align_table pdump_align_table
7866         replace_symbol dump_header pdump_header
7867
7868         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
7869         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
7870
7871
7872 2001-01-12  Martin Buchholz  <martin@xemacs.org>
7873
7874         * s/aix4.h: Keep the C for AIX compiler from overaggressively
7875         optimizing bytecount_to_charcount().
7876
7877 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7878
7879         * config.h.in:
7880         (HAVE_DLFCN_H): Removed.
7881         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
7882
7883 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7884
7885         Portable dumper maintainability improvements.
7886         * alloc.c (staticpro):
7887         * alloc.c (staticpro_nodump):
7888         * alloc.c (garbage_collect_1):
7889         * alloc.c (reinit_alloc_once_early):
7890         * alloc.c (init_alloc_once_early):
7891         * alloc.c: Move dumper functions to alloc.c.
7892         * dumper.c (pdump_backtrace):
7893         * dumper.c (pdump_dump_structs):
7894         * dumper.c (pdump_dump_opaques):
7895         * dumper.c (pdump_dump_rtables):
7896         * dumper.c (pdump_dump_wired):
7897         * dumper.c (pdump):
7898         * dumper.c (pdump_load_check):
7899         * dumper.c (pdump_load_finish):
7900         * dumper.c (pdump_file_unmap):
7901         * dumper.c (pdump_file_get):
7902         * dumper.c (pdump_resource_free):
7903         * dumper.c (pdump_resource_get):
7904         * dumper.c (pdump_file_free):
7905         * dumper.c (pdump_file_try):
7906         * dumper.c (pdump_load):
7907         Remove fixed size limits on staticpro(), staticpro_nodump(),
7908         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
7909         Remove custom code for dumping lrecord_implementations_table - use
7910         dumpopaque instead.
7911         Remove (most of the) custom code for dumping staticpros - dump it
7912         like any other dynarr.
7913
7914         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
7915         * dumper.c: Moved functions from alloc.c.
7916         * alloc.c (dumpstruct): Moved to dumper.c.
7917         * alloc.c (dumpopaque): Likewise.
7918         * alloc.c (pdump_wire): Likewise.
7919         * alloc.c (pdump_wire_list): Likewise.
7920
7921         * lisp.h (Dynarr_sizeof): New.
7922         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
7923         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
7924         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
7925
7926         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
7927         * lisp.h (dumpopaque): ditto.
7928         * lisp.h (pdump_wire): ditto.
7929         * lisp.h (pdump_wire_list): ditto.
7930
7931 2001-01-09  Martin Buchholz  <martin@xemacs.org>
7932
7933         * make-src-depend (PrintPatternDeps):
7934         Use `sort' to make output independent of perl version.
7935
7936 2001-01-08  Martin Buchholz  <martin@xemacs.org>
7937
7938         Port to Netbsd 1.5.
7939         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
7940         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
7941
7942 2001-01-03  Didier Verna  <didier@xemacs.org>
7943
7944         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
7945         that `focus_frame' is alive before thinking of calling
7946         `redisplay_redraw_cursor' on it.
7947
7948 2001-01-08  Martin Buchholz <martin@xemacs.org>
7949
7950         * XEmacs 21.2.40 is released.
7951
7952 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
7953
7954         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
7955
7956 2001-01-06  Martin Buchholz  <martin@xemacs.org>
7957
7958         * alloc.c (dbg_valmask): Make const.
7959         * alloc.c (dbg_typemask): Make const.
7960         * alloc.c (dbg_USE_UNION_TYPE): Make const.
7961         * alloc.c (dbg_valbits): Make const.
7962         * alloc.c (dbg_gctypebits): Make const.
7963
7964 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
7965
7966         * redisplay-x.c (x_bevel_area):
7967         redisplay.h (struct rune):
7968         Typo fixes in comments.
7969
7970 2001-01-05  Andy Piper  <andy@xemacs.org>
7971
7972         * glyphs-x.c (x_redisplay_widget): use size changed for offset
7973         adjustment.
7974
7975         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
7976
7977 2001-01-05  Martin Buchholz  <martin@xemacs.org>
7978
7979         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
7980
7981         * mule-ccl.c (stack_idx_of_map_multiple):
7982         Non const global data must not be initialized!
7983         Found by MIYASHITA Hisashi.
7984
7985 2001-01-02  Andy Piper  <andy@xemacs.org>
7986
7987         * frame.c (change_frame_size): make sure frame size is always
7988         marked as changed.
7989
7990         * glyphs.c (image_instance_layout): minor code reuse.
7991
7992         * window.c (Fcurrent_window_configuration): revert previous
7993         change.
7994
7995 2001-01-02  Martin Buchholz  <martin@xemacs.org>
7996
7997         * glyphs.h:
7998         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
7999
8000 2000-12-31  Andy Piper  <andy@xemacs.org>
8001
8002         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
8003         when widget gets unmapped.
8004
8005         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
8006         function. Make sure widgets losing focus don't just drop it.
8007         (handle_focus_event_1): record the widget with focus.
8008
8009 2000-12-31  Andy Piper  <andy@xemacs.org>
8010
8011         * window.c (allocate_window): use
8012         make_image_instance_cache_hash_table.
8013         (make_dummy_parent): ditto.
8014         (Fset_window_configuration): ditto.
8015
8016         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
8017
8018         * glyphs.c (process_image_string_instantiator): use
8019         INSTANTIATOR_TYPE.
8020         (get_image_instantiator_governing_domain): ditto.
8021         (normalize_image_instantiator): ditto.
8022         (instantiate_image_instantiator): ditto.
8023         (make_image_instance_1): ditto.
8024         (image_instantiate): ditto. Key on glyph *and* instantiator type.
8025         (instantiator_eq_equal): new function for use with instance hash
8026         tables.
8027         (instantiator_eq_hash): ditto.
8028         (make_image_instance_cache_hash_table): create a suitable hash
8029         table for storing image instances.
8030
8031         * elhash.h (hash_table_weakness): new internal weakness type
8032         HASH_TABLE_KEY_CAR_VALUE_WEAK.
8033         declare new functions.
8034
8035         * elhash.c (finish_marking_weak_hash_tables): introduce yet
8036         another weakness type for glyphs.
8037         (make_standard_lisp_hash_table): new function split out from
8038         make_general_lisp_hash_table.
8039         (make_lisp_hash_table): call make_standard_lisp_hash_table.
8040         (hash_table_instantiate): ditto.
8041         (Fmake_hash_table): ditto.
8042
8043 2000-12-31  Martin Buchholz <martin@xemacs.org>
8044
8045         * XEmacs 21.2.39 is released.
8046
8047 2000-12-29  Andy Piper  <andy@xemacs.org>
8048
8049         * menubar.c (menubar_visible_p_changed): signal the frame changed.
8050
8051         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
8052         the frame has changed so that we pick up geometry changes such as
8053         menubar visibility.
8054
8055 2000-12-28  Andy Piper  <andy@xemacs.org>
8056
8057         * lastfile.c (my_ebss): make a char array so we can pad the
8058         bss. Fixes cygwin unexec.
8059
8060         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
8061
8062 2000-12-26  Andy Piper  <andy@xemacs.org>
8063
8064         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
8065         comments and try and be more precise about a non-/SIGIO world.
8066         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
8067         SIGIO.
8068
8069         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
8070         we don't normalize to zero width or height.
8071
8072 2000-12-24  Andy Piper  <andy@xemacs.org>
8073
8074         * Makefile.in.in (ldflags): add -mwindows when appropriate.
8075
8076 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
8077
8078         * s/sco5.h: SCO 5 has pty support.
8079
8080 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
8081
8082         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
8083         input-method-xlib.c contains whole contents of input-method-xfs.c,
8084         so we can use input-method-xlib.c's code for USE_XFONTSET
8085         using #ifdefs.
8086         * input-method-xfs.c: removed.
8087
8088 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
8089
8090         * file-coding.h (enum coding_category_type): reorder enumerators to
8091         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
8092         (now one greater than largest real coding_category_type enumerator).
8093         * file-coding.c (coding_category_symbol, coding_category_by_priority,
8094         coding_category_system, fcd_descriptihon_1, decode_coding_category,
8095         Fcoding_category_list, Fset_coding_priority_list,
8096         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
8097         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
8098
8099 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8100
8101         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
8102         * redisplay-output.c (redisplay_output_window): Clear top of window
8103         when face is changed.
8104         * redisplay-x.c (x_redraw_exposed_window): Call
8105         redisplay_clear_top_of_window.
8106         * redisplay.h: Publish redisplay_clear_top_of_window.
8107
8108 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8109
8110         * buffer.c (Fkill_buffer): Map over all devices.
8111         * window.c (window_loop): Remove UNSHOW_BUFFER code.
8112         (list_windows): New function.
8113         (list_all_windows): Ditto.
8114         (Freplace_buffer_in_windows): Use them.
8115
8116 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8117
8118         * database.c (berkdb_subtype): Recognize new subtype `queue'.
8119         (Fopen_database): Use `db_create' instead of `db_open'.
8120         (syms_of_database): Initialize Qqueue.
8121
8122 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8123
8124         * buffer.c (common_init_complex_vars_of_buffer): Initialize
8125         buffer_local_face_property.
8126         * buffer.h (struct buffer): New member buffer_local_face_property.
8127         * window.c (Fset_window_buffer):  Mark window's face as changed
8128         when buffer has buffer local face.
8129         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8130         * objects.c (color_after_change): Set buffer_local_face_property
8131         when locale of face specifier is buffer.
8132         * objects.c (font_after_change): Ditto.
8133         * objects.c (face_boolean_after_change): Ditto.
8134         * glyphs.c (image_after_change): Ditto.
8135
8136 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8137
8138         * nt.c (mswindows_fstat): Report file permissions, volume serial
8139         number, etc. Code adapted from FSF Emacs 20.7.
8140
8141 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8142
8143         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8144         of stat when we don't have symbolic links, to make sure
8145         mswindows_stat is called on mswindows.
8146
8147 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8148
8149         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8150
8151 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8152
8153         * doprnt.c (emacs_doprnt_1): More printing fixes.
8154         Make printing of numbers compatible with libc and FSF Emacs.
8155         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8156         Use the system printf to do most of the hard work of formatting,
8157         instead of doprnt_1().
8158         Calculate memory to allocate for format string.
8159         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8160         (doprnt_1): Cleaner code and documentation.
8161
8162 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8163
8164         * Makefile.in.in: Use the loop variable to install headers.
8165
8166 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8167
8168         * window.c (Fsplit_window): Don't invalidate face cache.
8169
8170 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8171
8172         * minibuf.c (Fall_completions): Undo the previous change
8173         which removed checking elements start with space.
8174
8175 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8176
8177         * mule-canna.c: Didier suppression.
8178
8179 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8180
8181         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8182         (warning suppression).  Add English comment translations.
8183
8184 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8185
8186         * unexelfsgi.c (unexec): Better test for mmap failure.
8187
8188 2000-12-05  Martin Buchholz <martin@xemacs.org>
8189
8190         * XEmacs 21.2.38 is released.
8191
8192 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8193
8194         * redisplay.c (bar-cursor): Make a user variable.
8195
8196         * symsinit.h: Add init_postgresql_from_environment.
8197
8198 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8199
8200         * regex.c: Convert to clean C.
8201
8202 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8203
8204         * realpath.c:
8205         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8206         initialization.
8207         (sys_readlink): renamed to system_readlink to avoid conflict with
8208         the other sys_readlink.
8209
8210 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8211
8212         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8213
8214 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8215
8216         * postgresql.c (init_postgresql_from_environment): new function.
8217         (vars_of_postgresql): Move code initializing Lisp variables out and
8218         into init_postgresql_from_environment.
8219         emacs.c (main_1): Call init_postgresql_from_environment if and only
8220         if running a dumped XEmacs.
8221
8222 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8223
8224         * buffer.c: Make find-file-compare-truenames default to true on
8225         windows.
8226
8227         * realpath.c (win32_abs_start):
8228         (cygwin_readlink):
8229         (win32_readlink): New functions.
8230         (xrealpath): Return really real filenames on windows.
8231
8232         * fileio.c (Ffile_truename): Make file-truename work on windows.
8233
8234 2000-11-29  Didier Verna  <didier@xemacs.org>
8235
8236         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8237         * faces.c (update_face_cachel_data): use it.
8238         * faces.c (add_face_cachel): use it. Complete background pixmap
8239         frobbing in face cache if `update_face_cachel_data' has not done so.
8240
8241 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8242
8243         * search.c (string_match_1): Don't set last_thing_searched
8244         when search failed.
8245
8246 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8247
8248         * buffer.c: Include casetab.h
8249         (common_init_complex_vars_of_buffer): Use new case-table object.
8250         * buffer.h: Include casetab.h
8251         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8252         (DOWNCASE_TABLE_OF): Ditto.
8253         * bufslots.h: Remove char-tables and add case-table.
8254         * casetab.c: Include casetab.h
8255         (CASE_TABLE_P): Removed.
8256         (mark_case_table): New function.
8257         (allocate_case_table): New function.
8258         (Fcase_table_p): Use new case-table.
8259         (case_table_char): New function.
8260         (Fget_case_table): Ditto.
8261         (Fput_case_table): Ditto.
8262         (Fput_case_table_pair): Ditto.
8263         (Fcopy_case_table): Ditto.
8264         (Fcurrent_case_table): Return case-table.
8265         (Fstandard_case_table): Return case-table.
8266         (Fset_case_table): Fix doc-string.
8267         (set_case_table): Use case-table
8268         (syms_of_casetab): DEFSUBR new functions.
8269         (complex_vars_of_casetab): Set up standard case-table.
8270         * casetab.h: New file.
8271         * editfns.c: Include casetab.h
8272         (Fcompare_buffer_substrings): Use case-table.
8273         * inline.c: Include casetab.h
8274         * lisp.h: Remove bogus extern.
8275         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8276         * search.c: Include casetab.h
8277         (TRANSLATE_ASCII): Removed.
8278         (TRANSLATE): Unconditionally translate character.
8279         (looking_at_1): Use case-table.
8280         (string_match_1): Ditto.
8281         (fast_string_match): Ditto.
8282         (search_command): Ditto.
8283         (search_buffer): Separate boyer_moore.  Check whether
8284         boyer_moore is possible.
8285         (simple_search): New function.
8286         (boyer_moore): Separated from search_buffer. Translate char.
8287
8288 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8289
8290         * regex.c (RE_TR_ASCII): Removed.
8291         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8292         (PATFETCH): Call PATFETCH_RAW.
8293         (PATFETCH_RAW): Fetch Emchar.
8294         (PATUNFETCH): Decrement charptr.
8295         (GET_BUFFER_SPACE): Rename b to buf_end.
8296         (BUF_PUSH): Ditto.
8297         (BUF_PUSH_2): Ditto.
8298         (BUF_PUSH_3): Ditto.
8299         (EXTEND_BUFFER): Ditto.
8300         (SET_LIST_BIT): Ditto.
8301         (regex_compile): Ditto.  Translate non ASCII char.
8302         (compile_range): Ditto.
8303         (re_search_2): Ditto.
8304         (re_match_2_internal): Compare Emchar.
8305         (bcmp_translate): Ditto.
8306
8307 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8308
8309         * lisp.h (basic char/int typedefs):  comment improvement.
8310
8311 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8312
8313         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8314         unstomp inhibit_site_lisp.  Improve comments.
8315
8316 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8317
8318         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8319
8320 2000-11-28  Andy Piper  <andy@xemacs.org>
8321
8322         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8323         clipped display for windows in the gutter also.
8324         (redisplay_display_boxes_in_window_p): change semantics of return
8325         codes to be more intuitive.
8326
8327         * gutter.h: declare display_boxes_in_gutter_p.
8328
8329         * gutter.c (display_boxes_in_gutter_p): new function for
8330         redisplay.
8331
8332 2000-11-22  Andy Piper  <andy@xemacs.org>
8333
8334         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8335         autodetect domain.
8336
8337 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8338
8339         * callproc.c (Fold_call_process_internal):
8340         * gpm.c (Freceive_gpm_event):
8341         (tty_get_foreign_selection): Might be just warning supression.
8342         * fileio.c (Fwrite_region_internal):
8343         (Fset_visited_file_modtime):
8344         * keymap.c (event_matches_key_specifier_p):
8345         Initialize GCPROed variable.
8346
8347         * menubar-x.c (command_builder_find_menu_accelerator):
8348         Initialize before use.
8349
8350 2000-11-23  Andy Piper  <andy@xemacs.org>
8351
8352         * unexcw.c (unexec): make the resulting executable executable.
8353
8354 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8355
8356         * doc.c (get_doc_string):
8357         Use size_t, not int, for result of XSTRING_LENGTH.
8358
8359         * cmds.c (Fdelete_char):
8360         * cmds.c (Fpoint_at_eol):
8361         * cmds.c (Fself_insert_command):
8362         Use EMACS_INT, not int, for result of XINT.
8363         Someday, someone will want to insert more than 2**31 identical characters.
8364
8365         * cmds.c (Fdelete_char):
8366         * cmds.c (Fdelete_backward_char):
8367         * syntax.c (Fforward_word):
8368         * syntax.c (Fforward_comment):
8369         Make COUNT argument optional, for consistency with forward-char et al.
8370
8371 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8372
8373         * lisp.h:
8374         * print.c (long_to_string):
8375         Return a useful value: the pointer at end of data written.
8376
8377         * doprnt.c:
8378         Use `static const char * const' for constant strings.
8379         (union printf_arg): Delete `i', `ui' members.
8380         (get_doprnt_args):
8381         (emacs_doprnt_1):
8382         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8383         Do all printf-ing via the `l' specifier.
8384         Use EMACS_INT instead of int.
8385         Optimize.
8386
8387 2000-11-20  Didier Verna  <didier@xemacs.org>
8388
8389         * faces.c (update_face_cachel_data): don't frob the background
8390         pixmap when the window is being created. The face is needed but
8391         does not exist yet.
8392
8393 2000-11-20  Andy Piper  <andy@xemacs.org>
8394
8395         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8396         messing with a debug environment.
8397
8398 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8399
8400         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8401
8402 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8403
8404         * casetab.c (Fcase_table_p): Fix compile error and crash.
8405
8406 2000-11-18  Philip Aston  <philipa@mail.com>
8407
8408         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8409
8410 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8411
8412         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8413         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8414
8415 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8416
8417         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8418         * unexelf.c: Use HAVE_ELF_H.
8419         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8420         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8421         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8422         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8423         for testing.
8424         So this is an unexelfsgi.c from a different line of development.
8425
8426 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8427
8428         * regex.c (RE_TR_ASCII): New function.
8429         (RE_TRANSLATE): Call it.
8430
8431 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8432
8433         * buffer.h (TRT_TABLE_OF): Remove assert.
8434         (IN_TRT_TABLE_DOMAIN): Removed.
8435
8436 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8437
8438         * free-hook.c (log_gcpro):
8439         (show_gcprohist): Add support for GCPRO5.
8440
8441 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8442
8443         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8444
8445 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8446
8447         * symeval.h: Declare flush_all_buffer_local_cache.
8448
8449         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8450         (flush_buffer_local_cache): Added.
8451         (flush_all_buffer_local_cache): Added.
8452
8453         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8454
8455         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8456         (pdump_dump_data): Ditto.
8457         (pdump_reloc_one): Ditto.
8458         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8459         before dumping.
8460
8461
8462 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8463
8464         * buffer.c: Remove if 0'ed entry.
8465         * buffer.h: Rewrite TRT to use char-table.
8466         * bufslots.h: Remove mirror tables.
8467         * casetab.c: Remove mirror tables.
8468         (CASE_TABLE_P): New macro.
8469         (Fcase_table_p): Element of a case table is string or char-table.
8470         (make_mirror_trt_table): Removed.
8471         (set_case_table): Setup char-table from strings for backward
8472         compatibility.
8473         * dired.c (Fdirectory_files):
8474         * dired-msw.c: (mswindows_get_files):
8475         * lisp.h: Change prototype of re_pattern_buffer.
8476         * regex.c: (RE_TRANSLATE): New macro.
8477         (TRANSLATE_P): Ditto.
8478         Change translate to type RE_TRANSLATE_TYPE.
8479         * regex.h: Define RE_TRANSLATE_TYPE
8480         * search.c (TRANSLATE): New macro.
8481         (TRANSLATE_ASCII): New macro.
8482         Translate table is changed to Lisp_Object.
8483         (signal_failure): Inhibit return.
8484
8485 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8486
8487         * device-msw.c:
8488         * eldap.c:
8489         * event-Xt.c:
8490         * event-stream.c:
8491         * print.c:
8492         Do UNGCPRO before return.
8493
8494 2000-11-14  Martin Buchholz <martin@xemacs.org>
8495
8496         * XEmacs 21.2.37 is released.
8497
8498 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8499
8500         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8501         Add comments about discarded return value.
8502
8503 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8504
8505         * callint.c:
8506         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8507
8508 2000-10-27  Andy Piper  <andy@xemacs.org>
8509
8510         * gutter.c (Fset_default_gutter_position): default left and right
8511         gutters to visible.
8512         (calculate_gutter_size): calculate resonable heuristic for left
8513         and right gutter sizes.
8514         (specifier_vars_of_gutter): change left and right gutter sizes to
8515         autodetect.
8516         (calculate_gutter_size_from_display_lines): new function.
8517         (output_gutter): check for resizing on left and right gutters.
8518         (clear_gutter): don't special case top and left gutters.
8519         (specifier_vars_of_gutter): use new signature for
8520         set_specifier_caching.
8521
8522         * glyphs-x.c (x_redisplay_widget): spelling fix.
8523         * glyphs.c (specifier_vars_of_glyphs):
8524         * menubar.c (specifier_vars_of_menubar):
8525         * redisplay.c (specifier_vars_of_redisplay):
8526         * toolbar.c (specifier_vars_of_toolbar):
8527         * window.c (specifier_vars_of_window):
8528         * scrollbar.c (specifier_vars_of_scrollbar):
8529         (complex_vars_of_scrollbar): use new signature for
8530         set_specifier_caching.
8531
8532         * specifier.c (set_specifier_caching): include recompute flag.
8533         (recompute_one_cached_specifier_in_window): always recompute if
8534         flag set.
8535         (recompute_one_cached_specifier_in_frame): ditto.
8536
8537         * specifier.h (struct specifier_caching): add recompute flag.
8538
8539 2000-10-24  Andy Piper  <andy@xemacs.org>
8540
8541         * unexcw.c (copy_executable_and_dump_data_section): add new
8542         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8543         5.0 happy.
8544
8545 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8546
8547         * console-x.h (x_device): New member modifier_release_time.
8548         * event-Xt.c (x_handle_sticky_modifiers):
8549         Bound interval modifier keys are sticky.
8550         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8551         * events.h: extern it.
8552
8553 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8554
8555         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8556
8557 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8558
8559         * event-stream.c (execute_command_event): Preserve current_events
8560         and the like when event is misc-user-event.
8561         Inhibit quit during the call to maybe_echo_keys.
8562
8563 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8564
8565         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8566         symlink when buffer is killed.
8567         (inhibit_clash_detection): New variable.
8568
8569 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8570
8571         * console.c (Fset_input_method): Trigger redisplay on tty.
8572
8573 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8574
8575         * process.c (Fprocess_status): Revert to previous behavior:
8576         (process-status "nosuchprocess") ==> nil
8577
8578 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8579
8580         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8581         Work around another GCC 2.95.2 optimizer bug.
8582
8583 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8584
8585         * process.c (Fget_process): Use LIST_LOOP_2.
8586         (kill_buffer_processes): Use LIST_LOOP_2.
8587
8588         * minibuf.c (Fall_completions):
8589         Delete old non-functional code for FSF fourth argument.
8590
8591         * frame.c (frame_matches_frame_spec):
8592         Renamed from `frame_matches_frametype'.  Update all callers.
8593         (device_matches_device_spec):
8594         Renamed from 'device_matches_console_spec'.  Update all callers.
8595
8596         * doc.c (Fsubstitute_command_keys):
8597         Remove buffer overflow crash.  Small code cleanups.
8598
8599         * casetab.c (check_case_table): Simpler code.
8600
8601         * window.c (Freplace_buffer_in_windows):
8602         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8603         (and similar implementation) as Fdelete_windows_on.
8604         Update all callers.
8605
8606         * alloc.c (Fmake_list):
8607         * alloc.c (make_vector):
8608         * alloc.c (Fmake_vector):
8609         * alloc.c (make_bit_vector):
8610         * alloc.c (Fmake_bit_vector):
8611         * alloc.c (Fbit_vector):
8612         * alloc.c (Fmake_string):
8613         * alloc.c (Fpurecopy):
8614         * alloc.c (Fmemory_limit):
8615         * buffer.c:
8616         * buffer.c (Fget_buffer):
8617         * buffer.c (Fkill_buffer):
8618         * buffer.c (complex_vars_of_buffer):
8619         * bytecode.c (Fcompiled_function_stack_depth):
8620         * callint.c (Fprefix_numeric_value):
8621         * event-stream.c:
8622         * event-stream.c (Fread_key_sequence):
8623         * casetab.c:
8624         * casetab.c (Fcase_table_p):
8625         * casetab.c (check_case_table):
8626         * casetab.c (Fset_case_table):
8627         * casetab.c (Fset_standard_case_table):
8628         * chartab.c:
8629         * chartab.c (Fchar_table_type):
8630         * chartab.c (Freset_char_table):
8631         * chartab.c (Fget_char_table):
8632         * chartab.c (Fget_range_char_table):
8633         * chartab.c (Fput_char_table):
8634         * chartab.c (Fmap_char_table):
8635         * chartab.c (Fcategory_table_p):
8636         * chartab.c (Fcheck_category_at):
8637         * chartab.c (Fchar_in_category_p):
8638         * chartab.c (Fcategory_table):
8639         * chartab.c (Fcopy_category_table):
8640         * chartab.c (Fset_category_table):
8641         * chartab.c (Fcategory_designator_p):
8642         * chartab.c (Fcategory_table_value_p):
8643         * cmds.c (Fdelete_char):
8644         * cmds.c (Fdelete_backward_char):
8645         * cmds.c (Fself_insert_command):
8646         * cmds.c (Fself_insert_internal):
8647         * console.c (Fvalid_console_type_p):
8648         * console.c (Fcdfw_console):
8649         * console.c (Fconsole_type):
8650         * console.c (Fconsole_name):
8651         * console.c (Fconsole_device_list):
8652         * console.c (Fconsole_on_window_system_p):
8653         * data.c:
8654         * data.c (Feq):
8655         * data.c (Fold_eq):
8656         * data.c (Fsubr_interactive):
8657         * data.c (Fchar_to_int):
8658         * data.c (Fint_to_char):
8659         * data.c (Fsetcar):
8660         * data.c (Fsetcdr):
8661         * data.c (Fnumber_to_string):
8662         * data.c (Fstring_to_number):
8663         * data.c (Frem):
8664         * database.c (mark_database):
8665         * database.c (finalize_database):
8666         * database.c (Fdatabase_live_p):
8667         * database.c (Fdatabasep):
8668         * device-x.c (Fx_get_resource):
8669         * device.c (Fdfw_device):
8670         * dired.c:
8671         * dired.c (Ffile_name_completion):
8672         * dired.c (Ffile_name_all_completions):
8673         * dired.c (Fuser_name_completion):
8674         * dired.c (Fuser_name_completion_1):
8675         * dired.c (Fuser_name_all_completions):
8676         * doc.c (Fdocumentation):
8677         * doc.c (Fdocumentation_property):
8678         * doc.c (Fsubstitute_command_keys):
8679         * editfns.c:
8680         * editfns.c (Fchar_to_string):
8681         * editfns.c (Fstring_to_char):
8682         * editfns.c (Ftemp_directory):
8683         * editfns.c (Finsert_char):
8684         * editfns.c (Fbuffer_substring_no_properties):
8685         * editfns.c (Fnarrow_to_region):
8686         * editfns.c (Fchar_equal):
8687         * editfns.c (Fchar_Equal):
8688         * editfns.c (Ftranspose_regions):
8689         * emacs.c (Fdump_emacs):
8690         * eval.c (Fthrow):
8691         * eval.c (Fcommand_execute):
8692         * eval.c (Fautoload):
8693         * eval.c (Fbacktrace):
8694         * eval.c (Fbacktrace_frame):
8695         * events.c:
8696         * events.c (Fcopy_event):
8697         * events.c (Fcharacter_to_event):
8698         * events.c (Fevent_button):
8699         * events.c (Fevent_process):
8700         * extents.c:
8701         * extents.c (Fnext_extent_change):
8702         * extents.c (Fextent_property):
8703         * faces.c (Ffacep):
8704         * faces.c (Fmake_face):
8705         * file-coding.c:
8706         * file-coding.c (Fencode_shift_jis_char):
8707         * file-coding.c (Fencode_big5_char):
8708         * fileio.c (Ffile_name_directory):
8709         * fileio.c (Ffile_name_nondirectory):
8710         * fileio.c (Ffile_name_as_directory):
8711         * fileio.c (Fdirectory_file_name):
8712         * fileio.c (Ffile_truename):
8713         * fileio.c (Fsubstitute_in_file_name):
8714         * fileio.c (Ffile_modes):
8715         * fileio.c (Fset_file_modes):
8716         * fileio.c (Fset_default_file_modes):
8717         * fileio.c (Fverify_visited_file_modtime):
8718         * floatfns.c (Facos):
8719         * floatfns.c (Fasin):
8720         * floatfns.c (Fatan):
8721         * floatfns.c (Fcos):
8722         * floatfns.c (Fsin):
8723         * floatfns.c (Ftan):
8724         * floatfns.c (Fbessel_j0):
8725         * floatfns.c (Fbessel_j1):
8726         * floatfns.c (Fbessel_jn):
8727         * floatfns.c (Fbessel_y0):
8728         * floatfns.c (Fbessel_y1):
8729         * floatfns.c (Fbessel_yn):
8730         * floatfns.c (Ferf):
8731         * floatfns.c (Ferfc):
8732         * floatfns.c (Flog_gamma):
8733         * floatfns.c (Fexp):
8734         * floatfns.c (Fexpt):
8735         * floatfns.c (Flog):
8736         * floatfns.c (Flog10):
8737         * floatfns.c (Fsqrt):
8738         * floatfns.c (Fcube_root):
8739         * floatfns.c (Facosh):
8740         * floatfns.c (Fasinh):
8741         * floatfns.c (Fatanh):
8742         * floatfns.c (Fcosh):
8743         * floatfns.c (Fsinh):
8744         * floatfns.c (Ftanh):
8745         * floatfns.c (Fabs):
8746         * floatfns.c (Ffloat):
8747         * floatfns.c (Flogb):
8748         * floatfns.c (Fceiling):
8749         * floatfns.c (Ffloor):
8750         * floatfns.c (Fround):
8751         * floatfns.c (Ftruncate):
8752         * floatfns.c (Ffceiling):
8753         * floatfns.c (Fffloor):
8754         * floatfns.c (Ffround):
8755         * floatfns.c (Fftruncate):
8756         * fns.c (Fstring_equal):
8757         * fns.c (Fstring_lessp):
8758         * fns.c (concat2):
8759         * fns.c (concat3):
8760         * fns.c (vconcat2):
8761         * fns.c (vconcat3):
8762         * fns.c (Fsubstring):
8763         * fns.c (Fassoc):
8764         * fns.c (Fold_assoc):
8765         * fns.c (assoc_no_quit):
8766         * fns.c (Fassq):
8767         * fns.c (Fold_assq):
8768         * fns.c (assq_no_quit):
8769         * fns.c (Frassoc):
8770         * fns.c (Fold_rassoc):
8771         * fns.c (Frassq):
8772         * fns.c (Fold_rassq):
8773         * fns.c (rassq_no_quit):
8774         * fns.c (Fremassoc):
8775         * fns.c (remassoc_no_quit):
8776         * fns.c (Fremassq):
8777         * fns.c (remassq_no_quit):
8778         * fns.c (Fremrassoc):
8779         * fns.c (Fremrassq):
8780         * fns.c (remrassq_no_quit):
8781         * fns.c (Fsort):
8782         * fns.c (Fplist_get):
8783         * fns.c (Fplist_put):
8784         * fns.c (Fplist_remprop):
8785         * fns.c (Fplist_member):
8786         * fns.c (Flax_plist_get):
8787         * fns.c (Flax_plist_put):
8788         * fns.c (Flax_plist_remprop):
8789         * fns.c (Flax_plist_member):
8790         * fns.c (Fequal):
8791         * fns.c (Fold_equal):
8792         * fns.c (Frequire):
8793         * fns.c (Fbase64_encode_region):
8794         * fns.c (Fbase64_encode_string):
8795         * fns.c (Fbase64_decode_region):
8796         * frame.c:
8797         * frame.c (frame_matches_frame_spec):
8798         * frame.c (device_matches_device_spec):
8799         * frame.c (next_frame):
8800         * frame.c (previous_frame):
8801         * frame.c (Fnext_frame):
8802         * frame.c (Fprevious_frame):
8803         * frame.c (Fframe_property):
8804         * frame.c (Fset_frame_height):
8805         * frame.c (Fset_frame_size):
8806         * frame.h:
8807         * glyphs.c:
8808         * glyphs.c (if):
8809         * glyphs.c (decode_error_behavior_flag):
8810         * glyphs.c (Fmake_image_instance):
8811         * indent.c (Findent_to):
8812         * intl.c (Fignore_defer_gettext):
8813         * keymap.c (Fkeymapp):
8814         * keymap.c (Flookup_key):
8815         * lread.c:
8816         * lread.c (Fload_internal):
8817         * lread.c (Feval_buffer):
8818         * lread.c (Feval_region):
8819         * macros.c (Fexecute_kbd_macro):
8820         * marker.c (set_marker_internal):
8821         * marker.c (Fset_marker):
8822         * marker.c (set_marker_restricted):
8823         * marker.c (Fcopy_marker):
8824         * marker.c (noseeum_copy_marker):
8825         * menubar.c:
8826         * menubar.c (Fpopup_menu):
8827         * minibuf.c:
8828         * mule-charset.c (Fcharset_name):
8829         * mule-charset.c (Fchar_charset):
8830         * mule-charset.c (Fchar_octet):
8831         * mule-charset.c (Fsplit_char):
8832         * mule-wnnfns.c (Fwnn_open):
8833         * mule-wnnfns.c (Fwnn_dict_comment):
8834         * mule-wnnfns.c (Fwnn_quit_henkan):
8835         * mule-wnnfns.c (Fwnn_word_toroku):
8836         * mule-wnnfns.c (Fwnn_word_sakujo):
8837         * mule-wnnfns.c (Fwnn_word_use):
8838         * mule-wnnfns.c (Fwnn_hindo_set):
8839         * objects.c:
8840         * objects.c (Fmake_color_instance):
8841         * objects.c (Fmake_font_instance):
8842         * print.c (Fwrite_char):
8843         * process.c:
8844         * process.c (mark_process):
8845         * process.c (print_process):
8846         * process.c (get_process_from_usid):
8847         * process.c (Fprocessp):
8848         * process.c (Fprocess_live_p):
8849         * process.c (Fget_process):
8850         * process.c (Fget_buffer_process):
8851         * process.c (get_process):
8852         * process.c (Fprocess_id):
8853         * process.c (Fprocess_name):
8854         * process.c (Fprocess_command):
8855         * process.c (init_process_io_handles):
8856         * process.c (start_process_unwind):
8857         * process.c (Fstart_process_internal):
8858         * process.c (Fopen_multicast_group_internal):
8859         * process.c (Fset_process_window_size):
8860         * process.c (read_process_output):
8861         * process.c (send_process):
8862         * process.c (Fprocess_tty_name):
8863         * process.c (Fset_process_buffer):
8864         * process.c (Fprocess_buffer):
8865         * process.c (Fprocess_mark):
8866         * process.c (set_process_filter):
8867         * process.c (Fset_process_filter):
8868         * process.c (Fprocess_filter):
8869         * process.c (Fprocess_send_region):
8870         * process.c (Fprocess_send_string):
8871         * process.c (exec_sentinel):
8872         * process.c (Fset_process_sentinel):
8873         * process.c (Fprocess_sentinel):
8874         * process.c (status_notify):
8875         * process.c (Fprocess_status):
8876         * process.c (Fprocess_exit_status):
8877         * process.c (process_send_signal):
8878         * process.c (Fprocess_send_eof):
8879         * process.c (deactivate_process):
8880         * process.c (remove_process):
8881         * process.c (Fdelete_process):
8882         * process.c (kill_buffer_processes):
8883         * process.c (Fprocess_kill_without_query):
8884         * process.c (Fprocess_kill_without_query_p):
8885         * rangetab.c:
8886         * rangetab.c (Fget_range_table):
8887         * rangetab.c (Fput_range_table):
8888         * rangetab.c (Fremove_range_table):
8889         * rangetab.c (Fclear_range_table):
8890         * search.c:
8891         * search.c (Fskip_chars_forward):
8892         * search.c (Fskip_chars_backward):
8893         * search.c (Fskip_syntax_forward):
8894         * search.c (Fskip_syntax_backward):
8895         * search.c (search_command):
8896         * search.c (Freplace_match):
8897         * search.c (Fregexp_quote):
8898         * select.c (Fown_selection_internal):
8899         * select.c (Fselection_owner_p):
8900         * select.c (Fselection_exists_p):
8901         * select.c (Fget_selection_internal):
8902         * specifier.c:
8903         * symbols.c:
8904         * symbols.c (Fintern):
8905         * symbols.c (Fintern_soft):
8906         * symbols.c (Funintern):
8907         * symbols.c (Fapropos_internal):
8908         * symbols.c (Fset_default):
8909         * syntax.c:
8910         * syntax.c (Fsyntax_table_p):
8911         * syntax.c (Fcopy_syntax_table):
8912         * syntax.c (Fset_syntax_table):
8913         * syntax.c (Fchar_syntax):
8914         * syntax.c (syntax_match):
8915         * syntax.c (Fmatching_paren):
8916         * syntax.c (Fforward_word):
8917         * syntax.c (scan_lists):
8918         * syntax.c (Fscan_lists):
8919         * syntax.c (Fscan_sexps):
8920         * syntax.c (Fparse_partial_sexp):
8921         * toolbar.c (Fcheck_toolbar_button_syntax):
8922         * tooltalk.doc:
8923         * window.c:
8924         * window.c (Fwindowp):
8925         * window.c (Fwindow_live_p):
8926         * window.c (Fwindow_point):
8927         * window.c (Fdelete_window):
8928         * window.c (Fnext_window):
8929         * window.c (Fprevious_window):
8930         * window.c (Fother_window):
8931         * window.c (window_loop):
8932         * window.c (Fget_lru_window):
8933         * window.c (Fsplit_window):
8934         * window.c (Fenlarge_window):
8935         * window.c (Fenlarge_window_pixels):
8936         * window.c (Fshrink_window):
8937         * window.c (Fshrink_window_pixels):
8938         * window.c (change_window_height):
8939         * window.c (Fwindow_configuration_p):
8940         * window.c (Fcurrent_window_configuration):
8941         * window.h:
8942         * casefiddle.c (casify_object):
8943         * casefiddle.c (Fupcase):
8944         * casefiddle.c (Fdowncase):
8945         * casefiddle.c (Fcapitalize):
8946         * casefiddle.c (Fupcase_initials):
8947         * casefiddle.c (casify_region_internal):
8948         * casefiddle.c (casify_region):
8949         * casefiddle.c (Fupcase_region):
8950         * casefiddle.c (Fdowncase_region):
8951         * casefiddle.c (Fcapitalize_region):
8952         * casefiddle.c (Fupcase_initials_region):
8953         * casefiddle.c (Fupcase_word):
8954         * casefiddle.c (Fdowncase_word):
8955         * casefiddle.c (Fcapitalize_word):
8956         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
8957         Replace 0 with '\0' when working with bytes.
8958         Replace initial "(" with "\(" in docstrings.
8959
8960 2000-11-01  Martin Buchholz  <martin@xemacs.org>
8961
8962         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
8963
8964         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
8965
8966 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8967
8968         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
8969
8970 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8971
8972         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
8973         correctly.
8974
8975 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8976
8977         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
8978         (inhibit_auto_save_session): New variable.
8979         (vars_of_fileio): Declare and initialize them.
8980         * fileio.c (Fdo_auto_save): Don't create session file if
8981         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
8982
8983 2000-10-31  Martin Buchholz  <martin@xemacs.org>
8984
8985         * sgiplay.c (play_internal): C++ compilability.
8986         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
8987         * callproc.c (Fold_call_process_internal):
8988         Remove unused vars `env', `first'.
8989         * scrollbar.c (update_scrollbar_instance):
8990         #### unused var `current_window'.
8991         * redisplay-tty.c: Put currently unused vars insert_mode_on,
8992         etc. within #ifdef NOT_YET.
8993         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
8994         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
8995         * specifier.c (specifier_instance):
8996         #### unused var `tag'.
8997         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
8998
8999 2000-10-27  Martin Buchholz  <martin@xemacs.org>
9000
9001         * fns.c (Fbutlast):
9002         * fns.c (list_sort):
9003         * fns.c (Ffillarray):
9004         * fns.c (bytecode_nconc2):
9005         * fns.c (Fnconc):
9006         * fns.c (mapcar1):
9007         * fns.c (Fmapconcat):
9008         Be pedantically 64-bit correct.  For the time when someone will
9009         want to have a list with length > 2**32.
9010
9011         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9012         Work around MIPSpro compiler bug.
9013
9014         * process-unix.c (unix_kill_child_process): Add snarky comment.
9015         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
9016
9017         * config.h.in: Oops, _getpt ==> _getpty
9018
9019 2000-10-26  Martin Buchholz  <martin@xemacs.org>
9020
9021         * config.h.in:
9022         * regex.c:
9023         Use void*, not char*, as return type of alloca().
9024
9025         * alloc.c (free_marker): Side effect inside assert expression!
9026
9027 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
9028
9029         * mule-charset.c (Fset_charset_ccl_program): To check
9030         if the given ccl program is valid, use setup_ccl_program()
9031         instead of CHECK_VECTOR().
9032         (Fmake_charset): Likewise.
9033
9034 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
9035
9036         * faces.c (get_extent_fragment_face_cache_index):
9037         Fix cachel.merged_faces memory leak.
9038
9039 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
9040
9041         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
9042         Reset MSB of octets obtained by DECODE_SJIS
9043         because of the incompatibility with Emacs.
9044         (ccl_driver)<CCL_ENCODE_SJIS>:
9045         Set MSB of octets before passing them to
9046         ENCODE_SJIS because of the incompatibility
9047         with Emacs.
9048
9049 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
9050
9051         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
9052         (DECLARE_LRECORD): Undo the last change.
9053         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
9054
9055 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
9056
9057         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
9058         the implementation to lrecord_implementations_table.
9059
9060 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
9061
9062         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
9063         initial value of `lrecord_type_##c_name' and
9064         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
9065         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
9066         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
9067         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
9068         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
9069
9070 2000-10-17  Martin Buchholz  <martin@xemacs.org>
9071
9072         * miscplay.c (sndcnv8S_2mono):
9073         (sndcnv2monounsigned):
9074         (sndcnvULaw_2linear):
9075         (sndcnv16swap):
9076         Remove implementation-defined behavior.
9077
9078 2000-10-12  Martin Buchholz  <martin@xemacs.org>
9079
9080         * input-method-xlib.c: Warning suppression.
9081
9082 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
9083
9084         * mule-ccl.c: Sync up with Emacs 21.0.90.
9085         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
9086         Do nothing.
9087         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
9088         Likewise.
9089         (ccl_driver[WriteMultibyteChar2]): Bug fix.
9090         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
9091         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
9092         leading char belongs to official 2-dimensional charset.
9093         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
9094         write the given character as is.  Otherwise,
9095         if it is a multibyte char, convert it by
9096         non_ascii_set_charptr_emchar, then write it.
9097         (CCL_WRITE_STRING): Likewise.
9098         (ccl_get_compiled_code): New function.
9099         (setup_ccl_program): When ccl_prog is invalid,
9100         return -1.
9101         (Fregister_code_conversion_map): New function.
9102         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
9103
9104         * mule-ccl.h: Sync up with Emacs 21.0.90.
9105         (Fregister_ccl_program): export it.
9106
9107         * redisplay-msw.c (separate_textual_runs):
9108         If ccl program is not valid, don't do ccl conversion.
9109
9110         * redisplay-x.c (separate_textual_runs): Ditto.
9111
9112         * file-coding.c (Fmake_coding_system):
9113         When type is ccl and value is vector, register it
9114         with a proper symbol.  And checks whether the
9115         given ccl program is valid.
9116         (mule_decode): When calling ccl_driver, if src indicates
9117         NULL pointer, set an empty string instead.
9118         (mule_encode): Likewise.
9119
9120 2000-10-11  Martin Buchholz  <martin@xemacs.org>
9121
9122         The following large batch of changes gets us back to a state of
9123         C++ compilability.  Extbyte is now a char, which means that
9124         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9125
9126         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9127
9128         * sound.c (Fplay_sound): Type correctness.
9129
9130         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9131         (x_get_window_property): Type correctness.
9132         (receive_incremental_selection): unsigned char ==> Extbyte
9133         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9134         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9135         (Fx_store_cutbuffer_internal): Type correctness.
9136
9137         * process-unix.c (try_to_initialize_subtty): Type correctness.
9138
9139         * objects-x.c (x_print_color_instance): Type correctness.
9140         (x_print_font_instance): Type correctness.
9141         (x_list_fonts): SExtbyte ==> Extbyte.
9142         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9143         (x_find_charset_font): SExtbyte ==> Extbyte.
9144         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9145         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9146         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9147         Use bufbyte_strcmp.
9148
9149         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9150         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9151         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9152         (BYTE_C0_P): Use bit ops for char-signedness safety.
9153         (BYTE_C1_P): Use bit ops for char-signedness safety.
9154         (CHARSET_BY_LEADING_BYTE):
9155         (CHARSET_BY_ATTRIBUTES):
9156         Always use inline function.
9157         Use type_checking_assert.
9158         Hide chlook.
9159
9160         * mule-charset.c (non_ascii_charptr_copy_char):
9161         Modify to work with both ASCII and non-ASCII characters.
9162         Improve docs and variable names.
9163         Replace over-clever fall-through switch with a simple loop.
9164         (Lstream_get_emchar_1):
9165         Replace over-clever fall-through switch with a simple loop.
9166
9167         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9168         Warning suppression.
9169
9170         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9171         the return value of Lstream_getc, which could be EOF as well.
9172
9173         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9174
9175         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9176         APIs can be used on Extbytes without casts.  Risky!
9177         (SExtbyte): Remove.
9178         (UExtbyte): Remove.
9179
9180         * input-method-xlib.c (XIM_init_device):
9181         Use Xlib.h instead of IntrinsicP.h.
9182         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9183         which will break in X11R7.
9184         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9185         to call XRegisterIMInstantiateCallback with correct types.
9186
9187         * gui-x.c (button_item_to_widget_value): Type correctness.
9188
9189         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9190
9191         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9192         (xbm_instantiate_1): Type correctness.
9193         (BUILD_GLYPH_INST):  Type correctness.
9194
9195         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9196
9197         * file-coding.c:
9198         (decode_coding_sjis):
9199         (decode_coding_big5):
9200         (decode_coding_ucs4):
9201         (decode_coding_utf8):
9202         (decode_coding_iso2022):
9203         (decode_coding_no_conversion):
9204         Make all decoding functions take an Extbyte * arg.
9205         (encode_coding_sjis):
9206         (encode_coding_big5):
9207         (encode_coding_ucs4):
9208         (encode_coding_utf8):
9209         (encode_coding_iso2022):
9210         (encode_coding_no_conversion):
9211         Make all encoding functions take a Bufbyte * arg.
9212         Use size_t instead of unsigned int for memory sizes.
9213         Only cast to unsigned char whenever dereferencing Extbyte *.
9214
9215         * doc.c (unparesseuxify_doc_string): Type correctness.
9216
9217         * console-x.c (split_up_display_spec):
9218         Rewrite without using details of internal string representation.
9219         (x_semi_canonicalize_device_connection): Type correctness.
9220
9221         * config.h.in:
9222         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9223         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9224         (HAVE_XFREE386): Removed.
9225
9226         * buffer.h (DEC_CHARPTR): `const' correctness.
9227         (bufbyte_strcmp): New.
9228         (bufbyte_memcmp): New.
9229
9230         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9231
9232         * buffer.h (XCHAR_OR_CHAR_INT):
9233         Always use inline function.
9234         Remove redundant type checking assert() - XINT will abort quite nicely.
9235
9236 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9237
9238         * search.c (Freplace_match): Set newtext to an empty string.
9239
9240 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9241
9242         * s/decosf1-3.h: Remove #include of stropts.h
9243         * s/ptx.h: Remove #include of stropts.h
9244         * s/usg5-4.h: Remove #include of stropts.h
9245         * sysproc.h:
9246         * config.h.in:
9247         Use stropts.h, not sys/stropts.h.
9248         Use strtio.h, not sys/strtio.h.
9249
9250 2000-10-04  Martin Buchholz <martin@xemacs.org>
9251
9252         * XEmacs 21.2.36 is released.
9253
9254 2000-09-21  Andy Piper  <andy@xemacs.org>
9255
9256         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9257         changes still involve copying the widget tree.
9258         (update_widget_face): make sure a change is register in the widget
9259         tree. Call update_tab_widget_face appropriately.
9260         (update_tab_widget_face): ditto.
9261         (x_tab_control_redisplay): make sure non-structural changes still
9262         involve copying the widget tree.
9263
9264 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9265
9266         * lread.c (locate_file): Check the path element is non-nil.
9267
9268 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9269
9270         * lisp.h: Warning suppression for SCO compilers.
9271
9272         * redisplay-tty.c (reset_tty_modes): Fix crash.
9273         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9274
9275 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9276
9277         Big signal/process handling overhaul.  Bugs fixed:
9278         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9279         M-x comint-kill-subjob should work for both values nil and t of
9280         process-connection-type. It was broken on most platforms.
9281         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9282         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9283         * process-unix.c: Signal/Process handling overhaul.
9284         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9285         (allocate_pty): Use all available modern methods of allocating
9286         ptys, falling back to old style BSD allocation as a last resort.
9287         Use allegedly more secure Unix98 pty allocation by default.
9288         (allocate_pty_the_old_fashioned_way): New. the last resort.
9289         (unix_create_process): Push ptem, ldterm, ttcompat where
9290         available.  Autoconfiscate.
9291         (try_to_initialize_subtty): New.
9292         (unix_kill_child_process): Proper signal handling for ptys on most
9293         platforms, using special knowledge of AIX, BSD, etc...
9294         (unix_create_process): Always disconnect_controlling_terminal() for
9295         subprocesses, whether using ptys or not.
9296         * process.h: Remove old getpt-dependent PTY code.
9297         * process.c (Fprocess_send_signal): New, obvious generic function.
9298         (decode_signal): New.
9299         (Finterrupt_process):
9300         (Fkill_process):
9301         (Fquit_process):
9302         (Fstop_process):
9303         (Fcontinue_process):
9304         (Fsignal_process): Use decode_signal.
9305         (process_send_signal):
9306         Many docstring corrections.
9307         Allow any signal to be sent to a process object.
9308         * config.h.in: Add symbols for big signal/process overhaul.
9309         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9310         * sysproc.h: Include process-related headers, where available:
9311         sys/stropts.h sys/strtio.h pty.h libutil.h
9312         * s/irix4-0.h:
9313         * s/irix5-0.h:
9314         * s/cygwin32.h:
9315         * s/gnu.h:
9316         * s/linux.h:
9317         * s/hpux.h:
9318         * s/aix3-1.h:
9319         Remove old S&M pty stuff.
9320         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9321         * systty.h: Simplify cpp hackery, improve comments.
9322         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9323
9324         * editfns.c (Fformat_time_string):
9325         Be a little more paranoid with the return value of ctime.
9326
9327         * fileio.c (check_executable):
9328         (check_writable):
9329         Use symbolic constants X_OK, W_OK.
9330
9331         * console-x.c (split_up_display_spec): Fix a warning.
9332
9333 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9334
9335         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9336         * ntproc.c (sys_spawnve): make_string ==> build_string
9337         Small clarity improvements.
9338
9339 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9340
9341         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9342
9343         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9344
9345         * config.h.in (HAVE_STRCASECMP): Remove.
9346
9347 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9348
9349         * redisplay-output.c (redisplay_output_pixmap):
9350         Cleaner and possibly more 64-bit correct code.
9351
9352 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9353
9354         * dumper.c (pdump_load_finish): move restoration of
9355         `noninteractive1' to emacs.c (main_1).
9356         * emacs.c (main_1): protect LISP-visible command-line flags
9357         from pdump_load().
9358
9359 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9360
9361         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9362         DUMP_TARGET instead of literal program names.
9363
9364 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9365
9366         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9367
9368 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9369
9370         * *: Spelling mega-patch
9371
9372 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9373
9374         * fns.c (bad_bad_turtle):
9375         Delete "Eek!" comment, since we fixed the bug to which it refers.
9376
9377 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9378
9379         * alloca.c: Replace REGISTER with register.
9380
9381 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9382
9383         * file-coding.c (ucs_to_char): Use countof.
9384
9385 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9386
9387         * file-coding.c: (ucs_to_char):
9388         (complex_vars_of_file_coding):
9389         Use countof instead of sizeof.
9390         Use CHECK_NATNUM instead of CHECK_INT.
9391
9392         * sysdep.c (strcasecmp): Remove.
9393         * device-x.c (ascii_strcasecmp): New.
9394         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9395         Avoid using non-standard non-portable strcasecmp.
9396
9397 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9398
9399         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9400         * font-lock.c: remove reference to emacsfns.h.
9401         * search.c: small doc improvement.
9402         * event-Xt.c: correct file names in comments.
9403         * console-x.h Correct file names in comments.
9404         * frame.c: Correct file names in comments.
9405         * event-stream.c: remove Energize from comments.
9406
9407 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9408
9409         * symeval.h (DEFERROR_STANDARD):
9410         (DEFERROR):
9411         (DEFSYMBOL):
9412         (DEFSYMBOL_NO_DUMP):
9413         (DEFSYMBOL_MULTIWORD_PREDICATE):
9414         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9415         (DEFKEYWORD):
9416         The construct &##name is not sensible C.
9417         Fixes compilation errors with Unixware native compiler.
9418
9419 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9420
9421         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9422         (next_frame_internal): Removed.  We now just have next_frame.
9423         (next_frame):
9424         Write a simpler and cleaner one-pass algorithm.
9425         Remove called_from_delete_device arg and #ifdefed-out code.
9426         (previous_frame):
9427         Renamed from prev_frame.  Update callers.
9428         Cleaned up to have an analogous implementation to next_frame.
9429         (other_visible_frames_internal): Remove the
9430         called_from_delete_device bogus arg, and hence, remove this
9431         function.  Just use other_visible_frames().
9432
9433         * window.c (Fnext_window):
9434         Prettify docstring.
9435         Since next_frame() is guaranteed to return a frame, remove check
9436         for nil inserted in previous patch.
9437         (Fprevious_window):
9438         Prettify docstring.
9439         Make code look more like Fnext_window.
9440         (window_loop):
9441         Respect the `console' arg when iterating through windows.
9442         Fixes bug: (get-buffer-window buffer t device) not respecting
9443         the `device' arg.
9444         This function needs more work, as others have pointed out.
9445
9446         * frame.h: Rename prev_frame to previous_frame.
9447         device_matches_console_spec no longer takes a `frame' arg.
9448
9449         * s/gnu.h:
9450         * s/linux.h:
9451         * s/hpux.h:
9452         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9453         From "Golubev I. N." <gin@mo.msk.ru>.
9454
9455         * make-src-depend: Fix typo.
9456
9457 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9458
9459         * window.c (Fnext_window):
9460         next_frame() might return nil, not a frame.
9461         Fixes this crash:
9462         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9463
9464         * frame.c (next_frame_internal):
9465         We've passed a frame if we've passed its device.
9466         Fixes this crash:
9467         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9468 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9469
9470 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9471
9472         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9473         Allow option to suppress accelerators in menu/dialog items.
9474         (populate_or_checksum_helper): Pass dialog title through above.
9475
9476 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9477
9478         * event-msw.c (mswindows_key_to_emacs_keysym):
9479         Add "pause" key, fix "menu" key.
9480
9481 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9482
9483         * eval.c (reinit_vars_of_eval):
9484         Increase max_lisp_eval_depth to 1000,
9485         required for thai-xtis.el to byte-compile under some circumstances.
9486
9487 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9488
9489         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9490         From Kenichi Handa.
9491
9492 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9493
9494         * make-src-depend: Make the generated Makefiles smaller.
9495
9496         * s/hpux.h (SETUP_SLAVE_PTY):
9497         Provide a %d in the format string for the errno argument.
9498
9499         * editfns.c (Ftemp_directory):
9500         Warning fix.
9501         Avoid buffer overrun on very long file name.
9502
9503         * input-method-xlib.c (XIM_init_device):
9504         6th parameter of XRegisterIMInstantiateCallback has different
9505         pointer types on different OSes, so simply cast to (void *).
9506
9507         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9508
9509         * sysdll.c (dll_open):
9510         shl_load will hang hard if passed a NULL filename.
9511         Simply return NULL for compatibility with dlopen.
9512         * sysdll.c: Conform to XEmacs coding standards.
9513
9514         * sysdep.c (get_pty_max_bytes):
9515         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9516
9517 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9518
9519         * tooltalk.c: Add #include <syssignal.h>
9520
9521 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9522
9523         * s/hpux.h: Don't use undefined function sigunblock().
9524
9525 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9526
9527         * config.h.in: Add HAVE_BALLOON_HELP.
9528         * emacs.c: Use HAVE_BALLOON_HELP.
9529         * Makefile.in.in (x_objs):
9530         Make Balloon Help conditional on finding shape.h.
9531
9532 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9533
9534         * syntax.c (regex_emacs_buffer_p): New variable.
9535         * syntax.h (regex_emacs_buffer_p): extern.
9536         * search.c (looking_at_1):
9537         (string_match_1):
9538         (fast_string_match):
9539         (search_buffer): Set regex_emacs_buffer_p.
9540         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9541         when before_dot, at_dot, after_dot.
9542
9543 2000-08-23  Andy Piper  <andy@xemacs.org>
9544
9545         * gui-x.c (popup_selection_callback): Only set action_occurred
9546         when we really have an image instance.
9547         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9548
9549 2000-08-23  Andy Piper  <andy@xemacs.org>
9550
9551         * gui-msw.c (mswindows_handle_gui_wm_command): set
9552         action_occurred.
9553         * gui-x.c (popup_selection_callback): ditto.
9554
9555         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9556         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9557         (struct Lisp_Image_Instance): add action_occurred flag.
9558
9559         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9560         (image_instance_changed): ditto.
9561         (reset_frame_subwindow_instance_cache): only unmap windows - do
9562         not remove them from the cache also.
9563
9564         * glyphs-widget.c (tab_control_update): better debug.
9565         (progress_gauge_update): ditto.
9566         (layout_update): ditto.
9567         (layout_instantiate): ditto.
9568         (tab_control_order_only_changed): cope with null pending items.
9569
9570         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9571         debug. Force selection of an item when an action occurred. Cope
9572         with null pending_items.
9573         (mswindows_progress_gauge_redisplay): better debug.
9574         * glyphs-x.c (x_tab_control_redisplay): ditto.
9575
9576         * redisplay.c (redisplay_frame): reset the frame cache if the
9577         frame is garbaged.
9578
9579         * window.c (Fset_window_configuration): potentially re-enable
9580         frame cache reset.
9581         (window_unmap_subwindows): need to finalize instances here since
9582         it is only used in mark_window_as_deleted.
9583
9584 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9585
9586         * nas.c (SndOpenDataForReading):
9587         nas.c (WaveOpenDataForReading):
9588         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9589         Somehow escaped from the 2000-08-14 patch.
9590
9591 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9592
9593         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9594         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9595
9596 2000-08-21  Andy Piper  <andy@xemacs.org>
9597
9598         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9599         window if it is not already displayed.
9600
9601         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9602         it is not already displayed.
9603
9604         * window.c (Fset_window_configuration): don't reset the frame
9605         cache.
9606
9607         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9608         instances from the frame cache if we are actually finalizing them.
9609         (reset_frame_subwindow_instance_cache): reset frame cache only
9610         after unmapping everything.
9611         (map_subwindow): set displayed flag after mapping.
9612
9613 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9614
9615         * data.c (indirect_function):
9616         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9617
9618         * eval.c (function_argcount):
9619         Use original function when signaling errors.
9620
9621 2000-08-18  Andy Piper  <andy@xemacs.org>
9622
9623         * frame.c (delete_frame_internal): use new
9624         free_frame_subwindow_instances name.
9625
9626         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9627         (add_tab_item): make return type correct.
9628         (mswindows_tab_control_instantiate): assert index of tab.
9629         (mswindows_tab_control_redisplay): Re-code to use
9630         gui_item_equal_sans_selected and gui_item_list_find_selected.
9631
9632         * glyphs-widget.c (tab_control_update): Correct comment.
9633
9634         * window.c (window_unmap_subwindows): use new
9635         unmap_subwindow_instance_cache_mapper.
9636         (window_unmap_subwindows_cache_mapper): deleted.
9637         (Fset_window_configuration): comparisons should now be with
9638         EQ. Preserve the subwindow instance cache across configuration
9639         changes.
9640         (allocate_window): ditto.
9641         (make_dummy_parent): ditto.
9642
9643         * glyphs.c (free_frame_subwindow_instances): rename from
9644         free_frame_subwindow_instance_cache. finalize all instances rather
9645         than just those in the display cache.
9646         (finalize_all_subwindow_instances): walk windows unmapping and
9647         finalizing subwindows.
9648         (unmap_subwindow_instance_cache_mapper): moved from
9649         window.c. Allow finalization as well as unmapping.
9650
9651         * gui.c (gui_item_list_find_selected): new function.
9652
9653         * gui.h (gui_item_list_find_selected): declare.
9654
9655         * glyphs-x.c (x_tab_control_redisplay): pick tab
9656         explicitly. Re-code to use gui_item_equal_sans_selected and
9657         gui_item_list_find_selected.
9658
9659         * glyphs-x.h: add lwlib-utils.h
9660
9661         * buffer.c (Frecord_buffer): undo previous change.
9662
9663 2000-08-09  Vin Shelton  <acs@xemacs.org>
9664
9665         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9666         possible.  Create temporary files more securely.  The patch was
9667         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9668         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9669         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9670         for details.
9671
9672 2000-08-07  Ben Wing  <ben@xemacs.org>
9673
9674         * getloadavg.c: remove duplicate (and windows-breaking)
9675         includes of fcntl.h and sys/file.h.
9676
9677         * nt.c: remove duplicate getloadavg() definition.
9678
9679         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9680         encodings.
9681
9682 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9683
9684         * eval.c (function_argcount): If function needs to be autoloaded
9685         actually use the loaded definition.
9686         GCPRO function.
9687
9688 2000-08-05  Ben Wing  <ben@xemacs.org>
9689
9690         * getloadavg.c: add prototype for getloadavg().  remove
9691         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9692         of the code).  remove duplicate header includes.
9693
9694         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9695
9696         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9697         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9698         useful load average.
9699
9700         * alloc.c (reinit_alloc_once_early): removed references to
9701         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9702         the lisp vars are the only things referencing the malloc_sbrk_*
9703         vars, and they were already if 0'd out.  these vars only exist
9704         in the older malloc.c, which is basically unused, and they're
9705         only for informational purposes.
9706
9707         * m\*.h: removed useless VIRT_ADDR_VARIES.
9708
9709         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9710
9711 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9712
9713         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9714         color if the image is a mono pixmap.
9715
9716 2000-07-30  Ben Wing  <ben@xemacs.org>
9717
9718         * Makefile.in.in (release):
9719         Remove stray @.
9720
9721         * buffer.c (directory_is_current_directory):
9722         * dired-msw.c (mswindows_get_files):
9723         * dired.c:
9724         * dired.c (Fdirectory_files):
9725         * dired.c (file_name_completion_stat):
9726         * dired.c (Ffile_attributes):
9727         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9728         preprocessor tricks, to avoid problems on some machines
9729         (e.g. SCO).
9730
9731         * callproc.c (egetenv): GC docs.
9732
9733         * console-msw.h:
9734         * console-msw.h (struct mswindows_dialog_id):
9735         * lrecord.h (lrecord_type):
9736         New object for use with MSW dialogs.
9737
9738         * console.h (struct console_methods):
9739         New enable/disable frame methods, for proper modal dialogs.
9740
9741         * device-msw.c (msprinter_default_printer): Fix to follow
9742         proper Mule conventions.
9743
9744         * device-msw.c:
9745         * device-msw.c (signal_open_printer_error):
9746         * device-msw.c (msprinter_init_device):
9747         * device-msw.c (ensure_not_printing):
9748         * device-msw.c (plist_get_margin):
9749         * device-msw.c (Fmsprinter_select_settings):
9750         * device-msw.c (finalize_devmode):
9751         * device-msw.c (Fmsprinter_settings_despecialize):
9752         * device-msw.c (signal_enum_priner_error):
9753         * extents.c (decode_extent):
9754         * extents.c (decode_map_extents_flags):
9755         * extents.c (decode_extent_at_flag):
9756         * extents.c (Fextent_at):
9757         * extents.c (Fextents_at):
9758         * extents.c (symbol_to_glyph_layout):
9759         [[[[2]]]] Use structured errors.
9760
9761         * dialog-msw.c:
9762         * dialog-msw.c (mswindows_is_dialog_msg):
9763         * dialog-msw.c (mark_mswindows_dialog_id):
9764         * dialog-msw.c (dialog_proc):
9765         * dialog-msw.c (handle_question_dialog_box):
9766         * dialog-msw.c (syms_of_dialog_mswindows):
9767         Define new object to clean up marking; use it as a dialog identifier.
9768         Call new delete-dialog-box-hook.
9769
9770         * dialog-x.c (dbox_selection_callback):
9771         * dialog-x.c (dbox_descriptor_to_widget_value):
9772         * dialog-x.c (x_make_dialog_box_internal):
9773         Call new delete-dialog-box-hook.
9774         Return an id.
9775
9776         * dialog.c:
9777         * dialog.c (syms_of_dialog):
9778         * dialog.c (vars_of_dialog):
9779         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9780
9781         * eval.c:
9782         * eval.c (signal_call_debugger):
9783         when noninteractive, output stack traces on the console instead
9784         of in a (never-seen) buffer.
9785
9786         * eval.c (signal_type_error):
9787         * eval.c (invalid_argument_2):
9788         * lisp.h:
9789         new funs for use w/structured errors.
9790
9791         * event-Xt.c:
9792         * event-Xt.c (x_to_emacs_keysym):
9793         * event-Xt.c (describe_event):
9794         * event-Xt.c (emacs_Xt_event_handler):
9795         * event-Xt.c (vars_of_event_Xt):
9796         * event-msw.c:
9797         * event-msw.c (mswindows_wnd_proc):
9798         * event-msw.c (vars_of_event_mswindows):
9799         rename {x,mswindows}-debug-events to debug-{}-events for
9800         consistency with other debug-foo variables.
9801
9802         * event-stream.c:
9803         document next-event more clearly.
9804
9805         * fileio.c (Ffile_name_directory):
9806         * fileio.c (Ffile_name_nondirectory):
9807         * fileio.c (Funhandled_file_name_directory):
9808         * fileio.c (file_name_as_directory):
9809         * fileio.c (Ffile_name_as_directory):
9810         * fileio.c (directory_file_name):
9811         * fileio.c (Fdirectory_file_name):
9812         * fileio.c (Fmake_temp_name):
9813         * fileio.c (Ffile_truename):
9814         * fileio.c (Fsubstitute_in_file_name):
9815         * fileio.c (expand_and_dir_to_file):
9816         * fileio.c (barf_or_query_if_file_exists):
9817         * fileio.c (check_executable):
9818         * fileio.c (Ffile_exists_p):
9819         * fileio.c (Ffile_writable_p):
9820         * fileio.c (Ffile_directory_p):
9821         * fileio.c (Ffile_regular_p):
9822         * fileio.c (Ffile_modes):
9823         * fileio.c (Ffile_newer_than_file_p):
9824         * fileio.c (Fverify_visited_file_modtime):
9825         * fileio.c (Fset_visited_file_modtime):
9826         * fileio.c (auto_save_1):
9827         (1). (2).
9828         fix up gcpro's.
9829
9830         * frame-msw.c:
9831         * frame-msw.c (mswindows_init_frame_1):
9832         * frame-msw.c (mswindows_enable_frame):
9833         * frame-msw.c (error_frame_unsizable):
9834         * frame-msw.c (msprinter_init_frame_1):
9835         * frame-msw.c (msprinter_init_frame_3):
9836         * frame-msw.c (console_type_create_frame_mswindows):
9837         (2).
9838         implement new enable/disable frame methods.
9839
9840         * frame-x.c:
9841         * frame-x.c (x_enable_frame):
9842         * frame-x.c (console_type_create_frame_x):
9843         implement new enable/disable frame methods.
9844
9845         * frame.c:
9846         * frame.c (Fdisable_frame):
9847         * frame.c (syms_of_frame):
9848         * frame.h (struct frame):
9849         implement new enable/disable frame methods/functions.
9850
9851         * general-slots.h:
9852         add initial-focus.
9853
9854         * glyphs-msw.c (mswindows_widget_instantiate):
9855         comment that initial-focus should be implemented.
9856
9857         * glyphs-widget.c:
9858         * glyphs-widget.c (check_valid_instantiator):
9859         * glyphs-widget.c (check_valid_orientation):
9860         * glyphs-widget.c (check_valid_tab_orientation):
9861         * glyphs-widget.c (check_valid_justification):
9862         * glyphs-widget.c (check_valid_border):
9863         * glyphs-widget.c (check_valid_callback):
9864         * glyphs-widget.c (check_valid_int_or_function):
9865         * glyphs-widget.c (check_valid_string_or_vector):
9866         * glyphs-widget.c (check_valid_item_list_1):
9867         * glyphs-widget.c (widget_validate):
9868         * glyphs-widget.c (combo_box_validate):
9869         * glyphs-widget.c (widget_instantiate):
9870         * glyphs-widget.c (syms_of_glyphs_widget):
9871         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
9872         * glyphs-widget.c (image_instantiator_combo_box):
9873         * glyphs-widget.c (image_instantiator_scrollbar):
9874         * glyphs-widget.c (image_instantiator_tab_control):
9875         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
9876         (2).
9877         support (unimplemented) keyword initial-focus.
9878         reindent long macros.
9879
9880         * glyphs-x.c (x_redisplay_widget):
9881         * glyphs-x.c (x_button_instantiate):
9882         * glyphs-x.c (x_button_redisplay):
9883         * glyphs-x.c (x_progress_gauge_instantiate):
9884         * glyphs-x.c (x_edit_field_instantiate):
9885         * glyphs-x.c (x_combo_box_instantiate):
9886         * glyphs-x.c (x_tab_control_instantiate):
9887         * glyphs-x.c (x_label_instantiate):
9888         * gui-x.c:
9889         * gui-x.c (button_item_to_widget_value):
9890         * gui-x.c (gui_items_to_widget_values_1):
9891         * gui-x.c (gui_item_children_to_widget_values):
9892         * gui-x.c (gui_items_to_widget_values):
9893         * gui-x.h:
9894         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9895         add new flag to gui-parsing routines to indicate whether
9896         accelerator specs should be supported.
9897
9898         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
9899
9900         * glyphs.h (struct Lisp_Image_Instance):
9901         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
9902         add initial-focus flag.
9903
9904         * gui.c:
9905         * gui.c (syms_of_gui):
9906         * gui.c (vars_of_gui):
9907         clean up menu-no-selection-hook.
9908
9909         * gui.h:
9910         support delete-dialog-box-hook.
9911
9912         * lread.c (Fload_internal):
9913         * lread.c (locate_file_in_directory_mapper):
9914         (1).
9915
9916         * lrecord.h:
9917         * lrecord.h (struct toolbar_button):
9918         * lrecord.h (syms_of_toolbar):
9919         document how to create a new object.
9920
9921         * menubar-msw.c (mswindows_char_is_accelerator):
9922         may be called on frames w/o menus.
9923
9924         * menubar.c (vars_of_menubar):
9925         clean up :filter docs.
9926
9927         * nt.c (readdir):
9928         * ntproc.c:
9929         (1).
9930
9931         * process-nt.c:
9932         * process-nt.c (validate_signal_number):
9933         * process-nt.c (signal_cannot_launch):
9934         * process-nt.c (nt_create_process):
9935         * process-nt.c (nt_send_process):
9936         * process-nt.c (nt_kill_child_process):
9937         * process-nt.c (nt_open_network_stream):
9938         * process-nt.c (syms_of_process_nt):
9939         (2).
9940         delete quote-handling.  call new lisp code that does it better.
9941
9942         * process-unix.c (connect_to_file_descriptor):
9943         * process-unix.c (allocate_pty):
9944         * process-unix.c (unix_send_process):
9945         * process-unix.c (unix_kill_child_process):
9946         * process-unix.c (unix_open_network_stream):
9947         * process-unix.c (unix_open_multicast_group):
9948         (1). (2).
9949
9950         * process.c:
9951         * process.c (Fstart_process_internal):
9952         (2).  need to canonicalize process path even if absolute.
9953
9954         * select-msw.c (symbol_to_ms_cf):
9955         * select-msw.c (ms_cf_to_symbol):
9956         * select-msw.c (cf_is_autofreed):
9957         * select-msw.c (mswindows_destroy_selection):
9958         * select.c:
9959         * select.c (syms_of_select):
9960         * select.h:
9961         support dibv5, fix bugs. (from Mike Alexander)
9962
9963         * select.c (Fget_selection_internal):
9964         * select.c (select_convert_out):
9965
9966         * sysdep.c:
9967         * sysdep.c (xemacs_stat):
9968         renamed.
9969
9970         * sysdep.c (mkdir):
9971         * sysdep.c (rmdir):
9972         but keep original stat() here because we provide encapsulation
9973         around these funs.
9974
9975         * sysfile.h:
9976         * sysfile.h (fstat):
9977         remove stat garbage.
9978
9979         * syswindows.h:
9980         fix X/MSW conflict.
9981         don't include tchar.h.  it's inappropriate because it makes
9982         compile-time distinctions when we want runtime distinctions.
9983         (we provide our own tchar replacements)
9984
9985         * toolbar.c:
9986         use default object printer for toolbar-button.
9987
9988         * unexcw.c:
9989         make sure we don't encapsulate.
9990
9991         * window.c (vars_of_window):
9992         emphasize that temp-buffer-show-hook is obsolete.
9993
9994 2000-08-05  Martin Buchholz  <martin@xemacs.org>
9995
9996         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
9997         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
9998
9999         * events.c (Fevent_timestamp_lessp):
10000         Not 64-bit clean.  Use EMACS_INT, not int.
10001
10002 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
10003
10004         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
10005         unsigned int and changed the last enum to
10006         lrecord_type_last_built_in_type.
10007         (lrecord_implementations_table): changed prototype to know how
10008         long the array is supposed to be.
10009         (lrecord_type_count): new unsigned int to keep track of the
10010         current number of lisp lrecord types.
10011         (DEFINE_EXTERNAL_LRECORD):
10012         (DECLARE_EXTERNAL_LRECORD): Added these two for external
10013         dynamic-modules to declare new lisp types. They are the same
10014         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
10015         int for each new type, and increment lrecord_type_count by 1.
10016
10017         * alloc.c (lrecord_implementations_table): Changed to reference
10018         lrecord_type_last_built_in_type for the size of the array.
10019         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
10020
10021 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10022
10023         * glyphs.h (check_valid_item_list): Renamed from
10024         check_valid_item_list_1.
10025
10026 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
10027
10028         * select.c (Qselect_coerce): New.
10029         * select.c (Vselection_coercion_alist): New.
10030         * select.c (syms_of_select): Declare.
10031         * select.c (get-selection-internal): Use it.
10032         Use the new select-coerce functionality.
10033
10034         * select.c (select_coerce): New.
10035         * select.h (select_coerce): Declare.
10036         New function to coerce one type of data into another.
10037
10038 2000-08-03  Martin Buchholz  <martin@xemacs.org>
10039
10040         * callproc.c (Fcall_process_internal):
10041         (Fcall_process_internal):
10042         * process-unix.c (unix_create_process):
10043         Save and restore the value of errno, so that error messages are accurate.
10044
10045 2000-08-01  Martin Buchholz  <martin@xemacs.org>
10046
10047         * elhash.c (print_hash_table):
10048         Fix printing of hash tables to also use `key-and-value' instead of `t'.
10049         Prettify docstrings and indentation.
10050
10051 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10052
10053         * window.c (Fwindow_pixel_edges): Subtract frame border and
10054         gutter size.
10055
10056 2000-07-31  Andy Piper  <andy@xemacs.org>
10057
10058         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
10059         will acknowledge the change.
10060
10061         * glyphs.h: declare tab_control_order_only_changed.
10062
10063         * glyphs-x.c (x_tab_control_redisplay): use
10064         tab_control_order_only_changed.
10065
10066         * glyphs-widget.c (tab_control_order_only_changed): new function.
10067
10068         * glyphs-msw.c (mswindows_tab_control_redisplay): use
10069         tab_control_order_only_changed.
10070
10071         * gui.c (gui_item_equal_sans_selected): new function.
10072         (gui_item_equal): use it.
10073
10074         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
10075         :properties in favor of :items..
10076
10077         * glyphs-widget.c (check_valid_item_list): rename from
10078         check_valid_item_list_1.
10079         (check_valid_item_list_1): renamed.
10080         (combo_box_validate): deprecate :properties in favor of :items.
10081         (widget_instantiate): ditto.
10082         (tab_control_update): ditto.
10083         (image_instantiator_combo_box): ditto.
10084         (image_instantiator_tree_view): ditto.
10085         (image_instantiator_tab_control): ditto.
10086         (layout_post_instantiate): remove dead code.
10087
10088         * print.c (debug_print_no_newline): only write to debugger if in
10089         WIN32_NATIVE.
10090
10091         * elhash.c (Fmake_hash_table): update doc string.
10092
10093         * event-msw.c (mswindows_wnd_proc): don't allow processing of
10094         messages whilst in GC. This at least stops XEmacs crashing but has
10095         the potential for wierd behaviour.
10096
10097 2000-07-31  Martin Buchholz  <martin@xemacs.org>
10098
10099         * config.h.in:
10100         Make existence of s&m files optional.
10101
10102         * s/bsd386.h: Remove HAVE_GETLOADAVG.
10103         * s/freebsd.h: Remove HAVE_GETLOADAVG.
10104         * s/gnu.h: Remove HAVE_GETLOADAVG.
10105         * s/netbsd.h: Remove HAVE_GETLOADAVG.
10106         * s/sol2.h: Remove HAVE_GETLOADAVG.
10107         * lisp.h: Remove getloadavg() declaration.
10108         * fns.c:
10109         Include <sys/loadavg.h> if available.
10110         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
10111         * config.h.in:  Group together getloadavg()-related macros.
10112         Use only configure-time tests to detect getloadavg().
10113
10114 2000-07-30  Martin Buchholz  <martin@xemacs.org>
10115
10116         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10117
10118 2000-07-25  Andy Piper  <andy@xemacs.org>
10119
10120         * syswindows.h: add tchar.h for native builds.
10121
10122         * frame.c (syms_of_frame): remove set-glyph-image.
10123
10124         * general-slots.h: add Qset_glyph_image.
10125
10126         * glyphs-widget.c (layout_update): add domain arg to
10127         set-glyph-image.
10128         (syms_of_glyphs_widget): remove set-glyph-image.
10129
10130 2000-07-23  Ben Wing  <ben@xemacs.org>
10131
10132         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10133         Vpopup_frame_list.
10134
10135 2000-07-22  Andy Piper  <andy@xemacs.org>
10136
10137         * symsinit.h: add syms_of_win32().
10138
10139         * gui-msw.c (syms_of_gui_mswindows): remove
10140         Fmswindows_shell_execute.
10141         (Fmswindows_shell_execute): moved to win32.c.
10142
10143         * emacs.c (main_1): add syms_of_win32 ().
10144
10145         * win32.c (init_potentially_nonexistent_functions): rewrite in
10146         compiler-friendly terms.
10147         (Fmswindows_shell_execute): move here from gui-msw.c.
10148         (syms_of_win32): new.
10149
10150         * device-msw.c (Fmswindows_printer_list): clean up args to
10151         EnumPrinters.
10152         Don't include tchar under cygwin or mingw.
10153         (msprinter_default_printer): make cygwin-friendly.
10154
10155 2000-07-21  Andy Piper  <andy@xemacs.org>
10156
10157         * glyphs-widget.c (image_instantiator_tree_view): use tab
10158         control's update function.
10159         (layout_property): new function. Retrieve items.
10160
10161         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10162         function. Re-populate the tree view from the pending items.
10163
10164         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10165         is designated the parent if the domain is an image instance. This
10166         is needed so that dirtiness can be cascade up the hierarchy and
10167         thus for layout children to be redisplayed correctly.
10168         (allocate_image_instance): rename glyph -> parent.
10169
10170         * redisplay.h: change redisplay_output_layout signature.
10171
10172         * redisplay-msw.c (mswindows_output_display_block): use domain
10173         arg.
10174
10175         * redisplay-x.c (x_output_display_block): use domain arg.
10176
10177 2000-07-10  Andy Piper  <andy@xemacs.org>
10178
10179         * window.c (Fset_window_configuration): add comment.
10180
10181         * redisplay-output.c (compare_runes):
10182         (redisplay_output_subwindow): redisplay rather than update subwindow.
10183         (redisplay_output_layout): ditto.
10184
10185         * redisplay-msw.c (mswindows_frame_output_end):
10186         (mswindows_frame_output_end): make defer window pos optional.
10187
10188         * lisp.h: add Flast.
10189
10190         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10191         normalize method. Change update method to be for changed
10192         instantiators. Add redisplay method. Change signature of layout
10193         method.
10194         (struct Lisp_Image_Instance): add instantiator.
10195         (IMAGE_INSTANCE_INSTANTIATOR): new.
10196         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10197         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10198         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10199
10200         * glyphs.c:
10201         (find_instantiator_differences): new function.
10202         (Fset_instantiator_property): new convenience function.
10203         (check_image_instance_structure): strictly check for vector
10204         instantiators.
10205         (normalize_image_instantiator): make non-static.
10206         (instantiate_image_instantiator): pass on dest_mask and use new
10207         signatures for image_instance_layout and friends.
10208         (mark_image_instance): mark the instantiator. Mark the subwindow
10209         face not the widget face.
10210         (image_instance_equal): add instantiator.
10211         (image_instance_hash): ditto.
10212         (allocate_image_instance): ditto.
10213         (Fset_image_instance_property): removed.
10214         (Fimage_instance_file_name): ditto.
10215         (Fcolorize_image_instance): ditto.
10216         (image_instance_layout): add offsets to be set.
10217         (update_image_instance): new function. update an image instance
10218         from its changed instantiator.
10219         (inherit_normalize): add dest_mask.
10220         (xbm_normalize): ditto.
10221         (xface_normalize): ditto.
10222         (xpm_normalize): ditto.
10223         (text_update): set_property -> update.
10224         (image_instantiate): use the glyph identity as a hash key, not the
10225         instantiator.
10226         (glyph_width): use new image_instance_layout signature.
10227         (glyph_ascent): ditto.
10228         (glyph_descent): ditto.
10229         (glyph_height): ditto.
10230         (glyph_query_geometry): ressurrect.
10231         (glyph_layout): ditto.
10232         (redisplay_subwindow): update -> redisplay.
10233         (syms_of_glyphs): add Fset_instantiator_property.
10234         (image_instantiator_format_create): set_property -> update.
10235
10236         * glyphs-x.c:
10237         (autodetect_normalize): add dest_maks to signature.
10238         (x_redisplay_subwindow): update -> redisplay.
10239         (x_redisplay_widget): ditto.
10240         (x_button_redisplay): ditto.
10241         (x_progress_gauge_redisplay): ditto.
10242         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10243         stacking order.
10244         (console_type_create_glyphs_x): update -> redisplay.
10245         (image_instantiator_format_create_glyphs_x): ditto.
10246
10247         * glyphs-widget.c:
10248         (check_valid_instantiator): disallow glyphs in the instantiator,
10249         they must now be vectors.
10250         (check_valid_instantiator_list): ditto.
10251         (glyph_instantiator_to_glyph): use internal symbol rather than
10252         intern.
10253         (widget_update): renamed from widget_set_property. Call cascaded
10254         update methods.
10255         (redisplay_widget): renamed from update_widget.
10256         (widget_layout): image_instance_layout now takes position as well
10257         as size.
10258         (widget_normalize): ditto.
10259         (widget_instantiate): ditto.
10260         (tab_control_query_geometry) ditto.:
10261         (tab_control_update): renamed from tab_control_set_property.
10262         (progress_gauge_update): set_property -> update.
10263         (layout_normalize): rewrite so that child instantiators are
10264         normalized also.
10265         (layout_update): new function. Create glyphs from the normalized
10266         children and cope with any other layout keywords. We do not
10267         instantiate children here that will be take care of by
10268         redisplay_output_layout.
10269         (layout_instantiate): call layout_update and not much else.
10270         (layout_post_instantiate): not sure whether this is needed
10271         anymore.
10272         (layout_query_geometry): query glyph geometry rather than
10273         image_instance geometry.
10274         (layout_layout): set offsets from pass in parameters. Use glyph
10275         geometry and layout functions rather than image instance ones.
10276         (native_layout_layout): ditto.
10277         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10278         (image_instantiator_widget): set_property -> update.
10279         (image_instantiator_buttons): ditto.
10280         (image_instantiator_progress_guage): ditto.
10281         (image_instantiator_tab_control): ditto.
10282         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10283         (image_instantiator_layout): add update method.
10284
10285         * glyphs-msw.c (bmp_normalize):
10286         (mswindows_resource_normalize): add dest_mask so that it can be
10287         proprogated by layout_normalize.
10288         (begin_defer_window_pos): make optional because it may not be the
10289         right thing to do and it introduces differences with X.
10290         (mswindows_unmap_subwindow): ditto.
10291         (mswindows_map_subwindow): ditto.
10292         (mswindows_redisplay_subwindow): renamed from
10293         mswindows_update_subwindow.
10294         (mswindows_redisplay_widget): ditto.
10295         (mswindows_button_redisplay): renamed from
10296         mswindows_button_update. Update is now what the instantiation
10297         function does for a changed instantiator.
10298         (mswindows_progress_gauge_instantiate): set the progress value
10299         here if appropriate.
10300         (mswindows_tab_control_redisplay): cope with re-ordering of the
10301         members of the tab widget by simply selecting the new top
10302         widget. This makes things appear ok if you click on a tab.
10303         (mswindows_combo_box_instantiate): image_instance_layout now takes
10304         position as well as size.
10305         (mswindows_progress_gauge_redisplay): renamed from
10306         mswindows_progress_gauge_update.
10307         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10308         (image_instantiator_format_create_glyphs_mswindows): ditto.
10309
10310         * glyphs-eimage.c (jpeg_normalize):
10311         (gif_normalize):
10312         (png_normalize):
10313         (tiff_normalize): add dest_mask so that it can be proprogated by
10314         layout_normalize.
10315
10316         * elhash.c:
10317         (print_hash_table):
10318         (hash_table_weakness_validate):
10319         (decode_hash_table_weakness):
10320         (Fhash_table_weakness):
10321         (Fhash_table_type):
10322         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10323
10324         * console.h (struct console_methods): move update_* to
10325         redisplay_*.
10326
10327 2000-07-20  Ben Wing  <ben@xemacs.org>
10328
10329         * *.[ch] (XSETOBJ): remove unused middle argument.
10330         lisp-disunion.h: correct wrap_object() to one argument.
10331
10332 2000-07-15  Ben Wing  <ben@xemacs.org>
10333
10334         * s/cygwin32.h:
10335         * s/cygwin32.h (CYGWIN_CONV_PATH):
10336         Add missing logb prototype for v1.1.
10337         Use post-b20 names and alias to pre-b20 names when pre-b20.
10338
10339         * s/windowsnt.h: [5].
10340
10341 2000-07-15  Ben Wing  <ben@xemacs.org>
10342
10343         * Makefile.in.in (x_objs):
10344         * Makefile.in.in (sheap_objs):
10345         * Makefile.in.in (objs):
10346         added win32.o, cosmetic cleanups.
10347
10348         * alloc.c (Fmake_byte_code):
10349         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10350         etc. macros which declare their own args now.
10351
10352         * alloc.c (syms_of_alloc):
10353         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10354
10355         * buffer.c:
10356         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10357
10358         * buffer.c (Fget_file_buffer):
10359         Fixed GCPRO problem.
10360
10361         * buffer.c (get_truename_buffer):
10362         Fixed comment about GC checking.
10363
10364         * buffer.c (syms_of_buffer):
10365         Undeclared those dedicated frame funs.
10366         [2].
10367
10368         * buffer.h:
10369         Define convenience macros for internal/external conversions.
10370         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10371         and Qenvironment_variable_encoding for cleaner code.
10372
10373         * bufslots.h:
10374         Remove dedicated-frame; in lisp.
10375
10376         * bytecode.c (funcall_compiled_function):
10377         [1].
10378
10379         * bytecode.c (syms_of_bytecode):
10380         [2].
10381
10382         * console-msw.c:
10383         * console-msw.c (mswindows_show_console): Rewrote.
10384
10385         * console-msw.c (Fmswindows_debugging_output): New.
10386         Sends to OutputDebugString (special MSWin debugger interface).
10387
10388         * console-msw.c (Fmswindows_message_box):
10389         Fixed stupid bugs so it works when called from kill-emacs.
10390
10391         * console-msw.c (syms_of_console_mswindows):
10392         Declare Fmswindows_debugging_output.
10393
10394         * console-msw.h:
10395         New MSWin prototypes.
10396
10397         * console-msw.h (struct mswindows_frame):
10398         New entry last-click-mods for improved button-modifier support.
10399
10400         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10401         New struct entry `popup' with corresponding accessor.
10402
10403         * console-x.c:
10404         * console-x.c (split_up_display_spec):
10405         * console-x.c (get_display_arg_connection):
10406         * console-x.c (x_semi_canonicalize_console_connection):
10407         * console-x.c (x_canonicalize_device_connection):
10408         [[[6]]]: Change char to more specific type.
10409         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10410
10411         * console-x.c (x_semi_canonicalize_console_connection):
10412         * console-x.c (x_canonicalize_device_connection):
10413         [[[9]]]: Fix up error signalling to use new structured error system.
10414
10415         * console-x.h:
10416         [[[4]]]: Define codesys aliases:
10417         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10418         Qx_color_name_encoding, Qx_display_name_encoding.
10419
10420         * console.h (struct console_methods):
10421         New method make_dialog_box_internal supersedes older
10422         popup_dialog_box method.
10423
10424         * data.c:
10425         Define many new errors, part of new structured errors.
10426
10427         * data.c (init_errors_once_early):
10428         * data.c (syms_of_data):
10429         [2].
10430
10431         * device-msw.c (mswindows_init_device):
10432         [[[5]]]: Cleanup to support NT 3.51.
10433
10434         * device-msw.c (decode_devmode): Cleanup.
10435
10436         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10437         * device-msw.c (mswindows_handle_print_dialog_box):
10438         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10439         * device-msw.c (syms_of_device_mswindows):
10440         Delete the dialog box primitives recently introduced by Kirill and
10441         instead interface to general dialog box interface.
10442
10443         * device-x.c:
10444         * device-x.c (compute_x_app_name):
10445         * device-x.c (x_init_device):
10446         * device-x.c (Fx_valid_keysym_name_p):
10447         * device-x.c (Fx_set_font_path):
10448         [6].
10449         [7].
10450
10451         * device.h (wrap_device): New.
10452         First of its kind; meant to replace XSETDEVICE.
10453
10454         * dialog-msw.c: Many file-dialog symbols.
10455
10456         * dialog-msw.c (mswindows_register_popup_frame): New.
10457         * dialog-msw.c (mswindows_is_dialog_msg): New.
10458         For supporting kbd traversal in dialog boxes.
10459
10460         * dialog-msw.c (dialog_proc):
10461         Support hitting ESC in dialogs.
10462
10463         * dialog-msw.c (struct):
10464         Common dialog box errors.
10465
10466         * dialog-msw.c (handle_file_dialog_box): New.
10467         Add file dialog code.
10468
10469         * dialog-msw.c (handle_question_dialog_box):
10470         Redo existing code to support new question dialog syntax.
10471
10472         * dialog-msw.c (console_type_create_dialog_mswindows):
10473         We support new dialog console method.
10474
10475         * dialog-msw.c (syms_of_dialog_mswindows):
10476         * dialog-msw.c (vars_of_dialog_mswindows):
10477         New file dialog symbols, vars.
10478
10479         * dialog-x.c:
10480         * dialog-x.c (maybe_run_dbox_text_callback):
10481         * dialog-x.c (dbox_descriptor_to_widget_value):
10482         * dialog-x.c (x_make_dialog_box_internal):
10483         * dialog-x.c (console_type_create_dialog_x):
10484         Mule-ize entire file.
10485         Redo to support question dialog syntax.
10486         [6].
10487
10488         * dialog.c:
10489         * dialog.c (Fmake_dialog_box_internal):
10490         * dialog.c (syms_of_dialog):
10491         Kill old popup-dialog-box, replace with new primitive.
10492         Just call device method or signal error.
10493
10494         * eldap.c (Fldap_open):
10495         * eldap.c (Fldap_search_basic):
10496         * eldap.c (Fldap_add):
10497         * eldap.c (Fldap_modify):
10498         [1].
10499         [7].
10500
10501         * emacs.c:
10502         * emacs.c (make_arg_list_1):
10503         * emacs.c (make_arg_list):
10504         Mule-ize call to dll_init().
10505         [6].
10506         [8].
10507
10508         * emacs.c (make_argc_argv):
10509         * emacs.c (free_argc_argv):
10510         * emacs.c (init_cmdargs):
10511         * emacs.c (main_1):
10512         * emacs.c (Fkill_emacs):
10513         * emacs.c (Fdump_emacs):
10514         Update comments about what can be used in syms_* etc.
10515         Call init_win32() when necessary.
10516         Fix up MS Win dialog box in kill-buffer to actually work right.
10517         [7].
10518
10519         * eval.c:
10520         * eval.c (For):
10521         * eval.c (Fand):
10522         * eval.c (Fprogn):
10523         * eval.c (Fprog1):
10524         * eval.c (Fprog2):
10525         * eval.c (FletX):
10526         * eval.c (Flet):
10527         * eval.c (condition_case_3):
10528         * eval.c (Feval):
10529         * eval.c (function_argcount):
10530         * eval.c (funcall_lambda):
10531         [1].
10532
10533         * eval.c (type_error): New.
10534         * eval.c (maybe_type_error): New.
10535         * eval.c (continuable_type_error): New.
10536         * eval.c (maybe_continuable_type_error): New.
10537         * eval.c (type_error_with_frob): New.
10538         * eval.c (maybe_type_error_with_frob): New.
10539         * eval.c (continuable_type_error_with_frob): New.
10540         * eval.c (maybe_continuable_type_error_with_frob): New.
10541         New functions for use with structured errors.
10542
10543         * event-Xt.c:
10544         * event-Xt.c (x_event_to_emacs_event):
10545         Buttons are now modifiers too.
10546
10547         * event-Xt.c (emacs_Xt_current_event_timestamp):
10548         Implement new event method.
10549         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10550
10551         * event-msw.c:
10552         * event-msw.c (ntpipe_shove_writer): [5].
10553         * event-msw.c (mswindows_enqueue_mouse_button_event):
10554         * event-msw.c (mswindows_drain_windows_queue):
10555         * event-msw.c (mswindows_wnd_proc): [7].
10556         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10557         * event-msw.c (mswindows_modifier_state):
10558         Throughout: support new button modifiers.
10559
10560         * event-msw.c (emacs_mswindows_current_event_timestamp):
10561         Implement new event method.
10562         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10563
10564         * event-stream.c:
10565         * event-stream.c (event_stream_current_event_timestamp): New.
10566         * event-stream.c (maybe_kbd_translate): New functionality.
10567         * event-stream.c (vars_of_event_stream):
10568         Document new kbd-translate-table functionality.
10569
10570         * event-stream.c (Fcurrent_event_timestamp): New.
10571         New primitive for use in fabricated events.
10572         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10573
10574         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10575
10576         * events.c:
10577         * events.c (Fmake_event):
10578         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10579         [1].
10580         [9].
10581
10582         * events.c (format_event_object): fix gcc warnings.
10583
10584         * events.c (Fevent_timestamp): Document new primitives.
10585
10586         * events.c (TIMESTAMP_HALFSPACE): New.
10587
10588         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10589         comparing timestamps correctly (half-space algorithm).
10590
10591         * events.c (Fevent_modifier_bits): Doc fix.
10592
10593         * events.c (Fevent_modifiers): Major doc addition.
10594         * events.c (event_x_y_pixel_internal): Typo fix.
10595         * events.c (syms_of_events): Declare new primitives.
10596
10597         * events.h:
10598         Update long comment for button modifiers, timestamps.
10599
10600         * events.h (struct event_stream):
10601         New current_event_timestamp method.
10602
10603         * extents.c:
10604         * extents.c (extent_in_region_p):
10605         * extents.c (decode_extent):
10606         * extents.c (Fset_extent_parent):
10607         * extents.c (decode_map_extents_flags):
10608         Fix gcc warnings.
10609         [9].
10610
10611         * extents.c (struct extent_at_arg):
10612         * extents.c (decode_extent_at_flag):
10613         * extents.c (extent_at_mapper):
10614         * extents.c (extent_at_bytind):
10615         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10616         * extents.c (Fextents_at): New primitive. [9].
10617         * extents.c (symbol_to_glyph_layout): [9].
10618         Support new primitive `extents-at'.
10619
10620
10621         * extents.c (get_text_property_bytind):
10622         extent_at_bytind has another arg.
10623         [9].
10624
10625         * extents.c (syms_of_extents): New primitive.
10626
10627         * file-coding.c (Fmake_coding_system): [1].
10628         * file-coding.c (subsidiary_coding_system): fix gcc warning
10629         * file-coding.c (syms_of_file_coding): [2].
10630
10631         * fileio.c (Fexpand_file_name):
10632         * fileio.c (Fsysnetunam):
10633         * fileio.c (Ffile_exists_p):
10634         * fileio.c (Ffile_executable_p):
10635         * fileio.c (Fverify_visited_file_modtime):
10636         Clean up GCPROing.
10637
10638         * fileio.c (syms_of_fileio): [2].
10639
10640         * filelock.c (lock_file_1):
10641         * filelock.c (current_lock_owner):
10642         * filelock.c (lock_if_free):
10643         * filelock.c (lock_file):
10644         * filelock.c (unlock_file):
10645         Clean up GCPROing.
10646
10647         * fns.c (concat): Fix gcc warning.
10648
10649         * fns.c (Fmember):
10650         * fns.c (Fold_member):
10651         * fns.c (Fmemq):
10652         * fns.c (Fold_memq):
10653         * fns.c (memq_no_quit):
10654         * fns.c (Fassoc):
10655         * fns.c (Fold_assoc):
10656         * fns.c (Fassq):
10657         * fns.c (Fold_assq):
10658         * fns.c (assq_no_quit):
10659         * fns.c (Frassoc):
10660         * fns.c (Fold_rassoc):
10661         * fns.c (Frassq):
10662         * fns.c (Fold_rassq):
10663         * fns.c (rassq_no_quit):
10664         * fns.c (Fdelete):
10665         * fns.c (Fold_delete):
10666         * fns.c (Fdelq):
10667         * fns.c (Fold_delq):
10668         * fns.c (delq_no_quit):
10669         * fns.c (Fremassoc):
10670         * fns.c (Fremassq):
10671         * fns.c (remassq_no_quit):
10672         * fns.c (Fremrassoc):
10673         * fns.c (Fremrassq):
10674         * fns.c (remrassq_no_quit):
10675         * fns.c (Freverse):
10676         * fns.c (mapcar1):
10677         [1].
10678
10679         * frame-msw.c (mswindows_init_frame_1):
10680         * frame-msw.c (mswindows_delete_frame):
10681         Register popups with dialog code so keyboard traversing works.
10682
10683         * frame-tty.c (tty_raise_frame_no_select): [1].
10684
10685         * frame-x.c:
10686         * frame-x.c (x_set_frame_text_value):
10687         * frame-x.c (x_set_frame_properties):
10688         * frame-x.c (x_create_widgets):
10689         [7].
10690
10691         * frame.c:
10692         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10693
10694         * frame.h (wrap_frame): New.
10695         Macro like wrap_device.
10696
10697         * general.c:
10698         * general.c (SYMBOL):
10699         * general.c (syms_of_general):
10700         Major reorg.  This is now just a wrapper and symbols themselves
10701         are listed in general-slots.h.
10702
10703         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10704         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10705
10706         * glyphs-msw.c (mswindows_native_layout_instantiate):
10707         Add DS_CONTROL so keyboard traversal will work.
10708
10709         * glyphs-widget.c:
10710         * glyphs-widget.c (syms_of_glyphs_widget):
10711         Move some symbols to general-slots.h.
10712
10713         * glyphs-x.c:
10714         * glyphs-x.c (xbm_instantiate_1):
10715         * glyphs-x.c (x_xbm_instantiate):
10716         * glyphs-x.c (x_xface_instantiate):
10717         * glyphs-x.c (autodetect_instantiate):
10718         * glyphs-x.c (cursor_font_instantiate):
10719         * glyphs-x.c (x_update_widget):
10720         * glyphs-x.c (x_widget_instantiate):
10721         * glyphs.c (bitmap_to_lisp_data):
10722         * glyphs.c (pixmap_to_lisp_data):
10723         [7].
10724
10725         * glyphs.c (syms_of_glyphs):
10726         [2].
10727
10728         * gui-x.c:
10729         * gui-x.c (print_widget_value):
10730         * gui-x.c (menu_separator_style_and_to_external):
10731         * gui-x.c (add_accel_and_to_external):
10732         * gui-x.c (button_item_to_widget_value):
10733         * gui-x.c (gui_items_to_widget_values_1):
10734         * gui-x.c (gui_items_to_widget_values):
10735         * gui-x.c (syms_of_gui_x):
10736         * gui-x.c (vars_of_gui_x):
10737         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10738         [9].
10739
10740         * gui-x.h:
10741         Muleize, prototype changes matching gui-x.c.
10742
10743         * gui.c:
10744         * gui.c (separator_string_p):
10745         * gui.c (gui_item_add_keyval_pair):
10746         * gui.c (make_gui_item_from_keywords_internal):
10747         * gui.c (signal_too_long_error):
10748         * gui.c (parse_gui_item_tree_item):
10749         * gui.c (syms_of_gui):
10750         * gui.c (vars_of_gui):
10751         * gui.h:
10752         menu-no-selection-hook moved here (used by MSWin).
10753         Move some symbols to general-slots.h.
10754         [6].
10755         [9].
10756
10757         * insdel.c (get_buffer_pos_char):
10758         * insdel.c (get_buffer_range_char):
10759         Add GC comments.
10760
10761         * keymap.c (keymap_lookup_directly):
10762         * keymap.c (keymap_store):
10763         * keymap.c (ensure_meta_prefix_char_keymapp):
10764         * keymap.c (describe_map):
10765         * keymap.h:
10766         Support new button modifiers.
10767
10768         * lisp-disunion.h (wrap_object):
10769         * lisp-disunion.h (XSETOBJ):
10770         Rename make_obj to wrap_object.
10771
10772         * lisp-union.h:
10773         * lisp-union.h (make_int):
10774         * lisp-union.h (make_char):
10775         Support wrap_object.
10776
10777         * lisp.h:
10778         * lisp.h (LIST_LOOP):
10779         * lisp.h (EXTERNAL_LIST_LOOP):
10780         * lisp.h (LIST_LOOP_2):
10781         * lisp.h (EXTERNAL_LIST_LOOP_1):
10782         * lisp.h (EXTERNAL_LIST_LOOP_2):
10783         * lisp.h (EXTERNAL_LIST_LOOP_3):
10784         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
10785         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10786         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
10787         * lisp.h (EXTERNAL_ALIST_LOOP_5):
10788         * lisp.h (EXTERNAL_ALIST_LOOP_6):
10789         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
10790         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
10791         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
10792         * lisp.h (struct Lisp_Symbol):
10793         * lisp.h (maybe_continuable_error_with_frob):
10794         Fix up section comments.
10795         Add new types for char to indicate usage.
10796         Delete symbols auto-generated from general-slots.h.
10797         Add prototypes for structured error functions.
10798         Add long comments describing looping macros and change interface
10799         so that lvalues are automatically declared.
10800         Add NO_DECLARE macro in case callers want to declare lvalues
10801         themselves.
10802
10803         * lread.c (read_syntax_error):
10804         * lread.c (continuable_read_syntax_error):
10805         * lread.c (read_structure):
10806         * lread.c (sequence_reader):
10807         * lread.c (read_list_conser):
10808         * lread.c (read_compiled_function):
10809         Rename syntax_error and continuable_syntax_error to avoid clash
10810         with same-named structured error functions.
10811
10812         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10813         * menubar-msw.c (populate_menu_add_item):
10814         * menubar-msw.c (populate_or_checksum_helper):
10815         [5].
10816         [9].
10817
10818         * menubar-x.c:
10819         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10820         Mule-ize whole file.
10821
10822         * menubar.c (Fnormalize_menu_item_name): Add optimization.
10823
10824         * mule-charset.c (Fmake_charset):
10825         * mule-wnnfns.c (Fwnn_set_param):
10826         [1].
10827
10828         * ntproc.c (create_child):
10829         * ntproc.c (Fwin32_set_current_locale):
10830         Add comments portending doom.
10831
10832         * objects-msw.c:
10833         * objects-msw.c (old_font_enum_callback_2):
10834         * objects-msw.c (font_enum_callback_1):
10835         * objects-msw.c (mswindows_enumerate_fonts):
10836         [5].
10837
10838         * objects-x.c:
10839         * objects-x.c (allocate_nearest_color):
10840         * objects-x.c (x_parse_nearest_color):
10841         * objects-x.c (x_initialize_color_instance):
10842         * objects-x.c (x_print_color_instance):
10843         * objects-x.c (x_finalize_color_instance):
10844         * objects-x.c (x_valid_color_name_p):
10845         * objects-x.c (x_initialize_font_instance):
10846         * objects-x.c (x_print_font_instance):
10847         * objects-x.c (valid_x_font_name_p):
10848         * objects-x.c (truename_via_FONT_prop):
10849         * objects-x.c (truename_via_random_props):
10850         * objects-x.c (truename_via_XListFonts):
10851         * objects-x.c (x_font_truename):
10852         * objects-x.c (x_font_instance_truename):
10853         * objects-x.c (x_font_instance_properties):
10854         * objects-x.c (x_list_fonts):
10855         * objects-x.c (x_find_charset_font):
10856         Mule-ize entire file.
10857         [7].
10858
10859         * objects-x.h:
10860         Mule-verify.
10861
10862         * print.c:
10863         * print.c (std_handle_out_external):
10864         * print.c (debug_print_no_newline):
10865         * print.c (syms_of_print):
10866         Output to all debugger kinds in debug-print.
10867         Fix console-output code under MSWin to actually work.
10868
10869         * process-nt.c (send_signal):
10870         * process-nt.c (nt_create_process):
10871         Use newer Unicode macros.
10872
10873         * process-unix.c (unix_create_process):
10874         * process-unix.c (unix_canonicalize_host_name):
10875         * process-unix.c (unix_open_network_stream):
10876         [7].
10877
10878         * scrollbar-x.c:
10879         Mule-verify.
10880
10881         * search.c (syms_of_search):
10882         [2].
10883
10884         * select-msw.c (mswindows_destroy_selection):
10885         Use LIST_LOOP_2.
10886
10887         * select-x.c (symbol_to_x_atom):
10888         [7].
10889
10890         * select.c (syms_of_select):
10891         [2].
10892
10893         * sound.c (Fplay_sound_file):
10894         [7].
10895
10896         * specifier.c:
10897         * specifier.c (decode_specifier_type):
10898         * specifier.c (Fvalid_specifier_locale_type_p):
10899         * specifier.c (check_valid_locale_or_locale_type):
10900         * specifier.c (decode_locale):
10901         * specifier.c (decode_locale_type):
10902         * specifier.c (decode_locale_list):
10903         * specifier.c (check_valid_domain):
10904         * specifier.c (decode_specifier_tag_set):
10905         * specifier.c (Fcanonicalize_tag_set):
10906         * specifier.c (Fdefine_specifier_tag):
10907         * specifier.c (Fspecifier_tag_predicate):
10908         * specifier.c (check_valid_inst_list):
10909         * specifier.c (check_valid_spec_list):
10910         * specifier.c (decode_how_to_add_specification):
10911         * specifier.c (check_modifiable_specifier):
10912         * specifier.c (specifier_add_spec):
10913         * specifier.c (boolean_validate):
10914         * specifier.c (display_table_validate):
10915         [9].
10916
10917         * specifier.c (syms_of_specifier):
10918         Move some symbols to general-slots.h.
10919         [2].
10920
10921         * symbols.c:
10922         * symbols.c (Fmapatoms):
10923         * symbols.c (Fapropos_internal):
10924         Add GCPROs.
10925
10926         * symbols.c (set_default_buffer_slot_variable):
10927         * symbols.c (set_default_console_slot_variable):
10928         [1].
10929
10930         * symbols.c (defsymbol_massage_name_1):
10931         * symbols.c (defkeyword_massage_name):
10932         * symbols.c (deferror_1):
10933         * symbols.c (deferror):
10934         * symbols.c (deferror_massage_name_and_message):
10935         * symeval.h:
10936         * symeval.h (DEFSYMBOL):
10937         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
10938
10939         * symbols.c (syms_of_symbols):
10940         [2].
10941
10942         * symsinit.h:
10943         * symsinit.h (init_win32): New.
10944         Also new is syms_of_dialog_mswindows.
10945
10946         * syswindows.h:
10947         Add new Unicode macros, missing Cygwin wide-char functions,
10948         convenience conversion macros for Qmswindows_tstr, macros for
10949         encapsulating required MSWin <-> Cygwin filename conversions,
10950         prototype for dynamically-extracted (not in NT 3.51) functions.
10951
10952         * toolbar-x.c:
10953         Mule-verify.
10954
10955         * tooltalk.c (Fadd_tooltalk_message_arg):
10956         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
10957         * tooltalk.c (Fadd_tooltalk_pattern_arg):
10958         [7].
10959
10960         * tooltalk.c (syms_of_tooltalk):
10961         [2].
10962
10963         * unexnt.c:
10964         * unexnt.c (unexec):
10965         Fix up headers, declaration of unexec() to be more standard.
10966
10967 2000-07-20  Martin Buchholz  <martin@xemacs.org>
10968
10969         * offix.h: Revert change to guard macros - they're used in offix.c!
10970
10971 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10972
10973         * lisp.h: Defsubred Fdelete.
10974
10975         * console-msw.h:  (msprinter_default_printer): Added.
10976
10977         * console-msw.c (msprinter_canonicalize_console_connection):
10978         (msprinter_canonicalize_device_connection): Added.
10979
10980         * device-msw.c (msprinter_default_printer):
10981         (Fmswingows_get_default_printer):
10982         (signal_enum_priner_error):
10983         (Fmswingows_printer_list): Added.
10984
10985 2000-07-19  Martin Buchholz <martin@xemacs.org>
10986
10987         * XEmacs 21.2.35 is released.
10988
10989 2000-07-19  Martin Buchholz  <martin@xemacs.org>
10990
10991         * select-x.c (x_handle_selection_request):
10992         Text selected in xemacs and pasted into xterm failed to appear.
10993         Spelling fixes and cosmetic changes.
10994
10995 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10996
10997         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
10998         XEmacs frame (fix for doubling chars in dialog boxes).
10999
11000 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11001
11002         * select.c (select_convert_in, select_convert_out):
11003         Don't call intern() every time.
11004
11005         * select.c (Qselect_convert_in, Qselect_convert_out): New.
11006         * select.c (vars_of_select): Initialise them.
11007
11008 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11009
11010         * select.c (selection-coercible-types): New.
11011
11012         * select.c (own-selection-internal):
11013         * select.c (get-selection-internal):
11014         MULE bug fix - these should default to COMPOUND_TEXT and not
11015         STRING for MULE. I think.
11016
11017         * select.c (select_convert_out): Use selection-coercible-types
11018         to find types that we can attempt to perform coercions on.
11019
11020 2000-07-18  Martin Buchholz  <martin@xemacs.org>
11021
11022         * mule-wnnfns.c:
11023         * mule-canna.c:
11024         Add coding: cookie to identify encoding.
11025
11026         * mule-canna.c (CANNA_mode_keys): make static.
11027         Use proper prototypes, even for functions of no arguments.
11028         Remove external prototype for Fding().
11029
11030         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
11031
11032         * select.c (syms_of_select): Add missing DEFSUBR.
11033
11034 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11035
11036         * select.c (get_selection_internal, own_selection_internal):
11037         Make the type default to STRING, rather than placing a nil type
11038         into Vselection_alist.
11039
11040 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11041
11042         * gpmevent.c (tty_selection_exists_p):
11043         * gpmevent.c (tty_own_selection):
11044         Updated parameter lists.
11045
11046 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
11047
11048         * select.h (selection-alist): Removed declaration.
11049
11050         * select.h (get_local_selection):
11051         * select.c (get_local_selection):
11052         Made static.
11053
11054         * select.h (convert_selection): Removed declaration.
11055         * select.c (convert_selection): Removed.
11056         This function belongs in Lisp.
11057
11058         * select.h (select_convert_in): Declare.
11059         * select.h (select_convert_out): Declare.
11060         * select.c (select_convert_in): New.
11061         * select.c (select_convert_out): New.
11062         New conversion functions for other files to call.
11063
11064         * select.h (select_notify_buffer_kill): Declare.
11065         * select.c (select_notify_buffer_kill): New.
11066         New functions that get called from kill-buffer.
11067
11068         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
11069         X-specific lisp code.
11070
11071         * select.h: Declare some of the lisp-visible functions for
11072         external use.
11073
11074         * select.c (clean_local_selection_data): Removed. This was
11075         a disgusting function, and previously should have been in
11076         select-x.c in any case. The functionality is now provided
11077         in select-convert-from-integer (select.el).
11078
11079         * select.c (available-selection-types): Fixed stupidity where
11080         INTEGER and ATOM got added twice. Also add STRING when we see an
11081         extent.
11082
11083         * select.c (get-selection-internal): Removed symbol stripping. No
11084         longer causes conversion when data comes from the internal cache.
11085
11086         * select.c (syms_of_select): Added new functions.
11087
11088         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
11089         error checking - previously this called abort!
11090
11091         * select-x.c (x_own_selection): Changed comment.
11092
11093         * select-x.c (x_handle_selection_request): Use select_convert_out.
11094         Don't mess with selection-alist; it's an internal variable of select.c.
11095
11096         * select-x.c (x_get_foreign_selection): Use select_convert_in.
11097
11098         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
11099         rather than messing with selection-alist.
11100
11101         * select-msw.c (mswindows_get_foreign_selection):
11102         Use TO_INTERNAL_FORMAT rather than hacking.
11103
11104 2000-07-14  Martin Buchholz  <martin@xemacs.org>
11105
11106         * process-unix.c (unix_open_multicast_group):
11107         (unix_open_multicast_group): Remove useless casts.
11108
11109 2000-07-13  Martin Buchholz  <martin@xemacs.org>
11110
11111         * sound.c (Fplay_sound): Fix `unused variable' warning.
11112
11113         * emacs.c (main): Use correct type for _environ on SCO5.
11114
11115 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
11116
11117         * console.h (own_selection_method):
11118         * console.h (selection_exists_p_method):
11119         * console.h (available_selection_types_method): New.
11120         * console.h (register_selection_data_type_method): New.
11121         * console.h (selection_data_type_name): New.
11122
11123         * console-msw.h (mswindows_destroy_selection): Declare it.  New
11124         function & alist to track GlobalAlloc()'d handles that need
11125         releasing when the clipboard data gets replaced or emptied.
11126
11127         * event-msw.c (mswindows_wnd_proc): Call it.
11128
11129         * lisp.h, general.c (Qappend): New symbol representing a
11130         `how-to-add' mode.
11131
11132         * select.c (own-selection-internal):
11133         * select.c (selection-exists-p):
11134         * select.c (available-selection-types): New.
11135         * select.c (register-selection-data-type): New.
11136         * select.c (selection-data-type-name): New.  New functions to deal
11137         with device-specific selection data formats.
11138         * select.c (selection-converter-out-alist): Renamed.
11139         * select.c (selection-converter-in-alist): New.
11140         * select.c (selection-appender-alist): New.  Added new alists.
11141         * select.c (syms_of_select, vars_of_select): Added new symbols &
11142         variables.
11143         * select.c (get_local_selection): Split.
11144         * select.c: Removed spurious type checking - selections may now be
11145         of any type, not just strings.
11146         * select.c (own-selection-internal):
11147
11148         * select.h, select.c (convert_selection): New. Created
11149         convert_selection() function based on get_local_selection().
11150         * select.h, select.c (QCF_*): New symbols representing mswindows
11151         clipboard formats.
11152         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11153         symbols representing `how-to-add' modes.
11154
11155         * select-msw.c (x_sym_p): New.
11156         * select-msw.c (symbol_to_ms_cf): New.
11157         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11158         symbols & clipboard formats. Can also handle string names.
11159         * select-msw.c (mswindows_own_selection):
11160         * select-msw.c (mswindows_selection_exists_p):
11161         Added `data-type' parameter. Use it.
11162         * select-msw.c (mswindows_available_selection_types): New.
11163         * select-msw.c (mswindows_register_selection_data_type): New.
11164         * select-msw.c (mswindows_selection_data_type_name): New.
11165         * select-msw.c (mswindows_own_selection):
11166         * select-msw.c (mswindows_get_foreign_selection):
11167         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11168         * select-msw.c (console_create_select_mswindows): Added new methods.
11169         * select-msw.c (mswindows_destroy_selection): New.
11170         * select-msw.c (Vhandle_alist): New list.
11171         * select-msw.c (mswindows_own_selection):
11172
11173         * select-x.c (x_own_selection):
11174         * select-x.c (x_selection_exists_p):
11175         * select-x.c: Added some comments about maybe using new
11176         functionality.
11177         * select-x.c (x_own_selection):
11178
11179         * specifier.c: Remove definition of Qappend (now in general.c)
11180         * specifier.c (syms_of_specifier): Remove Qappend.
11181
11182 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11183
11184         * config.h.in: Add socklen_t.
11185
11186         * s/decosf4-0.h: No special compiler flags needed or desired.
11187         In particular, undefine _BSD for DEC OSF 4.0.
11188
11189 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11190
11191         * redisplay-msw.c (msprinter_frame_output_end): Added.
11192         (console_type_create_redisplay_mswindows): Referred the above.
11193
11194         * frame.c (setup_frame_without_minibuffer): Do not create a
11195         default minibuffer frame on a printer device.
11196
11197         * frame-msw.c (apply_dc_geometry): Added.
11198         (msprinter_start_page):
11199         (msprinter_init_frame_3):
11200         (msprinter_eject_page): Use it.
11201
11202         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11203         and removed residual duplex and orientation properties.
11204
11205 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11206
11207         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11208
11209         * unexalpha.c: Remove system prototypes from C sources!
11210
11211 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11212
11213         * eval.c: Remove references to M-x edit-options in DEFUNs for
11214         `defvar' and `defconst'.
11215
11216 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11217
11218         * config.h.in: Remove SMART_INCLUDE hackery.
11219
11220         PostgreSQL hacking:
11221         * config.h.in: Don't use SMART_INCLUDE.
11222
11223         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11224         * inline.c: Simply #include "postgresql.h"
11225         * postgresql.c:
11226         - Don't use SMART_INCLUDE
11227         - Use simply "const".
11228         - Use standard doc string conventions.
11229         - Use correct type for result of PQstatus.
11230
11231 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11232
11233         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11234
11235         C++ compilation changes.
11236         * config.h.in (EXTERN_C): Define.
11237         * config.h.in (not): This is also a C++ keyword.
11238         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11239         * cm.c: Use EXTERN_C.
11240         * redisplay-tty.c: Use EXTERN_C.
11241         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11242
11243 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11244
11245         * general.c: Remove duplicate definition for Qfunction.
11246
11247 2000-07-08  Ben Wing  <ben@xemacs.org>
11248
11249         * device-msw.c (msprinter_init_device):
11250         * device-msw.c (sync_printer_with_devmode):
11251         * device-msw.c (handle_devmode_changes):
11252         * device-msw.c (print_dialog_worker):
11253         * device-msw.c (Fmsprinter_apply_settings):
11254         * device-msw.c (hash_devmode):
11255         * device-msw.c (Fmsprinter_settings_despecialize):
11256         use Qmswindows_tstr, not Qctext.
11257
11258         * vm-limit.c (check_memory_limits):
11259         avoid infinite loop printing warning messages.
11260
11261 2000-07-05  Craig Lanning  <lanning@scra.org>
11262
11263         * Makefile.in.in: Add support for including the Windows resources
11264         when building with the cygwin and mingw targets.
11265
11266         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11267         not set or not correct.
11268         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11269         (init_initial_directory): Don't try to use $PWD on the
11270         WIN32_NATIVE target.
11271
11272         * s\cygwin32.h:
11273         [[Add -mwindows to eliminate console window.]] not required --ben
11274         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11275         (MAIL_USE_POP): removed; now handled by configure.
11276
11277         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11278         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11279         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11280         (MAIL_USE_POP): removed; now handled by configure.
11281         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11282         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11283         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11284         constant string.
11285         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11286         up from <winsock.h> via systime.h.
11287         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11288         (getpagesize): from Dan Holmsand, added.
11289         Added #endif which was left dangling by Ben's mega patch; added
11290         comment to help prevent this in the future.
11291
11292         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11293
11294 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11295
11296         * console-msw.h (struct mswindows_device): Removed unnecessary
11297         cached device geometry values.
11298         Added update_tick and an accessor macro.
11299         (Lisp_Devmode): Added lrecord declaration.
11300         (struct msprinter_device): Contain devmode as a Lisp object.
11301         Added mswindows_get_selected_frame_hwnd();
11302
11303         * console.h (struct console_methods): Indentation nitpicking.
11304
11305         * device-msw.c (mswindows_init_device): Do not initialize geometry
11306         cache. Initialize update tick.
11307         (mswindows_device_system_metrics): Ask the device for its geometry.
11308         (global_free_2_maybe):
11309         (devmode_to_hglobal):
11310         (handle_printer_changes):
11311         (ensure_not_printing):
11312         (print_dialog_worker):
11313         (Fmsprinter_print_setup_dialog):
11314         (Fmsprinter_print_dialog):
11315         (plist_get_margin):
11316         (plist_set_margin):
11317         (Fmsprinter_page_setup_dialog): Added functions.
11318         (sync_printer_with_devmode):
11319         (handle_devmode_changes):
11320         (Fmsprinter_get_settings):
11321         (Fmsprinter_select_settings):
11322         (Fmsprinter_apply_settings):
11323         (allocate_devmode):
11324         (Fmsprinter_settings_copy):
11325         (Fmsprinter_settings_despecialize):
11326         (print_devmode):
11327         (finalize_devmode):
11328         (equal_devmode):
11329         (hash_devmode): Added functions
11330         (syms_of_device_mswindows): Init devmode lrecord class.
11331
11332         * device.h: Added an exfun for find-device.
11333
11334         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11335         geometry; although, recreate the device compatible DC.
11336
11337         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11338         (msprinter_init_frame_3):
11339         (msprinter_frame_property):
11340         (msprinter_internal_frame_property_p):
11341         (msprinter_frame_properties):
11342         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11343         print job properties (will move to device settings).
11344
11345         * lisp.h: Added symbols.
11346
11347         * general.c (syms_of_general): Declared them.
11348
11349         * hash.c (string_hash): Added.
11350
11351         * lrecord.h (lrecord_type): Added devmode lrecord type.
11352
11353 2000-07-02  Mike Sperber <mike@xemacs.org>
11354
11355         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11356         FreeBSD 4.0.
11357
11358 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11359
11360         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11361         integer.
11362
11363 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11364
11365         * data.c (Fstring_to_number): Don't recognize floating point if
11366         base is not 10.
11367
11368 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11369
11370         * glyphs-widget.c (tab_control_query_geometry):
11371         (widget_query_geometry):
11372         (button_query_geometry):
11373         * glyphs.c (text_query_geometry):
11374         Enforce type correctness.
11375
11376 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11377
11378         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11379         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11380
11381 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11382
11383         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11384         conflicts with gcc's fixincluded version of FOO.h.
11385
11386         * glyphs.h (image_instance_geometry): Remove trailing `,'
11387
11388 2000-06-08  Mike Alexander  <mta@arbortext.com>
11389
11390         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11391         (shove_thread): Don't write the same output twice
11392         (make_ntpipe_output_stream): Increase priority of shove thread
11393         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11394         chance to run
11395         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11396         it.
11397
11398 2000-06-12  Ben Wing  <ben@xemacs.org>
11399
11400         * s\mingw32.h (sigset):
11401         * s\windowsnt.h (sigset):
11402         rename msw_ to mswindows_ for consistency with general convention.
11403
11404 2000-06-12  Ben Wing  <ben@xemacs.org>
11405
11406         * console-msw.c:
11407         * console-msw.c (mswindows_get_console_hwnd):
11408         * console-msw.c (mswindows_ensure_console_allocated):
11409         * console-msw.c (mswindows_hide_console):
11410         * console-msw.c (mswindows_show_console):
11411         * console-msw.c (mswindows_ensure_console_buffered):
11412         * console-msw.c (mswindows_output_console_string):
11413         * console-msw.c (mswindows_windows9x_p):
11414         * console-msw.h:
11415         * device-msw.c (mswindows_get_workspace_coords):
11416         * device-msw.c (mswindows_device_system_metrics):
11417         * dialog-msw.c (mswindows_popup_dialog_box):
11418         * event-msw.c (mswindows_wnd_proc):
11419         * frame-msw.c (mswindows_size_frame_internal):
11420         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11421         * menubar-msw.c (displayable_menu_item):
11422         * menubar-msw.c (mswindows_char_is_accelerator):
11423         * nt.c:
11424         * nt.c (mswindows_sigset):
11425         * nt.c (mswindows_sigrelse):
11426         * nt.c (mswindows_sigpause):
11427         * nt.c (mswindows_raise):
11428         * nt.c (timer_proc):
11429         * ntproc.c:
11430         * ntproc.c (find_child_console):
11431         * ntproc.c (sys_kill):
11432         * print.c:
11433         * print.c (std_handle_out_external):
11434         * process-nt.c (find_child_console):
11435         * process-nt.c (send_signal_the_95_way):
11436         * process-nt.c (ensure_console_window_exists):
11437         * process-nt.c (nt_create_process):
11438         * syssignal.h:
11439         rename msw_ to mswindows_ for consistency with general convention.
11440
11441         * emacs.c:
11442         * dumper.c:
11443         include nt.h, not syswindows.h.
11444
11445         * nt.c (mswindows_fstat):
11446         * nt.c (mswindows_stat):
11447         prefix mswindows_ instead of attempting to directly override the
11448         library functions.  fix declarations.
11449
11450         * nt.h:
11451         include syswindows.h.  move some sysdep.h stuff here.
11452
11453         * ntheap.h:
11454         include syswindows.h, not <windows.h>.
11455
11456         * ntplay.c:
11457         clean up headers.
11458
11459         * sysdep.c:
11460         clean up headers.
11461
11462         * sysdep.c (sys_fstat):
11463         * sysdep.c (sys_stat):
11464         call mswindows versions when appropriate.
11465
11466         * sysdep.h:
11467         move mswin decls to nt.h.
11468
11469         * syswindows.h:
11470         add long comment describing appropriate use of the various windows
11471         headers.
11472
11473 2000-06-11  Ben Wing  <ben@xemacs.org>
11474
11475         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11476
11477 2000-06-10  Ben Wing  <ben@xemacs.org>
11478
11479         * Makefile.in.in (release):
11480         Correction to make sure xemacs.exe always dumped when correct.
11481
11482         * alloca.c:
11483         * balloon_help.c:
11484         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11485
11486         * buffer.c (set_buffer_internal):
11487         [[[[2]]]]: Remove HAVE_FEP code.
11488
11489         * buffer.c (init_initial_directory):
11490         [3].
11491
11492         * bytecode.c:
11493         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11494         individual files.
11495
11496         * callproc.c:
11497         * callproc.c (call_process_cleanup):
11498         * callproc.c (Fold_call_process_internal):
11499         * callproc.c (child_setup):
11500         * callproc.c (getenv_internal):
11501         * callproc.c (init_callproc):
11502         * callproc.c (vars_of_callproc):
11503         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11504         __CYGWIN32__ -> CYGWIN.
11505         DOS_NT -> WIN32_NATIVE.
11506         Remove MSDOS support/references, converting to WIN32_NATIVE
11507           where correct.
11508         __MINGW32__ -> MINGW.
11509         Fix windows.h includes.
11510         Remove bogus HAVE_NTGUI.
11511
11512         * config.h.in:
11513         [2].
11514
11515         * console-msw.c:
11516         mswindows_message_outputted added for use in allowing startup
11517         errors on the console to be seen.
11518
11519         * console-msw.c (msw_ensure_console_allocated):
11520         * console-msw.c (msw_output_console_string):
11521         * console-msw.c (DHEADER):
11522         * console-msw.c (DOPAQUE_DATA):
11523         * console-msw.c (DEVENT):
11524         * console-msw.c (DCONS):
11525         * console-msw.c (DCONSCDR):
11526         * console-msw.c (DSTRING):
11527         * console-msw.c (DVECTOR):
11528         * console-msw.c (DSYMBOL):
11529         * console-msw.c (DSYMNAME):
11530         Fix warnings.
11531
11532         * console-stream.c (stream_init_console):
11533         Fix text/binary problems.
11534
11535         * device-msw.c:
11536         * device-msw.c (mswindows_finish_init_device):
11537         * device-msw.c (mswindows_delete_device):
11538         [1].
11539
11540         * device.c (handle_asynch_device_change):
11541         [3].
11542
11543         * dgif_lib.c:
11544         * dgif_lib.c (DGifOpenFileName):
11545         * dgif_lib.c (DGifOpenFileHandle):
11546         * dgif_lib.c (DGifGetLine):
11547         * dgif_lib.c (DGifGetPixel):
11548         Added config.h/lisp.h, fix up includes.
11549         [1].
11550
11551         * dired-msw.c:
11552         [4].
11553
11554         * dired.c:
11555         * dired.c (file_name_completion):
11556         * dired.c (Ffile_attributes):
11557         * dired.c (syms_of_dired):
11558         [1].
11559
11560         * dumper.c:
11561         * dumper.c (pdump_file_unmap):
11562         * dumper.c (pdump_load):
11563         [1].
11564
11565         * editfns.c:
11566         * editfns.c (Ftemp_directory):
11567         * editfns.c (user_login_name):
11568         * editfns.c (Fuser_real_login_name):
11569         * editfns.c (get_home_directory):
11570         [1].
11571
11572         * elhash.c (finish_marking_weak_hash_tables):
11573         [[[[5]]]]: Fix GCC warnings.
11574
11575         * emacs.c:
11576         * emacs.c (mswindows_handle_hardware_exceptions):
11577         * emacs.c (make_arg_list_1):
11578         * emacs.c (main_1):
11579         * emacs.c (Fkill_emacs):
11580         * emacs.c (Fdump_emacs):
11581         [1].
11582         Fix problems with nested crashes, add long comment.
11583
11584         * event-Xt.c (init_event_Xt_late):
11585         [1].
11586
11587         * event-msw.c:
11588         * event-msw.c (mswindows_dde_callback):
11589         * event-msw.c (mswindows_handle_sticky_modifiers):
11590         * event-msw.c (mswindows_wnd_proc):
11591         [1].
11592         [5].
11593
11594         * events.c (character_to_event):
11595         [1].
11596
11597         * fileio.c:
11598         * fileio.c (Ffile_name_directory):
11599         * fileio.c (Ffile_name_nondirectory):
11600         * fileio.c (directory_file_name):
11601         * fileio.c (Fexpand_file_name):
11602         * fileio.c (Fsubstitute_in_file_name):
11603         * fileio.c (Ffile_name_absolute_p):
11604         * fileio.c (check_executable):
11605         * fileio.c (Ffile_readable_p):
11606         * fileio.c (Ffile_accessible_directory_p):
11607         * fileio.c (Ffile_modes):
11608         * fileio.c (Funix_sync):
11609         * fileio.c (vars_of_fileio):
11610         [1]. [4].
11611
11612         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11613
11614         Expand getdefdir defn.
11615         Fix bogus rename() comment.
11616
11617         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11618         to use standard XEmacs include files, e.g. sysfile.h, rather
11619         than system-specific includes.
11620
11621         * fns.c:
11622         * fns.c (Fsubseq):
11623         [5]. [6].
11624
11625         * frame.c (vars_of_frame):
11626         [1].
11627
11628         * getloadavg.c:
11629         * getloadavg.c (getloadavg):
11630         [1]. [6].
11631         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11632         (We don't use it elsewhere in the code; just add a comment.)
11633
11634         * gif_io.c:
11635         [6].
11636         Add config.h.
11637
11638         * glyphs-msw.c:
11639         * glyphs-msw.c (mswindows_resource_instantiate):
11640         [1].
11641
11642         * glyphs-x.c (x_native_layout_instantiate):
11643         [5].
11644
11645         * gui-msw.c (Fmswindows_shell_execute):
11646         [1].
11647
11648         * insdel.c:
11649         [4].
11650
11651         * lisp.h:
11652         [4]. [5].
11653
11654         * lread.c (locate_file_in_directory_mapper):
11655         [1].
11656
11657         * lstream.c:
11658         [4].
11659
11660         * mem-limits.h:
11661         * mem-limits.h (get_lim_data):
11662         [1].
11663
11664         * menubar-msw.c:
11665         [4].
11666
11667         * ndir.h:
11668         [1].
11669
11670         * nt.c:
11671         * nt.c (getwd):
11672         * nt.c (closedir):
11673         * nt.c (rva_to_section):
11674         * nt.c (mswindows_executable_type):
11675         [1]. [6].
11676         Fix closedir() defn.
11677
11678         * nt.h:
11679         [[[[8]]]]: *_OK defs moved to sysfile.h.
11680
11681         * ntproc.c:
11682         [6]. [7].
11683
11684         * objects-x.c:
11685         [4].
11686
11687         * print.c:
11688         * print.c (std_handle_out_external):
11689         [1]. [4].
11690
11691         * process-nt.c:
11692         * process-nt.c (nt_create_process):
11693         [6].
11694         try to fix process quoting somewhat.
11695
11696         * process-unix.c (unix_create_process):
11697         [1].
11698
11699         * process.c:
11700         * process.c (vars_of_process):
11701         Add Vnull_device.
11702
11703         * process.h:
11704         [1].
11705
11706         * realpath.c:
11707         * realpath.c (xrealpath):
11708         [1].
11709
11710         * redisplay-tty.c (init_tty_for_redisplay):
11711         [3].
11712
11713         * redisplay.c:
11714         [4]. [6].
11715
11716         * scrollbar-msw.c:
11717         [4].
11718
11719         * sheap.c:
11720         * sheap.c (more_static_core):
11721         * sheap.c (report_sheap_usage):
11722         [5]. [6].
11723
11724         * signal.c:
11725         * signal.c (alarm_signal):
11726         [1]. [6].
11727
11728         * sound.c:
11729         [6].
11730
11731         * strftime.c:
11732         * strftime.c (zone_name):
11733         [1]. [5].
11734
11735         * symsinit.h (init_sunpro):
11736         [1].
11737
11738         * syscommctrl.h:
11739         commctrl.h not in Cygwin b20.1.
11740
11741         * sysdep.c:
11742         * sysdep.c (endif):
11743         * sysdep.c (sys_subshell):
11744         * sysdep.c (init_baud_rate):
11745         * sysdep.c (emacs_get_tty):
11746         * sysdep.c (emacs_set_tty):
11747         * sysdep.c (tty_init_sys_modes_on_device):
11748         * sysdep.c (init_system_name):
11749         * sysdep.c (sys_open):
11750         * sysdep.c (interruptible_open):
11751         * sysdep.c (sys_fopen):
11752         * sysdep.c (sys_mkdir):
11753         * sysdep.c (sys_rename):
11754         * sysdep.c (get_process_times_1):
11755         [1]. [6].
11756
11757         * sysdep.h:
11758         [1].
11759
11760         * sysdir.h:
11761         * sysdir.h (DIRENTRY_NONEMPTY):
11762         [1]. [6].
11763
11764         * sysdll.c (dll_init):
11765         * sysdll.h:
11766         [1].
11767
11768         * sysfile.h:
11769         [1]. [6]. [8].
11770         added text/binary defs.
11771
11772         * sysfloat.h:
11773         [1].
11774
11775         * sysproc.h:
11776         * sysproc.h (EDESTADDRREQ):
11777         * sysproc.h (poll_fds_for_input):
11778         [1]. [6].
11779
11780         * syspwd.h:
11781         [6].
11782
11783         * syssignal.h:
11784         [1].
11785
11786         * systime.h:
11787         [1]. [6].
11788
11789         * systty.h:
11790         [1].
11791
11792         * syswindows.h:
11793         [1].
11794         Always define WIN32_LEAN_AND_MEAN.
11795
11796         * unexcw.c (unexec):
11797         [5].
11798
11799         * unexec.c:
11800         * unexec.c (copy_text_and_data):
11801         * unexec.c (adjust_lnnoptrs):
11802         [1].
11803
11804         * unexnt.c:
11805         * unexnt.c (_start):
11806         [1].
11807
11808 2000-06-07  Ben Wing  <ben@xemacs.org>
11809
11810         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
11811         was used only as a model.  We've long since extracted any useful
11812         logic or code out of this. (I just did an exhaustive search.)
11813
11814         * s\msdos.h: Removed.
11815
11816         * s\windows95.h: Removed.
11817
11818 2000-06-10  Ben Wing  <ben@xemacs.org>
11819
11820         * s\cygwin32.h:
11821         [1]. [5].
11822         Don't use extern with fun defs.
11823
11824         * s\mingw32.h:
11825         [1]. [7].
11826         Remove nt\inc include.
11827         Remove getdisk, getdefdir. (The former is unused, the latter
11828         expanded in fileio.h.)
11829
11830         * s\windowsnt.h:
11831         * s\windowsnt.h (WIN32_NATIVE):
11832         * s\windowsnt.h (HAVE_STRCASECMP):
11833         [1]. [7].
11834         Add long comment about preprocessor changes.
11835         Remove getdisk, getdefdir. (The former is unused, the latter
11836         expanded in fileio.h.)
11837
11838 2000-06-10  Ben Wing  <ben@xemacs.org>
11839
11840         * m\arm.h:
11841         * m\delta.h:
11842         * m\intel386.h:
11843         * m\sequent.h:
11844         * m\template.h:
11845         * m\windowsnt.h:
11846         [1].
11847         Remove bogus/unused NO_SOCK_SIGIO.
11848
11849 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
11850
11851         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
11852         not an Emchar.
11853
11854 2000-06-04  Mike Sperber <mike@xemacs.org>
11855
11856         * casetab.c (set_case_table): For `set-standard-case-table',
11857         actually deposit the new case tables where the rest of XEmacs can
11858         see them.
11859
11860 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
11861
11862         * data.c (Faset): Don't cast XCHAR() to unsigned char.
11863
11864 2000-06-05  Ben Wing  <ben@xemacs.org>
11865
11866         * callproc.c (child_setup): Don't do close_load_descs() under
11867         MS Windows.  Put in a comment explaining why.
11868
11869 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
11870
11871         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
11872         Toolkit shell" which breaks `kill-compilation' on Windows NT
11873         native, retaining STDERR handling improvements.
11874
11875 2000-06-01  Andreas Jaeger  <aj@suse.de>
11876
11877         * s/s390.h: Support for S390, based on a patch by Martin
11878         Schwidefsky <schwidefsky@de.ibm.com>.
11879
11880 2000-05-30  Andy Piper  <andy@xemacs.org>
11881
11882         * window.c (allocate_window):
11883         (make_dummy_parent):
11884         (Fset_window_configuration): use new hashtable type.
11885
11886         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
11887         (struct image_instantiator_methods):
11888         (struct Lisp_Image_Instance): make instance geometry signed.
11889
11890         * glyphs.c (instantiate_image_instantiator):
11891         (image_instance_query_geometry):
11892         (image_instance_layout):
11893         (image_instance_layout):
11894         (query_string_geometry):
11895         (text_query_geometry):
11896         (image_instantiate):
11897         (image_instantiate):
11898         (cache_subwindow_instance_in_frame_maybe):
11899         (subwindow_query_geometry): make instance geometry signed.
11900
11901         * glyphs-widget.c (widget_query_geometry):
11902         (widget_layout):
11903         (button_query_geometry):
11904         (tree_view_query_geometry):
11905         (tab_control_query_geometry):
11906         (layout_query_geometry):
11907         (layout_layout):
11908         (native_layout_layout): make instance geometry signed.
11909
11910 2000-05-29  Olivier Galibert  <galibert@pobox.com>
11911
11912         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
11913         constant.
11914
11915         * general.c (syms_of_general): Add Qfull_assoc symbol.
11916
11917         * data.c (finish_marking_weak_lists): Mark full-assoc lists
11918         correctly.
11919         (decode_weak_list_type): Decode full-assoc type.
11920         (encode_weak_list_type): Encode full-assoc type.
11921         (Fmake_weak_list): Update doc string.
11922
11923 2000-05-30  Andy Piper  <andy@xemacs.org>
11924
11925         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
11926
11927         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
11928         (decode_hash_table_weakness): ditto.
11929         (Fhash_table_weakness): ditto.
11930         (Fhash_table_type): ditto.
11931         (finish_marking_weak_hash_tables): ditto.
11932         (hash_table_weakness_validate): ditto.
11933         (syms_of_elhash): ditto.
11934
11935 2000-05-28  Martin Buchholz <martin@xemacs.org>
11936
11937         * XEmacs 21.2.34 is released.
11938
11939 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11940
11941         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
11942         start cache.
11943         (updating_line_start_cache): Gone.
11944         (regenerate_window): Replace resetting of VERTICAL_CLIP by
11945         generic code to force a minimum of 1 line laid out in the
11946         CMOTION_DISP case.
11947
11948 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
11949
11950         * glyphs.c (instantiate_image_instantiator): Check for initialized
11951         height & width no longer special cases IMAGE_NOTHING.
11952         (nothing_instantiate): Set height and width of instance.
11953
11954 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
11955
11956         * unexelf.c (unexec): Search for ".data" section.
11957         Initialize new_data2_offset from old_data_index.
11958         Remove redundant check for ElfW.
11959
11960 2000-05-23  Andy Piper  <andy@xemacs.org>
11961
11962         * glyphs.c (get_image_instantiator_governing_domain): allow more
11963         specific domains as the governing domain rather than expecting an
11964         exact match. This fixes problems with layouts.
11965
11966 2000-05-22  Andy Piper  <andy@xemacs.org>
11967
11968         * redisplay-output.c (compare_runes): check for non-images
11969
11970         * glyphs.c (set_glyph_dirty_p): ditto.
11971         (update_glyph_cachel_data): ditto.
11972
11973         * glyphs-widget.c (layout_post_instantiate): ditto.
11974         (layout_post_instantiate): ditto.
11975
11976         * event-msw.c (mswindows_wnd_proc): warning removal.
11977
11978 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
11979
11980         * s\mingw32.h: Added #undef for CLASH_DETECTION.
11981
11982         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
11983
11984         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
11985
11986         * nt.c (rva_to_section): mingw32 needs rva_to_section.
11987         (mswindows_executable_type): mingw32 now has enough headers for
11988         this to work.
11989
11990 2000-05-20  Andy Piper  <andy@xemacs.org>
11991
11992         * console-msw.c (mswindows_output_last_error): ; -> ,
11993
11994 2000-05-12  Andy Piper  <andy@xemacs.org>
11995
11996         * console-msw.c (FROB): compare ints with ints.
11997
11998 2000-05-11  Andy Piper  <andy@xemacs.org>
11999
12000         * glyphs-x.c (x_finalize_image_instance): make minimal build
12001         happy.
12002
12003 2000-05-20  Ben Wing  <ben@xemacs.org>
12004
12005         * event-Xt.c:
12006         * event-Xt.c (vars_of_event_Xt):
12007         move modifier-keys-are-sticky to event-stream.c.
12008
12009         * event-msw.c:
12010         * event-msw.c (mswindows_enqueue_mouse_button_event):
12011         * event-msw.c (key_needs_default_processing_p):
12012         * event-msw.c (XEMSW_LCONTROL):
12013         * event-msw.c (mswindows_handle_sticky_modifiers):
12014         * event-msw.c (FROB):
12015         * event-msw.c (clear_sticky_modifiers):
12016         * event-msw.c (output_modifier_keyboard_state):
12017         * event-msw.c (output_alt_keyboard_state):
12018         * event-msw.c (mswindows_wnd_proc):
12019         * event-msw.c (mswindows_modifier_state):
12020         * event-msw.c (emacs_mswindows_handle_magic_event):
12021         implement sticky modifiers.
12022
12023         * event-stream.c:
12024         * event-stream.c (vars_of_event_stream):
12025         move modifier-keys-are-sticky here.
12026
12027         * lisp.h:
12028         add CHECK_FUNCTION.
12029
12030         * rangetab.c:
12031         implement map-range-table.
12032
12033
12034 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
12035
12036         * redisplay-tty.c (reset_tty_modes):
12037         (tty_redisplay_shutdown): Adjust argument type to
12038         tty_frame_output_end.
12039
12040 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12041
12042         * eval.c (Fbacktrace): Don't output a line with only right
12043         parenthesis.
12044
12045 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
12046
12047         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
12048         (Fpq_reset_poll): Ditto.
12049
12050 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
12051
12052         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
12053
12054 2000-05-16  Ben Wing  <ben@xemacs.org>
12055
12056         * buffer.c:
12057         * buffer.c (dfc_convert_to/from_internal_format):
12058         * buffer.c (reinit_vars_of_buffer):
12059         Fix conversion functions to allow reentrancy.
12060
12061         * console-msw.c:
12062         * console-msw.c (mswindows_output_last_error):
12063         New fun, generally useful -- output a human-readable
12064         version of GetLastError() on the console.
12065
12066         * console-msw.h:
12067         * console-msw.h (struct mswindows_frame):
12068         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
12069
12070         * console-stream.c (stream_output_begin):
12071         * console-stream.c (stream_output_end):
12072         * console-stream.c (stream_output_vertical_divider):
12073         * console-stream.c (stream_clear_region):
12074         * console-stream.c (stream_flash):
12075         * console-stream.c (console_type_create_stream):
12076         Delete blank stream methods, not needed.
12077
12078         * console.h (struct console_methods):
12079         Split begin/end methods into window and frame.
12080
12081         * event-msw.c:
12082         * event-msw.c (mswindows_handle_paint):
12083         * event-msw.c (output_alt_keyboard_state):
12084         * event-msw.c (mswindows_wnd_proc):
12085         * event-msw.c (vars_of_event_mswindows):
12086         Comment about problems with ignored-expose.
12087         Define mswindows-debug-events; not really implemented.
12088
12089         * frame-msw.c (mswindows_init_frame_1):
12090         random cleanups.
12091
12092         * glyphs-msw.c:
12093         * glyphs-msw.c (begin_defer_window_pos):
12094         * glyphs-msw.c (mswindows_unmap_subwindow):
12095         * glyphs-msw.c (mswindows_map_subwindow):
12096         * glyphs-msw.c (mswindows_resize_subwindow):
12097         Use DeferWindowPos to reduce flashing when mapping/unmapping.
12098
12099         * glyphs.c (make_image_instance_1):
12100         Fix crash.
12101
12102         * gutter.c (Fredisplay_gutter_area):
12103         Use new begin/end methods.
12104
12105         * lisp.h (Dynarr_new2):
12106         New creation fun.
12107
12108         * redisplay-msw.c:
12109         * redisplay-msw.c (mswindows_frame_output_begin):
12110         * redisplay-msw.c (mswindows_frame_output_end):
12111         * redisplay-msw.c (console_type_create_redisplay_mswindows):
12112         New begin/end methods -- handle DeferWindowPos.
12113
12114         * redisplay-output.c (redisplay_move_cursor):
12115         * redisplay-output.c (redraw_cursor_in_window):
12116         * redisplay-output.c (redisplay_update_line):
12117         * redisplay-output.c (redisplay_output_window):
12118         New begin/end methods.
12119
12120         * redisplay-tty.c:
12121         * redisplay-tty.c (tty_frame_output_begin):
12122         * redisplay-tty.c (tty_frame_output_end):
12123         * redisplay-tty.c (console_type_create_redisplay_tty):
12124         New begin/end methods.
12125
12126         * redisplay-x.c:
12127         * redisplay-x.c (x_window_output_begin):
12128         * redisplay-x.c (x_window_output_end):
12129         * redisplay-x.c (console_type_create_redisplay_x):
12130         New begin/end methods.
12131
12132         * redisplay.c (redisplay_frame):
12133         * redisplay.c (Fredisplay_echo_area):
12134         New begin/end methods.
12135         use MAYBE_DEVMETH for clear_frame; it may not exist.
12136
12137         * window.h (WINDOW_XFRAME):
12138         WINDOW_XFOO macros -- get locale and decode struct pointer.
12139
12140
12141 2000-05-12  Ben Wing  <ben@xemacs.org>
12142
12143         * emacs.c:
12144         * emacs.c (ensure_no_quitting_from_now_on):
12145         * emacs.c (fatal_error_signal):
12146         * emacs.c (mswindows_handle_hardware_exceptions):
12147         * emacs.c (main):
12148         * emacs.c (Fkill_emacs):
12149         * emacs.c (shut_down_emacs):
12150         * emacs.c (assert_failed):
12151         various improvements in fatal error handling.
12152
12153         * eval.c:
12154         move preparing_for_armageddon to emacs.c.
12155
12156         * lisp.h:
12157         declare fatal_error_in_progress.
12158
12159         * print.c:
12160         * print.c (std_handle_out_external):
12161         * print.c (std_handle_out_va):
12162         * print.c (stderr_out):
12163         * print.c (stdout_out):
12164         use console under mswin when no standard output.
12165         don't do code conversion during fatal error.
12166
12167         * scrollbar.c (Fscrollbar_page_up):
12168         * scrollbar.c (Fscrollbar_page_down):
12169         fix missing else.  reindent.
12170
12171 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12172
12173         Emergency fix.
12174
12175         * glyphs.h (GLYPH_CACHEL_DESCENT):
12176         (GLYPH_CACHEL_DESCENT):
12177         (GLYPH_CACHEL_DESCENT):
12178         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12179         used in case these are inline functions.
12180         Use more absurd values to error check.
12181
12182         include window.h for error check functions.
12183
12184 2000-05-11  Ben Wing  <ben@xemacs.org>
12185
12186         * cmdloop.c (Freally_early_error_handler):
12187         Display message box under windows; otherwise, message will disappear
12188         before it can be viewed.
12189
12190         * console-msw.c:
12191         * console-msw.c (Fmswindows_message_box):
12192         * console-msw.c (FROB):
12193         * console-msw.c (syms_of_console_mswindows):
12194         Define new fun `mswindows-message-box'.
12195         #### I will merge this into `popup-dialog-box'; just give me
12196         a bit of time.
12197
12198         * general.c:
12199         * general.c (syms_of_general):
12200         Some new symbols used in `mswindows-message-box'.
12201
12202         * glyphs.c:
12203         * glyphs.c (Fset_image_instance_property):
12204         put warning in this fun.
12205
12206         * glyphs.h:
12207         * glyphs.h (GLYPH_CACHEL_WIDTH):
12208         * glyphs.h (GLYPH_CACHEL_ASCENT):
12209         * glyphs.h (GLYPH_CACHEL):
12210         * glyphs.h (GLYPH_CACHEL_GLYPH):
12211         define error-checking versions to try to catch a bug i've seen --
12212         redisplay gets in an infinite loop because the glyph width of the
12213         continuation glyph is 65535.
12214
12215         * lisp.h:
12216         Extern message-box stuff.
12217
12218         * window.c (allocate_window):
12219         * window.c (make_dummy_parent):
12220         * window.c (Fset_window_configuration):
12221         Use EQUAL not EQ for subwindow caches to make them work a bit
12222         better. (Something is still very broken.)
12223
12224
12225 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12226
12227         * glyphs.c (image_instantiate): Suppress gcc warnings.
12228         (Fmake_image_instance): Fix doc string.
12229         * specifier.c (Fmake_specifier): Ditto.
12230
12231 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12232
12233         * paths.h.in (PATH_LOCK): Removed.
12234         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12235         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12236
12237 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12238
12239         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12240         Document (featurep '(and xemacs 21.02)).
12241
12242 2000-05-09  Ben Wing  <ben@xemacs.org>
12243
12244         * buffer.c (complex_vars_of_buffer):
12245         update modeline-format doc.
12246
12247         * device.h:
12248         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12249
12250         * emacs.c:
12251         timeline of all released versions of Emacs, for use in creating
12252         authorship comments and in synching up.
12253
12254         * glyphs-widget.c (image_instantiator_buttons):
12255         * glyphs-widget.c (image_instantiator_edit_fields):
12256         * glyphs-widget.c (image_instantiator_combo_box):
12257         * glyphs-widget.c (image_instantiator_scrollbar):
12258         * glyphs-widget.c (image_instantiator_progress_guage):
12259         * glyphs-widget.c (image_instantiator_tree_view):
12260         * glyphs-widget.c (image_instantiator_tab_control):
12261         * glyphs-widget.c (image_instantiator_labels):
12262         * glyphs-widget.c (image_instantiator_layout):
12263         * glyphs-widget.c (image_instantiator_native_layout):
12264         rename decode_domain method to governing_domain.
12265
12266         * glyphs.c:
12267         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12268         * glyphs.c (add_entry_to_device_ii_format_list):
12269         make sure we don't put an entry more than once into the list.
12270         * glyphs.c (check_instance_cache_mapper):
12271         *************************************************************
12272         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12273         HAVE BEEN GETTING.
12274         *************************************************************
12275         * glyphs.c (get_image_instantiator_governing_domain):
12276         clean up, expand on new concept of governing domain.
12277         * glyphs.c (instantiate_image_instantiator):
12278         * glyphs.c (allocate_image_instance):
12279         use governing_domain instead of cache_domain in naming.
12280         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12281         * glyphs.c (make_image_instance_1):
12282         * glyphs.c (Fmake_image_instance):
12283         allow for any domain (not just device), and process the
12284         governing domain correctly.  very big doc fix.
12285         * glyphs.c (Fimage_instance_domain):
12286         new primitive, to retrieve the governing domain of an image instance.
12287         * glyphs.c (image_instantiate):
12288         use new governing_domain stuff.  this fixes a crash you could get
12289         by instantiating certain widget glyphs in frame locales. (should
12290         signal an error instead of crashing.)
12291         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12292         * glyphs.c (Fglyphp): clean up doc.
12293         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12294         * glyphs.c (syms_of_glyphs):
12295         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12296         * glyphs.c (image_instantiator_format_create): add some comments about
12297         bogus code.
12298         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12299         for current-display-table. (Apparently Hrjove implemented in 1998 a
12300         design I wrote up in 1996, but didn't update the doc string.)
12301
12302         * glyphs.h: clean up a doc string.
12303         * glyphs.h (governing_domain):
12304         * glyphs.h (struct image_instantiator_methods):
12305         changes for governing_domain stuff.
12306
12307         * gutter.c:
12308         * gutter.c (Fgutter_specifier_p):
12309         * gutter.c (Fgutter_size_specifier_p):
12310         * gutter.c (Fgutter_visible_specifier_p):
12311         * objects.c:
12312         * objects.c (Fcolor_specifier_p):
12313         * objects.c (Ffont_specifier_p):
12314         * objects.c (Fface_boolean_specifier_p):
12315         doc strings moved to make-*-specifier.
12316
12317         * redisplay.c (add_disp_table_entry_runes_1):
12318         * redisplay.c (generate_fstring_runes):
12319         * redisplay.c (screen):
12320         add random comments and doc strings.
12321
12322         * specifier.c:
12323         * specifier.c (Fmake_specifier):
12324         major overhaul of this doc string.
12325
12326         * specifier.c (Fvalid_specifier_domain_p):
12327         comment about the bogosity of image instances being domains.
12328         * specifier.c (decode_domain):
12329         now non-static, used in glyphs.c.
12330         * specifier.c (specifier_instance):
12331         comment about the bogosity of image instances being domains.
12332         * specifier.c (Fgeneric_specifier_p):
12333         move doc string to make-generic-specifier.
12334         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12335         rebackslashify.
12336
12337         * specifier.h:
12338         * specifier.h (DOMAIN_FRAME):
12339         * specifier.h (DOMAIN_LIVE_P):
12340         * specifier.h (DOMAIN_XDEVICE):
12341         rebackslashify.
12342         add comments about problems with these macros.
12343         prototype for decode_domain.
12344
12345         * toolbar.c:
12346         * toolbar.c (Ftoolbar_specifier_p):
12347         move doc string to `make-toolbar-specifier'.
12348
12349         * window.c (window_unmap_subwindows_cache_mapper):
12350         *************************************************************
12351         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12352         HAVE BEEN GETTING.
12353         *************************************************************
12354
12355 2000-05-09  Andy Piper  <andy@xemacs.org>
12356
12357         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12358
12359         * window.c (Fset_window_configuration): reset the frame subwindow
12360         cache and re-initialize the window subwindow caches.
12361
12362         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12363
12364 2000-05-09  Ben Wing  <ben@xemacs.org>
12365
12366         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12367         DWORD.
12368
12369 2000-04-26  Mike Woolley  <mike@bulsara.com>
12370
12371         * ntheap.c: Changed recreate_heap to limit the amount reserved
12372         for the heap to that which is actually available. Also now
12373         displays a message box (with some dignostics) in the event that
12374         it still can't start.
12375
12376 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12377
12378         * callproc.c (Fold_call_process_internal): GCPRO path
12379
12380 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12381
12382         Patch by Bill Perry.
12383
12384         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12385         back data instead of #ifdef.
12386         (Fscrollbar_page_down): ditto.
12387
12388 2000-05-07  Ben Wing  <ben@xemacs.org>
12389
12390         * buffer.h:
12391         Kludge for defining Qmswindows_tstr.
12392
12393         * nt.c:
12394         * nt.c (open_input_file):
12395         * nt.c (open_output_file):
12396         * nt.c (rva_to_section):
12397         * nt.c (mswindows_executable_type):
12398         Move all memory-mapped-file routines here (some were in unexnt.c,
12399         which is bad because they are used by process-nt.c, and unexnt
12400         won't be around when portable dumping).  Synched the above routines
12401         with FSF 20.6.
12402
12403         * nt.h:
12404         Removed ifdef'd out bogus code.
12405         Fixed some prototypes.
12406
12407         * nt.h (file_data):
12408         * nt.h (OFFSET_TO_RVA):
12409         * nt.h (RVA_TO_OFFSET):
12410         * nt.h (RVA_TO_PTR):
12411         Moved the memory-mapped-file structures, macros and prototypes
12412         here, to parallel nt.c.  ntheap.h should really be removed
12413         entirely, and it's a non-portable-dumper specific file.
12414
12415         * ntheap.h (round_to_next):
12416         Moved the memory-mapped-file structures, macros and prototypes
12417         to nt.h.
12418
12419         * ntproc.c (compare_env):
12420         Moved rva_to_section and mswindows_executable_type to nt.c.
12421         Moved compare_env to process-nt.c.
12422         ntproc.c will die, one day.
12423
12424         * ntproc.c (sys_spawnve):
12425         Account for win32_ -> mswindows_.
12426
12427         * process-nt.c:
12428         * process-nt.c (struct nt_process_data):
12429         * process-nt.c (ensure_console_window_exists):
12430         * process-nt.c (compare_env):
12431         * process-nt.c (nt_create_process):
12432         * process-nt.c (nt_kill_process_by_pid):
12433         * process-nt.c (syms_of_process_nt):
12434         * process-nt.c (vars_of_process_nt):
12435         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12436         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12437         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12438         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12439         Move compare_env here from ntproc.c.
12440
12441         * process.c (Fprocess_send_region):
12442         Takes an optional fourth argument, BUFFER, which should fix some
12443         problems with call-process.
12444
12445         * syscommctrl.h:
12446         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12447
12448         * syswindows.h:
12449         Move ICC_BAR_CLASSES to syscommctrl.h.
12450         Add preliminary macros for MSWindows/Mule.  More to come.
12451
12452         * unexnt.c:
12453         * unexnt.c (unexec):
12454         open_output_file moved to nt.c.
12455
12456
12457 2000-05-05  Andy Piper  <andy@xemacs.org>
12458
12459         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12460         instance from the frame cache also since GC may catch up too late
12461         to make frame deletion sane.
12462
12463 2000-05-04  Andy Piper  <andy@xemacs.org>
12464
12465         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12466         (x_finalize_image_instance): ungcpro on deletion.
12467
12468         * glyphs.c (image_instantiator_format_create): give pointers a
12469         query geometry method so that the geometry is at least set.
12470
12471         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12472         initialize layouts if using widgets.
12473
12474 2000-05-03  Andy Piper  <andy@xemacs.org>
12475
12476         * nt.c: remove bogus reference to sysmmsystem.h
12477
12478         * gui-x.c (popup_selection_callback): fix no selection abort.
12479
12480 2000-05-02  Andy Piper  <andy@xemacs.org>
12481
12482         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12483         (mswindows_widget_instantiate): ditto.
12484
12485         * glyphs-widget.c (initialize_widget_image_instance): initialize
12486         children correctly.
12487         (widget_instantiate): cope with children and items in the same
12488         instance.
12489
12490         * glyphs.c (mark_image_instance): cope with children as a first
12491         class member.
12492         (image_instance_equal): ditto.
12493         (image_instance_hash): ditto.
12494         (image_instance_changed): ditto.
12495
12496 2000-04-30  Andy Piper  <andy@xemacs.org>
12497
12498         * glyphs.c (subwindow_query_geometry): new function. Return some
12499         defaults.
12500         (subwindow_instantiate): don't assign dimensions if none have been
12501         given.
12502         (image_instantiator_format_create): add subwindow_query_geometry.
12503         (print_image_instance): cope with layouts as widgets.
12504
12505 2000-04-29  Andy Piper  <andy@xemacs.org>
12506
12507         * frame.c (delete_frame_internal): call
12508         free_frame_subwindow_instance_cache so that all subwindows are
12509         finalized before their parent.
12510         (mark_frame): remove subwindow_cachels.
12511         (Fmake_frame): remove subwindow_cachel manipulation.
12512         (allocate_frame_core): subwindow_instance_cache is a weak list.
12513         (delete_frame_internal): set subwindow_instance_cache to nil.
12514
12515         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12516         finalization safe.
12517         (mswindows_finalize_image_instance): use the device
12518         not the domain as the domain may have died already.
12519
12520         * glyphs-x.c (x_finalize_image_instance): ditto.
12521         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12522         HEIGHT.
12523
12524         * redisplay-output.c (redisplay_unmap_subwindows): update for
12525         subwindow instance cache as a weak list.
12526         (redisplay_unmap_subwindows_maybe): ditto.
12527         (redisplay_unmap_subwindows_except_us): ditto.
12528
12529         * glyphs.c (unmap_subwindow): error checking will check the domain
12530         so don't deal with it here. Don't use cachels anymore.
12531         (map_subwindow): ditto.
12532         (update_subwindow_cachel_data): remove old accessor names.
12533         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12534         (Fresize_subwindow): don't update cachel.
12535         (mark_subwindow_cachels):
12536         (update_subwindow_cachel_data):
12537         (add_subwindow_cachel):
12538         (get_subwindow_cachel_index):
12539         (update_subwindow_cachel):
12540         (reset_subwindow_cachels):
12541         (mark_subwindow_cachels_as_not_updated): deleted.
12542         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12543         subwindow instance to the frame cache.
12544         (find_matching_subwindow): update for subwindow instance cache as
12545         a weak list.
12546         (update_widget_instances): ditto.
12547         (image_instance_type_to_mask):inlined.
12548         (free_frame_subwindow_instance_cache): new function. finalize all
12549         subwindows that are instantiated.
12550
12551         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12552         of cachel information.
12553         (IMAGE_INSTANCE_DISPLAY_X):
12554         (IMAGE_INSTANCE_DISPLAY_Y):
12555         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12556         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12557         (XIMAGE_INSTANCE_DISPLAY_X):
12558         (XIMAGE_INSTANCE_DISPLAY_Y):
12559         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12560         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12561         remove subwindow_cachel structure and function references.
12562         (image_instance_type_to_mask): inline from glyphs.c
12563
12564         * redisplay.c (redisplay_frame): remove subwindow_cachel
12565         references.
12566
12567         * frame.h (struct frame): remove subwindow_cachels.
12568         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12569
12570         * frameslots.h: add subwindow_instance_cache.
12571
12572         * window.c (replace_window): check subwindow cache of replacement.
12573         (window_unmap_subwindows_cache_mapper):
12574         (window_unmap_subwindows): new functions. Unmap all subwindows
12575         cached on this window.
12576         (mark_window_as_deleted): unmap all subwindows.
12577
12578 2000-04-27  Andy Piper  <andy@xemacs.org>
12579
12580         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12581
12582         * glyphs-widget.c (widget_layout): return something.
12583         (layout_layout): return something. Fail if not initialized.
12584         (layout_query_geometry): ditto.
12585         (image_instantiator_native_layout): new function. Initialized the
12586         native layout type.
12587         (widget_instantiate): don't do layout stuff here.
12588
12589         * glyphs.c (instantiate_image_instantiator): reorded calling or
12590         instantiate and post_instantiate with layout in between.
12591         (image_instance_layout): be more selective about deciding whether
12592         the layout has been done or not.
12593
12594         * glyphs.h (struct image_instantiator_methods): return a value
12595         from layout_method.
12596
12597 2000-04-26  Andy Piper  <andy@xemacs.org>
12598
12599         * glyphs.c (allocate_image_instance): make initial width and
12600         height unspecified. Set initialized to 0.
12601
12602         * syscommctrl.h new file. Encapsulates commctrl.h.
12603
12604         * syswindows.h new file. Encapsulates windows.h.
12605
12606         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12607         * nt.c: ditto.
12608         * console-msw.h: ditto.
12609
12610         * redisplay-tty.c (tty_output_display_block): remove layout references.
12611
12612         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12613         window handle rather than just the frame.
12614
12615         * glyphs.c (mark_image_instance): remove layout references.
12616         (print_image_instance): ditto.
12617         (image_instance_equal): ditto.
12618         (image_instance_hash): ditto.
12619         (decode_image_instance_type): ditto.
12620         (encode_image_instance_type): ditto.
12621         (image_instantiate): ditto.
12622         (allocate_glyph): ditto.
12623         (Fimage_instance_height): ditto.
12624         (Fimage_instance_width): ditto.
12625         (update_subwindow): ditto.
12626
12627         * redisplay-x.c (x_output_display_block): recode for layouts as
12628         widgets.
12629
12630         * redisplay-output.c (redisplay_output_layout): recode for layouts
12631         as widgets.
12632         (compare_runes): remove layout references.
12633
12634         * redisplay-msw.c (mswindows_output_display_block): recode for
12635         layouts as widgets.
12636
12637         * glyphs-widget.c (image_instantiator_layout): remove
12638         layout_possible_dest_types.
12639         (layout_possible_dest_types): deleted.
12640
12641         * glyphs.h (image_instance_type): remove layout references.
12642         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12643         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12644         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12645
12646 2000-04-25  Andy Piper  <andy@xemacs.org>
12647
12648         * glyphs-widget.c (image_instantiator_buttons):
12649         (image_instantiator_edit_fields):
12650         (image_instantiator_combo_box):
12651         (image_instantiator_scrollbar):
12652         (image_instantiator_progress_guage):
12653         (image_instantiator_tree_view):
12654         (image_instantiator_tab_control):
12655         (image_instantiator_labels):
12656         (image_instantiator_layout): call default post_instantiate method.
12657         (widget_post_instantiate): new function. Simply lays out the
12658         widgets.
12659
12660         * glyphs.h (struct image_instantiator_methods): add
12661         post_instantiate method.
12662
12663         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12664         method calls.
12665
12666 2000-04-23  Andy Piper  <andy@xemacs.org>
12667
12668         * glyphs.h (struct image_instantiator_methods): add
12669         decode_domain_method.
12670         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12671         derived from the domain.
12672         (IMAGE_INSTANCE_FRAME): new accessor.
12673         (XIMAGE_INSTANCE_FRAME): ditto.
12674
12675         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12676         instead of _SUBWINDOW_FRAME.
12677         (finalize_image_instance): ditto.
12678         (Fimage_instance_foreground): ditto.
12679         (Fimage_instance_background): ditto.
12680         (image_instantiate): ditto.
12681         (update_subwindow_cachel): ditto.
12682         (update_subwindow): ditto.
12683         (unmap_subwindow): ditto.
12684         (map_subwindow): ditto
12685         (subwindow_instantiate): ditto.
12686         * glyphs-msw.c (mswindows_update_widget): ditto.
12687         (mswindows_progress_gauge_instantiate): ditto.
12688         (mswindows_tab_control_update): ditto.
12689         * glyphs-x.c (x_update_widget): ditto.
12690         (x_widget_instantiate): ditto.
12691         (x_tab_control_instantiate): ditto.
12692         (x_tab_control_update): ditto.
12693         * event-msw.c (mswindows_wnd_proc): ditto
12694
12695         * glyphs-widget.c (image_instantiator_layout): use
12696         subwindow_decode_domain.
12697         (image_instantiator_buttons): ditto.
12698         (image_instantiator_edit_fields): ditto.
12699         (image_instantiator_combo_box): ditto.
12700         (image_instantiator_scrollbar): ditto.
12701         (image_instantiator_progress_guage): ditto.
12702         (image_instantiator_tree_view): ditto.
12703         (image_instantiator_tab_control): ditto.
12704         (image_instantiator_labels): ditto.
12705         (image_instantiator_layout): ditto.
12706
12707         * glyphs.c: add instance error checking to many functions.
12708         (instantiate_image_instantiator): decode device from cache_domain.
12709         (image_instantiate): partially rewrite by using
12710         decode_image_instantiator_domain to determine what domain the
12711         instance needs to be cached in.
12712         (decode_image_instantiator_domain): new function. Determine what
12713         domain the image needs to be cached in.
12714         (check_window_subwindow_cache): new error checking function.
12715         (check_instance_cache_mapper): ditto.
12716         (check_image_instance_structure): ditto.
12717         (subwindow_decode_domain): new function. Encodes a window as a
12718         subwindow's cache domain.
12719         (image_instantiator_format_create): use it for text and
12720         subwindows.
12721
12722 2000-04-21  Andy Piper  <andy@xemacs.org>
12723
12724         * glyphs.c (image_instance_device): new function.
12725         (image_instance_frame): new function.
12726         (image_instance_window): new function.
12727         (image_instance_live_p): new function.
12728
12729         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12730         cache to nil.
12731
12732         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12733         (IMAGE_INSTANCE_DOMAIN): new accessor.
12734         (XIMAGE_INSTANCE_DOMAIN): ditto.
12735
12736         * glyphs-x.c (x_finalize_image_instance): device->domain.
12737
12738         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12739         (mswindows_finalize_image_instance): ditto.
12740
12741         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12742         (gif_instantiate): ditto.
12743         (png_instantiate): ditto.
12744         (tiff_instantiate): ditto.
12745
12746         * glyphs.c (instantiate_image_instantiator): use domain rather
12747         than device.
12748         (mark_image_instance): device -> domain.
12749         (print_image_instance): ditto.
12750         (finalize_image_instance): ditto.
12751         (image_instance_equal): ditto.
12752         (allocate_image_instance): ditto.
12753         (Fcolorize_image_instance): ditto.
12754         (query_string_geometry): ditto.
12755         (image_instantiate): ditto
12756         (query_string_font): ditto.
12757         (image_instantiate): ditto.
12758         (update_subwindow): ditto.
12759         (unmap_subwindow): ditto.
12760         (map_subwindow): ditto.
12761         (subwindow_instantiate): ditto.
12762
12763         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12764         (DOMAIN_FRAME): ditto.
12765         (DOMAIN_WINDOW): ditto.
12766         (DOMAIN_LIVE_P): ditto.
12767         (XDOMAIN_DEVICE): ditto.
12768         (XDOMAIN_FRAME): ditto.
12769         (XDOMAIN_WINDOW): ditto.
12770
12771         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12772         a valid specifier domain.
12773
12774 2000-04-19  Andy Piper  <andy@xemacs.org>
12775
12776         * glyphs-widget.c (syms_of_glyphs_widget): remove
12777         widget-callback-current-channel.
12778         (vars_of_glyphs_widget): ditto.
12779         * glyphs.h: ditto
12780
12781         * gui.c (get_gui_callback): revert to previous behaviour.
12782
12783 2000-04-18  Andy Piper  <andy@xemacs.org>
12784
12785         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
12786         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
12787         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
12788
12789         * glyphs.c (image_instance_equal): add margin_width.
12790         (image_instance_hash): ditto.
12791
12792         * glyphs-widget.c (widget_instantiate): deal with margin-width.
12793         (layout_query_geometry): ditto.
12794         (layout_layout): ditto.
12795         (syms_of_glyphs_widget): add margin-width.
12796         (image_instantiator_layout): allow margin-width.
12797
12798         * glyphs.c (update_widget_instances): make a normal function.
12799         (syms_of_glyphs): remove Qupdate_widget_instances.
12800         * glyphs.h: ditto.
12801
12802         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
12803         so that we don't corrupt ideas about the last event or
12804         command. Remove widget-callback-current-channel fiddling.
12805         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
12806
12807 2000-05-01  Martin Buchholz <martin@xemacs.org>
12808
12809         * XEmacs 21.2.33 is released.
12810
12811 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
12812
12813         * make-src-depend: Allow dots in header file name.
12814
12815 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
12816
12817         * mule-charset.h (struct charset_lookup): Add
12818         next_allocated_1_byte_leading_byte and
12819         next_allocated_2_byte_leading_byte.
12820         * mule-charset.c: Move above two variables so that those values
12821         will be dumped.
12822
12823 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
12824
12825         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
12826         when string length is zero.
12827         (find_charsets_in_emchar_string): Ditto.
12828
12829 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
12830
12831         * lisp.h: extern Qdialog and Qmenubar.
12832
12833         * gui-x.c: added events.h.
12834                 also fixed typo which made the file uncompilable.
12835
12836         * general.c: Added Qmenubar and Qdialog
12837
12838 2000-04-28  Ben Wing  <ben@xemacs.org>
12839
12840         * frame-msw.c (mswindows_init_frame_1):
12841         * frame-msw.c (mswindows_mark_frame):
12842         * event-msw.c (mswindows_enqueue_dispatch_event):
12843         * console-msw.h:
12844         * console-msw.h (struct mswindows_frame):
12845         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
12846         there are now three hash tables for callbacks.
12847         mswindows_enqueue_dispatch_event is no longer static.
12848
12849         * dialog-x.c (maybe_run_dbox_text_callback):
12850         * dialog-x.c (dbox_descriptor_to_widget_value):
12851         switch to new cons3 form for callbacks.
12852
12853         * glyphs-msw.c (mswindows_register_gui_item):
12854         * glyphs-msw.c (mswindows_widget_instantiate):
12855         * glyphs-msw.c (add_tree_item):
12856         * glyphs-msw.c (add_tab_item):
12857         new image instance parameter, so it can be passed to callback-ex.
12858         respect :callback-ex as well as :callback.
12859
12860         * glyphs-widget.c (VALID_GUI_KEYWORDS):
12861         add :callback-ex.
12862
12863         * glyphs.c (print_image_instance):
12864         prettify, e.g. now prints widget type.
12865
12866         * gui-x.h:
12867         certain funs have new image instance parameter.
12868
12869         * gui.c:
12870         * gui.c (get_gui_callback):
12871         * gui.c (gui_item_add_keyval_pair):
12872         * gui.c (gui_item_init):
12873         * gui.c (gui_add_item_keywords_to_plist):
12874         * gui.c (mark_gui_item):
12875         * gui.c (gui_item_hash):
12876         * gui.c (gui_item_equal):
12877         * gui.c (copy_gui_item):
12878         * gui.c (syms_of_gui):
12879         recognize callback-ex in a number of places.
12880         also, fix the annoying "can't get out of yes-no dialog" bug.
12881
12882         * gui.h:
12883         * gui.h (struct Lisp_Gui_Item):
12884         recognize callback-ex in a number of places.
12885
12886         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12887         new parameter in button_item_to_widget_value.
12888
12889         * glyphs-x.c (x_update_widget):
12890         * glyphs-x.c (x_button_instantiate):
12891         * glyphs-x.c (x_button_update):
12892         * glyphs-x.c (x_progress_gauge_instantiate):
12893         * glyphs-x.c (x_edit_field_instantiate):
12894         * glyphs-x.c (x_combo_box_instantiate):
12895         * glyphs-x.c (x_tab_control_instantiate):
12896         * glyphs-x.c (x_label_instantiate):
12897         new image instance parameter in various places.
12898
12899         * event-Xt.c:
12900         * event-Xt.c (enqueue_Xt_dispatch_event):
12901         this fun gets exported.
12902
12903         * gui-msw.c:
12904         * gui-msw.c (mswindows_handle_gui_wm_command):
12905         handle both :callback and :callback-ex, and generate our own
12906         event because it's one of the callback-ex arguments.
12907
12908         * gui-x.c:
12909         * gui-x.c (popup_selection_callback):
12910         handle both :callback and :callback-ex, and generate our own
12911         event because it's one of the callback-ex arguments.
12912         * gui-x.c (button_item_to_widget_value):
12913         * gui-x.c (gui_items_to_widget_values_1):
12914         * gui-x.c (gui_item_children_to_widget_values):
12915         * gui-x.c (gui_items_to_widget_values):
12916         new image instance parameter in various places.
12917
12918         * fns.c (Freplace_list):
12919         fix small typo in doc string.
12920
12921         * lisp.h:
12922         declare enqueue_Xt_dispatch_event.
12923
12924 2000-04-28  Ben Wing  <ben@xemacs.org>
12925
12926         * buffer.c:
12927         * buffer.c (Frecord_buffer):
12928         * buffer.c (syms_of_buffer):
12929         delete record-buffer-hook.
12930
12931         * fns.c:
12932         * fns.c (Freplace_list):
12933         * fns.c (syms_of_fns):
12934         new primitive replace-list.
12935
12936         * frameslots.h:
12937         slot for old buffer-alist.
12938
12939         * lisp.h:
12940         exfun replace-list.
12941
12942         * redisplay.c:
12943         * redisplay.c (redisplay_frame):
12944         * redisplay.c (syms_of_redisplay):
12945         * redisplay.c (vars_of_redisplay):
12946         new hook buffer-list-changed-hook.
12947         call it.
12948
12949 2000-04-27  Ben Wing  <ben@xemacs.org>
12950
12951         * extents.h: extern in_modeline_generation.
12952
12953         * redisplay.c (generate_formatted_string_db): set
12954         in_modeline_generation.
12955
12956         * extents.c (extent_changed_for_redisplay): don't mark redisplay
12957         flags if in modeline generation.  otherwise frame-modified-tick
12958         is ticked far too often.
12959         Declare in_modeline_generation.
12960
12961 2000-04-26  Ben Wing  <ben@xemacs.org>
12962
12963         * emacs.c (vars_of_emacs): document quick-build "error-checking"
12964         option.
12965         (vars_of_emacs): add quick-build as an error-checking option.
12966         A bit kludgy, but there doesn't seem much point in creating
12967         a real var for this.
12968
12969         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
12970
12971 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
12972
12973         * redisplay.h (struct display_line): Add a new variable,
12974         line_continuation.
12975
12976         * redisplay.c (create_text_block): Set dl->line_continuation if
12977         the line continues.
12978         (create_string_text_block): Ditto.
12979         (regenerate_window_incrementally): Use line_continuation instead
12980         of searching continuation glyph.
12981         (add_margin_runes): Call add_glyph_rune.
12982         (add_glyph_rune): Handle margin glyph.
12983
12984 2000-04-20  Martin Buchholz  <martin@xemacs.org>
12985
12986         * filelock.c (fill_in_lock_file_name):
12987         ANSIfy.
12988         Check for IS_ANY_SEP instead of '/'.
12989         (lock_file_1):
12990         Avoid generating gratuitous garbage.  Call user_login_name() directly.
12991         Never check errno without first seeing that system call failed.
12992         (unlock_file): Add GCPRO.
12993         (Flock_buffer): Fix docstring.
12994         (Ffile_locked_p): Fix docstring.  Add GCPRO.
12995
12996 2000-04-19  Martin Buchholz  <martin@xemacs.org>
12997
12998         * sysdep.c (get_pty_max_bytes):
12999         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
13000         strings longer than 252 bytes.
13001
13002         * md5.c: Unconditionally include ANSI header <limits.h>
13003
13004         * glyphs-x.c (convert_EImage_to_XImage):
13005         * lisp-union.h (union Lisp_Object):
13006         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
13007
13008 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
13009
13010         * filelock.c (current_lock_owner): Remove unused variable o, p.
13011
13012 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
13013
13014         * callint.c: Remove multiply defined symbol Qlet
13015         (syms_of_callint): ditto.
13016
13017 2000-04-14  Andy Piper  <andy@xemacs.org>
13018
13019         * general.c (syms_of_general): add last-command, this-command, let
13020         and funcall.
13021
13022         * lisp.h: declare various symbols.
13023
13024         * glyphs.h: declare Qwidget_callback_current_channel;
13025
13026         * glyphs-widget.c (syms_of_glyphs_widget): add
13027         Qgui_callback_current_channel.
13028         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
13029
13030         * gui-msw.c (mswindows_handle_gui_wm_command): bind
13031         widget-callback-current-channel when invoking the interactive
13032         arg. Also bind last-command and next-command when invoking the
13033         widget updates.
13034         * gui-x.c (popup_selection_callback): ditto.
13035
13036         * gui.c (get_gui_callback): massage args so that we are always
13037         calling eval. This allows us to add our own variable bindings
13038         outside.
13039
13040         * glyphs-x.c (x_button_instantiate): use
13041         gui_items_to_widget_values since this is GC safe.
13042         (x_progress_gauge_instantiate): ditto.
13043         (x_edit_field_instantiate): ditto.
13044         (x_label_instantiate): ditto.
13045
13046         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
13047         (emacs_Xt_event_widget_focus_out): new function
13048         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
13049         focus.
13050         (emacs_Xt_event_add_widget_actions): new function. add focus
13051         functions as actions.
13052         (init_event_Xt_late): use it.
13053
13054 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
13055
13056         * event-stream.c (Fdispatch_event): Doc fix.
13057
13058 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
13059
13060         * postgresql.c: Remove all references to PQsetenv*.
13061
13062         * postgresql.h: Remove references to PGsetenvHandler object.
13063         * lrecord.h (lrecord_type): Ditto.
13064
13065 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13066
13067         * glyphs-msw.h (struct mswindows_image_instance_data): Added
13068         real_heigh and real_width members, and accessor macros for these.
13069
13070         * glyphs-msw.c (init_image_instance_geometry): New function.
13071         (init_image_instance_from_dibitmap): Use it.
13072         (mswindows_resource_instantiate): Use it.
13073         (init_image_instance_from_xbm_inline): Use it.
13074         (mswindows_initialize_image_instance_mask): Use real bitmap
13075         geometry.
13076         (mswindows_create_resized_bitmap): Ditto.
13077         (mswindows_create_resized_mask): Ditto.
13078
13079         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
13080         and bitmap to their surface size.
13081
13082 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
13083
13084         * process-unix.c (unix_send_process): Guard against process MIA
13085         after Faccept_process_output.
13086
13087 2000-04-11  Ben Wing  <ben@xemacs.org>
13088
13089         * eval.c (unbind_to_hairy): fix brokenness introduced by
13090         nanosecond speed improvements.
13091
13092 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
13093
13094         * sunplay.c (init_device): To play sounds correctly, the device
13095         apparently needs to be initialized at least once by XEmacs.  Make
13096         it so.
13097
13098 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13099
13100         * redisplay.c (add_margin_runes): Add text image glyph
13101           handling.
13102
13103 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
13104
13105         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
13106         gcc is newer than 2.5.
13107
13108 2000-04-06  Colin Rafferty  <colin@xemacs.org>
13109
13110         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
13111
13112         * fns.c (size_bit_vector):
13113         * alloc.c (size_vector):
13114         (make_vector_internal):
13115         (make_bit_vector_internal):
13116         (sweep_bit_vectors_1):
13117         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13118
13119 2000-04-06  Andy Piper  <andy@xemacs.org>
13120
13121         * gmalloc.c (malloc): undo previous change.
13122         (malloc): ditto.
13123         (free): ditto.
13124         (realloc): ditto.
13125
13126 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
13127
13128         * line-number.c (buffer_line_number): Revert to former version.
13129
13130 2000-04-06  Andy Piper  <andy@xemacs.org>
13131
13132         * gmalloc.c (malloc): add error checking.
13133         (malloc): ditto.
13134         (free): ditto.
13135         (realloc): ditto.
13136
13137         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13138         button_item_to_widget_value arg.
13139
13140         * glyphs-x.c (x_button_instantiate): add extra
13141         button_item_to_widget_value arg.
13142         (x_progress_gauge_instantiate): ditto.
13143         (x_edit_field_instantiate): ditto.
13144         (x_label_instantiate): ditto.
13145
13146         * gui-x.c (gui_items_to_widget_values_1): add extra
13147         button_item_to_widget_value arg.
13148         (button_item_to_widget_value): add extra menu_item_p arg.
13149
13150         * gui-x.h: change signature of button_item_to_widget_value.
13151
13152         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13153         button_item_to_widget_value arg.
13154
13155 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13156
13157         * buffer.h (struct buffer): auto_save_modified should be long.
13158
13159 2000-04-05  Andy Piper  <andy@xemacs.org>
13160
13161         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13162         type.
13163         (button_query_geometry): give a little more room so that athena
13164         buttons fit.
13165
13166 2000-04-05  Andy Piper  <andy@xemacs.org>
13167
13168         * faces.c (complex_vars_of_faces): The widget face should inherit
13169         the font of the gui-element face.
13170
13171 2000-04-04  Andy Piper  <andy@xemacs.org>
13172
13173         * glyphs-x.c (x_button_update): new function. unconditionally
13174         update a button's state when the instance is dirty.
13175         (image_instantiator_format_create_glyphs_x): add x_button_update.
13176         (x_widget_instantiate): remove old resize cruft.
13177
13178 2000-04-02  Andy Piper  <andy@xemacs.org>
13179
13180         * frame.c (change_frame_size_1): The introduction of gutters means
13181         that we need to allow 0 as a potential frame dimension.
13182
13183 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13184
13185         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13186         image glyph if allow_cursor.
13187         (add_hscroll_rune): Don't allow cursor to border glyph.
13188         (create_text_block): Ditto.
13189
13190         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13191         text not in buffer.
13192         (redisplay_output_layout): Call ensure_face_cachel_complete for
13193         text image glyph.
13194
13195
13196 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13197
13198         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13199
13200         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13201         not in buffer
13202
13203         * redisplay-tty.c (tty_output_display_block): Delete the routine
13204         for text image glyph
13205         * redisplay-x.c (x_output_display_block): ditto
13206         * redisplay-msw.c (mswindows_output_display_block): ditto
13207
13208 2000-02-02  Mike Alexander  <mta@arbortext.com>
13209
13210         Note: Some of these were committed by accident as part of other
13211         patches.
13212
13213         * regex.c (regex_compile): Avoid compiler warnings.
13214
13215         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13216
13217         * nt.h: Declare term_ntproc correctly.
13218
13219         * nt.c: Remove incorrect declaration of get_home_directory which
13220         is declared correctly in lisp.h.
13221
13222         * keymap.c (get_keyelt): Avoid compiler warnings.
13223         (raw_lookup_key_mapper): Avoid compiler warnings.
13224
13225         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13226
13227         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13228
13229         * filemode.c (mode_string): Avoid compiler warnings.
13230
13231         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13232         avoid warning.
13233
13234         * events-mod.h: Undef some things that winuser.h defines differently.
13235
13236         * data.c (Faset): Avoid compiler warnings.
13237
13238         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13239
13240 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13241
13242         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13243         Fall through to simple beep on error.
13244         Replace "extern" by real header file.
13245
13246         * linuxplay.c: Use nativesound.h
13247         (play_sound_data): Return error code. Be less verbose on error.
13248
13249         * sunplay.c: Use nativesound.h
13250         (play_sound_data): Return error code. Be less verbose on error.
13251
13252         * ntplay.c: Use nativesound.h
13253         (play_sound_data): Return fake error code
13254
13255         * sgiplay.c: Use nativesound.h
13256         (play_sound_data): Return error code
13257
13258         * hpplay.c: Use nativesound.h, partially implement
13259         new error code. Break compilation until finished.
13260         (play_sound_data): error code.
13261
13262         * nativesound.h (play_sound_file):
13263           (play_sound_data): Prototype in new header.
13264
13265 2000-03-31  Andy Piper  <andy@xemacs.org>
13266
13267         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13268         for toggle and radio buttons.
13269         (image_instantiator_buttons): use it.
13270
13271 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13272
13273         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13274         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13275         found. Scrollbar event probably belonged to some old config.
13276
13277 2000-03-31  Andy Piper  <andy@xemacs.org>
13278
13279         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13280         than 1.
13281         (initialize_widget_image_instance): default layout to
13282         LAYOUT_HORIZONTAL rather than 0.
13283         (widget_instantiate): reverse the item list at the end rather than
13284         every iteration.
13285         (layout_layout): re-code for the border text at the front of the
13286         item list rather than at the end.
13287         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13288         provided by the user.
13289         (widget_query_geometry): comment.
13290
13291 2000-03-30  Andy Piper  <andy@xemacs.org>
13292
13293         * glyphs-widget.c (image_instantiator_layout): allow standard
13294         widget keywords in layouts.
13295
13296         * gutter.c (output_gutter): cope with nil gutter contents.
13297
13298         * frame.c (Fset_frame_properties): add gutter docs.
13299
13300 2000-03-29  Andy Piper  <andy@xemacs.org>
13301
13302         * toolbar-msw.c (TBSTYLE_FLAT): add.
13303         (mswindows_output_toolbar): minor fiddling.
13304
13305 2000-03-29  Andy Piper  <andy@xemacs.org>
13306
13307         * gutter.c (output_gutter): force gutter size recalculation if
13308         what we are trying to display won't fit.
13309         (update_gutter_geometry): new function. A per-gutter version of
13310         update_frame_gutter_geometry.
13311         (update_frame_gutter_geometry): use it.
13312         (redraw_exposed_gutter): add extra debugging output.
13313
13314 2000-03-28  Mike Alexander  <mta@arbortext.com>
13315
13316         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13317         (pdump_file_unmap): Implement it on Windows
13318         (pdump_file_get): Save alocated handles for pdump_file_unmap
13319
13320 2000-03-28  Andy Piper  <andy@xemacs.org>
13321
13322         * gui.c (get_gui_callback): treat Quit specially.
13323
13324 2000-03-27  Andy Piper  <andy@xemacs.org>
13325
13326         * glyphs.c (image_instantiate): be careful to check in the same
13327         way we assigned.
13328
13329 2000-03-27  Didier Verna  <didier@xemacs.org>
13330
13331         * config.h.in: define the proper SMART_INCLUDE macro.
13332         handle renaming of `foo_h_path' to `foo_h_file'.
13333
13334         * database.c: ditto.
13335
13336         * emacs.c: ditto.
13337
13338         * linuxplay.c: ditto.
13339
13340         * terminfo.c: ditto.
13341
13342         * tooltalk.h: ditto.
13343
13344 2000-03-27  Andy Piper  <andy@xemacs.org>
13345
13346         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13347         gets updated whenever the face might have changed.
13348
13349 2000-03-26  Mike Alexander  <mta@arbortext.com>
13350
13351         * dumper.c (pdump_resource_free): Fix the comment.
13352
13353 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13354
13355         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13356
13357 2000-03-22  Mike Alexander  <mta@arbortext.com>
13358
13359         * dumper.c: Include Windows headers on Windows
13360         (pdump_resource_free): Add a body to the function
13361         (pdump_load): exe_name -> exe_path and add some comments.
13362
13363 2000-03-25  Mike Alexander  <mta@arbortext.com>
13364
13365         * gui.c (copy_gui_item_tree): Return a value in all cases
13366
13367 2000-03-21  Didier Verna  <didier@xemacs.org>
13368
13369         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13370         lwlib/config.h.in.
13371         (SMART_INCLUDE): new macro.
13372         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13373         the proper location.
13374
13375         * postgresql.c: use it.
13376
13377         * inline.c: ditto.
13378
13379 2000-03-24  Andy Piper  <andy@xemacs.org>
13380
13381         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13382         do this.
13383
13384 2000-03-24  Andy Piper  <andy@xemacs.org>
13385
13386         * redisplay-output.c (compare_runes): use image_instance_changed
13387         to detect changes. Do not depend on glyphs_changed, only depend on
13388         dirtiness.
13389          (redisplay_output_layout): add debug messages.
13390         (compare_runes): ditto.
13391
13392         * glyphs.h: declare new functions.
13393         (struct Lisp_Image_Instance): remove percent and associated
13394         accessors.
13395
13396         * gui.h: declare new copying functions.
13397
13398         * gui.c (copy_gui_item_tree): new function.
13399         (copy_gui_item): new function.
13400         (gui_item_id_hash): revert to standard hash.
13401         (gui_item_hash): ditto.
13402         (gui_item_hash_internal): deleted.
13403         (mark_gui_item): mark value.
13404         (gui_item_add_keyval_pair): add value.
13405         (gui_item_init): ditto.
13406         (gui_add_item_keywords_to_plist): ditto.
13407         (gui_item_equal): ditto.
13408         (syms_of_gui): add Q_value.
13409
13410         * glyphs-x.c (x_progress_gauge_update): use pending items and
13411         value for setting the state.
13412         (x_update_widget): don't set items from pending here.
13413
13414         * glyphs-widget.c (update_widget): update items here.
13415         (progress_gauge_set_property): use items for storing value. Put
13416         new value in pending items.
13417
13418         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13419         items for new value. Convert percent -> value.
13420         (mswindows_tab_control_update): don't update items here.
13421
13422         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13423         (update_subwindow): ditto.
13424         (image_instance_changed): new function. Compare hash values and
13425         past and present widget items.
13426         (image_instantiate): We more careful about where we instantiate
13427         things.
13428         (image_instantiate): add error checking.
13429
13430         * gutter.c (syms_of_gutter): use -hook.
13431
13432 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13433
13434         * console-tty.c (Fset_console_tty_input_coding_system): Use
13435         Qkeyboard.
13436         (Fset_console_tty_output_coding_system): Use Qterminal.
13437         (tty_init_console): Use Qkeyboard and Qterminal.
13438
13439 2000-03-21  Ben Wing  <ben@xemacs.org>
13440
13441         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13442         From Mike Alexander <mta@arbortext.com>.
13443
13444 2000-03-21  Ben Wing  <ben@xemacs.org>
13445
13446         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13447         process brokenness.  Proper implementation to come.
13448         * callproc.c:
13449         Rename call-process-internal to old-call-process-internal.
13450         New impl. in process.el.
13451
13452 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13453
13454         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13455
13456 2000-03-20  Andy Piper  <andy@xemacs.org>
13457
13458         * glyphs.c (full_list_hash): make hashes of the same elements in
13459         different orders return different values.
13460
13461 2000-03-20  Martin Buchholz <martin@xemacs.org>
13462
13463         * XEmacs 21.2.32 is released.
13464
13465 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13466
13467         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13468         (DFC_MALLOC_USE_CONVERTED_DATA):
13469         Add aliasing-safe casts to allow use with char* or unsigned char*
13470         lvalues.
13471
13472         * eldap.c (Fldap_open):
13473         (Fldap_search_basic):
13474         (Fldap_add):
13475         (Fldap_modify):
13476         Make C++-compilable.
13477         Make sure GCPRO'ed variables are initialized.
13478         Use temp variables to avoid repeated calls to Flength.
13479
13480 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13481
13482         * sysfile.h:
13483         Make sure PATH_MAX is always defined.
13484         Include limits.h for PATH_MAX.
13485         Deprecate use of MAXPATHLEN.
13486
13487 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13488
13489         * emacs.c: Add reinit_vars_of_fileio.
13490         * symsinit.h: Add reinit_vars_of_fileio.
13491         * fileio.c (reinit_vars_of_fileio): New.
13492         * fileio.c (Fmake_temp_name):
13493         Initialize temp_name random number from microseconds to make
13494         collisions even less likely.  Initialize always at process startup
13495         time.  (make-temp-name) used to return the same file name twice in
13496         a row when PDUMP.
13497         Random stylistic fiddling.
13498         Comment fixes.
13499
13500 2000-03-20  Andy Piper  <andy@xemacs.org>
13501
13502         * glyphs.c (image_instantiate): allow text glyphs to be
13503         instantiated in the minibuffer window.
13504
13505 2000-03-19  Andy Piper  <andy@xemacs.org>
13506
13507         * glyphs.c (image_instance_hash): be careful about which items we
13508         hash on.
13509
13510         * glyphs-widget.c (tab_control_set_property): record into pending
13511         items rather than the actual items.
13512
13513         * glyphs-x.c (x_update_widget): use pending items to update with.
13514
13515         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13516         to update with.
13517
13518         * glyphs.c (mark_image_instance): mark pending items.
13519
13520         * window.c (Fset_window_configuration): record the buffer.
13521         (Fselect_window): totally revert previous change which breaks many
13522         things.
13523
13524 2000-03-18  Andy Piper  <andy@xemacs.org>
13525
13526         * glyphs-msw.c (mswindows_tab_control_update): force selected
13527         item.
13528
13529         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13530         window domain cache, otherwise we get inconsistencies at
13531         startup. There is something fishy at startup which can lead to the
13532         minibuffer being the selected window when the gutter content is
13533         instantiated.
13534
13535         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13536         gcpros.
13537         (parse_gui_item_tree_children): ditto.
13538         (parse_gui_item_tree_item): ditto.
13539
13540         * glyphs.c (Fupdate_widget_instances): return something.
13541
13542 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13543
13544         * window.c (Fselect_window): Undo 2000-03-17 change.
13545
13546 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13547
13548         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13549         against v7.0 libraries.  Insta-coredump city until the postgres
13550         folks fix it.
13551
13552 2000-03-17  Andy Piper  <andy@xemacs.org>
13553
13554         * faces.c (complex_vars_of_faces): don't give the widget face an
13555         inherited background pixmap.
13556
13557         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13558         selected item.
13559
13560         * event-stream.c (Fdispatch_non_command_events): return something.
13561
13562         * gutter.c (output_gutter): use widget face.
13563         (clear_gutter): ditto.
13564
13565         * NEWS: adjust again.
13566
13567         * window.c (Fselect_window): make sure this runs to completion to
13568         avoid oddities with Fset_window_configuration.
13569         (Fcurrent_window_configuration): in general do not save the
13570         minibuffer as the selected window.
13571
13572         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13573
13574 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13575
13576         * emacs.c (Frunning_temacs_p): Revert previous patch.
13577         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13578
13579 2000-03-16  Andy Piper  <andy@xemacs.org>
13580
13581         * glyphs-x.c (x_tab_control_update): if no widget values then
13582         return.
13583
13584         * NEWS: update for new features.
13585
13586         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13587         synthetic event to the native system.
13588         (reinit_vars_of_event_Xt): set force_event_pending to
13589         emacs_Xt_force_event_pending.
13590
13591         * events.h (struct event_stream): add force_event_pending.
13592
13593         * specifier.c (recompute_one_cached_specifier_in_window): add
13594         comment.
13595
13596         * redisplay.c (redisplay_frame): don't call
13597         update_frame_subwindows. Reset subwindow cachels when
13598         subwindows_changed, removing this was an optimization too far.
13599
13600         * redisplay-output.c (compare_runes): reorganize so that we catch
13601         glyph changes when we want them. Set optimize_output when this
13602         would help layouts.
13603         (redisplay_output_layout): remove frame_really_changed, use
13604         optimize_output instead.
13605
13606         * redisplay-msw.c (mswindows_output_display_block): reset
13607         optimize_output after outputting a glyph.
13608         * redisplay-x.c (x_output_display_block): ditto.
13609         * redisplay-tty.c (tty_output_display_block): ditto.
13610
13611         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13612         functions.
13613         (gutter_specs_changed): do specific gutter positions.
13614         (top_gutter_specs_changed): new function. Only update the
13615         specified gutter specs.
13616         (bottom_gutter_specs_changed): ditto.
13617         (left_gutter_specs_changed): ditto.
13618         (right_gutter_specs_changed): ditto.
13619
13620         * gui.c (gui_item_hash_internal): new function, does a real hash.
13621         (gui_item_id_hash): use it.
13622         (gui_item_hash): hash the eval'ed gui_item.
13623
13624         * gui-x.c (popup_selection_callback): send an eval event to call
13625         Fupdate_widget_instances.
13626
13627         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13628         to call Fupdate_widget_instances.
13629
13630         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13631         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13632
13633         * glyphs.c: (update_frame_subwindows): deleted.
13634         (Fupdate_widget_instances): new function for updating the dirty
13635         state of widgets that might have changed.
13636         (syms_of_glyphs): add Qupdate_widget_instances.
13637         (full_list_hash): hash a list completely.
13638         (image_instance_hash): use it for items and properties.
13639
13640         * frame-msw.c (mswindows_size_frame_internal): remove unused
13641         variable.
13642
13643         * faces.h (struct face_cachel): fix comment.
13644
13645         * event-stream.c (Fdispatch_non_command_events): new
13646         function. Process non-command events, forcing an event cycle
13647         beforehand.
13648         (syms_of_event_stream): declare.
13649         (event_stream_force_event_pending): new function. Force an event
13650         on the native event queue so that an event cycle will occur next
13651         time we check.
13652
13653         * event-msw.c:
13654         (struct ntpipe_shove_stream):
13655         (mswindows_enqueue_dispatch_event):
13656         (mswindows_dequeue_dispatch_event):
13657         (mswindows_cancel_dispatch_event):
13658         (mswindows_pump_outstanding_events):
13659         (mswindows_drain_windows_queue):
13660         (mswindows_handle_paint):
13661         (mswindows_wnd_proc):
13662         (mswindows_key_to_emacs_keysym):
13663         (get_process_input_waitable):
13664         (emacs_mswindows_delete_stream_pair): re-indent file.
13665         (mswindows_need_event): do not process further fds if the windows
13666         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13667         fixes the 100% cpu problem.
13668         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13669
13670 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13671
13672         * alloc.h: New.
13673         * dumper.h: New.
13674         * dumper.c: New.
13675
13676         * emacs.c: Moved dump file searching to dumper.c.
13677         (Frunning_temacs_p): Fixed.
13678
13679         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13680         last_lrecord_type_index_assigned.
13681
13682 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13683
13684         * symsinit.h: Added reinit parameter to init_console_stream
13685         declaration.
13686
13687         * lisp.h: Added file parameter to pdump_load declaration.
13688
13689         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13690         support.  Added dump file searching.
13691
13692         * config.h.in: Added EMACS_PROGNAME.
13693
13694         * console-stream.c (init_console_stream): Fix reinitialisation
13695         when running from temacs.
13696
13697         * alloc.c (pdump): Add id support.
13698         (pdump_load): Add file parameter and signature/id support.
13699
13700         * Makefile.in.in: Add full pdump support.
13701
13702 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13703
13704         * postgresql.c: Update documentation to reflect latest code
13705         status.
13706         (print_result): Show tuple counts in printed representation when
13707         appropriate.
13708         (Fpq_put_nbytes): MULE-ize.
13709         (Fpq_get_line_async): Ditto.
13710
13711 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13712
13713         * postgresql.c (Fpq_lo_import): Fix return value.
13714         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13715
13716 2000-03-13  Ben Wing  <ben@xemacs.org>
13717
13718         * alloc.c (pdump_load):
13719         Fix compile warning under mswin.
13720
13721 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13722
13723         * postgresql.c: Mule-ization, bug fixes.
13724         Use PG_CODING to encapsulate coding system name changes.
13725         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13726         (pg-coding-system): Create.
13727
13728         (Fpq_conn_defaults): Mule-ize.
13729         (Fpq_connectdb): Mule-ize & bug fix.
13730         (Fpq_connect_start): Mule-ize.
13731         (Fpq_set_client_encoding): Mule-ize.
13732         (Fpq_finish): Document `DEAD' connection status.
13733         (Fpq_clear): Ditto.
13734         (Fpq_pgconn): Mule-ize.
13735         (Fpq_exec): Mule-ize & bug fix.
13736         (Fpq_send_query): Ditto.
13737         (Fpq_get_result): Ditto.
13738         (Fpq_res_status): Mule-ize.
13739         (Fpq_result_error_message): Mule-ize.
13740         (Fpq_ntuples): fix comments.
13741         (Fpq_fname): Mule-ize.
13742         (Fpq_fnumber): Mule-ize.
13743         (Fpq_ftype): fix comments.
13744         (Fpq_get_value): Mule-ize.
13745         (Fpq_cmd_status): Ditto.
13746         (Fpq_cmd_tuples): Ditto.
13747         (Fpq_oid_value): Ditto.
13748         (Fpq_notifies): Ditto.
13749         (Fpq_lo_import): Ditto.
13750         (Fpq_lo_export): Ditto.
13751         (Fpq_get_line): Ditto.
13752         (Fpq_put_line): Mule-ize and bug fix.
13753         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13754
13755 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13756
13757         * postgresql.c (vars_of_postgresql): Mule-ize.
13758         (Fpq_conn_defaults): Ditto.
13759
13760 2000-03-12  Ben Wing  <ben@xemacs.org>
13761
13762         * alloc.c (Fmake_byte_code):
13763         * alloc.c (debug_string_purity_print):
13764         * alloc.c (pdump_backtrace):
13765         * alloc.c (pdump_get_indirect_count):
13766         * alloc.c (pdump_register_sub):
13767         * alloc.c (pdump_register_object):
13768         * alloc.c (pdump_register_struct):
13769         * alloc.c (pdump_dump_data):
13770         * alloc.c (pdump_reloc_one):
13771         Minor cleanups.
13772
13773         * console-msw.c:
13774         * console-msw.c (GetConsoleHwnd):
13775         * console-msw.c (msw_hide_console):
13776         * console-msw.c (msw_show_console):
13777         * console-msw.c (msw_ensure_console_buffered):
13778         * console-msw.c (msw_output_console_string):
13779         * console-msw.c (console_type_create_mswindows):
13780
13781         a) Added functions to manipulate the console window for use with
13782         shell support.
13783
13784         b) Added support for writing text to the console, which is now
13785         used under Windows when xemacs is not being run non-interactively,
13786         to write text that would otherwise be destined for stdout because
13787         under these circumstances, text written to stdout tends to
13788         disappear and not be seen.
13789
13790         * console-msw.h:
13791         * event-Xt.c:
13792         * event-Xt.c (x_event_to_emacs_event):
13793         * event-Xt.c (describe_event_window):
13794         * events-mod.h (XEMACS_MOD_CONTROL):
13795         * events.c:
13796         * events.c (Fmake_event):
13797         * events.c (character_to_event):
13798         * events.c (event_to_character):
13799         * events.c (format_event_object):
13800         * events.c (Fevent_modifiers):
13801         * events.h:
13802         * events.h (struct key_data):
13803         * events.h (struct button_data):
13804         * events.h (struct misc_user_data):
13805         * frame-x.c (Fcde_start_drag_internal):
13806         * frame-x.c (Foffix_start_drag_internal):
13807         * gpmevent.c (Freceive_gpm_event):
13808         * keymap.c:
13809         * keymap.c (bucky_sym_to_bucky_bit):
13810         * keymap.c (control_meta_superify):
13811         * keymap.c (make_key_description):
13812         * keymap.c (keymap_lookup_directly):
13813         * keymap.c (create_bucky_submap):
13814         * keymap.c (keymap_store):
13815         * keymap.c (define_key_check_and_coerce_keysym):
13816         * keymap.c (define_key_parser):
13817         * keymap.c (define_key_alternate_name):
13818         * keymap.c (Fdefine_key):
13819         * keymap.c (raw_lookup_key_mapper):
13820         * keymap.c (struct map_keymap_unsorted_closure):
13821         * keymap.c (map_keymap_unsorted_mapper):
13822         * keymap.c (map_keymap_sort_predicate):
13823         * keymap.c (map_keymap_sorted):
13824         * keymap.c (accessible_keymaps_mapper_1):
13825         * keymap.c (where_is_recursive_mapper):
13826         * keymap.c (describe_map_mapper):
13827         * keymap.c (describe_map_sort_predicate):
13828         * keymap.c (describe_map):
13829         * keymap.c (complex_vars_of_keymap):
13830         And a number of other files, the key modifier preprocessor
13831         constants that xemacs uses have names that conflict with constants
13832         defined under MS Windows for other purposes, so they were renamed
13833         to begin with the prefix XEMACS_. The variables that hold such
13834         modifiers were changed to consistently be of type int to fix
13835         various compile warnings.
13836
13837         * console.c (complex_vars_of_console):
13838         * device.c:
13839         * device-msw.c:
13840         * device-msw.c (mswindows_finish_init_device):
13841         * device-msw.c (msw_get_workspace_coords):
13842         * device-msw.c (mswindows_device_system_metrics):
13843         and various other files, added support for a new
13844         device property called offset-workspace which returns the position
13845         of the upper left corner of the workspace area and goes along with
13846         the existing size-workspace property.
13847
13848         * dialog-msw.c:
13849         * dialog-msw.c (push_bufbyte_string_as_unicode):
13850         * dialog-msw.c (mswindows_popup_dialog_box):
13851         Added support for XEmacs-style accelerator specifications in
13852         button text.  Note: I didn't add support for this under X Windows,
13853         and somebody needs to do this.
13854
13855         * dialog.c:
13856         * dialog.c (Fpopup_dialog_box):
13857         Documented the support for accelerators that was just mentioned.
13858
13859         editfns.c (get_home_directory): Changed behavior under Windows
13860         when HOME not defined; former behavior was irretrievably broken.
13861
13862         * emacs.c:
13863         * emacs.c (main_1):
13864         * emacs.c (main):
13865         * minibuf.c (clear_echo_area_internal):
13866         * minibuf.c (echo_area_append):
13867         * print.c:
13868         * print.c (std_handle_out_external):
13869         * print.c (std_handle_out_va):
13870         * print.c (fatal):
13871         * print.c (write_string_to_stdio_stream):
13872         * print.c (output_string):
13873         * print.c (debug_print):
13874         * print.c (debug_backtrace):
13875         * print.c (debug_short_backtrace):
13876         Cleaned up the code that prints text to stdout so that this can be
13877         changed to output into a console window instead under MS Windows,
13878         as described above.
13879
13880         * eval.c:
13881         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
13882         * eval.c (internal_catch):
13883         * eval.c (unwind_to_catch):
13884         * eval.c (throw_or_bomb_out):
13885         * eval.c (condition_case_1):
13886         * eval.c (signal_1):
13887         * eval.c (check_error_state_sanity):
13888         * eval.c (call_with_suspended_errors_1):
13889         * eval.c (call_with_suspended_errors):
13890         * eval.c (reinit_vars_of_eval):
13891         Added code to catch throw loops and check for a pesky bug that may
13892         be gone now.
13893
13894         * event-msw.c:
13895         * event-msw.c (key_needs_default_processing_p):
13896         * event-msw.c (mswindows_wnd_proc):
13897         * event-msw.c (mswindows_modifier_state):
13898         * event-msw.c (emacs_mswindows_quit_p):
13899         * event-msw.c (vars_of_event_mswindows):
13900         a) Added support for using the alt key to select menu items as is
13901         standard under MS Windows.  This is controlled using the variable
13902         menu-accelerator-enabled, just like under X Windows.  There is an
13903         option on the options menu to turn this support on.  I really
13904         think that it should be on by default under Windows, but I'm not
13905         going to make this change yet.
13906
13907         b)  Added support for dynamic display size changes under Windows.
13908
13909         * event-stream.c:
13910         * event-stream.c (maybe_echo_keys):
13911         * event-stream.c (Fnext_event):
13912         * event-stream.c (command_builder_find_leaf):
13913         * event-stream.c (lookup_command_event):
13914         * event-stream.c (execute_command_event):
13915         * event-stream.c (pre_command_hook):
13916         * event-stream.c (post_command_hook):
13917         * event-stream.c (syms_of_event_stream):
13918         * event-stream.c (vars_of_event_stream):
13919         * event-stream.c (complex_vars_of_event_stream):
13920         * events.h (struct command_builder):
13921
13922         a) Tried to clean up a little bit the horribly written x-specific
13923         accelerator code that crept into this file.  I moved this code
13924         into menubar-x.c where it belongs. I also needed to move the
13925         command builder structure into the file events.h because it is
13926         accessed directly by this accelerator code.  What I didn't do, but
13927         which should be done at some point, is to properly abstract this
13928         code using device methods instead of the kludgy way that it
13929         currently hooks into the event code.
13930
13931         b) Added the lisp variables this-command-properties and
13932         last-command- properties, which should be used to synchronize two
13933         adjacent commands in preference to playing games with the variable
13934         this-command, which is typically what happens.
13935
13936         c) Added some slightly nasty code to hook into the lisp support
13937         for shifted- motion-key selection.  This is actually necessary for
13938         somewhat complicated reasons, which are described in
13939         simple.el. (NB: I think the proper thing would be to have the code
13940         that calls the pre and post command hooks also call out to generic
13941         lisp functions in simple.el, where all built-in stuff could be
13942         added.  I will think about this more.)
13943
13944         * event-unixoid.c (poll_fds_for_input):
13945         * lread.c (readchar):
13946         * redisplay-tty.c (tty_clear_frame):
13947         * redisplay-x.c (x_get_gc):
13948         * signal.c (interrupt_signal):
13949         And a whole bunch of other files: fixed up places that printed
13950         directly to stderr to instead call the function stderr_out so that
13951         the changes I made under Windows work correctly.
13952
13953         * filemode.c (mode_string):
13954         Warning fixes.
13955
13956         * frame-msw.c:
13957         * frame-msw.c (mswindows_size_frame_internal):
13958         Fixed the computation of frame size and position to keep the frame
13959         within the workspace area, rather than within the physical
13960         dimensions of the screen, so that the frame doesn't overlap window
13961         manager decorations, such as the start menu and toolbar, typically
13962         at the bottom of the screen.
13963
13964         * frame.c (vars_of_frame):
13965         Changed the default frame title format under MS Windows to consist
13966         of buffername-XEmacs, which is standard under MS Windows.  I think
13967         it might be a good idea to change this everywhere because I think
13968         it is superior to the current frame title format, but this is the
13969         kind of change that is likely to cause some people to get annoyed,
13970         so I'm not making it.
13971
13972         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
13973
13974         * gui-msw.c (mswindows_handle_gui_wm_command):
13975         Fixed compile warnings.
13976
13977         * gui-x.c:
13978         * gui-x.c (strdup_and_add_accel):
13979         * gui-x.c (button_item_to_widget_value):
13980         * gui-x.h:
13981         Added code to automatically put an accelerator onto the beginning
13982         of menu items that don't have one as is now the standard, and is
13983         described more later.  Also fixed things so that the menu item
13984         name can be an evaluated expression, again a new standard.
13985
13986         * gui.c:
13987         * gui.c (gui_item_add_keyval_pair):
13988         * gui.c (make_gui_item_from_keywords_internal):
13989         * gui.c (gui_add_item_keywords_to_plist):
13990         * gui.c (gui_item_accelerator):
13991         * gui.c (gui_name_accelerator):
13992         * gui.c (gui_item_included_p):
13993         * gui.c (gui_item_display_flush_left):
13994         * gui.c (gui_item_display_flush_right):
13995         * gui.c (parse_gui_item_tree_item):
13996         * gui.c (parse_gui_item_tree_children):
13997         * gui.c (parse_gui_item_tree_list):
13998         Mule-ized.  Cleanup.  GCPRO addition.
13999
14000         * line-number.c (buffer_line_number):
14001         * lisp.h:
14002         * lisp.h (EMACS_INT_MAX):
14003         Added the manifest constant EMACS_INT_MIN corresponding to the
14004         existing constant EMACS_INT_MAX.  This is partially to fix compile
14005         warnings under Windows, and partly for cleanliness.
14006
14007         * menubar-msw.c:
14008         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
14009         * menubar-msw.c (msw_translate_menu_or_dialog_item):
14010         * menubar-msw.c (displayable_menu_item):
14011         * menubar-msw.c (populate_menu_add_item):
14012         * menubar-msw.c (populate_or_checksum_helper):
14013         * menubar-msw.c (populate_menu):
14014         * menubar-msw.c (update_frame_menubar_maybe):
14015         * menubar-msw.c (prune_menubar):
14016         * menubar-msw.c (msw_char_is_accelerator):
14017         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
14018         * menubar-msw.c (mswindows_handle_wm_command):
14019         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
14020         * menubar-msw.c (mswindows_handle_wm_initmenu):
14021         * menubar-msw.c (mswindows_update_frame_menubars):
14022         * menubar-msw.c (mswindows_free_frame_menubars):
14023         * menubar-msw.c (mswindows_popup_menu):
14024         Fixed a bug in handling accelerators where an extra character
14025         would be displayed in the menu item.  Also generalized the
14026         function displayable_menu_item because it is now used by the
14027         dialog box code as well.  And finally, added code in the functions
14028         that create the menubar to extract a list of accelerators for the
14029         top level menubar, which is used in the event code to determine
14030         whether a particular alt-key combination should be used to invoke
14031         a menu item, or should be passed through to access the standard
14032         XEmacs keymap binding for this key combination.
14033
14034         Much needed GCPROing.
14035
14036         * menubar-x.c:
14037         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14038         * menubar-x.c (menu_item_descriptor_to_widget_value):
14039         * menubar-x.c (restore_in_menu_callback):
14040         * menubar-x.c (x_popup_menu):
14041         * menubar-x.c (menu_move_up):
14042         * menubar-x.c (menu_move_down):
14043         * menubar-x.c (menu_move_left):
14044         * menubar-x.c (menu_move_right):
14045         * menubar-x.c (menu_select_item):
14046         * menubar-x.c (command_builder_operate_menu_accelerator):
14047         * menubar-x.c (menu_accelerator_junk_on_error):
14048         * menubar-x.c (command_builder_find_menu_accelerator):
14049         * menubar-x.c (Faccelerate_menu):
14050         * menubar.h:
14051         Moved a whole bunch of code here that was previously in
14052         event-stream.c as described above.  There is also code connected
14053         to the new standard of adding an accelerator to the beginning of
14054         menu items that don't have one as described above and below.
14055
14056         * menubar.c:
14057         * menubar.c (menu_parse_submenu_keywords):
14058         * menubar.c (Fmenu_find_real_submenu):
14059         * menubar.c (Fnormalize_menu_item_name):
14060         * menubar.c (syms_of_menubar):
14061         * menubar.c (vars_of_menubar):
14062         * menubar.c (complex_vars_of_menubar):
14063
14064         a) Cleaned up a bunch of documentation and improved it.
14065
14066         b) XEmacs now automatically adds an accelerator onto the beginning
14067         of any menu items that don't have one.  I did this because there
14068         will inevitably be some menu items on the main menubar that don't
14069         have accelerators on them because the package that adds that
14070         particular menu item hasn't yet been fixed up to have accelerators
14071         in them and it looked rather strange to have some items with and
14072         some items without accelerators, especially since even in items
14073         without accelerators, you can, at least under windows, still
14074         access the item through an accelerator corresponding to the first
14075         character in the item's name.  If people don't like this behavior,
14076         I can add a variable to turn it off optionally, but I'm not sure
14077         this is a good idea because we really do need to have accelerators
14078         on all of the menu items, and if a package doesn't like the
14079         accelerators being put on the first character, then it should put
14080         the accelerators where they belong.
14081
14082         c) I made a behavior change, which is that the descriptor that
14083         specifies the text of the menu item, which formerly was just a
14084         string, can now also be an evaluated expression.  This makes this
14085         descriptor parallel with all of the others, which could also be
14086         evaluated expressions.  This also obviates the need for the
14087         keyword :label, which was previously listed in the documentation
14088         as unimplemented, and which was for the same purpose.
14089
14090         d) GCPROing.
14091
14092         * ntproc.c:
14093         * ntproc.c (new_child):
14094         * ntproc.c (sys_spawnve):
14095         * ntproc.c (find_child_console):
14096         * ntproc.c (sys_kill):
14097         Fixed compile warnings.  By the way, this file should really go
14098         away entirely, and this will happen as soon as Kirill makes his
14099         final round of process cleanups, which affect the function
14100         call-process.
14101
14102         * process-nt.c:
14103         * process-nt.c (struct nt_process_data):
14104         * process-nt.c (find_process_from_pid):
14105         * process-nt.c (send_signal_the_nt_way):
14106         * process-nt.c (enable_child_signals):
14107         * process-nt.c (find_child_console):
14108         * process-nt.c (send_signal_the_95_way):
14109         * process-nt.c (nt_finalize_process_data):
14110         * process-nt.c (ensure_console_window_exists):
14111         * process-nt.c (nt_create_process):
14112         * process-nt.c (nt_kill_child_process):
14113         * process-nt.c (nt_kill_process_by_pid):
14114         * process-nt.c (nt_open_network_stream):
14115         * process-nt.c (vars_of_process_nt):
14116         Copied over code from Emacs 20.5 to correctly send signals to sub-
14117         processes under Windows 95.  Also added code to automatically
14118         create and hide console window when a sub-process is created under
14119         Windows 95, which obviates the need for the separate runemacs.exe
14120         executable, and finally implemented some variables that were
14121         implemented in Emacs 20.5, but previously not in XEmacs.  These
14122         include mswindows- start-process-share-console and
14123         mswindows-start-process-inherit-error-mode. (Both of these only
14124         apply to Windows 95.)
14125
14126         * regex.c (regex_compile): Fixed a compile warning.
14127
14128         * select-msw.c:
14129         * select-msw.c (mswindows_own_selection):
14130         * select-msw.c (mswindows_get_foreign_selection):
14131         * select-msw.c (mswindows_disown_selection):
14132         * select-msw.c (console_type_create_select_mswindows):
14133         * select-msw.c (syms_of_select_mswindows):
14134         Cleaned up the file and implemented the device method
14135         selection_exists_p, which had accidentally been left out.  Also
14136         removed four lisp functions that were remnants from before the
14137         time when the selection code was properly device abstracted.
14138         These functions are no longer needed because there are generic
14139         equivalents, and because they were added recently and don't exist
14140         in FSF Emacs, I don't think there's any problem with just deleting
14141         them.
14142
14143         * sysdep.c:
14144         * sysdep.c (sys_subshell):
14145         Fixed a compile warning, although in this case there's probably
14146         something wrong with this code, and it ought to be looked into
14147         more thoroughly by somebody who understands it.
14148
14149         * window.c:
14150         * window.c (Fwindow_text_area_height):
14151         * window.c (Fwindow_width):
14152         * window.c (Fwindow_full_width):
14153         * window.c (Fwindow_pixel_width):
14154         * window.c (debug_print_window):
14155         * window.c (syms_of_window):
14156         Added functions window-text-area-height and window-full-width,
14157         which are functions for returning various width and height
14158         characteristics of a window. (One of these functions is necessary
14159         for making the file dialog box work correctly, and the other one
14160         was added for completeness.)  Also added a table to the
14161         documentation for window-height which describes the entire scheme
14162         for accessing width and height characteristics of a window.
14163
14164 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14165
14166         * nt.c (fstat): Added a comment for another problem with
14167         non-encapsulated [f]stat(), reported by Adrian Aichner
14168         <aichner@ecf.teradyne.com>.
14169
14170 2000-03-11  Andy Piper  <andy@xemacs.org>
14171
14172         * window.c (make_dummy_parent): initialize subwindow instance
14173         cache.
14174         (Fset_window_configuration): zero extent_modiff.
14175
14176 2000-03-10  Andy Piper  <andy@xemacs.org>
14177
14178         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14179         more changes can be triggered.
14180         (Fredisplay_frame): ditto.
14181         (Fredraw_device): ditto.
14182         (Fredisplay_device): ditto.
14183         (redisplay_frame): make non-static.
14184         (redisplay_frame): call update_frame_gutter_geometry outside of
14185         display proper.
14186
14187         * gutter.h: declare update_frame_gutter_geometry.
14188
14189         * redisplay.h: declare redisplay_frame.
14190
14191         * gutter.c (update_frame_gutter_geometry): move geometry changes
14192         in update_frame_gutters here. Geometry changes can only occur
14193         outside of redisplay.
14194         (update_frame_gutters): remove geometry change code.
14195         (Fredisplay_gutter_area): make sure that we are in display when we
14196         update and that we have flushed any size changes.
14197
14198 2000-03-11  Andy Piper  <andy@xemacs.org>
14199
14200         * alloc.c (pdump_dump_data): remove i & count shadows.
14201
14202 2000-02-27  Mike Alexander  <mta@arbortext.com>
14203
14204         * sysdep.h: Declare pdump_read_file
14205
14206         * sysdep.c (pdump_read_file): New function
14207
14208         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14209         dump data
14210
14211 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14212
14213         * lrecord.h: add `lrecord_type_pgsetenv'.
14214
14215 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14216
14217         * symsinit.h: declare (vars|syms)_of* functions.
14218         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14219
14220 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14221
14222         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14223
14224         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14225         GCCs.
14226
14227         * emacs.c (main_1): Call postgres initialization code.
14228
14229         * postgresql.h: New file.  PostgreSQL RDBMS support.
14230         * postgresql.c: New file.
14231
14232 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14233
14234         * redisplay-output.c (redisplay_output_display_block): Disable
14235         redundant code.
14236
14237 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14238
14239         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14240         (Fcanna_henkan_next): Ditto.
14241         (Fcanna_bunsetu_henkou): Ditto.
14242         (Fcanna_henkan_kakutei): Ditto.
14243         (Fcanna_henkan_end): Ditto.
14244         (Fcanna_henkan_quit): Ditto.
14245         (Fcanna_henkan_next): Set retun value correctly.
14246         (c2mu): Use unsigned char instead of signed char.
14247
14248 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14249
14250         * emacs.c (main_1): Always call syms_of_gui.
14251         * inline.c: include gui.h
14252
14253 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14254
14255         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14256         converted to Lisp_Object.
14257         (Qtop_bottom): New variable.
14258         (syms_of_redisplay): Initialize it.
14259         * redisplay.h (Vvisible_bell): Ditto.
14260         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14261         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14262         only flash top and bottom.
14263
14264 2000-03-08  Andy Piper  <andy@xemacs.org>
14265
14266         * buffer.c (Frename_buffer): record new buffer name the right way.
14267
14268 2000-03-08  Andy Piper  <andy@xemacs.org>
14269
14270         * glyphs.c (update_subwindow): increase hash depth so that widget
14271         items get picked up properly.
14272
14273         * redisplay-output.c (compare_runes): increase hash depth so that
14274         widget items get picked up properly.
14275
14276 2000-03-08  Andy Piper  <andy@xemacs.org>
14277
14278         * gutter.c (output_gutter): add some debug.
14279
14280         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14281         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14282         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14283
14284         * redisplay-output.c (compare_runes): use display_hash to
14285         determine if glyphs really are not the same.
14286
14287         * glyphs.c (update_subwindow): check display_hash to see if
14288         anything really needs to be updated. If not then do
14289         nothing. Record the display_hash after updating.
14290         (image_instance_equal): compare the image_instance face also.
14291
14292 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14293
14294         * redisplay.h: Fix comment style.
14295
14296 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14297
14298         * consle-msw.h (struct mswindows_frame):
14299         Added new member paint_pending to indicate whether a WM_PAINT
14300         magic event has been queued for this frame.
14301
14302         * event-msw.c (mswindows_drain_windows_queue):
14303         Don't queue a WM_PAINT magic event if one is already queued.
14304         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14305
14306         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14307
14308 2000-03-07  Didier Verna  <didier@xemacs.org>
14309
14310         * dired.c: #include `regex.h' after `sysfile.h'.
14311
14312 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14313
14314         * sound.c (init_nas_sound): Fix compiler warning.
14315
14316         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14317         (FREE_STRUCT_P):
14318         (MARK_STRUCT_AS_FREE):
14319         (MARK_STRUCT_AS_NOT_FREE):
14320         Make `gcc -fstrict-aliasing' work properly.
14321
14322 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14323
14324         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14325         (mswindows_delete_device): Call CoUnnitialize().
14326
14327         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14328
14329 2000-02-25    <CraigL@DyCon.com>
14330
14331         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14332         <errno.h>.
14333
14334         * sysdep.c: This extern declaration for environ prevents MinGW
14335         from finding the variable in CRTDLL.DLL.
14336
14337         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14338         windows headers.
14339         (SHGFI_EXETYPE): ..
14340         (WM_MOUSEWHEEL): ..
14341         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14342         definitions.
14343         (MMRESULT): Removed, now defined in cygwin's windows headers.
14344         (TIMECAPS): ..
14345         (uid_t,gid_t,pid_t,ssize_t): ..
14346         (_timeb): Removed, MinGW defines both _timeb and timeb.
14347         (HAVE_H_ERRNO): Added.
14348         (HAVE_TZNAME): Added, configure is not detecting this.
14349
14350 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14351
14352         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14353         * syntax.c (syntax_match): Use it.
14354
14355         * cmds.c: Import auto-fill-chars from FSF Emacs.
14356         (Vauto_fill_chars): New variables.
14357         (internal_self_insert): Check Vauto_fill_chars.
14358         (vars_of_cmds):
14359         Declare auto-fill-chars as a Lisp variable and initialize it.
14360
14361 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14362
14363         * fileio.c (Fmake_symbolic_link):
14364         (Ffile_symlink_p):
14365         Run handlers even if local machine doesn't have symlinks.
14366
14367 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14368
14369         * event-msw.c (mswindows_drain_windows_queue):
14370         Don't generate paint magic events for non-XEmacs frames.
14371
14372 2000-03-05  Andy Piper  <andy@xemacs.org>
14373
14374         * redisplay.c (redisplay_frame): generate_displayable_area and
14375         friends assumes that we are not in GC, we therefore have to make
14376         sure that this doesn't happen.
14377
14378         * gutter.c (calculate_gutter_size): generate_displayable_area
14379         assumes that we are not in GC, we therefore have to make sure that
14380         this doesn't happen.
14381
14382 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14383
14384         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14385
14386 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14387
14388         * redisplay.c (regenerate_window): Make sure we set a sane value
14389         for end_pos even if we jump out of the loop.
14390         (regenerate_window): Answer Ben's question :-).
14391         (start_end_of_last_line): Add may_error argument.
14392         (start_of_last_line):
14393         (end_of_last_line): Pass may_error = 0.
14394         (end_of_last_line_may_error): New function.
14395         (pixel_to_glyph_translation): Use it, so we don't crash in
14396         event_to_glyph.
14397
14398 2000-03-04  Andy Piper  <andy@xemacs.org>
14399
14400         * window.h (struct window): add gutter_extent_modiff.
14401
14402         * window.c (allocate_window): zero out gutter_extent_modiff.
14403
14404         * redisplay.h: declare sync_display_line_structs.
14405
14406         * redisplay.c (add_glyph_rune): add a better comment.
14407
14408         * redisplay-output.c (sync_display_line_structs): made non-static.
14409         (compare_runes): remove unneccesary glyph cachel access.
14410
14411         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14412
14413         * gutter.c (output_gutter): don't output the gutter if extent
14414         changes only involve extents in buffers. use 4 sets of display
14415         lines.
14416         (gutter_extent_signal_changed_region_maybe): new function. Mark
14417         extents in gutters as changed.
14418         (update_frame_gutters): use 4 sets of display lines.
14419         (reset_gutter_display_lines): ditto.
14420         (free_frame_gutters): ditto.
14421         (redraw_exposed_gutter): force output of gutters.
14422
14423         * frame.h (struct frame): add 4 sets of gutter display lines.
14424
14425         * extents.c: (extent_changed_for_redisplay): signal changes to
14426         extents in strings in the gutter as well as extents in buffers.
14427
14428 2000-03-02  Andy Piper  <andy@xemacs.org>
14429
14430         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14431
14432         * frame.c (Fmake_frame): make sure the gutters get initialized
14433         after the frame is visible.
14434         (set_frame_selected_window): re-arrange compilation macros a
14435         little.
14436         (change_frame_size_1): mark gutters changed.
14437
14438         * device.c (Fset_device_class): mark gutters changed.
14439
14440 2000-03-01  Andy Piper  <andy@xemacs.org>
14441
14442         * window.c (window_top_frame_gutter_height): deleted.
14443         (window_bottom_frame_gutter_height): ditto.
14444         (window_left_frame_gutter_height): ditto.
14445         (window_right_frame_gutter_height): ditto.
14446         (window_top_gutter_height): don't use them.
14447         (window_bottom_gutter_height): ditto.
14448         (window_left_gutter_width): ditto.
14449         (window_right_gutter_width): ditto.
14450         (Fsplit_window): ditto.
14451         (Fwindow_pixel_edges): don't use border dimensions here.
14452
14453         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14454         (update_scrollbar_instance): ditto.
14455
14456         * redisplay.c (generate_modeline): don't take gutters into account.
14457         (generate_modeline): ditto.
14458         (redisplay_frame): small gutter display optimization.
14459
14460         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14461
14462         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14463         gutters into account.
14464
14465         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14466         for window position and type.
14467
14468         * gutter.c (get_gutter_coords): fix for frame gutters.
14469         (update_frame_gutters): update frame geometry if the gutters have
14470         changed.
14471         (init_frame_gutters): record current gutter geometries.
14472
14473         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14474         var.
14475         (mswindows_widget_instantiate): ditto.
14476
14477         * frame.h (struct frame): add current_gutter_bounds.
14478
14479         * frame.c (change_frame_size_1): position window and minibuffer
14480         appropriately taking into account the frame gutters.
14481
14482         * frame-x.c: (x_initialize_frame_size): take into account the
14483         frame gutters.
14484
14485 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14486
14487         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14488
14489 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14490
14491         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14492
14493 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14494
14495         * file-coding.c (reset_decoding_stream): Clear previous
14496         detection state when autodetect.
14497
14498 2000-02-29  Didier Verna  <didier@xemacs.org>
14499
14500         * extents.c (set_extent_glyph_1): don't require extents to be
14501         attached.
14502
14503 2000-02-27  Andy Piper  <andy@xemacs.org>
14504
14505         * gutter.c (Fset_default_gutter_position): don't default left and
14506         right gutter visibility to t.
14507         (Fset_default_gutter_position): run
14508         default-gutter-position-changed-hook.
14509         (syms_of_gutter): add default-gutter-position-changed-hook.
14510
14511 2000-02-26  Andy Piper  <andy@xemacs.org>
14512
14513         * specifier.c (Fmake_specifier): add gutter references.
14514
14515         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14516
14517         * lisp.h: declare Fvalid_plist_p.
14518
14519         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14520         as changed.
14521         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14522         well as its visibility so that it gets reconstructed.
14523         (construct_window_gutter_spec): new function. Construct a string
14524         to be displayed in the gutter from a plist of strings. Take care
14525         to only use elements that are declared as visible.
14526         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14527         WINDOW_GUTTER.
14528         (gutter_validate): allow plists of strings in the specifier.
14529         (gutter_specs_changed): construct the real_gutter from the gutter
14530         specs using construct_window_gutter_spec.
14531         (gutter_visible_validate): gutter-visible is a new specifier type.
14532         (Fgutter_visible_specifier_p): new function for the new specifier.
14533         (syms_of_gutter): declare gutter-visible and
14534         Fgutter_visible_specifier_p.
14535         (specifier_type_create_gutter): intitalize new gutter-visible
14536         specifier.
14537         (reinit_specifier_type_create_gutter): ditto.
14538         (specifier_vars_of_gutter): use new specifier type for gutter
14539         visibility.
14540         (init_frame_gutters): construct real_gutter correctly.
14541         (Fgutter_specifier_p): beef up documentation.
14542         (Fgutter_size_specifier_p): ditto.
14543
14544         * winslots.h: add real_gutter slots.
14545
14546 2000-02-25  Andy Piper  <andy@xemacs.org>
14547
14548         * device-msw.c: Be kind to older cygwin versions. From Raymond
14549         Toy <toy@rtp.ericsson.se>.
14550
14551         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14552         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14553
14554 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14555
14556         * elhash.c (MARK_OBJ): Practice macro hygiene.
14557
14558 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14559
14560         * miscplay.c: s/__inline__/inline/g;
14561         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14562         (get_device_compdc): INLINE ==> static inline
14563         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14564         find -name '*.h' | \
14565         xargs global-replace \
14566         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14567
14568 2000-02-25  Andy Piper  <andy@xemacs.org>
14569
14570         * window.c (window_top_frame_gutter_height): new function.
14571         (window_top_window_gutter_height): ditto.
14572         (window_top_gutter_height): use them.
14573         (window_bottom_frame_gutter_height): new function.
14574         (window_bottom_window_gutter_height): ditto.
14575         (window_bottom_gutter_height): use them.
14576         (window_left_window_gutter_width): new function.
14577         (window_left_frame_gutter_width): ditto.
14578         (window_left_gutter_width): use them.
14579         (window_right_window_gutter_width): new function.
14580         (window_right_frame_gutter_width): ditto.
14581         (window_right_gutter_width): use them.
14582         (window_pixel_height): new function. calulate window pixel height
14583         with frame gutter involvement.
14584         (Fsplit_window): calculate new sizes taking frame gutters into
14585         account.
14586         (window_char_height_to_pixel_height): don't include frame gutters.
14587         (window_char_height): use window_pixel_height.
14588         (window_pixheight): rename from window_pixel_height.
14589         (change_window_height): use it.
14590         (window_pixel_height_to_char_height): don't include frame gutters.
14591         (window_char_width_to_pixel_width): ditto.
14592
14593 2000-02-25  Andy Piper  <andy@xemacs.org>
14594
14595         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14596         if it is.
14597
14598 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14599
14600         * alloc.c (staticpro):
14601         (staticpro_nodump):
14602         (dumpstruct):
14603         (dumpopaque):
14604         (pdump_wire):
14605         (pdump_wire_list):
14606         (compact_string_chars):
14607         (pdump_dump_wired):
14608         Convert:  if (foo) abort();  ==>  assert (! foo);
14609
14610         * eldap.c (Fldap_search_basic):
14611         (Fldap_add):
14612         (Fldap_modify):
14613         (Fldap_delete):
14614         Fix compiler warnings, and possible crashes if (random) return
14615         value were to be used.
14616
14617 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14618
14619         * device-msw.c: Workaround ResetDC failure.
14620
14621         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14622         applying a devmode.
14623
14624         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14625         (mswindows_text_width): Do not start printer page.
14626
14627         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14628
14629         * glyphs-msw.c: Added image methods to msprinter console and
14630         msprinter-specific image instantiation.
14631
14632 2000-02-20  Mike Alexander  <mta@arbortext.com>
14633
14634         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14635         to avoid crashes when selection-sets-clipboard is on
14636         (mswindows_own_selection): ditto
14637
14638 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14639
14640         * glyphs-msw.c:
14641         * redisplay-msw.c (get_frame_dc):
14642         (get_frame_compdc):
14643         * console-msw.h:
14644         * device-msw.c (mswindows_init_device):
14645         (mswindows_delete_device):
14646         (msprinter_init_device):
14647         (msprinter_delete_device):
14648         * frame-msw.c (mswindows_init_frame_1):
14649         (mswindows_delete_frame):
14650         (msprinter_init_frame_3):
14651         (msprinter_delete_frame): Move compatible DC to device object from
14652         frame object, for both mswindows and msprinter. Only one at a time
14653         is needed, it is a real waste to have one per frame!
14654
14655 2000-02-23  Andy Piper  <andy@xemacs.org>
14656
14657         * glyphs.c: add dynamic width and height elements.
14658         (image_instance_equal): ditto.
14659
14660         * glyphs-widget.c (widget_query_geometry): calculate width and
14661         height dynamically if required.
14662         (initialize_widget_image_instance): initialize dynamic dimensions.
14663         (widget_instantiate): pick-up dynamic dimensions.
14664
14665         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14666         dynamic determination. Add appropriate macros.
14667
14668         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14669         dimensions safe.
14670         (WINDOW_GUTTER_SIZE): ditto.
14671         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14672
14673         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14674         inline.
14675         (get_frame_dc): ditto.
14676
14677         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14678         here.
14679
14680 2000-02-23  Martin Buchholz <martin@xemacs.org>
14681
14682         * XEmacs 21.2.31 is released.
14683
14684 2000-02-22  Ben Wing <ben@xemacs.org>
14685
14686         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14687
14688 2000-02-22  Andy Piper  <andy@xemacs.org>
14689
14690         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14691
14692 2000-02-21  Mike Sperber <mike@xemacs.org>
14693
14694         * .dbxrc:
14695         * .gdbinit:
14696         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14697         variables.
14698
14699 2000-02-21  Mike Sperber <mike@xemacs.org>
14700
14701         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14702
14703 2000-02-21  Martin Buchholz <martin@xemacs.org>
14704
14705         * XEmacs 21.2.30 is released.
14706
14707 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14708
14709         Performance hacking.
14710         * *.c (syms_of_*):
14711         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14712         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14713         * emacs.c (main_1):
14714         * lisp.h (DEFUN):
14715         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14716         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14717         * symeval.h (DEFVAR_SYMVAL_FWD):
14718         * symbols.c (guts_of_unbound_marker):
14719         Make all c_readonly objects also lisp_readonly and marked for life.
14720         * lrecord.h (struct lrecord_implementation):
14721         Document flags better.
14722         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14723         * lrecord.h (DECLARE_LRECORD):
14724         * lrecord.h (XSETRECORD):
14725         * lrecord.h (RECORDP):
14726         * lrecord.h (RECORD_TYPEP):
14727         * lrecord.h (RECORD_MARKER): New.
14728         * lrecord.h (error_check_*):
14729         * lrecord.h (CONCHECK_NONRECORD):
14730         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14731         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14732         * lrecord.h (set_lheader_implementation):
14733         * lrecord.h (enum lrecord_type): New.
14734         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14735         * alloc.c (disksave_object_finalization_1):
14736         * alloc.c (mark_object):
14737         * alloc.c (lrecord_type_index):
14738         * alloc.c (tick_lcrecord_stats):
14739         * alloc.c (Fgarbage_collect):
14740         * alloc.c (init_alloc_once_early):
14741         * alloc.c (pdump_load):
14742         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14743         * alloc.c (lrecord_type_index): Delete.
14744         Make lisp object type indexes be constant.
14745           Makes (byte-compile) 5% faster.
14746         Put all marker functions into their own array.
14747           Makes (garbage-collect) 5% faster.
14748         Optimize SYMBOL_VALUE_MAGIC_P.
14749           Makes (byte-compile) 2-3% faster.
14750         * config.h.in (gc_checking_assert): New.
14751         * alloc.c: Use gc_checking_assert().
14752         * .dbxrc: Make compatible with new object type implementation.
14753         * .gdbinit: Make compatible with new object type implementation.
14754         * alloc.c: Delete all symbols defined only for debugging, such as
14755         Lisp_Type_Vector and lrecord_charset.
14756
14757 2000-02-21  Andy Piper  <andy@xemacs.org>
14758
14759         * gui-msw.c (Fmswindows_shell_execute): fix file location
14760         problems.
14761
14762         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14763         unshowing so that set_window_buffer doesn't undo
14764         kill_buffer_hook's hard work.
14765
14766         * glyphs-widget.c (tab_control_query_geometry): don't count the
14767         first item when calculating geometry.
14768
14769         * glyphs.c (map_subwindow): remove redundant code.
14770         (update_frame_subwindows): be more circumspect about when to
14771         update subwindows.
14772
14773         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14774         when items haven't changed. Update faces if faces have changed as
14775         well as just the widget face.
14776         (x_tab_control_update): Update faces if faces have changed as well
14777         as just the widget face.
14778
14779 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14780
14781         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14782         registration.
14783         (build_syscolor_string): Use mswindows_color_to_string to try to
14784         get a named color.
14785         (mswindows_device_system_metrics): Reverse the foreground and
14786         background colors so that they match the documentation.
14787
14788         * objects-msw.c: (mswindows_X_color_map): tweak some values so
14789         they match the default Windows palette.
14790         (mswindows_color_to_string): New function.
14791
14792 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14793
14794         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
14795
14796 2000-02-18  Olivier Galibert  <galibert@pobox.com>
14797
14798         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
14799         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
14800
14801         * symbols.c (init_symbols_once_early): Removed obsolete
14802         DATA_SEG_BITS related kludge.
14803         (defvar_magic): Ditto.
14804
14805         * malloc.c: Removed obsolete DATA_SEG_BITS
14806         * ralloc.c: Ditto.
14807         * mem-limits.h: Ditto.
14808
14809         * Makefile.in.in: Removed obsolete HAVE_SHM
14810         * emacs.c: Ditto.
14811
14812 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14813
14814         *  device-msw.c (mswindows_delete_device): Free DDE string
14815         handles.
14816
14817 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14818
14819         * keymap.c (get_keyelt):
14820         * unexnt.c (unexec):
14821         * vm-limit.c (memory_warnings):
14822         * ntheap.c (recreate_heap):
14823         * ntheap.h (UNINIT_PTR):
14824         * select-msw.c (Fmswindows_get_clipboard):
14825         (Fmswindows_set_clipboard):
14826         * objects-msw.h (MSWINDOWS_BAD_HFONT):
14827         * objects-msw.c:
14828         * menubar-msw.c (displayable_menu_item):
14829         * glyphs-msw.c:
14830         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
14831         * sysdep.c (sys_subshell):
14832         * process-nt.c (nt_create_process):
14833         * nt.c (normalize_filename):
14834         (dostounix_filename):
14835         (unixtodos_filename):
14836         * ntproc.c (win32_executable_type):
14837         * ntplay.c (play_sound_data_1):
14838         (play_sound_file):
14839         * editfns.c (get_home_directory):
14840         * event-msw.c (struct winsock_stream):
14841         (mswindows_dde_callback):
14842         * device-msw.c (msprinter_init_device):
14843         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
14844
14845         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
14846         mswindows_clear_toolbar were swapped!
14847
14848         * objects-msw.c:(colormap_t):
14849         (fontmap_t):
14850         * emacs.c (struct standard_args): Fixed const jumble.
14851
14852         * glyphs-widget.c (update_widget): Fixed comparison notation.
14853
14854         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
14855
14856         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
14857         __declspec(noreturn) syntax.
14858
14859 2000-02-19  Martin Buchholz  <martin@xemacs.org>
14860
14861         * eldap.c (Fldap_open):
14862         (Fldap_search_basic):
14863         (Fldap_add):
14864         (Fldap_modify):
14865         Use new coding system conversion macros.
14866
14867 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14868
14869         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
14870
14871 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
14872
14873         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
14874         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14875
14876         * eldap.c (Qadd, Qreplace): New constant symbols
14877         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
14878         interruptions by XEmacs signals
14879         Remove unnecessary calls to slow_down_interrupts and
14880         speed_up_interrupts
14881         (Fldap_search_basic): Renamed from Fldap_search_internal
14882         Added new optional parameter VERBOSE that triggers the
14883         display of progress messages
14884         Remove unnecessary calls to slow_down_interrupts and
14885         speed_up_interrupts
14886         LDAP result code analysis rewritten
14887         (Fldap_add, Fldap_modify, Fldap_delete): New functions
14888         (syms_of_eldap): Define the new symbols and functions
14889
14890
14891 2000-02-17  Martin Buchholz  <martin@xemacs.org>
14892
14893         * realpath.c: Determine PATH_MAX maximally portably.
14894
14895         * insdel.c (bytecount_to_charcount): Optimize.
14896         The function used to be optimized for entirely ASCII sequences.
14897         Now it is optimized for successive characters from the same
14898         charset.  This also wins big for _mostly_ ASCII sequences.
14899
14900         * fileio.c (Ffile_truename): convert return from realpath() using
14901         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
14902         - Rewrite GCPROing slightly.
14903
14904         * sysdep.c (sys_open): Do filename conversion, like all other
14905         sys_* functions.  Fixes bug:
14906         (let ((file-name-coding-system 'iso-8859-2))
14907            (write-region x y latin2-name))
14908         ==> writes filename using internal encoding.
14909
14910 2000-02-18  Martin Buchholz  <martin@xemacs.org>
14911
14912         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
14913         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
14914         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
14915         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
14916         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
14917         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
14918         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
14919         (CONST_IF_NOT_DEBUG): Delete.
14920         * alloc.c (this_one_is_unmarkable): Delete.
14921         (mark_object): Don't check for this_one_is_unmarkable. Use the
14922         c_readonly flag instead.
14923         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
14924
14925 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14926
14927         * event-msw.c (mswindows_drain_windows_queue):
14928         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
14929         away redundant repaint events.
14930
14931 2000-02-17  Andy Piper  <andy@xemacs.org>
14932
14933         * redisplay.h: declare mark_redisplay_structs.
14934
14935         * redisplay.c (redisplay_window):
14936         (redisplay_frame): don't check subwindows_state_changed.
14937         (mark_redisplay): mark gutters here.
14938
14939         * glyphs.c: (instantiate_image_instantiator): always layout if we
14940         haven't done so already.
14941         (allocate_image_instance): don't mark as dirty.
14942         (update_subwindow): bind inhibit_quit.
14943
14944         * gutter.c (mark_gutters): new function.
14945
14946         * glyphs-x.c (x_update_widget): Always resize to get round a
14947         widget bug.
14948
14949         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
14950         breaking absolutely everything.
14951
14952         * gutter.h: declare mark_gutters.
14953
14954 2000-02-16  Martin Buchholz <martin@xemacs.org>
14955
14956         * XEmacs 21.2.29 is released.
14957
14958 2000-02-15  Olivier Galibert  <galibert@pobox.com>
14959
14960         * fns.c (size_bit_vector): Fix computation of the size.
14961
14962 2000-02-15  Martin Buchholz  <martin@xemacs.org>
14963
14964         * *.[ch]: Change CONST to const globally.
14965         find -name '*.[ch]' | \
14966         xargs global-replace \
14967         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
14968         - Remove vestigial references to CONST_IS_LOSING
14969
14970 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14971
14972         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
14973         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
14974         events instead of dispatching them directly.
14975         (mswindows_handle_paint): New function to do repainting.
14976         (mswindows_wnd_proc):
14977         (emacs_mswindows_handle_magic_event): Call above function.
14978
14979 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14980
14981         * objects-msw.c (mswindows_create_font_variant): Return the new
14982         font handle.
14983         (initialize_font_instance): Get font metrics from the underlined
14984         variant of the font to cope with the case where the underlined
14985         font has a bigger descent.
14986
14987 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
14988
14989         * gui.c (gui_item_accelerator): Return the first underlined
14990         character in item name.
14991
14992 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14993
14994         * lisp.h: Added Qprinter.
14995
14996         * general.c (syms_of_general): Initialized it.
14997
14998         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
14999         (get_frame_dc):
15000         (get_frame_compdc): Made inline.
15001
15002         * console.h (struct console_methods): Added eject_page method.
15003
15004         * frame.h: Added FRAME_DISPLAY_P and friends.
15005         Aligned backslahes in many macros in more readable fashion.
15006         Added page_number to struct frame, and an accessor macro
15007         for it.
15008
15009         * defice.h: Added DEVICE_DISPLAY_P and friends.
15010
15011         * device.c (Fdevice_printer_p): Used these.
15012
15013         * frame.c (allocate_frame_core): Initialize page number.
15014         (Fprint_job_page_number):
15015         (Fprint_job_eject_page): Implemented.
15016
15017         * frame-msw.c (msprinter_eject_page): Added method.
15018         (msprinter_start_page): Added.
15019
15020         * window.c (Fwindow_truncated_p): Fixed docstring.
15021         (Fwindow_last_line_visible_height): Implemented.
15022
15023 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15024
15025         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
15026
15027 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15028
15029         * syntax.c (scan_words): Always advance at least one character.
15030
15031 2000-02-13  Andy Piper  <andy@xemacs.org>
15032
15033         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
15034         to make sure the glyph is in the cachels.
15035
15036         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
15037         global image instance flag.
15038         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
15039         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
15040
15041         * glyphs.c (allocate_image_instance): set dirty bits correctly.
15042         (Fset_image_instance_property): mark layout as changed.
15043         (invalidate_glyph_geometry_maybe): mark layout as changed.
15044         (glyph_width): use new NEEDS_LAYOUT macro.
15045         (glyph_ascent): ditto.
15046         (glyph_descent): ditto.
15047         (glyph_height): ditto.
15048         (image_instance_layout): mark layout as clean after laying out.
15049         (update_subwindow): don't mark layout as clean here.
15050
15051         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
15052         should no longer be needed.
15053
15054         * glyphs-x.c (x_update_widget): sanitize asserts.
15055         (x_finalize_image_instance): sanitize assignment to widgets.
15056
15057         * glyphs-widget.c (widget_instantiate): don't need to clear the
15058         layout flag here.
15059
15060 2000-02-13  Martin Buchholz  <martin@xemacs.org>
15061
15062         * sysdep.c (getcwd): Use standard prototype.
15063         * sysdep.h (getcwd): Use standard prototype.
15064
15065         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
15066         (sequence, start, end).
15067         Remove redundant type checking.
15068         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
15069         view of `caller-protects') to avoid a crash where the real fix was
15070         found elsewhere.
15071
15072 2000-02-12  Martin Buchholz  <martin@xemacs.org>
15073
15074         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
15075
15076         * s/sol2.h: Remove feature macro initialization.
15077
15078         * alloc.c (alloc_lcrecord): Add more type checking assertions.
15079         (vector_hash): New.  Code from internal_hash.
15080         * lrecord.h:
15081         Fix up allocation subsystem comments.
15082
15083         * config.h.in: Add __EXTENSIONS__ for Solaris.
15084
15085         * systime.h (EMACS_GETTIMEOFDAY): New.
15086         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
15087         Remove Solaris-specific code.
15088         Use void* for the (ignored) second arg for gettimeofday().
15089
15090         * elhash.c (hash_table_hash): Implement it, finally.
15091         * elhash.c:  Use hashcode_t.
15092
15093         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
15094         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
15095
15096         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
15097         * fns.c (size_bit_vector):
15098         * alloc.c (size_vector):
15099         (make_vector_internal):
15100         (make_bit_vector_internal):
15101         (sweep_bit_vectors_1):
15102         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
15103
15104 2000-02-10  Martin Buchholz  <martin@xemacs.org>
15105
15106         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
15107         Include strings.h to avoid warnings for bzero and strcasecmp.
15108
15109 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15110
15111         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
15112         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
15113
15114         * fns.c (size_bit_vector): New.  Declare bit vectors as a
15115         sequence.
15116
15117 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15118
15119         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15120         use a value field instead.
15121         (symbol_value_forward_forward): Use value field.
15122         (DEFVAR_SYMVAL_FWD): Use value field.
15123         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
15124         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15125         (DEFVAR_CONST_INT): Ditto.
15126         (DEFVAR_BOOL): Ditto.
15127         (DEFVAR_CONST_BOOL): Ditto.
15128         (DEFVAR_INT_MAGIC): Ditto.
15129         (DEFVAR_BOOL_MAGIC): Ditto.
15130
15131         * symbols.c (guts_of_unbound_marker): Use value field.
15132         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15133         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15134
15135         * lisp.h: Declare dumpopaque and noninteractive1.
15136
15137         * alloc.c (dumpopaque): Added.
15138         (pdump_dump_opaquevec): Added.
15139         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15140         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15141         noninteractive.
15142
15143 2000-02-10  Andy Piper  <andy@xemacs.org>
15144
15145         * glyphs.c (image_instance_layout): if the size changes, mark it
15146         as such.
15147
15148         * redisplay-output.c (redisplay_output_layout): Update the
15149         subwindow here.
15150         (redisplay_output_subwindow): ditto.
15151
15152         * glyphs.c (update_subwindow): make sure we reset flags for
15153         layouts as well as everything else.
15154
15155         * glyphs-widget.c (layout_layout): don't need to set the instances
15156         dimensions here.
15157
15158 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15159
15160         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15161         not HAVE_DLOPEN, which is a lower-level thing.
15162
15163         * .cvsignore: Ignore gmon.out
15164
15165 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15166
15167         * .cvsignore: Ignore portable dumper xemacs.dmp file
15168
15169 2000-02-09  Andy Piper  <andy@xemacs.org>
15170
15171         * redisplay-output.c (redisplay_output_layout): be more clever
15172         about when we output based on the changed flags.
15173
15174         * glyphs.h (struct image_instantiator_methods): add update_method.
15175         (struct Lisp_Image_Instance): add changed flags. Declare new
15176         macros for manipulating them.
15177
15178         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15179         (image_instance_parent_glyph): find an image_instance's parent
15180         glyph or image_instance.
15181         (image_instance_layout): mark the size as changed.
15182         (set_image_instance_dirty_p): new function. mark an image
15183         instance, plus all of its parents, as dirty.
15184         (Fset_image_instance_property): use it.
15185         (Fglyph_animated_timeout_handler): use it.
15186         (update_subwindow): call update_widget and device methods for
15187         update_subwindow. Mark all changed flags as clean.
15188         (Fresize_subwindow): mark size as changed.
15189
15190         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15191         failures.
15192         (x_update_subwindow): only resize subwindows here.
15193         (x_update_widget): new function. Update all changed properties of
15194         a widget.
15195         (x_resize_subwindow): deleted.
15196         (x_widget_set_property): deleted.
15197         (x_progress_gauge_set_property): deleted.
15198         (x_progress_gauge_update): new function. Implement recorded
15199         changes.
15200         (x_tab_control_update): ditto.
15201         (x_tab_control_set_property): deleted.
15202         (console_type_create_glyphs_x): declare new functions.
15203         (image_instantiator_format_create_glyphs_x): ditto.
15204
15205         * glyphs-widget.c (widget_set_property): mark text changed.
15206         (update_widget): new function. Update properties of a widget.
15207         (widget_instantiate): for layouts make sure we set their
15208         children's parent correctly.
15209         (tab_control_set_property): new function. Record changes that will
15210         take place under redisplay's control.
15211         (progress_gauge_set_property): ditto.
15212         (image_instantiator_progress_guage): declare new functions.
15213         (image_instantiator_tab_control): ditto.
15214
15215         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15216         now.
15217         (mswindows_update_widget): new function. Update all properties on
15218         a widget that have changed.
15219         (mswindows_button_update): new function. Update a button's set
15220         state.
15221         (mswindows_tab_control_update): new function. Update the items in
15222         a tab.
15223         (mswindows_tab_control_set_property): deleted.
15224         (mswindows_progress_gauge_update): new function. Update the
15225         progress gauge's progress.
15226         (mswindows_widget_set_property): deleted. This is all done
15227         asynchronously now.
15228         (mswindows_progress_gauge_set_property): ditto.
15229         (console_type_create_glyphs_mswindows): declare new methods.
15230         (image_instantiator_format_create_glyphs_mswindows): ditto.
15231
15232         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15233         (msprinter_set_frame_properties): ditto.
15234
15235         * console.h (struct console_methods): Add update_widget_method.
15236
15237 2000-02-09  Andy Piper  <andy@xemacs.org>
15238
15239         * gui-msw.c (Fmswindows_shell_execute): Make
15240         mswindows-shell-execute industrial strength.
15241
15242 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15243
15244         * lrecord.h: Make macro argument `props' match member function `plist'.
15245         * fns.c (Fget):
15246         * fns.c (Fput):
15247         * fns.c (Fremprop):
15248         * fns.c (Fobject_plist):
15249         * alloc.c:
15250         * symbols.c:
15251         Object property list frobbing cleanup.
15252         - Allow any lisp object (compared with `eq'), not just symbols, as
15253           keys in object plists.
15254         - Move symbol plist frobbing into symbols.c, where it belongs.
15255         - Move string plist frobbing into alloc.c, where it belongs.
15256         - Everything's an lrecord now, so no need to test for symbolp, etc.
15257         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15258
15259         * extents.c: Reorder code to remove declarations.
15260
15261         * frame.h (store_in_alist): Remove useless declaration.
15262
15263 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15264
15265         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15266         * config.h.in: Add HAVE_XCONVERTCASE.
15267
15268 2000-02-07  Andy Piper  <andy@xemacs.org>
15269
15270         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15271         it breaks many things.
15272
15273 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15274
15275         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15276         actually can start a common comment type.
15277         * src/syntax.h (SYNTAX_END_P): ditto for end.
15278
15279 2000-02-07  Martin Buchholz <martin@xemacs.org>
15280
15281         * XEmacs 21.2.28 is released.
15282
15283 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15284
15285         * event-Xt.c (x_keysym_to_character): New.
15286         (maybe_define_x_key_as_self_inserting_character): New.
15287         (x_has_keysym): New.
15288         Auto-define all keys on the keyboard as self-insert-key.
15289
15290 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15291
15292         * menubar.c (vars_of_menubar): A small code simplification.
15293
15294         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15295
15296         * ExternalShell.c:
15297         * ExternalClient.c:
15298         * EmacsShell-sub.c:
15299         * EmacsManager.c:
15300         * EmacsFrame.c:
15301         Use consistent style for specifying X resources.
15302
15303         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15304         This makes (dontusethis-set-symbol-value-handler) actually usable.
15305
15306         * lrecord.h (lrecord_decription_type):
15307         * alloc.c (pdump_register_sub):
15308         (pdump_dump_data):
15309         (pdump_reloc_one):
15310         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15311         Comply with XEmacs coding style.
15312         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15313         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15314
15315         * keymap.c (Faccessible_keymaps):
15316         Make (accessible-keymaps map "\C-h") do the Right Thing.
15317         Make (accessible-keymaps map []) do the Right Thing.
15318         Make (accessible-keymaps map "") do the Right Thing.
15319         (check_keymap_definition_loop): New function.
15320         (keymap_store_internal): Keep luser from shooting self in foot,
15321           via (define-key ctl-x-4-map "p" global-map).
15322         Remove fullness slot from struct Lisp_Keymap, since hash tables
15323         are now reliable.
15324         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15325
15326 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15327
15328         * redisplay.c (init_redisplay): Fix small memory leak.
15329         * elhash.h:
15330         * elhash.c (pdump_reorganize_hash_table):
15331         Rename from reorganize_hash_table. Change prototype.
15332         Reuse the original memory for hentries.  Save 100k.
15333         * alloc.c (PDUMP_READ): new macro.
15334         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15335         * alloc.c: No need to #ifndef before #undef.
15336
15337         * print.c: Allow debug_print() to print readably by modifying
15338         debug_print_readably.  Use consistent variable names.
15339
15340         * .dbxrc: Try to get things to work even if stopped in a function
15341         without source available by explicitly specifying source files.
15342 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15343
15344         * unexnt.c (_start): Removed bogus code which caused loading heap
15345         from differrent executable file.
15346         Removed bogus assignment to _fmode, which caused inconsistencies.
15347
15348 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15349
15350         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15351         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15352         Do not preliminary `#define signal sigset'.
15353
15354         * systime.h: Do not prototype environ on windows nt and cygwin,
15355         this conflicts with system header.
15356
15357         * syssignal.h: Use correct define for WINDOWSNT
15358
15359         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15360         with system header.
15361
15362         * sysdep.c (near start of file): Fixed commentary and rearranged
15363         ifdefs in readable order.
15364         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15365         (start_of_text):
15366         (end_of_text):
15367         (end_of_data): Do not compile in if using PDUMP.
15368
15369         * symsinit.h: Prototyped vars_of_nt().
15370
15371         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15372         (find_child_console): Use it.
15373         (sys_kill): Use it.
15374
15375         * ntheap.h: Do not extern os_subtype.
15376
15377         * ntheap.c (cache_system_info): Do not cache unneeded:
15378         nt_major_version, nt_minor_version and os_subtype.
15379         (recreate_heap): Do not compile in when PDUMPing.
15380
15381         * nt.c (geteuid and friends): Use the new varibale
15382         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15383         (init_user_info): Removed the above mentioned hackery.
15384         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15385         stat has been fixed in the C runtime.
15386         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15387
15388         * file-coding.c (struct file_coding_dump): Do not define
15389         ucs_to_mule_table in the struct if not MULE.
15390         (struct struct lrecord_description fcd_description_1): Do not dump
15391         the above.
15392
15393         * emacs.c (main_1): Call vars_of_nt().
15394         (right before Fdump_emacs_data): Don't need lastfile if using both
15395         portabe dumper and system malloc.
15396
15397         * alloc.c (Fmemory_limit): Conditionalized out.
15398         (pdump): Use OPEN_BINARY for the portable dump file.
15399         (pdump_load): Ditto.
15400
15401 2000-02-02  Mike Alexander  <mta@arbortext.com>
15402
15403         * nt.c (convert_time): Set tm_isdst before calling mktime and
15404         avoid calling it at all if the compiler supports 64 bit integers.
15405         Also initialize utc_base_ft before using it.
15406
15407 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15408
15409         * frame.c (change_frame_size_1): Take f->internal_border_width
15410         into consideration when calculating the width of the frame.
15411
15412 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15413
15414         * window.c (frame_min_height):
15415         (frame_size_valid_p):
15416         (frame_pixsize_valid_p): Added.
15417         (check_frame_size): Generalized.
15418
15419         * window.h: Prototyped the above.
15420
15421         * lisp.h:
15422         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15423         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15424         Deleted Vwin32_* and Vbinary_process_* unused variables.
15425
15426         * device-msw.c (msprinter_init_device): Do not get printer font
15427         list; Added DEVMODE functions.
15428
15429         * frame-msw.c: Added lots of printer code.
15430
15431         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15432         general.c.
15433
15434         * console-msw.h: Added more msprinter device private slots.
15435
15436 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15437
15438         * event-msw.c (key_needs_default_processing_p): Added.
15439         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15440
15441 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15442
15443         * glyphs.c (image_instance_layout): Mark image instance as clean
15444         after layout.
15445         (glyph_dirty_p): Removed redundant function.
15446         (invalidate_glyph_geometry_maybe): Added.
15447         (update_glyph_cachel_data): Call it.
15448
15449         * glyphs.h: Prototyped it.
15450
15451         * redisplay.c (add_glyph_rune): Call it.
15452         (redisplay_window): Reset glyphs cachels when frame faces have
15453         changed, thus forcing recomputation of built-in border glyphs.
15454
15455 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15456
15457         * Makefile.in.in: Make portable dumper and purify play well together.
15458         Add imperfect, but better than nothing, support for pdump.
15459         Remove xemacs.dmp when temacs is re-generated.
15460         Don't ignore errors when dumping xemacs.
15461
15462         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15463
15464 2000-01-28  Andy Piper  <andy@xemacs.org>
15465
15466         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15467         (setup_normal_frame): ditto.
15468         (setup_frame_without_minibuffer): ditto.
15469         (setup_minibuffer_frame): ditto.
15470         (delete_frame_internal): ditto.
15471         (Fmake_frame_invisible): ditto.
15472         (Ficonify_frame): ditto.
15473
15474         * window.h: change Fset_window_buffer signature.
15475
15476         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15477         (Fset_window_buffer): allow recording of buffer if the window is
15478         the selected window.
15479         (window_loop): Use new Fset_window signature.
15480
15481 2000-01-23  Daniel Pittman  <daniel@danann.net>
15482
15483         * config.h.in: Added template for `HAVE_ATHENA_3D'
15484
15485 2000-01-29  Andy Piper  <andy@xemacs.org>
15486
15487         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15488
15489         * gutter.c (output_gutter): Don't output if the window isn't live.
15490
15491 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15492
15493         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15494         of 01/12/00: Moved SetFocus back here where it belongs.
15495
15496 2000-01-23  Andy Piper  <andy@xemacs.org>
15497
15498         * s/cygwin32.h: declare printer things.
15499
15500 2000-01-26  Andy Piper  <andy@xemacs.org>
15501
15502         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15503         Alexander.
15504
15505 2000-01-24  Andy Piper  <andy@xemacs.org>
15506
15507         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15508         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15509
15510         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15511
15512         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15513
15514         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15515
15516         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15517         (mswindows_output_display_block): Avoid local shadows.
15518
15519         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15520         (mswindows_enqueue_mouse_button_event): ditto.
15521         (mswindows_handle_gui_wm_command): remove declaration.
15522
15523         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15524         warnings.
15525
15526         * console-msw.h: Avoid shadows.
15527         (mswindows_get_toolbar_button_text):
15528         (emacs_mswindows_create_stream_pair):
15529         (emacs_mswindows_delete_stream_pair):
15530         (mswindows_handle_toolbar_wm_command): declare.
15531
15532         * device-msw.c (build_syscolor_string): Avoid shadows.
15533
15534 2000-01-23  Andy Piper  <andy@xemacs.org>
15535
15536         * glyphs-widget.c (widget_instantiate): reverse the items for
15537         layouts so that children are in the expected order.
15538
15539 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15540
15541         * ralloc.c: safe_bcopy ==> memmove
15542         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15543         * s/msdos.h: Remove BCOPY macros.
15544         * insdel.c (gap_right): Remove BCOPY conditional code.
15545         * insdel.c (gap_left): Remove BCOPY conditional code.
15546         XEmacs demands a working ANSI C compiler - hence memmove.
15547
15548         * regex.c (regex_compile): Remove accidental use of trigraphs.
15549
15550 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15551
15552         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15553         event timestamp.
15554
15555 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15556
15557         * event-msw.c (mswindows_drain_windows_queue): Added the
15558         parameter.
15559         (mswindows_need_event): Commented the call to
15560         mswindows_drain_windows_queue().
15561         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15562         only.
15563
15564         * console-msw.h: Moved a few function prototypes here from
15565         event-msw.c.
15566
15567         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15568         parameter from unsigned short to unsigned long.
15569         (Fmswindows_shell_execute): Added return value.
15570
15571 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15572
15573         * sysdep.c (init_system_name):
15574           process-unix.c (unix_canonicalized_host_name):
15575         Don't call freeaddrinfo() if getaddrinfo() fails.
15576
15577         * process-unix.c (unix_open_unix_network_stream):
15578         Moved the code to get a port # into address loop.
15579
15580 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15581
15582         * buffer.c (reinit_vars_of_buffer):
15583         The right place to initialize conversion_in_dynarr and
15584         conversion_out_dynarr.
15585
15586         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15587
15588         * process-unix.c (unix_canonicalize_host_name): Muleize.
15589         (unix_open_network_stream): Muleize.
15590
15591         * buffer.h: Fix up prototypes for ralloc.c functions.
15592
15593 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15594         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15595         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15596                 instead of gethostbyname()
15597         * process-unix.c: In unix_canonicalize_host_name() and
15598                 unix_open_network_stream(), add code to use getaddrinfo()
15599                 instead of gethostbyname().
15600
15601 2000-01-27  Daniel Pittman <daniel@danann.net>
15602
15603         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15604         libs when built with flat Athena.
15605
15606 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15607
15608         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15609         Use coding standards for function prototypes.
15610
15611 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15612
15613         * dialog-msw.c (push_lisp_string_as_unicode):
15614         * doc.c (unparesseuxify_doc_string):
15615         * dired.c (Fuser_name_completion_1):
15616         * dired.c (Fuser_name_all_completions):
15617         * dired.c (free_user_cache):
15618         * dired.c (user_name_completion):
15619         * console-x.c (get_display_arg_connection):
15620         * minibuf.c (clear_echo_area_internal):
15621         * minibuf.c (echo_area_append):
15622         * eldap.c (Fldap_open):
15623         * eldap.c (Fldap_search_internal):
15624         * frame-x.c (x_set_frame_text_value):
15625         * frame-x.c (x_set_frame_properties):
15626         * frame-x.c (x_create_widgets):
15627         * redisplay-tty.c (term_get_fkeys_1):
15628         * objects-x.c (x_parse_nearest_color):
15629         * objects-x.c (x_valid_color_name_p):
15630         * objects-x.c (x_initialize_font_instance):
15631         * objects-x.c (x_list_fonts):
15632         * objects-x.c (x_find_charset_font):
15633         * tooltalk.c (Fadd_tooltalk_message_arg):
15634         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15635         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15636         * process-unix.c (unix_create_process):
15637         * ntproc.c (sys_spawnve):
15638         * sound.c (Fplay_sound_file):
15639         * sound.c (Fplay_sound):
15640         * buffer.c (init_initial_directory):
15641         * buffer.c (init_buffer):
15642         * editfns.c (init_editfns):
15643         * editfns.c (Ftemp_directory):
15644         * editfns.c (Fuser_full_name):
15645         * editfns.c (uncache_home_directory):
15646         * editfns.c (get_home_directory):
15647         * editfns.c (Fuser_home_directory):
15648         * editfns.c (Fformat_time_string):
15649         * editfns.c (Fcurrent_time_string):
15650         * gui-x.c (button_item_to_widget_value):
15651         * database.c (Fopen_database):
15652         * event-Xt.c (x_to_emacs_keysym):
15653         * event-Xt.c (x_event_to_emacs_event):
15654         * event-Xt.c (describe_event_window):
15655         * event-msw.c (mswindows_wnd_proc):
15656         * glyphs-eimage.c (jpeg_instantiate):
15657         * glyphs-eimage.c (gif_instantiate):
15658         * glyphs-eimage.c (png_instantiate):
15659         * glyphs-eimage.c (tiff_instantiate):
15660         * glyphs-x.c (xbm_instantiate_1):
15661         * glyphs-x.c (x_xbm_instantiate):
15662         * glyphs-x.c (x_xface_instantiate):
15663         * glyphs-x.c (autodetect_instantiate):
15664         * glyphs-x.c (cursor_font_instantiate):
15665         * glyphs-x.c (x_widget_instantiate):
15666         * glyphs-x.c (x_widget_set_property):
15667         * glyphs-x.c (x_widget_property):
15668         * glyphs-x.c (BUILD_GLYPH_INST):
15669         * print.c (write_string_to_stdio_stream):
15670         * print.c (output_string):
15671         * print.c (Falternate_debugging_output):
15672         * print.c (Fexternal_debugging_output):
15673         * glyphs-msw.c (extract_xpm_color_names):
15674         * glyphs-msw.c (mswindows_xpm_instantiate):
15675         * glyphs-msw.c (bmp_instantiate):
15676         * glyphs-msw.c (resource_name_to_resource):
15677         * glyphs-msw.c (mswindows_resource_instantiate):
15678         * glyphs-msw.c (xbm_instantiate_1):
15679         * glyphs-msw.c (mswindows_xbm_instantiate):
15680         * glyphs-msw.c (mswindows_xface_instantiate):
15681         * glyphs-msw.c (mswindows_widget_instantiate):
15682         * glyphs-msw.c (add_tree_item):
15683         * glyphs-msw.c (add_tab_item):
15684         * glyphs-msw.c (mswindows_combo_box_instantiate):
15685         * glyphs-msw.c (mswindows_widget_property):
15686         * glyphs-msw.c (mswindows_combo_box_property):
15687         * glyphs-msw.c (mswindows_widget_set_property):
15688         * console.c (stuff_buffered_input):
15689         * objects-msw.c (mswindows_initialize_color_instance):
15690         * objects-msw.c (mswindows_valid_color_name_p):
15691         * objects-msw.c (mswindows_list_fonts):
15692         * objects-msw.c (mswindows_font_instance_truename):
15693         * bytecode.c (optimize_compiled_function):
15694         * select-x.c (symbol_to_x_atom):
15695         * select-x.c (x_atom_to_symbol):
15696         * select-x.c (hack_motif_clipboard_selection):
15697         * select-x.c (selection_data_to_lisp_data):
15698         * select-x.c (lisp_data_to_selection_data):
15699         * select-x.c (Fx_get_cutbuffer_internal):
15700         * select-x.c (Fx_store_cutbuffer_internal):
15701         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15702         * buffer.h (TO_INTERNAL_FORMAT): New function.
15703         * emacs.c (make_arg_list_1):
15704         * emacs.c (make_argc_argv):
15705         * emacs.c (main_1):
15706         * emacs.c (Fdump_emacs):
15707         * emacs.c (split_string_by_emchar_1):
15708         * file-coding.h:
15709         * lisp.h:
15710         * lstream.h:
15711         * symsinit.h:
15712         * device-x.c (x_init_device):
15713         * device-x.c (Fx_valid_keysym_name_p):
15714         * device-x.c (Fx_get_font_path):
15715         * device-x.c (Fx_set_font_path):
15716         * glyphs.c (bitmap_to_lisp_data):
15717         * glyphs.c (pixmap_to_lisp_data):
15718         * alloc.c (make_ext_string): Use coding system arguments.  Update
15719         all callers.
15720         * alloc.c (build_string):
15721         * callproc.c (child_setup):
15722         * callproc.c (init_callproc):
15723         * fileio.c (lisp_strerror):
15724         * fileio.c (directory_file_name):
15725         * fileio.c (Fexpand_file_name):
15726         * fileio.c (Ffile_truename):
15727         * fileio.c (Fsysnetunam):
15728         * fileio.c (Fdo_auto_save):
15729         * sysdep.c (sys_readdir):
15730         * tests.c: New file.  Allow adding C tests.
15731         Replace GET_* macros with a more comprehensible and flexible
15732         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15733         Modify all calls.
15734         Any coding system can be used to do format conversion.
15735         Eliminate enum external_data_format.
15736         Eliminate convert_to_external_format.
15737         Eliminate convert_to_internal_format.
15738         Make sure file-name, keyboard, terminal, and ctext are always
15739         defined as coding systems or aliases.  Make
15740         file-name-coding-system, terminal-coding-system, and
15741         keyboard-coding-system magical variables that are equivalent to
15742         defining the corresponding coding system aliases.
15743
15744         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15745         * file-coding.c (Fcoding_system_alias_p): New function.
15746         * file-coding.c (Fcoding_system_aliasee): New function.
15747         * file-coding.c (append_suffix_to_symbol): New function.
15748         * file-coding.c (dangling_coding_system_alias_p): New function.
15749         * file-coding.c (Ffind_coding_system):
15750         * file-coding.c (Fcopy_coding_system):
15751         * file-coding.c (encode_coding_no_conversion):
15752         * file-coding.c (syms_of_file_coding):
15753         * file-coding.c (vars_of_file_coding):
15754         Rewrite coding system alias code.
15755         Allow nested aliases, like symbolic links.
15756         Allow redefinition of coding system aliases.
15757         Prevent existence of dangling coding system aliases.
15758
15759         * dired.c (Fuser_name_completion_1):
15760         * dired.c (Fuser_name_all_completions):
15761         A crash would happen if user did QUIT in the middle of building
15762         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15763
15764         * lisp.h:
15765         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15766
15767         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15768         an unsigned char *.  Update all callers.
15769
15770 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15771
15772         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15773
15774 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15775
15776         * elhash.c (hentry_description): Use more portable definition.
15777         (resize_hash_table): Initialize new hentries using
15778         xnew_array_and_zero, thereby simplifying the code.
15779
15780         * mule-charset.c (make_charset): Make sure entire object is
15781         initialized, to avoid Purify warnings.
15782
15783         * alloc.c (resize_string): Fix unlikely crash with big strings.
15784
15785 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15786
15787         * realpath.c (xrealpath):
15788         Don't call getwd().
15789
15790 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15791
15792         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
15793
15794 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
15795
15796         * unexelfsgi.c (unexec): Change the way we decide which segment
15797         should be extended.
15798
15799         Assumption that .bss section should be outside the PT_LOADable
15800         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
15801         it's present) is inside the 'data' segment. This would fail the
15802         test which was used to find a segment to grow and cover new
15803         heap. Instead of this assumption, I created another one - on IRIX
15804         the segment to grow should start below .bss and it's address
15805         should extent above the end of .bss. Once this segment is
15806         identified, it's grown to accommodate the new heap and new
15807         zero-length .bss section is added at the end of .data2.
15808
15809 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15810
15811         * eval.c (Feval): Wrong number of arguments should use original
15812         function, not the indirect_function version of it.
15813
15814 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
15815
15816         * glyphs-x.c (x_button_instantiate): Don't add image if
15817         it is not a pixmap.
15818         (x_locate_pixmap_file): Call Fexpand_file_name when file name
15819         is relative.
15820
15821 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
15822
15823         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
15824         declaration.
15825         (DEFVAR_INT_MAGIC): Ditto.
15826         (DEFVAR_BOOL_MAGIC): Ditto.
15827         * glyphs.h: Reindent backslash.
15828
15829 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15830
15831         * glyphs-widget.c (layout_query_geometry):
15832         (layout_layout): Use correct types for gheight, gwidth.
15833
15834 2000-01-24  Martin Buchholz  <martin@xemacs.org>
15835
15836         * EmacsManager.c (QueryGeometry): Purified.
15837
15838 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15839
15840         * alloc.c (make_float): Make sure entire object is initialized, to
15841         avoid Purify warnings.
15842         (pdump_register_sub): Remove useless assignment.
15843         (pdump): Use xmalloc, not malloc.
15844         (pdump_load): Use xmalloc, not malloc.
15845
15846 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15847
15848         * callproc.c:
15849         * dired-msw.c:
15850         * fileio.c:
15851         * process-nt.c:
15852         * redisplay-msw.c:
15853         * sysdep.c: Removed redundant #include <windows.h>
15854
15855 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15856
15857         * frame.c (delete_frame_internal): Do not delete device when its
15858         implementation so declares.
15859         (delete_frame_internal): Set device selected frame to nil when
15860         last frame goes away.
15861
15862         * device-msw.c (msprinter_device_system_metrics): Implemented.
15863         (mswindows_device_system_metrics): Added 'device-dpi property.
15864
15865         * device.c: (Fdevice_printer_p): Added.
15866         Added 'offset-workspace device metric.
15867
15868         * console.h (device_metrics): Declared DM_offset_workspace.
15869
15870 2000-01-23  Martin Buchholz  <martin@xemacs.org>
15871
15872         * fileio.c (Ffile_truename): Remove pointless and confusing
15873         initialization of elen.
15874
15875         * glyphs-widget.c: Compiler warning fixes.
15876
15877 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
15878
15879         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
15880         instead of a Lisp_Object as argument to make it consistent with
15881         the other LIVE_P macros.
15882         (CHECK_LIVE_PROCESS): New macro.
15883
15884         * process.c: Declare Qprocess_live_p.
15885         (Fprocess_live_p): New function.
15886         (create_process): Use PROCESS_LIVE_P.
15887         (read_process_output): Ditto.
15888         (set_process_filter): Ditto.
15889         (Fdelete_process): Ditto.
15890         (kill_buffer_processes): Ditto
15891         (process_send_signal): Use CHECK_LIVE_PROCESS.
15892         (Fprocess_input_coding_system): Check whether process is still
15893         alive (fix PR#1061).
15894         (Fprocess_output_coding_system): Ditto.
15895         (Fprocess_coding_system): Ditto.
15896         (Fset_process_input_coding_system): Ditto.
15897         (Fset_process_output_coding_system): Ditto.
15898
15899 2000-01-23  Andy Piper  <andy@xemacs.org>
15900
15901         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
15902         layout and widget.
15903
15904         * glyphs.c (mark_image_instance): take into account changed
15905         image_instance format.
15906         (image_instance_equal): ditto.
15907         (image_instance_hash): ditto.
15908
15909         * glyphs-widget.c (widget_instantiate): Incorporate layout
15910         instantiation here. Delay layout of the layout until later.
15911         (layout_instantiate): deleted.
15912         (layout_query_geometry): new function. get the geometry of a
15913         layout.
15914         (layout_layout): layout a layout dynamically.
15915         (image_instantiator_widget): New function - splitting up
15916         image_instantiator_format_create_glyphs_widget for netwinder
15917         compilation.
15918         (image_instantiator_buttons):
15919         (image_instantiator_edit_fields):
15920         (image_instantiator_combo_box):
15921         (image_instantiator_scrollbar):
15922         (image_instantiator_progress_guage):
15923         (image_instantiator_tree_view):
15924         (image_instantiator_tab_control):
15925         (image_instantiator_labels):
15926         (image_instantiator_layout): ditto.
15927         (image_instantiator_format_create_glyphs_widget): Call preceding
15928         functions.
15929
15930 2000-01-22  Martin Buchholz  <martin@xemacs.org>
15931
15932         * process.c (Fset_process_coding_system):
15933         * device-x.c (Fx_keysym_hash_table):
15934         Docstring fixes.
15935
15936         * lstream.c (Lstream_write): Return documented value, not 0.
15937
15938         * fileio.c (directory_file_name):
15939         (Fsubstitute_in_file_name):
15940         (Fsubstitute_insert_file_contents_internal):
15941         (Fwrite_region_internal):
15942         * emacs.c:
15943         * sysdep.c:
15944         * getloadavg.c:
15945         * systty.h:
15946         Remove vestigial APOLLO-conditional code.
15947
15948 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15949
15950         * getpagesize.h: Add guard macros.
15951         * libsst.h: Add guard macros.
15952         * libst.h: Add guard macros.
15953         * line-number.h: Add guard macros.
15954         * ndir.h: Add guard macros.
15955         * sysfloat.h: Add guard macros.
15956         * sysfile.h: Add guard macros.
15957         * sysproc.h: Add guard macros.
15958         * syswait.h: Add guard macros.
15959         * xintrinsic.h: Add guard macros.
15960         * xintrinsicp.h: Add guard macros.
15961         * xmmanager.h: Add guard macros.
15962         * xmmanagerp.h: Add guard macros.
15963         * xmprimitive.h: Add guard macros.
15964         * xmu.h: Add guard macros.
15965         * gpmevent.h: Add copyright statement. Add guard macros.
15966         * miscplay.h: Add guard macros.
15967         * *.h: Use consistent C-standards-approved guard macro names.
15968
15969         * opaque.c (make_opaque): Switch parameter order.
15970         * opaque.h (make_opaque): Switch parameter order.
15971         Update all callers.
15972         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
15973
15974         * config.h.in (type_checking_assert): Added.
15975         (bufpos_checking_assert): Added.
15976
15977 2000-01-21  Martin Buchholz  <martin@xemacs.org>
15978
15979         * alloc.c: Harmless pdump changes.
15980         - Use countof().
15981         - spell alignment correctly.
15982         * sysdep.c: Use countof()
15983
15984 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15985
15986         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
15987         initially_selected_for_input() console method, default to 0.
15988         (semi_canonicalize_console_connection): Try to delegate to
15989         canonicalize_console_connection if no such console method.
15990         (canonicalize_console_connection): Vice versa.
15991         (print_console): Do not print nil connection.
15992
15993         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
15994         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
15995         (XDEVIMPF_FRAMELESS_OK): Added.
15996         (CONSOLE_INHERITS_METHOD): Added.
15997
15998         * console-msw.c (mswindows_canonicalize_console_connection):
15999         Added.
16000         (mswindows_canonicalize_device_connection): Added.
16001
16002         * console-msw.h (struct msprinter_device): Added this struct and
16003         accessor macros.
16004         (mswindows_device): Made fontlist a lisp object.
16005
16006         * device.c (semi_canonicalize_device_connection):  Try to delegate
16007         to canonicalize_device_connection if no such console method.
16008         (canonicalize_device_connection): Vice versa.
16009         (print_device): Do not print nil connection.
16010
16011         * device-msw.c (mswindows_init_device): Call InitCommonControls
16012         when have widgets.
16013         (mswindows_delete_device): Removed fontlist deallocation.
16014         (mswindows_mark_device): Added.
16015
16016         * events.c (event_equal): Added abort() at unreached code.
16017         (event_hash): Ditto.
16018
16019         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
16020         fallback tags of Windows devices.
16021
16022         * general.c (syms_of_general): Initialized Qmsprinter.
16023
16024         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
16025         of fallback tags of Windows devices.
16026
16027         * lisp.h: Declared Qmsprinter.
16028
16029         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
16030         of strings.
16031         (mswindows_list_fonts): Ditto.
16032         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
16033         that it can be used by both mswindows and msprinter devices.
16034         (initialize_font_instance): Added.
16035         (mswindows_initialize_font_instance): Use it.
16036         (msprinter_initialize_font_instance): Added.
16037
16038         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
16039         and implementation flags check.
16040         (redisplay_without_hooks): Changed the call to the above.
16041         (Fredraw_device): Ditto.
16042         (Fredisplay_device): Ditto.
16043
16044         * redisplay-msw.c (get_frame_dc): Implemented.
16045         (get_frame_compdc): Implemented.
16046         (many functions): Use the two functions above to get device
16047         contexts, ether for a window or a printer.
16048
16049 2000-01-21  Olivier Galibert  <galibert@pobox.com>
16050
16051         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
16052         initialization here.
16053         (init_symbols_once_early): Call it.
16054         * emacs.c (main_1): Call it.
16055         * symsinit.h: Declare it.
16056
16057 2000-01-19  Olivier Galibert  <galibert@pobox.com>
16058
16059         * alloc.c: Use a lrecord_header * in the backtrace instead of a
16060         Lisp_Object.
16061         (pdump_backtrace): Ditto.
16062         (pdump_register_object): Ditto.  Cleanup use of the pointers.
16063         (pdump_get_entry): Abort if trying to register a null pointer.
16064         (pdump_dump_data): Cleanup types when relocating.
16065         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
16066         (pdump_dump_rtables): Remove bad casts.
16067         (pdump_load): Cleanup relocation w.r.t union type.  Use a
16068         Lisp_Object instead of a EMACS_INT for the hashtable
16069         reorganization.
16070
16071 2000-01-20  Martin Buchholz  <martin@xemacs.org>
16072
16073         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
16074
16075         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
16076
16077         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
16078
16079         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
16080
16081 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16082
16083         * faces.h (FACE_STRIKETHRU_P): Added.
16084
16085         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
16086         of font variants.
16087
16088         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
16089         (mswindows_set_dc_font): New function, aware of font variants,
16090         separated from mswindows_update_dc.
16091
16092         * objects-msw.h (struct mswindows_font_instance_data): Added
16093         definition.
16094
16095         * objects-msw.c (mswindows_finalize_font_instance): Delete all
16096         cached fonts and the data structure.
16097         (mswindows_initialize_font_instance): Added creation of font data
16098         structure.
16099         (mswindows_print_font_instance): Print at least something.
16100         (mswindows_create_font_variant): Implemented.
16101         (mswindows_get_hfont): Implemented.
16102
16103 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
16104
16105         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
16106         prototyping problem with msvc.
16107
16108         * emacs.c (main_1): added syms_of_gui_mswindows() call
16109
16110         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
16111         syms_of_gui_mswindows() function
16112
16113         * symsinit.h: added the prototype for syms_of_gui_mswindows()
16114
16115 2000-01-18  Martin Buchholz <martin@xemacs.org>
16116
16117         * XEmacs 21.2.27 is released.
16118
16119 2000-01-18  Martin Buchholz  <martin@xemacs.org>
16120
16121         * glyphs-eimage.c (struct tiff_error_struct):
16122         (tiff_error_func):
16123         (tiff_warning_func):
16124         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16125
16126         * unexmips.c:
16127         * unexhp9k3.c:
16128         * unexfreebsd.c:
16129         * unexec.c: Remove vestigial Lucid C code.
16130         * unexalpha.c:
16131         * unexaix.c:
16132         * termcap.c:
16133         * libsst.c: Ansify.
16134         Remove declarations of errno and strerror().
16135
16136         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16137
16138         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16139
16140 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16141
16142         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16143         Optimize.
16144
16145 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16146
16147         * md5.c:
16148         * file-coding.c:
16149         * file-coding.h:
16150         Change enum eol_type to eol_type_t.
16151
16152 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16153
16154         * gui.c (get_gui_callback): Check cons before accessing car.
16155
16156 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16157
16158         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16159         (XSETSPECIFIER_TYPE): Ditto.
16160
16161 2000-01-17  Didier Verna  <didier@xemacs.org>
16162
16163         * redisplay.c (generate_fstring_runes): compute string size in
16164         characters, not bytes.
16165
16166 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16167
16168         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16169
16170 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16171
16172         * print.c (print_error_message): Call print_prepare().
16173
16174 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16175
16176         * .dbxrc: Renamed from dbxrc.
16177
16178         * events.c (event_to_character):
16179         Use `assert (foo)' instead of `if (!foo) abort()'
16180
16181         * .gdbinit (xtype): Add documentation.
16182         * .gdbinit (check-temacs): New function.
16183         * .gdbinit (check-xemacs): New function.
16184         * dbxrc (check-xemacs): New function.
16185         * dbxrc (check-xemacs): New function.
16186
16187 2000-01-14  Andy Piper  <andy@xemacs.org>
16188
16189         * glyphs-widget.c (widget_query_geometry): Make sure that we
16190         calculate default dimensions correctly.
16191
16192 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16193
16194         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16195
16196         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16197         pdump_wire'd variable.
16198
16199         * emacs.c: (main_1): Conditionalized calls to
16200         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16201
16202 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16203
16204         * window.c (Fset_window_configuration):
16205         * sysdep.c (_start):
16206         * input-method-motif.c (res):
16207         * event-Xt.c (Xt_process_to_emacs_event):
16208         Simple compiler warning fixes.
16209
16210         * bytecode.c (funcall_compiled_function): Use the original
16211         function symbol on the backtrace list in preference to the
16212         compiled_function object in error messages.
16213
16214 2000-01-13  Andy Piper  <andy@xemacs.org>
16215
16216         * glyphs-x.c (update_widget_face): Make sure we update the widget
16217         background as well as foreground.
16218
16219 2000-01-13  Andy Piper  <andy@xemacs.org>
16220
16221         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16222         fields to subwindow.
16223         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16224         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16225         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16226         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16227
16228         * glyphs-widget.c (check_valid_tab_orientation): new function.
16229         (initialize_widget_image_instance): zero orientation and
16230         justification.
16231         (widget_instantiate): pick up orientation.
16232         (tab_control_query_geometry): return appropriate values for
16233         vertical tabs.
16234
16235         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16236         appropriate creation flags for left, right and bottom tabs.
16237
16238         * s/cygwin32.h: add tab definitions.
16239
16240 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16241
16242         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16243         frame upon hiding a subwindow.
16244         (mswindows_button_instantiate): Changed the push button style to
16245         BS_PUSHBUTTON.
16246         (mswindows_button_instantiate): Removed button BS_NOTIFY
16247         style.
16248         (mswindows_button_instantiate): Removed redundant check for
16249         a disabled gui item.
16250         (mswindows_button_instantiate): Made use of WS_TABSTOP
16251         consistent: "operable" controls (edit, button, tree, scroll) have
16252         this style, "display-only" ones (static, progress gauge) do
16253         not. This style is currently ignored by XEmacs though. Also,
16254         removed the WS_EX_CONTROLPARENT style - it is not for children,
16255         it is for their parents!
16256         (mswindows_edit_field_instantiate): Ditto.
16257         (mswindows_progress_gauge_instantiate): Ditto.
16258         (mswindows_tree_view_instantiate): Ditto.
16259         (mswindows_tab_control_instantiate): Ditto.
16260         (mswindows_scrollbar_instantiate): Ditto.
16261         (mswindows_combo_box_instantiate): Ditto.
16262         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16263         style to the "clip" window.
16264         (mswindows_button_instantiate): Removed compilation warning by
16265         equally typing terms of the ?: operator.
16266
16267 2000-01-12  Didier Verna  <didier@xemacs.org>
16268
16269         * redisplay.c (generate_fstring_runes): new parameter holding the
16270         last modeline-format extent.
16271         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16272         extent, fill the glyph block with it.
16273         (generate_fstring_runes): handle these parameters.
16274         (generate_formatted_string_db): ditto.
16275
16276         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16277         glyphs'extents in the modeline.
16278
16279 1999-01-11  Mike Woolley  <mike@bulsara.com>
16280
16281         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16282         256Mb, as a workaround for the non-starting problem many people
16283         have experienced.
16284
16285 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16286
16287         * console-tty.c (Fset_console_tty_output_coding_system):
16288         Force redrawing tty frame.
16289
16290 2000-01-10  Didier Verna  <didier@xemacs.org>
16291
16292         * redisplay.c (generate_fstring_runes): fix size computation bug.
16293
16294 2000-01-09  William M. Perry <wmperry@aventail.com>
16295
16296         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16297
16298 2000-01-09  Andy Piper  <andy@xemacs.org>
16299
16300         * glyphs-msw.c: index -> i to avoid shadows.
16301         (xbm_create_bitmap_from_data): make static.
16302         (check_valid_string_or_int): deleted.
16303         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16304
16305         * glyphs-x.c (x_update_subwindow): remove unused args.
16306
16307         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16308         back pointer - this is done in allocate_image_instance.
16309         (query_string_font): return Qnil to make the compiler happy.
16310         (unmap_subwindow): set to ~0 to make the compiler happy.
16311         (glyph_query_geometry): comment out until used.
16312         (glyph_layout): ditto.
16313
16314 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16315
16316         * insdel.c (signal_after_change): Remove extraneous unbind_to().