(system-char-database-directory): Use `data-directory' instead of
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (Fsave_char_attribute_table): Use
4         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
5         defined.
6
7         * mule-charset.c (save_charset_properties): Renamed from
8         `Fsave_charset_properties'; changed to non-Lisp function.
9         (syms_of_mule_charset): Abolish builtin function
10         `save-charset-properties'.
11
12 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
13
14         * mule-charset.c (Fsave_charset_properties): New function when
15         HAVE_LIBCHISE is defined.
16         (syms_of_mule_charset): Add new builtin function
17         `save-charset-properties' when HAVE_LIBCHISE is defined.
18
19 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
20
21         * chartab.c (Fput_char_attribute): Convert char-specs in value of
22         `{<-|->}ancient[^*]*' to characters and put reverse links.
23         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
24         for `{<-|->}ancient[^*]*'.
25
26 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
27
28         * chartab.c (Fput_char_attribute): Convert char-specs in value of
29         `{<-|->}original[^*]*' to characters and put reverse links.
30         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
31         for `{<-|->}original[^*]*'.
32
33 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
34
35         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
36
37 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
38
39         * mule-charset.c (Qsystem_char_id): New variable.
40
41         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
42         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
43
44 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
45
46         * chartab.c (Fput_char_attribute): When processing a reference of
47         a character, put into the end of the reversed reference of each
48         target character.
49
50 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
51
52         * chartab.c (Q_same): Deleted.
53         (Q_same_of): Deleted.
54         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
55         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
56         for `{<-|->}same'.
57         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
58
59 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
60
61         * chartab.c (Q_vulgar): Deleted.
62         (Q_vulgar_of): Deleted.
63         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
64         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
65         for `{<-|->}vulgar'.
66         (syms_of_chartab): Don't define `{<-|->}vulgar'.
67
68 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
69
70         * chartab.c (Fput_char_attribute): Convert char-specs in value of
71         `{<-|->}wrong[^*]*' to characters and put reverse links.
72         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
73         for `{<-|->}wrong[^*]*'.
74
75 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
76
77         * chartab.c (Q_vulgar): New variable.
78         (Q_vulgar_of): New variable.
79         (Fput_char_attribute): Convert char-specs in value of
80         `{->|<-}vulgar' to characters and put reverse links.
81         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
82         for `{->|<-}vulgar'.
83         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
84
85 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
86
87         * text-coding.c (decode_add_er_char): Must to quote prefix string
88         as regexp.
89
90 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
91
92         * mule-charset.c (put_char_ccs_code_point): Store characters of
93         =ucs whose code_points >= 0xF0000.
94
95 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
96
97         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
98         CHISE.
99         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
100         CHISE.
101         (complex_vars_of_mule_charset): Add new coded-charset
102         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
103         builtin characters over 0xEFFFF.
104
105         * chartab.c (syms_of_chartab): Don't define symbol
106         `system-char-id' in every case.
107
108         * char-ucs.h (Qsystem_char_id): New extern variable.
109         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
110
111 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
112
113         * text-coding.c (char_encode_utf8): Try to use entity-references
114         for U-000F0000 ...  U-0010FFFF.
115
116 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
117
118         * text-coding.c (ER_BUF_SIZE): New macro.
119         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
120         `er_buf'.
121         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
122         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
123
124 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
125
126         * chartab.c (find_char_feature_in_family): New function.
127         (Fchar_feature): Use `find_char_feature_in_family' with
128         `->identical', `<-subsumptive' and `<-denotational'.
129
130 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
131
132         * text-coding.c (char_encode_as_entity_reference): Allow prefix
133         within 8 characters; fix infinite loop.
134
135 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
136
137         * chartab.c (Q_same): New variable.
138         (Q_same_of): New variable.
139         (Fput_char_attribute): Convert char-specs in value of
140         `{->|<-}same' to characters and put reverse links.
141         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
142         for `{->|<-}same'.
143         (syms_of_chartab): Add new symbols `{->|<-}same'.
144
145 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
146
147         * chartab.c (Q_component): New variable.
148         (Q_component_of): Likewise.
149         (Fput_char_attribute): Convert char-specs in value of
150         `{->|<-}ideographic-component-forms' to characters and put reverse
151         links.
152         (syms_of_chartab): Add new symbols
153         `{->|<-}ideographic-component-forms'.
154
155 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
156
157         * chartab.c (Q_identical): New variable.
158         (Q_identical_from): New variable.
159         (Fchar_feature): Regard `->identical' as a feature to find
160         ancestors.
161         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
162         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
163         for `{->|<-}identical'.
164         (syms_of_chartab): Add new symbols `{->|<-}identical'.
165
166 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
167
168         * char-ucs.h (encode_char_2): New inline function.
169         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
170
171 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
172
173         * chartab.c (Fput_char_attribute): Convert char-specs to
174         characters in value of `ideographic-structure'.
175         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
176         for `{<-|->}simplified(@...)'.
177         (Fdefine_char): bTry to use predefined character's id.
178
179 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
180
181         * fns.c (simplify_char_spec): Try to convert builtin chars to
182         defined chars.
183
184 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
185
186         * chartab.c (Fput_char_attribute): Convert char-specs in value of
187         `<-simplified[^*]*' to characters and put reverse links.
188
189 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
190
191         * chartab.c (Q_subsumptive): Renamed from Q_unified.
192         (Q_subsumptive_from): Renamed from Q_unified_from.
193         (Fchar_feature): Use `Q_subsumptive_from' instead of
194         `Q_unified_from'.
195         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
196         `Q_unified'.
197         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
198         `<-unified' to `<-subsumptive'.
199
200 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
201
202         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
203         inheritance itself; fix typo; stop recursive search if cyclic
204         inheritance is found.
205
206 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
207
208         * chartab.c (Q_denotational): New variable.
209         (Q_denotational_from): New variable.
210         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
211         (put_char_attribute): New function.
212         (Fput_char_attribute): Use `put_char_attribute'; regard
213         `->denotational' and `<-denotational' as same as `->unified' and
214         `<-unified'.
215         (syms_of_chartab): Add new symbols `->denotational' and
216         `<-denotational'.
217
218 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
219
220         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
221         `Fget_char_attribute'.
222         (Fchar_variants): Likewise.
223         (get_char_table): Likewise.
224         (Fchar_feature): New function.
225         (put_char_composition): Use `Fchar_feature' instead of
226         `Fget_char_attribute'.
227         (Fput_char_attribute): Likewise; don't put the target character
228         into its `->unified' value.
229         (syms_of_chartab): Add new builtin function `char-feature'.
230
231 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
232
233         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
234         `Fget_char_attribute'.
235         (char_encode_utf8): Likewise.
236
237         * chartab.h: Add an EXFUN for `Fchar_feature'.
238
239 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
240
241         * chartab.c (Vnext_defined_char_id): New variable.
242         (Fput_char_attribute): Accept characters in `->unified'.
243         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
244         new characters which are not related with builtin char-id ranges.
245         (vars_of_chartab): Add new variable `next-defined-char-id'.
246
247 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
248
249         * chartab.c (Q_unified): New variable.
250         (Q_unified_from): New variable.
251         (Fput_char_attribute): Add code for `->unified'.
252         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
253         XEmacs CHISE.
254
255 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
256
257         * mule-charset.c (decode_ccs_conversion): New function.
258         (decode_defined_char): Use `decode_ccs_conversion'.
259         (decode_builtin_char): Likewise.
260
261 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
262
263         * char-ucs.h: Change some charset-ids of private coded-charsets.
264
265 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
266
267         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
268         (char_encode_as_entity_reference): Likewise.
269         (decode_coding_big5): Modify for `decode_defined_char' and
270         `DECODE_CHAR'.
271         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
272         avoid compiler warning.
273         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
274
275         * mule-charset.c (decode_defined_char): Add new argument
276         `without_inheritance'.
277         (Fdecode_char): Add new optional argument `without_inheritance'.
278         (Fdecode_builtin_char): Modify for `Fdecode_char'.
279
280         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
281         (simplify_char_spec): Likewise.
282
283         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
284         setting.
285
286         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
287         (map_char_table): Likewise.
288         (Fdefine_char): Use `Fdecode_char' without inheritance.
289         (Ffind_char): Modify for `Fdecode_char'.
290
291         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
292
293         * char-ucs.h (decode_defined_char): Add new argument
294         `without_inheritance'.
295         (DECODE_CHAR): Likewise.
296         (MAKE_CHAR): Modify for `DECODE_CHAR'.
297
298 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
299
300         * chartab.c (Vchise_system_db_directory): New variable.
301         (vars_of_chartab): Add new variable `chise-system-db-directory'.
302
303 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
304
305         * chartab.c: EXFUN `Fmount_char_attribute_table'.
306         (print_chartab_range): Don't define when `UTF2000' is defined.
307         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
308         `CHISE_DS_open'.
309
310 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
311
312         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
313         and optional argument `rehash' is specified, call
314         `open_chise_data_source_maybe' before
315         `chise_ds_foreach_char_feature_name' is called.
316
317 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
318
319         * chartab.c (char_attribute_list_reset_map_func): New function
320         when HAVE_LIBCHISE is defined.
321         (Fchar_attribute_list): Add new optional argument `rehash' when
322         HAVE_LIBCHISE is defined.
323         (open_chise_data_source_maybe): Use "chise-db" instead of
324         "char-db".
325         (char_attribute_system_db_file): Likewise.
326         (Fload_char_attribute_table): Use
327         `chise_feature_foreach_char_with_value' instead of
328         `chise_char_feature_value_iterate'.
329
330 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
331
332         * chartab.c (Vchise_db_directory): New variable.
333         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
334
335 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
336
337         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
338         instead of HAVE_CHISE to specify using with libchise.
339
340         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
341
342         * chartab.h: Don't use HAVE_CHISE_CLIENT.
343
344         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
345         defined or HAVE_LIBCHISE_LIBCHISE is defined.
346         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
347         is defined.
348         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
349         HAVE_CHISE to specify using with libchise.
350         (syms_of_chartab): Don't define symbol `system-char-id' when
351         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
352
353 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
354
355         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
356         specify CHISE DB support.
357         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
358         of `char_attribute_system_db_file' to check feature DB file.
359
360         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
361         HAVE_CHISE_CLIENT to specify CHISE DB support.
362
363         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
364         specify CHISE DB support.
365         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
366         not defined.
367         (Freset_char_attribute_table): Use `chise_feature_setup_db'
368         instead of `char_attribute_system_db_file' to check feature DB
369         file.
370
371 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
372
373         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
374         `HAVE_CHISE_CLIENT'.
375
376 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
377
378         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
379         (Fsave_charset_mapping_table): Don't use
380         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
381
382         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
383         (HAVE_LIBCHISE): New macro.
384
385         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
386
387         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
388         (Fsave_char_attribute_table): Don't use
389         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
390
391 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
392
393         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
394         defined.
395         (save_uint16_byte_table): Likewise.
396         (save_byte_table): Likewise.
397         (char_table_get_db): Use `chise_ds_load_char_feature_value'
398         instead of `chise_char_load_feature_value'.
399         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
400
401 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
402
403         * chartab.h (struct Lisp_Char_Table): Delete member
404         `feature_table' if CHISE is defined.
405
406         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
407         (Fcopy_char_table): Likewise.
408         (char_table_open_db_maybe): Likewise.
409         (char_table_close_db_maybe): Likewise.
410         (char_table_get_db): Likewise.
411         (Fmount_char_attribute_table): Likewise.
412         (Fload_char_attribute_table): Likewise.
413
414 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
415
416         * mule-charset.c (load_char_decoding_entry_maybe): Use
417         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
418         `chise_ccs_decode'.
419
420 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
421
422         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
423         instead of `chise_open_data_source'.
424         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
425         `chise_ds_close'.
426
427 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
428
429         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
430         instead of `chise_ds_open_feature_table'.
431         (char_table_close_db_maybe): Don't use `chise_ft_close'.
432
433 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
434
435         * mule-charset.c (Fsave_charset_mapping_table): Use
436         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
437         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
438         `chise_ccs_sync' instead of `chise_ccst_close'.
439         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
440
441         * chartab.c (open_chise_data_source_maybe): Modify for
442         `chise_open_data_source'.
443         (char_table_open_db_maybe): Modify for
444         `chise_ds_open_feature_table'.
445
446 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
447
448         * mule-charset.c (load_char_decoding_entry_maybe): Use
449         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
450         `chise_ccst_close'.
451
452 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
453
454         * mule-charset.c (Fsave_charset_mapping_table): Use
455         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
456         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
457         `chise_dt_put_char' and `chise_dt_close'.
458         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
459         `chise_ccs_decode' and `chise_ccst_close' instead of
460         `chise_ds_open_decoding_table', `chise_dt_get_char' and
461         `chise_dt_close'.
462
463         * chartab.c (char_table_get_db): Use
464         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
465         (load_char_attribute_table_map_func): Modify for
466         `chise_char_feature_value_iterate'.
467         (Fload_char_attribute_table): Use
468         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
469
470 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
471
472         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
473
474 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
475
476         * chartab.c (put_char_table): Modify for inherited coded-charsets
477         in XEmacs CHISE.
478
479 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
480
481         * chartab.c (Fput_char_table_map_function): Fixed.
482         (word_boundary_p): Don't check charset in XEmacs CHISE.
483
484 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
485
486         * mule-charset.c (Fsave_charset_mapping_table): Use
487         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
488         instead of `chise_open_decoding_table'; refer
489         `default_chise_data_source'; use `chise_dt_close' instead of
490         `chise_close_decoding_table'.
491         (load_char_decoding_entry_maybe): Likewise.
492
493         * chartab.c (default_chise_data_source): New variable when `CHISE'
494         is defined.
495         (Fcopy_char_table): `ct->ds' is deleted.
496         (open_chise_data_source_maybe): New function.
497         (Fclose_char_data_source): New function.
498         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
499         use `chise_ds_open_feature_table' instead of
500         `chise_open_feature_table'.
501         (char_table_close_db_maybe): Use `chise_ft_close' instead of
502         `chise_close_feature_table'; `cit->ds' is deleted.
503         (syms_of_chartab): Add new builtin function
504         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
505
506         * chartab.h (default_chise_data_source): New extern variable.
507         (open_chise_data_source_maybe): New prototype.
508         (struct Lisp_Char_Table): Delete `ds'.
509
510 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
511
512         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
513         `CHISE' is defined.
514
515 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
516
517         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
518         not defined; add code for non-libchise setting.
519         (char_table_close_db_maybe): Likewise.
520         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
521         defined.
522         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
523         even if `CHISE' is not defined.
524         (Freset_char_attribute_table): Likewise.
525         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
526         `char_table_close_db_maybe' even if `CHISE' is not defined; use
527         `char_table_get_db'.
528         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
529         `char_table_close_db_maybe' even if `CHISE' is not defined.
530
531 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
532
533         * chartab.c (char_table_open_db_maybe): New function.
534         (char_table_close_db_maybe): New function.
535         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
536         (Freset_char_attribute_table): Likewise.
537         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
538         `char_table_close_db_maybe'.
539         (Fload_char_attribute_table): Likewise.
540
541 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
542
543         * chartab.c: Don't include <chise.h> because it is included in
544         chartab.h.
545         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
546         defined.
547         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
548         `CHISE' is defined.
549         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
550         `CHISE' is defined.
551         (Fclose_char_attribute_table): Close `ct->feature_table' and
552         `ct->ds' when `CHISE' is defined.
553         (Freset_char_attribute_table): Likewise.
554         (load_char_attribute_maybe): Use `cit->ds' and
555         `cit->feature_table' when `CHISE' is defined.
556         (Fload_char_attribute_table): Likewise.
557
558         * chartab.h: Include <chise.h> when `CHISE' is defined.
559         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
560         when `CHISE' is defined.
561
562 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
563
564         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
565         is defined.
566         (char_table_description): Likewise.
567         (Fmake_char_table): Likewise.
568         (Fcopy_char_table): Likewise.
569         (Fmount_char_attribute_table): Likewise.
570         (Fclose_char_attribute_table): Likewise.
571         (Freset_char_attribute_table): Likewise.
572         (load_char_attribute_maybe): Likewise.
573         (Fload_char_attribute_table): Likewise.
574
575         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
576         defined.
577
578 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
579
580         * chartab.c (load_char_attribute_table_map_func): New function
581         when CHISE is defined.
582         (Qload_char_attribute_table_map_function): Don't define when CHISE
583         is defined.
584         (Fload_char_attribute_table_map_function): Likewise.
585         (Fload_char_attribute_table): Use libchise when `CHISE' is
586         defined.
587         (syms_of_chartab): Don't define
588         `load-char-attribute-table-map-function' when CHISE is defined.
589
590 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
591
592         * chartab.c: Include <chise.h> when `CHISE' is defined.
593         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
594
595 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
596
597         * mule-charset.c (charset_code_point): Fix problem when searching
598         in mother CCS fails with `defined_only' mode.
599
600 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
601
602         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
603         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
604         (put_char_composition): Likewise.
605         (Fput_char_attribute): Likewise.
606         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
607
608 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
609
610         * chartab.c (Q_ucs): Deleted.
611         (Fput_char_attribute): Don't refer `->ucs'.
612         (Fdefine_char): Likewise.
613         (Ffind_char): Likewise.
614         (syms_of_chartab): Delete `->ucs'.
615
616 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
617
618         * mule-charset.c (Qmap_cns11643_2): Renamed from
619         `Qchinese_cns11643_2'.
620         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
621         `chinese-cns11643-2'.
622         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
623         `=cns11643-2'.
624
625 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
626
627         * mule-charset.c (Qmap_cns11643_1): Renamed from
628         `Qchinese_cns11643_1'.
629         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
630         `chinese-cns11643-1'.
631         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
632         `=cns11643-1'.
633
634 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
635
636         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
637         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
638         `chinese-gb12345'.
639         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
640         `=gb12345'.
641
642 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
643
644         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
645         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
646         `chinese-gb2312'.
647         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
648         `=gb2312'.
649
650 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
651
652         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
653         (syms_of_mule_charset): Add new symbol `=big5' instead of
654         `chinese-big5'.
655         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
656
657 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
658
659         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
660         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
661         `korean-ksc5601'.
662         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
663         `=ks-x1001'.
664
665 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
666
667         * mule-charset.c (Qmap_jis_x0212): Renamed from
668         `Qjapanese_jisx0212'.
669         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
670         `japanese-jisx0212'.
671         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
672         `=jis-x0212'.
673
674 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
675
676         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
677         `Qjapanese_jisx0208'.
678         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
679         of `japanese-jisx0208'.
680         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
681         `=jis-x0208-1983'.
682
683 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
684
685         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
686         `Qjapanese_jisx0208_1978'.
687         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
688         of `japanese-jisx0208-1978'.
689         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
690         `=jis-x0208-1978'.
691
692 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
693
694         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
695         only for XEmacs CHISE.
696
697 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
698
699         * char-ucs.h: Compact non-ISO-IR charset-ids.
700         (LEADING_BYTE_UCS): Changed to -177.
701         (LEADING_BYTE_CONTROL_1): Changed to -77.
702         (LEADING_BYTE_UCS_BMP): Changed to -176.
703         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
704
705 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
706
707         * mule-charset.c (Qiso_ir): New variable.
708         (Fmake_charset): Recognise new property `iso-ir'.
709         (syms_of_mule_charset): Add new symbol `iso-ir'.
710
711 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
712
713         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
714         n to -n; charset-id of non ISO-IR sets are changed to positive
715         numbers.
716
717 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
718
719         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
720         for &MCS-XXXXXXXX; values.
721
722 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
723
724         * mule.c (Vxemacs_chise_version): Renamed from
725         `Vutf_2000_version'.
726         (vars_of_mule): Add new variable `xemacs-chise-version'; define
727         `utf-2000-version' as an alias for `xemacs-chise-version'.
728
729 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
730
731         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
732         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
733         defined.
734
735         * config.h.in (CHISE): New macro.
736
737 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
738
739         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
740         of `ucs'.
741         (Qmap_ucs): New variable.
742         (syms_of_mule_charset): Add new symbol `=ucs'.
743         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
744
745         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
746         (simplify_char_spec): Likewise.
747
748         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
749
750         * char-ucs.h (Qmap_ucs): New extern variable.
751
752 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
753
754         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
755         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
756         don't define it when UTF2000 is not defined.
757         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
758         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
759         when UTF2000 is not defined.
760         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
761         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
762
763 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
764
765         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
766
767         * mule-charset.c (Vcharset_ucs_gb): Deleted.
768         (Qucs_gb): Deleted.
769         (syms_of_mule_charset): Delete `ucs-gb'.
770         (complex_vars_of_mule_charset): Likewise.
771
772 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
773
774         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
775
776         * mule-charset.c (Vcharset_ucs_cns): Deleted.
777         (Qucs_cns): Deleted.
778         (syms_of_mule_charset): Delete `ucs-cns'.
779         (complex_vars_of_mule_charset): Likewise.
780
781 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
782
783         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
784
785         * mule-charset.c (Vcharset_ucs_jis): Deleted.
786         (Qucs_jis): Deleted.
787         (syms_of_mule_charset): Delete `ucs-jis'.
788         (complex_vars_of_mule_charset): Likewise.
789
790 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
791
792         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
793
794         * mule-charset.c (Vcharset_ucs_ks): Deleted.
795         (Qucs_ks): Deleted.
796         (syms_of_mule_charset): Delete `ucs-ks'.
797         (complex_vars_of_mule_charset): Likewise.
798
799 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
800
801         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
802         (Qideograph_daikanwa_2): Deleted.
803         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
804         (complex_vars_of_mule_charset): Likewise.
805
806         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
807         (LEADING_BYTE_DAIKANWA_1): Deleted.
808         (LEADING_BYTE_DAIKANWA_2): Deleted.
809         (MIN_CHAR_DAIKANWA): Deleted.
810         (MAX_CHAR_DAIKANWA): Deleted.
811
812 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
813
814         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
815         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
816         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
817
818         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
819         (Vcharset_ideograph_daikanwa): Deleted.
820         (Qideograph_hanziku_{1..12}): Deleted.
821         (Qideograph_daikanwa): Deleted.
822         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
823         Vcharset_ideograph_daikanwa.
824         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
825         `ideograph-hanziku-{1..12}'.
826         (complex_vars_of_mule_charset): Likewise.
827
828 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
829
830         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
831
832         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
833         (Qideograph_gt_pj_{1..11}): Deleted.
834         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
835         (complex_vars_of_mule_charset): Likewise.
836
837 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
838
839         * mule-charset.c (Vcharset_ucs_big5): Deleted.
840         (Vcharset_ideograph_gt): Deleted.
841         (Qucs_big5): Deleted.
842         (Qideograph_gt): Deleted.
843         (syms_of_mule_charset): Delete symbol `ucs-big5' and
844         `ideograph-gt'.
845         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
846         and `ideograph-gt'.
847
848         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
849         (LEADING_BYTE_GT): Deleted.
850         (MIN_CHAR_GT): Deleted.
851         (MAX_CHAR_GT): Deleted.
852
853 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
854
855         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
856
857 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
858
859         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
860         (save_uint16_byte_table): Likewise.
861         (save_byte_table): Likewise; convert values by it.
862         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
863         for `ideographic-structure'.
864         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
865         as the filter for `ideographic-structure'.
866
867 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
868
869         * chartab.c (put_char_composition): New function.
870         (Fput_char_attribute): Use `put_char_composition'; use
871         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
872
873         * fns.c (simplify_char_spec): New function.
874         (char_ref_simplify_spec): New function.
875         (Fchar_refs_simplify_char_specs): New function.
876         (syms_of_fns): Add new builtin function
877         `char-refs-simplify-char-specs'.
878
879 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
880
881         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
882         (Qideograph_cbeta): Deleted.
883         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
884         (complex_vars_of_mule_charset): Likewise.
885
886         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
887         (MIN_CHAR_CBETA): Comment out.
888         (MAX_CHAR_CBETA): Likewise.
889
890 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
891
892         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
893         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
894         CHISE client feature.
895
896 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
897
898         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
899
900 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
901
902         * mule-charset.c (charset_lookup_description_1): Use
903         `NUM_LEADING_BYTES' in UTF-2000.
904
905 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
906
907         * char-ucs.h (GC_CHARSETP): Deleted.
908
909 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
910
911         * char-ucs.h (MAX_CHAR_GT): Updated.
912
913 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
914
915         * text-coding.c: Sync with XEmacs 21.4.10.
916
917 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
918
919         * mule-charset.c (Vcharset_china3_jef): Deleted.
920         (Qchina3_jef): Deleted.
921         (syms_of_mule_charset): Don't define `china3-jef'.
922         (complex_vars_of_mule_charset): Likewise.
923
924         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
925         (MIN_CHAR_CHINA3_JEF): Comment out.
926         (MAX_CHAR_CHINA3_JEF): Comment out.
927
928 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
929
930         * mule-charset.c (Vcharset_ucs_gb): New variable.
931         (Qucs_gb): New variable.
932         (syms_of_mule_charset): Add new symbol `ucs-gb'.
933         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
934
935         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
936
937 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
938
939         * mule-charset.c (charset_code_point): if a coded-charset has a
940         final-byte, don't inherit the builtin range of the mother CCS.
941
942 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
943
944         * mule-charset.c (charset_code_point): Fix problem about
945         inheritance.
946
947 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
948
949         * mule-charset.c (decode_builtin_char): Reorganized.
950
951 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
952
953         * text-coding.c (char_encode_as_entity_reference): Modify for
954         `charset_code_point'.
955         (char_encode_shift_jis): Likewise.
956         (char_encode_big5): Likewise.
957         (char_encode_utf8): Likewise.
958         (char_encode_iso2022): Likewise.
959
960         * mule-charset.c (charset_code_point): Add new argument
961         `defined_only'.
962         (Fencode_char): Add new optional argument `defined_only'.
963
964         * chartab.c (put_char_table): Modify for `charset_code_point'.
965
966         * char-ucs.h (charset_code_point): Add new argument
967         `defined_only'.
968         (encode_char_1): Modify for `charset_code_point'.
969
970 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
971
972         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
973         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
974
975 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
976
977         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
978         (Qjis_x0208): Likewise.
979         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
980         XCHARSET_FINAL(charset).
981         (charset_code_point): Modify condition for final-byte based
982         builtin-chars.
983         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
984         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
985         in UTF-2000; specify `=jis-x0208' as the mother of
986         `japanese-jisx0208-1978', `japanese-jisx0208' and
987         `japanese-jisx0208-1990' in UTF-2000.
988
989 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
990
991         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
992
993 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
994
995         * text-coding.c (decode_coding_utf16): Support UTF-16.
996         (char_encode_utf16): Fixed.
997
998 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
999
1000         * text-coding.c (Qutf16): New variable in MULE.
1001         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1002         (Fcoding_system_type): Add `utf-16' in MULE.
1003         (struct detection_state): Add a structure for utf16 in MULE.
1004         (detect_coding_type): Setup st->utf16.mask in MULE.
1005         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1006         MULE.
1007         (reset_encoding_stream): Use `char_encode_utf16' and
1008         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1009         (detect_coding_utf16): New function [incomplete].
1010         (decode_coding_utf16): New function [support only UCS-2].
1011         (char_encode_utf16): New function.
1012         (char_finish_utf16): New function.
1013         (syms_of_file_coding): Add new symbol `utf-16'; setup
1014         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1015
1016         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1017         UTF-2000.
1018         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1019         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1020
1021 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1022
1023         * chartab.c (put_char_table): When a charset is specified as a
1024         range in UTF-2000, don't support builtin characters.
1025
1026 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1027
1028         * mule-charset.c (decode_defined_char): Don't refer external
1029         database if Qunbound or Qnil are found.
1030         (Fsave_charset_mapping_table): Don't define it if
1031         HAVE_CHISE_CLIENT is not defined.
1032         (Freset_charset_mapping_table): New function.
1033         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1034         found in external database.
1035         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1036         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1037         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1038
1039 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1040
1041         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1042         not.
1043
1044 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1045
1046         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1047         Q_lowercase, Q_uppercase in UTF-2000.
1048
1049         * chartab.c (get_char_table): Add special code for the standard
1050         case table to use character attribute `->downcase' and
1051         `->uppercase' for case operations in UTF-2000.
1052
1053         * casetab.c (Qflippedcase): New variable in UTF-2000.
1054         (Q_lowercase): Likewise.
1055         (Q_uppercase): Likewise.
1056         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1057         and `->uppercase' in UTF-2000.
1058         (complex_vars_of_casetab): Assign attribute name `downcase' to
1059         downcase and CANON table of Vstandard_case_table in UTF-2000;
1060         assign attribute name `flippedcase' to upcase and EQV table of
1061         Vstandard_case_table in UTF-2000.
1062
1063 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1064
1065         * text-coding.c (decode_add_er_char): Support isolated-chars.
1066         (char_encode_as_entity_reference): Likewise.
1067
1068 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1069
1070         * emacs.c (Vutf_2000_lisp_directory): New variable.
1071         (Vconfigure_utf_2000_lisp_directory): Likewise.
1072         (complex_vars_of_emacs): Add new variable
1073         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1074
1075 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1076
1077         * char-ucs.h (DECODE_CHAR): Delete special code for
1078         `chinese-big5-1' and `chinese-big5-2'.
1079
1080         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1081         (Qbig5_2): Likewise.
1082         (decode_defined_char): Support CONVERSION_BIG5_1 and
1083         CONVERSION_BIG5_2.
1084         (decode_builtin_char): Likewise.
1085         (charset_code_point): Likewise.
1086         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1087         'conversion in UTF-2000.
1088         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1089         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1090         `chinese-big5-2' as children of `chinese-big5'.
1091
1092         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1093         (CONVERSION_BIG5_2): New macro.
1094
1095 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1096
1097         * text-coding.c (char_encode_big5): Support entity-reference.
1098
1099 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1100
1101         * text-coding.c (char_encode_as_entity_reference): New function.
1102         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1103
1104 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1105
1106         * text-coding.c (decode_coding_big5): Support entity-reference
1107         decoding feature.
1108
1109 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1110
1111         * text-coding.c (allocate_coding_system): Initialize initial
1112         charsets for CODESYS_UTF8.
1113         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1114         charset-g2 for CODESYS_UTF8.
1115         (decode_coding_utf8): Use charset-g0.
1116         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1117         to force variants to map to UCS.
1118
1119 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1120
1121         * text-coding.c (Qutf_8_mcs): New variable.
1122         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1123         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1124         instead of `utf-8' in UTF-2000.
1125
1126 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1127
1128         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1129         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1130         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1131         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1132         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1133         CONVERSION_96x96x96x96 are introduced.
1134         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1135         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1136         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1137
1138         * char-ucs.h (CONVERSION_94): New macro.
1139         (CONVERSION_96): New macro.
1140         (CONVERSION_94x94): New macro.
1141         (CONVERSION_96x96): New macro.
1142         (CONVERSION_94x94x94): New macro.
1143         (CONVERSION_96x96x96): New macro.
1144         (CONVERSION_94x94x94x60): New macro.
1145         (CONVERSION_94x94x94x94): New macro.
1146         (CONVERSION_96x96x96x96): New macro.
1147
1148 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1149
1150         * chartab.c (Vcharacter_variant_table): Deleted.
1151         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1152         of `Vcharacter_variant_table'.
1153         (Fput_char_attribute): Likewise.
1154         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1155         (complex_vars_of_chartab): Likewise.
1156
1157 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1158
1159         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1160
1161         * fns.c (Qideographic_structure): New variable.
1162         (Qkeyword_char): New variable.
1163         (ids_format_unit): New function.
1164         (Fideographic_structure_to_ids): New function.
1165         (syms_of_fns): Add new symbols `ideographic-structure' and
1166         `:char'; add new builtin function `ideographic-structure-to-ids'.
1167
1168         * data.c (Fchar_ref_p): New function.
1169         (syms_of_data): Add new builtin function `char-ref-p'.
1170
1171         * chartab.h: Add an EXFUN for `Ffind_char'.
1172
1173 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1174
1175         * text-coding.c (Vcharacter_composition_table): Deleted.
1176         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1177         in every UTF-2000.
1178
1179         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1180         UTF-2000.
1181         (Vcharacter_composition_table): Deleted.
1182         (Fget_composite_char): Use the implementation for external-DB
1183         support in every UTF-2000.
1184         (Fput_char_attribute): Likewise.
1185         (char_attribute_system_db_file): Don't define if external-DB
1186         feature is not available.
1187         (Fsave_char_attribute_table): Likewise.
1188         (Fmount_char_attribute_table): Likewise.
1189         (Fclose_char_attribute_table): Likewise.
1190         (Freset_char_attribute_table): Likewise.
1191         (Fload_char_attribute_table): Likewise.
1192         (syms_of_chartab): Don't define `save-char-attribute-table',
1193         `mount-char-attribute-table', `reset-char-attribute-table',
1194         `close-char-attribute-table' and `load-char-attribute-table' if
1195         external-DB feature is not available.
1196         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1197
1198 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1199
1200         * text-coding.c (Qcomposition): Add extern if external-DB feature
1201         is supported.
1202         (Vcharacter_composition_table): Don't add extern if external-DB
1203         feature is supported.
1204         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1205         character composition rule if external-DB feature is supported.
1206
1207         * chartab.c (Vcharacter_composition_table): Don't define if
1208         external-DB feature is supported.
1209         (Qcomposition): New variable.
1210         (Fget_composite_char): New implementation for external-DB support.
1211         (Fput_char_attribute): Use `composition' property of each
1212         character instead of `Vcharacter_composition_table' to store
1213         character-composition rules if external-DB feature is supported.
1214         (syms_of_chartab): Add new symbol `composition'.
1215         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1216         external-DB feature is supported.
1217
1218 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1219
1220         * chartab.c (Vchar_db_stingy_mode): New variable.
1221         (load_char_attribute_maybe): Close database if
1222         Vchar_db_stingy_mode is not NIL.
1223         (Fload_char_attribute_table_map_function): Use
1224         `get_char_id_table_0' instead of `get_char_id_table'.
1225         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1226
1227         * chartab.h (get_char_id_table_0): New inline function.
1228         (get_char_id_table): Use `get_char_id_table_0'.
1229
1230 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1231
1232         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1233         and `COMPOSE_ADD_CHAR'.
1234         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1235
1236 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1237
1238         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1239         instead of `DECODE_ADD_UCS_CHAR'.
1240         (COMPOSE_ADD_CHAR): Likewise.
1241
1242 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1243
1244         * text-coding.c (decode_flush_er_chars): New inline function.
1245         (decode_add_er_char): New function.
1246         (decode_coding_utf8): Use `decode_flush_er_chars' and
1247         `decode_add_er_char'.
1248
1249 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1250
1251         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1252         done before `decode_output_utf8_partial_char'.
1253
1254         * mule-charset.c (complex_vars_of_mule_charset): Specify
1255         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1256         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1257
1258 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1259
1260         * mule-charset.c (decode_defined_char): New function; search
1261         mother.
1262         (decode_builtin_char): Don't search mother if
1263         XCHARSET_MAX_CODE(charset) == 0.
1264         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1265         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1266         (Fdecode_char): Use `decode_defined_char' instead of
1267         `DECODE_DEFINED_CHAR'.
1268         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1269         mother of `Vcharset_ucs_jis'.
1270
1271         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1272         instead of `DECODE_DEFINED_CHAR'.
1273
1274         * char-ucs.h (decode_defined_char): Renamed from
1275         `DECODE_DEFINED_CHAR'; changed to normal function.
1276         (DECODE_CHAR): Use `decode_defined_char' instead of
1277         `DECODE_DEFINED_CHAR'.
1278
1279         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1280
1281 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1282
1283         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1284
1285         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1286         variable.
1287         (Quse_entity_reference): New variable.
1288         (Qd): New variable.
1289         (Qx): New variable.
1290         (QX): New variable.
1291         (coding_system_description): Add description for
1292         `ccs_priority_list'.
1293         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1294         (allocate_coding_system): Initialize `ccs_priority_list' in
1295         UTF-2000.
1296         (Fmake_coding_system): Add description about
1297         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1298         (codesys).
1299         (Fcoding_system_property): Accept `disable-composition' and
1300         `use-entity-reference' in UTF-2000.
1301         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1302         in UTF-2000.
1303         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1304         (decode_coding_utf8): Decode entity-reference if
1305         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1306         (char_encode_utf8): Encode non-Unicode characters as
1307         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1308         (str->codesys).
1309         (syms_of_file_coding): Add new symbols `use-entity-reference',
1310         `d', `x', `X'.
1311         (vars_of_file_coding): Add new variable
1312         `coded-charset-entity-reference-alist'.
1313         (complex_vars_of_file_coding): Declare `disable-composition' and
1314         `use-entity-reference' to be coding-system-properties in UTF-2000.
1315
1316         * file-coding.h (struct Lisp_Coding_System): Add new member
1317         `use_entity_reference' and `ccs_priority_list'.
1318         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1319         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1320         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1321
1322 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1323
1324         * chartab.c (save_uint8_byte_table): Don't clear the table.
1325         (save_uint16_byte_table): Likewise.
1326         (save_byte_table): Likewise.
1327         (Fmount_char_attribute_table): New function.
1328         (syms_of_chartab): Add new builtin function
1329         `mount-char-attribute-table'.
1330
1331 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1332
1333         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1334         "w+" mode.
1335         (load_char_decoding_entry_maybe): Open database as read-only mode.
1336
1337         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1338         open database as "w+" mode.
1339         (load_char_attribute_maybe): Open database as read-only mode.
1340         (Fload_char_attribute_table): Likewise.
1341
1342 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1343
1344         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1345         (char_table_description): Delete member `db_file'.
1346         (Fmake_char_table): Don't refer `ct->db_file'.
1347         (Fcopy_char_table): Likewise.
1348         (Fsave_char_attribute_table): Likewise.
1349         (Fclose_char_attribute_table): Likewise.
1350         (Freset_char_attribute_table): Likewise.
1351         (load_char_attribute_maybe): Likewise.
1352         (Fload_char_attribute_table): Likewise.
1353
1354         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1355
1356 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1357
1358         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1359         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1360         `ct->db' is living.
1361         (load_char_attribute_maybe): Likewise.
1362         (Fload_char_attribute_table): Likewise.
1363
1364 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1365
1366         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1367         `ct->db_file' unconditionally.
1368
1369 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1370
1371         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1372         UTF-2000.
1373         (char_table_description): Add description for `db_file' and `db'
1374         in UTF-2000.
1375         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1376         UTF-2000.
1377         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1378         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1379         (Fclose_char_attribute_table): New function.
1380         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1381         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1382         and `cit->db'.
1383         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1384         (syms_of_chartab): Add new builtin function
1385         `Fclose_char_attribute_table'.
1386
1387 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1388
1389         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1390         `db' in UTF-2000.
1391         (load_char_attribute_maybe): Change interface.
1392         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1393
1394 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1395
1396         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1397
1398 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1399
1400         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1401         instead of `DECODE_CHAR' for mother; don't use special code for
1402         chinese-big5 to use code space of chinese-big5-1 and
1403         chinese-big5-2.
1404         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1405         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1406
1407         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1408         (MAX_CHAR_BIG5_CDP): Revival.
1409
1410 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1411
1412         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1413         the XLFD registry-encoding name of `chinese-big5'.
1414
1415 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1416
1417         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1418         (Qchinese_big5_cdp): Deleted.
1419         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1420         (complex_vars_of_mule_charset): Delete coded-charset
1421         `chinese-big5-cdp'.
1422
1423         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1424         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1425         `CHARSET_ID_OFFSET - n' for private CCS.
1426         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1427         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1428         of `MIN_LEADING_BYTE'.
1429         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1430         `(CHARSET_ID_OFFSET - 97)'.
1431         (MIN_CHAR_BIG5_CDP): Deleted.
1432         (MAX_CHAR_BIG5_CDP): Deleted.
1433
1434 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1435
1436         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1437
1438 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1439
1440         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1441         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1442         chartab.c].
1443
1444         * chartab.c (Vutf_2000_version): Moved to mule.c.
1445         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1446
1447 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1448
1449         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1450         when HAVE_CHISE_CLIENT is not defined.
1451
1452         * mule.c (vars_of_mule): Provide feature `chise' when
1453         HAVE_CHISE_CLIENT is defined.
1454
1455 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1456
1457         * config.h.in (UTF2000): Add comment.
1458         (HAVE_CHISE_CLIENT): New macro.
1459
1460 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1461
1462         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1463         CONSP.
1464         (Fput_char_attribute): Likewise.
1465         (char_attribute_system_db_file): Encode file-name of attribute.
1466         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1467         the initial value.
1468
1469 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1470
1471         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1472         (Fsave_charset_mapping_table): Use
1473         `char_attribute_system_db_file'.
1474         (load_char_decoding_entry_maybe): Likewise.
1475
1476         * chartab.h (Qsystem_char_id): New external variable.
1477         (char_attribute_system_db_file): New prototype.
1478
1479         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1480         (char_attribute_system_db_file): New function.
1481         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1482         (Freset_char_attribute_table): Likewise.
1483         (load_char_attribute_maybe): Likewise.
1484         (Fload_char_attribute_table): Likewise.
1485         (syms_of_chartab): Add new symbol `system-char-id'.
1486
1487 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1488
1489         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1490         `XCHARSET_GRAPHIC(ccs)'.
1491
1492 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1493
1494         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1495
1496 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1497
1498         * chartab.c (Q_ucs_variants): New variable.
1499         (syms_of_chartab): Add new symbol `->ucs-variants'.
1500         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1501         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1502         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1503
1504         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1505
1506         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1507         `HAVE_DATABASE' is defined.
1508         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1509         `HAVE_DATABASE' is defined.
1510
1511 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1512
1513         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1514         attribute-table.
1515         (Freset_char_attribute_table): New function.
1516         (syms_of_chartab): Add new builtin function
1517         `reset-char-attribute-table'.
1518
1519 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1520
1521         * chartab.c (load_char_attribute_maybe): Don't make directories.
1522
1523 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1524
1525         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1526
1527         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1528         for decoding-table.
1529
1530 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1531
1532         * mule-charset.c (Fsave_charset_mapping_table): Use
1533         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1534
1535         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1536         instead of `XCHARSET_CHARS'.
1537
1538 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1539
1540         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1541         (XCHARSET_BYTE_SIZE): Likewise.
1542
1543         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1544         mule-charset.c].
1545         (XCHARSET_BYTE_SIZE): Likewise.
1546
1547 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1548
1549         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1550         data-directory to store database.
1551         (Fsave_char_attribute_table): Likewise.
1552         (load_char_attribute_maybe): Likewise.
1553         (Fload_char_attribute_table): Likewise.
1554
1555 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1556
1557         * mule-charset.c (Fsave_charset_mapping_table): New function.
1558         (syms_of_mule_charset): Add new builtin function
1559         `save-charset-mapping-table'.
1560
1561 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1562
1563         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1564         (get_ccs_octet_table): New inline function.
1565         (put_ccs_octet_table): Likewise.
1566         (decoding_table_put_char): Use `get_ccs_octet_table' and
1567         `put_ccs_octet_table'.
1568         (decoding_table_remove_char): Use `decoding_table_put_char'.
1569         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1570
1571         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1572         into encoding_table.
1573         (make_charset): Use Qunbound instead Qnil as initial value of
1574         decoding_table.
1575
1576 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1577
1578         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1579         element is Qunloaded.
1580         (map_over_uint16_byte_table): Likewise.
1581         (map_over_byte_table): Likewise.
1582         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1583         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1584         database support, load encoding-table of the specified
1585         coded-charset if it is not loaded yet.
1586         (save_uint8_byte_table): New function of UTF-2000 with external
1587         database support.
1588         (save_uint16_byte_table): Likewise.
1589         (save_byte_table): Likewise.
1590         (Fput_char_attribute): Don't store value into external database
1591         even if the external database feature is supported in UTF-2000;
1592         set `attribute' as name of char-table if the external database
1593         feature is supported.
1594         (Fsave_char_attribute_table): New function in UTF-2000.
1595         (syms_of_chartab): Add new builtin function
1596         `save-char-attribute-table' in UTF-2000.
1597
1598 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1599
1600         * chartab.c (char_attribute_table_to_put): New variable in
1601         UTF-2000.
1602         (Qput_char_table_map_function): Likewise.
1603         (value_to_put): Likewise.
1604         (Fput_char_table_map_function): New function in UTF-2000.
1605         (put_char_table): Use `Fmap_char_attribute' for
1606         CHARTAB_RANGE_CHARSET in UTF-2000.
1607         (Fput_char_attribute): Store symbol instead of string in
1608         `XCHAR_TABLE_NAME (table)'.
1609         (load_char_attribute_maybe): Likewise.
1610         (syms_of_chartab): Add new symbol/function
1611         `put-char-table-map-function'.
1612
1613 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1614
1615         * database.h: Add new EXFUN for `Fmap_database'.
1616
1617         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1618         (syms_of_database): Likewise.
1619
1620         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1621         UTF-2000.
1622         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1623         (XCHAR_TABLE_UNLOADED): Likewise.
1624
1625         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1626         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1627         HAVE_DATABASE is defined.
1628         (char_attribute_table_to_load): New variable of UTF-2000 with
1629         external database support.
1630         (Qload_char_attribute_table_map_function): Likewise.
1631         (Fload_char_attribute_table_map_function): New function of
1632         UTF-2000 with external database support.
1633         (Fload_char_attribute_table): New function of UTF-2000.
1634         (Fmap_char_attribute): Call Fload_char_attribute_table if
1635         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1636         (syms_of_chartab): Add new symbol and function
1637         `load-char-attribute-table-map-function' in UTF-2000 with external
1638         database support; add new function `load-char-attribute-table' in
1639         UTF-2000.
1640
1641 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1642
1643         * chartab.h (load_char_attribute_maybe): New prototype for
1644         UTF-2000 with DATABASE support.
1645         (get_char_id_table): Use `load_char_attribute_maybe' if
1646         HAVE_DATABASE is defined.
1647
1648         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1649         with DATABASE support.
1650
1651 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1652
1653         * chartab.c (Fput_char_attribute): Use S-expression as key of
1654         external database.
1655
1656         * chartab.h (get_char_id_table): Use S-expression as key of
1657         external database.
1658
1659 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1660
1661         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1662         if an element is not loaded, load the corresponding attributes
1663         from an external database.
1664         (map_over_uint16_byte_table): Likewise.
1665         (map_over_byte_table): Likewise.
1666         (map_char_table): Modify for `map_over_uint8_byte_table',
1667         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1668         element is not loaded, load the corresponding attributes from an
1669         external database.
1670         (Fput_char_attribute): Change initial values to Qunloaded.
1671
1672         * chartab.h (get_char_id_table): If a character attribute is not
1673         loaded and the attribute value is not found in an external
1674         database, store Qunbound as the attribute value.
1675
1676 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1677
1678         * chartab.c (BT_UINT8_unloaded): New macro.
1679         (UINT8_VALUE_P): Accept Qunloaded.
1680         (UINT8_ENCODE): Likewise.
1681         (UINT8_DECODE): Likewise.
1682         (BT_UINT16_unloaded): New macro.
1683         (UINT16_VALUE_P): Accept Qunloaded.
1684         (UINT16_ENCODE): Likewise.
1685         (UINT16_DECODE): Likewise.
1686         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1687         BT_UINT16_unloaded.
1688         (mark_char_table): Mark `ct->name' in UTF-2000.
1689         (char_table_description): Add `name' in UTF-2000.
1690         (Fmake_char_table): Initialize `ct->name'.
1691         (Fcopy_char_table): Copy `ct->name'.
1692         (Fput_char_attribute): Store value into an external database if
1693         HAVE_DATABASE is defined.
1694
1695         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1696         UTF-2000.
1697         (CHAR_TABLE_NAME): New macro in UTF-2000.
1698         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1699         (get_char_id_table): Try to read an external database if Qunloaded
1700         is stored in a table.
1701
1702         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1703         Qunloaded.
1704
1705 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1706
1707         * database.h: Add EXFUN definitions for Fopen_database,
1708         Fput_database, Fget_database and Fclose_database.
1709
1710         * data.c (Qunloaded): New variable in UTF-2000.
1711
1712         * lisp.h (Qunloaded): New variable in UTF-2000.
1713
1714 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1715
1716         * mule-charset.c (put_char_ccs_code_point): Modify for
1717         `decoding_table_remove_char' and `decoding_table_put_char'.
1718         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1719
1720         * char-ucs.h (decoding_table_remove_char): Change arguments to
1721         hide decoding_table vector.
1722         (decoding_table_put_char): Likewise.
1723
1724 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1725
1726         * mule-charset.c (decoding_table_remove_char): Moved to
1727         char-ucs.h.
1728         (decoding_table_put_char): Likewise.
1729
1730         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1731         from mule-charset.c].
1732         (decoding_table_remove_char): New inline function [moved from
1733         mule-charset.c].
1734         (decoding_table_put_char): Likewise.
1735
1736 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1737
1738         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1739         extension.
1740
1741 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1742
1743         * mule-charset.c (decode_builtin_char): Support mother charsets.
1744
1745 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1746
1747         * mule-charset.c (Q94x94x60): New variable.
1748         (charset_code_point): Support conversion `94x94x60'.
1749         (Fmake_charset): Likewise.
1750         (syms_of_mule_charset): Add new symbol `94x94x60'.
1751
1752         * char-ucs.h (CONVERSION_94x94x60): New macro.
1753
1754 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1755
1756         * mule-charset.c (charset_code_point): Unify code about
1757         `code-offset'.
1758
1759 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1760
1761         * mule-charset.c (charset_code_point): Merge code about builtin
1762         characters into code about mother charsets; don't use
1763         `range_charset_code_point'.
1764         (range_charset_code_point): Deleted.
1765
1766 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1767
1768         * mule-charset.c (Qcode_offset): New variable.
1769         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1770         `max-code'; accept new property `code-offset'.
1771         (syms_of_mule_charset): Add new symbol `code-offset'.
1772
1773 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1774
1775         * mule-charset.c (range_charset_code_point): Fixed.
1776
1777 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1778
1779         * mule-charset.c (decode_builtin_char): Change semantics of
1780         code-offset of coded-charset.
1781         (charset_code_point): Likewise.
1782         (range_charset_code_point): Likewise.
1783         (complex_vars_of_mule_charset): Modify for the change.
1784
1785 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1786
1787         * mule-charset.c (Fencode_char): Reverse arguments.
1788
1789         * mule-charset.c (charset_code_point): Fixed.
1790
1791 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1792
1793         * mule-charset.c (Vcharset_mojikyo): Deleted.
1794         (Vcharset_mojikyo_2022_1): Deleted.
1795         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1796         (Qmin_code): New variable in UTF-2000.
1797         (Qmax_code): Likewise.
1798         (Qmother): Likewise.
1799         (Qconversion): Likewise.
1800         (Q94x60): Likewise.
1801         (Qmojikyo): Deleted.
1802         (Qmojikyo_2022_1): Deleted.
1803         (Qmojikyo_pj_{1..22}): Deleted.
1804         (mark_charset): Mark `cs->mother'.
1805         (charset_description): Add description for `mother'.
1806         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1807         new arguments `mother' and `conversion'; use
1808         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1809         (charset_code_point): Moved from char-ucs.h; support `mother'
1810         charset feature.
1811         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1812         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1813         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1814         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1815         allow 2 as the value of `graphic' in UTF-2000; add new properties
1816         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1817         require `final' in UTF-2000; modify for `make_charset'.
1818         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1819         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1820         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1821         (Fencode_char): New function.
1822         (syms_of_mule_charset): Add new builtin function `encode-char' in
1823         UTF-2000; add new symbols `min-code', `max-code', `mother',
1824         `conversion' and `94x60'; delete symbols `mojikyo',
1825         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1826         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1827         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1828         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1829
1830         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1831         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1832
1833         * char-ucs.h (Vcharset_mojikyo): Deleted.
1834         (Vcharset_mojikyo_2022_1): Deleted.
1835         (LEADING_BYTE_MOJIKYO): Deleted.
1836         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1837         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1838         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1839         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1840         add new member `mother'; add new member `conversion'.
1841         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1842         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1843         (CHARSET_MOTHER): New macro.
1844         (CHARSET_CONVERSION): New macro.
1845         (CONVERSION_IDENTICAL): New macro.
1846         (CONVERSION_94x60): New macro.
1847         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1848         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1849         (XCHARSET_MOTHER): New macro.
1850         (XCHARSET_CONVERSION): New macro.
1851         (MIN_CHAR_MOJIKYO): Deleted.
1852         (MAX_CHAR_MOJIKYO): Deleted.
1853         (DECODE_MOJIKYO_2022): Deleted.
1854         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1855         (charset_code_point): Changed to non-inline function.
1856         (encode_char_1): Use `charset_code_point'.
1857         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1858
1859 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1860
1861         * lread.c (read_compiled_function): Fix prototype.
1862         (read_vector): Likewise.
1863
1864 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1865
1866         * lrecord.h (struct lrecord_header): Delete `older'.
1867         (set_lheader_implementation): Delete code for `older'.
1868         (set_lheader_older_implementation): Deleted.
1869         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1870         (OLDER_RECORD_P): Deleted.
1871         (OLDER_RECORD_HEADER_P): Deleted.
1872         (alloc_older_lcrecord): Deleted.
1873         (alloc_older_lcrecord_type): Deleted.
1874
1875         * alloc.c (all_older_lcrecords): Deleted.
1876         (alloc_older_lcrecord): Deleted.
1877         (disksave_object_finalization_1): Delete code for older objects.
1878         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1879         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1880
1881 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1882
1883         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1884         instead of `make_older_vector'.
1885         (put_char_ccs_code_point): Likewise.
1886         (mark_charset): Mark `cs->decoding_table'.
1887         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1888
1889         * lisp.h (make_older_vector): Deleted.
1890         (make_vector_newer): Deleted.
1891
1892         * config.h.in (HAVE_GGC): Deleted.
1893
1894         * alloc.c (make_older_vector): Deleted.
1895         (make_vector_newer_1): Deleted.
1896         (make_vector_newer): Deleted.
1897
1898 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1899
1900         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1901         (Qideograph_daikanwa_2): New variable.
1902         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1903         (complex_vars_of_mule_charset): Add new coded-charset
1904         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1905         `LEADING_BYTE_DAIKANWA'.
1906
1907         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1908         (LEADING_BYTE_DAIKANWA_1): New macro.
1909         (LEADING_BYTE_DAIKANWA_2): New macro.
1910         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1911
1912 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1913
1914         * mule-charset.c (complex_vars_of_mule_charset): Change
1915         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1916         the second revised version.
1917
1918 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1919
1920         * mule-charset.c (Vcharset_ucs_smp): New variable.
1921         (Vcharset_ucs_sip): New variable.
1922         (Qucs_smp): New variable.
1923         (Qucs_sip): New variable.
1924         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1925         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1926         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1927         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1928         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1929         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1930
1931         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1932         (LEADING_BYTE_UCS_SIP): New macro.
1933         (MIN_CHAR_SMP): New macro.
1934         (MAX_CHAR_SMP): New macro.
1935         (MIN_CHAR_SIP): New macro.
1936         (MAX_CHAR_SIP): New macro.
1937
1938 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
1939
1940         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
1941         utf-2000.
1942
1943 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1944
1945         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
1946         value; don't store value into `encoding_table' of `Lisp_Charset'.
1947         (mark_charset): `encoding_table' was deleted.
1948         (charset_description): Likewise.
1949         (make_charset): Likewise.
1950         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
1951         `put_char_ccs_code_point'.
1952
1953         * chartab.h (Fput_char_attribute): New EXFUN.
1954
1955         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
1956         is unified with normal symbol space.
1957         (Fget_char_attribute): Likewise.
1958         (Fput_char_attribute): Likewise; behavior of
1959         `put_char_ccs_code_point' is changed.
1960
1961         * char-ucs.h: Include "elhash.h".
1962         (Vchar_attribute_hash_table): New external variable.
1963         (struct Lisp_Charset): Delete `encoding_table'.
1964         (CHARSET_ENCODING_TABLE): New implementation; refer
1965         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
1966         `Lisp_Charset'.
1967
1968 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1969
1970         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
1971         (cs) == 0.
1972
1973 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1974
1975         * text-coding.c (char_encode_big5): Prefer charset-g1 than
1976         `chinese-big5'.
1977
1978 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1979
1980         * chartab.c (uint8_byte_table_description): New constant.
1981         (uint8-byte-table): Use `uint8_byte_table_description'.
1982         (uint16_byte_table_description): New constant.
1983         (uint16-byte-table): Use `uint16_byte_table_description'.
1984
1985 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1986
1987         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
1988         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
1989
1990 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1991
1992         * mule-charset.c (Vcharset_ucs_ks): New variable.
1993         (Qucs_ks): New variable.
1994         (syms_of_mule_charset): Add new symbol `ucs-ks'.
1995         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
1996
1997         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
1998
1999 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2000
2001         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2002         (Fdecode_char): Likewise.
2003
2004         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2005         chartab.h.
2006         (Fdefine_char): Modify for Fdecode_char.
2007         (Ffind_char): Likewise.
2008
2009         * mule-charset.c (Fdecode_char): Add new optional argument
2010         `defined-only'.
2011         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2012
2013 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2014
2015         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2016         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2017         (allocate_coding_system): Initialize initial-charsets of
2018         CODESYS_BIG5 in XEmacs UTF-2000.
2019         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2020         CODESYS_BIG5 in XEmacs UTF-2000.
2021         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2022         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2023
2024         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2025         variables.
2026         (Qideograph_hanziku_{1 .. 12}): Likewise.
2027         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2028         .. 12}'.
2029         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2030         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2031         `ideograph-hanziku-{1 .. 12}'.
2032
2033         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2034         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2035         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2036         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2037         (DECODE_DEFINED_CHAR): New inline function.
2038         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2039
2040 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2041
2042         * mule-charset.c (Vcharset_china3_jef): Renamed from
2043         `Vcharset_japanese_jef_china3'.
2044         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2045         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2046         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2047         (syms_of_mule_charset): Rename `china3-jef' from
2048         `japanese-jef-china3'.
2049         (complex_vars_of_mule_charset): Likewise; rename
2050         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2051
2052         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2053         `LEADING_BYTE_JEF_CHINA3'.
2054         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2055         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2056
2057 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2058
2059         * mule-charset.c (encode_builtin_char_1): Comment out special code
2060         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2061
2062         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2063         (MAX_CHAR_MOJIKYO_0): Comment out.
2064         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2065         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2066         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2067         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2068
2069 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2070
2071         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2072         (Qideograph_cbeta): New variable.
2073         (encode_builtin_char_1): Comment out special code for
2074         coded-charset `mojikyo' and `japanese-jef-china3'.
2075         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2076         (complex_vars_of_mule_charset): Add new coded-charset
2077         `ideograph-cbeta'.
2078
2079         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2080         (MIN_CHAR_CBETA): New macro.
2081         (MAX_CHAR_CBETA): New macro.
2082
2083 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2084
2085         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2086         (LEADING_BYTE_JEF_CHINA3): New macro.
2087         (MIN_CHAR_JEF_CHINA3): New macro.
2088         (MAX_CHAR_JEF_CHINA3): Likewise.
2089         (DECODE_CHAR): Fixed.
2090
2091 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2092
2093         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2094         (Qjapanese_jef_china3): New variable.
2095         (encode_builtin_char_1): Support `japanese-jef-china3'.
2096         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2097         (complex_vars_of_mule_charset): Add new coded-charset
2098         `japanese-jef-china3'.
2099
2100 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2101
2102         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2103         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2104         94^4, 96^3, 96^4, 128^n and 256^n set.
2105         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2106         (map_char_table): Likewise.
2107
2108 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2109
2110         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2111         UTF-2000.
2112
2113 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2114
2115         * chartab.h (get_char_id_table): New inline function.
2116
2117         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2118         function.
2119
2120 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2121
2122         * chartab.h (decode_char_table_range): New prototype in XEmacs
2123         UTF-2000.
2124         (put_char_id_table): New inline function in XEmacs UTF-2000.
2125
2126         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2127         function.
2128         (decode_char_table_range): Delete static declaration in XEmacs
2129         UTF-2000.
2130
2131 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2132
2133         * chartab.c (put_char_id_table): Use `put_char_table'.
2134
2135 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2136
2137         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2138         (map_over_uint16_byte_table): Likewise.
2139         (map_over_byte_table): Likewise.
2140         (map_char_table): Modify for `map_over_uint8_byte_table',
2141         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2142         UTF-2000.
2143
2144 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2145
2146         * chartab.c (struct map_char_table_for_charset_arg): New
2147         structure.
2148         (map_char_table_for_charset_fun): New function.
2149         (map_char_table): Use `map_char_table' for encoding_table of
2150         `range->charset'.
2151
2152 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2153
2154         * chartab.c (map_char_table): Check a character is found in
2155         range->charset instead of non default value is defined in
2156         char-table when range is CHARTAB_RANGE_ROW.
2157
2158 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2159
2160         * chartab.c (map_char_id_table): Deleted.
2161         (Fmap_char_attribute): Use `map_char_table' instead of
2162         `map_char_id_table'.
2163
2164 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2165
2166         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2167         UTF-2000.
2168         (update_syntax_table): Deleted in XEmacs UTF-2000.
2169
2170         * syntax.c (find_defun_start): Use `syntax_table' instead of
2171         `mirror_syntax_table' in XEmacs UTF-2000.
2172         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2173         UTF-2000.
2174         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2175         XEmacs UTF-2000.
2176         (Fmatching_paren): Likewise.
2177         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2178         in XEmacs UTF-2000.
2179         (find_start_of_comment): Likewise.
2180         (find_end_of_comment): Likewise.
2181         (Fforward_comment): Likewise.
2182         (scan_lists): Likewise.
2183         (char_quoted): Likewise.
2184         (Fbackward_prefix_chars): Likewise.
2185         (scan_sexps_forward): Likewise.
2186         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2187         (update_syntax_table): Likewise.
2188
2189         * search.c (skip_chars): Use `syntax_table' instead of
2190         `mirror_syntax_table' in XEmacs UTF-2000.
2191         (wordify): Likewise.
2192         (Freplace_match): Likewise.
2193
2194         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2195         `mirror_syntax_table' in XEmacs UTF-2000.
2196         (WORDCHAR_P_UNSAFE): Likewise.
2197         (re_match_2_internal): Likewise.
2198
2199         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2200         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2201
2202         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2203         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2204
2205         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2206         XEmacs UTF-2000.
2207
2208         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2209         UTF-2000.
2210         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2211         (char_table_description): Delete `mirror_table' in XEmacs
2212         UTF-2000.
2213         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2214         UTF-2000.
2215         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2216         (Fcopy_char_table): Likewise.
2217         (put_char_table): Don't call `update_syntax_table' in XEmacs
2218         UTF-2000.
2219
2220         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2221         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2222         (casify_region_internal): Likewise.
2223
2224         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2225
2226         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2227         `mirror_syntax_table' in XEmacs UTF-2000.
2228
2229         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2230         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2231         (Fexpand_abbrev): Likewise.
2232
2233 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2234
2235         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2236
2237 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2238
2239         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2240         (map_over_uint16_byte_table): Likewise.
2241         (map_over_byte_table): Likewise.
2242         (get_char_id_table): Refer `cit->default_value'.
2243         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2244         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2245         of character-id ranges.
2246         (mark_char_table): Mark `ct->default_value'.
2247         (char_table_description): Add `default_value'.
2248         (fill_char_table): Use `default_value'.
2249         (decode_char_table_range): Decode `nil' as
2250         `CHARTAB_RANGE_DEFAULT'.
2251         (get_char_id_table): Refer `cit->default_value'.
2252         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2253         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2254         temporary hack; check value of char-table is bound or not.
2255         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2256
2257         * chartab.h (struct Lisp_Char_Table): Add new member
2258         `default_value' in XEmacs UTF-2000.
2259         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2260         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2261         UTF-2000.
2262
2263 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2264
2265         * chartab.h (Lisp_Char_ID_Table): Deleted.
2266
2267         * chartab.c (char_table_description): Fix typo.
2268         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2269         `Lisp_Char_ID_Table'.
2270
2271 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2272
2273         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2274         `CHAR_ID_TABLE_P'.
2275
2276         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2277         `CHAR_ID_TABLE_P'.
2278
2279         * chartab.h (XCHAR_ID_TABLE): Deleted.
2280         (XSETCHAR_ID_TABLE): Deleted.
2281         (CHAR_ID_TABLE_P): Deleted.
2282
2283         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2284         `CHAR_ID_TABLE_P'.
2285         (Fget_composite_char): Likewise.
2286         (put_char_table): Likewise.
2287         (add_char_attribute_alist_mapper): Fixed.
2288         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2289         `CHAR_ID_TABLE_P'.
2290         (Fget_char_attribute): Likewise.
2291         (Fget_char_attribute): Likewise.
2292         (Fmap_char_attribute): Likewise.
2293
2294         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2295         `CHAR_ID_TABLE_P'.
2296         (encode_char_1): Likewise.
2297
2298 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2299
2300         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2301         `XCHAR_ID_TABLE'.
2302
2303         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2304         instead of `XCHAR_ID_TABLE'.
2305         (remove_char_ccs): Likewise.
2306
2307         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2308         `XCHAR_ID_TABLE'.
2309         (Fget_composite_char): Likewise.
2310         (Fchar_variants): Likewise.
2311         (put_char_table): Likewise.
2312         (add_char_attribute_alist_mapper): Likewise.
2313         (Fchar_attribute_alist): Likewise.
2314         (Fget_char_attribute): Likewise.
2315         (Fput_char_attribute): Likewise.
2316         (Fmap_char_attribute): Likewise.
2317         (Fmap_char_attribute): Likewise.
2318
2319         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2320         `XCHAR_ID_TABLE'.
2321         (encode_char_1): Likewise.
2322
2323 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2324
2325         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2326         `Lisp_Char_ID_Table'.
2327         (mark_char_id_table): Deleted.
2328         (print_char_id_table): Likewise.
2329         (char_id_table_equal): Likewise.
2330         (char_id_table_hash): Likewise.
2331         (char_id_table_description): Likewise.
2332         (char_id_table): Likewise.
2333         (make_char_id_table): Use `Fmake_char_table' and
2334         `fill_char_table'.
2335         (get_char_id_table): Use `Lisp_Char_Table' instead of
2336         `Lisp_Char_ID_Table'.
2337         (put_char_id_table): Likewise.
2338         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2339         `XCHAR_ID_TABLE'.
2340         (Fremove_char_attribute): Likewise.
2341         (syms_of_chartab): Don't define type `char-id-table'.
2342
2343         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2344         (char_id_table): Likewise.
2345         (GC_CHAR_ID_TABLE_P): Likewise.
2346         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2347         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2348         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2349         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2350         (get_char_id_table): Use `Lisp_Char_Table' instead of
2351         `Lisp_Char_ID_Table'.
2352         (put_char_id_table_0): Likewise.
2353         (put_char_id_table): Likewise.
2354
2355 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2356
2357         * chartab.h: Lisp_Byte_Table related codes are moved from
2358         chartab.h.
2359
2360         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2361
2362 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2363
2364         * chartab.h: Don't include "chartab.h".
2365         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2366         (Lisp_Char_ID_Table): Likewise.
2367         (char_id_table): Likewise.
2368         (XCHAR_ID_TABLE): Likewise.
2369         (XSETCHAR_ID_TABLE): Likewise.
2370         (CHAR_ID_TABLE_P): Likewise.
2371         (GC_CHAR_ID_TABLE_P): Likewise.
2372         (get_char_id_table): Likewise.
2373
2374         * char-ucs.h: Include "chartab.h".
2375         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2376         (Lisp_Char_ID_Table): Likewise.
2377         (char_id_table): Likewise.
2378         (XCHAR_ID_TABLE): Likewise.
2379         (XSETCHAR_ID_TABLE): Likewise.
2380         (CHAR_ID_TABLE_P): Likewise.
2381         (GC_CHAR_ID_TABLE_P): Likewise.
2382         (get_char_id_table): Likewise.
2383
2384 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2385
2386         * chartab.c (copy_uint8_byte_table): New function.
2387         (copy_uint16_byte_table): New function.
2388         (copy_byte_table): New function.
2389         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2390         characters to call.
2391         (map_over_uint16_byte_table): Likewise.
2392         (map_over_byte_table): Likewise.
2393         (get_byte_table): Move prototype to chartab.h.
2394         (put_byte_table): Likewise.
2395         (put_char_id_table_0): Moved to chartab.h.
2396         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2397         (char_table_entry_equal): Likewise.
2398         (char_table_entry_hash): Likewise.
2399         (char_table_entry_description): Likewise.
2400         (char_table_entry): Likewise.
2401         (make_char_table_entry): Likewise.
2402         (copy_char_table_entry): Likewise.
2403         (get_non_ascii_char_table_value): Likewise.
2404         (map_over_charset_ascii): Likewise.
2405         (map_over_charset_control_1): Likewise.
2406         (map_over_charset_row): Likewise.
2407         (map_over_other_charset): Likewise.
2408         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2409         (print_char_table): Likewise.
2410         (char_table_equal): Likewise.
2411         (char_table_hash): Likewise.
2412         (char_table_description): Likewise.
2413         (fill_char_table): Likewise.
2414         (Fcopy_char_table): Likewise.
2415         (get_char_table): Likewise.
2416         (Fget_range_char_table): Likewise.
2417         (put_char_table): Likewise.
2418         (map_char_table): Likewise.
2419         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2420         UTF-2000.
2421
2422 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2423
2424         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2425         `Vauto_fill_chars' in XEmacs UTF-2000.
2426
2427         * chartab.h (get_byte_table): New prototype [moved from
2428         chartab.c].
2429         (put_byte_table): Likewise [moved from chartab.c].
2430         (put_char_id_table_0): New inline function [moved from chartab.c].
2431         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2432         (Lisp_Char_Table_Entry): Likewise.
2433         (char_table_entry): Likewise.
2434         (XCHAR_TABLE_ENTRY): Likewise.
2435         (XSETCHAR_TABLE_ENTRY): Likewise.
2436         (CHAR_TABLE_ENTRYP): Likewise.
2437         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2438         (NUM_ASCII_CHARS): Likewise.
2439         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2440         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2441
2442 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2443
2444         * chartab.c (get_char_id_table): Change interface.
2445         (put_char_id_table_0): New function.
2446         (put_char_id_table): Change interface; new implementation.
2447         (Fget_composite_char): Modify for interface change of
2448         `get_char_id_table'.
2449         (Fchar_variants): Likewise.
2450         (add_char_attribute_alist_mapper): Likewise.
2451         (Fchar_attribute_alist): Likewise.
2452         (Fget_char_attribute): Likewise.
2453         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2454         as same as character as the first argument like `put-char-table';
2455         modify for interface change of `put_char_id_table'.
2456         (Fremove_char_attribute): Modify for interface change of
2457         `put_char_id_table'.
2458
2459 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2460
2461         * text-coding.c: Sync up with XEmacs 21.2.41.
2462         (COMPOSE_ADD_CHAR): Modify for interface change of
2463         `get_char_id_table'.
2464
2465         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2466         change of `put_char_id_table'.
2467         (remove_char_ccs): Likewise.
2468
2469         * chartab.h (put_char_id_table): Change interface.
2470
2471         * char-ucs.h (get_char_id_table): Change interface.
2472         (charset_code_point): Modify for interface change of
2473         `get_char_id_table'.
2474         (encode_char_1): Likewise.
2475
2476 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2477
2478         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2479         argument `ccs'.
2480         (map_over_uint16_byte_table): Likewise.
2481         (map_over_byte_table): Likewise.
2482         (map_char_id_table): Add new argument `range' like
2483         `map_char_table'.
2484         (Fmap_char_attribute): Add new argument `range' like
2485         `Fmap_char_table'.
2486
2487 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2488
2489         * chartab.c (map_over_uint8_byte_table): Change interface of
2490         mapping function to use struct chartab_range instead of Emchar.
2491         (map_over_uint16_byte_table): Likewise.
2492         (map_over_byte_table): Likewise.
2493         (map_char_id_table): Likewise.
2494         (struct slow_map_char_id_table_arg): Deleted.
2495         (slow_map_char_id_table_fun): Deleted.
2496         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2497         function `slow_map_char_table_fun' instead of struct
2498         `slow_map_char_id_table_arg' and function
2499         `slow_map_char_id_table_fun'.
2500
2501 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2502
2503         * mule-charset.c: Move char-it-table related codes to chartab.c.
2504         (Vutf_2000_version): Moved to chartab.c.
2505         (Fdefine_char): Likewise.
2506         (Ffind_char): Likewise.
2507         (syms_of_mule_charset): Move types `uint8-byte-table',
2508         `uint16-byte-table', `byte-table' and `char-id-table' to
2509         chartab.c; move functions `char_attribute_list,
2510         `find_char_attribute_table, `char_attribute_alist,
2511         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2512         `map_char_attribute, `define_char, `find_char, `char_variants and
2513         `get_composite_char to chartab.c; move symbols `=>ucs',
2514         `->decomposition', `compat', `isolated', `initial', `medial',
2515         `final', `vertical', `noBreak', `fraction', `super', `sub',
2516         `circle', `square', `wide', `narrow', `small' and `font' to
2517         chartab.c.
2518         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2519         setting codes for `Vcharacter_composition_table' and
2520         `Vcharacter_variant_table' to chartab.c.
2521         (complex_vars_of_mule_charset): Move setting code for
2522         `Vchar_attribute_hash_table' to chartab.c.
2523
2524         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2525         (make_char_id_table): New prototype.
2526         (put_char_id_table): Likewise.
2527         (Fget_char_attribute): Likewise.
2528
2529         * chartab.c: Move char-id-table related code from mule-charset.c.
2530         (Vutf_2000_version): Moved from mule-charset.c.
2531
2532         * char-ucs.h (Qucs): New external variable.
2533         (put_char_ccs_code_point): New prototype.
2534         (remove_char_ccs): Likewise.
2535
2536 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2537
2538         * mule-charset.c (Vcharset_ucs_jis): New variable.
2539         (Qucs_jis): Likewise.
2540         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2541         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2542
2543         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2544
2545 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2546
2547         * mule-charset.c (map_over_uint8_byte_table): New function.
2548         (map_over_uint16_byte_table): Likewise.
2549         (map_over_byte_table): Likewise.
2550         (map_char_id_table): Likewise.
2551         (slow_map_char_id_table_fun): Likewise.
2552         (Fmap_char_attribute): Likewise.
2553         (syms_of_mule_charset): Add new function `map-char-attribute'.
2554
2555 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2556
2557         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2558         (syms_of_mule_charset): Add new function `find-char'.
2559
2560 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2561
2562         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2563         XEmacs UTF-2000.
2564         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2565         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2566         XEmacs UTF-2000.
2567         (complex_vars_of_mule_charset): Add new coded-charset
2568         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2569         `ideograph-gt-pj-*'.
2570
2571         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2572
2573 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2574
2575         * mule-charset.c (encode_builtin_char_1): Purge codes about
2576         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2577         {MIN|MAX}_CHAR_HEBREW.
2578         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2579         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2580
2581         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2582         (MAX_CHAR_GREEK): Purged.
2583         (MIN_CHAR_CYRILLIC): Purged.
2584         (MAX_CHAR_CYRILLIC): Purged.
2585         (MIN_CHAR_HEBREW): Commented out.
2586         (MAX_CHAR_HEBREW): Likewise.
2587
2588 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2589
2590         * mule-charset.c (Qto_ucs): New variable.
2591         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2592         (Fdefine_char): Likewise.
2593         (syms_of_mule_charset): Add new symbol `=>ucs'.
2594
2595 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2596
2597         * mule-charset.c (Fdecode_char): Fixed.
2598
2599 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2600
2601         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2602         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2603         "tcvn5712-1".
2604
2605 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2606
2607         * mule-charset.c (Vcharset_ucs_big5): New variable.
2608         (Qucs_big5): Likewise.
2609         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2610         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2611
2612         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2613
2614 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2615
2616         * mule-charset.c (decode_builtin_char): Check Big5 code range
2617         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2618
2619 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2620
2621         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2622         (Qchinese_gb12345): Likewise.
2623         (Fdecode_builtin_char): Fixed.
2624         (syms_of_mule_charset): Add `chinese-gb12345'.
2625         (complex_vars_of_mule_charset): Add coded-charset
2626         `chinese-gb12345'.
2627
2628         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2629         (LEADING_BYTE_CHINESE_GB12345): New macro.
2630
2631 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2632
2633         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2634         and `latin-viscii-upper' for `latin-viscii'.
2635
2636 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2637
2638         * mule-charset.c (Fdecode_builtin_char): Comment out
2639         regularization code for ISO-IR GR representation.
2640
2641 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2642
2643         * mule-charset.c (decode_builtin_char): New function; renamed from
2644         `make_builtin_char'; return -1 instead of signal.
2645         (Fdecode_builtin_char): Use `decode_builtin_char'.
2646
2647         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2648         `make_builtin_char'.
2649         (DECODE_CHAR): Use `decode_builtin_char' instead of
2650         `make_builtin_char'; use mapping table of `chinese-big5' for
2651         `chinese-big5-{1,2}'.
2652
2653 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2654
2655         * text-coding.c (char_encode_big5): New function.
2656         (char_finish_big5): Likewise.
2657         (reset_encoding_stream): Use `char_encode_big5' and
2658         `char_finish_big5' for CODESYS_BIG5.
2659         (mule_encode): Don't use `encode_coding_big5'.
2660         (encode_coding_big5): Deleted.
2661
2662 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2663
2664         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2665         0x81- in XEmacs UTF-2000.
2666         (detect_coding_big5): Likewise.
2667
2668 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2669
2670         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2671         generate character-id if the CCS property does not have
2672         corresponding predefined character.
2673         (make_builtin_char): Return -1 if corresponding predefined
2674         character is not found.
2675         (Fdecode_char): Return nil if corresponding character is not
2676         found.
2677         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2678         don't map to builtin ucs space.
2679
2680 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2681
2682         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2683         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2684
2685 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2686
2687         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2688         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2689         (Qideograph_gt): Likewise.
2690         (Qideograph_gt_pj_{1..11}): Likewise.
2691         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2692         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2693         `ideograph-gt-pj-11'.
2694         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2695         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2696         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2697
2698         * char-ucs.h (LEADING_BYTE_GT): New macro.
2699         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2700         (MIN_CHAR_GT): Likewise.
2701         (MAX_CHAR_GT): Likewise.
2702
2703 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2704
2705         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2706         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2707
2708         * doprnt.c (unsigned_int_converters): Add `c'.
2709         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2710
2711         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2712         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2713         `MIN_CHAR_MOJIKYO'.
2714         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2715         (MAX_CHAR_MOJIKYO_0): New macro.
2716         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2717
2718 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2719
2720         * mule-charset.c (Fdefine_char): Delete cemented out code.
2721         (encode_builtin_char_1): Modify for new allocation of builtin
2722         Mojikyo characters.
2723
2724         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2725
2726 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2727
2728         * mule-charset.c (Vcharset_ucs_cns): New variable.
2729         (Qucs_cns): New variable.
2730         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2731         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2732
2733 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2734
2735         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2736
2737 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2738
2739         * search.c (search_buffer): Make `charset_base_code' as
2740         character-id >> 6 to eliminate the corresponding last byte in
2741         UTF-8 representation [I'm not sure it is right thing].
2742         (boyer_moore): Likewise.
2743
2744 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2745
2746         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2747         representation in MULE.
2748
2749 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2750
2751         * text-coding.c (Fmake_coding_system): Use
2752         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2753         `EXTERNAL_PROPERTY_LIST_LOOP'.
2754
2755 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2756
2757         * text-coding.c (decode_output_utf8_partial_char): New function.
2758         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2759
2760 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2761
2762         * text-coding.c (decode_coding_utf8): Output original byte
2763         sequence if it is broken; change order of conditions.
2764
2765         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2766         of conditions.
2767
2768         * mb-multibyte.h (BYTE_ASCII_P):
2769         Use bit ops for char-signedness safety.
2770         (BYTE_C0_P): Use bit ops for char-signedness safety.
2771         (BYTE_C1_P): Use bit ops for char-signedness safety.
2772
2773         * character.h: (XCHAR_OR_CHAR_INT):
2774         Always use inline function.
2775         Remove redundant type checking assert() - XINT will abort quite
2776         nicely.
2777
2778 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2779
2780         * text-coding.c: (Fencode_shift_jis_char):
2781         (Fencode_big5_char):
2782         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2783         Replace 0 with '\0' when working with bytes.
2784         Replace initial "(" with "\(" in docstrings.
2785
2786         (Fmake_coding_system):
2787         When type is ccl and value is vector, register it with a proper
2788         symbol.  And checks whether the given ccl program is valid.
2789         (mule_decode): When calling ccl_driver, if src indicates
2790         NULL pointer, set an empty string instead.
2791         (mule_encode): Likewise.
2792
2793         (detect_eol_type):
2794         (detect_coding_sjis):
2795         (decode_coding_sjis):
2796         (detect_coding_big5):
2797         (decode_coding_big5):
2798         (detect_coding_ucs4):
2799         (decode_coding_ucs4):
2800         (detect_coding_utf8):
2801         (decode_coding_utf8):
2802         (detect_coding_iso2022):
2803         (decode_coding_iso2022):
2804         (decode_coding_no_conversion):
2805         (mule_decode):
2806         Make all detecting and decoding functions take an Extbyte * arg.
2807         (text_encode_generic):
2808         (encode_coding_big5):
2809         (encode_coding_no_conversion):
2810         (mule_encode):
2811         Make all encoding functions take a Bufbyte * arg.
2812         Use size_t instead of unsigned int for memory sizes.
2813         Only cast to unsigned char whenever dereferencing Extbyte *.
2814
2815         (struct lrecord_description fcd_description_1): Use countof.
2816         (complex_vars_of_file_coding):
2817         Use countof instead of sizeof.
2818         Use CHECK_NATNUM instead of CHECK_INT.
2819
2820 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2821
2822         * mule-charset.c (Fget_char_attribute): Add new optional argument
2823         `default-value'.
2824         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2825         (remove_char_ccs): Likewise.
2826
2827 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2828
2829         * text-coding.c (char_encode_shift_jis): New implementation in
2830         UTF-2000.
2831         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2832         ...)'.
2833
2834         * mule-charset.c (Vcharset_chinese_big5): New variable in
2835         UTF-2000.
2836         (Qchinese_big5): New variable in UTF-2000.
2837         (BIG5_SAME_ROW): New macro in UTF-2000.
2838         (make_builtin_char): Use builtin characters of
2839         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2840         characters of `Vcharset_chinese_big5'.
2841         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2842         (complex_vars_of_mule_charset): Add new coded-charset
2843         `chinese-big5' in UTF-2000.
2844
2845         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2846         (Vcharset_chinese_big5): New external variable declaration.
2847         (Vcharset_japanese_jisx0208_1990): Likewise.
2848
2849 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2850
2851         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2852         function.
2853         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2854
2855 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2856
2857         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2858         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2859         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2860         `mojikyo-pj-*'.
2861
2862 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2863
2864         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2865
2866 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2867
2868         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2869         to 0.17.
2870
2871 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2872
2873         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2874         for `CHARSET_BY_ATTRIBUTES'.
2875         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2876         `CHARSET_BY_ATTRIBUTES'.
2877
2878         * text-coding.c (struct decoding_stream): Rename member `CH' to
2879         `CPOS'.
2880         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2881         (decode_coding_sjis): Likewise.
2882         (decode_coding_big5): Likewise.
2883         (decode_coding_ucs4): Likewise.
2884         (decode_coding_utf8): Likewise.
2885         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2886         `CHARSET_BY_ATTRIBUTES'.
2887         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2888         `str->counter'; decode 3, 4 bytes sets.
2889         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2890         sets.
2891         (decode_coding_no_conversion): Use `str->cpos' instead of
2892         `str->ch'.
2893
2894         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2895         (Qmojikyo_2022_1): New variable.
2896         (make_charset): Don't use `CHARSET_TYPE_*'.
2897         (range_charset_code_point): Support coded-charset
2898         `mojikyo-2022-1'.
2899         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2900         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2901         `CHARSET_BY_ATTRIBUTES'.
2902         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2903         `CHARSET_BY_ATTRIBUTES'.
2904         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2905         (complex_vars_of_mule_charset): Add new coded-charset
2906         `mojikyo-2022-1'.
2907
2908         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2909         interface; changed to inline function.
2910
2911         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2912         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2913         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2914         (CHARSET_TYPE_94): Deleted.
2915         (CHARSET_TYPE_94X94): Deleted.
2916         (CHARSET_TYPE_96): Deleted.
2917         (CHARSET_TYPE_96X96): Deleted.
2918         (CHARSET_TYPE_128): Deleted.
2919         (CHARSET_TYPE_128X128): Deleted.
2920         (CHARSET_TYPE_256): Deleted.
2921         (CHARSET_TYPE_256X256): Deleted.
2922         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2923         to inline function.
2924         (DECODE_MOJIKYO_2022): New inline function.
2925         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2926         `Vcharset_mojikyo_2022_1'.
2927
2928 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2929
2930         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2931         instead of `EQ'.
2932         (put_byte_table): Likewise.
2933         (char_id_table_equal): Use `get_byte_table' [new implementation].
2934
2935 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2936
2937         * mule-charset.c: Include <limits.h> in UTF-2000.
2938         (BT_UINT8_MIN): New macro in UTF-2000.
2939         (BT_UINT8_MAX): New macro in UTF-2000.
2940         (BT_UINT8_t): New macro in UTF-2000.
2941         (BT_UINT8_nil): New macro in UTF-2000.
2942         (BT_UINT8_unbound): New macro in UTF-2000.
2943         (INT_UINT8_P): New inline function in UTF-2000.
2944         (UINT8_VALUE_P): New inline function in UTF-2000.
2945         (UINT8_ENCODE): New inline function in UTF-2000.
2946         (UINT8_DECODE): New inline function in UTF-2000.
2947         (mark_uint8_byte_table): New function in UTF-2000.
2948         (print_uint8_byte_table): New function in UTF-2000.
2949         (uint8_byte_table_equal): New function in UTF-2000.
2950         (uint8_byte_table_hash): New function in UTF-2000.
2951         (make_uint8_byte_table): New function in UTF-2000.
2952         (uint8_byte_table_same_value_p): New function in UTF-2000.
2953         (BT_UINT16_MIN): New macro in UTF-2000.
2954         (BT_UINT16_MAX): New macro in UTF-2000.
2955         (BT_UINT16_t): New macro in UTF-2000.
2956         (BT_UINT16_nil): New macro in UTF-2000.
2957         (BT_UINT16_unbound): New macro in UTF-2000.
2958         (INT_UINT16_P): New inline function in UTF-2000.
2959         (UINT16_VALUE_P): New inline function in UTF-2000.
2960         (UINT16_ENCODE): New inline function in UTF-2000.
2961         (UINT16_DECODE): New inline function in UTF-2000.
2962         (UINT8_TO_UINT16): New inline function in UTF-2000.
2963         (mark_uint16_byte_table): New function in UTF-2000.
2964         (print_uint16_byte_table): New function in UTF-2000.
2965         (uint16_byte_table_equal): New function in UTF-2000.
2966         (uint16_byte_table_hash): New function in UTF-2000.
2967         (make_uint16_byte_table): New function in UTF-2000.
2968         (uint16_byte_table_same_value_p): New function in UTF-2000.
2969         (print_byte_table): New function in UTF-2000.
2970         (byte-table): Use `print_byte_table' as printer.
2971         (make_byte_table): Delete second argument `older'.
2972         (byte_table_same_value_p): New function in UTF-2000.
2973         (copy_byte_table): Deleted.
2974         (get_byte_table): New function in UTF-2000.
2975         (put_byte_table): New function in UTF-2000.
2976         (print_char_id_table): New function in UTF-2000.
2977         (char-id-table): Use `print_char_id_table' as printer.
2978         (make_char_id_table): Delete second argument `older'.
2979         (get_char_id_table): Use `get_byte_table [new implementation].
2980         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
2981         implementation].
2982         (Ffind_char_attribute_table): New function in UTF-2000.
2983         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2984         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
2985         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
2986         (syms_of_mule_charset): Add new function
2987         `find-char-attribute-table' in UTF-2000.
2988
2989         * lrecord.h (enum lrecord_type): Add
2990         `lrecord_type_uint16_byte_table' and
2991         `lrecord_type_uint8_byte_table'.
2992
2993         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
2994         (Lisp_Uint8_Byte_Table): New type.
2995         (XUINT8_BYTE_TABLE): New macro.
2996         (XSETUINT8_BYTE_TABLE): New macro.
2997         (UINT8_BYTE_TABLE_P): New macro.
2998         (GC_UINT8_BYTE_TABLE_P): New macro.
2999         (struct Lisp_Uint16_Byte_Table): New structure.
3000         (Lisp_Uint16_Byte_Table): New type.
3001         (XUINT16_BYTE_TABLE): New macro.
3002         (XSETUINT16_BYTE_TABLE): New macro.
3003         (UINT16_BYTE_TABLE_P): New macro.
3004         (GC_UINT16_BYTE_TABLE_P): New macro.
3005
3006 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3007
3008         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3009         (Vcharacter_ideographic_strokes_table): Deleted.
3010         (Vcharacter_total_strokes_table): Deleted.
3011         (Vcharacter_morohashi_daikanwa_table): Deleted.
3012         (Vcharacter_decomposition_table): Deleted.
3013         (Qname): Deleted because it is duplicated.
3014         (Qideographic_radical): Deleted.
3015         (Qideographic_strokes): Deleted.
3016         (Qtotal_strokes): Deleted.
3017         (Qmorohashi_daikanwa): Deleted.
3018         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3019         `ideographic-radical', `ideographic-strokes', `total-strokes',
3020         `morohashi-daikanwa' and `->decomposition'.
3021         (Fget_char_attribute): Likewise.
3022         (Fput_char_attribute): Likewise; use `make-vector' instead of
3023         `make_older_vector' for `->decomposition' value.
3024         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3025         `ideograph-daikanwa'.
3026         (syms_of_mule_charset): Delete builtin symbols `name',
3027         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3028         `morohashi-daikanwa'.
3029         (vars_of_mule_charset): Don't setup
3030         `Vcharacter_ideographic_radical_table',
3031         `Vcharacter_ideographic_strokes_table',
3032         `Vcharacter_total_strokes_table',
3033         `Vcharacter_morohashi_daikanwa_table' and
3034         `Vcharacter_decomposition_table'.
3035
3036 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3037
3038         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3039         `make_older_vector', `make_vector_newer_1' and
3040         `make_vector_newer'.
3041
3042         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3043         `make_older_vector' and `make_vector_newer'.
3044
3045         * config.h.in (HAVE_GGC): New macro.
3046
3047 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3048
3049         * mule-charset.c (struct char_attribute_list_closure): New
3050         structure in UTF-2000.
3051         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3052         (Fchar_attribute_list): Likewise.
3053         (Fset_charset_mapping_table): Use `make_vector_newer'.
3054         (Fdecode_builtin_char): New function in UTF-2000.
3055         (syms_of_mule_charset): Add new function `char-attribute-list' and
3056         `decode-builtin-char' in UTF-2000.
3057
3058         * lisp.h (make_vector_newer): New prototype.
3059
3060         * alloc.c (make_vector_newer_1): New function.
3061         (make_vector_newer): New function.
3062
3063 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3064
3065         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3066         50100)'.
3067
3068 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3069
3070         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3071         (Vcharacter_attribute_table): Deleted.
3072         (Vcharacter_name_table): Deleted.
3073         (put_char_attribute): Deleted.
3074         (remove_char_attribute): Deleted.
3075         (struct char_attribute_alist_closure): New structure.
3076         (add_char_attribute_alist_mapper): New function.
3077         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3078         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3079         (Fget_char_attribute): Likewise.
3080         (Fput_char_attribute): Likewise.
3081         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3082         of `remove_char_attribute'.
3083         (Fdefine_char): Return character.
3084         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3085         and `Vcharacter_name_table'.
3086         (complex_vars_of_mule_charset): Likewise
3087         `Vchar_attribute_hash_table'.
3088
3089 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3090
3091         * character.h (CHARC_CHARSET): New macro.
3092         (CHARC_CHARSET_ID): New macro.
3093         (CHARC_CODE_POINT): New macro.
3094         (CHARC_COLUMNS): New macro.
3095         (CHARC_TO_CHAR): New inline function.
3096         (CHARC_EQ): New inline function.
3097         (CHARC_ASCII_EQ): New inline function.
3098         (CHARC_IS_SPACE): New inline function.
3099         (ASCII_TO_CHARC): New inline function.
3100
3101         * char-ucs.h (encode_char_2): Deleted.
3102         (ENCODE_CHAR): Use `encode_char_1' again.
3103         (breakup_char_1): Likewise.
3104         (CHAR_TO_CHARC): New inline function.
3105
3106         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3107
3108 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3109
3110         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3111         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3112         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3113         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3114         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3115         `CHARC_IS_SPACE'.
3116         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3117
3118         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3119         `CHARC_CODE_POINT'.
3120         (x_output_display_block): Use `CHARC_CHARSET' and
3121         `CHARC_ASCII_EQ'.
3122
3123         * redisplay-tty.c (tty_output_display_block): Use
3124         `CHARC_ASCII_EQ'.
3125         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3126
3127         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3128
3129         * insdel.c (find_charsets_in_charc_string): Use
3130         `CHARC_CHARSET_ID'.
3131         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3132         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3133         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3134         (convert_charc_string_into_malloced_string): Likewise.
3135
3136 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3137
3138         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3139         instead of <Emchar_dynarr *> for buf; use
3140         `convert_bufbyte_string_into_charc_dynarr' instead of
3141         `convert_bufbyte_string_into_emchar_dynarr'; use
3142         `find_charsets_in_charc_string' instead of
3143         `find_charsets_in_emchar_string'.
3144
3145         * redisplay.h:
3146         - Include "character.h".
3147         (struct rune): New member `cglyph'; delete member `chr'.
3148
3149         * redisplay.c (redisplay_text_width_charc_string): New function;
3150         delete `redisplay_text_width_emchar_string'.
3151         (rtw_charc_dynarr): New variable; renamed from
3152         `rtw_emchar_dynarr'.
3153         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3154         `rtw_emchar_dynarr'; use
3155         `convert_bufbyte_string_into_charc_dynarr' instead of
3156         `convert_bufbyte_string_into_emchar_dynarr'; use
3157         `redisplay_text_width_charc_string' instead of
3158         `redisplay_text_width_emchar_string'.
3159         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3160         instead of `rtw_emchar_dynarr'; use
3161         `convert_bufbyte_string_into_charc_dynarr' instead of
3162         `convert_bufbyte_string_into_emchar_dynarr'.
3163         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3164         `redisplay_text_width_charc_string' instead of
3165         `redisplay_text_width_emchar_string'.
3166         (create_text_block): Modify for <struct rune> change.
3167         (generate_formatted_string_db): Likewise.
3168         (create_string_text_block): Likewise.
3169         (pixel_to_glyph_translation): Likewise.
3170
3171         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3172         instead of <const Emchar *>.
3173         (x_text_width): Likewise.
3174         (x_output_display_block): Use <Charc_dynarr *> instead
3175         <Emchar_dynarr *>; modify for <structure rune> change.
3176         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3177         *>.
3178
3179         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3180         <const Emchar *>; use `charc_string_displayed_columns' instead of
3181         `emchar_string_displayed_columns'.
3182         (tty_output_display_block): Use <Charc_dynarr *> instead of
3183         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3184         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3185         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3186         `tty_output_emchar_dynarr_dynarr'.
3187         (tty_output_charc_dynarr): New function; delete
3188         `tty_output_charc_dynarr'.
3189
3190         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3191         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3192         <Emchar_dynarr *> for buf; use
3193         `convert_bufbyte_string_into_charc_dynarr' instead of
3194         `convert_bufbyte_string_into_emchar_dynarr'.
3195
3196         * frame.c (title_string_charc_dynarr): New variable; renamed from
3197         `title_string_emchar_dynarr'.
3198         (generate_title_string): Use `title_string_charc_dynarr' instead
3199         of `title_string_emchar_dynarr'; use
3200         `convert_charc_string_into_malloced_string' instead of
3201         `convert_emchar_string_into_malloced_string'.
3202         (init_frame): Use `title_string_charc_dynarr' instead of
3203         `title_string_emchar_dynarr'.
3204
3205         * console.h:
3206         - Include "character.h".
3207         (struct console_methods): Use <const Charc *> instead of <const
3208         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3209         <Emchar_dynarr *> in output_string_method.
3210
3211         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3212         <Emchar_dynarr *>.
3213
3214         * console-stream.c (stream_text_width): Use <const Charc *>
3215         instead of <const Emchar *>.
3216
3217         * character.h (Charc_dynarr): New type.
3218
3219         * char-ucs.h (structure Charc): New structure; define new type
3220         `Charc'.
3221
3222         * char-lb.h (DECODE_CHAR): New inline function.
3223         (encode_char_1): New inline function.
3224         (ENCODE_CHAR): New macro.
3225         (structure Charc): New structure; define new type `Charc'.
3226
3227         * char-1byte.h (Vcharset_control_1): New macro.
3228         (Vcharset_latin_iso8859_1): New macro.
3229         (DECODE_CHAR): New inline function.
3230         (encode_char_1): New inline function.
3231         (ENCODE_CHAR): New macro.
3232         (structure Charc): New structure; define new type `Charc'.
3233
3234         * insdel.c (find_charsets_in_charc_string): New function; delete
3235         `find_charsets_in_emchar_string'.
3236         (charc_string_displayed_columns): New function; delete
3237         `emchar_string_displayed_columns'.
3238         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3239         `convert_bufbyte_string_into_emchar_dynarr'.
3240         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3241         `convert_charc_string_into_bufbyte_dynarr'.
3242         (convert_charc_string_into_malloced_string): New function; delete
3243         `convert_charc_string_into_malloced_string'.
3244
3245         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3246         `find_charsets_in_emchar_string'.
3247         (charc_string_displayed_columns): New prototype; delete
3248         `emchar_string_displayed_columns'.
3249         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3250         `convert_charc_string_into_bufbyte_dynarr'.
3251         (convert_charc_string_into_malloced_string): New prototype; delete
3252         `convert_charc_string_into_malloced_string'.
3253
3254 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3255
3256         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3257
3258 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3259
3260         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3261
3262         * char-ucs.h: Use <short> for <Charset_ID>.
3263
3264         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3265         <Charset_ID>.
3266
3267 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3268
3269         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3270         to 0.16.
3271
3272 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3273
3274         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3275         variable.
3276         (Qmorohashi_daikanwa): New variable.
3277         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3278         for `morohashi-daikanwa' attribute.
3279         (Fget_char_attribute): Likewise.
3280         (Fput_char_attribute): Likewise.
3281         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3282         has the same value of `ideograph-daikanwa'.
3283         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3284         (vars_of_mule_charset): Setup
3285         `Vcharacter_morohashi_daikanwa_table'.
3286
3287 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3288
3289         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3290         attributes.
3291         (add_charset_to_list_mapper): Add `key' instead of
3292         `XCHARSET_NAME (value)' to return aliases.
3293
3294 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3295
3296         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3297         variable.
3298         (Vcharacter_ideographic_strokes_table): New variable.
3299         (Qideographic_radical): New variable.
3300         (Qideographic_strokes): New variable.
3301         (Fchar_attribute_alist): Use
3302         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3303         attribute; use `Vcharacter_ideographic_strokes_table' for
3304         `ideographic-strokes' attribute.
3305         (Fget_char_attribute): Likewise.
3306         (Fput_char_attribute): Likewise.
3307         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3308         `ideographic-strokes'.
3309         (vars_of_mule_charset): Setup
3310         `Vcharacter_ideographic_radical_table' and
3311         `Vcharacter_ideographic_strokes_table'.
3312
3313 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3314
3315         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3316         (Qtotal_strokes): New variable.
3317         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3318         `total-strokes' attribute.
3319         (Fget_char_attribute): Likewise.
3320         (Fput_char_attribute): Likewise.
3321         (syms_of_mule_charset): Add new symbol `total-strokes'.
3322         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3323
3324 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3325
3326         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3327         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3328         are found.
3329         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3330         `->decomposition' attribute.
3331         (Fput_char_attribute): Likewise.
3332         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3333
3334 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3335
3336         * mule-charset.c (decoding_table_check_elements): New function.
3337         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3338
3339 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3340
3341         * mule-charset.c (Fset_charset_mapping_table): Use
3342         `put_char_ccs_code_point'.
3343
3344 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3345
3346         * mule-charset.c (decoding_table_put_char): New inline function.
3347         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3348
3349 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3350
3351         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3352         (XCHARSET_BYTE_SIZE): New macro.
3353         (decoding_table_remove_char): New inline function.
3354         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3355         `decoding_table_remove_char'.
3356         (remove_char_ccs): Use `decoding_table_remove_char'.
3357         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3358
3359 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3360
3361         * mule-charset.c (Vcharacter_name_table): New variable.
3362         (Qname): New variable.
3363         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3364         attribute.
3365         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3366         `Vcharacter_name_table' for `name' attribute.
3367         (Fremove_char_attribute): Use function `remove_char_ccs'.
3368         (put_char_ccs_code_point): New function.
3369         (remove_char_ccs): New function.
3370         (syms_of_mule_charset): Add new symbol `name'.
3371         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3372
3373 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3374
3375         * mule-charset.c (make_byte_table): Add new argument `older'.
3376         (make_char_id_table): Likewise.
3377         (copy_char_id_table): Comment out because it is not used.
3378         (put_char_id_table): Modify for `make_byte_table'.
3379         (Fput_char_attribute): Make encoding_table as older object;
3380         inherit older bit of `Vcharacter_composition_table'.
3381         (mark_charset): Don't mark `cs->encoding_table'.
3382         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3383         normal object; make `Vcharacter_composition_table' as an older
3384         object; delete staticpro for `Vcharacter_composition_table'; make
3385         `Vcharacter_variant_table' as a normal object.
3386
3387         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3388         (mark_object): Don't check older object in UTF-2000.
3389
3390         * lrecord.h (struct lrecord_header): Add new member `older' in
3391         UTF-2000.
3392         (set_lheader_implementation): Setup `SLI_header->older' in
3393         UTF-2000.
3394         (set_lheader_older_implementation): New macro in UTF-2000.
3395         (OLDER_RECORD_P): New macro in UTF-2000.
3396         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3397         (alloc_older_lcrecord): New prototype in UTF-2000.
3398         (alloc_older_lcrecord_type): New macro in UTF-2000.
3399
3400 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3401
3402         * mule-charset.c (byte_table_description): Use
3403         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3404         (char_id_table_description): Delete bogus `, 1'.
3405         (Fget_char_attribute): Refer encoding_table of each coded-charset
3406         to get value of coded-charset attribute of a character.
3407         (Fput_char_attribute): Use `make_older_vector' instead of
3408         `make_vector'; use encoding_table of each coded-charset to store
3409         value of coded-charset attribute of a character.
3410         (Fremove_char_attribute): Use encoding_table of each coded-charset
3411         to store value of coded-charset attribute of a character.
3412         (mark_charset): Mark `cs->encoding_table'; don't mark
3413         `cs->decoding_table'.
3414         (charset_description): Add description of new member
3415         `encoding_table'.
3416         (make_charset): Initialize `encoding_table'.
3417
3418         * char-ucs.h (struct Lisp_Charset): Add new member
3419         `encoding_table'.
3420         (CHARSET_ENCODING_TABLE): New macro.
3421         (XCHARSET_ENCODING_TABLE): New macro.
3422         (charset_code_point): New implementation.
3423         (encode_char_1): Likewise.
3424
3425         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3426         (disksave_object_finalization_1): Call finalizers of
3427         `all_older_lcrecords' in UTF-2000.
3428         (make_older_vector): New function in UTF-2000.
3429         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3430         UTF-2000.
3431
3432         * lisp.h (make_older_vector): New prototype in UTF-2000.
3433
3434 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3435
3436         * lrecord.h (enum lrecord_type): Rename
3437         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3438
3439         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3440         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3441         `get_char_code_table'.
3442
3443         * mule-charset.c (mark_char_id_table): Renamed from
3444         `mark_char_code_table'.
3445         (char_id_table_equal): Renamed from `char_code_table_equal'.
3446         (char_id_table_hash): Renamed from `char_code_table_hash'.
3447         (make_char_id_table): Renamed from `make_char_code_table'.
3448         (copy_char_id_table): Renamed from `copy_char_code_table'.
3449         (get_char_id_table): Renamed from `get_char_code_table'.
3450         (put_char_id_table): Renamed from `put_char_code_table'.
3451         (to_char_id): Renamed from `to_char_code'.
3452
3453         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3454         `Lisp_Char_Code_Table'.
3455         (char_id_table): Renamed from `char_code_table'.
3456         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3457         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3458         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3459         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3460         (get_char_id_table): Renamed from `get_char_code_table'.
3461
3462 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3463
3464         * lrecord.h (enum lrecord_type): Rename
3465         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3466
3467         * mule-charset.c (mark_byte_table): Renamed from
3468         `mark_char_byte_table'.
3469         (byte_table_equal): Renamed from `char_byte_table_equal'.
3470         (byte_table_hash): Renamed from `byte_table_hash'.
3471         (make_byte_table): Renamed from `make_byte_table'.
3472         (copy_byte_table): Renamed from `copy_char_byte_table'.
3473
3474         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3475         `Lisp_Char_Byte_Table'.
3476         (byte_table): Renamed from `char_byte_table'.
3477         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3478         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3479         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3480         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3481
3482 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3483
3484         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3485         (dfc_convert_to_internal_format): Likewise.
3486         
3487         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3488         * text-coding.c (Fcoding_system_alias_p): New function.
3489         * text-coding.c (Fcoding_system_aliasee): New function.
3490         * text-coding.c (append_suffix_to_symbol): New function.
3491         * text-coding.c (dangling_coding_system_alias_p): New function.
3492         * text-coding.c (Ffind_coding_system):
3493         * text-coding.c (Fcopy_coding_system):
3494         * text-coding.c (encode_coding_no_conversion):
3495         * text-coding.c (syms_of_file_coding):
3496         * text-coding.c (vars_of_file_coding):
3497         Rewrite coding system alias code.
3498         Allow nested aliases, like symbolic links.
3499         Allow redefinition of coding system aliases.
3500         Prevent existence of dangling coding system aliases.
3501         Eliminate convert_to_external_format.
3502         Eliminate convert_to_internal_format.
3503         
3504         * text-coding.c: Change enum eol_type to eol_type_t.
3505
3506 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3507
3508         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3509         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3510
3511         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3512         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3513
3514 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3515
3516         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3517         `ideograph-daikanwa'.
3518
3519         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3520         (Vcharset_ucs_bmp): Likewise.
3521         (Vcharset_mojikyo): Add new extern variable definition.
3522         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3523         (Vcharset_latin_iso8859_3): Likewise.
3524         (Vcharset_latin_iso8859_4): Likewise.
3525         (Vcharset_latin_iso8859_9): Likewise.
3526         (Vcharset_latin_viscii_lower): Likewise.
3527         (Vcharset_latin_viscii_upper): Likewise.
3528         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3529         `mojikyo' code-point is used to decode.
3530         (encode_char_2): New function [to convert `mojikyo' code-point to
3531         Mojikyo font encoding].
3532         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3533         (breakup_char_1): Likewise.
3534         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3535
3536 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3537
3538         * text-coding.c (Fmake_coding_system): Add document about
3539         `disable-composition' property.
3540
3541 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3542
3543         * text-coding.c (Qdisable_composition): New variable; delete
3544         `Qcomposite'.
3545         (Fmake_coding_system): Add new property `disable-composite';
3546         delete property `composite'.
3547         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3548         instead of `!CODING_SYSTEM_COMPOSITE'.
3549         (syms_of_file_coding): Add new symbol `disable-composition';
3550         delete symbol `composite'.
3551
3552         * file-coding.h (struct Lisp_Coding_System): Add
3553         `disable_composition'; delete `enable_composition'.
3554         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3555         `CODING_SYSTEM_COMPOSITE'.
3556         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3557         `XCODING_SYSTEM_COMPOSITE'.
3558
3559 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3560
3561         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3562         to 0.15.
3563
3564 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3565
3566         * text-coding.c (Qcomposite): New variable.
3567         (Fmake_coding_system): Add new property `composite'.
3568         (struct decoding_stream): Add `combined_char_count',
3569         `combined_chars' and `combining_table' in UTF-2000.
3570         (COMPOSE_FLUSH_CHARS): New macro.
3571         (COMPOSE_ADD_CHAR): New macro.
3572         (reset_decoding_stream): Reset `str->combined_char_count' and
3573         `str->combining_table' in UTF-2000.
3574         (decode_coding_iso2022): Modify for character-decomposition.
3575         (syms_of_file_coding): Add new symbol `composite'.
3576
3577 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3578
3579         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3580         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3581         of `Vcharacter_composition_table' if `->decomposition' property
3582         has only 1 element.
3583         (Qlatin_tcvn5712): New variable.
3584         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3585         (complex_vars_of_mule_charset): Add new coded-charset
3586         `latin-tcvn5712'.
3587
3588         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3589
3590 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3591
3592         * file-coding.h (struct Lisp_Coding_System): Add
3593         `enable_composition'.
3594         (CODING_SYSTEM_COMPOSITE): New macro.
3595         (XCODING_SYSTEM_COMPOSITE): New macro.
3596
3597 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3598
3599         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3600
3601 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3602
3603         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3604         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3605
3606 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3607
3608         * mule-charset.c (Vcharset_mojikyo): New variable.
3609         (Fdefine_char): Don't use coded-charset which does not have
3610         non-builtin character range to allocate character-id.
3611         (Qmojikyo): New variable.
3612         (syms_of_mule_charset): Add new symbol `mojikyo'.
3613         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3614
3615         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3616         (LEADING_BYTE_MOJIKYO): New macro.
3617         (MIN_CHAR_MOJIKYO): New macro.
3618         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3619         (MAX_CHAR_MOJIKYO): New macro.
3620
3621 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3622
3623         * mule-charset.c (remove_char_attribute): Fixed.
3624
3625 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3626
3627         * mule-charset.c (remove_char_attribute): New function.
3628         (Fremove_char_attribute): New function.
3629         (encode_builtin_char_1): Comment out builtin-support for
3630         greek-iso8859-7 and cyrillic-iso8859-5.
3631         (Fdecode_char): Check `code' is an integer.
3632         (syms_of_mule_charset): Add `remove-char-attribute'.
3633         (MIN_CHAR_GREEK): Deleted.
3634         (MAX_CHAR_GREEK): Likewise.
3635         (MIN_CHAR_CYRILLIC): Likewise.
3636         (MAX_CHAR_CYRILLIC): Likewise.
3637         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3638         MAX_CHAR_GREEK for `greek-iso8859-7'.
3639
3640         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3641         (MAX_CHAR_GREEK): Likewise.
3642         (MIN_CHAR_CYRILLIC): Likewise.
3643         (MAX_CHAR_CYRILLIC): Likewise.
3644
3645 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3646
3647         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3648         format is used without `ucs' property.
3649         (Fdecode_char): Fix problem with GR representation.
3650         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3651         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3652
3653 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3654
3655         * mule-charset.c (make_builtin_char): New function.
3656         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3657         (Fset_charset_mapping_table): Modify for new representation of
3658         code-point.
3659         (Fdecode_char): New function.
3660         (syms_of_mule_charset): Add new builtin function `decode-char' in
3661         UTF-2000.
3662
3663         * char-ucs.h (make_builtin_char): New prototype.
3664         (DECODE_CHAR): New inline function.
3665         (MAKE_CHAR): Use `DECODE_CHAR'.
3666
3667 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3668
3669         * text-coding.c (parse_charset_conversion_specs): Use
3670         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3671         `XCHARSET_TYPE'.
3672         (iso2022_designate): Likewise.
3673
3674         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3675         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3676
3677         * mule-charset.c (Vcharset_ucs): New variable.
3678         (print_charset): Change design; use `CHARSET_CHARS' and
3679         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3680         (make_charset): Change signature to specify `chars' and
3681         `dimension' instead of `type'.
3682         (range_charset_code_point): Modify for 256^n-set.
3683         (encode_builtin_char_1): Encode as `ucs' in default.
3684         (Fmake_charset): Modify for `make_charset'.
3685         (Fmake_reverse_direction_charset): Likewise.
3686         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3687         UTF-2000.
3688         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3689         for `make_charset'.
3690
3691         * char-ucs.h (Vcharset_ucs): New variable.
3692         (LEADING_BYTE_UCS): New macro.
3693         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3694         and `chars' to `unsigned short' from `unsigned int'.
3695         (CHARSET_TYPE): Deleted.
3696         (XCHARSET_TYPE): Deleted.
3697
3698 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3699
3700         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3701
3702         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3703         (ENCODE_CHAR): New macro.
3704
3705 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3706
3707         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3708         to 0.14 (Kawachi-Katakami).
3709
3710 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3711
3712         * text-coding.c (char_encode_shift_jis): Modify for
3713         `charset_code_point'.
3714         (char_encode_iso2022): Likewise.
3715
3716         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3717         (integer) instead of list of <Lisp_Object>s (integers) as the
3718         format of code-point of a coded-charset.
3719         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3720         (encode_builtin_char_1): New function; delete
3721         `split_builtin_char'.
3722         (charset_code_point): Return <int> instead of <Lisp_Object>.
3723         (Fsplit_char): Don't use `SPLIT_CHAR'.
3724
3725         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3726         prototype for `split_builtin_char'.
3727         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3728         (charset_code_point): Likewise.
3729         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3730         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3731
3732 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3733
3734         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3735         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3736
3737 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3738
3739         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3740
3741         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3742         (MAX_CHAR_OBS_94x94): Deleted.
3743
3744 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3745
3746         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3747
3748         * char-ucs.h (MAX_CHAR_BMP): New macro.
3749
3750 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3751
3752         * text-coding.c: Sync with r21-2-24.
3753
3754 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3755
3756         * file-coding.c: Modify for UTF-2000.
3757
3758 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3759
3760         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3761         to 0.13 (Takaida).
3762
3763 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3764
3765         * mule-charset.c (split_builtin_char): Delete builtin support for
3766         `katakana-jisx0201'.
3767         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3768         BMP area in builtin representation.
3769
3770         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3771         `Vcharset_katakana_jisx0201'.
3772
3773 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3774
3775         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3776         (Qisolated): New variable.
3777         (Qinitial): New variable.
3778         (Qmedial): New variable.
3779         (Qfinal): New variable.
3780         (Qvertical): New variable.
3781         (Qsmall): New variable.
3782         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3783         `Qvertical' and `Qsmall'.
3784         (Qmojikyo_pj_[1 .. 21]): New variable.
3785         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3786         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3787         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3788         .. 21]'.
3789
3790 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3791
3792         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3793         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3794         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3795
3796 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3797
3798         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3799         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3800         BMP.
3801         (Qjapanese_jisx0208_1990): New variable.
3802         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3803         (complex_vars_of_mule_charset): Add new coded-charset
3804         `japanese-jisx0208-1990'.
3805
3806         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3807         (MIN_CHAR_JIS_X0208_1990): New macro.
3808         (MAX_CHAR_JIS_X0208_1990): New macro.
3809
3810 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3811
3812         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3813         coded-charset is not found.
3814
3815 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3816
3817         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3818         (Fdefine_char): Use `Fmake_char'.
3819
3820 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3821
3822         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3823         (Vcharset_hiragana_jisx0208): Deleted.
3824         (Vcharset_katakana_jisx0208): Deleted.
3825         (Qideograph_daikanwa): New variable.
3826         (Qhiragana_jisx0208): Deleted.
3827         (Qkatakana_jisx0208): Deleted.
3828         (split_builtin_char): Split `ideograph-daikanwa'.
3829         (Fsplit_char): New implementation for UTF-2000.
3830         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3831         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3832         (complex_vars_of_mule_charset): Add new coded-charset
3833         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3834         `katakana-jisx0208'.
3835
3836         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3837         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3838         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3839         (MIN_CHAR_DAIKANWA): New macro.
3840         (MAX_CHAR_DAIKANWA): New macro.
3841
3842 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3843
3844         * data.c (Fstring_to_number): Don't recognize floating point if
3845         base is not 10.
3846
3847 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3848
3849         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3850
3851 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3852
3853         * mule-charset.c (Qsquare): New variable.
3854         (to_char_code): Add `Qsquare'.
3855         (syms_of_mule_charset): Add new symbol `square'.
3856
3857 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3858
3859         * mule-charset.c (Qcircle): New variable.
3860         (to_char_code): Add `Qcircle'.
3861         (syms_of_mule_charset): Add new symbol `circle'.
3862
3863 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3864
3865         * mule-charset.c (Qfont): New variable.
3866         (to_char_code): Add `Qfont'.
3867         (syms_of_mule_charset): Add new symbol `font'.
3868
3869 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3870
3871         * mule-charset.c (Qsub): New variable.
3872         (to_char_code): Add `Qsub'.
3873         (syms_of_mule_charset): Add new symbol `sub'.
3874
3875 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3876
3877         * mule-charset.c (Fput_char_attribute): Convert each element of
3878         VALUE to GL position if ATTRIBUTE is a GR-set,
3879
3880 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3881
3882         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3883         coded-charset is a GR-set.
3884
3885 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3886
3887         * mule-charset.c (Fput_char_attribute): Check each element of
3888         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3889
3890 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3891
3892         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3893         UTF-2000.
3894         (Qethiopic_ucs): New variable in UTF-2000.
3895         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3896         (complex_vars_of_mule_charset): Add new coded-charset
3897         `ethiopic-ucs' in UTF-2000.
3898
3899         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3900         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3901         9)'.
3902         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3903         10)'.
3904         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3905
3906 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3907
3908         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3909         `ascii'.
3910
3911 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3912
3913         * mule-charset.c (Vcharacter_variant_table): New variable.
3914         (Q_ucs): New variable.
3915         (Fchar_variants): New function.
3916         (Fput_char_attribute): Register `->ucs' value to
3917         `Vcharacter_variant_table'.
3918         (syms_of_mule_charset): Add new function `char-variants' and new
3919         symbol `->ucs'.
3920         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3921
3922 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3923
3924         * mule-charset.c (get_char_code_table): Allow negative character
3925         code.
3926         (put_char_code_table): Likewise.
3927         (Vcharacter_composition_table): New variable.
3928         (Q_decomposition): New variable.
3929         (Qwide): New variable.
3930         (Qnarrow): New variable.
3931         (Qcompat): New variable.
3932         (QnoBreak): New variable.
3933         (Qsuper): New variable.
3934         (Qfraction): New variable.
3935         (to_char_code): New function.
3936         (Fget_composite_char): New function.
3937         (Fput_char_attribute): Register `->decomposition' value to
3938         `Vcharacter_composition_table'.
3939         (syms_of_mule_charset): Add new function `get-composite-char', new
3940         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
3941         `super' and `fraction'.
3942         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
3943
3944 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3945
3946         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
3947         character; copy the return value.
3948
3949 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3950
3951         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
3952
3953         * mule-charset.c (range_charset_code_point): Must use make_int.
3954         (split_builtin_char): New function.
3955
3956 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
3957
3958         * mule-charset.c (char_byte_table): Change name from
3959         "char-code-table" to "char-byte-table".
3960         (mark_char_code_table): New function.
3961         (char_code_table_equal): New function.
3962         (char_code_table_hash): New function.
3963         (char_code_table_description): New constant.
3964         (char_code_table): New type.
3965         (make_char_code_table): New function.
3966         (copy_char_code_table): New function.
3967         (get_char_code_table): Modify for `char_code_table' type.
3968         (put_char_code_table): Likewise.
3969         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
3970         (Kashiwara).
3971
3972         * char-ucs.h (char_code_table): New type.
3973         (XCHAR_CODE_TABLE): New macro.
3974         (XSETCHAR_CODE_TABLE): New macro.
3975         (CHAR_CODE_TABLE_P): New macro.
3976         (GC_CHAR_CODE_TABLE_P): New macro.
3977         (struct Lisp_Char_Code_Table): New structure.
3978
3979 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3980
3981         * mule-charset.c (Fmake_charset): Setup byte_offset for
3982         {94|96}^n-set.
3983
3984 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3985
3986         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
3987         character.
3988
3989 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3990
3991         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
3992         is found.
3993
3994 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
3995
3996         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
3997         charset, it is regarded as a charset.
3998         (put_char_attribute): New function in UTF-2000.
3999         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4000         charset, mapping-table of the charset is modified.
4001         (Fdefine_char): New function in UTF-2000.
4002         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4003         `Fput_char_attribute'.
4004         (syms_of_mule_charset): Add new function `define-char' and new
4005         symbol `ucs' in UTF-2000.
4006         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4007
4008 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4009
4010         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4011         non-UTF-2000 configuration.
4012
4013 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4014
4015         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4016         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4017
4018         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4019         deleted.
4020         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4021         (Fset_charset_mapping_table): Likewise.
4022
4023         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4024         (CHARSET_ENCODING_TABLE): Delete.
4025         (XCHARSET_ENCODING_TABLE): Delete.
4026         (charset_code_point): New interface.
4027
4028 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4029
4030         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4031         instead of `charset_get_byte1' and `charset_get_byte2'.
4032
4033         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4034         (charset_get_byte2): Deleted.
4035
4036 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4037
4038         * char-ucs.h (SPLIT_CHAR): New inline function.
4039         (breakup_char_1): Use `SPLIT_CHAR'.
4040
4041         * mule-charset.c (range_charset_code_point): New function.
4042         (charset_code_point): New function.
4043
4044         * char-ucs.h (range_charset_code_point): New interface.
4045         (breakup_char_1): Use `range_charset_code_point'.
4046
4047 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4048
4049         * mule-charset.c (Fmake_charset): Delete unused local variable
4050         `code_offset'.
4051
4052         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4053         (breakup_char_1): Find a charset and code-point in
4054         `Vcharacter_attribute_table'.
4055
4056 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4057
4058         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4059         to 0.10 (Yao).
4060
4061 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4062
4063         * mule-charset.c (Vcharacter_attribute_table): New variable.
4064         (Fchar_attribute_alist): New function.
4065         (Fget_char_attribute): New function.
4066         (Fput_char_attribute): New function.
4067         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4068         too.
4069         (syms_of_mule_charset): Add new function `char-attribute-alist',
4070         `get-char-attribute' and `put-char-attribute'.
4071         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4072
4073 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4074
4075         * mule-charset.c (Fmake_charset): Just use
4076         `get_unallocated_leading_byte'.
4077
4078         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4079         sets; don't use final-byte based number for private sets.
4080
4081 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4082
4083         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4084         integer.
4085
4086 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4087
4088         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4089         to 0.9.
4090
4091 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4092
4093         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4094         of `CHAR_LEADING_BYTE' in UTF-2000.
4095
4096         * insdel.c (find_charsets_in_bufbyte_string): Use
4097         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4098         (find_charsets_in_emchar_string): Likewise.
4099
4100         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4101         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4102
4103         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4104         (CHAR_CHARSET_ID): New macro.
4105
4106 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4107
4108         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4109         charset-id - MIN_LEADING_BYTE.
4110         (put_char_table): Likewise.
4111
4112 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4113
4114         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4115         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4116         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4117         (CHARSET_ID_OFFSET): New macro.
4118         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4119         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4120         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4121         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4122         4).
4123         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4124         5).
4125         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4126         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4127         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4128         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4129         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4130
4131 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4132
4133         * mule-charset.c (next_allocated_leading_byte): New variable in
4134         UTF-2000.
4135         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4136         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4137         (get_unallocated_leading_byte): Simply use
4138         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4139         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4140         UTF-2000.
4141
4142         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4143         (MAX_LEADING_BYTE_PRIVATE): New macro.
4144         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4145         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4146
4147 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4148
4149         * mule-charset.c (Fmake_charset): Allocate final-byte based
4150         charset-id for 94-set, 96-set and 94x94-set.
4151
4152 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4153
4154         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4155         ambiguous `else'.
4156         (Fmake_charset): Likewise.
4157         (complex_vars_of_mule_charset): Modify the font registry of
4158         `ucs-bmp' not to match `Ethiopic-Unicode'.
4159
4160 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4161
4162         * mule-charset.c (complex_vars_of_mule_charset): Add font
4163         registory of `ucs-bmp'.
4164
4165 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4166
4167         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4168         coded-charsets in `default-coded-charset-priority-list' when
4169         breaking up a character.
4170
4171         * mule-charset.c (Vcharset_latin_viscii): New variable.
4172         (Qlatin_viscii): New variable.
4173         (make_charset): Don't use `decoding_table'.
4174         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4175         byte_offset.
4176         (Fset_charset_mapping_table): New implementation.
4177         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4178         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4179         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4180         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4181         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4182         charset `latin_viscii'.
4183
4184         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4185         (CHARSET_TYPE_94X94): Change to 1 from 2.
4186         (CHARSET_TYPE_96): Change to 2 from 1.
4187         (CHARSET_TYPE_128): New macro.
4188         (CHARSET_TYPE_128X128): Change to 5 from 4.
4189         (CHARSET_TYPE_256): New macro.
4190         (CHARSET_TYPE_256X256): Change to 7 from 5.
4191         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4192
4193 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4194
4195         * text-coding.c (char_encode_shift_jis): Refer
4196         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4197         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4198
4199         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4200         (char_byte_table_equal): New function in UTF-2000.
4201         (char_byte_table_hash): New function in UTF-2000.
4202         (char_byte_table_description): New constant in UTF-2000.
4203         (char_byte_table): New type in UTF-2000.
4204         (make_char_byte_table): New function in UTF-2000.
4205         (copy_char_byte_table): New function in UTF-2000.
4206         (make_char_code_table): New macro in UTF-2000.
4207         (get_char_code_table): New function in UTF-2000.
4208         (put_char_code_table): New function in UTF-2000.
4209         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4210         (charset_description): Add setting in UTF-2000.
4211         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4212         `CHARSET_TO_BYTE1_TABLE(cs)'.
4213         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4214         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4215         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4216         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4217         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4218         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4219         `CHARSET_TO_BYTE2_TABLE(cs)'.
4220
4221         * char-ucs.h (char_byte_table): New type.
4222         (XCHAR_BYTE_TABLE): New macro.
4223         (XSETCHAR_BYTE_TABLE): New macro.
4224         (CHAR_BYTE_TABLE_P): New macro.
4225         (GC_CHAR_BYTE_TABLE_P): New macro.
4226         (struct Lisp_Char_Byte_Table): New structure.
4227         (get_char_code_table): New interface.
4228         (Emchar_to_byte_table): Deleted.
4229         (get_byte_from_character_table): Deleted.
4230         (struct Lisp_Charset): Add `encoding_table'; delete
4231         `to_byte1_table' and `to_byte2_table'.
4232         (CHARSET_ENCODING_TABLE): New macro.
4233         (CHARSET_TO_BYTE1_TABLE): Deleted.
4234         (CHARSET_TO_BYTE2_TABLE): Deleted.
4235         (XCHARSET_ENCODING_TABLE): New macro.
4236         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4237         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4238
4239 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4240
4241         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4242         `vietnamese-viscii-*'.
4243
4244 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4245
4246         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4247         (Qvietnamese_viscii_upper): New variable.
4248         (Fdefine_charset_alias): New function.
4249         (syms_of_mule_charset): Add new function `define-charset-alias'.
4250         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4251         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4252         `latin-viscii-*'.
4253
4254 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4255
4256         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4257         (MAX_CHAR_OBS_94x94): New macro.
4258         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4259         for 94x94 sets.
4260
4261         * mule-charset.c (put_byte_from_character_table): Change unit size
4262         from 128 to 256.
4263         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4264         not defined.
4265         (Fmake_reverse_direction_charset): Modify dummy argument of
4266         `make_charset' for non-UTF-2000 environment.
4267
4268 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4269
4270         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4271
4272         * mule-charset.c (destroy_byte_from_character_table): New macro.
4273         (latin_jisx0201_to_ucs): Deleted.
4274         (latin_iso8859_2_to_ucs): Deleted.
4275         (latin_iso8859_3_to_ucs): Deleted.
4276         (latin_iso8859_4_to_ucs): Deleted.
4277         (latin_iso8859_9_to_ucs): Deleted.
4278         (latin_viscii_lower_to_ucs): Deleted.
4279         (latin_viscii_upper_to_ucs): Deleted.
4280         (mark_charset): Mark `cs->decoding_table'.
4281         (Fcharset_mapping_table): Fix DOC-string.
4282         (Fset_charset_mapping_table): New function.
4283         (syms_of_mule_charset): Add nwe function
4284         `set-charset-mapping-table'.
4285         (complex_vars_of_mule_charset): Don't setup and use
4286         `latin_*_to_ucs'.
4287
4288 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4289
4290         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4291         charset.
4292
4293 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4294
4295         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4296         (Vcharset_katakana_jisx0208): New variable.
4297         (Qhiragana_jisx0208): New variable.
4298         (Qkatakana_jisx0208): New variable.
4299         (make_charset): Add new argument `byte_offset'.
4300         (charset_get_byte1): Modify for new coded-charset definition; use
4301         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4302         `XCHARSET_BYTE_OFFSET'.
4303         (Fmake_charset): Modify for `make_charset'.
4304         (Fmake_reverse_direction_charset): Likewise.
4305         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4306         `katakana-jisx0208'.
4307         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4308         `.'  in font registry of charset `katakana-jisx0201',
4309         `latin-jisx0201', `vietnamese-viscii-lower' and
4310         `vietnamese-viscii-upper'; modify DOC-string of charset
4311         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4312         registry of charset `japanese-jisx0208' not to use font for JIS
4313         X0208:1990; add new charset `hiragana-jisx0208' and
4314         `katakana-jisx0208'.
4315
4316         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4317         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4318         (struct Lisp_Charset): Add `byte_offset'.
4319         (CHARSET_BYTE_OFFSET): New macro.
4320         (XCHARSET_UCS_MIN): New macro.
4321         (XCHARSET_UCS_MAX): New macro.
4322         (XCHARSET_CODE_OFFSET): New macro.
4323         (XCHARSET_BYTE_OFFSET): New macro.
4324         (MIN_CHAR_HIRAGANA): New macro.
4325         (MAX_CHAR_HIRAGANA): New macro.
4326         (MIN_CHAR_KATAKANA): New macro.
4327         (MAX_CHAR_KATAKANA): New macro.
4328         (MAKE_CHAR): Modify for new coded-charset definition; use
4329         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4330         `XCHARSET_BYTE_OFFSET'.
4331
4332 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4333
4334         * mule-charset.c (CHAR96): Deleted.
4335         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4336         <Lisp_Object>.
4337         (latin_iso8859_2_to_ucs): Likewise.
4338         (latin_iso8859_3_to_ucs): Likewise.
4339         (latin_iso8859_4_to_ucs): Likewise.
4340         (latin_iso8859_9_to_ucs): Likewise.
4341         (latin_viscii_lower_to_ucs): Likewise.
4342         (latin_viscii_upper_to_ucs): Likewise.
4343         (latin_tcvn5712_to_ucs): Commented out.
4344         (make_charset): Change type of argument `decoding_table' from
4345         <Emchar*> to <Lisp_Object> [vector of characters].
4346         (Fmake_charset): Modify for `make_charset'.
4347         (Fmake_reverse_direction_charset): Likewise.
4348         (Fcharset_mapping_table): New function in UTF-2000.
4349         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4350         UTF-2000.
4351         (complex_vars_of_mule_charset): Modify for type change of
4352         `*_to_ucs'; modify for `make_charset'.
4353
4354         * char-ucs.h (struct Lisp_Charset): Change type of
4355         `decoding_table' from <Emchar*> to <Lisp_Object>.
4356         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4357
4358 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4359
4360         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4361         error with non-UTF-2000-Mule.
4362
4363 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4364
4365         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4366         in lisp again].
4367         (Vcharset_chinese_cns11643_4): Likewise.
4368         (Vcharset_chinese_cns11643_5): Likewise.
4369         (Vcharset_chinese_cns11643_6): Likewise.
4370         (Vcharset_chinese_cns11643_7): Likewise.
4371         (Qchinese_cns11643_3): Likewise.
4372         (Qchinese_cns11643_4): Likewise.
4373         (Qchinese_cns11643_5): Likewise.
4374         (Qchinese_cns11643_6): Likewise.
4375         (Qchinese_cns11643_7): Likewise.
4376         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4377         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4378         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4379         (complex_vars_of_mule_charset): Likewise.
4380
4381 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4382
4383         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4384         96-set.
4385         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4386         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4387
4388 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4389
4390         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4391         0xFF60.
4392         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4393         (breakup_char_1): Likewise.
4394
4395         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4396         one of them includes the specified character.
4397
4398 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4399
4400         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4401
4402 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4403
4404         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4405
4406 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4407
4408         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4409         definition for non-UTF-2000 Mule.
4410         (latin_iso8859_3_to_ucs): Likewise.
4411         (latin_iso8859_4_to_ucs): Likewise.
4412         (latin_iso8859_9_to_ucs): Likewise.
4413         (latin_jisx0201_to_ucs): Likewise.
4414         (MIN_CHAR_THAI): Likewise.
4415         (MAX_CHAR_THAI): Likewise.
4416         (MIN_CHAR_GREEK): Likewise.
4417         (MAX_CHAR_GREEK): Likewise.
4418         (MIN_CHAR_HEBREW): Likewise.
4419         (MAX_CHAR_HEBREW): Likewise.
4420         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4421         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4422         (MIN_CHAR_CYRILLIC): Likewise.
4423         (MAX_CHAR_CYRILLIC): Likewise.
4424
4425 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4426
4427         * char-ucs.h (breakup_char_1): Use
4428         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4429         thai-tis620 and katakana-jisx0201 area.
4430
4431 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4432
4433         * char-ucs.h (breakup_char_1): Use
4434         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4435         area.
4436
4437         * text-coding.c (reset_encoding_stream): Fixed.
4438         (char_encode_ucs4): Delete `& 255'.
4439
4440         * char-ucs.h (breakup_char_1): Use
4441         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4442
4443 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4444
4445         * file-coding.c (Fmake_coding_system): Don't set up
4446         `codesys->fixed.size'.
4447         (encode_coding_no_conversion): Don't refer
4448         `str->codesys->fixed.size'.
4449
4450 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4451
4452         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4453         (latin_a_char_to_byte1): Deleted.
4454         (latin_a_char_to_byte2): Deleted.
4455
4456 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4457
4458         * mule-charset.c (make_charset): Add new argument `ucs_min',
4459         `ucs_max' and `code_offset'.
4460         (charset_get_byte1): New implementation [delete specific charset
4461         depended implementations].
4462         (Fmake_charset): Modify for `make_charset'.
4463         (Fmake_reverse_direction_charset): Likewise.
4464         (complex_vars_of_mule_charset): Likewise.
4465
4466         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4467         `code_offset'.
4468         (CHARSET_UCS_MIN): New macro.
4469         (CHARSET_UCS_MAX): New macro.
4470         (CHARSET_CODE_OFFSET): New macro.
4471         (MAKE_CHAR): Delete charset depended definitions [except
4472         katakana-jisx0201].
4473
4474 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4475
4476         * char-ucs.h (breakup_char_1): Use
4477         `Vdefault_coded_charset_priority_list' for C0-Controls,
4478         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4479
4480 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4481
4482         * char-ucs.h (charset_get_byte1): New function.
4483         (XCHARSET_GET_BYTE1): Deleted.
4484         (charset_get_byte2): New function.
4485         (XCHARSET_GET_BYTE2): Deleted.
4486         (Vdefault_coded_charset_priority_list): New external variable.
4487         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4488         `Vdefault_preferred_coded_charset_list'.
4489
4490         * mule-charset.c (charset_get_byte1): New function.
4491         (charset_get_byte2): New function.
4492         (Vdefault_coded_charset_priority_list): New variable.
4493         (vars_of_mule_charset): Add new variable
4494         `default-coded-charset-priority-list'.
4495
4496 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4497
4498         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4499         (XCHARSET_GET_BYTE2): New inline function.
4500         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4501         `XCHARSET_GET_BYTE2'.
4502
4503 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4504
4505         * mule-charset.c (make_charset): Initialize
4506         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4507         NULL if table is not defined.
4508
4509 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4510
4511         * text-coding.c (char_encode_shift_jis): Use
4512         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4513         `ucs_to_latin_jisx0201'.
4514
4515         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4516         (ucs_to_latin_iso8859_2): Deleted.
4517         (ucs_to_latin_iso8859_3): Deleted.
4518         (ucs_to_latin_iso8859_4): Deleted.
4519         (ucs_to_latin_iso8859_9): Deleted.
4520         (ucs_to_latin_viscii_lower): Deleted.
4521         (ucs_to_latin_viscii_upper): Deleted.
4522         (ucs_to_latin_tcvn5712): Deleted.
4523         (make_charset): Add new argument `decoding_table'; set up
4524         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4525         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4526         `decoding_table' is defined in UTF-2000.
4527         (Fmake_charset): Modify for `make_charset'.
4528         (Fmake_reverse_direction_charset): Likewise.
4529         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4530         and `GENERATE_96_SET'.
4531
4532         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4533         (ucs_to_latin_jisx0201): Deleted.
4534         (latin_iso8859_2_to_ucs): Deleted.
4535         (ucs_to_latin_iso8859_2): Deleted.
4536         (latin_iso8859_3_to_ucs): Deleted.
4537         (ucs_to_latin_iso8859_3): Deleted.
4538         (latin_iso8859_4_to_ucs): Deleted.
4539         (ucs_to_latin_iso8859_4): Deleted.
4540         (latin_iso8859_9_to_ucs): Deleted.
4541         (ucs_to_latin_iso8859_9): Deleted.
4542         (latin_viscii_lower_to_ucs): Deleted.
4543         (ucs_to_latin_viscii_lower): Deleted.
4544         (latin_viscii_upper_to_ucs): Deleted.
4545         (ucs_to_latin_viscii_upper): Deleted.
4546         (struct Lisp_Charset): Renamed `encoding_table' to
4547         `to_byte1_table'; add `to_byte2_table'.
4548         (CHARSET_DECODING_TABLE): New macro.
4549         (CHARSET_TO_BYTE1_TABLE): New macro.
4550         (CHARSET_TO_BYTE2_TABLE): New macro.
4551         (XCHARSET_DECODING_TABLE): New macro.
4552         (XCHARSET_TO_BYTE1_TABLE): New macro.
4553         (XCHARSET_TO_BYTE2_TABLE): New macro.
4554         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4555         tables.
4556         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4557         don't use `ucs_to_*' tables.
4558
4559 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4560
4561         * text-coding.c (Fmake_coding_system): Don't set up
4562         `codesys->fixed.size'.
4563         (encode_coding_no_conversion): Use `if' instead of `switch'.
4564
4565         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4566
4567 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4568
4569         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4570         (Fmake_charset): Modify for `make_charset'.
4571         (Fmake_reverse_direction_charset): Likewise.
4572         (complex_vars_of_mule_charset): Likewise.
4573
4574 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4575
4576         * text-coding.c (char_encode_shift_jis): Use table
4577         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4578
4579 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4580
4581         * text-coding.c (text_encode_generic): Use `if' instead of
4582         `switch'.
4583         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4584         decode JIS-Latin.
4585
4586 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4587
4588         * text-coding.c (encode_coding_sjis): Deleted.
4589         (char_encode_shift_jis): New function.
4590         (char_finish_shift_jis): New function.
4591         (reset_encoding_stream): Set up `encode_char' and `finish' for
4592         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4593         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4594         (char_encode_utf8): Treat `eol_type'.
4595
4596 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4597
4598         * file-coding.c (decode_coding_iso2022): Use
4599         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4600
4601 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4602
4603         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4604         to 0.7 (Hirano).
4605
4606 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4607
4608         * char-lb.h (CHAR_COLUMNS): New macro.
4609
4610 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4611
4612         * text-coding.c (char_encode_ucs4): New function.
4613         (char_finish_ucs4): New function.
4614         (encode_coding_ucs4): Deleted.
4615         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4616         (text_encode_generic): Delete local variable `charset' and `half'.
4617         (ucs_to_mule_table): Deleted.
4618         (mule_to_ucs_table): Deleted.
4619         (Fset_ucs_char): Deleted.
4620         (ucs_to_char): Deleted.
4621         (Fucs_char): Deleted.
4622         (Fset_char_ucs): Deleted.
4623         (Fchar_ucs): Deleted.
4624         (decode_ucs4): Deleted.
4625         (mule_char_to_ucs4): Deleted.
4626         (encode_ucs4): Deleted.
4627         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4628         (decode_coding_utf8): Likewise.
4629         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4630         (char_encode_iso2022): Fixed.
4631         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4632         `Fset_char_ucs' and `Fchar_ucs'.
4633         (complex_vars_of_file_coding): Don't initialize
4634         `ucs_to_mule_table'.
4635
4636         * objects-tty.c (tty_initialize_font_instance): Don't use
4637         `XCHARSET_COLUMNS'.
4638
4639         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4640         UTF-2000.
4641
4642         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4643         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4644
4645         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4646         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4647         (emchar_string_displayed_columns): Likewise.
4648
4649         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4650         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4651         (string_column_at_point): Likewise.
4652         (Fmove_to_column): Likewise.
4653
4654         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4655         `encoding_table' and `decoding_table'.
4656         (CHARSET_REP_BYTES): Deleted.
4657         (XCHARSET_REP_BYTES): Deleted.
4658         (XCHARSET_COLUMNS): Deleted.
4659         (CHAR_COLUMNS): New macro.
4660         (lookup_composite_char): Deleted unconditionally.
4661         (composite_char_string): Likewise.
4662
4663 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4664
4665         * char-ucs.h (Emchar_to_byte_table): New type.
4666         (get_byte_from_character_table): New function interface.
4667         (Vcharset_latin_jisx0201): New variable.
4668         (latin_jisx0201_to_ucs): New variable.
4669         (ucs_to_latin_jisx0201): New variable.
4670         (Vcharset_latin_iso8859_2): New variable.
4671         (latin_iso8859_2_to_ucs): New variable.
4672         (ucs_to_latin_iso8859_2): New variable.
4673         (Vcharset_latin_iso8859_3): New variable.
4674         (latin_iso8859_3_to_ucs): New variable.
4675         (ucs_to_latin_iso8859_3): New variable.
4676         (Vcharset_latin_iso8859_4): New variable.
4677         (latin_iso8859_4_to_ucs): New variable.
4678         (ucs_to_latin_iso8859_4): New variable.
4679         (Vcharset_latin_iso8859_9): New variable.
4680         (latin_iso8859_9_to_ucs): New variable.
4681         (ucs_to_latin_iso8859_9): New variable.
4682         (Vcharset_latin_viscii_lower): New variable.
4683         (latin_viscii_lower_to_ucs): New variable.
4684         (ucs_to_latin_viscii_lower): New variable.
4685         (Vcharset_latin_viscii_upper): New variable.
4686         (latin_viscii_upper_to_ucs): New variable.
4687         (ucs_to_latin_viscii_upper): New variable.
4688         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4689         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4690         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4691         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4692         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4693         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4694         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4695         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4696         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4697         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4698
4699         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4700         (Vcharset_latin_viscii_upper): New variable.
4701         (make_byte_from_character_table): New function.
4702         (put_byte_from_character_table): New function.
4703         (get_byte_from_character_table): New function.
4704         (CHAR96): New macro.
4705         (ucs_to_latin_jisx0201): New variable.
4706         (latin_jisx0201_to_ucs): New variable.
4707         (ucs_to_latin_iso8859_2): New variable.
4708         (latin_iso8859_2_to_ucs): New variable.
4709         (ucs_to_latin_iso8859_3): New variable.
4710         (latin_iso8859_3_to_ucs): New variable.
4711         (ucs_to_latin_iso8859_4): New variable.
4712         (latin_iso8859_4_to_ucs): New variable.
4713         (ucs_to_latin_iso8859_9): New variable.
4714         (latin_iso8859_9_to_ucs): New variable.
4715         (ucs_to_latin_viscii_lower): New variable.
4716         (latin_viscii_lower_to_ucs): New variable.
4717         (ucs_to_latin_viscii_upper): New variable.
4718         (latin_viscii_upper_to_ucs): New variable.
4719         (ucs_to_latin_tcvn5712): New variable.
4720         (latin_tcvn5712_to_ucs): New variable.
4721         (Qlatin_viscii_lower): New variable.
4722         (Qlatin_viscii_upper): New variable.
4723         (syms_of_mule_charset): Set up new symbol
4724         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4725         (complex_vars_of_mule_charset): Set up new charset
4726         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4727         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4728         `ucs_to_<CHARSET>' tables.
4729
4730 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4731
4732         * text-coding.c: New file.
4733
4734 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4735
4736         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4737
4738         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4739         (MAKE_CHAR): Modify for `ucs-bmp'.
4740         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4741         non-MULE characters of BMP.
4742
4743 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4744
4745         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4746         to 0.6.
4747
4748 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4749
4750         * lstream.h:
4751         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4752         - Include character.h for `CHAR_ASCII_P'.
4753
4754         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4755
4756         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4757         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4758
4759         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4760         (BYTE_C0_P): Likewise.
4761         (BYTE_C1_P): Likewise.
4762         (Lstream_get_emchar_1): Likewise.
4763         (Lstream_fput_emchar): Likewise.
4764         (Lstream_funget_emchar): Likewise.
4765         (copy_internal_to_external): Likewise.
4766         (copy_external_to_internal): Likewise.
4767
4768         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4769         (BYTE_C0_P): Likewise.
4770         (BYTE_C1_P): Likewise.
4771         (Lstream_get_emchar_1): Likewise.
4772         (Lstream_fput_emchar): Likewise.
4773         (Lstream_funget_emchar): Likewise.
4774         (copy_internal_to_external): Likewise.
4775         (copy_external_to_internal): Likewise.
4776
4777         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4778         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4779
4780         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4781         (BYTE_ASCII_P): Moved to mb-1byte.h.
4782
4783 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4784
4785         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4786
4787         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4788         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4789         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4790         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4791         (VALIDATE_CHARPTR_FORWARD): Likewise.
4792         (simple_charptr_emchar): Moved to mb-multibyte.h.
4793         (simple_set_charptr_emchar): Likewise.
4794         (simple_charptr_copy_char): Likewise.
4795         (non_ascii_charptr_emchar): Likewise.
4796         (non_ascii_set_charptr_emchar): Likewise.
4797         (non_ascii_charptr_copy_char): Likewise.
4798         (charptr_emchar): Moved to mb-*byte.h.
4799         (set_charptr_emchar): Likewise.
4800         (charptr_copy_char): Likewise.
4801
4802         * mb-1byte.h, mb-multibyte.h: New files.
4803
4804 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4805
4806         * mb-utf-8.h (MULTIBYTE): New macro.
4807         (MAX_EMCHAR_LEN): Moved from buffer.h.
4808         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4809
4810         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4811
4812         * mb-lb.h, multibyte.h: New files.
4813
4814         * char-1byte.h (Charset_ID): Moved from buffer.h.
4815         (MIN_LEADING_BYTE): Likewise.
4816         (LEADING_BYTE_ASCII): Likewise.
4817         (NUM_LEADING_BYTES): Likewise.
4818         (CHARSETP): Likewise.
4819         (CHARSET_BY_LEADING_BYTE): Likewise.
4820         (XCHARSET_LEADING_BYTE): Likewise.
4821         (XCHARSET_GRAPHIC): Likewise.
4822         (XCHARSET_COLUMNS): Likewise.
4823         (XCHARSET_DIMENSION): Likewise.
4824         (CHAR_CHARSET): Likewise.
4825         (CHAR_LEADING_BYTE): Likewise.
4826         (BREAKUP_CHAR): Likewise.
4827         (Vcharset_ascii): Likewise.
4828
4829         * buffer.h: Include multibyte.h unconditionally.
4830         (VALID_CHARPTR_P): Moved to multibyte.h.
4831         (ASSERT_VALID_CHARPTR): Likewise.
4832         (REAL_INC_CHARPTR): Likewise.
4833         (REAL_INC_CHARBYTIND): Likewise.
4834         (REAL_DEC_CHARPTR): Likewise.
4835         (INC_CHARPTR): Likewise.
4836         (INC_CHARBYTIND): Likewise.
4837         (DEC_CHARPTR): Likewise.
4838         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4839         (VALIDATE_CHARPTR_FORWARD): Likewise.
4840         (charptr_n_addr): Likewise.
4841         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4842         (simple_charptr_emchar): Moved to multibyte.h.
4843         (simple_set_charptr_emchar): Likewise.
4844         (simple_charptr_copy_char): Likewise.
4845         (non_ascii_charptr_emchar): Likewise.
4846         (non_ascii_set_charptr_emchar): Likewise.
4847         (non_ascii_charptr_copy_char): Likewise.
4848         (charptr_emchar): Likewise.
4849         (set_charptr_emchar): Likewise.
4850         (charptr_copy_char): Likewise.
4851         (charptr_emchar_n): Likewise.
4852         (Charset_ID): Moved to char-1byte.h.
4853         (Vcharset_ascii): Likewise.
4854         (CHAR_CHARSET): Likewise.
4855         (CHAR_LEADING_BYTE): Likewise.
4856         (LEADING_BYTE_ASCII): Likewise.
4857         (NUM_LEADING_BYTES): Likewise.
4858         (MIN_LEADING_BYTE): Likewise.
4859         (CHARSETP): Likewise.
4860         (CHARSET_BY_LEADING_BYTE): Likewise.
4861         (XCHARSET_LEADING_BYTE): Likewise.
4862         (XCHARSET_GRAPHIC): Likewise.
4863         (XCHARSET_COLUMNS): Likewise.
4864         (XCHARSET_DIMENSION): Likewise.
4865         (BREAKUP_CHAR): Likewise.
4866
4867 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4868
4869         * character.h: Add document about interface for characters.
4870
4871         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4872         (MAKE_CHAR): Delete comment about
4873         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4874         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4875         (BREAKUP_CHAR): Modify name of arguments.
4876         (CHAR_CHARSET): Modify name of argument.
4877
4878         * buffer.h: Delete document about Emchar accessors.
4879
4880 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4881
4882         * character.h (CHAR_INTP): Moved from buffer.h
4883         (CHAR_OR_CHAR_INTP): Likewise.
4884         (XCHAR_OR_CHAR_INT): Likewise.
4885         (CHECK_CHAR_COERCE_INT): Likewise.
4886
4887         * buffer.h (CHAR_INTP): Moved to character.h
4888         (CHAR_OR_CHAR_INTP): Likewise.
4889         (XCHAR_OR_CHAR_INT): Likewise.
4890         (CHECK_CHAR_COERCE_INT): Likewise.
4891
4892 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4893
4894         * character.h:
4895         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4896         - Include char-1byte.h, char-lb.h or char-ucs.h.
4897
4898         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4899
4900         * buffer.h: Include character unconditionally.
4901         (valid_char_p): Moved to char-*.h.
4902         (non_ascii_valid_char_p): Moved to char-lb.h.
4903
4904         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4905
4906 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4907
4908         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4909         in UTF-2000 because it is not ported yet and not to use
4910         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4911         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4912         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4913
4914         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4915         (CHAR_ASCII_P): Moved from character.h.
4916
4917         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4918         (CHAR_ASCII_P): Likewise.
4919         (CHAR_FIELD1_MASK): Deleted.
4920         (CHAR_FIELD2_MASK): Deleted.
4921         (CHAR_FIELD3_MASK): Deleted.
4922         (MAX_CHAR_BASIC_LATIN): New macro.
4923         (CHAR_FIELD1): Deleted.
4924         (CHAR_FIELD2_INTERNAL): Deleted.
4925         (CHAR_FIELD3_INTERNAL): Deleted.
4926         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4927         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4928         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4929         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4930         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4931         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4932         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4933         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
4934         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
4935         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
4936         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
4937         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
4938         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
4939         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
4940         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
4941         (MIN_CHAR_COMPOSITION): Deleted.
4942         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
4943         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
4944
4945 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
4946
4947         * buffer.h: Include mb-utf-8.h in UTF-2000.
4948
4949         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
4950
4951         * mb-utf-8.h: New file.
4952
4953 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
4954
4955         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
4956         instead of `int'.
4957
4958         * mule-charset.h, buffer.h (Charset_ID): New type.
4959
4960 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4961
4962         * mule-canna.c (c2mu): Use `MAKE_CHAR',
4963         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
4964         instead of `MULE_CHAR_PRIVATE_OFFSET',
4965         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
4966         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
4967         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
4968
4969         * character.h (Vcharset_japanese_jisx0212): New variable
4970         definition.
4971
4972 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
4973
4974         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
4975         (charset_by_attributes): Delete array about direction.
4976         (latin_a_char_to_charset): New variable in UTF-2000.
4977         (latin_a_char_to_byte1): New variable in UTF-2000.
4978         (latin_a_char_to_byte2): New variable in UTF-2000.
4979         (Qucs_bmp): New variable.
4980         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
4981         `Bufbyte'.
4982         (next_allocated_2_byte_leading_byte): Likewise.
4983         (non_ascii_set_charptr_emchar): Likewise.
4984         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
4985         `CHARSET_TYPE_256X256' in UTF-2000; modify for
4986         `charset_by_attributes'.
4987         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
4988         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
4989         and `CHARSET_BY_LEADING_BYTE'.
4990         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
4991         `utf-2000-version' to `vars_of_mule_charset'.
4992         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
4993         define `leading-code-private-11' in UTF-2000; move setting of
4994         `utf-2000-version' from `syms_of_mule_charset'.
4995         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
4996         UTF-2000.
4997
4998         * character.h (Charset_ID): New type.
4999         (LEADING_BYTE_UCS_BMP): New macro.
5000         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5001         (CHARSET_ID_OFFSET_94): New macro.
5002         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5003         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5004         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5005         final-byte.
5006         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5007         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5008         (CHARSET_ID_OFFSET_96): New macro.
5009         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5010         CHARSET_ID_OFFSET_96 and final-byte.
5011         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5012         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5013         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5014         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5015         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5016         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5017         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5018         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5019         (LEADING_BYTE_THAI_TIS620): Likewise.
5020         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5021         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5022         (CHARSET_ID_OFFSET_94x94): New macro.
5023         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5024         CHARSET_ID_OFFSET_94x94 and final-byte.
5025         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5026         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5027         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5028         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5029         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5030         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5031         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5032         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5033         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5034         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5035         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5036         (CHARSET_TYPE_128X128): New macro.
5037         (CHARSET_TYPE_256X256): New macro.
5038         (XCHARSET_PRIVATE_P): Delete unconditionally.
5039         (charset_by_attributes): Delete array about direction.
5040         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5041         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5042         (MIN_CHAR_94): New macro.
5043         (MAX_CHAR_94): New macro.
5044         (MIN_CHAR_96): New macro.
5045         (MAX_CHAR_96): New macro.
5046         (MIN_CHAR_94x94): New macro.
5047         (MAX_CHAR_94x94): New macro.
5048         (MIN_CHAR_96x96): New macro.
5049         (MAX_CHAR_96x96): New macro.
5050         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5051         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5052         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5053         - 32)'.
5054         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5055         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5056         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5057         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5058         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5059         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5060         `XCHARSET_LEADING_BYTE' to make code-point.
5061         (latin_a_char_to_charset): New variable.
5062         (latin_a_char_to_byte1): New variable.
5063         (latin_a_char_to_byte2): New variable.
5064         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5065         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5066         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5067
5068         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5069         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5070         (find_charsets_in_emchar_string): Likewise.
5071         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5072
5073         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5074         `int'.
5075         (decode_coding_iso2022): Likewise.
5076
5077         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5078         of `unsigned char'.
5079
5080         * redisplay.c (redisplay_text_width_emchar_string): Use
5081         `Charset_ID' instead of `unsigned char'.
5082         (redisplay_frame_text_width_string): Likewise.
5083
5084         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5085         `unsigned char'.
5086
5087         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5088         instead of `unsigned char'.
5089         (face_cachel_charset_font_metric_info): Likewise.
5090
5091         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5092         (get_non_ascii_char_table_value): Likewise.
5093         (get_char_table): Likewise.
5094         (put_char_table): Likewise.
5095         (map_over_other_charset): Likewise.
5096         (map_char_table): Likewise.
5097
5098         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5099         instead of `unsigned char'.
5100
5101 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5102
5103         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5104         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5105
5106         * mule-charset.c (leading_code_private_11): Don't define in
5107         UTF-2000.
5108
5109         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5110         in UTF-2000 because it is not ported yet and not to use
5111         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5112
5113 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5114
5115         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5116
5117 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5118
5119         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5120         in UTF-2000.
5121
5122         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5123         of unsigned char to store leading-byte.
5124
5125         * chartab.c (get_non_ascii_char_table_value): Don't use
5126         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5127
5128         * file-coding.c (encode_coding_big5): Delete bogus implementation
5129         in UTF2000.
5130
5131         * character.h (LEADING_BYTE_*): Delete definition for
5132         non-UTF-2000.
5133         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5134         (LEADING_BYTE_PREFIX_P): Deleted.
5135         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5136         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5137         (BUFBYTE_LEADING_BYTE_P): Deleted.
5138         (CHARSET_PRIVATE_P): Deleted unconditionally.
5139         (rep_bytes_by_first_byte): Deleted unconditionally.
5140         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5141         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5142         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5143         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5144         (CHAR_FIELD2): Deleted.
5145         (CHAR_FIELD3): Deleted.
5146         (MAKE_CHAR): Delete definition for non-UTF-2000.
5147         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5148         (breakup_char_1): New implementation.
5149         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5150         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5151
5152 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5153
5154         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5155         condition.
5156
5157 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5158
5159         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5160         (CHARSET_PRIVATE_P): Likewise.
5161         (XCHARSET_PRIVATE_P): Likewise.
5162         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5163
5164         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5165         UTF2000.
5166         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5167
5168 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5169
5170         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5171         (NUM_LEADING_BYTES): Changed from 128 to 256.
5172         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5173         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5174         UTF2000.
5175         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5176
5177         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5178         UTF2000.
5179         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5180         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5181         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5182         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5183         (Qchinese_cns11643_3): New variable in UTF2000.
5184         (Qchinese_cns11643_4): New variable in UTF2000.
5185         (Qchinese_cns11643_5): New variable in UTF2000.
5186         (Qchinese_cns11643_6): New variable in UTF2000.
5187         (Qchinese_cns11643_7): New variable in UTF2000.
5188         (syms_of_mule_charset): Define `chinese-cns11643-3',
5189         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5190         and `chinese-cns11643-7' in UTF2000.
5191         (vars_of_mule_charset): Initialize
5192         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5193         + 1 in UTF2000.
5194         (complex_vars_of_mule_charset): Setup charset
5195         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5196         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5197
5198 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5199
5200         * mule-charset.c: Move setting for `leading-code-private-11' from
5201         `syms_of_mule_charset' to `vars_of_mule_charset'.
5202
5203 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5204
5205         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5206         and `NUM_LEADING_BYTES' in assert.
5207
5208 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5209
5210         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5211         instead of 128.
5212         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5213         `NUM_LEADING_BYTES' instead of 128.
5214
5215 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5216
5217         * mule-charset.h (charset_by_leading_byte): Use
5218         `NUM_LEADING_BYTES' instead of 128.
5219         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5220
5221         * mule-charset.c (charset_by_leading_byte): Use
5222         `NUM_LEADING_BYTES' instead of 128.
5223         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5224
5225         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5226         128.
5227
5228 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5229
5230         * mule-charset.c (syms_of_mule_charset): Update to
5231         0.4 (Shin-Imamiya).
5232
5233 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5234
5235         * file-coding.c (encode_coding_sjis): New implementation for
5236         UTF2000.  (decode_coding_sjis): Ditto.
5237
5238 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5239
5240         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5241         Don't define in UTF2000.
5242
5243         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5244         defined.
5245
5246         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5247         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5248         MULE.
5249
5250 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5251
5252         * config.h.in (CHAR_IS_UCS4): New macro.
5253
5254         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5255         conventional MULE representation.
5256         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5257
5258         * mule-charset.h: Reverted to original.
5259
5260         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5261         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5262         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5263
5264         * character.h: New file.
5265
5266         * file-coding.c (Fmake_coding_system): Set 1 to
5267         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5268         defined.
5269         (encode_coding_no_conversion): New implementation for UTF2000.
5270
5271         * file-coding.h (struct Lisp_Coding_System): Add new member
5272         `fixed.size'.
5273
5274 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5275
5276         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5277         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5278         (encode_coding_iso2022): New implementation for UTF2000.
5279
5280 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5281
5282         * mule-canna.c (c2mu): New implementation for UTF2000.
5283         (m2c): Likewise.
5284
5285 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5286
5287         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5288
5289 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5290
5291         * file-coding.c (reset_encoding_stream): Set 0 to
5292         `str->iso2022.current_char_boundary' in UTF2000.
5293         (encode_utf8): Don't define in UTF2000.
5294         (encode_coding_utf8): New implementation for UTF-8 representation
5295         of UTF2000.
5296         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5297
5298 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5299
5300         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5301
5302         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5303         UTF2000.
5304         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5305
5306         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5307
5308         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5309         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5310         as UTF-8 in UTF2000.
5311         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5312         (non_ascii_valid_char_p): Don't define in UTF2000.
5313         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5314         (Lstream_get_emchar_1): Likewise.
5315         (utf-2000-version): New variable in UTF2000.
5316
5317         * lread.c (read_escape): Add new reader `u'.
5318
5319         * insdel.c (three_to_one_table): Don't define in UTF2000.
5320         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5321         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5322         UTF2000.
5323         (bytind_to_bufpos_func): Likewise.
5324         (buffer_mule_signal_inserted_region): Likewise.
5325         (vars_of_insdel): Don't initialize `three_to_one_table'.
5326         (init_buffer_text): Use `buf->text->mule_size' instead of
5327         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5328         UTF2000.
5329
5330         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5331         UTF-8 representation in UTF2000.
5332         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5333         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5334         (decode_coding_iso2022): Don't define local variable `lb' in
5335         UTF2000; don't use LEADING_BYTE in UTF2000; use
5336         `DECODE_ADD_UCS_CHAR' in UTF2000.
5337         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5338
5339         * config.h.in (UTF2000): New macro.
5340
5341         * buffer.h (struct buffer_text): Add new member `mule_size' and
5342         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5343         (valid_char_p): Return always 1 in UTF2000.
5344         (MAX_EMCHAR_LEN): 6 in UTF2000.
5345         (three_to_one_table): Don't define in UTF2000.
5346         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5347         UTF2000.
5348         (real_bytind_to_bufpos): Likewise.
5349
5350         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5351
5352 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5353
5354         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5355         representation change.
5356         (Vutf_2000_version): New variable.
5357         (leading_code_private_11): New variable.
5358         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5359         `leading-code-private-11'.
5360
5361         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5362         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5363         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5364         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5365         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5366         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5367         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5368         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5369         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5370         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5371         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5372         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5373         (MIN_CHAR_GREEK): New macro.
5374         (MAX_CHAR_GREEK): New macro.
5375         (MIN_CHAR_CYRILLIC): New macro.
5376         (MAX_CHAR_CYRILLIC): New macro.
5377         (MIN_CHAR_HEBREW): New macro.
5378         (MAX_CHAR_HEBREW): New macro.
5379         (MIN_CHAR_THAI): New macro.
5380         (MAX_CHAR_THAI): New macro.
5381         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5382         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5383         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5384         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5385         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5386         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5387         (CHAR_FIELD2): New inline function.
5388         (CHAR_FIELD3): New inline function.
5389         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5390         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5391         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5392         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5393         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5394         (MIN_CHAR_COMPOSITION): Likewise.
5395         (CHAR_LEADING_BYTE): Modified for character representation change.
5396         (MAKE_CHAR): Likewise.
5397
5398         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5399         (Vcharset_greek_iso8859_7): Likewise.
5400         (Vcharset_cyrillic_iso8859_5): Likewise.
5401         (Vcharset_hebrew_iso8859_8): Likewise.
5402         (Vcharset_thai_tis620): Likewise.
5403         (Vcharset_katakana_jisx0201): Likewise.
5404
5405 2004-02-02  Vin Shelton <acs@xemacs.org>
5406
5407         * XEmacs 21.4.15 is released
5408
5409 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
5410
5411         * device-x.c (x_error_handler): Don't call stderr_out
5412
5413 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
5414
5415         * buffer.c (other-buffer): Clarify documentation of order of
5416         arguments for FSF Emacs.
5417
5418 2003-10-11  Olivier Galibert  <galibert@pobox.com>
5419
5420         * window.c (Fdelete_window): Dirty the mirror structure _before_
5421         marking the window deleted.
5422
5423 2003-09-15  Jerry James  <james@xemacs.org>
5424
5425         * event-msw.c (debug_mswin_messages): Conditionally compile
5426         messages missing from the Cygwin headers.
5427
5428 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
5429
5430         * data.c (eq_with_ebola_notice): Fix typo in comment.
5431         (Ftrue_list_p): Improve docstring.
5432
5433 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
5434
5435         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
5436
5437 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
5438
5439         * search.c (trivial_regexp_p): Regexps containing "\{" are
5440         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
5441         Stefan Monnier for suggesting a diagnosis.
5442
5443 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
5444
5445         * elhash.c (make-hash-table): Clarify use of :test #'equal.
5446
5447 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
5448
5449         * search.c (Fsearch_forward):
5450         (Fsearch_backward):
5451         Document negative count.
5452
5453 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
5454
5455         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
5456
5457 2003-09-13  Martin Buchholz  <martin@xemacs.org>
5458
5459         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
5460
5461 2003-09-15  Vin Shelton  <acs@xemacs.org>
5462
5463         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
5464         21.5.
5465
5466 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
5467
5468         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
5469         (re_search_2): Match the first byte of Bufbyte, not Emchar.
5470         (re_match_2_internal): Use TRANSLATE instead of
5471         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
5472         non-ASCII char case conversion.
5473
5474 2003-09-08  Mike Sperber  <mike@xemacs.org>
5475
5476         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
5477         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
5478
5479 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
5480
5481        * .gdbinit (pobj): fix printing of symbol name.
5482
5483 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
5484
5485         * frame-x.c (x_layout_widgets): When resizing is about to cause
5486         frame size slip, mark it for redisplay.
5487
5488 2003-08-18  Jerry James  <james@xemacs.org>
5489
5490         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
5491
5492 2003-09-03  Vin Shelton <acs@xemacs.org>
5493
5494         * XEmacs 21.4.14 is released
5495
5496 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5497
5498         * config.h.in (REGEX_MALLOC): Make it configure'able.
5499
5500 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5501
5502         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5503         linking.
5504         * sysdll.c (dll_init):
5505         * sysdll.c (dll_open):
5506         * sysdll.c (dll_close):
5507         * sysdll.c (dll_function):
5508         * sysdll.c (dll_variable):
5509         * sysdll.c (dll_error):
5510         Add support for loading bundles using Darwin/MacOSX
5511         native API.
5512
5513 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5514
5515         * process.c (start-process-internal): Document coding systems.
5516
5517 2003-07-30  Jerry James  <james@xemacs.org>
5518
5519         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5520
5521 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5522
5523         * event-msw.c (mswindows_enqueue_mouse_button_event):
5524         * event-msw.c (mswindows_wnd_proc):
5525           enqueue button event when scrollwheel event isn't handled by 
5526           mswindows_handle_mousewheel_event, such as when the scrollbars
5527           are not showing.
5528
5529 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5530
5531         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5532
5533 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5534
5535         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5536
5537 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5538
5539         * regex.c (re_match_2_internal): Fix matching degenerate word
5540         boundaries.
5541
5542 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5543
5544         * XEmacs 21.4.13 is released
5545
5546 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5547
5548         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5549         * lisp.h (<inttypes.h>):
5550         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5551         the definition.
5552
5553 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5554
5555         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5556         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5557         Result: "temacs can only be run in -batch mode."
5558         Fix: Check xemacs executable candidate for directory-ness.
5559
5560 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5561
5562         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5563           they conflict with <sys/types.h>.
5564
5565 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5566
5567         * database.c: Berkeley DB wants __STDC__ to be defined.
5568
5569 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5570
5571         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5572
5573 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5574
5575         * process-unix.c (unix_send_process): Fix C++ compile error.
5576
5577 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5578
5579         * Added .dylib as an acceptable shared library file extension
5580         * to support MacOSX.
5581
5582 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5583
5584         * EmacsFrameP.h (EmacsFramePart):
5585         Kludge to allow compiling with Motif1, but linking with Motif2.
5586
5587 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5588
5589         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5590
5591
5592 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5593
5594         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5595
5596 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5597
5598         * sysdll.c: Included lisp.h to define needed alloca_array.
5599
5600 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5601
5602         Make XEmacs redisplay 10 times faster.
5603         If, that is, you're using a slow X connection and MoveOpaque.
5604         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5605         Use compress_motion = TRUE.
5606         * EmacsFrame.c (emacsFrameClassRec): 
5607         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5608         * EmacsManager.c (emacsManagerClassRec):
5609         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5610
5611 2003-01-30  Vin Shelton  <acs@xemacs.org>
5612
5613         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5614
5615 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5616
5617         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5618         Patch by Martin Buchholz.
5619
5620 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5621
5622         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5623         Thanks to icc for warning and Martin Buchholz for reporting.
5624
5625 2003-01-29  Vin Shelton <acs@xemacs.org>
5626
5627         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5628
5629         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5630         remember to multiply by the element size.
5631
5632 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5633
5634         * XEmacs 21.4.12 "Portable Code" is released.
5635
5636 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5637
5638         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5639         * s/cygwin.sc: new linker file.
5640
5641 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5642
5643         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5644
5645         * redisplay-x.c (x_output_string): Use X11-specified types.
5646         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5647         * emacs.c (__free_hook): Use typeof with Intel compiler.
5648         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5649
5650 2003-01-08  Andy Piper  <andy@xemacs.org>
5651
5652         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5653         reserve size during unexec().
5654
5655 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5656
5657         * process-unix.c (unix_create_process): Don't let outchannel block.
5658
5659 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5660
5661         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5662         Needed for IsBadReadPtr().
5663
5664 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5665
5666         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5667
5668 2002-12-14  Ben Wing  <ben@xemacs.org>
5669
5670         * callint.c: Declaration error.
5671         * dumper.c (pdump):
5672         * dumper.c (pdump_load): Warning fix.
5673         * process.c: GCPRO error.
5674         * glyphs.c (unmap_subwindow):
5675         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5676         * event-stream.c (maybe_kbd_translate): Wrong argument to
5677         character_to_event().
5678
5679         * alloc.c (garbage_collect_1):
5680         * emacs.c:
5681         * emacs.c (debug_can_access_memory):
5682         * emacs.c (fatal_error_signal):
5683         * emacs.c (mswindows_handle_hardware_exceptions):
5684         * emacs.c (main_1):
5685         * emacs.c (main):
5686         * emacs.c (assert_failed):
5687         * emacs.c (syms_of_emacs):
5688         * lisp.h:
5689         * print.c:
5690         * print.c (std_handle_out_va):
5691         * print.c (write_string_to_stdio_stream):
5692         * print.c (write_fmt_string):
5693         * print.c (printing_badness):
5694         * print.c (printing_major_badness):
5695         * print.c (print_internal):
5696         * print.c (debug_print_no_newline):
5697         * print.c (debug_backtrace):
5698         Be more defensive in handling bad values when printing.  Add code
5699         from trunk involving inhibit_non_essential_printing_operations.
5700         When going down or in debug_print(), don't do external conversion
5701         and such and try really, really hard when printing to avoid core
5702         dumping.  Add force-debugging-signal, debug_break().
5703
5704 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5705
5706         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5707         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5708
5709 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5710
5711         * database.c: Fix open_database. Berkeley DB API has changed in
5712         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5713
5714 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5715
5716         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5717
5718 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5719
5720         * event-Xt.c (Xt_timeout):
5721         (Xt_timeout_callback):
5722         (emacs_Xt_add_timeout):
5723         (emacs_Xt_remove_timeout):
5724         (Xt_timeout_to_emacs_event):
5725         Turn completed_timeouts from a stack into a queue.  Fixes
5726         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5727
5728 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5729
5730         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5731         * emacs.c (main): Assert that mmap'd allocation is disabled.
5732
5733 2002-10-14  Andy Piper  <andy@xemacs.org>
5734
5735         * glyphs-widget.c (layout_query_geometry): add in fiddle
5736         factor. Include border text in width layout calculation.
5737         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5738
5739 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5740
5741         * XEmacs 21.4.10 "Military Intelligence" is released.
5742
5743 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5744
5745         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5746         using the NAS private array SoundFileInfo that no longer exists in
5747         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5748         and earlier.  This is broken for some versions between 1.5a and
5749         1.5f.
5750
5751 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5752
5753         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5754
5755         * emacs.c (shut_down_emacs): Improve crash message.
5756
5757 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5758
5759         * file-coding.c (determine_real_coding_system): Check for coding
5760         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5761         shebangs and Python PEP 263.
5762
5763 2002-10-08  Andy Piper  <andy@xemacs.org>
5764
5765         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5766         if static sizes haven't been set.
5767
5768 2002-08-30  Mike Alexander  <mta@arbortext.com>
5769
5770         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5771         to close a socket.
5772
5773 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5774
5775         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5776
5777 2002-09-20  Mike Sperber <mike@xemacs.org>
5778
5779         (This partially gets back my patch from 2002-07-20 without the
5780         bug.)
5781         * callproc.c (child_setup): Remove Ben's comment noting confusion
5782         over the file descriptors >= 3: close_process_descs() doesn't
5783         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5784         * process-unix.c (unix_create_process): Call
5785         begin_dont_check_for_quit to inhibit unwanted interaction (and
5786         thus breaking of X event synchronicity) in the child.
5787
5788 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5789
5790         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5791         widget.
5792
5793 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5794
5795         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5796         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5797         the xemacs process did not exit, but looped infinitely here.  This
5798         fixes that problem.
5799
5800 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5801
5802         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5803         (find_context): Improve comments.
5804
5805         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5806         (re_match_2): An XCHAR_TABLE operation was missing.
5807
5808         Many of the following changes were inspired by Andy Piper's (now
5809         obsolete) patch to make syntax-table text property lookup optional.
5810
5811         [Documentation]
5812
5813         * syntax.h (top level): Document semantics of syntax flags.
5814         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5815         * syntax.c, syntax.h (top level): Document syntax cache better in
5816         comments.
5817
5818         [Instrument syntax caching (temporary change)]
5819
5820         * syntax.h (enum syntax_cache_statistics_functions, struct
5821         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5822         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5823         * syntax.c (scan_words, Fforward_comment, scan_lists,
5824         Fbackward_prefix_characters):
5825         * font-lock.c (find_context):
5826         Use them to instrument syntax caching. 
5827         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5828         syntax_cache_statistics_function_names): New type and variables.
5829         * syntax.c (update_syntax_cache): Update and report statistics.
5830
5831         [Major syntax cache optimizations]
5832
5833         syntax.c (lookup_syntax_properties): Default off.
5834
5835         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5836         * syntax.c (update_syntax_cache):
5837         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5838
5839         [Minor syntax cache optimizations and code clarifications]
5840
5841         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5842         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5843         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5844         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5845         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5846         (Code clarification.)
5847
5848         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5849         scan_lists): Compute code from syncode, use Boolean macros instead
5850         of redundant masking operations.  (Code clarification; any decent
5851         compiler can do this optimization.)
5852
5853         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5854         for clarity.
5855
5856         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5857         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5858         use F*_single_property_change instead of F*_extent_change.
5859         Currently F*_single_property_change is _much_ less efficient.
5860
5861         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5862         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5863         syntax_cache.object properly, don't leave Qt or Qnil.
5864         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5865         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5866         tests for Qt or Qnil.
5867
5868 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5869
5870         * redisplay.c (point_in_line_start_cache): 
5871         * extents.c (print_extent_1):
5872         Fix warnings.
5873
5874         * extents.c (Fset_extent_property): Document `syntax-table' property.
5875
5876         * extents.h (Fnext_single_property_change): EXFUN it.
5877
5878 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5879
5880         * search.c (clear_unused_search_regs): New static function.
5881         (search_buffer): 
5882         (simple_search): 
5883         (boyer_moore):
5884         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5885         Minor clarifications in comments.
5886
5887         * regex.c (re_match_2_internal): Ensure no stale submatches.
5888
5889 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5890
5891         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5892
5893 2002-08-29  Jerry James  <james@xemacs.org>
5894
5895         * lisp.h: structrures -> structures.
5896
5897 2002-06-03  Andy Piper  <andy@xemacs.org>
5898
5899         * frame.c (frame_conversion_internal): add conversion appropriate
5900         for setting frame dimensions in pixels.
5901
5902         * console.h (struct console_methods): add device-specific widget
5903         layout functions.
5904
5905         * emacs.c (main_1): initialize glyph vars.
5906
5907         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5908         (handle_focus_event_2): new function. Allow focus to
5909         be set to a particular window and widget.
5910         (enqueue_focus_event): new function. Create a
5911         synthetic focus event.
5912         (emacs_Xt_handle_magic_event): call
5913         handle_focus_event_2.
5914
5915         * frame.c (Fset_frame_pixel_height): new function. Allow
5916         pixel-based sizing. Does the right thing on character-oriented
5917         displays.
5918         (Fset_frame_pixel_width): ditto.
5919         (Fset_frame_pixel_size): ditto.
5920         (syms_of_frame): declare.
5921
5922         * general-slots.h: add :vertically-justify and
5923         :horizontally-justify.
5924
5925         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5926         (mswindows_widget_border_width): new function.
5927         (mswindows_combo_box_instantiate): set border widths.
5928         (console_type_create_glyphs_mswindows): declare.
5929
5930         * glyphs-widget.c:
5931         (check_valid_justification): allow vertical and horizontal
5932         justification.
5933         (widget_border_width): new function. Call device methods.
5934         (widget_instance_border_width): ditto.
5935         (logical_unit_height): new function. Determine the height of a
5936         logical-unit. Logical units are intended to provide grid-like
5937         layout for subcontrols in a layout. If the layout is
5938         :vertically-justify top then subcontrols will be positioned on
5939         logical-unit boundaries, thus allowing adjacent subcontrols to
5940         line up.
5941         (widget_logical_unit_height): ditto for widgets.
5942         (redisplay_widget): misc cleanup.
5943         (widget_spacing): new function. Call device specific
5944         methods. Intended to be the default gap between adjacent widgets.
5945         (widget_query_geometry): use new spacing functions to determine
5946         appropriate geometry.
5947         (initialize_widget_image_instance): initialize horizontal and
5948         vertical justification.
5949         (widget_instantiate): use logica-units where appropriate for
5950         sizing large widgets.
5951         (button_query_geometry): use widget_instance_border_width.
5952         (tree_view_query_geometry): ditto.
5953         (tab_control_query_geometry): ditto.
5954         (edit_field_query_geometry): new function.
5955         (layout_update): pick up :justify, :horizontally-justify and
5956         :vertically-justify none of which worked previously. :justify is
5957         used as a fallback for both horizontal and vertical justification.
5958         (layout_query_geometry): use logical units to size appropriately.
5959         (layout_layout): ditto.
5960         (Fwidget_logical_to_character_width): new function. Allow users to
5961         convert from logical units to characters so that frame sizes can
5962         be set appropriately.
5963         (Fwidget_logical_to_character_height): ditto.
5964         (syms_of_glyphs_widget): declare.
5965         (image_instantiator_edit_fields): add edit_field_query_geometry.
5966         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
5967         :horizontally-justify.
5968         (specifier_vars_of_glyphs_widget): new function. Declare
5969         Vwidget_border_width which is not yet used.
5970
5971         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
5972         (x_widget_border_width): new function.
5973         (x_widget_instantiate): create a sensible name for widgets.
5974         (console_type_create_glyphs_x): declare x_widget_border_width.
5975
5976         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
5977         (struct Lisp_Image_Instance): add :vertically-justify and
5978         :horizontally-justify.
5979         (LAYOUT_JUSTIFY_TOP): new.
5980         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
5981         (ROUND_UP): new macro. Round argument up to next integral
5982         interval.
5983
5984         * redisplay-output.c (redisplay_output_layout): misc formatting.
5985
5986         * symsinit.h: declare specifier_vars_of_glyphs_widget.
5987
5988 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
5989
5990         * XEmacs 21.4.9 "Informed Management" is released.
5991
5992 2002-08-19  Andy Piper  <andy@xemacs.org>
5993
5994         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
5995         win32 format.
5996
5997         * realpath.c (xrealpath): normalize drive spec also so that dir
5998         sep chars are not mixed on cygwin.
5999
6000 2002-08-06  Jerry James  <james@xemacs.org>
6001
6002         * window.c (Fsplit_window): Count only half of the divider width
6003         against the left window when splitting horizontally. 
6004
6005 2002-06-24  Andy Piper  <andy@xemacs.org>
6006
6007         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
6008         toolbar was cleared.
6009
6010         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
6011         function. Split out from mswindows_output_frame_toolbars.
6012         (mswindows_output_frame_toolbars): move clear pieces to
6013         mswindows_output_frame_toolbars.
6014
6015         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
6016         out from gtk_output_frame_toolbars.
6017         (gtk_output_frame_toolbars): move clear pieces to
6018         gtk_clear_frame_toolbars.
6019
6020         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
6021         the frame is cleared. How this ever worked before is a mystery.
6022         (x_output_frame_toolbars): Only output toolbars.
6023         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
6024
6025         * gutter.c (update_gutter_geometry):
6026         Mark frame layout changed.
6027         (update_frame_gutter_geometry, update_frame_gutters):
6028         Respect frame_layout_changed.
6029
6030         * console.h (struct console_methods): add
6031         clear_frame_toolbars_method.
6032
6033         * redisplay.c (redisplay_frame): call
6034         update_frame_toolbars_geometry and re-order update_frame_toolbars.
6035
6036         * toolbar.h: declare update_frame_toolbars_geometry.
6037
6038         * toolbar.c (update_frame_toolbars_geometry): new function. Split
6039         out from update_frame_toolbars.  Call clear_frame_toolbars.
6040         (update_frame_toolbars): only output, do not change geometry.
6041
6042         * redisplay.c: add frame_layout_changed.
6043
6044         * redisplay.h: add frame_layout_changed.
6045         (CLASS_RESET_CHANGED_FLAGS): set it.
6046         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
6047         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
6048         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
6049
6050         * device.h (struct device): add frame_layout_changed.
6051         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
6052
6053         * frame.h (struct frame): add frame_layout_changed.
6054         (MARK_FRAME_LAYOUT_CHANGED): new.
6055
6056 2002-06-30  Mike Alexander  <mta@arbortext.com>
6057
6058         * event-msw.c (mswindows_need_event): Don't wait for a new message
6059         if the queue is not empty.  Suggested by Paul Moore.
6060
6061 2002-06-12  Andy Piper  <andy@xemacs.org>
6062
6063         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
6064         for printing on accurately.
6065
6066 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
6067
6068         * event-msw.c (mswindows_wnd_proc): Add a handler for the
6069         WM_ACTIVATE message. Make sure that the frame is visible if the
6070         window is visible. This seemss to fix the problem where XEmacs
6071         appears to freeze after switching desktops with certain virtual
6072         window managers.
6073         (debug_output_mswin_message): Added code to output message
6074         parameters for WM_WINDOWPOSCHANGED, 
6075         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
6076
6077 2002-05-25  Andy Piper  <andy@xemacs.org>
6078
6079         * select-x.c (vars_of_select_x): Fix docstring of
6080         x-selection-strict-motif-ownership
6081
6082 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6083
6084         * keymap.c (get_keymap):
6085         Add comment about do_autoload GCPROs own args.
6086
6087 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6088
6089         * bytecode.c (execute_optimized_program): check_opcode ifdef
6090         ERROR_CHECK_BYTE_CODE.
6091
6092 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6093
6094         Thanks to Ben Wing and Michael Sperber.
6095
6096         * eval.c (Fcommand_execute):
6097         (Feval):
6098         (Ffuncall):
6099         (Fmacroexpand_internal):
6100         (function_argcount):
6101         callint.c (Fcall_interactively):
6102         Add comment about do_autoload GCPROs own args.
6103
6104         * (do_autoload): GCPRO both args as well as local Lisp_Object.
6105
6106         * eval.c (Ffuncall): Extra braces to placate GCC.
6107
6108 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
6109
6110         * backtrace.h (grow_specpdl):
6111         (SPECPDL_RESERVE):
6112         * EmacsFrame.c (EmacsFrameSetValues):
6113         * eval.c (grow_specpdl):
6114         * ExternalShell.c (hack_event_masks_1):
6115         * glyphs-x.c (convert_EImage_to_XImage): 
6116         (x_finalize_image_instance):
6117         * ralloc.c (page_size):
6118         (r_alloc_sbrk):
6119         * xgccache.c (gc_cache_hash):
6120         Fix unsigned comparison warnings.
6121
6122 2002-07-29  Jerry James  <james@xemacs.org>
6123
6124         * lread.c (locate_file): Any nonnegative return value indicates
6125         success if MODE is nonnegative.
6126
6127 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
6128
6129         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
6130         argument. 
6131
6132 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
6133
6134         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
6135
6136         * dumper.c (pdump_get_indirect_count):
6137         (pdump_scan_by_alignment):
6138         (pdump_dump_root_struct_ptrs):
6139         (pdump_dump_rtables):
6140         (pdump_dump_root_objects):
6141         (pdump):
6142         * nas.c (WaveOpenDataForReading):
6143         * fns.c (print_bit_vector):
6144         * font-lock.c (SINGLE_SYNTAX_STYLE):
6145         * glyphs.c (check_for_ignored_expose):
6146         (find_matching_subwindow):
6147         * glyphs-eimage.c:
6148         * imgproc.c (get_histogram):
6149         * redisplay.c (point_in_line_start_cache):
6150         * redisplay-output.c (redisplay_unmap_subwindows):
6151         * symbols.c (defsymbol_massage_name_1):
6152         (defkeyword_massage_name):
6153         (deferror_massage_name_and_message):
6154         * redisplay-x.c (x_output_string): 
6155         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
6156         * frame.h (struct frame):
6157         * filelock.c (current_lock_owner):
6158         * doprnt.c (emacs_doprnt_1):
6159         * lisp.h (struct Lisp_Bit_Vector):
6160         (DO_REALLOC):
6161         Fix warnings.
6162
6163 2002-02-13  Ben Wing  <ben@xemacs.org>
6164
6165         * event-stream.c (reset_key_echo):
6166         * event-stream.c (reset_this_command_keys):
6167         * event-stream.c (execute_command_event):
6168         If console is dead as a result of C-x 5 0, then post-command stuff
6169         needs to be careful and do only non-console-specific stuff.
6170
6171 2002-07-01  Mike Sperber <mike@xemacs.org>
6172
6173         * process-unix.c (unix_send_process): Mark coding_outstream as
6174         non-open upon SIGPIPE.
6175
6176         * event-stream.c (Fnext_event): Reorder switch cases to something
6177         that makes sense.
6178
6179 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
6180
6181         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
6182         Don't bogusly reinitialize ascii_character property.
6183
6184 2002-07-08  Mike Sperber <mike@xemacs.org>
6185
6186         * process.c (Fstart_process_internal): Do error checking before we
6187         fork off the child, so the child can't muck with the state of the
6188         parent.
6189
6190 2002-07-08  Mike Sperber <mike@xemacs.org>
6191
6192         * ralloc.c (init_ralloc): Allocate properly for pdump.
6193
6194 2002-06-12  Andy Piper  <andy@xemacs.org>
6195
6196         * glyphs.c (query_string_geometry): check the string.
6197
6198         * glyphs-widget.c (widget_logical_unit_height): cope with nil
6199         widget names.
6200
6201 2002-06-17  Jerry James  <james@xemacs.org>
6202
6203         * sysdll.c: Remove RTLD_GLOBAL initialization.
6204         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
6205
6206 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
6207
6208         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
6209
6210 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
6211
6212         * sysdep.c (sys_rename): Make sys_rename work for the case where
6213         Windows rename sets errno to EACCES if target file exists.
6214
6215 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
6216
6217         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6218         Fix detection of metric units to work on Win95
6219
6220 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
6221
6222         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
6223
6224 2002-04-25  Andy Piper  <andy@xemacs.org>
6225
6226         * redisplay.c (create_text_block): Remove extra comment trailer.
6227
6228 2002-04-24  Andy Piper  <andy@xemacs.org>
6229
6230         * redisplay.c (create_text_block): Don't actually add propagation
6231         data if the line ends after we have added a glyph.
6232
6233 2002-04-22  Andy Piper  <andy@xemacs.org>
6234
6235         * extents.c (extent_fragment_update): check for glyphs we have
6236         previously displayed.
6237         * extents.c (print_extent_1): warning removal.
6238         * extents.h: change prototype.
6239         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
6240         widths correctly for wide glyphs.
6241         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
6242         * redisplay.c (prop_type): add PROP_GLYPH.
6243         * redisplay.c (struct prop_block): add glyph type
6244         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
6245         to the propagation data.
6246         * redisplay.c (create_text_block): if there is a glyph in the
6247         propagation data use it to salt extent_fragment_update.
6248         * redisplay.c (create_string_text_block): ditto.
6249
6250 2002-04-13  Nix  <nix@esperi.demon.co.uk>
6251
6252         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
6253         * redisplay-output.c (compare_runes): Compare them.
6254         * redisplay.c: Update copyright date.
6255         * redisplay.c (pos_data): Add need_baseline_computation field.
6256         * redisplay.c (add_glyph_rune): Update ascent, descent, and
6257         need_baseline_computation; zero yoffset. Set max_pixmap_height
6258         for all pixmaps, not just automatically positioned ones.
6259         * redisplay.c (calculate_yoffset): New, compute yoffset values.
6260         * redisplay.c (calculate_baseline): New, compute textual baseline.
6261         * redisplay.c (add_glyph_rune): Call them.
6262         * redisplay.c (create_text_block): Likewise.
6263         * redisplay.c (create_overlay_glyph_block): Likewise.
6264         * redisplay.c (add_margin_runes): Likewise.
6265         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
6266
6267         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
6268         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
6269         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
6270         * redisplay-msw.c (mswindows_output_string): Likewise.
6271         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
6272         * redisplay-gtk.c (gtk_output_display_block): Likewise.
6273         * redisplay-x.c (x_output_display_block): Likewise.
6274
6275 2002-03-28  Ben Wing  <ben@xemacs.org>
6276
6277         * redisplay.c: Fixed bug in redisplay
6278         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
6279         and down of the lines, since they're bigger than the line
6280         size. (It was seen most obviously when there's a horizontal scroll
6281         bar, e.g. do C-h a glyph or something like that.) The problem was
6282         that the glyph-contrib-p setting on glyphs was ignored even if it
6283         was set properly, which it wasn't until now.
6284
6285 2002-04-24  Andy Piper  <andy@xemacs.org>
6286
6287         * lisp.h (Dynarr_end): Fix definition.
6288
6289 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
6290
6291         * redisplay.c (mark_redisplay): Remove call to
6292         update_frame_window_mirror.
6293
6294 2001-11-15  Andy Piper  <andy@xemacs.org>
6295
6296         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
6297         cygwin (again).
6298
6299 2002-02-13  Andy Piper  <andy@xemacs.org>
6300
6301         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
6302         we did in fact enqueue the XM_MAPFRAME event.
6303
6304 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
6305
6306         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
6307         to fix problem switching between virtual desktops under virtuawin
6308         virtual window manager.
6309
6310 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
6311
6312         * event-msw.c: Typo fix.
6313         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
6314         magic XM_MAPFRAME event has been sent.
6315
6316 2001-11-23  Andy Piper  <andy@xemacs.org>
6317
6318         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
6319
6320 2001-11-21  Andy Piper  <andy@xemacs.org>
6321
6322         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
6323         mouse events outside the frame.
6324
6325 2002-03-20  Andy Piper  <andy@xemacs.org>
6326
6327         * menubar-msw.c (mswindows_popup_menu): warning removal.
6328         * dialog-msw.c (dialog_popped_down): ditto.
6329
6330 2001-12-11  Andy Piper  <andy@xemacs.org>
6331
6332         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6333         * dialog-msw.c (mswindows_make_dialog_box_internal): set
6334         popup_up_p.
6335         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6336         * menubar-msw.c (mswindows_handle_wm_command): ditto.
6337         * menubar-msw.c (mswindows_popup_menu): ditto.
6338
6339 2001-10-29  Andy Piper  <andy@xemacs.org>
6340
6341         * dialog-msw.c (handle_directory_dialog_box): quit if the user
6342         cancels.
6343
6344 2002-01-03  Andy Piper  <andy@xemacs.org>
6345
6346         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6347         letters.
6348         (xrealpath): ditto.
6349
6350 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6351
6352         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6353         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6354         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6355         Detect and handle case where machine is set up for metric units
6356
6357 2002-04-02  Andy Piper  <andy@xemacs.org>
6358
6359         * dired-msw.c (mswindows_get_files): 
6360         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6361         completely handled by XEmacs. Suggested by Thomas Vogler
6362         <mail@thomas-vogler.de>.
6363
6364 2001-11-14  Andy Piper  <andy@xemacs.org>
6365
6366         * nt.c (REG_ROOT): change registry key to XEmacs.
6367
6368 2002-04-27  Andy Piper  <andy@xemacs.org>
6369
6370         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6371
6372 2002-04-26  Andy Piper  <andy@xemacs.org>
6373
6374         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6375         behavior.
6376
6377 2002-03-14  Mike Alexander  <mta@arbortext.com>
6378
6379         * event-msw.c (mswindows_unwait_process): New, remove process from
6380         wait list
6381         * process-nt.c (nt_finalize_process_data): Call
6382         mswindows_unwait_process
6383         * console-msw.h: Declare mswindows_unwait_process
6384
6385 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6386
6387         * editfns.c (Fdecode_time):
6388         (Fformat_time_string):
6389         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6390         (make_time): Warning elimination (change arg name).
6391
6392 2001-11-24  Andy Piper  <andy@xemacs.org>
6393
6394         * window.c (Fsplit_window): Doc return type.
6395
6396 2002-04-01  Andy Piper  <andy@xemacs.org>
6397
6398         * emacs.c (Fkill_emacs): Only output message box in interactive
6399         mode.
6400
6401 2002-04-26  Andy Piper  <andy@xemacs.org>
6402  
6403         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6404         cygwin.
6405
6406 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6407
6408         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6409         bit platform.
6410
6411 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6412
6413         * XEmacs 21.4.8 "Honest Recruiter" is released.
6414
6415 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6416
6417         Supersedes 2002-04-17 patch.
6418
6419         * process.h (PROCESS_LIVE_P): Use the process status as
6420         evidence of health, not the state of the input stream.
6421         (PROCESS_READABLE_P): Say if the process is readable
6422         from. (It may be dead nonetheless.)
6423         (CHECK_READABLE_PROCESS): Test for that condition.
6424
6425         * process.c (create_process): Use PROCESS_READABLE_P.
6426         (read_process_output, set_process_filter): Likewise.
6427
6428         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6429         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6430
6431         This code is #if 0'd, this is not the time to add new functions:
6432
6433         * process.c (Fprocess_readable_p): Report readability status.
6434         * process.c (Qprocess_readable_p): New, associated symbol...
6435         * process.c (syms_of_process): ... initialize it.
6436
6437 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6438
6439         * XEmacs 21.4.7 "Economic Science" is released.
6440
6441 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6442
6443         * process.h (PROCESS_LIVE_P): Use the process status as
6444         evidence of health, not the state of the input stream.
6445
6446 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6447
6448         * sysdep.c (sys_siglist): change "signum" to "signal"
6449
6450 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6451
6452         * s/darwin.h: New file.
6453         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6454         
6455 2002-04-23  Andreas Jaeger  <aj@suse.de>
6456
6457         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6458         which use lib64 for 64-bit libs.
6459         (START_FILES): Likewise.
6460
6461 2002-02-11  Mike Sperber  <mike@xemacs.org>
6462
6463         * device-x.c: 
6464         (x_IO_error_handler):
6465         (x_init_device): Temporarily keep device in static variable
6466         `device_being_initialized' so we can recover gracefully from
6467         internal XOpenDevice failure.  (XOpenDevice is documented to
6468         return NULL on failure, but sometimes calls the IO error handler
6469         instead.)
6470
6471 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6472
6473         * dired.c (Ffile_name_all_completions): Change documentation --
6474         remove reference to completion-ignored-extensions.
6475         * dired.c (vars_of_dired): Change documentation for
6476         completion-ignored-extensions -- remove reference to
6477         file-name-all-completions.
6478
6479 2002-03-06  Jerry James  <james@xemacs.org>
6480
6481         * emodules.c (emodules_load): Fix multiple loading of same module.
6482
6483 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6484         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6485         RTLD_LAZY to avoid incorrect symbol binding when using nested
6486         shared libraries on Solaris.
6487
6488 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6489
6490         * fileio.c (Ffind_file_name_handler): Improve docstring.
6491
6492 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6493
6494         * fns.c (Fmapconcat): Improve docstring.
6495
6496 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6497
6498         * device-gtk.c: Add prototype for
6499         emacs_gtk_selection_clear_event_handle.
6500         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6501         selection.  Setup signal handler for "selection_clear_event"
6502         (emacs_gtk_selection_clear_event_handle).
6503
6504         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6505         other applications owning the clipboard (based on
6506         x_handle_selection_clear).
6507
6508 2001-12-23  William M. Perry  <wmperry@gnu.org>
6509
6510         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6511         
6512 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6513
6514         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6515
6516 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6517
6518         * XEmacs 21.4.6 "Common Lisp" is released.
6519
6520 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6521
6522         * search.c (Freplace_match): Add missing sub-expression functionality.
6523
6524         * buffer.c (decode_buffer): Add a check for pointer type to
6525         decode_buffer, before gcc's CSE optimization reorders a
6526         dereference in front of the allow_string test.
6527
6528 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6529
6530         * window.c (window_loop): Fix bug that sometimes prevented
6531         window_loop() from iterating across multiple devices.  Also, at
6532         Ben's request, changed infloop-detecting code to abort() instead
6533         of silently terminating window_loop().
6534
6535 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6536
6537         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6538         * editfns.c (make_time): New function.
6539         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6540         * lisp.h (make_time): Prototype and comment it.
6541         * dired.c (wasteful_word_to_lisp): Deprecate.
6542         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6543
6544 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6545
6546         * fileio.c (auto_save_1): Use current coding system, not
6547         escape-quoted.
6548
6549 2001-11-13  Ben Wing  <ben@xemacs.org>
6550
6551         * window.c:
6552         * window.c (window_truncation_on):
6553         * window.c (syms_of_window):
6554         truncate-partial-width-windows should respect the buffer being
6555         displayed, like other redisplay vars.
6556
6557 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6558
6559         * event-stream.c (Fread_key_sequence): save current buffer.
6560
6561 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6562
6563         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6564
6565 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6566
6567         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6568
6569 2001-10-26  Mike Alexander  <mta@arbortext.com>
6570
6571         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6572
6573 2001-10-25  Andy Piper  <andy@xemacs.org>
6574
6575         * ChangeLog:
6576         * dialog-msw.c (handle_directory_proc): new function.
6577          (handle_directory_dialog_box): new fucntion.
6578          (handle_file_dialog_box): use new directory dialog support.
6579          (mswindows_make_dialog_box_internal): ditto.
6580         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6581         handling.
6582         (mswindows_find_frame): make global.
6583         * fileio.c (Fexpand_file_name): build fix.
6584         * general-slots.h: add Qdirectory.
6585         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6586         handling.
6587         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6588         cygwin not leaving win32 paths unchanged.
6589         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6590         cygwin runtime to do path conversion.
6591         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6592         (syms_of_win32): add new function.
6593         * window.c (window_loop): build fix.
6594
6595 2001-10-15  Andy Piper  <andy@xemacs.org>
6596
6597         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6598
6599 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6600
6601         * XEmacs 21.4.5 "Civil Service" is released.
6602
6603 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6604
6605         * glyphs-x.c: Force buffer-tab highlight update when moving the
6606         buffer, avoiding an ugly black border, used for keyboard focus
6607         indication, on a widget that can never have keyboard focus, the
6608         buffer tab.
6609
6610 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6611
6612         * process-unix.c (unix_open_multicast_group): Remove too much
6613         conversion between host and network byte order.
6614
6615 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6616
6617         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6618         before replacing them.
6619
6620         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6621         operation.
6622
6623         * src/window.c (undedicate_windows): Use it.
6624         * src/window.h: Add prototype.
6625
6626 2001-09-17  Ben Wing  <ben@xemacs.org>
6627
6628         * fileio.c (normalize_filename):
6629         * fileio.c (Fexpand_file_name):
6630         Fix various C++ compile errors in Andy's recent code.
6631         
6632         * callint.c (Fcall_interactively):
6633         * editfns.c (Ftemp_directory):
6634         * editfns.c (Fuser_full_name):
6635         * emacs.c (argmatch):
6636         * lread.c (locate_file_map_suffixes):
6637         * redisplay-x.c (x_ring_bell):
6638         Fix sign-compare warnings.
6639         
6640 2001-09-08  Andy Piper  <andy@xemacs.org>
6641
6642         * fileio.c (normalize_filename): copied from nt.c
6643         * (Ffile_name_directory): enable win32 paths under cygwin.
6644         * (Ffile_name_nondirectory): ditto.
6645         * (directory_file_name): ditto.
6646         * (Fexpand_file_name): ditto.
6647         * (Ffile_truename): ditto.
6648         * (Fsubstitute_in_file_name): ditto.
6649         * (Ffile_name_absolute_p): ditto.
6650         * (Ffile_readable_p): ditto.
6651
6652 2001-09-08  Andy Piper  <andy@xemacs.org>
6653
6654         * device-msw.c (mswindows_finish_init_device): remove dde
6655         initialization.
6656         * device-msw.c (mswindows_init_dde): factor out from
6657         mswindows_finish_init_device()
6658         * device-msw.c (init_mswindows_very_early): new function
6659         initialize but don't enable dde.
6660         * emacs.c (main_1): call init_mswindows_very_early.
6661         * event-msw.c:
6662         * event-msw.c (mswindows_dde_callback): only execute when we are
6663         ready.
6664         * symsinit.h: declare init_mswindows_very_early.
6665
6666 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6667
6668         [sjt: This has been in 21.5 for months with no complaints.]
6669
6670         * console.h (struct console_methods): Added flags member.
6671         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6672         (CONMETH_IMPL_FLAG):
6673         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6674         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6675
6676         * device.c (window_system_pixelated_geometry): Use the above macros.
6677
6678         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6679         implememntation flag.
6680         * device.h (DEVICE_DISPLAY_P): Use it.
6681
6682         * frame.c (delete_frame_internal): Use the above macro.
6683
6684         * redisplay.c (redisplay_device): Use it.
6685         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6686         (redisplay_frame): Ditto.
6687
6688         * device-msw.c (mswindows_device_implementation_flags): Removed.
6689         (msprinter_device_implementation_flags): Removed.
6690         (console_type_create_device_mswindows): Removed references to
6691         implementation_flags methods, set implementation flags here.
6692         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6693
6694         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6695         (console_type_create_device_gtk): Removed method declaration.
6696         Added commented out statement which semantically matches the
6697         commented out statement in the above removed method.
6698
6699 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6700
6701         The attached patch fixes a few warnings. 
6702
6703         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6704         * src/frame-gtk.c: guard against GNOME calls in GTK only
6705         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6706         * src/select-gtk.c: prototype lisp_to_time
6707
6708 2001-06-08  Ben Wing  <ben@xemacs.org>
6709
6710         ------ gc-in-window-procedure fixes ------
6711         
6712         * alloc.c:
6713         * alloc.c (struct post_gc_action):
6714         * alloc.c (register_post_gc_action):
6715         * alloc.c (run_post_gc_actions):
6716         * alloc.c (garbage_collect_1):
6717         Create "post-gc actions", to avoid those dreaded "GC during window
6718         procedure" problems.
6719
6720         * event-msw.c:
6721         Abort, clean and simple, when GC in window procedure.  We want
6722         to flush these puppies out.
6723
6724         * glyphs-msw.c:
6725         * glyphs-msw.c (finalize_destroy_window):
6726         * glyphs-msw.c (mswindows_finalize_image_instance):
6727         Use a post-gc action when destroying subwindows.
6728
6729         * lisp.h:
6730         Declare register_post_gc_action().
6731
6732         * scrollbar-msw.c:
6733         * scrollbar-msw.c (unshow_that_mofo):
6734         Use a post-gc action when unshowing scrollbar windows, if in gc.
6735
6736         * redisplay.c (mark_redisplay):
6737         Add comment about the utter evilness of what's going down here.
6738
6739         ------ cygwin setitimer fixes ------
6740         
6741         * Makefile.in.in (sheap_objs):
6742         * Makefile.in.in (profile_objs):
6743         * Makefile.in.in (objs):
6744         Compile profile.c only when HAVE_SETITIMER.
6745         
6746         * nt.c (mswindows_sigset):
6747         * nt.c (mswindows_sighold):
6748         * nt.c (mswindows_sigrelse):
6749         * nt.c (mswindows_sigpause):
6750         * nt.c (mswindows_raise):
6751         * nt.c (close_file_data):
6752         Style fixes.
6753         
6754         * nt.c:
6755         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6756         
6757         * profile.c:
6758         * profile.c (Fstart_profiling):
6759         * profile.c (Fstop_profiling):
6760         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6761         instead of just plain setitimer().
6762         
6763         * signal.c:
6764         * signal.c (set_one_shot_timer):
6765         * signal.c (alarm):
6766         Define qxe_setitimer() as an encapsulation around setitimer() --
6767         call setitimer() directly unless Cygwin or MS Win, in which case
6768         we use our simulated version in win32.c.
6769         
6770         * systime.h:
6771         * systime.h (struct itimerval):
6772         * systime.h (ITIMER_REAL):
6773         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6774         comment about "qxe" and the policy regarding encapsulation.
6775
6776         * win32.c:
6777         * win32.c (setitimer_helper_proc):
6778         * win32.c (setitimer_helper_period):
6779         * win32.c (setitimer_helper):
6780         * win32.c (mswindows_setitimer):
6781         Move setitimer() emulation here, so Cygwin can use it.
6782         Rename a couple of functions and variables to be longer and more
6783         descriptive.  In setitimer_helper_proc(), send the signal
6784         using either mswindows_raise() or (on Cygwin) kill().  If for
6785         some reason we are still getting lockups, we'll change the kill()
6786         to directly invoke the signal handlers.
6787
6788         ------ windows shell fixes ------
6789         
6790         * callproc.c:
6791         * ntproc.c:
6792         Comments about how these two files must die.
6793
6794         * callproc.c (init_callproc):
6795         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6796         not just COMSPEC. (more correct and closer to FSF.) Don't
6797         force a value for SHELL into the environment. (Comments added
6798         to explain why not.)
6799         
6800         * nt.c (init_user_info):
6801         Don't shove a fabricated SHELL into the environment.  See above.
6802
6803 2001-06-01  Ben Wing  <ben@xemacs.org>
6804
6805         * Makefile.in.in (ldflags):
6806         eliminate that pesky "defaulting to 00401000" warning.
6807         * nt.h:
6808         eliminate warnings.
6809
6810 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6811
6812         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6813         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6814
6815 2001-04-24  Jerry James <james@xemacs.org>
6816
6817         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6818         correct order.
6819
6820 2001-06-01  Ben Wing  <ben@xemacs.org>
6821
6822         * event-msw.c (debug_mswin_messages):
6823         conditionalize the messages that were causing compile errors.
6824         (if only macros could generate #ifdef statements ...)
6825
6826 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6827
6828         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6829
6830 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6831
6832         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6833
6834 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6835
6836         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6837         * process-unix.c (unix_canonicalize_host_name):
6838         sysdep.c (init_system_name):
6839         Use it to conditionally support IPv6 canonicalization.
6840
6841 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6842
6843         * event-msw.c:
6844         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6845
6846 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6847
6848         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6849         attempt is made to scroll when no scroll bar is available.
6850
6851 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6852
6853         * input-method-motif.c (XIM_delete_frame): New callback.
6854         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6855         got deleted from 21.4.3.)
6856
6857 2001-06-01  Ben Wing  <ben@xemacs.org>
6858
6859         * nt.c (mswindows_utime):
6860         * nt.c (close_file_data):
6861         fix off-by-one-indirection error.
6862
6863 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6864
6865         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6866         because set_file_times() now takes Lisp_Object path, instead of
6867         char*.
6868         * nt.c: Include buffer.h.
6869         * nt.c (convert_from_time_t): New.
6870         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6871         not set mtime correctly.
6872         * nt.h: Declare mswindows_utime().
6873         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6874         path, instead of char*.
6875         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6876
6877 2001-05-30  Ben Wing  <ben@xemacs.org>
6878
6879         For 21.4:
6880
6881         (Stephen, just take all event-msw.c patches.  This includes
6882         the "iconify" fix below.)
6883
6884         * event-msw.c:
6885         * event-msw.c (mswindows_dequeue_dispatch_event):
6886         * event-msw.c (assert):
6887         * event-msw.c (emacs_mswindows_quit_p):
6888         * event-msw.c (debug_mswin_messages):
6889         * event-msw.c (debug_output_mswin_message):
6890         * event-msw.c (vars_of_event_mswindows):
6891         Fix yet more problems with C-g handling.
6892         Implement debug-mswindows-events.
6893         
6894 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6895
6896         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6897         
6898 2001-05-23  Ben Wing  <ben@xemacs.org>
6899
6900         * event-msw.c (winsock_writer):
6901         * event-msw.c (winsock_closer):
6902         prior kludgy code was clobbering the buffer, thinking it was
6903         "unused" space to store an unneeded return value; instead, use
6904         the variable we've already got staring us in the face.
6905
6906 2001-05-17  Andy Piper  <andy@xemacs.org>
6907
6908         * sysfile.h: don't assume that file attributes are boolean
6909
6910 2001-05-23  Ben Wing  <ben@xemacs.org>
6911
6912         * device-msw.c (msprinter_init_device):
6913         signal an error rather than crash with an unavailable network
6914         printer (from Mike Alexander).
6915         
6916         * event-msw.c:
6917         * event-msw.c (struct winsock_stream):
6918         * event-msw.c (winsock_writer):
6919         * event-msw.c (winsock_closer):
6920         * event-msw.c (make_winsock_stream_1):
6921         cleanup headers.  fix (hopefully) an error with data corruption
6922         when sending to a network connection.
6923
6924         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6925         to handle the ~user prefix by (a) always assuming we're referencing
6926         ourselves and not even verifying the user -- hence any file with
6927         a tilde as its first char is invalid! (b) if there wasn't a slash
6928         following the filename, the pointer was set *past* the end of
6929         file and we started reading from uninitialized memory.  Now we
6930         simply treat these as files, always.
6931
6932         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6933         
6934 2001-05-19  Ben Wing  <ben@xemacs.org>
6935
6936         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
6937
6938         * process-nt.c:
6939         * process-nt.c (vars_of_process_nt):
6940         remove unused mswindows-quote-process-args.  rec for 21.4.
6941         
6942 2001-05-12  Ben Wing  <ben@xemacs.org>
6943
6944         * event-msw.c (mswindows_dde_callback):
6945         * event-msw.c (mswindows_wnd_proc):
6946         eliminate cygwin warnings.
6947
6948 2001-05-06  Ben Wing  <ben@xemacs.org>
6949
6950         * console-msw.h:
6951         * device-msw.c:
6952         * device-msw.c (print_dialog_worker):
6953         * device-msw.c (mswindows_handle_print_dialog_box):
6954         * device-msw.c (syms_of_device_mswindows):
6955         * dialog-msw.c (mswindows_make_dialog_box_internal):
6956         * general-slots.h:
6957         implement printing the selection when it's selected.
6958
6959 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
6960
6961         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
6962
6963 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
6964
6965         * lisp.h (EMACS_INT_MAX): This should be one bit less since
6966         EMACS_INT is signed.
6967
6968 2001-04-15  Michael Lausch  <mla@1012surf.net>
6969
6970         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
6971         gtk_widget_request_size() to give scrollbar >0 width for
6972         GTK >1.2.8.
6973
6974 2001-05-30  William M. Perry  <wmperry@gnu.org>
6975
6976         * event-gtk.c: Check for buttons as modifier keys.
6977
6978 2001-05-25  Craig Lanning  <CraigL@Knology.net>
6979
6980         * s\mingw32.h:
6981         Properly find MinGW's <process.h> inside Cygwin's restructured
6982         include directories.  Don't try to include <cygwin/version.h>
6983         since we are dropping support for MinGW in versions of Cygwin
6984         earlier than b21.
6985         * nt.c:
6986         Drop support for MinGW in versions of Cygwin before b21.
6987         * sysdep.c:
6988         Properly find MinGW's <process.h> inside Cygwin's restructured
6989         include directories.
6990         * syswindows.h:
6991         Drop support for MinGW in versions of Cygwin before b21.
6992         * unexcw.c:
6993         Even though a.out.h is no longer detected by configure, allow
6994         MinGW to use it until we figure out how to do the job with Win32.
6995
6996 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
6997
6998         * syntax.c (find_start_of_comment):
6999         Fix `unbalanced parentheses' bug when dealing with mixed comment
7000         styles in c++/java/etc. mode
7001
7002 2001-05-29  Mike Alexander  <mta@arbortext.com>
7003
7004         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
7005         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
7006
7007 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
7008
7009         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
7010
7011 2001-03-31  Mike Sperber <mike@xemacs.org>
7012
7013         * search.c (Freplace_match): Support FSF-style specification of
7014         match subexpression when applied to a buffer.
7015
7016 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7017
7018         * event-stream.c (is_scrollbar_event): add missing semicolon
7019
7020 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
7021
7022         * Makefile.in.in: Use TAR macro instead of hardcoding
7023           tar.  Allows use of GNU tar instead of system tar
7024
7025 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7026
7027         * event-stream.c (is_scrollbar_event): add missing semicolon
7028
7029 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7030
7031         * XEmacs 21.4.3 "Academic Rigor" is released.
7032
7033 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7034
7035         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
7036
7037 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7038
7039         * buffer.c (Vcase_fold_search): Remove obsolete
7040           comment about non ASCII case-fold-search.  This
7041           bug has been fixed by case-table changes.
7042
7043 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
7044
7045         * event-msw.c: Restore include of events-mod.h.
7046
7047 2001-04-22   zhaoway  <zw@debian.org>
7048
7049         * event-stream.c (is_scrollbar_event): Noop returning 0 if
7050         !HAVE_SCROLLBARS.
7051
7052 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
7053
7054         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
7055
7056 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
7057
7058         * mule-charset.c (Fmake_charset): Add missing else.
7059
7060 2001-04-23  Ben Wing  <ben@xemacs.org>
7061
7062         * event-msw.c (FAKE_MOD_QUIT):
7063         * event-msw.c (mswindows_dequeue_dispatch_event):
7064         * event-msw.c (mswindows_wnd_proc):
7065         * event-msw.c (emacs_mswindows_quit_p):
7066         Get critical quit working.
7067
7068 2001-05-05  Ben Wing  <ben@xemacs.org>
7069
7070         * console-msw.h:
7071         * device-msw.c:
7072         * device-msw.c (mswindows_get_default_margin):
7073         * frame-msw.c (mswindows_size_frame_internal):
7074         * frame-msw.c (msprinter_init_frame_1):
7075         * frame-msw.c (vars_of_frame_mswindows):
7076         Change top/bottom margin defaults to 0.5 inches.
7077
7078 2001-05-01  Martin Buchholz  <martin@xemacs.org>
7079
7080         Fix link error with gcc 3.0 on Linux.
7081         * terminfo.c (UP): Remove.
7082         * terminfo.c (BC): Remove.
7083         * terminfo.c (PC): Remove.
7084         They weren't used, and in any case, these symbols should be
7085         defined in the *library*.
7086
7087 2001-05-03  Martin Buchholz  <martin@xemacs.org>
7088
7089         * s/aix4.h: Fix crash with xlc -O3.
7090         Improve comment explaining how -O3 works.
7091
7092 2001-04-15  Ben Wing  <ben@xemacs.org>
7093
7094         * event-stream.c:
7095         * event-stream.c (Fnext_event):
7096         * event-stream.c (is_scrollbar_event):
7097         * event-stream.c (execute_command_event):
7098         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
7099         crash' problem.  His fix introduces other problems.  We filter
7100         out scrollbar events specifically, making them somewhat invisible
7101         to command-building, and not appearing in `this-command-keys'.
7102         More work is still needed (see comments in event-stream.c), but
7103         this fixes all the major problems.
7104
7105 2001-04-20  Ben Wing  <ben@xemacs.org>
7106
7107         * .cvsignore: Added stuff for Windows.
7108
7109 2001-04-28  Ben Wing  <ben@xemacs.org>
7110
7111         * buffer.c (Ferase_buffer):
7112         * editfns.c (buffer_insert1):
7113         * editfns.c (Finsert_before_markers):
7114         * editfns.c (Finsert_string):
7115         * editfns.c (Finsert_char):
7116         * editfns.c (Fdelete_region):
7117         * editfns.c (Fwiden):
7118         * editfns.c (Fnarrow_to_region):
7119         remove bogus lines setting zmacs_region_stays to 0.
7120         
7121 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7122
7123         * process-unix.c (unix_open_network_stream): If connect() fails
7124         invalidate file descriptor after closing it.
7125
7126 2001-03-08  Mike Alexander  <mta@arbortext.com>
7127
7128         * event-msw.c (mswindows_need_event_in_modal_loop):
7129         Don't dispatch a message if we didn't get one.
7130         (mswindows_need_event):
7131         Terminate the correct process when one exits instead of the first
7132         one on Vprocess_list and look for process termination when in
7133         mswindows_protect_modal_loop.
7134
7135 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
7136
7137         * XEmacs 21.4.1 "Copyleft" is released.
7138
7139 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7140
7141         * input-method-motif.c (XIM_delete_frame): New callback.
7142         (XIM_init_frame): Register it.
7143
7144 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7145
7146         * XEmacs 21.4.0 "Solid Vapor" is released.
7147
7148 2001-04-15  Ben Wing  <ben@xemacs.org>
7149
7150         * cmdloop.c (call_command_loop):
7151         Fix braino in bit-rotting code.
7152         
7153 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
7154
7155         * extents.c (Fset_extent_endpoints): Force creation of extent info
7156         in buffer_or_string.
7157
7158         * extents.c (process_extents_for_insertion_mapper): Correctly
7159         check for open-open zero-length extents.
7160
7161 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7162
7163         * lisp.h: New typedefs Memory_count, Element_count.
7164         * regex.c:
7165         * regex.h:
7166         Sign-compare warning elimination: several unsigned -> signed.
7167         Based on work by Ben Wing <ben@xemacs.org>.
7168
7169 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
7170
7171         * XEmacs 21.2.47 "Zephir" is released.
7172
7173 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
7174
7175         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
7176
7177 2001-04-03  Mike Sperber <mike@xemacs.org>
7178
7179         * search.c: Revert previous patch due because of release.
7180
7181 2001-03-30  Ben Wing  <ben@xemacs.org>
7182
7183         * s\cygwin32.h:
7184         Add missing killpg prototype.
7185
7186         * elhash.c:
7187         Add a comment about fixing problems when a new entry is added
7188         while mapping.
7189
7190         * frame-msw.c (mswindows_init_frame_1):
7191         Fix compile warnings.
7192
7193         * menubar.c (vars_of_menubar):
7194         Provide `menu-accelerator-support' to indicate that we properly
7195         support %_ in menu specifications, so that package code can
7196         conditionalize on this (and remove %_ from menu specifications
7197         on older versions).
7198
7199         * event-msw.c:
7200         * scrollbar-msw.c:
7201         * scrollbar-msw.c (can_scroll):
7202         * scrollbar-msw.h:
7203         Fix handling of mouse wheel under Windows to follow standards --
7204         now scrolls window under pointer, not selected window.
7205
7206 2001-03-31  Mike Sperber <mike@xemacs.org>
7207
7208         * search.c (Freplace_match): Support FSF-style specification of
7209         match subexpression when applied to a buffer.
7210
7211 2001-03-15  Martin Buchholz  <martin@xemacs.org>
7212
7213         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
7214         function to modify KEYMAP, so map over a copy of the hash table.
7215
7216 2001-03-21  Martin Buchholz <martin@xemacs.org>
7217
7218         * XEmacs 21.2.46 "Urania" is released.
7219
7220 2001-03-20  Dan Holmsand  <dan@eyebee.com>
7221
7222         * realpath.c (xrealpath): Make file-truename work with symlinks to
7223         /cygdrive paths on cygwin. Always lowercase drive-letters on
7224         native windows.
7225         (cygwin_readlink): Don't try to find canonical filename unless
7226         file exists.
7227
7228 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
7229
7230         * ChangeLog: Log GTK merge.
7231
7232         * dumper.c:
7233         * select-x.c:
7234         * specifier.c:
7235         * symeval.h:
7236         Revert gratuitous whitespace changes from GTK merge.
7237
7238         * emacs.c: Document end of complex #ifdef @ l. 1495.
7239
7240
7241 2001-03-12  Andy Piper  <andy@xemacs.org>
7242
7243         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
7244         have to do likewise.
7245
7246 2001-03-12  Andy Piper  <andy@xemacs.org>
7247
7248         * sysdep.c: we only support mingw now.
7249
7250 2001-03-09  Andy Piper  <andy@xemacs.org>
7251
7252         * unexcw.c (copy_executable_and_dump_data_section): making approx
7253         overrun a warning only.
7254
7255 2001-03-10  William M. Perry  <wmperry@aventail.com>
7256
7257         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
7258         satisfy Stephen's identical-after-cpp plea.
7259
7260 2001-03-02  Ben Wing  <ben@xemacs.org>
7261
7262         * cmds.c:
7263         * cmds.c (Fforward_char):
7264         * syntax.c:
7265         * window.c:
7266
7267         Augment documentation of the most common motion commands to make
7268         note of the shifted-motion support.
7269         
7270 2001-03-02  Ben Wing  <ben@xemacs.org>
7271
7272         * nt.c (mswindows_fstat):
7273         * nt.c (mswindows_stat):
7274         * search.c (boyer_moore):
7275         Fix compile warnings under Windows.
7276         
7277         * sysdep.c (sys_readdir):
7278         Fix buggy filename-conversion code under Mule.
7279
7280 2001-03-09  William M. Perry  <wmperry@aventail.com>
7281
7282         * Makefile.in.in:
7283         * config.h.in:
7284         * console.c:
7285         * console.h:
7286         * device.c:
7287         * device.h:
7288         * dragdrop.c:
7289         * emacs.c:
7290         * event-stream.c:
7291         * events.c:
7292         * events.h:
7293         * faces.c:
7294         * frame.h:
7295         * general-slots.h:
7296         * glyphs.c:
7297         * gutter.c:
7298         * inline.c:
7299         * lisp.h:
7300         * lrecord.h:
7301         * make-src-depend:
7302         * redisplay-output.c:
7303         * redisplay.c:
7304         * symsinit.h:
7305         * sysfile.h:
7306         * toolbar.c:
7307         * window.c:
7308         The Great GTK Merge.
7309
7310         * ChangeLog.GTK:
7311         * console-gtk.c:
7312         * console-gtk.h:
7313         * device-gtk.c:
7314         * emacs-marshals.c:
7315         * emacs-widget-accessors.c:
7316         * event-gtk.c:
7317         * frame-gtk.c:
7318         * gccache-gtk.c:
7319         * gccache-gtk.h:
7320         * glade.c:
7321         * glyphs-gtk.c:
7322         * glyphs-gtk.h:
7323         * gtk-glue.c:
7324         * gtk-xemacs.c:
7325         * gtk-xemacs.h:
7326         * gui-gtk.c:
7327         * gui-gtk.h:
7328         * menubar-gtk.c:
7329         * native-gtk-toolbar.c:
7330         * objects-gtk.c:
7331         * objects-gtk.h:
7332         * redisplay-gtk.c:
7333         * scrollbar-gtk.c:
7334         * scrollbar-gtk.h:
7335         * select-gtk.c:
7336         * toolbar-gtk.c:
7337         * ui-byhand.c:
7338         * ui-gtk.c:
7339         * ui-gtk.h:
7340         The Great GTK Merge: new files.
7341
7342 2001-02-26  Ben Wing  <ben@xemacs.org>
7343
7344         Reapplied Lstream change.
7345
7346 2001-02-26  Ben Wing  <ben@xemacs.org>
7347
7348         Undid the last change, since it is more controversial than I
7349         thought.  It should be back in at some point soon.
7350         
7351 2001-02-25  Ben Wing  <ben@xemacs.org>
7352
7353         * buffer.c:
7354         * callproc.c (Fold_call_process_internal):
7355         * event-msw.c (ntpipe_slurp_reader):
7356         * event-msw.c (ntpipe_shove_writer):
7357         * event-msw.c (winsock_reader):
7358         * event-msw.c (winsock_writer):
7359         * file-coding.c:
7360         * file-coding.c (detect_eol_type):
7361         * file-coding.c (detect_coding_type):
7362         * file-coding.c (determine_real_coding_system):
7363         * file-coding.c (Fdetect_coding_region):
7364         * file-coding.c (decoding_reader):
7365         * file-coding.c (decoding_writer):
7366         * file-coding.c (mule_decode):
7367         * file-coding.c (Fdecode_coding_region):
7368         * file-coding.c (encoding_reader):
7369         * file-coding.c (encoding_writer):
7370         * file-coding.c (mule_encode):
7371         * file-coding.c (Fencode_coding_region):
7372         * file-coding.c (detect_coding_sjis):
7373         * file-coding.c (decode_coding_sjis):
7374         * file-coding.c (encode_coding_sjis):
7375         * file-coding.c (detect_coding_big5):
7376         * file-coding.c (decode_coding_big5):
7377         * file-coding.c (encode_coding_big5):
7378         * file-coding.c (detect_coding_ucs4):
7379         * file-coding.c (decode_coding_ucs4):
7380         * file-coding.c (encode_coding_ucs4):
7381         * file-coding.c (detect_coding_utf8):
7382         * file-coding.c (decode_coding_utf8):
7383         * file-coding.c (encode_coding_utf8):
7384         * file-coding.c (detect_coding_iso2022):
7385         * file-coding.c (decode_coding_iso2022):
7386         * file-coding.c (encode_coding_iso2022):
7387         * file-coding.c (decode_coding_no_conversion):
7388         * file-coding.c (encode_coding_no_conversion):
7389         * glyphs-x.c (write_lisp_string_to_temp_file):
7390         * gpmevent.c (tty_get_foreign_selection):
7391         * lisp.h:
7392         * lstream.c:
7393         * lstream.c (Lstream_flush_out):
7394         * lstream.c (Lstream_adding):
7395         * lstream.c (Lstream_write_1):
7396         * lstream.c (Lstream_write):
7397         * lstream.c (Lstream_raw_read):
7398         * lstream.c (Lstream_read_more):
7399         * lstream.c (Lstream_read):
7400         * lstream.c (Lstream_unread):
7401         * lstream.c (Lstream_fputc):
7402         * lstream.c (stdio_reader):
7403         * lstream.c (stdio_writer):
7404         * lstream.c (filedesc_reader):
7405         * lstream.c (filedesc_writer):
7406         * lstream.c (lisp_string_reader):
7407         * lstream.c (struct fixed_buffer_stream):
7408         * lstream.c (make_fixed_buffer_input_stream):
7409         * lstream.c (make_fixed_buffer_output_stream):
7410         * lstream.c (fixed_buffer_reader):
7411         * lstream.c (fixed_buffer_writer):
7412         * lstream.c (struct resizing_buffer_stream):
7413         * lstream.c (resizing_buffer_writer):
7414         * lstream.c (dynarr_writer):
7415         * lstream.c (lisp_buffer_reader):
7416         * lstream.c (lisp_buffer_writer):
7417         * lstream.h:
7418         * lstream.h (lstream_implementation):
7419         * lstream.h (struct lstream):
7420         * md5.c (Fmd5):
7421         * process-nt.c (nt_send_process):
7422         * process-unix.c (unix_send_process):
7423         
7424         Correct Lstream lossage due to mixing of signed and unsigned
7425         quantities.  All Lstream uses of size_t and ssize_t are now a
7426         single signed data type Lstream_data_count.  This fixes problems
7427         under Windows with sending large quantities of data to a process,
7428         and may well fix other subtle bugs.
7429
7430 2001-02-23  Martin Buchholz <martin@xemacs.org>
7431
7432         * XEmacs 21.2.45 "Thelxepeia" is released.
7433
7434 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7435
7436         * lisp-union.h (XSETINT): 
7437         (XSETCHAR):
7438         (XSETOBJ): 
7439         Reverse previous change of 2001-02-06.
7440
7441 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7442
7443         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7444         buffers.
7445         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7446         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7447         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7448         * regex.c (POS_AS_IN_BUFFER): removed
7449         * regex.c (re_search_2):
7450         * regex.c (re_match_2):
7451         Don't use an offset of 1 when calculating buffer positions, since
7452         `BI_BUF_BEGV' does it already.
7453
7454 2001-02-18  Wim Dumon  <wim@easics.be>
7455
7456         * insdel.c (prepare_to_modify_buffer): Also check for
7457         supersession when clash-detection is enabled. 
7458
7459 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7460
7461         * regex.c (re_match_2_internal):
7462         Convert temp characters from 'const unsigned char' to 're_char'.
7463         Fix crashing bug with extended characters under mule.
7464         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7465         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7466         font-lock, pdump, and new syntax-table code.
7467         * syntax.c (find_start_of_comment):
7468         (find_end_of_comment):
7469         (forward-comment):
7470         Fix crashing bugs involving moving beyond end of buffer.
7471         * syntax.c (find_start_of_comment):
7472         Fixed logic to allow proper detection of cases where the same
7473         character is used to end both a two-char comment start and a
7474         two-char comment end sequence. Fixes `(forward-comment -1)'.
7475         * syntax.c (find_start_of_comment):
7476         Return position just past last comment-end character for all cases
7477         (previously was only done for two-char comment-end sequences).
7478         * syntax.c (forward-comment):
7479         Take value returned from `find_end_of_comment', rather than
7480         incrementing it.
7481         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7482         Properly deal with BUFFERP (syntax_cache.object)
7483
7484 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7485
7486         * alloc.c (Fgarbage_collect): 
7487         * alloc.c (make_bit_vector_from_byte_vector):
7488         -Wsign-compare-correctness.
7489
7490 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7491
7492         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7493         (XSETCHAR): Likewise.
7494         (XSETOBJ): Likewise.
7495
7496 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7497
7498         * mule-canna.c (canna-func-delete_previous): 
7499         Rename to canna-func-delete-previous.
7500
7501 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7502
7503         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7504
7505 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7506
7507         * font-lock.c (find_context): Fix C++ compile errors introduced by
7508         recent patch
7509
7510 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7511
7512         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7513         pragma, but earlier ones barf on the same pragma.
7514
7515 2001-02-06  Mike Sperber <mike@xemacs.org>
7516
7517         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7518         `configure-mule-lisp-directory'.
7519
7520 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7521
7522         Make sure dump-id.c is compiled in the same way as other .c's.
7523         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7524         * dump-id.h: Remove.
7525         * emacs.c: Move dump-id.h into dumper.h.
7526         * dumper.h: Move dump-id.h into dumper.h.
7527         * Makefile.in.in:
7528         Use standard .c.o rule for building dump-id.o.
7529         Remove preprocessor flags from link command.
7530         Add dump-id.o to ${otherobjs} if PDUMP.
7531
7532 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7533
7534         Port FSF 20.7 syntax table improvements.
7535         * syntax.c.
7536         * syntax.h.
7537
7538         Fixups for new syntax table stuff.
7539         * dired.c: Include syntax.c.
7540         (Fdirectory_files): Initialize regex_match_object and
7541         regex_emacs_buffer.
7542         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7543         and Fget_char_property.
7544
7545         Use ported FSF 20.7 syntax table improvements.
7546         * font-lock.c.
7547         * regex.c.
7548         * search.c.
7549         
7550 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7551
7552         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7553         Unixware's enum boolean from sys/types.h.
7554
7555 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7556
7557         Fix support for building with latest Purify.
7558         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7559         (PURIFY_FLAGS): Likewise.
7560
7561 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7562
7563         * fileio.c (lisp_string_set_file_times): New.
7564         * fileio.c (Fcopy_file): Use it.
7565         Fixes bug:
7566         (copy-file filename non-ascii-filename t t)
7567         ==> No such file or directory, non-ascii-filename
7568
7569 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7570
7571         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7572         USHRT_MAX seems clearer than ~0 anyways.
7573
7574 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7575
7576         dumper improvements.  Inspired by Olivier.
7577         * dumper.c (pdump_max_align): New.
7578         * dumper.c (pdump_add_entry): Use pdump_max_align.
7579         * dumper.c (pdump_get_entry_list): Likewise.
7580         * dumper.c (pdump_scan_by_alignment): Likewise.
7581         Don't iterate through unnecessary alignments.
7582         * dumper.c (pdump_file_get): No need to align result of malloc().
7583         * dumper.c (pdump_mallocadr): Remove.  
7584         The result of malloc() is guaranteed to be maximally aligned.
7585         * dumper.c: s/elmt/elt/g;
7586         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7587         * dumper.c (pdump_alert_undump_object): Likewise.
7588         * dumper.c (pdump_align_table): 
7589         Don't support alignments > 64.
7590         Store ALIGNOF's, not shift counts, in table.
7591
7592 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7593
7594         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7595         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7596         * systime.h: Use HAVE_UTIME.
7597         * sysdep.c (struct utimbuf): Remove.
7598         * sysdep.c (set_file_times): Prefer utime() to utimes().
7599         * config.h.in (HAVE_UTIME): New.
7600         * config.h.in (HAVE_UTIME_H): Remove.
7601         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7602
7603 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7604
7605         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7606
7607 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7608
7609         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7610
7611 2001-02-08  Martin Buchholz <martin@xemacs.org>
7612
7613         * XEmacs 21.2.44 "Thalia" is released.
7614
7615 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7616
7617         Fixes crashes in kill-emacs on some systems.
7618         * process-unix.c (unix_kill_child_process):
7619         It's OK for kill() to fail with ESRCH.
7620
7621 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7622
7623         Contortions to make .gdbinit tricks work on most systems.
7624         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7625         * alloc.c (dbg_valmask): Make non-const.
7626         * alloc.c (dbg_typemask): Make non-const.
7627         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7628         * alloc.c (dbg_valbits): Make non-const.
7629         * alloc.c (dbg_gctypebits): Make non-const.
7630         * .gdbinit (decode_object): Make it work with AIX cc.
7631
7632 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7633
7634         * elhash.c (make_general_lisp_hash_table):
7635         Use simpler and more efficient calloc to clear entries.
7636
7637 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7638
7639         * window.c (window_scroll): Work around an AIX C compiler bug.
7640         Fixes 'scroll-up' does nothing problem with xlC.
7641
7642 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7643
7644         * .gdbinit: Remove obsolete comment.
7645
7646 2001-01-31  Mike Alexander  <mta@arbortext.com>
7647
7648         * select.c (Fown_selection_internal): Set owned_p for device
7649         method correctly.
7650
7651 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7652
7653         Port to g++ 2.97.
7654         "not" cannot be used as a macro name as it is an operator in C++
7655         * config.h.in: Stop #defining `not'.
7656         * chartab.c (check_category_char): not ==> not_p
7657         * chartab.h: Likewise.
7658         * regex.c (re_match_2_internal): Likewise.
7659
7660 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7661
7662         * lisp-disunion.h: Fix up comments.
7663
7664 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7665
7666         * keymap.c (define_key_check_and_coerce_keysym):
7667         (syms_of_keymap):
7668         Support mouse-6 and mouse-7 bindings in the obvious way.
7669
7670 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7671
7672         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7673
7674 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7675
7676         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7677         Previous patch missed DEFVAR_INT_MAGIC.
7678         Make sure future DEFVAR_foo use correct types.
7679         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7680         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7681         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7682         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7683         * (DEFVAR_INT): Likewise.
7684         * redisplay.c (vertical_clip): Should be of type Fixnum.
7685         * redisplay.c (horizontal_clip): Likewise.
7686         * lisp.h (dump_add_opaque_int): New.
7687         (dump_add_opaque_fixnum): New.
7688
7689 2001-01-29  Andy Piper  <andy@xemacs.org>
7690
7691         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7692         since they can be eval'ed
7693
7694 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7695
7696         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7697         Oops, XEmacs redefines `class'.  Use `typename' instead.
7698
7699 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7700
7701         * dumper.c: Fix C++ compile errors.
7702
7703 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7704
7705         * tparam.c: Use correct prototypes.
7706
7707 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7708
7709         * sysproc.h: #include util.h for NetBSD's openpty.
7710
7711 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7712
7713         More 64-bit correctness.
7714         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7715         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7716         Fix up comments.
7717         This finally finishes the 64-bit SGI port.
7718         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7719         * symbols.c: Fix up comments and type casts.
7720         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7721         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7722         * symeval.h (Fixnum): New type.
7723         * symeval.h (symbol_value_type): Fix up comment.
7724
7725         * commands.h:
7726         * nt.c:
7727         * emacs.c:
7728         * data.c:
7729         * redisplay.c:
7730         * abbrev.c:
7731         * dired-msw.c:
7732         * event-Xt.c:
7733         * eldap.c:
7734         * window.c:
7735         * sound.c:
7736         * event-stream.c:
7737         * eval.c:
7738         * buffer.c:
7739         * mule-canna.c: A million DEFVAR_INTs here...
7740         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7741         * extents.c:
7742         * cmdloop.c:
7743         * lisp.h:
7744         * select-x.c:
7745         * console-x.h:
7746         * event-msw.c:
7747         * mule-wnnfns.c:
7748         * hpplay.c:
7749         * ralloc.c:
7750         * alloc.c:
7751         * keymap.c:
7752         * profile.c:
7753         s/int/Fixnum/g in DEFVAR_INT declarations.
7754
7755 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7756
7757         Port pdump to SGI alignment-sensitive environment.
7758         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7759         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7760         properly aligned.
7761         Define and use aligned reading and writing macros.
7762         Use buffered stdio instead of posix i/o for faster dumping.
7763         Eliminate kludgy 256 byte space for header.
7764         Read and write from dump file using structs for alignment safety.
7765         * dumper.c (pdump_align_stream): New.
7766         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7767         * dumper.c (PDUMP_READ_ALIGNED): New.
7768         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7769         * dumper.c (pdump_static_Lisp_Object): New struct.
7770         * dumper.c (pdump_static_pointer): New struct.
7771         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7772         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7773         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7774         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7775
7776         * dumper.c (pdump_backtrace):
7777         * dumper.c (pdump_get_indirect_count):
7778         * dumper.c (pdump_register_object):
7779         * dumper.c (pdump_register_struct):
7780         * dumper.c (pdump_reloc_one):
7781         * dumper.c (pdump_scan_by_alignment):
7782         * dumper.c (pdump_dump_from_root_struct_ptrs):
7783         * dumper.c (pdump_dump_opaques):
7784         * dumper.c (pdump_dump_rtables):
7785         * dumper.c (pdump_dump_from_root_objects):
7786         * dumper.c (pdump):
7787         * dumper.c (pdump_load_finish):
7788         Use aligned reading and writing.
7789
7790         * dumper.c (pdump_free): Make static.
7791         * dumper.c (pdump_hFile): Likewise.
7792         * dumper.c (pdump_hMap): Likewise.
7793
7794 2001-01-26  Martin Buchholz <martin@xemacs.org>
7795
7796         * XEmacs 21.2.43 "Terspichore" is released.
7797
7798 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7799
7800         Type fiddling for window_config.saved_windows_count
7801         * window.c (struct window_config): 
7802         Make saved_windows_count member unsigned.
7803         * window.c (sizeof_window_config_for_n_windows): 
7804         Make parameter unsigned.
7805         * window.c (mark_window_config):
7806         * window.c (window_config_equal):
7807         * window.c (free_window_configuration):
7808         * window.c (Fset_window_configuration):
7809         * window.c (count_windows):
7810         * window.c (Fcurrent_window_configuration):
7811         * window.c (reinit_vars_of_window):
7812         Update all callers and users.
7813
7814 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7815
7816         Alignment correctness for flexible arrays.
7817         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7818         Make alignment-correct. Add interesting comments.
7819         * alloc.c (size_vector):
7820         * alloc.c (make_vector_internal):
7821         * alloc.c (make_bit_vector_internal):
7822         * alloc.c (sweep_bit_vectors_1):
7823         * fns.c (size_bit_vector):
7824         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7825         * window.c (sizeof_window_config_for_n_windows): 
7826         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7827
7828 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7829
7830         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7831
7832 2001-01-23  Andy Piper  <andy@xemacs.org>
7833
7834         * select.c (Fown_selection_internal): pass owned_p
7835
7836         * select-msw.c (mswindows_own_selection): New Signature.
7837
7838         * console.h (struct console_methods): add owned_p to
7839         _own_selection.
7840
7841         * select-x.c (x_own_selection): pass owned_p
7842         (hack_motif_clipboard_selection): use owned_p
7843         (vars_of_select_x): new variable -
7844         x_selection_strict_motif_ownership.
7845
7846 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7847
7848         * specifier.h (specifier_data_offset): Remove pointless parens.
7849         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7850
7851 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7852
7853         Make Lisp_Object sizeof methods be alignment-correct.
7854         pdump must restore objects to the same alignment as the C compiler
7855         assumes.  It really matters on SGIs.
7856         * lstream.c (aligned_sizeof_lstream): New.
7857         (sizeof_lstream): Use aligned_sizeof_lstream.
7858         (Lstream_new): Likewise.
7859         * opaque.c (aligned_sizeof_opaque): New.
7860         (sizeof_opaque): Use aligned_sizeof_opaque.
7861         (make_opaque): Likewise.
7862         * specifier.c (aligned_sizeof_specifier): New.
7863         (sizeof_specifier): Use aligned_sizeof_specifier.
7864         (make_specifier_internal): Likewise.
7865
7866 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7867
7868         * lstream.h (struct lstream): Use max_align_t for trailing data.
7869         * specifier.h (struct Lisp_Specifier): Likewise.
7870
7871 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7872
7873         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7874         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7875         (CCL_SUSPEND): Likewise.
7876         (CCL_INVALID_CMD): Likewise.
7877         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7878         (ccl_driver): Likewise.
7879         (CCL_WRITE_CHAR): Macro hygiene.
7880         (CCL_WRITE_STRING): Macro hygiene.
7881
7882 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7883
7884         Port "portable" dumper to SunOS 4 and HP-UX.
7885         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7886         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7887         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7888
7889 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7890
7891         * lisp.h (ALIGNOF): A better definition for C++.
7892
7893 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7894
7895         Macro hygiene.
7896         Fix printf warnings: int format, long int arg.
7897         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7898         (PUSH_FAILURE_POINT): Use correct printf formats.
7899         (POP_FAILURE_POINT): Use correct printf formats.  
7900         Use do {...} while (0)
7901
7902 2001-01-20  Martin Buchholz <martin@xemacs.org>
7903
7904         * XEmacs 21.2.42 "Poseidon" is released.
7905
7906 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7907
7908         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7909
7910 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7911
7912         De-kludgify FIXED_TYPE free list frobbing.
7913         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7914         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7915         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7916         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7917         * alloc.c (LRECORD_FREE_P): New.
7918         * alloc.c (MARK_LRECORD_AS_FREE): New.
7919         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7920         * alloc.c (STRUCT_FREE_P): Deleted.
7921         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7922         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7923         * alloc.c (STRING_CHARS_FREE_P): New.
7924         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7925         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7926         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7927         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7928         * alloc.c (resize_string): Use new definitions.
7929         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7930         * alloc.c (verify_string_chars_integrity): Use new definitions.
7931         * alloc.c (compact_string_chars): Use new definitions.
7932         * alloc.c: Update monster comments.
7933         * lrecord.h (lrecord_type): Add some new lrecord types for
7934         alloc.c's use.
7935
7936 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7937
7938         Improve alignment hackery.
7939         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
7940         (max_align_t): Moved from opaque.h - general purpose.
7941         (ALIGN_PTR): Use size_t, not long.
7942         * opaque.h (max_align_t): Move to lisp.h.
7943
7944 2001-01-18  Norbert Koch  <nk@LF.net>
7945
7946         * gui.h: Fix and add prototypes to fix build problems.
7947
7948 2001-01-18  Martin Buchholz  <martin@xemacs.org>
7949
7950         temacs is going away, so `dump-temacs' is now a bad name.
7951         * .dbxrc (dump-temacs): Rename to `dmp'.
7952         * .gdbinit (dump-temacs): Rename to `dmp'.
7953
7954 2001-01-17  Andy Piper  <andy@xemacs.org>
7955
7956         * glyphs.c (print_image_instance): comment to make martin happy.
7957
7958         * glyphs-x.c (x_redisplay_widget): update faces after a frame
7959         change.
7960
7961         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
7962         activation.
7963         (mswindows_tab_control_redisplay): warning suppression.
7964
7965         * glyphs-widget.c (widget_update): re-write to cope with updated
7966         items.
7967         (widget_instantiate): use new gui_item functions.
7968         (tab_control_update): deleted.
7969         (progress_gauge_update): deleted.
7970         (image_instantiator_progress_guage): take out update reference.
7971         (image_instantiator_tree_view): ditto.
7972         (image_instantiator_tab_control): ditto.
7973
7974         * gui.c (widget_gui_parse_item_keywords): new function. Do things
7975         Right the new way.
7976         (gui_item_add_keyval_pair): re-write to cope with descriptors and
7977         return whether anything was changed.
7978         (update_gui_item_keywords): as it sounds.
7979
7980         * gui.h: declare widget_gui_parse_item_keywords.
7981
7982         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
7983         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
7984
7985 2001-01-17  Martin Buchholz <martin@xemacs.org>
7986
7987         * XEmacs 21.2.41 "Polyhymnia" is released.
7988
7989 2001-01-16  Didier Verna  <didier@xemacs.org>
7990
7991         * glyphs.c (image_instantiate): don't use fallbacks when
7992         instantiating a face's background pixmap by inheritance.
7993
7994 2001-01-14  Mike Sperber <mike@xemacs.org>
7995
7996         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
7997         Conditionalize accordingly.
7998
7999 2001-01-16  Martin Buchholz  <martin@xemacs.org>
8000
8001         * dumper.c (pdump_file_get): Fix a compiler warning.
8002
8003 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8004
8005         Make Purify happy when pdumping.
8006         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
8007         iniitalizing all bits of new lisp object memory.
8008         * symbols.c (Fmake_local_variable): Likewise.
8009         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
8010         * symbols.c (Fdefvaralias): Likewise.
8011         * mule-charset.c (vars_of_mule_charset): Likewise.
8012
8013 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8014         Add the `-nd' flag when running pre-dump operations under the debugger.
8015         * .dbxrc (run-temacs): Add `-nd'.
8016         * .dbxrc (update-elc): Likewise.
8017         * .dbxrc (dump-temacs): Likewise.
8018         * .gdbinit (run-temacs): Likewise.
8019         * .gdbinit (check-temacs): Likewise.
8020         * .gdbinit (update-elc): Likewise.
8021         * .gdbinit (dump-temacs): Likewise.
8022
8023 2001-01-14  Martin Buchholz  <martin@xemacs.org>
8024
8025         Allow building 64-bit executables on AIX with GNU malloc, e.g.
8026         export OBJECT_MODE=64
8027         configure --pdump --use-union-type=no
8028         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
8029         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
8030
8031         * miscplay.c (sndcnv8U_2mono):
8032         Avoid two uses of `++' in the same expression.
8033         Suppresses a GCC warning.
8034
8035 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8036
8037         Make sure future compilers don't miscompile alloc.c.
8038         * alloc.c:
8039         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
8040         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
8041
8042 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8043
8044         * dumper.c: A little post-pdump-rename comment fixup.
8045
8046 2001-01-09  Jerry James  <james@eecs.ku.edu>
8047
8048         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
8049
8050 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8051
8052         * *.[ch]: Globally rename symbols using the following `pdump-rename'
8053         script:
8054         #!/bin/sh
8055         replace_symbol () {
8056           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
8057         }
8058
8059         replace_symbol pdump_wire_lists pdump_weak_object_chains
8060         replace_symbol pdump_wire_list dump_add_weak_object_chain
8061
8062         replace_symbol pdump_wires pdump_root_objects
8063         replace_symbol pdump_wire dump_add_root_object
8064
8065         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
8066         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
8067
8068         replace_symbol dumpstructinfos pdump_root_struct_ptrs
8069         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
8070         replace_symbol dumpstructinfo pdump_root_struct_ptr
8071         replace_symbol dumpstruct dump_add_root_struct_ptr
8072
8073         replace_symbol dumpopaque dump_add_opaque
8074         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
8075         replace_symbol dumpopaqueinfos pdump_opaques
8076         replace_symbol dumpopaqueinfo pdump_opaque
8077
8078         replace_symbol nb_structdump nb_root_struct_ptrs
8079         replace_symbol nb_opaquedump nb_opaques
8080
8081         replace_symbol align_table pdump_align_table
8082         replace_symbol dump_header pdump_header
8083
8084         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
8085         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
8086
8087
8088 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8089
8090         * s/aix4.h: Keep the C for AIX compiler from overaggressively
8091         optimizing bytecount_to_charcount().
8092
8093 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8094
8095         * config.h.in:
8096         (HAVE_DLFCN_H): Removed.
8097         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
8098
8099 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8100
8101         Portable dumper maintainability improvements.
8102         * alloc.c (staticpro):
8103         * alloc.c (staticpro_nodump):
8104         * alloc.c (garbage_collect_1):
8105         * alloc.c (reinit_alloc_once_early):
8106         * alloc.c (init_alloc_once_early):
8107         * alloc.c: Move dumper functions to alloc.c.
8108         * dumper.c (pdump_backtrace):
8109         * dumper.c (pdump_dump_structs):
8110         * dumper.c (pdump_dump_opaques):
8111         * dumper.c (pdump_dump_rtables):
8112         * dumper.c (pdump_dump_wired):
8113         * dumper.c (pdump):
8114         * dumper.c (pdump_load_check):
8115         * dumper.c (pdump_load_finish):
8116         * dumper.c (pdump_file_unmap):
8117         * dumper.c (pdump_file_get):
8118         * dumper.c (pdump_resource_free):
8119         * dumper.c (pdump_resource_get):
8120         * dumper.c (pdump_file_free):
8121         * dumper.c (pdump_file_try):
8122         * dumper.c (pdump_load):
8123         Remove fixed size limits on staticpro(), staticpro_nodump(),
8124         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
8125         Remove custom code for dumping lrecord_implementations_table - use
8126         dumpopaque instead.
8127         Remove (most of the) custom code for dumping staticpros - dump it
8128         like any other dynarr.
8129
8130         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
8131         * dumper.c: Moved functions from alloc.c.
8132         * alloc.c (dumpstruct): Moved to dumper.c.
8133         * alloc.c (dumpopaque): Likewise.
8134         * alloc.c (pdump_wire): Likewise.
8135         * alloc.c (pdump_wire_list): Likewise.
8136
8137         * lisp.h (Dynarr_sizeof): New.
8138         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
8139         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
8140         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
8141
8142         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
8143         * lisp.h (dumpopaque): ditto.
8144         * lisp.h (pdump_wire): ditto.
8145         * lisp.h (pdump_wire_list): ditto.
8146
8147 2001-01-09  Martin Buchholz  <martin@xemacs.org>
8148
8149         * make-src-depend (PrintPatternDeps):
8150         Use `sort' to make output independent of perl version.
8151
8152 2001-01-08  Martin Buchholz  <martin@xemacs.org>
8153
8154         Port to Netbsd 1.5.
8155         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
8156         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
8157
8158 2001-01-03  Didier Verna  <didier@xemacs.org>
8159
8160         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
8161         that `focus_frame' is alive before thinking of calling
8162         `redisplay_redraw_cursor' on it.
8163
8164 2001-01-08  Martin Buchholz <martin@xemacs.org>
8165
8166         * XEmacs 21.2.40 is released.
8167
8168 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8169
8170         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
8171
8172 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8173
8174         * alloc.c (dbg_valmask): Make const.
8175         * alloc.c (dbg_typemask): Make const.
8176         * alloc.c (dbg_USE_UNION_TYPE): Make const.
8177         * alloc.c (dbg_valbits): Make const.
8178         * alloc.c (dbg_gctypebits): Make const.
8179
8180 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
8181
8182         * redisplay-x.c (x_bevel_area):
8183         redisplay.h (struct rune):
8184         Typo fixes in comments.
8185
8186 2001-01-05  Andy Piper  <andy@xemacs.org>
8187
8188         * glyphs-x.c (x_redisplay_widget): use size changed for offset
8189         adjustment.
8190
8191         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
8192
8193 2001-01-05  Martin Buchholz  <martin@xemacs.org>
8194
8195         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
8196
8197         * mule-ccl.c (stack_idx_of_map_multiple):
8198         Non const global data must not be initialized!
8199         Found by MIYASHITA Hisashi.
8200
8201 2001-01-02  Andy Piper  <andy@xemacs.org>
8202
8203         * frame.c (change_frame_size): make sure frame size is always
8204         marked as changed.
8205
8206         * glyphs.c (image_instance_layout): minor code reuse.
8207
8208         * window.c (Fcurrent_window_configuration): revert previous
8209         change.
8210
8211 2001-01-02  Martin Buchholz  <martin@xemacs.org>
8212
8213         * glyphs.h:
8214         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
8215
8216 2000-12-31  Andy Piper  <andy@xemacs.org>
8217
8218         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
8219         when widget gets unmapped.
8220
8221         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
8222         function. Make sure widgets losing focus don't just drop it.
8223         (handle_focus_event_1): record the widget with focus.
8224
8225 2000-12-31  Andy Piper  <andy@xemacs.org>
8226
8227         * window.c (allocate_window): use
8228         make_image_instance_cache_hash_table.
8229         (make_dummy_parent): ditto.
8230         (Fset_window_configuration): ditto.
8231
8232         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
8233
8234         * glyphs.c (process_image_string_instantiator): use
8235         INSTANTIATOR_TYPE.
8236         (get_image_instantiator_governing_domain): ditto.
8237         (normalize_image_instantiator): ditto.
8238         (instantiate_image_instantiator): ditto.
8239         (make_image_instance_1): ditto.
8240         (image_instantiate): ditto. Key on glyph *and* instantiator type.
8241         (instantiator_eq_equal): new function for use with instance hash
8242         tables.
8243         (instantiator_eq_hash): ditto.
8244         (make_image_instance_cache_hash_table): create a suitable hash
8245         table for storing image instances.
8246
8247         * elhash.h (hash_table_weakness): new internal weakness type
8248         HASH_TABLE_KEY_CAR_VALUE_WEAK.
8249         declare new functions.
8250
8251         * elhash.c (finish_marking_weak_hash_tables): introduce yet
8252         another weakness type for glyphs.
8253         (make_standard_lisp_hash_table): new function split out from
8254         make_general_lisp_hash_table.
8255         (make_lisp_hash_table): call make_standard_lisp_hash_table.
8256         (hash_table_instantiate): ditto.
8257         (Fmake_hash_table): ditto.
8258
8259 2000-12-31  Martin Buchholz <martin@xemacs.org>
8260
8261         * XEmacs 21.2.39 is released.
8262
8263 2000-12-29  Andy Piper  <andy@xemacs.org>
8264
8265         * menubar.c (menubar_visible_p_changed): signal the frame changed.
8266
8267         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
8268         the frame has changed so that we pick up geometry changes such as
8269         menubar visibility.
8270
8271 2000-12-28  Andy Piper  <andy@xemacs.org>
8272
8273         * lastfile.c (my_ebss): make a char array so we can pad the
8274         bss. Fixes cygwin unexec.
8275
8276         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
8277
8278 2000-12-26  Andy Piper  <andy@xemacs.org>
8279
8280         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
8281         comments and try and be more precise about a non-/SIGIO world.
8282         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
8283         SIGIO.
8284
8285         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
8286         we don't normalize to zero width or height.
8287
8288 2000-12-24  Andy Piper  <andy@xemacs.org>
8289
8290         * Makefile.in.in (ldflags): add -mwindows when appropriate.
8291
8292 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
8293
8294         * s/sco5.h: SCO 5 has pty support.
8295
8296 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
8297
8298         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
8299         input-method-xlib.c contains whole contents of input-method-xfs.c,
8300         so we can use input-method-xlib.c's code for USE_XFONTSET
8301         using #ifdefs.
8302         * input-method-xfs.c: removed.
8303
8304 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
8305
8306         * file-coding.h (enum coding_category_type): reorder enumerators to
8307         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
8308         (now one greater than largest real coding_category_type enumerator).
8309         * file-coding.c (coding_category_symbol, coding_category_by_priority,
8310         coding_category_system, fcd_descriptihon_1, decode_coding_category,
8311         Fcoding_category_list, Fset_coding_priority_list,
8312         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
8313         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
8314
8315 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8316
8317         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
8318         * redisplay-output.c (redisplay_output_window): Clear top of window
8319         when face is changed.
8320         * redisplay-x.c (x_redraw_exposed_window): Call
8321         redisplay_clear_top_of_window.
8322         * redisplay.h: Publish redisplay_clear_top_of_window.
8323
8324 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8325
8326         * buffer.c (Fkill_buffer): Map over all devices.
8327         * window.c (window_loop): Remove UNSHOW_BUFFER code.
8328         (list_windows): New function.
8329         (list_all_windows): Ditto.
8330         (Freplace_buffer_in_windows): Use them.
8331
8332 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8333
8334         * database.c (berkdb_subtype): Recognize new subtype `queue'.
8335         (Fopen_database): Use `db_create' instead of `db_open'.
8336         (syms_of_database): Initialize Qqueue.
8337
8338 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8339
8340         * buffer.c (common_init_complex_vars_of_buffer): Initialize
8341         buffer_local_face_property.
8342         * buffer.h (struct buffer): New member buffer_local_face_property.
8343         * window.c (Fset_window_buffer):  Mark window's face as changed
8344         when buffer has buffer local face.
8345         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8346         * objects.c (color_after_change): Set buffer_local_face_property
8347         when locale of face specifier is buffer.
8348         * objects.c (font_after_change): Ditto.
8349         * objects.c (face_boolean_after_change): Ditto.
8350         * glyphs.c (image_after_change): Ditto.
8351
8352 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8353
8354         * nt.c (mswindows_fstat): Report file permissions, volume serial
8355         number, etc. Code adapted from FSF Emacs 20.7.
8356
8357 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8358
8359         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8360         of stat when we don't have symbolic links, to make sure
8361         mswindows_stat is called on mswindows.
8362
8363 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8364
8365         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8366
8367 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8368
8369         * doprnt.c (emacs_doprnt_1): More printing fixes.
8370         Make printing of numbers compatible with libc and FSF Emacs.
8371         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8372         Use the system printf to do most of the hard work of formatting,
8373         instead of doprnt_1().
8374         Calculate memory to allocate for format string.
8375         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8376         (doprnt_1): Cleaner code and documentation.
8377
8378 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8379
8380         * Makefile.in.in: Use the loop variable to install headers.
8381
8382 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8383
8384         * window.c (Fsplit_window): Don't invalidate face cache.
8385
8386 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8387
8388         * minibuf.c (Fall_completions): Undo the previous change
8389         which removed checking elements start with space.
8390
8391 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8392
8393         * mule-canna.c: Didier suppression.
8394
8395 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8396
8397         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8398         (warning suppression).  Add English comment translations.
8399
8400 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8401
8402         * unexelfsgi.c (unexec): Better test for mmap failure.
8403
8404 2000-12-05  Martin Buchholz <martin@xemacs.org>
8405
8406         * XEmacs 21.2.38 is released.
8407
8408 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8409
8410         * redisplay.c (bar-cursor): Make a user variable.
8411
8412         * symsinit.h: Add init_postgresql_from_environment.
8413
8414 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8415
8416         * regex.c: Convert to clean C.
8417
8418 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8419
8420         * realpath.c:
8421         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8422         initialization.
8423         (sys_readlink): renamed to system_readlink to avoid conflict with
8424         the other sys_readlink.
8425
8426 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8427
8428         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8429
8430 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8431
8432         * postgresql.c (init_postgresql_from_environment): new function.
8433         (vars_of_postgresql): Move code initializing Lisp variables out and
8434         into init_postgresql_from_environment.
8435         emacs.c (main_1): Call init_postgresql_from_environment if and only
8436         if running a dumped XEmacs.
8437
8438 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8439
8440         * buffer.c: Make find-file-compare-truenames default to true on
8441         windows.
8442
8443         * realpath.c (win32_abs_start):
8444         (cygwin_readlink):
8445         (win32_readlink): New functions.
8446         (xrealpath): Return really real filenames on windows.
8447
8448         * fileio.c (Ffile_truename): Make file-truename work on windows.
8449
8450 2000-11-29  Didier Verna  <didier@xemacs.org>
8451
8452         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8453         * faces.c (update_face_cachel_data): use it.
8454         * faces.c (add_face_cachel): use it. Complete background pixmap
8455         frobbing in face cache if `update_face_cachel_data' has not done so.
8456
8457 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8458
8459         * search.c (string_match_1): Don't set last_thing_searched
8460         when search failed.
8461
8462 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8463
8464         * buffer.c: Include casetab.h
8465         (common_init_complex_vars_of_buffer): Use new case-table object.
8466         * buffer.h: Include casetab.h
8467         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8468         (DOWNCASE_TABLE_OF): Ditto.
8469         * bufslots.h: Remove char-tables and add case-table.
8470         * casetab.c: Include casetab.h
8471         (CASE_TABLE_P): Removed.
8472         (mark_case_table): New function.
8473         (allocate_case_table): New function.
8474         (Fcase_table_p): Use new case-table.
8475         (case_table_char): New function.
8476         (Fget_case_table): Ditto.
8477         (Fput_case_table): Ditto.
8478         (Fput_case_table_pair): Ditto.
8479         (Fcopy_case_table): Ditto.
8480         (Fcurrent_case_table): Return case-table.
8481         (Fstandard_case_table): Return case-table.
8482         (Fset_case_table): Fix doc-string.
8483         (set_case_table): Use case-table
8484         (syms_of_casetab): DEFSUBR new functions.
8485         (complex_vars_of_casetab): Set up standard case-table.
8486         * casetab.h: New file.
8487         * editfns.c: Include casetab.h
8488         (Fcompare_buffer_substrings): Use case-table.
8489         * inline.c: Include casetab.h
8490         * lisp.h: Remove bogus extern.
8491         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8492         * search.c: Include casetab.h
8493         (TRANSLATE_ASCII): Removed.
8494         (TRANSLATE): Unconditionally translate character.
8495         (looking_at_1): Use case-table.
8496         (string_match_1): Ditto.
8497         (fast_string_match): Ditto.
8498         (search_command): Ditto.
8499         (search_buffer): Separate boyer_moore.  Check whether
8500         boyer_moore is possible.
8501         (simple_search): New function.
8502         (boyer_moore): Separated from search_buffer. Translate char.
8503
8504 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8505
8506         * regex.c (RE_TR_ASCII): Removed.
8507         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8508         (PATFETCH): Call PATFETCH_RAW.
8509         (PATFETCH_RAW): Fetch Emchar.
8510         (PATUNFETCH): Decrement charptr.
8511         (GET_BUFFER_SPACE): Rename b to buf_end.
8512         (BUF_PUSH): Ditto.
8513         (BUF_PUSH_2): Ditto.
8514         (BUF_PUSH_3): Ditto.
8515         (EXTEND_BUFFER): Ditto.
8516         (SET_LIST_BIT): Ditto.
8517         (regex_compile): Ditto.  Translate non ASCII char.
8518         (compile_range): Ditto.
8519         (re_search_2): Ditto.
8520         (re_match_2_internal): Compare Emchar.
8521         (bcmp_translate): Ditto.
8522
8523 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8524
8525         * lisp.h (basic char/int typedefs):  comment improvement.
8526
8527 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8528
8529         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8530         unstomp inhibit_site_lisp.  Improve comments.
8531
8532 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8533
8534         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8535
8536 2000-11-28  Andy Piper  <andy@xemacs.org>
8537
8538         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8539         clipped display for windows in the gutter also.
8540         (redisplay_display_boxes_in_window_p): change semantics of return
8541         codes to be more intuitive.
8542
8543         * gutter.h: declare display_boxes_in_gutter_p.
8544
8545         * gutter.c (display_boxes_in_gutter_p): new function for
8546         redisplay.
8547
8548 2000-11-22  Andy Piper  <andy@xemacs.org>
8549
8550         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8551         autodetect domain.
8552
8553 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8554
8555         * callproc.c (Fold_call_process_internal):
8556         * gpm.c (Freceive_gpm_event):
8557         (tty_get_foreign_selection): Might be just warning supression.
8558         * fileio.c (Fwrite_region_internal):
8559         (Fset_visited_file_modtime):
8560         * keymap.c (event_matches_key_specifier_p):
8561         Initialize GCPROed variable.
8562
8563         * menubar-x.c (command_builder_find_menu_accelerator):
8564         Initialize before use.
8565
8566 2000-11-23  Andy Piper  <andy@xemacs.org>
8567
8568         * unexcw.c (unexec): make the resulting executable executable.
8569
8570 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8571
8572         * doc.c (get_doc_string):
8573         Use size_t, not int, for result of XSTRING_LENGTH.
8574
8575         * cmds.c (Fdelete_char):
8576         * cmds.c (Fpoint_at_eol):
8577         * cmds.c (Fself_insert_command):
8578         Use EMACS_INT, not int, for result of XINT.
8579         Someday, someone will want to insert more than 2**31 identical characters.
8580
8581         * cmds.c (Fdelete_char):
8582         * cmds.c (Fdelete_backward_char):
8583         * syntax.c (Fforward_word):
8584         * syntax.c (Fforward_comment):
8585         Make COUNT argument optional, for consistency with forward-char et al.
8586
8587 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8588
8589         * lisp.h:
8590         * print.c (long_to_string):
8591         Return a useful value: the pointer at end of data written.
8592
8593         * doprnt.c:
8594         Use `static const char * const' for constant strings.
8595         (union printf_arg): Delete `i', `ui' members.
8596         (get_doprnt_args):
8597         (emacs_doprnt_1):
8598         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8599         Do all printf-ing via the `l' specifier.
8600         Use EMACS_INT instead of int.
8601         Optimize.
8602
8603 2000-11-20  Didier Verna  <didier@xemacs.org>
8604
8605         * faces.c (update_face_cachel_data): don't frob the background
8606         pixmap when the window is being created. The face is needed but
8607         does not exist yet.
8608
8609 2000-11-20  Andy Piper  <andy@xemacs.org>
8610
8611         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8612         messing with a debug environment.
8613
8614 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8615
8616         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8617
8618 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8619
8620         * casetab.c (Fcase_table_p): Fix compile error and crash.
8621
8622 2000-11-18  Philip Aston  <philipa@mail.com>
8623
8624         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8625
8626 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8627
8628         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8629         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8630
8631 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8632
8633         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8634         * unexelf.c: Use HAVE_ELF_H.
8635         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8636         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8637         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8638         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8639         for testing.
8640         So this is an unexelfsgi.c from a different line of development.
8641
8642 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8643
8644         * regex.c (RE_TR_ASCII): New function.
8645         (RE_TRANSLATE): Call it.
8646
8647 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8648
8649         * buffer.h (TRT_TABLE_OF): Remove assert.
8650         (IN_TRT_TABLE_DOMAIN): Removed.
8651
8652 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8653
8654         * free-hook.c (log_gcpro):
8655         (show_gcprohist): Add support for GCPRO5.
8656
8657 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8658
8659         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8660
8661 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8662
8663         * symeval.h: Declare flush_all_buffer_local_cache.
8664
8665         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8666         (flush_buffer_local_cache): Added.
8667         (flush_all_buffer_local_cache): Added.
8668
8669         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8670
8671         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8672         (pdump_dump_data): Ditto.
8673         (pdump_reloc_one): Ditto.
8674         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8675         before dumping.
8676
8677
8678 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8679
8680         * buffer.c: Remove if 0'ed entry.
8681         * buffer.h: Rewrite TRT to use char-table.
8682         * bufslots.h: Remove mirror tables.
8683         * casetab.c: Remove mirror tables.
8684         (CASE_TABLE_P): New macro.
8685         (Fcase_table_p): Element of a case table is string or char-table.
8686         (make_mirror_trt_table): Removed.
8687         (set_case_table): Setup char-table from strings for backward
8688         compatibility.
8689         * dired.c (Fdirectory_files):
8690         * dired-msw.c: (mswindows_get_files):
8691         * lisp.h: Change prototype of re_pattern_buffer.
8692         * regex.c: (RE_TRANSLATE): New macro.
8693         (TRANSLATE_P): Ditto.
8694         Change translate to type RE_TRANSLATE_TYPE.
8695         * regex.h: Define RE_TRANSLATE_TYPE
8696         * search.c (TRANSLATE): New macro.
8697         (TRANSLATE_ASCII): New macro.
8698         Translate table is changed to Lisp_Object.
8699         (signal_failure): Inhibit return.
8700
8701 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8702
8703         * device-msw.c:
8704         * eldap.c:
8705         * event-Xt.c:
8706         * event-stream.c:
8707         * print.c:
8708         Do UNGCPRO before return.
8709
8710 2000-11-14  Martin Buchholz <martin@xemacs.org>
8711
8712         * XEmacs 21.2.37 is released.
8713
8714 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8715
8716         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8717         Add comments about discarded return value.
8718
8719 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8720
8721         * callint.c:
8722         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8723
8724 2000-10-27  Andy Piper  <andy@xemacs.org>
8725
8726         * gutter.c (Fset_default_gutter_position): default left and right
8727         gutters to visible.
8728         (calculate_gutter_size): calculate resonable heuristic for left
8729         and right gutter sizes.
8730         (specifier_vars_of_gutter): change left and right gutter sizes to
8731         autodetect.
8732         (calculate_gutter_size_from_display_lines): new function.
8733         (output_gutter): check for resizing on left and right gutters.
8734         (clear_gutter): don't special case top and left gutters.
8735         (specifier_vars_of_gutter): use new signature for
8736         set_specifier_caching.
8737
8738         * glyphs-x.c (x_redisplay_widget): spelling fix.
8739         * glyphs.c (specifier_vars_of_glyphs):
8740         * menubar.c (specifier_vars_of_menubar):
8741         * redisplay.c (specifier_vars_of_redisplay):
8742         * toolbar.c (specifier_vars_of_toolbar):
8743         * window.c (specifier_vars_of_window):
8744         * scrollbar.c (specifier_vars_of_scrollbar):
8745         (complex_vars_of_scrollbar): use new signature for
8746         set_specifier_caching.
8747
8748         * specifier.c (set_specifier_caching): include recompute flag.
8749         (recompute_one_cached_specifier_in_window): always recompute if
8750         flag set.
8751         (recompute_one_cached_specifier_in_frame): ditto.
8752
8753         * specifier.h (struct specifier_caching): add recompute flag.
8754
8755 2000-10-24  Andy Piper  <andy@xemacs.org>
8756
8757         * unexcw.c (copy_executable_and_dump_data_section): add new
8758         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8759         5.0 happy.
8760
8761 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8762
8763         * console-x.h (x_device): New member modifier_release_time.
8764         * event-Xt.c (x_handle_sticky_modifiers):
8765         Bound interval modifier keys are sticky.
8766         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8767         * events.h: extern it.
8768
8769 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8770
8771         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8772
8773 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8774
8775         * event-stream.c (execute_command_event): Preserve current_events
8776         and the like when event is misc-user-event.
8777         Inhibit quit during the call to maybe_echo_keys.
8778
8779 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8780
8781         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8782         symlink when buffer is killed.
8783         (inhibit_clash_detection): New variable.
8784
8785 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8786
8787         * console.c (Fset_input_method): Trigger redisplay on tty.
8788
8789 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8790
8791         * process.c (Fprocess_status): Revert to previous behavior:
8792         (process-status "nosuchprocess") ==> nil
8793
8794 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8795
8796         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8797         Work around another GCC 2.95.2 optimizer bug.
8798
8799 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8800
8801         * process.c (Fget_process): Use LIST_LOOP_2.
8802         (kill_buffer_processes): Use LIST_LOOP_2.
8803
8804         * minibuf.c (Fall_completions):
8805         Delete old non-functional code for FSF fourth argument.
8806
8807         * frame.c (frame_matches_frame_spec):
8808         Renamed from `frame_matches_frametype'.  Update all callers.
8809         (device_matches_device_spec):
8810         Renamed from 'device_matches_console_spec'.  Update all callers.
8811
8812         * doc.c (Fsubstitute_command_keys):
8813         Remove buffer overflow crash.  Small code cleanups.
8814
8815         * casetab.c (check_case_table): Simpler code.
8816
8817         * window.c (Freplace_buffer_in_windows):
8818         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8819         (and similar implementation) as Fdelete_windows_on.
8820         Update all callers.
8821
8822         * alloc.c (Fmake_list):
8823         * alloc.c (make_vector):
8824         * alloc.c (Fmake_vector):
8825         * alloc.c (make_bit_vector):
8826         * alloc.c (Fmake_bit_vector):
8827         * alloc.c (Fbit_vector):
8828         * alloc.c (Fmake_string):
8829         * alloc.c (Fpurecopy):
8830         * alloc.c (Fmemory_limit):
8831         * buffer.c:
8832         * buffer.c (Fget_buffer):
8833         * buffer.c (Fkill_buffer):
8834         * buffer.c (complex_vars_of_buffer):
8835         * bytecode.c (Fcompiled_function_stack_depth):
8836         * callint.c (Fprefix_numeric_value):
8837         * event-stream.c:
8838         * event-stream.c (Fread_key_sequence):
8839         * casetab.c:
8840         * casetab.c (Fcase_table_p):
8841         * casetab.c (check_case_table):
8842         * casetab.c (Fset_case_table):
8843         * casetab.c (Fset_standard_case_table):
8844         * chartab.c:
8845         * chartab.c (Fchar_table_type):
8846         * chartab.c (Freset_char_table):
8847         * chartab.c (Fget_char_table):
8848         * chartab.c (Fget_range_char_table):
8849         * chartab.c (Fput_char_table):
8850         * chartab.c (Fmap_char_table):
8851         * chartab.c (Fcategory_table_p):
8852         * chartab.c (Fcheck_category_at):
8853         * chartab.c (Fchar_in_category_p):
8854         * chartab.c (Fcategory_table):
8855         * chartab.c (Fcopy_category_table):
8856         * chartab.c (Fset_category_table):
8857         * chartab.c (Fcategory_designator_p):
8858         * chartab.c (Fcategory_table_value_p):
8859         * cmds.c (Fdelete_char):
8860         * cmds.c (Fdelete_backward_char):
8861         * cmds.c (Fself_insert_command):
8862         * cmds.c (Fself_insert_internal):
8863         * console.c (Fvalid_console_type_p):
8864         * console.c (Fcdfw_console):
8865         * console.c (Fconsole_type):
8866         * console.c (Fconsole_name):
8867         * console.c (Fconsole_device_list):
8868         * console.c (Fconsole_on_window_system_p):
8869         * data.c:
8870         * data.c (Feq):
8871         * data.c (Fold_eq):
8872         * data.c (Fsubr_interactive):
8873         * data.c (Fchar_to_int):
8874         * data.c (Fint_to_char):
8875         * data.c (Fsetcar):
8876         * data.c (Fsetcdr):
8877         * data.c (Fnumber_to_string):
8878         * data.c (Fstring_to_number):
8879         * data.c (Frem):
8880         * database.c (mark_database):
8881         * database.c (finalize_database):
8882         * database.c (Fdatabase_live_p):
8883         * database.c (Fdatabasep):
8884         * device-x.c (Fx_get_resource):
8885         * device.c (Fdfw_device):
8886         * dired.c:
8887         * dired.c (Ffile_name_completion):
8888         * dired.c (Ffile_name_all_completions):
8889         * dired.c (Fuser_name_completion):
8890         * dired.c (Fuser_name_completion_1):
8891         * dired.c (Fuser_name_all_completions):
8892         * doc.c (Fdocumentation):
8893         * doc.c (Fdocumentation_property):
8894         * doc.c (Fsubstitute_command_keys):
8895         * editfns.c:
8896         * editfns.c (Fchar_to_string):
8897         * editfns.c (Fstring_to_char):
8898         * editfns.c (Ftemp_directory):
8899         * editfns.c (Finsert_char):
8900         * editfns.c (Fbuffer_substring_no_properties):
8901         * editfns.c (Fnarrow_to_region):
8902         * editfns.c (Fchar_equal):
8903         * editfns.c (Fchar_Equal):
8904         * editfns.c (Ftranspose_regions):
8905         * emacs.c (Fdump_emacs):
8906         * eval.c (Fthrow):
8907         * eval.c (Fcommand_execute):
8908         * eval.c (Fautoload):
8909         * eval.c (Fbacktrace):
8910         * eval.c (Fbacktrace_frame):
8911         * events.c:
8912         * events.c (Fcopy_event):
8913         * events.c (Fcharacter_to_event):
8914         * events.c (Fevent_button):
8915         * events.c (Fevent_process):
8916         * extents.c:
8917         * extents.c (Fnext_extent_change):
8918         * extents.c (Fextent_property):
8919         * faces.c (Ffacep):
8920         * faces.c (Fmake_face):
8921         * file-coding.c:
8922         * file-coding.c (Fencode_shift_jis_char):
8923         * file-coding.c (Fencode_big5_char):
8924         * fileio.c (Ffile_name_directory):
8925         * fileio.c (Ffile_name_nondirectory):
8926         * fileio.c (Ffile_name_as_directory):
8927         * fileio.c (Fdirectory_file_name):
8928         * fileio.c (Ffile_truename):
8929         * fileio.c (Fsubstitute_in_file_name):
8930         * fileio.c (Ffile_modes):
8931         * fileio.c (Fset_file_modes):
8932         * fileio.c (Fset_default_file_modes):
8933         * fileio.c (Fverify_visited_file_modtime):
8934         * floatfns.c (Facos):
8935         * floatfns.c (Fasin):
8936         * floatfns.c (Fatan):
8937         * floatfns.c (Fcos):
8938         * floatfns.c (Fsin):
8939         * floatfns.c (Ftan):
8940         * floatfns.c (Fbessel_j0):
8941         * floatfns.c (Fbessel_j1):
8942         * floatfns.c (Fbessel_jn):
8943         * floatfns.c (Fbessel_y0):
8944         * floatfns.c (Fbessel_y1):
8945         * floatfns.c (Fbessel_yn):
8946         * floatfns.c (Ferf):
8947         * floatfns.c (Ferfc):
8948         * floatfns.c (Flog_gamma):
8949         * floatfns.c (Fexp):
8950         * floatfns.c (Fexpt):
8951         * floatfns.c (Flog):
8952         * floatfns.c (Flog10):
8953         * floatfns.c (Fsqrt):
8954         * floatfns.c (Fcube_root):
8955         * floatfns.c (Facosh):
8956         * floatfns.c (Fasinh):
8957         * floatfns.c (Fatanh):
8958         * floatfns.c (Fcosh):
8959         * floatfns.c (Fsinh):
8960         * floatfns.c (Ftanh):
8961         * floatfns.c (Fabs):
8962         * floatfns.c (Ffloat):
8963         * floatfns.c (Flogb):
8964         * floatfns.c (Fceiling):
8965         * floatfns.c (Ffloor):
8966         * floatfns.c (Fround):
8967         * floatfns.c (Ftruncate):
8968         * floatfns.c (Ffceiling):
8969         * floatfns.c (Fffloor):
8970         * floatfns.c (Ffround):
8971         * floatfns.c (Fftruncate):
8972         * fns.c (Fstring_equal):
8973         * fns.c (Fstring_lessp):
8974         * fns.c (concat2):
8975         * fns.c (concat3):
8976         * fns.c (vconcat2):
8977         * fns.c (vconcat3):
8978         * fns.c (Fsubstring):
8979         * fns.c (Fassoc):
8980         * fns.c (Fold_assoc):
8981         * fns.c (assoc_no_quit):
8982         * fns.c (Fassq):
8983         * fns.c (Fold_assq):
8984         * fns.c (assq_no_quit):
8985         * fns.c (Frassoc):
8986         * fns.c (Fold_rassoc):
8987         * fns.c (Frassq):
8988         * fns.c (Fold_rassq):
8989         * fns.c (rassq_no_quit):
8990         * fns.c (Fremassoc):
8991         * fns.c (remassoc_no_quit):
8992         * fns.c (Fremassq):
8993         * fns.c (remassq_no_quit):
8994         * fns.c (Fremrassoc):
8995         * fns.c (Fremrassq):
8996         * fns.c (remrassq_no_quit):
8997         * fns.c (Fsort):
8998         * fns.c (Fplist_get):
8999         * fns.c (Fplist_put):
9000         * fns.c (Fplist_remprop):
9001         * fns.c (Fplist_member):
9002         * fns.c (Flax_plist_get):
9003         * fns.c (Flax_plist_put):
9004         * fns.c (Flax_plist_remprop):
9005         * fns.c (Flax_plist_member):
9006         * fns.c (Fequal):
9007         * fns.c (Fold_equal):
9008         * fns.c (Frequire):
9009         * fns.c (Fbase64_encode_region):
9010         * fns.c (Fbase64_encode_string):
9011         * fns.c (Fbase64_decode_region):
9012         * frame.c:
9013         * frame.c (frame_matches_frame_spec):
9014         * frame.c (device_matches_device_spec):
9015         * frame.c (next_frame):
9016         * frame.c (previous_frame):
9017         * frame.c (Fnext_frame):
9018         * frame.c (Fprevious_frame):
9019         * frame.c (Fframe_property):
9020         * frame.c (Fset_frame_height):
9021         * frame.c (Fset_frame_size):
9022         * frame.h:
9023         * glyphs.c:
9024         * glyphs.c (if):
9025         * glyphs.c (decode_error_behavior_flag):
9026         * glyphs.c (Fmake_image_instance):
9027         * indent.c (Findent_to):
9028         * intl.c (Fignore_defer_gettext):
9029         * keymap.c (Fkeymapp):
9030         * keymap.c (Flookup_key):
9031         * lread.c:
9032         * lread.c (Fload_internal):
9033         * lread.c (Feval_buffer):
9034         * lread.c (Feval_region):
9035         * macros.c (Fexecute_kbd_macro):
9036         * marker.c (set_marker_internal):
9037         * marker.c (Fset_marker):
9038         * marker.c (set_marker_restricted):
9039         * marker.c (Fcopy_marker):
9040         * marker.c (noseeum_copy_marker):
9041         * menubar.c:
9042         * menubar.c (Fpopup_menu):
9043         * minibuf.c:
9044         * mule-charset.c (Fcharset_name):
9045         * mule-charset.c (Fchar_charset):
9046         * mule-charset.c (Fchar_octet):
9047         * mule-charset.c (Fsplit_char):
9048         * mule-wnnfns.c (Fwnn_open):
9049         * mule-wnnfns.c (Fwnn_dict_comment):
9050         * mule-wnnfns.c (Fwnn_quit_henkan):
9051         * mule-wnnfns.c (Fwnn_word_toroku):
9052         * mule-wnnfns.c (Fwnn_word_sakujo):
9053         * mule-wnnfns.c (Fwnn_word_use):
9054         * mule-wnnfns.c (Fwnn_hindo_set):
9055         * objects.c:
9056         * objects.c (Fmake_color_instance):
9057         * objects.c (Fmake_font_instance):
9058         * print.c (Fwrite_char):
9059         * process.c:
9060         * process.c (mark_process):
9061         * process.c (print_process):
9062         * process.c (get_process_from_usid):
9063         * process.c (Fprocessp):
9064         * process.c (Fprocess_live_p):
9065         * process.c (Fget_process):
9066         * process.c (Fget_buffer_process):
9067         * process.c (get_process):
9068         * process.c (Fprocess_id):
9069         * process.c (Fprocess_name):
9070         * process.c (Fprocess_command):
9071         * process.c (init_process_io_handles):
9072         * process.c (start_process_unwind):
9073         * process.c (Fstart_process_internal):
9074         * process.c (Fopen_multicast_group_internal):
9075         * process.c (Fset_process_window_size):
9076         * process.c (read_process_output):
9077         * process.c (send_process):
9078         * process.c (Fprocess_tty_name):
9079         * process.c (Fset_process_buffer):
9080         * process.c (Fprocess_buffer):
9081         * process.c (Fprocess_mark):
9082         * process.c (set_process_filter):
9083         * process.c (Fset_process_filter):
9084         * process.c (Fprocess_filter):
9085         * process.c (Fprocess_send_region):
9086         * process.c (Fprocess_send_string):
9087         * process.c (exec_sentinel):
9088         * process.c (Fset_process_sentinel):
9089         * process.c (Fprocess_sentinel):
9090         * process.c (status_notify):
9091         * process.c (Fprocess_status):
9092         * process.c (Fprocess_exit_status):
9093         * process.c (process_send_signal):
9094         * process.c (Fprocess_send_eof):
9095         * process.c (deactivate_process):
9096         * process.c (remove_process):
9097         * process.c (Fdelete_process):
9098         * process.c (kill_buffer_processes):
9099         * process.c (Fprocess_kill_without_query):
9100         * process.c (Fprocess_kill_without_query_p):
9101         * rangetab.c:
9102         * rangetab.c (Fget_range_table):
9103         * rangetab.c (Fput_range_table):
9104         * rangetab.c (Fremove_range_table):
9105         * rangetab.c (Fclear_range_table):
9106         * search.c:
9107         * search.c (Fskip_chars_forward):
9108         * search.c (Fskip_chars_backward):
9109         * search.c (Fskip_syntax_forward):
9110         * search.c (Fskip_syntax_backward):
9111         * search.c (search_command):
9112         * search.c (Freplace_match):
9113         * search.c (Fregexp_quote):
9114         * select.c (Fown_selection_internal):
9115         * select.c (Fselection_owner_p):
9116         * select.c (Fselection_exists_p):
9117         * select.c (Fget_selection_internal):
9118         * specifier.c:
9119         * symbols.c:
9120         * symbols.c (Fintern):
9121         * symbols.c (Fintern_soft):
9122         * symbols.c (Funintern):
9123         * symbols.c (Fapropos_internal):
9124         * symbols.c (Fset_default):
9125         * syntax.c:
9126         * syntax.c (Fsyntax_table_p):
9127         * syntax.c (Fcopy_syntax_table):
9128         * syntax.c (Fset_syntax_table):
9129         * syntax.c (Fchar_syntax):
9130         * syntax.c (syntax_match):
9131         * syntax.c (Fmatching_paren):
9132         * syntax.c (Fforward_word):
9133         * syntax.c (scan_lists):
9134         * syntax.c (Fscan_lists):
9135         * syntax.c (Fscan_sexps):
9136         * syntax.c (Fparse_partial_sexp):
9137         * toolbar.c (Fcheck_toolbar_button_syntax):
9138         * tooltalk.doc:
9139         * window.c:
9140         * window.c (Fwindowp):
9141         * window.c (Fwindow_live_p):
9142         * window.c (Fwindow_point):
9143         * window.c (Fdelete_window):
9144         * window.c (Fnext_window):
9145         * window.c (Fprevious_window):
9146         * window.c (Fother_window):
9147         * window.c (window_loop):
9148         * window.c (Fget_lru_window):
9149         * window.c (Fsplit_window):
9150         * window.c (Fenlarge_window):
9151         * window.c (Fenlarge_window_pixels):
9152         * window.c (Fshrink_window):
9153         * window.c (Fshrink_window_pixels):
9154         * window.c (change_window_height):
9155         * window.c (Fwindow_configuration_p):
9156         * window.c (Fcurrent_window_configuration):
9157         * window.h:
9158         * casefiddle.c (casify_object):
9159         * casefiddle.c (Fupcase):
9160         * casefiddle.c (Fdowncase):
9161         * casefiddle.c (Fcapitalize):
9162         * casefiddle.c (Fupcase_initials):
9163         * casefiddle.c (casify_region_internal):
9164         * casefiddle.c (casify_region):
9165         * casefiddle.c (Fupcase_region):
9166         * casefiddle.c (Fdowncase_region):
9167         * casefiddle.c (Fcapitalize_region):
9168         * casefiddle.c (Fupcase_initials_region):
9169         * casefiddle.c (Fupcase_word):
9170         * casefiddle.c (Fdowncase_word):
9171         * casefiddle.c (Fcapitalize_word):
9172         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
9173         Replace 0 with '\0' when working with bytes.
9174         Replace initial "(" with "\(" in docstrings.
9175
9176 2000-11-01  Martin Buchholz  <martin@xemacs.org>
9177
9178         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
9179
9180         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
9181
9182 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9183
9184         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
9185
9186 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9187
9188         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
9189         correctly.
9190
9191 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9192
9193         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
9194         (inhibit_auto_save_session): New variable.
9195         (vars_of_fileio): Declare and initialize them.
9196         * fileio.c (Fdo_auto_save): Don't create session file if
9197         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
9198
9199 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9200
9201         * sgiplay.c (play_internal): C++ compilability.
9202         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
9203         * callproc.c (Fold_call_process_internal):
9204         Remove unused vars `env', `first'.
9205         * scrollbar.c (update_scrollbar_instance):
9206         #### unused var `current_window'.
9207         * redisplay-tty.c: Put currently unused vars insert_mode_on,
9208         etc. within #ifdef NOT_YET.
9209         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
9210         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
9211         * specifier.c (specifier_instance):
9212         #### unused var `tag'.
9213         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
9214
9215 2000-10-27  Martin Buchholz  <martin@xemacs.org>
9216
9217         * fns.c (Fbutlast):
9218         * fns.c (list_sort):
9219         * fns.c (Ffillarray):
9220         * fns.c (bytecode_nconc2):
9221         * fns.c (Fnconc):
9222         * fns.c (mapcar1):
9223         * fns.c (Fmapconcat):
9224         Be pedantically 64-bit correct.  For the time when someone will
9225         want to have a list with length > 2**32.
9226
9227         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9228         Work around MIPSpro compiler bug.
9229
9230         * process-unix.c (unix_kill_child_process): Add snarky comment.
9231         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
9232
9233         * config.h.in: Oops, _getpt ==> _getpty
9234
9235 2000-10-26  Martin Buchholz  <martin@xemacs.org>
9236
9237         * config.h.in:
9238         * regex.c:
9239         Use void*, not char*, as return type of alloca().
9240
9241         * alloc.c (free_marker): Side effect inside assert expression!
9242
9243 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
9244
9245         * mule-charset.c (Fset_charset_ccl_program): To check
9246         if the given ccl program is valid, use setup_ccl_program()
9247         instead of CHECK_VECTOR().
9248         (Fmake_charset): Likewise.
9249
9250 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
9251
9252         * faces.c (get_extent_fragment_face_cache_index):
9253         Fix cachel.merged_faces memory leak.
9254
9255 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
9256
9257         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
9258         Reset MSB of octets obtained by DECODE_SJIS
9259         because of the incompatibility with Emacs.
9260         (ccl_driver)<CCL_ENCODE_SJIS>:
9261         Set MSB of octets before passing them to
9262         ENCODE_SJIS because of the incompatibility
9263         with Emacs.
9264
9265 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
9266
9267         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
9268         (DECLARE_LRECORD): Undo the last change.
9269         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
9270
9271 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
9272
9273         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
9274         the implementation to lrecord_implementations_table.
9275
9276 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
9277
9278         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
9279         initial value of `lrecord_type_##c_name' and
9280         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
9281         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
9282         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
9283         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
9284         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
9285
9286 2000-10-17  Martin Buchholz  <martin@xemacs.org>
9287
9288         * miscplay.c (sndcnv8S_2mono):
9289         (sndcnv2monounsigned):
9290         (sndcnvULaw_2linear):
9291         (sndcnv16swap):
9292         Remove implementation-defined behavior.
9293
9294 2000-10-12  Martin Buchholz  <martin@xemacs.org>
9295
9296         * input-method-xlib.c: Warning suppression.
9297
9298 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
9299
9300         * mule-ccl.c: Sync up with Emacs 21.0.90.
9301         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
9302         Do nothing.
9303         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
9304         Likewise.
9305         (ccl_driver[WriteMultibyteChar2]): Bug fix.
9306         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
9307         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
9308         leading char belongs to official 2-dimensional charset.
9309         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
9310         write the given character as is.  Otherwise,
9311         if it is a multibyte char, convert it by
9312         non_ascii_set_charptr_emchar, then write it.
9313         (CCL_WRITE_STRING): Likewise.
9314         (ccl_get_compiled_code): New function.
9315         (setup_ccl_program): When ccl_prog is invalid,
9316         return -1.
9317         (Fregister_code_conversion_map): New function.
9318         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
9319
9320         * mule-ccl.h: Sync up with Emacs 21.0.90.
9321         (Fregister_ccl_program): export it.
9322
9323         * redisplay-msw.c (separate_textual_runs):
9324         If ccl program is not valid, don't do ccl conversion.
9325
9326         * redisplay-x.c (separate_textual_runs): Ditto.
9327
9328         * file-coding.c (Fmake_coding_system):
9329         When type is ccl and value is vector, register it
9330         with a proper symbol.  And checks whether the
9331         given ccl program is valid.
9332         (mule_decode): When calling ccl_driver, if src indicates
9333         NULL pointer, set an empty string instead.
9334         (mule_encode): Likewise.
9335
9336 2000-10-11  Martin Buchholz  <martin@xemacs.org>
9337
9338         The following large batch of changes gets us back to a state of
9339         C++ compilability.  Extbyte is now a char, which means that
9340         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9341
9342         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9343
9344         * sound.c (Fplay_sound): Type correctness.
9345
9346         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9347         (x_get_window_property): Type correctness.
9348         (receive_incremental_selection): unsigned char ==> Extbyte
9349         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9350         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9351         (Fx_store_cutbuffer_internal): Type correctness.
9352
9353         * process-unix.c (try_to_initialize_subtty): Type correctness.
9354
9355         * objects-x.c (x_print_color_instance): Type correctness.
9356         (x_print_font_instance): Type correctness.
9357         (x_list_fonts): SExtbyte ==> Extbyte.
9358         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9359         (x_find_charset_font): SExtbyte ==> Extbyte.
9360         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9361         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9362         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9363         Use bufbyte_strcmp.
9364
9365         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9366         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9367         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9368         (BYTE_C0_P): Use bit ops for char-signedness safety.
9369         (BYTE_C1_P): Use bit ops for char-signedness safety.
9370         (CHARSET_BY_LEADING_BYTE):
9371         (CHARSET_BY_ATTRIBUTES):
9372         Always use inline function.
9373         Use type_checking_assert.
9374         Hide chlook.
9375
9376         * mule-charset.c (non_ascii_charptr_copy_char):
9377         Modify to work with both ASCII and non-ASCII characters.
9378         Improve docs and variable names.
9379         Replace over-clever fall-through switch with a simple loop.
9380         (Lstream_get_emchar_1):
9381         Replace over-clever fall-through switch with a simple loop.
9382
9383         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9384         Warning suppression.
9385
9386         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9387         the return value of Lstream_getc, which could be EOF as well.
9388
9389         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9390
9391         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9392         APIs can be used on Extbytes without casts.  Risky!
9393         (SExtbyte): Remove.
9394         (UExtbyte): Remove.
9395
9396         * input-method-xlib.c (XIM_init_device):
9397         Use Xlib.h instead of IntrinsicP.h.
9398         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9399         which will break in X11R7.
9400         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9401         to call XRegisterIMInstantiateCallback with correct types.
9402
9403         * gui-x.c (button_item_to_widget_value): Type correctness.
9404
9405         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9406
9407         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9408         (xbm_instantiate_1): Type correctness.
9409         (BUILD_GLYPH_INST):  Type correctness.
9410
9411         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9412
9413         * file-coding.c:
9414         (decode_coding_sjis):
9415         (decode_coding_big5):
9416         (decode_coding_ucs4):
9417         (decode_coding_utf8):
9418         (decode_coding_iso2022):
9419         (decode_coding_no_conversion):
9420         Make all decoding functions take an Extbyte * arg.
9421         (encode_coding_sjis):
9422         (encode_coding_big5):
9423         (encode_coding_ucs4):
9424         (encode_coding_utf8):
9425         (encode_coding_iso2022):
9426         (encode_coding_no_conversion):
9427         Make all encoding functions take a Bufbyte * arg.
9428         Use size_t instead of unsigned int for memory sizes.
9429         Only cast to unsigned char whenever dereferencing Extbyte *.
9430
9431         * doc.c (unparesseuxify_doc_string): Type correctness.
9432
9433         * console-x.c (split_up_display_spec):
9434         Rewrite without using details of internal string representation.
9435         (x_semi_canonicalize_device_connection): Type correctness.
9436
9437         * config.h.in:
9438         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9439         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9440         (HAVE_XFREE386): Removed.
9441
9442         * buffer.h (DEC_CHARPTR): `const' correctness.
9443         (bufbyte_strcmp): New.
9444         (bufbyte_memcmp): New.
9445
9446         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9447
9448         * buffer.h (XCHAR_OR_CHAR_INT):
9449         Always use inline function.
9450         Remove redundant type checking assert() - XINT will abort quite nicely.
9451
9452 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9453
9454         * search.c (Freplace_match): Set newtext to an empty string.
9455
9456 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9457
9458         * s/decosf1-3.h: Remove #include of stropts.h
9459         * s/ptx.h: Remove #include of stropts.h
9460         * s/usg5-4.h: Remove #include of stropts.h
9461         * sysproc.h:
9462         * config.h.in:
9463         Use stropts.h, not sys/stropts.h.
9464         Use strtio.h, not sys/strtio.h.
9465
9466 2000-10-04  Martin Buchholz <martin@xemacs.org>
9467
9468         * XEmacs 21.2.36 is released.
9469
9470 2000-09-21  Andy Piper  <andy@xemacs.org>
9471
9472         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9473         changes still involve copying the widget tree.
9474         (update_widget_face): make sure a change is register in the widget
9475         tree. Call update_tab_widget_face appropriately.
9476         (update_tab_widget_face): ditto.
9477         (x_tab_control_redisplay): make sure non-structural changes still
9478         involve copying the widget tree.
9479
9480 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9481
9482         * lread.c (locate_file): Check the path element is non-nil.
9483
9484 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9485
9486         * lisp.h: Warning suppression for SCO compilers.
9487
9488         * redisplay-tty.c (reset_tty_modes): Fix crash.
9489         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9490
9491 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9492
9493         Big signal/process handling overhaul.  Bugs fixed:
9494         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9495         M-x comint-kill-subjob should work for both values nil and t of
9496         process-connection-type. It was broken on most platforms.
9497         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9498         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9499         * process-unix.c: Signal/Process handling overhaul.
9500         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9501         (allocate_pty): Use all available modern methods of allocating
9502         ptys, falling back to old style BSD allocation as a last resort.
9503         Use allegedly more secure Unix98 pty allocation by default.
9504         (allocate_pty_the_old_fashioned_way): New. the last resort.
9505         (unix_create_process): Push ptem, ldterm, ttcompat where
9506         available.  Autoconfiscate.
9507         (try_to_initialize_subtty): New.
9508         (unix_kill_child_process): Proper signal handling for ptys on most
9509         platforms, using special knowledge of AIX, BSD, etc...
9510         (unix_create_process): Always disconnect_controlling_terminal() for
9511         subprocesses, whether using ptys or not.
9512         * process.h: Remove old getpt-dependent PTY code.
9513         * process.c (Fprocess_send_signal): New, obvious generic function.
9514         (decode_signal): New.
9515         (Finterrupt_process):
9516         (Fkill_process):
9517         (Fquit_process):
9518         (Fstop_process):
9519         (Fcontinue_process):
9520         (Fsignal_process): Use decode_signal.
9521         (process_send_signal):
9522         Many docstring corrections.
9523         Allow any signal to be sent to a process object.
9524         * config.h.in: Add symbols for big signal/process overhaul.
9525         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9526         * sysproc.h: Include process-related headers, where available:
9527         sys/stropts.h sys/strtio.h pty.h libutil.h
9528         * s/irix4-0.h:
9529         * s/irix5-0.h:
9530         * s/cygwin32.h:
9531         * s/gnu.h:
9532         * s/linux.h:
9533         * s/hpux.h:
9534         * s/aix3-1.h:
9535         Remove old S&M pty stuff.
9536         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9537         * systty.h: Simplify cpp hackery, improve comments.
9538         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9539
9540         * editfns.c (Fformat_time_string):
9541         Be a little more paranoid with the return value of ctime.
9542
9543         * fileio.c (check_executable):
9544         (check_writable):
9545         Use symbolic constants X_OK, W_OK.
9546
9547         * console-x.c (split_up_display_spec): Fix a warning.
9548
9549 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9550
9551         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9552         * ntproc.c (sys_spawnve): make_string ==> build_string
9553         Small clarity improvements.
9554
9555 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9556
9557         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9558
9559         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9560
9561         * config.h.in (HAVE_STRCASECMP): Remove.
9562
9563 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9564
9565         * redisplay-output.c (redisplay_output_pixmap):
9566         Cleaner and possibly more 64-bit correct code.
9567
9568 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9569
9570         * dumper.c (pdump_load_finish): move restoration of
9571         `noninteractive1' to emacs.c (main_1).
9572         * emacs.c (main_1): protect LISP-visible command-line flags
9573         from pdump_load().
9574
9575 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9576
9577         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9578         DUMP_TARGET instead of literal program names.
9579
9580 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9581
9582         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9583
9584 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9585
9586         * *: Spelling mega-patch
9587
9588 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9589
9590         * fns.c (bad_bad_turtle):
9591         Delete "Eek!" comment, since we fixed the bug to which it refers.
9592
9593 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9594
9595         * alloca.c: Replace REGISTER with register.
9596
9597 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9598
9599         * file-coding.c (ucs_to_char): Use countof.
9600
9601 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9602
9603         * file-coding.c: (ucs_to_char):
9604         (complex_vars_of_file_coding):
9605         Use countof instead of sizeof.
9606         Use CHECK_NATNUM instead of CHECK_INT.
9607
9608         * sysdep.c (strcasecmp): Remove.
9609         * device-x.c (ascii_strcasecmp): New.
9610         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9611         Avoid using non-standard non-portable strcasecmp.
9612
9613 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9614
9615         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9616         * font-lock.c: remove reference to emacsfns.h.
9617         * search.c: small doc improvement.
9618         * event-Xt.c: correct file names in comments.
9619         * console-x.h Correct file names in comments.
9620         * frame.c: Correct file names in comments.
9621         * event-stream.c: remove Energize from comments.
9622
9623 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9624
9625         * symeval.h (DEFERROR_STANDARD):
9626         (DEFERROR):
9627         (DEFSYMBOL):
9628         (DEFSYMBOL_NO_DUMP):
9629         (DEFSYMBOL_MULTIWORD_PREDICATE):
9630         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9631         (DEFKEYWORD):
9632         The construct &##name is not sensible C.
9633         Fixes compilation errors with Unixware native compiler.
9634
9635 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9636
9637         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9638         (next_frame_internal): Removed.  We now just have next_frame.
9639         (next_frame):
9640         Write a simpler and cleaner one-pass algorithm.
9641         Remove called_from_delete_device arg and #ifdefed-out code.
9642         (previous_frame):
9643         Renamed from prev_frame.  Update callers.
9644         Cleaned up to have an analogous implementation to next_frame.
9645         (other_visible_frames_internal): Remove the
9646         called_from_delete_device bogus arg, and hence, remove this
9647         function.  Just use other_visible_frames().
9648
9649         * window.c (Fnext_window):
9650         Prettify docstring.
9651         Since next_frame() is guaranteed to return a frame, remove check
9652         for nil inserted in previous patch.
9653         (Fprevious_window):
9654         Prettify docstring.
9655         Make code look more like Fnext_window.
9656         (window_loop):
9657         Respect the `console' arg when iterating through windows.
9658         Fixes bug: (get-buffer-window buffer t device) not respecting
9659         the `device' arg.
9660         This function needs more work, as others have pointed out.
9661
9662         * frame.h: Rename prev_frame to previous_frame.
9663         device_matches_console_spec no longer takes a `frame' arg.
9664
9665         * s/gnu.h:
9666         * s/linux.h:
9667         * s/hpux.h:
9668         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9669         From "Golubev I. N." <gin@mo.msk.ru>.
9670
9671         * make-src-depend: Fix typo.
9672
9673 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9674
9675         * window.c (Fnext_window):
9676         next_frame() might return nil, not a frame.
9677         Fixes this crash:
9678         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9679
9680         * frame.c (next_frame_internal):
9681         We've passed a frame if we've passed its device.
9682         Fixes this crash:
9683         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9684 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9685
9686 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9687
9688         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9689         Allow option to suppress accelerators in menu/dialog items.
9690         (populate_or_checksum_helper): Pass dialog title through above.
9691
9692 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9693
9694         * event-msw.c (mswindows_key_to_emacs_keysym):
9695         Add "pause" key, fix "menu" key.
9696
9697 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9698
9699         * eval.c (reinit_vars_of_eval):
9700         Increase max_lisp_eval_depth to 1000,
9701         required for thai-xtis.el to byte-compile under some circumstances.
9702
9703 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9704
9705         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9706         From Kenichi Handa.
9707
9708 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9709
9710         * make-src-depend: Make the generated Makefiles smaller.
9711
9712         * s/hpux.h (SETUP_SLAVE_PTY):
9713         Provide a %d in the format string for the errno argument.
9714
9715         * editfns.c (Ftemp_directory):
9716         Warning fix.
9717         Avoid buffer overrun on very long file name.
9718
9719         * input-method-xlib.c (XIM_init_device):
9720         6th parameter of XRegisterIMInstantiateCallback has different
9721         pointer types on different OSes, so simply cast to (void *).
9722
9723         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9724
9725         * sysdll.c (dll_open):
9726         shl_load will hang hard if passed a NULL filename.
9727         Simply return NULL for compatibility with dlopen.
9728         * sysdll.c: Conform to XEmacs coding standards.
9729
9730         * sysdep.c (get_pty_max_bytes):
9731         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9732
9733 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9734
9735         * tooltalk.c: Add #include <syssignal.h>
9736
9737 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9738
9739         * s/hpux.h: Don't use undefined function sigunblock().
9740
9741 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9742
9743         * config.h.in: Add HAVE_BALLOON_HELP.
9744         * emacs.c: Use HAVE_BALLOON_HELP.
9745         * Makefile.in.in (x_objs):
9746         Make Balloon Help conditional on finding shape.h.
9747
9748 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9749
9750         * syntax.c (regex_emacs_buffer_p): New variable.
9751         * syntax.h (regex_emacs_buffer_p): extern.
9752         * search.c (looking_at_1):
9753         (string_match_1):
9754         (fast_string_match):
9755         (search_buffer): Set regex_emacs_buffer_p.
9756         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9757         when before_dot, at_dot, after_dot.
9758
9759 2000-08-23  Andy Piper  <andy@xemacs.org>
9760
9761         * gui-x.c (popup_selection_callback): Only set action_occurred
9762         when we really have an image instance.
9763         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9764
9765 2000-08-23  Andy Piper  <andy@xemacs.org>
9766
9767         * gui-msw.c (mswindows_handle_gui_wm_command): set
9768         action_occurred.
9769         * gui-x.c (popup_selection_callback): ditto.
9770
9771         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9772         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9773         (struct Lisp_Image_Instance): add action_occurred flag.
9774
9775         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9776         (image_instance_changed): ditto.
9777         (reset_frame_subwindow_instance_cache): only unmap windows - do
9778         not remove them from the cache also.
9779
9780         * glyphs-widget.c (tab_control_update): better debug.
9781         (progress_gauge_update): ditto.
9782         (layout_update): ditto.
9783         (layout_instantiate): ditto.
9784         (tab_control_order_only_changed): cope with null pending items.
9785
9786         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9787         debug. Force selection of an item when an action occurred. Cope
9788         with null pending_items.
9789         (mswindows_progress_gauge_redisplay): better debug.
9790         * glyphs-x.c (x_tab_control_redisplay): ditto.
9791
9792         * redisplay.c (redisplay_frame): reset the frame cache if the
9793         frame is garbaged.
9794
9795         * window.c (Fset_window_configuration): potentially re-enable
9796         frame cache reset.
9797         (window_unmap_subwindows): need to finalize instances here since
9798         it is only used in mark_window_as_deleted.
9799
9800 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9801
9802         * nas.c (SndOpenDataForReading):
9803         nas.c (WaveOpenDataForReading):
9804         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9805         Somehow escaped from the 2000-08-14 patch.
9806
9807 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9808
9809         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9810         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9811
9812 2000-08-21  Andy Piper  <andy@xemacs.org>
9813
9814         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9815         window if it is not already displayed.
9816
9817         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9818         it is not already displayed.
9819
9820         * window.c (Fset_window_configuration): don't reset the frame
9821         cache.
9822
9823         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9824         instances from the frame cache if we are actually finalizing them.
9825         (reset_frame_subwindow_instance_cache): reset frame cache only
9826         after unmapping everything.
9827         (map_subwindow): set displayed flag after mapping.
9828
9829 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9830
9831         * data.c (indirect_function):
9832         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9833
9834         * eval.c (function_argcount):
9835         Use original function when signaling errors.
9836
9837 2000-08-18  Andy Piper  <andy@xemacs.org>
9838
9839         * frame.c (delete_frame_internal): use new
9840         free_frame_subwindow_instances name.
9841
9842         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9843         (add_tab_item): make return type correct.
9844         (mswindows_tab_control_instantiate): assert index of tab.
9845         (mswindows_tab_control_redisplay): Re-code to use
9846         gui_item_equal_sans_selected and gui_item_list_find_selected.
9847
9848         * glyphs-widget.c (tab_control_update): Correct comment.
9849
9850         * window.c (window_unmap_subwindows): use new
9851         unmap_subwindow_instance_cache_mapper.
9852         (window_unmap_subwindows_cache_mapper): deleted.
9853         (Fset_window_configuration): comparisons should now be with
9854         EQ. Preserve the subwindow instance cache across configuration
9855         changes.
9856         (allocate_window): ditto.
9857         (make_dummy_parent): ditto.
9858
9859         * glyphs.c (free_frame_subwindow_instances): rename from
9860         free_frame_subwindow_instance_cache. finalize all instances rather
9861         than just those in the display cache.
9862         (finalize_all_subwindow_instances): walk windows unmapping and
9863         finalizing subwindows.
9864         (unmap_subwindow_instance_cache_mapper): moved from
9865         window.c. Allow finalization as well as unmapping.
9866
9867         * gui.c (gui_item_list_find_selected): new function.
9868
9869         * gui.h (gui_item_list_find_selected): declare.
9870
9871         * glyphs-x.c (x_tab_control_redisplay): pick tab
9872         explicitly. Re-code to use gui_item_equal_sans_selected and
9873         gui_item_list_find_selected.
9874
9875         * glyphs-x.h: add lwlib-utils.h
9876
9877         * buffer.c (Frecord_buffer): undo previous change.
9878
9879 2000-08-09  Vin Shelton  <acs@xemacs.org>
9880
9881         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9882         possible.  Create temporary files more securely.  The patch was
9883         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9884         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9885         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9886         for details.
9887
9888 2000-08-07  Ben Wing  <ben@xemacs.org>
9889
9890         * getloadavg.c: remove duplicate (and windows-breaking)
9891         includes of fcntl.h and sys/file.h.
9892
9893         * nt.c: remove duplicate getloadavg() definition.
9894
9895         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9896         encodings.
9897
9898 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9899
9900         * eval.c (function_argcount): If function needs to be autoloaded
9901         actually use the loaded definition.
9902         GCPRO function.
9903
9904 2000-08-05  Ben Wing  <ben@xemacs.org>
9905
9906         * getloadavg.c: add prototype for getloadavg().  remove
9907         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9908         of the code).  remove duplicate header includes.
9909
9910         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9911
9912         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9913         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9914         useful load average.
9915
9916         * alloc.c (reinit_alloc_once_early): removed references to
9917         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9918         the lisp vars are the only things referencing the malloc_sbrk_*
9919         vars, and they were already if 0'd out.  these vars only exist
9920         in the older malloc.c, which is basically unused, and they're
9921         only for informational purposes.
9922
9923         * m\*.h: removed useless VIRT_ADDR_VARIES.
9924
9925         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9926
9927 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9928
9929         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9930         color if the image is a mono pixmap.
9931
9932 2000-07-30  Ben Wing  <ben@xemacs.org>
9933
9934         * Makefile.in.in (release):
9935         Remove stray @.
9936
9937         * buffer.c (directory_is_current_directory):
9938         * dired-msw.c (mswindows_get_files):
9939         * dired.c:
9940         * dired.c (Fdirectory_files):
9941         * dired.c (file_name_completion_stat):
9942         * dired.c (Ffile_attributes):
9943         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
9944         preprocessor tricks, to avoid problems on some machines
9945         (e.g. SCO).
9946
9947         * callproc.c (egetenv): GC docs.
9948
9949         * console-msw.h:
9950         * console-msw.h (struct mswindows_dialog_id):
9951         * lrecord.h (lrecord_type):
9952         New object for use with MSW dialogs.
9953
9954         * console.h (struct console_methods):
9955         New enable/disable frame methods, for proper modal dialogs.
9956
9957         * device-msw.c (msprinter_default_printer): Fix to follow
9958         proper Mule conventions.
9959
9960         * device-msw.c:
9961         * device-msw.c (signal_open_printer_error):
9962         * device-msw.c (msprinter_init_device):
9963         * device-msw.c (ensure_not_printing):
9964         * device-msw.c (plist_get_margin):
9965         * device-msw.c (Fmsprinter_select_settings):
9966         * device-msw.c (finalize_devmode):
9967         * device-msw.c (Fmsprinter_settings_despecialize):
9968         * device-msw.c (signal_enum_priner_error):
9969         * extents.c (decode_extent):
9970         * extents.c (decode_map_extents_flags):
9971         * extents.c (decode_extent_at_flag):
9972         * extents.c (Fextent_at):
9973         * extents.c (Fextents_at):
9974         * extents.c (symbol_to_glyph_layout):
9975         [[[[2]]]] Use structured errors.
9976
9977         * dialog-msw.c:
9978         * dialog-msw.c (mswindows_is_dialog_msg):
9979         * dialog-msw.c (mark_mswindows_dialog_id):
9980         * dialog-msw.c (dialog_proc):
9981         * dialog-msw.c (handle_question_dialog_box):
9982         * dialog-msw.c (syms_of_dialog_mswindows):
9983         Define new object to clean up marking; use it as a dialog identifier.
9984         Call new delete-dialog-box-hook.
9985
9986         * dialog-x.c (dbox_selection_callback):
9987         * dialog-x.c (dbox_descriptor_to_widget_value):
9988         * dialog-x.c (x_make_dialog_box_internal):
9989         Call new delete-dialog-box-hook.
9990         Return an id.
9991
9992         * dialog.c:
9993         * dialog.c (syms_of_dialog):
9994         * dialog.c (vars_of_dialog):
9995         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
9996
9997         * eval.c:
9998         * eval.c (signal_call_debugger):
9999         when noninteractive, output stack traces on the console instead
10000         of in a (never-seen) buffer.
10001
10002         * eval.c (signal_type_error):
10003         * eval.c (invalid_argument_2):
10004         * lisp.h:
10005         new funs for use w/structured errors.
10006
10007         * event-Xt.c:
10008         * event-Xt.c (x_to_emacs_keysym):
10009         * event-Xt.c (describe_event):
10010         * event-Xt.c (emacs_Xt_event_handler):
10011         * event-Xt.c (vars_of_event_Xt):
10012         * event-msw.c:
10013         * event-msw.c (mswindows_wnd_proc):
10014         * event-msw.c (vars_of_event_mswindows):
10015         rename {x,mswindows}-debug-events to debug-{}-events for
10016         consistency with other debug-foo variables.
10017
10018         * event-stream.c:
10019         document next-event more clearly.
10020
10021         * fileio.c (Ffile_name_directory):
10022         * fileio.c (Ffile_name_nondirectory):
10023         * fileio.c (Funhandled_file_name_directory):
10024         * fileio.c (file_name_as_directory):
10025         * fileio.c (Ffile_name_as_directory):
10026         * fileio.c (directory_file_name):
10027         * fileio.c (Fdirectory_file_name):
10028         * fileio.c (Fmake_temp_name):
10029         * fileio.c (Ffile_truename):
10030         * fileio.c (Fsubstitute_in_file_name):
10031         * fileio.c (expand_and_dir_to_file):
10032         * fileio.c (barf_or_query_if_file_exists):
10033         * fileio.c (check_executable):
10034         * fileio.c (Ffile_exists_p):
10035         * fileio.c (Ffile_writable_p):
10036         * fileio.c (Ffile_directory_p):
10037         * fileio.c (Ffile_regular_p):
10038         * fileio.c (Ffile_modes):
10039         * fileio.c (Ffile_newer_than_file_p):
10040         * fileio.c (Fverify_visited_file_modtime):
10041         * fileio.c (Fset_visited_file_modtime):
10042         * fileio.c (auto_save_1):
10043         (1). (2).
10044         fix up gcpro's.
10045
10046         * frame-msw.c:
10047         * frame-msw.c (mswindows_init_frame_1):
10048         * frame-msw.c (mswindows_enable_frame):
10049         * frame-msw.c (error_frame_unsizable):
10050         * frame-msw.c (msprinter_init_frame_1):
10051         * frame-msw.c (msprinter_init_frame_3):
10052         * frame-msw.c (console_type_create_frame_mswindows):
10053         (2).
10054         implement new enable/disable frame methods.
10055
10056         * frame-x.c:
10057         * frame-x.c (x_enable_frame):
10058         * frame-x.c (console_type_create_frame_x):
10059         implement new enable/disable frame methods.
10060
10061         * frame.c:
10062         * frame.c (Fdisable_frame):
10063         * frame.c (syms_of_frame):
10064         * frame.h (struct frame):
10065         implement new enable/disable frame methods/functions.
10066
10067         * general-slots.h:
10068         add initial-focus.
10069
10070         * glyphs-msw.c (mswindows_widget_instantiate):
10071         comment that initial-focus should be implemented.
10072
10073         * glyphs-widget.c:
10074         * glyphs-widget.c (check_valid_instantiator):
10075         * glyphs-widget.c (check_valid_orientation):
10076         * glyphs-widget.c (check_valid_tab_orientation):
10077         * glyphs-widget.c (check_valid_justification):
10078         * glyphs-widget.c (check_valid_border):
10079         * glyphs-widget.c (check_valid_callback):
10080         * glyphs-widget.c (check_valid_int_or_function):
10081         * glyphs-widget.c (check_valid_string_or_vector):
10082         * glyphs-widget.c (check_valid_item_list_1):
10083         * glyphs-widget.c (widget_validate):
10084         * glyphs-widget.c (combo_box_validate):
10085         * glyphs-widget.c (widget_instantiate):
10086         * glyphs-widget.c (syms_of_glyphs_widget):
10087         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
10088         * glyphs-widget.c (image_instantiator_combo_box):
10089         * glyphs-widget.c (image_instantiator_scrollbar):
10090         * glyphs-widget.c (image_instantiator_tab_control):
10091         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
10092         (2).
10093         support (unimplemented) keyword initial-focus.
10094         reindent long macros.
10095
10096         * glyphs-x.c (x_redisplay_widget):
10097         * glyphs-x.c (x_button_instantiate):
10098         * glyphs-x.c (x_button_redisplay):
10099         * glyphs-x.c (x_progress_gauge_instantiate):
10100         * glyphs-x.c (x_edit_field_instantiate):
10101         * glyphs-x.c (x_combo_box_instantiate):
10102         * glyphs-x.c (x_tab_control_instantiate):
10103         * glyphs-x.c (x_label_instantiate):
10104         * gui-x.c:
10105         * gui-x.c (button_item_to_widget_value):
10106         * gui-x.c (gui_items_to_widget_values_1):
10107         * gui-x.c (gui_item_children_to_widget_values):
10108         * gui-x.c (gui_items_to_widget_values):
10109         * gui-x.h:
10110         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10111         add new flag to gui-parsing routines to indicate whether
10112         accelerator specs should be supported.
10113
10114         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
10115
10116         * glyphs.h (struct Lisp_Image_Instance):
10117         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
10118         add initial-focus flag.
10119
10120         * gui.c:
10121         * gui.c (syms_of_gui):
10122         * gui.c (vars_of_gui):
10123         clean up menu-no-selection-hook.
10124
10125         * gui.h:
10126         support delete-dialog-box-hook.
10127
10128         * lread.c (Fload_internal):
10129         * lread.c (locate_file_in_directory_mapper):
10130         (1).
10131
10132         * lrecord.h:
10133         * lrecord.h (struct toolbar_button):
10134         * lrecord.h (syms_of_toolbar):
10135         document how to create a new object.
10136
10137         * menubar-msw.c (mswindows_char_is_accelerator):
10138         may be called on frames w/o menus.
10139
10140         * menubar.c (vars_of_menubar):
10141         clean up :filter docs.
10142
10143         * nt.c (readdir):
10144         * ntproc.c:
10145         (1).
10146
10147         * process-nt.c:
10148         * process-nt.c (validate_signal_number):
10149         * process-nt.c (signal_cannot_launch):
10150         * process-nt.c (nt_create_process):
10151         * process-nt.c (nt_send_process):
10152         * process-nt.c (nt_kill_child_process):
10153         * process-nt.c (nt_open_network_stream):
10154         * process-nt.c (syms_of_process_nt):
10155         (2).
10156         delete quote-handling.  call new lisp code that does it better.
10157
10158         * process-unix.c (connect_to_file_descriptor):
10159         * process-unix.c (allocate_pty):
10160         * process-unix.c (unix_send_process):
10161         * process-unix.c (unix_kill_child_process):
10162         * process-unix.c (unix_open_network_stream):
10163         * process-unix.c (unix_open_multicast_group):
10164         (1). (2).
10165
10166         * process.c:
10167         * process.c (Fstart_process_internal):
10168         (2).  need to canonicalize process path even if absolute.
10169
10170         * select-msw.c (symbol_to_ms_cf):
10171         * select-msw.c (ms_cf_to_symbol):
10172         * select-msw.c (cf_is_autofreed):
10173         * select-msw.c (mswindows_destroy_selection):
10174         * select.c:
10175         * select.c (syms_of_select):
10176         * select.h:
10177         support dibv5, fix bugs. (from Mike Alexander)
10178
10179         * select.c (Fget_selection_internal):
10180         * select.c (select_convert_out):
10181
10182         * sysdep.c:
10183         * sysdep.c (xemacs_stat):
10184         renamed.
10185
10186         * sysdep.c (mkdir):
10187         * sysdep.c (rmdir):
10188         but keep original stat() here because we provide encapsulation
10189         around these funs.
10190
10191         * sysfile.h:
10192         * sysfile.h (fstat):
10193         remove stat garbage.
10194
10195         * syswindows.h:
10196         fix X/MSW conflict.
10197         don't include tchar.h.  it's inappropriate because it makes
10198         compile-time distinctions when we want runtime distinctions.
10199         (we provide our own tchar replacements)
10200
10201         * toolbar.c:
10202         use default object printer for toolbar-button.
10203
10204         * unexcw.c:
10205         make sure we don't encapsulate.
10206
10207         * window.c (vars_of_window):
10208         emphasize that temp-buffer-show-hook is obsolete.
10209
10210 2000-08-05  Martin Buchholz  <martin@xemacs.org>
10211
10212         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
10213         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
10214
10215         * events.c (Fevent_timestamp_lessp):
10216         Not 64-bit clean.  Use EMACS_INT, not int.
10217
10218 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
10219
10220         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
10221         unsigned int and changed the last enum to
10222         lrecord_type_last_built_in_type.
10223         (lrecord_implementations_table): changed prototype to know how
10224         long the array is supposed to be.
10225         (lrecord_type_count): new unsigned int to keep track of the
10226         current number of lisp lrecord types.
10227         (DEFINE_EXTERNAL_LRECORD):
10228         (DECLARE_EXTERNAL_LRECORD): Added these two for external
10229         dynamic-modules to declare new lisp types. They are the same
10230         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
10231         int for each new type, and increment lrecord_type_count by 1.
10232
10233         * alloc.c (lrecord_implementations_table): Changed to reference
10234         lrecord_type_last_built_in_type for the size of the array.
10235         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
10236
10237 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10238
10239         * glyphs.h (check_valid_item_list): Renamed from
10240         check_valid_item_list_1.
10241
10242 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
10243
10244         * select.c (Qselect_coerce): New.
10245         * select.c (Vselection_coercion_alist): New.
10246         * select.c (syms_of_select): Declare.
10247         * select.c (get-selection-internal): Use it.
10248         Use the new select-coerce functionality.
10249
10250         * select.c (select_coerce): New.
10251         * select.h (select_coerce): Declare.
10252         New function to coerce one type of data into another.
10253
10254 2000-08-03  Martin Buchholz  <martin@xemacs.org>
10255
10256         * callproc.c (Fcall_process_internal):
10257         (Fcall_process_internal):
10258         * process-unix.c (unix_create_process):
10259         Save and restore the value of errno, so that error messages are accurate.
10260
10261 2000-08-01  Martin Buchholz  <martin@xemacs.org>
10262
10263         * elhash.c (print_hash_table):
10264         Fix printing of hash tables to also use `key-and-value' instead of `t'.
10265         Prettify docstrings and indentation.
10266
10267 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10268
10269         * window.c (Fwindow_pixel_edges): Subtract frame border and
10270         gutter size.
10271
10272 2000-07-31  Andy Piper  <andy@xemacs.org>
10273
10274         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
10275         will acknowledge the change.
10276
10277         * glyphs.h: declare tab_control_order_only_changed.
10278
10279         * glyphs-x.c (x_tab_control_redisplay): use
10280         tab_control_order_only_changed.
10281
10282         * glyphs-widget.c (tab_control_order_only_changed): new function.
10283
10284         * glyphs-msw.c (mswindows_tab_control_redisplay): use
10285         tab_control_order_only_changed.
10286
10287         * gui.c (gui_item_equal_sans_selected): new function.
10288         (gui_item_equal): use it.
10289
10290         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
10291         :properties in favor of :items..
10292
10293         * glyphs-widget.c (check_valid_item_list): rename from
10294         check_valid_item_list_1.
10295         (check_valid_item_list_1): renamed.
10296         (combo_box_validate): deprecate :properties in favor of :items.
10297         (widget_instantiate): ditto.
10298         (tab_control_update): ditto.
10299         (image_instantiator_combo_box): ditto.
10300         (image_instantiator_tree_view): ditto.
10301         (image_instantiator_tab_control): ditto.
10302         (layout_post_instantiate): remove dead code.
10303
10304         * print.c (debug_print_no_newline): only write to debugger if in
10305         WIN32_NATIVE.
10306
10307         * elhash.c (Fmake_hash_table): update doc string.
10308
10309         * event-msw.c (mswindows_wnd_proc): don't allow processing of
10310         messages whilst in GC. This at least stops XEmacs crashing but has
10311         the potential for wierd behaviour.
10312
10313 2000-07-31  Martin Buchholz  <martin@xemacs.org>
10314
10315         * config.h.in:
10316         Make existence of s&m files optional.
10317
10318         * s/bsd386.h: Remove HAVE_GETLOADAVG.
10319         * s/freebsd.h: Remove HAVE_GETLOADAVG.
10320         * s/gnu.h: Remove HAVE_GETLOADAVG.
10321         * s/netbsd.h: Remove HAVE_GETLOADAVG.
10322         * s/sol2.h: Remove HAVE_GETLOADAVG.
10323         * lisp.h: Remove getloadavg() declaration.
10324         * fns.c:
10325         Include <sys/loadavg.h> if available.
10326         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
10327         * config.h.in:  Group together getloadavg()-related macros.
10328         Use only configure-time tests to detect getloadavg().
10329
10330 2000-07-30  Martin Buchholz  <martin@xemacs.org>
10331
10332         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10333
10334 2000-07-25  Andy Piper  <andy@xemacs.org>
10335
10336         * syswindows.h: add tchar.h for native builds.
10337
10338         * frame.c (syms_of_frame): remove set-glyph-image.
10339
10340         * general-slots.h: add Qset_glyph_image.
10341
10342         * glyphs-widget.c (layout_update): add domain arg to
10343         set-glyph-image.
10344         (syms_of_glyphs_widget): remove set-glyph-image.
10345
10346 2000-07-23  Ben Wing  <ben@xemacs.org>
10347
10348         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10349         Vpopup_frame_list.
10350
10351 2000-07-22  Andy Piper  <andy@xemacs.org>
10352
10353         * symsinit.h: add syms_of_win32().
10354
10355         * gui-msw.c (syms_of_gui_mswindows): remove
10356         Fmswindows_shell_execute.
10357         (Fmswindows_shell_execute): moved to win32.c.
10358
10359         * emacs.c (main_1): add syms_of_win32 ().
10360
10361         * win32.c (init_potentially_nonexistent_functions): rewrite in
10362         compiler-friendly terms.
10363         (Fmswindows_shell_execute): move here from gui-msw.c.
10364         (syms_of_win32): new.
10365
10366         * device-msw.c (Fmswindows_printer_list): clean up args to
10367         EnumPrinters.
10368         Don't include tchar under cygwin or mingw.
10369         (msprinter_default_printer): make cygwin-friendly.
10370
10371 2000-07-21  Andy Piper  <andy@xemacs.org>
10372
10373         * glyphs-widget.c (image_instantiator_tree_view): use tab
10374         control's update function.
10375         (layout_property): new function. Retrieve items.
10376
10377         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10378         function. Re-populate the tree view from the pending items.
10379
10380         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10381         is designated the parent if the domain is an image instance. This
10382         is needed so that dirtiness can be cascade up the hierarchy and
10383         thus for layout children to be redisplayed correctly.
10384         (allocate_image_instance): rename glyph -> parent.
10385
10386         * redisplay.h: change redisplay_output_layout signature.
10387
10388         * redisplay-msw.c (mswindows_output_display_block): use domain
10389         arg.
10390
10391         * redisplay-x.c (x_output_display_block): use domain arg.
10392
10393 2000-07-10  Andy Piper  <andy@xemacs.org>
10394
10395         * window.c (Fset_window_configuration): add comment.
10396
10397         * redisplay-output.c (compare_runes):
10398         (redisplay_output_subwindow): redisplay rather than update subwindow.
10399         (redisplay_output_layout): ditto.
10400
10401         * redisplay-msw.c (mswindows_frame_output_end):
10402         (mswindows_frame_output_end): make defer window pos optional.
10403
10404         * lisp.h: add Flast.
10405
10406         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10407         normalize method. Change update method to be for changed
10408         instantiators. Add redisplay method. Change signature of layout
10409         method.
10410         (struct Lisp_Image_Instance): add instantiator.
10411         (IMAGE_INSTANCE_INSTANTIATOR): new.
10412         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10413         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10414         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10415
10416         * glyphs.c:
10417         (find_instantiator_differences): new function.
10418         (Fset_instantiator_property): new convenience function.
10419         (check_image_instance_structure): strictly check for vector
10420         instantiators.
10421         (normalize_image_instantiator): make non-static.
10422         (instantiate_image_instantiator): pass on dest_mask and use new
10423         signatures for image_instance_layout and friends.
10424         (mark_image_instance): mark the instantiator. Mark the subwindow
10425         face not the widget face.
10426         (image_instance_equal): add instantiator.
10427         (image_instance_hash): ditto.
10428         (allocate_image_instance): ditto.
10429         (Fset_image_instance_property): removed.
10430         (Fimage_instance_file_name): ditto.
10431         (Fcolorize_image_instance): ditto.
10432         (image_instance_layout): add offsets to be set.
10433         (update_image_instance): new function. update an image instance
10434         from its changed instantiator.
10435         (inherit_normalize): add dest_mask.
10436         (xbm_normalize): ditto.
10437         (xface_normalize): ditto.
10438         (xpm_normalize): ditto.
10439         (text_update): set_property -> update.
10440         (image_instantiate): use the glyph identity as a hash key, not the
10441         instantiator.
10442         (glyph_width): use new image_instance_layout signature.
10443         (glyph_ascent): ditto.
10444         (glyph_descent): ditto.
10445         (glyph_height): ditto.
10446         (glyph_query_geometry): ressurrect.
10447         (glyph_layout): ditto.
10448         (redisplay_subwindow): update -> redisplay.
10449         (syms_of_glyphs): add Fset_instantiator_property.
10450         (image_instantiator_format_create): set_property -> update.
10451
10452         * glyphs-x.c:
10453         (autodetect_normalize): add dest_maks to signature.
10454         (x_redisplay_subwindow): update -> redisplay.
10455         (x_redisplay_widget): ditto.
10456         (x_button_redisplay): ditto.
10457         (x_progress_gauge_redisplay): ditto.
10458         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10459         stacking order.
10460         (console_type_create_glyphs_x): update -> redisplay.
10461         (image_instantiator_format_create_glyphs_x): ditto.
10462
10463         * glyphs-widget.c:
10464         (check_valid_instantiator): disallow glyphs in the instantiator,
10465         they must now be vectors.
10466         (check_valid_instantiator_list): ditto.
10467         (glyph_instantiator_to_glyph): use internal symbol rather than
10468         intern.
10469         (widget_update): renamed from widget_set_property. Call cascaded
10470         update methods.
10471         (redisplay_widget): renamed from update_widget.
10472         (widget_layout): image_instance_layout now takes position as well
10473         as size.
10474         (widget_normalize): ditto.
10475         (widget_instantiate): ditto.
10476         (tab_control_query_geometry) ditto.:
10477         (tab_control_update): renamed from tab_control_set_property.
10478         (progress_gauge_update): set_property -> update.
10479         (layout_normalize): rewrite so that child instantiators are
10480         normalized also.
10481         (layout_update): new function. Create glyphs from the normalized
10482         children and cope with any other layout keywords. We do not
10483         instantiate children here that will be take care of by
10484         redisplay_output_layout.
10485         (layout_instantiate): call layout_update and not much else.
10486         (layout_post_instantiate): not sure whether this is needed
10487         anymore.
10488         (layout_query_geometry): query glyph geometry rather than
10489         image_instance geometry.
10490         (layout_layout): set offsets from pass in parameters. Use glyph
10491         geometry and layout functions rather than image instance ones.
10492         (native_layout_layout): ditto.
10493         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10494         (image_instantiator_widget): set_property -> update.
10495         (image_instantiator_buttons): ditto.
10496         (image_instantiator_progress_guage): ditto.
10497         (image_instantiator_tab_control): ditto.
10498         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10499         (image_instantiator_layout): add update method.
10500
10501         * glyphs-msw.c (bmp_normalize):
10502         (mswindows_resource_normalize): add dest_mask so that it can be
10503         proprogated by layout_normalize.
10504         (begin_defer_window_pos): make optional because it may not be the
10505         right thing to do and it introduces differences with X.
10506         (mswindows_unmap_subwindow): ditto.
10507         (mswindows_map_subwindow): ditto.
10508         (mswindows_redisplay_subwindow): renamed from
10509         mswindows_update_subwindow.
10510         (mswindows_redisplay_widget): ditto.
10511         (mswindows_button_redisplay): renamed from
10512         mswindows_button_update. Update is now what the instantiation
10513         function does for a changed instantiator.
10514         (mswindows_progress_gauge_instantiate): set the progress value
10515         here if appropriate.
10516         (mswindows_tab_control_redisplay): cope with re-ordering of the
10517         members of the tab widget by simply selecting the new top
10518         widget. This makes things appear ok if you click on a tab.
10519         (mswindows_combo_box_instantiate): image_instance_layout now takes
10520         position as well as size.
10521         (mswindows_progress_gauge_redisplay): renamed from
10522         mswindows_progress_gauge_update.
10523         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10524         (image_instantiator_format_create_glyphs_mswindows): ditto.
10525
10526         * glyphs-eimage.c (jpeg_normalize):
10527         (gif_normalize):
10528         (png_normalize):
10529         (tiff_normalize): add dest_mask so that it can be proprogated by
10530         layout_normalize.
10531
10532         * elhash.c:
10533         (print_hash_table):
10534         (hash_table_weakness_validate):
10535         (decode_hash_table_weakness):
10536         (Fhash_table_weakness):
10537         (Fhash_table_type):
10538         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10539
10540         * console.h (struct console_methods): move update_* to
10541         redisplay_*.
10542
10543 2000-07-20  Ben Wing  <ben@xemacs.org>
10544
10545         * *.[ch] (XSETOBJ): remove unused middle argument.
10546         lisp-disunion.h: correct wrap_object() to one argument.
10547
10548 2000-07-15  Ben Wing  <ben@xemacs.org>
10549
10550         * s/cygwin32.h:
10551         * s/cygwin32.h (CYGWIN_CONV_PATH):
10552         Add missing logb prototype for v1.1.
10553         Use post-b20 names and alias to pre-b20 names when pre-b20.
10554
10555         * s/windowsnt.h: [5].
10556
10557 2000-07-15  Ben Wing  <ben@xemacs.org>
10558
10559         * Makefile.in.in (x_objs):
10560         * Makefile.in.in (sheap_objs):
10561         * Makefile.in.in (objs):
10562         added win32.o, cosmetic cleanups.
10563
10564         * alloc.c (Fmake_byte_code):
10565         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10566         etc. macros which declare their own args now.
10567
10568         * alloc.c (syms_of_alloc):
10569         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10570
10571         * buffer.c:
10572         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10573
10574         * buffer.c (Fget_file_buffer):
10575         Fixed GCPRO problem.
10576
10577         * buffer.c (get_truename_buffer):
10578         Fixed comment about GC checking.
10579
10580         * buffer.c (syms_of_buffer):
10581         Undeclared those dedicated frame funs.
10582         [2].
10583
10584         * buffer.h:
10585         Define convenience macros for internal/external conversions.
10586         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10587         and Qenvironment_variable_encoding for cleaner code.
10588
10589         * bufslots.h:
10590         Remove dedicated-frame; in lisp.
10591
10592         * bytecode.c (funcall_compiled_function):
10593         [1].
10594
10595         * bytecode.c (syms_of_bytecode):
10596         [2].
10597
10598         * console-msw.c:
10599         * console-msw.c (mswindows_show_console): Rewrote.
10600
10601         * console-msw.c (Fmswindows_debugging_output): New.
10602         Sends to OutputDebugString (special MSWin debugger interface).
10603
10604         * console-msw.c (Fmswindows_message_box):
10605         Fixed stupid bugs so it works when called from kill-emacs.
10606
10607         * console-msw.c (syms_of_console_mswindows):
10608         Declare Fmswindows_debugging_output.
10609
10610         * console-msw.h:
10611         New MSWin prototypes.
10612
10613         * console-msw.h (struct mswindows_frame):
10614         New entry last-click-mods for improved button-modifier support.
10615
10616         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10617         New struct entry `popup' with corresponding accessor.
10618
10619         * console-x.c:
10620         * console-x.c (split_up_display_spec):
10621         * console-x.c (get_display_arg_connection):
10622         * console-x.c (x_semi_canonicalize_console_connection):
10623         * console-x.c (x_canonicalize_device_connection):
10624         [[[6]]]: Change char to more specific type.
10625         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10626
10627         * console-x.c (x_semi_canonicalize_console_connection):
10628         * console-x.c (x_canonicalize_device_connection):
10629         [[[9]]]: Fix up error signalling to use new structured error system.
10630
10631         * console-x.h:
10632         [[[4]]]: Define codesys aliases:
10633         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10634         Qx_color_name_encoding, Qx_display_name_encoding.
10635
10636         * console.h (struct console_methods):
10637         New method make_dialog_box_internal supersedes older
10638         popup_dialog_box method.
10639
10640         * data.c:
10641         Define many new errors, part of new structured errors.
10642
10643         * data.c (init_errors_once_early):
10644         * data.c (syms_of_data):
10645         [2].
10646
10647         * device-msw.c (mswindows_init_device):
10648         [[[5]]]: Cleanup to support NT 3.51.
10649
10650         * device-msw.c (decode_devmode): Cleanup.
10651
10652         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10653         * device-msw.c (mswindows_handle_print_dialog_box):
10654         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10655         * device-msw.c (syms_of_device_mswindows):
10656         Delete the dialog box primitives recently introduced by Kirill and
10657         instead interface to general dialog box interface.
10658
10659         * device-x.c:
10660         * device-x.c (compute_x_app_name):
10661         * device-x.c (x_init_device):
10662         * device-x.c (Fx_valid_keysym_name_p):
10663         * device-x.c (Fx_set_font_path):
10664         [6].
10665         [7].
10666
10667         * device.h (wrap_device): New.
10668         First of its kind; meant to replace XSETDEVICE.
10669
10670         * dialog-msw.c: Many file-dialog symbols.
10671
10672         * dialog-msw.c (mswindows_register_popup_frame): New.
10673         * dialog-msw.c (mswindows_is_dialog_msg): New.
10674         For supporting kbd traversal in dialog boxes.
10675
10676         * dialog-msw.c (dialog_proc):
10677         Support hitting ESC in dialogs.
10678
10679         * dialog-msw.c (struct):
10680         Common dialog box errors.
10681
10682         * dialog-msw.c (handle_file_dialog_box): New.
10683         Add file dialog code.
10684
10685         * dialog-msw.c (handle_question_dialog_box):
10686         Redo existing code to support new question dialog syntax.
10687
10688         * dialog-msw.c (console_type_create_dialog_mswindows):
10689         We support new dialog console method.
10690
10691         * dialog-msw.c (syms_of_dialog_mswindows):
10692         * dialog-msw.c (vars_of_dialog_mswindows):
10693         New file dialog symbols, vars.
10694
10695         * dialog-x.c:
10696         * dialog-x.c (maybe_run_dbox_text_callback):
10697         * dialog-x.c (dbox_descriptor_to_widget_value):
10698         * dialog-x.c (x_make_dialog_box_internal):
10699         * dialog-x.c (console_type_create_dialog_x):
10700         Mule-ize entire file.
10701         Redo to support question dialog syntax.
10702         [6].
10703
10704         * dialog.c:
10705         * dialog.c (Fmake_dialog_box_internal):
10706         * dialog.c (syms_of_dialog):
10707         Kill old popup-dialog-box, replace with new primitive.
10708         Just call device method or signal error.
10709
10710         * eldap.c (Fldap_open):
10711         * eldap.c (Fldap_search_basic):
10712         * eldap.c (Fldap_add):
10713         * eldap.c (Fldap_modify):
10714         [1].
10715         [7].
10716
10717         * emacs.c:
10718         * emacs.c (make_arg_list_1):
10719         * emacs.c (make_arg_list):
10720         Mule-ize call to dll_init().
10721         [6].
10722         [8].
10723
10724         * emacs.c (make_argc_argv):
10725         * emacs.c (free_argc_argv):
10726         * emacs.c (init_cmdargs):
10727         * emacs.c (main_1):
10728         * emacs.c (Fkill_emacs):
10729         * emacs.c (Fdump_emacs):
10730         Update comments about what can be used in syms_* etc.
10731         Call init_win32() when necessary.
10732         Fix up MS Win dialog box in kill-buffer to actually work right.
10733         [7].
10734
10735         * eval.c:
10736         * eval.c (For):
10737         * eval.c (Fand):
10738         * eval.c (Fprogn):
10739         * eval.c (Fprog1):
10740         * eval.c (Fprog2):
10741         * eval.c (FletX):
10742         * eval.c (Flet):
10743         * eval.c (condition_case_3):
10744         * eval.c (Feval):
10745         * eval.c (function_argcount):
10746         * eval.c (funcall_lambda):
10747         [1].
10748
10749         * eval.c (type_error): New.
10750         * eval.c (maybe_type_error): New.
10751         * eval.c (continuable_type_error): New.
10752         * eval.c (maybe_continuable_type_error): New.
10753         * eval.c (type_error_with_frob): New.
10754         * eval.c (maybe_type_error_with_frob): New.
10755         * eval.c (continuable_type_error_with_frob): New.
10756         * eval.c (maybe_continuable_type_error_with_frob): New.
10757         New functions for use with structured errors.
10758
10759         * event-Xt.c:
10760         * event-Xt.c (x_event_to_emacs_event):
10761         Buttons are now modifiers too.
10762
10763         * event-Xt.c (emacs_Xt_current_event_timestamp):
10764         Implement new event method.
10765         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10766
10767         * event-msw.c:
10768         * event-msw.c (ntpipe_shove_writer): [5].
10769         * event-msw.c (mswindows_enqueue_mouse_button_event):
10770         * event-msw.c (mswindows_drain_windows_queue):
10771         * event-msw.c (mswindows_wnd_proc): [7].
10772         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10773         * event-msw.c (mswindows_modifier_state):
10774         Throughout: support new button modifiers.
10775
10776         * event-msw.c (emacs_mswindows_current_event_timestamp):
10777         Implement new event method.
10778         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10779
10780         * event-stream.c:
10781         * event-stream.c (event_stream_current_event_timestamp): New.
10782         * event-stream.c (maybe_kbd_translate): New functionality.
10783         * event-stream.c (vars_of_event_stream):
10784         Document new kbd-translate-table functionality.
10785
10786         * event-stream.c (Fcurrent_event_timestamp): New.
10787         New primitive for use in fabricated events.
10788         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10789
10790         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10791
10792         * events.c:
10793         * events.c (Fmake_event):
10794         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10795         [1].
10796         [9].
10797
10798         * events.c (format_event_object): fix gcc warnings.
10799
10800         * events.c (Fevent_timestamp): Document new primitives.
10801
10802         * events.c (TIMESTAMP_HALFSPACE): New.
10803
10804         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10805         comparing timestamps correctly (half-space algorithm).
10806
10807         * events.c (Fevent_modifier_bits): Doc fix.
10808
10809         * events.c (Fevent_modifiers): Major doc addition.
10810         * events.c (event_x_y_pixel_internal): Typo fix.
10811         * events.c (syms_of_events): Declare new primitives.
10812
10813         * events.h:
10814         Update long comment for button modifiers, timestamps.
10815
10816         * events.h (struct event_stream):
10817         New current_event_timestamp method.
10818
10819         * extents.c:
10820         * extents.c (extent_in_region_p):
10821         * extents.c (decode_extent):
10822         * extents.c (Fset_extent_parent):
10823         * extents.c (decode_map_extents_flags):
10824         Fix gcc warnings.
10825         [9].
10826
10827         * extents.c (struct extent_at_arg):
10828         * extents.c (decode_extent_at_flag):
10829         * extents.c (extent_at_mapper):
10830         * extents.c (extent_at_bytind):
10831         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10832         * extents.c (Fextents_at): New primitive. [9].
10833         * extents.c (symbol_to_glyph_layout): [9].
10834         Support new primitive `extents-at'.
10835
10836
10837         * extents.c (get_text_property_bytind):
10838         extent_at_bytind has another arg.
10839         [9].
10840
10841         * extents.c (syms_of_extents): New primitive.
10842
10843         * file-coding.c (Fmake_coding_system): [1].
10844         * file-coding.c (subsidiary_coding_system): fix gcc warning
10845         * file-coding.c (syms_of_file_coding): [2].
10846
10847         * fileio.c (Fexpand_file_name):
10848         * fileio.c (Fsysnetunam):
10849         * fileio.c (Ffile_exists_p):
10850         * fileio.c (Ffile_executable_p):
10851         * fileio.c (Fverify_visited_file_modtime):
10852         Clean up GCPROing.
10853
10854         * fileio.c (syms_of_fileio): [2].
10855
10856         * filelock.c (lock_file_1):
10857         * filelock.c (current_lock_owner):
10858         * filelock.c (lock_if_free):
10859         * filelock.c (lock_file):
10860         * filelock.c (unlock_file):
10861         Clean up GCPROing.
10862
10863         * fns.c (concat): Fix gcc warning.
10864
10865         * fns.c (Fmember):
10866         * fns.c (Fold_member):
10867         * fns.c (Fmemq):
10868         * fns.c (Fold_memq):
10869         * fns.c (memq_no_quit):
10870         * fns.c (Fassoc):
10871         * fns.c (Fold_assoc):
10872         * fns.c (Fassq):
10873         * fns.c (Fold_assq):
10874         * fns.c (assq_no_quit):
10875         * fns.c (Frassoc):
10876         * fns.c (Fold_rassoc):
10877         * fns.c (Frassq):
10878         * fns.c (Fold_rassq):
10879         * fns.c (rassq_no_quit):
10880         * fns.c (Fdelete):
10881         * fns.c (Fold_delete):
10882         * fns.c (Fdelq):
10883         * fns.c (Fold_delq):
10884         * fns.c (delq_no_quit):
10885         * fns.c (Fremassoc):
10886         * fns.c (Fremassq):
10887         * fns.c (remassq_no_quit):
10888         * fns.c (Fremrassoc):
10889         * fns.c (Fremrassq):
10890         * fns.c (remrassq_no_quit):
10891         * fns.c (Freverse):
10892         * fns.c (mapcar1):
10893         [1].
10894
10895         * frame-msw.c (mswindows_init_frame_1):
10896         * frame-msw.c (mswindows_delete_frame):
10897         Register popups with dialog code so keyboard traversing works.
10898
10899         * frame-tty.c (tty_raise_frame_no_select): [1].
10900
10901         * frame-x.c:
10902         * frame-x.c (x_set_frame_text_value):
10903         * frame-x.c (x_set_frame_properties):
10904         * frame-x.c (x_create_widgets):
10905         [7].
10906
10907         * frame.c:
10908         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10909
10910         * frame.h (wrap_frame): New.
10911         Macro like wrap_device.
10912
10913         * general.c:
10914         * general.c (SYMBOL):
10915         * general.c (syms_of_general):
10916         Major reorg.  This is now just a wrapper and symbols themselves
10917         are listed in general-slots.h.
10918
10919         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10920         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10921
10922         * glyphs-msw.c (mswindows_native_layout_instantiate):
10923         Add DS_CONTROL so keyboard traversal will work.
10924
10925         * glyphs-widget.c:
10926         * glyphs-widget.c (syms_of_glyphs_widget):
10927         Move some symbols to general-slots.h.
10928
10929         * glyphs-x.c:
10930         * glyphs-x.c (xbm_instantiate_1):
10931         * glyphs-x.c (x_xbm_instantiate):
10932         * glyphs-x.c (x_xface_instantiate):
10933         * glyphs-x.c (autodetect_instantiate):
10934         * glyphs-x.c (cursor_font_instantiate):
10935         * glyphs-x.c (x_update_widget):
10936         * glyphs-x.c (x_widget_instantiate):
10937         * glyphs.c (bitmap_to_lisp_data):
10938         * glyphs.c (pixmap_to_lisp_data):
10939         [7].
10940
10941         * glyphs.c (syms_of_glyphs):
10942         [2].
10943
10944         * gui-x.c:
10945         * gui-x.c (print_widget_value):
10946         * gui-x.c (menu_separator_style_and_to_external):
10947         * gui-x.c (add_accel_and_to_external):
10948         * gui-x.c (button_item_to_widget_value):
10949         * gui-x.c (gui_items_to_widget_values_1):
10950         * gui-x.c (gui_items_to_widget_values):
10951         * gui-x.c (syms_of_gui_x):
10952         * gui-x.c (vars_of_gui_x):
10953         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
10954         [9].
10955
10956         * gui-x.h:
10957         Muleize, prototype changes matching gui-x.c.
10958
10959         * gui.c:
10960         * gui.c (separator_string_p):
10961         * gui.c (gui_item_add_keyval_pair):
10962         * gui.c (make_gui_item_from_keywords_internal):
10963         * gui.c (signal_too_long_error):
10964         * gui.c (parse_gui_item_tree_item):
10965         * gui.c (syms_of_gui):
10966         * gui.c (vars_of_gui):
10967         * gui.h:
10968         menu-no-selection-hook moved here (used by MSWin).
10969         Move some symbols to general-slots.h.
10970         [6].
10971         [9].
10972
10973         * insdel.c (get_buffer_pos_char):
10974         * insdel.c (get_buffer_range_char):
10975         Add GC comments.
10976
10977         * keymap.c (keymap_lookup_directly):
10978         * keymap.c (keymap_store):
10979         * keymap.c (ensure_meta_prefix_char_keymapp):
10980         * keymap.c (describe_map):
10981         * keymap.h:
10982         Support new button modifiers.
10983
10984         * lisp-disunion.h (wrap_object):
10985         * lisp-disunion.h (XSETOBJ):
10986         Rename make_obj to wrap_object.
10987
10988         * lisp-union.h:
10989         * lisp-union.h (make_int):
10990         * lisp-union.h (make_char):
10991         Support wrap_object.
10992
10993         * lisp.h:
10994         * lisp.h (LIST_LOOP):
10995         * lisp.h (EXTERNAL_LIST_LOOP):
10996         * lisp.h (LIST_LOOP_2):
10997         * lisp.h (EXTERNAL_LIST_LOOP_1):
10998         * lisp.h (EXTERNAL_LIST_LOOP_2):
10999         * lisp.h (EXTERNAL_LIST_LOOP_3):
11000         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
11001         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11002         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
11003         * lisp.h (EXTERNAL_ALIST_LOOP_5):
11004         * lisp.h (EXTERNAL_ALIST_LOOP_6):
11005         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
11006         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
11007         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
11008         * lisp.h (struct Lisp_Symbol):
11009         * lisp.h (maybe_continuable_error_with_frob):
11010         Fix up section comments.
11011         Add new types for char to indicate usage.
11012         Delete symbols auto-generated from general-slots.h.
11013         Add prototypes for structured error functions.
11014         Add long comments describing looping macros and change interface
11015         so that lvalues are automatically declared.
11016         Add NO_DECLARE macro in case callers want to declare lvalues
11017         themselves.
11018
11019         * lread.c (read_syntax_error):
11020         * lread.c (continuable_read_syntax_error):
11021         * lread.c (read_structure):
11022         * lread.c (sequence_reader):
11023         * lread.c (read_list_conser):
11024         * lread.c (read_compiled_function):
11025         Rename syntax_error and continuable_syntax_error to avoid clash
11026         with same-named structured error functions.
11027
11028         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11029         * menubar-msw.c (populate_menu_add_item):
11030         * menubar-msw.c (populate_or_checksum_helper):
11031         [5].
11032         [9].
11033
11034         * menubar-x.c:
11035         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11036         Mule-ize whole file.
11037
11038         * menubar.c (Fnormalize_menu_item_name): Add optimization.
11039
11040         * mule-charset.c (Fmake_charset):
11041         * mule-wnnfns.c (Fwnn_set_param):
11042         [1].
11043
11044         * ntproc.c (create_child):
11045         * ntproc.c (Fwin32_set_current_locale):
11046         Add comments portending doom.
11047
11048         * objects-msw.c:
11049         * objects-msw.c (old_font_enum_callback_2):
11050         * objects-msw.c (font_enum_callback_1):
11051         * objects-msw.c (mswindows_enumerate_fonts):
11052         [5].
11053
11054         * objects-x.c:
11055         * objects-x.c (allocate_nearest_color):
11056         * objects-x.c (x_parse_nearest_color):
11057         * objects-x.c (x_initialize_color_instance):
11058         * objects-x.c (x_print_color_instance):
11059         * objects-x.c (x_finalize_color_instance):
11060         * objects-x.c (x_valid_color_name_p):
11061         * objects-x.c (x_initialize_font_instance):
11062         * objects-x.c (x_print_font_instance):
11063         * objects-x.c (valid_x_font_name_p):
11064         * objects-x.c (truename_via_FONT_prop):
11065         * objects-x.c (truename_via_random_props):
11066         * objects-x.c (truename_via_XListFonts):
11067         * objects-x.c (x_font_truename):
11068         * objects-x.c (x_font_instance_truename):
11069         * objects-x.c (x_font_instance_properties):
11070         * objects-x.c (x_list_fonts):
11071         * objects-x.c (x_find_charset_font):
11072         Mule-ize entire file.
11073         [7].
11074
11075         * objects-x.h:
11076         Mule-verify.
11077
11078         * print.c:
11079         * print.c (std_handle_out_external):
11080         * print.c (debug_print_no_newline):
11081         * print.c (syms_of_print):
11082         Output to all debugger kinds in debug-print.
11083         Fix console-output code under MSWin to actually work.
11084
11085         * process-nt.c (send_signal):
11086         * process-nt.c (nt_create_process):
11087         Use newer Unicode macros.
11088
11089         * process-unix.c (unix_create_process):
11090         * process-unix.c (unix_canonicalize_host_name):
11091         * process-unix.c (unix_open_network_stream):
11092         [7].
11093
11094         * scrollbar-x.c:
11095         Mule-verify.
11096
11097         * search.c (syms_of_search):
11098         [2].
11099
11100         * select-msw.c (mswindows_destroy_selection):
11101         Use LIST_LOOP_2.
11102
11103         * select-x.c (symbol_to_x_atom):
11104         [7].
11105
11106         * select.c (syms_of_select):
11107         [2].
11108
11109         * sound.c (Fplay_sound_file):
11110         [7].
11111
11112         * specifier.c:
11113         * specifier.c (decode_specifier_type):
11114         * specifier.c (Fvalid_specifier_locale_type_p):
11115         * specifier.c (check_valid_locale_or_locale_type):
11116         * specifier.c (decode_locale):
11117         * specifier.c (decode_locale_type):
11118         * specifier.c (decode_locale_list):
11119         * specifier.c (check_valid_domain):
11120         * specifier.c (decode_specifier_tag_set):
11121         * specifier.c (Fcanonicalize_tag_set):
11122         * specifier.c (Fdefine_specifier_tag):
11123         * specifier.c (Fspecifier_tag_predicate):
11124         * specifier.c (check_valid_inst_list):
11125         * specifier.c (check_valid_spec_list):
11126         * specifier.c (decode_how_to_add_specification):
11127         * specifier.c (check_modifiable_specifier):
11128         * specifier.c (specifier_add_spec):
11129         * specifier.c (boolean_validate):
11130         * specifier.c (display_table_validate):
11131         [9].
11132
11133         * specifier.c (syms_of_specifier):
11134         Move some symbols to general-slots.h.
11135         [2].
11136
11137         * symbols.c:
11138         * symbols.c (Fmapatoms):
11139         * symbols.c (Fapropos_internal):
11140         Add GCPROs.
11141
11142         * symbols.c (set_default_buffer_slot_variable):
11143         * symbols.c (set_default_console_slot_variable):
11144         [1].
11145
11146         * symbols.c (defsymbol_massage_name_1):
11147         * symbols.c (defkeyword_massage_name):
11148         * symbols.c (deferror_1):
11149         * symbols.c (deferror):
11150         * symbols.c (deferror_massage_name_and_message):
11151         * symeval.h:
11152         * symeval.h (DEFSYMBOL):
11153         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
11154
11155         * symbols.c (syms_of_symbols):
11156         [2].
11157
11158         * symsinit.h:
11159         * symsinit.h (init_win32): New.
11160         Also new is syms_of_dialog_mswindows.
11161
11162         * syswindows.h:
11163         Add new Unicode macros, missing Cygwin wide-char functions,
11164         convenience conversion macros for Qmswindows_tstr, macros for
11165         encapsulating required MSWin <-> Cygwin filename conversions,
11166         prototype for dynamically-extracted (not in NT 3.51) functions.
11167
11168         * toolbar-x.c:
11169         Mule-verify.
11170
11171         * tooltalk.c (Fadd_tooltalk_message_arg):
11172         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11173         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11174         [7].
11175
11176         * tooltalk.c (syms_of_tooltalk):
11177         [2].
11178
11179         * unexnt.c:
11180         * unexnt.c (unexec):
11181         Fix up headers, declaration of unexec() to be more standard.
11182
11183 2000-07-20  Martin Buchholz  <martin@xemacs.org>
11184
11185         * offix.h: Revert change to guard macros - they're used in offix.c!
11186
11187 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11188
11189         * lisp.h: Defsubred Fdelete.
11190
11191         * console-msw.h:  (msprinter_default_printer): Added.
11192
11193         * console-msw.c (msprinter_canonicalize_console_connection):
11194         (msprinter_canonicalize_device_connection): Added.
11195
11196         * device-msw.c (msprinter_default_printer):
11197         (Fmswingows_get_default_printer):
11198         (signal_enum_priner_error):
11199         (Fmswingows_printer_list): Added.
11200
11201 2000-07-19  Martin Buchholz <martin@xemacs.org>
11202
11203         * XEmacs 21.2.35 is released.
11204
11205 2000-07-19  Martin Buchholz  <martin@xemacs.org>
11206
11207         * select-x.c (x_handle_selection_request):
11208         Text selected in xemacs and pasted into xterm failed to appear.
11209         Spelling fixes and cosmetic changes.
11210
11211 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11212
11213         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
11214         XEmacs frame (fix for doubling chars in dialog boxes).
11215
11216 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11217
11218         * select.c (select_convert_in, select_convert_out):
11219         Don't call intern() every time.
11220
11221         * select.c (Qselect_convert_in, Qselect_convert_out): New.
11222         * select.c (vars_of_select): Initialise them.
11223
11224 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11225
11226         * select.c (selection-coercible-types): New.
11227
11228         * select.c (own-selection-internal):
11229         * select.c (get-selection-internal):
11230         MULE bug fix - these should default to COMPOUND_TEXT and not
11231         STRING for MULE. I think.
11232
11233         * select.c (select_convert_out): Use selection-coercible-types
11234         to find types that we can attempt to perform coercions on.
11235
11236 2000-07-18  Martin Buchholz  <martin@xemacs.org>
11237
11238         * mule-wnnfns.c:
11239         * mule-canna.c:
11240         Add coding: cookie to identify encoding.
11241
11242         * mule-canna.c (CANNA_mode_keys): make static.
11243         Use proper prototypes, even for functions of no arguments.
11244         Remove external prototype for Fding().
11245
11246         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
11247
11248         * select.c (syms_of_select): Add missing DEFSUBR.
11249
11250 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11251
11252         * select.c (get_selection_internal, own_selection_internal):
11253         Make the type default to STRING, rather than placing a nil type
11254         into Vselection_alist.
11255
11256 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11257
11258         * gpmevent.c (tty_selection_exists_p):
11259         * gpmevent.c (tty_own_selection):
11260         Updated parameter lists.
11261
11262 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
11263
11264         * select.h (selection-alist): Removed declaration.
11265
11266         * select.h (get_local_selection):
11267         * select.c (get_local_selection):
11268         Made static.
11269
11270         * select.h (convert_selection): Removed declaration.
11271         * select.c (convert_selection): Removed.
11272         This function belongs in Lisp.
11273
11274         * select.h (select_convert_in): Declare.
11275         * select.h (select_convert_out): Declare.
11276         * select.c (select_convert_in): New.
11277         * select.c (select_convert_out): New.
11278         New conversion functions for other files to call.
11279
11280         * select.h (select_notify_buffer_kill): Declare.
11281         * select.c (select_notify_buffer_kill): New.
11282         New functions that get called from kill-buffer.
11283
11284         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
11285         X-specific lisp code.
11286
11287         * select.h: Declare some of the lisp-visible functions for
11288         external use.
11289
11290         * select.c (clean_local_selection_data): Removed. This was
11291         a disgusting function, and previously should have been in
11292         select-x.c in any case. The functionality is now provided
11293         in select-convert-from-integer (select.el).
11294
11295         * select.c (available-selection-types): Fixed stupidity where
11296         INTEGER and ATOM got added twice. Also add STRING when we see an
11297         extent.
11298
11299         * select.c (get-selection-internal): Removed symbol stripping. No
11300         longer causes conversion when data comes from the internal cache.
11301
11302         * select.c (syms_of_select): Added new functions.
11303
11304         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
11305         error checking - previously this called abort!
11306
11307         * select-x.c (x_own_selection): Changed comment.
11308
11309         * select-x.c (x_handle_selection_request): Use select_convert_out.
11310         Don't mess with selection-alist; it's an internal variable of select.c.
11311
11312         * select-x.c (x_get_foreign_selection): Use select_convert_in.
11313
11314         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
11315         rather than messing with selection-alist.
11316
11317         * select-msw.c (mswindows_get_foreign_selection):
11318         Use TO_INTERNAL_FORMAT rather than hacking.
11319
11320 2000-07-14  Martin Buchholz  <martin@xemacs.org>
11321
11322         * process-unix.c (unix_open_multicast_group):
11323         (unix_open_multicast_group): Remove useless casts.
11324
11325 2000-07-13  Martin Buchholz  <martin@xemacs.org>
11326
11327         * sound.c (Fplay_sound): Fix `unused variable' warning.
11328
11329         * emacs.c (main): Use correct type for _environ on SCO5.
11330
11331 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
11332
11333         * console.h (own_selection_method):
11334         * console.h (selection_exists_p_method):
11335         * console.h (available_selection_types_method): New.
11336         * console.h (register_selection_data_type_method): New.
11337         * console.h (selection_data_type_name): New.
11338
11339         * console-msw.h (mswindows_destroy_selection): Declare it.  New
11340         function & alist to track GlobalAlloc()'d handles that need
11341         releasing when the clipboard data gets replaced or emptied.
11342
11343         * event-msw.c (mswindows_wnd_proc): Call it.
11344
11345         * lisp.h, general.c (Qappend): New symbol representing a
11346         `how-to-add' mode.
11347
11348         * select.c (own-selection-internal):
11349         * select.c (selection-exists-p):
11350         * select.c (available-selection-types): New.
11351         * select.c (register-selection-data-type): New.
11352         * select.c (selection-data-type-name): New.  New functions to deal
11353         with device-specific selection data formats.
11354         * select.c (selection-converter-out-alist): Renamed.
11355         * select.c (selection-converter-in-alist): New.
11356         * select.c (selection-appender-alist): New.  Added new alists.
11357         * select.c (syms_of_select, vars_of_select): Added new symbols &
11358         variables.
11359         * select.c (get_local_selection): Split.
11360         * select.c: Removed spurious type checking - selections may now be
11361         of any type, not just strings.
11362         * select.c (own-selection-internal):
11363
11364         * select.h, select.c (convert_selection): New. Created
11365         convert_selection() function based on get_local_selection().
11366         * select.h, select.c (QCF_*): New symbols representing mswindows
11367         clipboard formats.
11368         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11369         symbols representing `how-to-add' modes.
11370
11371         * select-msw.c (x_sym_p): New.
11372         * select-msw.c (symbol_to_ms_cf): New.
11373         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11374         symbols & clipboard formats. Can also handle string names.
11375         * select-msw.c (mswindows_own_selection):
11376         * select-msw.c (mswindows_selection_exists_p):
11377         Added `data-type' parameter. Use it.
11378         * select-msw.c (mswindows_available_selection_types): New.
11379         * select-msw.c (mswindows_register_selection_data_type): New.
11380         * select-msw.c (mswindows_selection_data_type_name): New.
11381         * select-msw.c (mswindows_own_selection):
11382         * select-msw.c (mswindows_get_foreign_selection):
11383         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11384         * select-msw.c (console_create_select_mswindows): Added new methods.
11385         * select-msw.c (mswindows_destroy_selection): New.
11386         * select-msw.c (Vhandle_alist): New list.
11387         * select-msw.c (mswindows_own_selection):
11388
11389         * select-x.c (x_own_selection):
11390         * select-x.c (x_selection_exists_p):
11391         * select-x.c: Added some comments about maybe using new
11392         functionality.
11393         * select-x.c (x_own_selection):
11394
11395         * specifier.c: Remove definition of Qappend (now in general.c)
11396         * specifier.c (syms_of_specifier): Remove Qappend.
11397
11398 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11399
11400         * config.h.in: Add socklen_t.
11401
11402         * s/decosf4-0.h: No special compiler flags needed or desired.
11403         In particular, undefine _BSD for DEC OSF 4.0.
11404
11405 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11406
11407         * redisplay-msw.c (msprinter_frame_output_end): Added.
11408         (console_type_create_redisplay_mswindows): Referred the above.
11409
11410         * frame.c (setup_frame_without_minibuffer): Do not create a
11411         default minibuffer frame on a printer device.
11412
11413         * frame-msw.c (apply_dc_geometry): Added.
11414         (msprinter_start_page):
11415         (msprinter_init_frame_3):
11416         (msprinter_eject_page): Use it.
11417
11418         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11419         and removed residual duplex and orientation properties.
11420
11421 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11422
11423         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11424
11425         * unexalpha.c: Remove system prototypes from C sources!
11426
11427 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11428
11429         * eval.c: Remove references to M-x edit-options in DEFUNs for
11430         `defvar' and `defconst'.
11431
11432 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11433
11434         * config.h.in: Remove SMART_INCLUDE hackery.
11435
11436         PostgreSQL hacking:
11437         * config.h.in: Don't use SMART_INCLUDE.
11438
11439         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11440         * inline.c: Simply #include "postgresql.h"
11441         * postgresql.c:
11442         - Don't use SMART_INCLUDE
11443         - Use simply "const".
11444         - Use standard doc string conventions.
11445         - Use correct type for result of PQstatus.
11446
11447 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11448
11449         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11450
11451         C++ compilation changes.
11452         * config.h.in (EXTERN_C): Define.
11453         * config.h.in (not): This is also a C++ keyword.
11454         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11455         * cm.c: Use EXTERN_C.
11456         * redisplay-tty.c: Use EXTERN_C.
11457         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11458
11459 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11460
11461         * general.c: Remove duplicate definition for Qfunction.
11462
11463 2000-07-08  Ben Wing  <ben@xemacs.org>
11464
11465         * device-msw.c (msprinter_init_device):
11466         * device-msw.c (sync_printer_with_devmode):
11467         * device-msw.c (handle_devmode_changes):
11468         * device-msw.c (print_dialog_worker):
11469         * device-msw.c (Fmsprinter_apply_settings):
11470         * device-msw.c (hash_devmode):
11471         * device-msw.c (Fmsprinter_settings_despecialize):
11472         use Qmswindows_tstr, not Qctext.
11473
11474         * vm-limit.c (check_memory_limits):
11475         avoid infinite loop printing warning messages.
11476
11477 2000-07-05  Craig Lanning  <lanning@scra.org>
11478
11479         * Makefile.in.in: Add support for including the Windows resources
11480         when building with the cygwin and mingw targets.
11481
11482         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11483         not set or not correct.
11484         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11485         (init_initial_directory): Don't try to use $PWD on the
11486         WIN32_NATIVE target.
11487
11488         * s\cygwin32.h:
11489         [[Add -mwindows to eliminate console window.]] not required --ben
11490         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11491         (MAIL_USE_POP): removed; now handled by configure.
11492
11493         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11494         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11495         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11496         (MAIL_USE_POP): removed; now handled by configure.
11497         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11498         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11499         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11500         constant string.
11501         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11502         up from <winsock.h> via systime.h.
11503         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11504         (getpagesize): from Dan Holmsand, added.
11505         Added #endif which was left dangling by Ben's mega patch; added
11506         comment to help prevent this in the future.
11507
11508         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11509
11510 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11511
11512         * console-msw.h (struct mswindows_device): Removed unnecessary
11513         cached device geometry values.
11514         Added update_tick and an accessor macro.
11515         (Lisp_Devmode): Added lrecord declaration.
11516         (struct msprinter_device): Contain devmode as a Lisp object.
11517         Added mswindows_get_selected_frame_hwnd();
11518
11519         * console.h (struct console_methods): Indentation nitpicking.
11520
11521         * device-msw.c (mswindows_init_device): Do not initialize geometry
11522         cache. Initialize update tick.
11523         (mswindows_device_system_metrics): Ask the device for its geometry.
11524         (global_free_2_maybe):
11525         (devmode_to_hglobal):
11526         (handle_printer_changes):
11527         (ensure_not_printing):
11528         (print_dialog_worker):
11529         (Fmsprinter_print_setup_dialog):
11530         (Fmsprinter_print_dialog):
11531         (plist_get_margin):
11532         (plist_set_margin):
11533         (Fmsprinter_page_setup_dialog): Added functions.
11534         (sync_printer_with_devmode):
11535         (handle_devmode_changes):
11536         (Fmsprinter_get_settings):
11537         (Fmsprinter_select_settings):
11538         (Fmsprinter_apply_settings):
11539         (allocate_devmode):
11540         (Fmsprinter_settings_copy):
11541         (Fmsprinter_settings_despecialize):
11542         (print_devmode):
11543         (finalize_devmode):
11544         (equal_devmode):
11545         (hash_devmode): Added functions
11546         (syms_of_device_mswindows): Init devmode lrecord class.
11547
11548         * device.h: Added an exfun for find-device.
11549
11550         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11551         geometry; although, recreate the device compatible DC.
11552
11553         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11554         (msprinter_init_frame_3):
11555         (msprinter_frame_property):
11556         (msprinter_internal_frame_property_p):
11557         (msprinter_frame_properties):
11558         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11559         print job properties (will move to device settings).
11560
11561         * lisp.h: Added symbols.
11562
11563         * general.c (syms_of_general): Declared them.
11564
11565         * hash.c (string_hash): Added.
11566
11567         * lrecord.h (lrecord_type): Added devmode lrecord type.
11568
11569 2000-07-02  Mike Sperber <mike@xemacs.org>
11570
11571         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11572         FreeBSD 4.0.
11573
11574 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11575
11576         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11577         integer.
11578
11579 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11580
11581         * data.c (Fstring_to_number): Don't recognize floating point if
11582         base is not 10.
11583
11584 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11585
11586         * glyphs-widget.c (tab_control_query_geometry):
11587         (widget_query_geometry):
11588         (button_query_geometry):
11589         * glyphs.c (text_query_geometry):
11590         Enforce type correctness.
11591
11592 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11593
11594         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11595         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11596
11597 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11598
11599         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11600         conflicts with gcc's fixincluded version of FOO.h.
11601
11602         * glyphs.h (image_instance_geometry): Remove trailing `,'
11603
11604 2000-06-08  Mike Alexander  <mta@arbortext.com>
11605
11606         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11607         (shove_thread): Don't write the same output twice
11608         (make_ntpipe_output_stream): Increase priority of shove thread
11609         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11610         chance to run
11611         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11612         it.
11613
11614 2000-06-12  Ben Wing  <ben@xemacs.org>
11615
11616         * s\mingw32.h (sigset):
11617         * s\windowsnt.h (sigset):
11618         rename msw_ to mswindows_ for consistency with general convention.
11619
11620 2000-06-12  Ben Wing  <ben@xemacs.org>
11621
11622         * console-msw.c:
11623         * console-msw.c (mswindows_get_console_hwnd):
11624         * console-msw.c (mswindows_ensure_console_allocated):
11625         * console-msw.c (mswindows_hide_console):
11626         * console-msw.c (mswindows_show_console):
11627         * console-msw.c (mswindows_ensure_console_buffered):
11628         * console-msw.c (mswindows_output_console_string):
11629         * console-msw.c (mswindows_windows9x_p):
11630         * console-msw.h:
11631         * device-msw.c (mswindows_get_workspace_coords):
11632         * device-msw.c (mswindows_device_system_metrics):
11633         * dialog-msw.c (mswindows_popup_dialog_box):
11634         * event-msw.c (mswindows_wnd_proc):
11635         * frame-msw.c (mswindows_size_frame_internal):
11636         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11637         * menubar-msw.c (displayable_menu_item):
11638         * menubar-msw.c (mswindows_char_is_accelerator):
11639         * nt.c:
11640         * nt.c (mswindows_sigset):
11641         * nt.c (mswindows_sigrelse):
11642         * nt.c (mswindows_sigpause):
11643         * nt.c (mswindows_raise):
11644         * nt.c (timer_proc):
11645         * ntproc.c:
11646         * ntproc.c (find_child_console):
11647         * ntproc.c (sys_kill):
11648         * print.c:
11649         * print.c (std_handle_out_external):
11650         * process-nt.c (find_child_console):
11651         * process-nt.c (send_signal_the_95_way):
11652         * process-nt.c (ensure_console_window_exists):
11653         * process-nt.c (nt_create_process):
11654         * syssignal.h:
11655         rename msw_ to mswindows_ for consistency with general convention.
11656
11657         * emacs.c:
11658         * dumper.c:
11659         include nt.h, not syswindows.h.
11660
11661         * nt.c (mswindows_fstat):
11662         * nt.c (mswindows_stat):
11663         prefix mswindows_ instead of attempting to directly override the
11664         library functions.  fix declarations.
11665
11666         * nt.h:
11667         include syswindows.h.  move some sysdep.h stuff here.
11668
11669         * ntheap.h:
11670         include syswindows.h, not <windows.h>.
11671
11672         * ntplay.c:
11673         clean up headers.
11674
11675         * sysdep.c:
11676         clean up headers.
11677
11678         * sysdep.c (sys_fstat):
11679         * sysdep.c (sys_stat):
11680         call mswindows versions when appropriate.
11681
11682         * sysdep.h:
11683         move mswin decls to nt.h.
11684
11685         * syswindows.h:
11686         add long comment describing appropriate use of the various windows
11687         headers.
11688
11689 2000-06-11  Ben Wing  <ben@xemacs.org>
11690
11691         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11692
11693 2000-06-10  Ben Wing  <ben@xemacs.org>
11694
11695         * Makefile.in.in (release):
11696         Correction to make sure xemacs.exe always dumped when correct.
11697
11698         * alloca.c:
11699         * balloon_help.c:
11700         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11701
11702         * buffer.c (set_buffer_internal):
11703         [[[[2]]]]: Remove HAVE_FEP code.
11704
11705         * buffer.c (init_initial_directory):
11706         [3].
11707
11708         * bytecode.c:
11709         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11710         individual files.
11711
11712         * callproc.c:
11713         * callproc.c (call_process_cleanup):
11714         * callproc.c (Fold_call_process_internal):
11715         * callproc.c (child_setup):
11716         * callproc.c (getenv_internal):
11717         * callproc.c (init_callproc):
11718         * callproc.c (vars_of_callproc):
11719         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11720         __CYGWIN32__ -> CYGWIN.
11721         DOS_NT -> WIN32_NATIVE.
11722         Remove MSDOS support/references, converting to WIN32_NATIVE
11723           where correct.
11724         __MINGW32__ -> MINGW.
11725         Fix windows.h includes.
11726         Remove bogus HAVE_NTGUI.
11727
11728         * config.h.in:
11729         [2].
11730
11731         * console-msw.c:
11732         mswindows_message_outputted added for use in allowing startup
11733         errors on the console to be seen.
11734
11735         * console-msw.c (msw_ensure_console_allocated):
11736         * console-msw.c (msw_output_console_string):
11737         * console-msw.c (DHEADER):
11738         * console-msw.c (DOPAQUE_DATA):
11739         * console-msw.c (DEVENT):
11740         * console-msw.c (DCONS):
11741         * console-msw.c (DCONSCDR):
11742         * console-msw.c (DSTRING):
11743         * console-msw.c (DVECTOR):
11744         * console-msw.c (DSYMBOL):
11745         * console-msw.c (DSYMNAME):
11746         Fix warnings.
11747
11748         * console-stream.c (stream_init_console):
11749         Fix text/binary problems.
11750
11751         * device-msw.c:
11752         * device-msw.c (mswindows_finish_init_device):
11753         * device-msw.c (mswindows_delete_device):
11754         [1].
11755
11756         * device.c (handle_asynch_device_change):
11757         [3].
11758
11759         * dgif_lib.c:
11760         * dgif_lib.c (DGifOpenFileName):
11761         * dgif_lib.c (DGifOpenFileHandle):
11762         * dgif_lib.c (DGifGetLine):
11763         * dgif_lib.c (DGifGetPixel):
11764         Added config.h/lisp.h, fix up includes.
11765         [1].
11766
11767         * dired-msw.c:
11768         [4].
11769
11770         * dired.c:
11771         * dired.c (file_name_completion):
11772         * dired.c (Ffile_attributes):
11773         * dired.c (syms_of_dired):
11774         [1].
11775
11776         * dumper.c:
11777         * dumper.c (pdump_file_unmap):
11778         * dumper.c (pdump_load):
11779         [1].
11780
11781         * editfns.c:
11782         * editfns.c (Ftemp_directory):
11783         * editfns.c (user_login_name):
11784         * editfns.c (Fuser_real_login_name):
11785         * editfns.c (get_home_directory):
11786         [1].
11787
11788         * elhash.c (finish_marking_weak_hash_tables):
11789         [[[[5]]]]: Fix GCC warnings.
11790
11791         * emacs.c:
11792         * emacs.c (mswindows_handle_hardware_exceptions):
11793         * emacs.c (make_arg_list_1):
11794         * emacs.c (main_1):
11795         * emacs.c (Fkill_emacs):
11796         * emacs.c (Fdump_emacs):
11797         [1].
11798         Fix problems with nested crashes, add long comment.
11799
11800         * event-Xt.c (init_event_Xt_late):
11801         [1].
11802
11803         * event-msw.c:
11804         * event-msw.c (mswindows_dde_callback):
11805         * event-msw.c (mswindows_handle_sticky_modifiers):
11806         * event-msw.c (mswindows_wnd_proc):
11807         [1].
11808         [5].
11809
11810         * events.c (character_to_event):
11811         [1].
11812
11813         * fileio.c:
11814         * fileio.c (Ffile_name_directory):
11815         * fileio.c (Ffile_name_nondirectory):
11816         * fileio.c (directory_file_name):
11817         * fileio.c (Fexpand_file_name):
11818         * fileio.c (Fsubstitute_in_file_name):
11819         * fileio.c (Ffile_name_absolute_p):
11820         * fileio.c (check_executable):
11821         * fileio.c (Ffile_readable_p):
11822         * fileio.c (Ffile_accessible_directory_p):
11823         * fileio.c (Ffile_modes):
11824         * fileio.c (Funix_sync):
11825         * fileio.c (vars_of_fileio):
11826         [1]. [4].
11827
11828         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11829
11830         Expand getdefdir defn.
11831         Fix bogus rename() comment.
11832
11833         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11834         to use standard XEmacs include files, e.g. sysfile.h, rather
11835         than system-specific includes.
11836
11837         * fns.c:
11838         * fns.c (Fsubseq):
11839         [5]. [6].
11840
11841         * frame.c (vars_of_frame):
11842         [1].
11843
11844         * getloadavg.c:
11845         * getloadavg.c (getloadavg):
11846         [1]. [6].
11847         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11848         (We don't use it elsewhere in the code; just add a comment.)
11849
11850         * gif_io.c:
11851         [6].
11852         Add config.h.
11853
11854         * glyphs-msw.c:
11855         * glyphs-msw.c (mswindows_resource_instantiate):
11856         [1].
11857
11858         * glyphs-x.c (x_native_layout_instantiate):
11859         [5].
11860
11861         * gui-msw.c (Fmswindows_shell_execute):
11862         [1].
11863
11864         * insdel.c:
11865         [4].
11866
11867         * lisp.h:
11868         [4]. [5].
11869
11870         * lread.c (locate_file_in_directory_mapper):
11871         [1].
11872
11873         * lstream.c:
11874         [4].
11875
11876         * mem-limits.h:
11877         * mem-limits.h (get_lim_data):
11878         [1].
11879
11880         * menubar-msw.c:
11881         [4].
11882
11883         * ndir.h:
11884         [1].
11885
11886         * nt.c:
11887         * nt.c (getwd):
11888         * nt.c (closedir):
11889         * nt.c (rva_to_section):
11890         * nt.c (mswindows_executable_type):
11891         [1]. [6].
11892         Fix closedir() defn.
11893
11894         * nt.h:
11895         [[[[8]]]]: *_OK defs moved to sysfile.h.
11896
11897         * ntproc.c:
11898         [6]. [7].
11899
11900         * objects-x.c:
11901         [4].
11902
11903         * print.c:
11904         * print.c (std_handle_out_external):
11905         [1]. [4].
11906
11907         * process-nt.c:
11908         * process-nt.c (nt_create_process):
11909         [6].
11910         try to fix process quoting somewhat.
11911
11912         * process-unix.c (unix_create_process):
11913         [1].
11914
11915         * process.c:
11916         * process.c (vars_of_process):
11917         Add Vnull_device.
11918
11919         * process.h:
11920         [1].
11921
11922         * realpath.c:
11923         * realpath.c (xrealpath):
11924         [1].
11925
11926         * redisplay-tty.c (init_tty_for_redisplay):
11927         [3].
11928
11929         * redisplay.c:
11930         [4]. [6].
11931
11932         * scrollbar-msw.c:
11933         [4].
11934
11935         * sheap.c:
11936         * sheap.c (more_static_core):
11937         * sheap.c (report_sheap_usage):
11938         [5]. [6].
11939
11940         * signal.c:
11941         * signal.c (alarm_signal):
11942         [1]. [6].
11943
11944         * sound.c:
11945         [6].
11946
11947         * strftime.c:
11948         * strftime.c (zone_name):
11949         [1]. [5].
11950
11951         * symsinit.h (init_sunpro):
11952         [1].
11953
11954         * syscommctrl.h:
11955         commctrl.h not in Cygwin b20.1.
11956
11957         * sysdep.c:
11958         * sysdep.c (endif):
11959         * sysdep.c (sys_subshell):
11960         * sysdep.c (init_baud_rate):
11961         * sysdep.c (emacs_get_tty):
11962         * sysdep.c (emacs_set_tty):
11963         * sysdep.c (tty_init_sys_modes_on_device):
11964         * sysdep.c (init_system_name):
11965         * sysdep.c (sys_open):
11966         * sysdep.c (interruptible_open):
11967         * sysdep.c (sys_fopen):
11968         * sysdep.c (sys_mkdir):
11969         * sysdep.c (sys_rename):
11970         * sysdep.c (get_process_times_1):
11971         [1]. [6].
11972
11973         * sysdep.h:
11974         [1].
11975
11976         * sysdir.h:
11977         * sysdir.h (DIRENTRY_NONEMPTY):
11978         [1]. [6].
11979
11980         * sysdll.c (dll_init):
11981         * sysdll.h:
11982         [1].
11983
11984         * sysfile.h:
11985         [1]. [6]. [8].
11986         added text/binary defs.
11987
11988         * sysfloat.h:
11989         [1].
11990
11991         * sysproc.h:
11992         * sysproc.h (EDESTADDRREQ):
11993         * sysproc.h (poll_fds_for_input):
11994         [1]. [6].
11995
11996         * syspwd.h:
11997         [6].
11998
11999         * syssignal.h:
12000         [1].
12001
12002         * systime.h:
12003         [1]. [6].
12004
12005         * systty.h:
12006         [1].
12007
12008         * syswindows.h:
12009         [1].
12010         Always define WIN32_LEAN_AND_MEAN.
12011
12012         * unexcw.c (unexec):
12013         [5].
12014
12015         * unexec.c:
12016         * unexec.c (copy_text_and_data):
12017         * unexec.c (adjust_lnnoptrs):
12018         [1].
12019
12020         * unexnt.c:
12021         * unexnt.c (_start):
12022         [1].
12023
12024 2000-06-07  Ben Wing  <ben@xemacs.org>
12025
12026         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
12027         was used only as a model.  We've long since extracted any useful
12028         logic or code out of this. (I just did an exhaustive search.)
12029
12030         * s\msdos.h: Removed.
12031
12032         * s\windows95.h: Removed.
12033
12034 2000-06-10  Ben Wing  <ben@xemacs.org>
12035
12036         * s\cygwin32.h:
12037         [1]. [5].
12038         Don't use extern with fun defs.
12039
12040         * s\mingw32.h:
12041         [1]. [7].
12042         Remove nt\inc include.
12043         Remove getdisk, getdefdir. (The former is unused, the latter
12044         expanded in fileio.h.)
12045
12046         * s\windowsnt.h:
12047         * s\windowsnt.h (WIN32_NATIVE):
12048         * s\windowsnt.h (HAVE_STRCASECMP):
12049         [1]. [7].
12050         Add long comment about preprocessor changes.
12051         Remove getdisk, getdefdir. (The former is unused, the latter
12052         expanded in fileio.h.)
12053
12054 2000-06-10  Ben Wing  <ben@xemacs.org>
12055
12056         * m\arm.h:
12057         * m\delta.h:
12058         * m\intel386.h:
12059         * m\sequent.h:
12060         * m\template.h:
12061         * m\windowsnt.h:
12062         [1].
12063         Remove bogus/unused NO_SOCK_SIGIO.
12064
12065 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
12066
12067         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
12068         not an Emchar.
12069
12070 2000-06-04  Mike Sperber <mike@xemacs.org>
12071
12072         * casetab.c (set_case_table): For `set-standard-case-table',
12073         actually deposit the new case tables where the rest of XEmacs can
12074         see them.
12075
12076 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
12077
12078         * data.c (Faset): Don't cast XCHAR() to unsigned char.
12079
12080 2000-06-05  Ben Wing  <ben@xemacs.org>
12081
12082         * callproc.c (child_setup): Don't do close_load_descs() under
12083         MS Windows.  Put in a comment explaining why.
12084
12085 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
12086
12087         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
12088         Toolkit shell" which breaks `kill-compilation' on Windows NT
12089         native, retaining STDERR handling improvements.
12090
12091 2000-06-01  Andreas Jaeger  <aj@suse.de>
12092
12093         * s/s390.h: Support for S390, based on a patch by Martin
12094         Schwidefsky <schwidefsky@de.ibm.com>.
12095
12096 2000-05-30  Andy Piper  <andy@xemacs.org>
12097
12098         * window.c (allocate_window):
12099         (make_dummy_parent):
12100         (Fset_window_configuration): use new hashtable type.
12101
12102         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
12103         (struct image_instantiator_methods):
12104         (struct Lisp_Image_Instance): make instance geometry signed.
12105
12106         * glyphs.c (instantiate_image_instantiator):
12107         (image_instance_query_geometry):
12108         (image_instance_layout):
12109         (image_instance_layout):
12110         (query_string_geometry):
12111         (text_query_geometry):
12112         (image_instantiate):
12113         (image_instantiate):
12114         (cache_subwindow_instance_in_frame_maybe):
12115         (subwindow_query_geometry): make instance geometry signed.
12116
12117         * glyphs-widget.c (widget_query_geometry):
12118         (widget_layout):
12119         (button_query_geometry):
12120         (tree_view_query_geometry):
12121         (tab_control_query_geometry):
12122         (layout_query_geometry):
12123         (layout_layout):
12124         (native_layout_layout): make instance geometry signed.
12125
12126 2000-05-29  Olivier Galibert  <galibert@pobox.com>
12127
12128         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
12129         constant.
12130
12131         * general.c (syms_of_general): Add Qfull_assoc symbol.
12132
12133         * data.c (finish_marking_weak_lists): Mark full-assoc lists
12134         correctly.
12135         (decode_weak_list_type): Decode full-assoc type.
12136         (encode_weak_list_type): Encode full-assoc type.
12137         (Fmake_weak_list): Update doc string.
12138
12139 2000-05-30  Andy Piper  <andy@xemacs.org>
12140
12141         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
12142
12143         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
12144         (decode_hash_table_weakness): ditto.
12145         (Fhash_table_weakness): ditto.
12146         (Fhash_table_type): ditto.
12147         (finish_marking_weak_hash_tables): ditto.
12148         (hash_table_weakness_validate): ditto.
12149         (syms_of_elhash): ditto.
12150
12151 2000-05-28  Martin Buchholz <martin@xemacs.org>
12152
12153         * XEmacs 21.2.34 is released.
12154
12155 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12156
12157         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
12158         start cache.
12159         (updating_line_start_cache): Gone.
12160         (regenerate_window): Replace resetting of VERTICAL_CLIP by
12161         generic code to force a minimum of 1 line laid out in the
12162         CMOTION_DISP case.
12163
12164 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12165
12166         * glyphs.c (instantiate_image_instantiator): Check for initialized
12167         height & width no longer special cases IMAGE_NOTHING.
12168         (nothing_instantiate): Set height and width of instance.
12169
12170 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12171
12172         * unexelf.c (unexec): Search for ".data" section.
12173         Initialize new_data2_offset from old_data_index.
12174         Remove redundant check for ElfW.
12175
12176 2000-05-23  Andy Piper  <andy@xemacs.org>
12177
12178         * glyphs.c (get_image_instantiator_governing_domain): allow more
12179         specific domains as the governing domain rather than expecting an
12180         exact match. This fixes problems with layouts.
12181
12182 2000-05-22  Andy Piper  <andy@xemacs.org>
12183
12184         * redisplay-output.c (compare_runes): check for non-images
12185
12186         * glyphs.c (set_glyph_dirty_p): ditto.
12187         (update_glyph_cachel_data): ditto.
12188
12189         * glyphs-widget.c (layout_post_instantiate): ditto.
12190         (layout_post_instantiate): ditto.
12191
12192         * event-msw.c (mswindows_wnd_proc): warning removal.
12193
12194 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
12195
12196         * s\mingw32.h: Added #undef for CLASH_DETECTION.
12197
12198         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
12199
12200         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
12201
12202         * nt.c (rva_to_section): mingw32 needs rva_to_section.
12203         (mswindows_executable_type): mingw32 now has enough headers for
12204         this to work.
12205
12206 2000-05-20  Andy Piper  <andy@xemacs.org>
12207
12208         * console-msw.c (mswindows_output_last_error): ; -> ,
12209
12210 2000-05-12  Andy Piper  <andy@xemacs.org>
12211
12212         * console-msw.c (FROB): compare ints with ints.
12213
12214 2000-05-11  Andy Piper  <andy@xemacs.org>
12215
12216         * glyphs-x.c (x_finalize_image_instance): make minimal build
12217         happy.
12218
12219 2000-05-20  Ben Wing  <ben@xemacs.org>
12220
12221         * event-Xt.c:
12222         * event-Xt.c (vars_of_event_Xt):
12223         move modifier-keys-are-sticky to event-stream.c.
12224
12225         * event-msw.c:
12226         * event-msw.c (mswindows_enqueue_mouse_button_event):
12227         * event-msw.c (key_needs_default_processing_p):
12228         * event-msw.c (XEMSW_LCONTROL):
12229         * event-msw.c (mswindows_handle_sticky_modifiers):
12230         * event-msw.c (FROB):
12231         * event-msw.c (clear_sticky_modifiers):
12232         * event-msw.c (output_modifier_keyboard_state):
12233         * event-msw.c (output_alt_keyboard_state):
12234         * event-msw.c (mswindows_wnd_proc):
12235         * event-msw.c (mswindows_modifier_state):
12236         * event-msw.c (emacs_mswindows_handle_magic_event):
12237         implement sticky modifiers.
12238
12239         * event-stream.c:
12240         * event-stream.c (vars_of_event_stream):
12241         move modifier-keys-are-sticky here.
12242
12243         * lisp.h:
12244         add CHECK_FUNCTION.
12245
12246         * rangetab.c:
12247         implement map-range-table.
12248
12249
12250 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
12251
12252         * redisplay-tty.c (reset_tty_modes):
12253         (tty_redisplay_shutdown): Adjust argument type to
12254         tty_frame_output_end.
12255
12256 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12257
12258         * eval.c (Fbacktrace): Don't output a line with only right
12259         parenthesis.
12260
12261 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
12262
12263         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
12264         (Fpq_reset_poll): Ditto.
12265
12266 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
12267
12268         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
12269
12270 2000-05-16  Ben Wing  <ben@xemacs.org>
12271
12272         * buffer.c:
12273         * buffer.c (dfc_convert_to/from_internal_format):
12274         * buffer.c (reinit_vars_of_buffer):
12275         Fix conversion functions to allow reentrancy.
12276
12277         * console-msw.c:
12278         * console-msw.c (mswindows_output_last_error):
12279         New fun, generally useful -- output a human-readable
12280         version of GetLastError() on the console.
12281
12282         * console-msw.h:
12283         * console-msw.h (struct mswindows_frame):
12284         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
12285
12286         * console-stream.c (stream_output_begin):
12287         * console-stream.c (stream_output_end):
12288         * console-stream.c (stream_output_vertical_divider):
12289         * console-stream.c (stream_clear_region):
12290         * console-stream.c (stream_flash):
12291         * console-stream.c (console_type_create_stream):
12292         Delete blank stream methods, not needed.
12293
12294         * console.h (struct console_methods):
12295         Split begin/end methods into window and frame.
12296
12297         * event-msw.c:
12298         * event-msw.c (mswindows_handle_paint):
12299         * event-msw.c (output_alt_keyboard_state):
12300         * event-msw.c (mswindows_wnd_proc):
12301         * event-msw.c (vars_of_event_mswindows):
12302         Comment about problems with ignored-expose.
12303         Define mswindows-debug-events; not really implemented.
12304
12305         * frame-msw.c (mswindows_init_frame_1):
12306         random cleanups.
12307
12308         * glyphs-msw.c:
12309         * glyphs-msw.c (begin_defer_window_pos):
12310         * glyphs-msw.c (mswindows_unmap_subwindow):
12311         * glyphs-msw.c (mswindows_map_subwindow):
12312         * glyphs-msw.c (mswindows_resize_subwindow):
12313         Use DeferWindowPos to reduce flashing when mapping/unmapping.
12314
12315         * glyphs.c (make_image_instance_1):
12316         Fix crash.
12317
12318         * gutter.c (Fredisplay_gutter_area):
12319         Use new begin/end methods.
12320
12321         * lisp.h (Dynarr_new2):
12322         New creation fun.
12323
12324         * redisplay-msw.c:
12325         * redisplay-msw.c (mswindows_frame_output_begin):
12326         * redisplay-msw.c (mswindows_frame_output_end):
12327         * redisplay-msw.c (console_type_create_redisplay_mswindows):
12328         New begin/end methods -- handle DeferWindowPos.
12329
12330         * redisplay-output.c (redisplay_move_cursor):
12331         * redisplay-output.c (redraw_cursor_in_window):
12332         * redisplay-output.c (redisplay_update_line):
12333         * redisplay-output.c (redisplay_output_window):
12334         New begin/end methods.
12335
12336         * redisplay-tty.c:
12337         * redisplay-tty.c (tty_frame_output_begin):
12338         * redisplay-tty.c (tty_frame_output_end):
12339         * redisplay-tty.c (console_type_create_redisplay_tty):
12340         New begin/end methods.
12341
12342         * redisplay-x.c:
12343         * redisplay-x.c (x_window_output_begin):
12344         * redisplay-x.c (x_window_output_end):
12345         * redisplay-x.c (console_type_create_redisplay_x):
12346         New begin/end methods.
12347
12348         * redisplay.c (redisplay_frame):
12349         * redisplay.c (Fredisplay_echo_area):
12350         New begin/end methods.
12351         use MAYBE_DEVMETH for clear_frame; it may not exist.
12352
12353         * window.h (WINDOW_XFRAME):
12354         WINDOW_XFOO macros -- get locale and decode struct pointer.
12355
12356
12357 2000-05-12  Ben Wing  <ben@xemacs.org>
12358
12359         * emacs.c:
12360         * emacs.c (ensure_no_quitting_from_now_on):
12361         * emacs.c (fatal_error_signal):
12362         * emacs.c (mswindows_handle_hardware_exceptions):
12363         * emacs.c (main):
12364         * emacs.c (Fkill_emacs):
12365         * emacs.c (shut_down_emacs):
12366         * emacs.c (assert_failed):
12367         various improvements in fatal error handling.
12368
12369         * eval.c:
12370         move preparing_for_armageddon to emacs.c.
12371
12372         * lisp.h:
12373         declare fatal_error_in_progress.
12374
12375         * print.c:
12376         * print.c (std_handle_out_external):
12377         * print.c (std_handle_out_va):
12378         * print.c (stderr_out):
12379         * print.c (stdout_out):
12380         use console under mswin when no standard output.
12381         don't do code conversion during fatal error.
12382
12383         * scrollbar.c (Fscrollbar_page_up):
12384         * scrollbar.c (Fscrollbar_page_down):
12385         fix missing else.  reindent.
12386
12387 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12388
12389         Emergency fix.
12390
12391         * glyphs.h (GLYPH_CACHEL_DESCENT):
12392         (GLYPH_CACHEL_DESCENT):
12393         (GLYPH_CACHEL_DESCENT):
12394         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12395         used in case these are inline functions.
12396         Use more absurd values to error check.
12397
12398         include window.h for error check functions.
12399
12400 2000-05-11  Ben Wing  <ben@xemacs.org>
12401
12402         * cmdloop.c (Freally_early_error_handler):
12403         Display message box under windows; otherwise, message will disappear
12404         before it can be viewed.
12405
12406         * console-msw.c:
12407         * console-msw.c (Fmswindows_message_box):
12408         * console-msw.c (FROB):
12409         * console-msw.c (syms_of_console_mswindows):
12410         Define new fun `mswindows-message-box'.
12411         #### I will merge this into `popup-dialog-box'; just give me
12412         a bit of time.
12413
12414         * general.c:
12415         * general.c (syms_of_general):
12416         Some new symbols used in `mswindows-message-box'.
12417
12418         * glyphs.c:
12419         * glyphs.c (Fset_image_instance_property):
12420         put warning in this fun.
12421
12422         * glyphs.h:
12423         * glyphs.h (GLYPH_CACHEL_WIDTH):
12424         * glyphs.h (GLYPH_CACHEL_ASCENT):
12425         * glyphs.h (GLYPH_CACHEL):
12426         * glyphs.h (GLYPH_CACHEL_GLYPH):
12427         define error-checking versions to try to catch a bug i've seen --
12428         redisplay gets in an infinite loop because the glyph width of the
12429         continuation glyph is 65535.
12430
12431         * lisp.h:
12432         Extern message-box stuff.
12433
12434         * window.c (allocate_window):
12435         * window.c (make_dummy_parent):
12436         * window.c (Fset_window_configuration):
12437         Use EQUAL not EQ for subwindow caches to make them work a bit
12438         better. (Something is still very broken.)
12439
12440
12441 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12442
12443         * glyphs.c (image_instantiate): Suppress gcc warnings.
12444         (Fmake_image_instance): Fix doc string.
12445         * specifier.c (Fmake_specifier): Ditto.
12446
12447 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12448
12449         * paths.h.in (PATH_LOCK): Removed.
12450         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12451         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12452
12453 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12454
12455         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12456         Document (featurep '(and xemacs 21.02)).
12457
12458 2000-05-09  Ben Wing  <ben@xemacs.org>
12459
12460         * buffer.c (complex_vars_of_buffer):
12461         update modeline-format doc.
12462
12463         * device.h:
12464         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12465
12466         * emacs.c:
12467         timeline of all released versions of Emacs, for use in creating
12468         authorship comments and in synching up.
12469
12470         * glyphs-widget.c (image_instantiator_buttons):
12471         * glyphs-widget.c (image_instantiator_edit_fields):
12472         * glyphs-widget.c (image_instantiator_combo_box):
12473         * glyphs-widget.c (image_instantiator_scrollbar):
12474         * glyphs-widget.c (image_instantiator_progress_guage):
12475         * glyphs-widget.c (image_instantiator_tree_view):
12476         * glyphs-widget.c (image_instantiator_tab_control):
12477         * glyphs-widget.c (image_instantiator_labels):
12478         * glyphs-widget.c (image_instantiator_layout):
12479         * glyphs-widget.c (image_instantiator_native_layout):
12480         rename decode_domain method to governing_domain.
12481
12482         * glyphs.c:
12483         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12484         * glyphs.c (add_entry_to_device_ii_format_list):
12485         make sure we don't put an entry more than once into the list.
12486         * glyphs.c (check_instance_cache_mapper):
12487         *************************************************************
12488         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12489         HAVE BEEN GETTING.
12490         *************************************************************
12491         * glyphs.c (get_image_instantiator_governing_domain):
12492         clean up, expand on new concept of governing domain.
12493         * glyphs.c (instantiate_image_instantiator):
12494         * glyphs.c (allocate_image_instance):
12495         use governing_domain instead of cache_domain in naming.
12496         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12497         * glyphs.c (make_image_instance_1):
12498         * glyphs.c (Fmake_image_instance):
12499         allow for any domain (not just device), and process the
12500         governing domain correctly.  very big doc fix.
12501         * glyphs.c (Fimage_instance_domain):
12502         new primitive, to retrieve the governing domain of an image instance.
12503         * glyphs.c (image_instantiate):
12504         use new governing_domain stuff.  this fixes a crash you could get
12505         by instantiating certain widget glyphs in frame locales. (should
12506         signal an error instead of crashing.)
12507         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12508         * glyphs.c (Fglyphp): clean up doc.
12509         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12510         * glyphs.c (syms_of_glyphs):
12511         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12512         * glyphs.c (image_instantiator_format_create): add some comments about
12513         bogus code.
12514         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12515         for current-display-table. (Apparently Hrjove implemented in 1998 a
12516         design I wrote up in 1996, but didn't update the doc string.)
12517
12518         * glyphs.h: clean up a doc string.
12519         * glyphs.h (governing_domain):
12520         * glyphs.h (struct image_instantiator_methods):
12521         changes for governing_domain stuff.
12522
12523         * gutter.c:
12524         * gutter.c (Fgutter_specifier_p):
12525         * gutter.c (Fgutter_size_specifier_p):
12526         * gutter.c (Fgutter_visible_specifier_p):
12527         * objects.c:
12528         * objects.c (Fcolor_specifier_p):
12529         * objects.c (Ffont_specifier_p):
12530         * objects.c (Fface_boolean_specifier_p):
12531         doc strings moved to make-*-specifier.
12532
12533         * redisplay.c (add_disp_table_entry_runes_1):
12534         * redisplay.c (generate_fstring_runes):
12535         * redisplay.c (screen):
12536         add random comments and doc strings.
12537
12538         * specifier.c:
12539         * specifier.c (Fmake_specifier):
12540         major overhaul of this doc string.
12541
12542         * specifier.c (Fvalid_specifier_domain_p):
12543         comment about the bogosity of image instances being domains.
12544         * specifier.c (decode_domain):
12545         now non-static, used in glyphs.c.
12546         * specifier.c (specifier_instance):
12547         comment about the bogosity of image instances being domains.
12548         * specifier.c (Fgeneric_specifier_p):
12549         move doc string to make-generic-specifier.
12550         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12551         rebackslashify.
12552
12553         * specifier.h:
12554         * specifier.h (DOMAIN_FRAME):
12555         * specifier.h (DOMAIN_LIVE_P):
12556         * specifier.h (DOMAIN_XDEVICE):
12557         rebackslashify.
12558         add comments about problems with these macros.
12559         prototype for decode_domain.
12560
12561         * toolbar.c:
12562         * toolbar.c (Ftoolbar_specifier_p):
12563         move doc string to `make-toolbar-specifier'.
12564
12565         * window.c (window_unmap_subwindows_cache_mapper):
12566         *************************************************************
12567         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12568         HAVE BEEN GETTING.
12569         *************************************************************
12570
12571 2000-05-09  Andy Piper  <andy@xemacs.org>
12572
12573         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12574
12575         * window.c (Fset_window_configuration): reset the frame subwindow
12576         cache and re-initialize the window subwindow caches.
12577
12578         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12579
12580 2000-05-09  Ben Wing  <ben@xemacs.org>
12581
12582         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12583         DWORD.
12584
12585 2000-04-26  Mike Woolley  <mike@bulsara.com>
12586
12587         * ntheap.c: Changed recreate_heap to limit the amount reserved
12588         for the heap to that which is actually available. Also now
12589         displays a message box (with some dignostics) in the event that
12590         it still can't start.
12591
12592 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12593
12594         * callproc.c (Fold_call_process_internal): GCPRO path
12595
12596 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12597
12598         Patch by Bill Perry.
12599
12600         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12601         back data instead of #ifdef.
12602         (Fscrollbar_page_down): ditto.
12603
12604 2000-05-07  Ben Wing  <ben@xemacs.org>
12605
12606         * buffer.h:
12607         Kludge for defining Qmswindows_tstr.
12608
12609         * nt.c:
12610         * nt.c (open_input_file):
12611         * nt.c (open_output_file):
12612         * nt.c (rva_to_section):
12613         * nt.c (mswindows_executable_type):
12614         Move all memory-mapped-file routines here (some were in unexnt.c,
12615         which is bad because they are used by process-nt.c, and unexnt
12616         won't be around when portable dumping).  Synched the above routines
12617         with FSF 20.6.
12618
12619         * nt.h:
12620         Removed ifdef'd out bogus code.
12621         Fixed some prototypes.
12622
12623         * nt.h (file_data):
12624         * nt.h (OFFSET_TO_RVA):
12625         * nt.h (RVA_TO_OFFSET):
12626         * nt.h (RVA_TO_PTR):
12627         Moved the memory-mapped-file structures, macros and prototypes
12628         here, to parallel nt.c.  ntheap.h should really be removed
12629         entirely, and it's a non-portable-dumper specific file.
12630
12631         * ntheap.h (round_to_next):
12632         Moved the memory-mapped-file structures, macros and prototypes
12633         to nt.h.
12634
12635         * ntproc.c (compare_env):
12636         Moved rva_to_section and mswindows_executable_type to nt.c.
12637         Moved compare_env to process-nt.c.
12638         ntproc.c will die, one day.
12639
12640         * ntproc.c (sys_spawnve):
12641         Account for win32_ -> mswindows_.
12642
12643         * process-nt.c:
12644         * process-nt.c (struct nt_process_data):
12645         * process-nt.c (ensure_console_window_exists):
12646         * process-nt.c (compare_env):
12647         * process-nt.c (nt_create_process):
12648         * process-nt.c (nt_kill_process_by_pid):
12649         * process-nt.c (syms_of_process_nt):
12650         * process-nt.c (vars_of_process_nt):
12651         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12652         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12653         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12654         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12655         Move compare_env here from ntproc.c.
12656
12657         * process.c (Fprocess_send_region):
12658         Takes an optional fourth argument, BUFFER, which should fix some
12659         problems with call-process.
12660
12661         * syscommctrl.h:
12662         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12663
12664         * syswindows.h:
12665         Move ICC_BAR_CLASSES to syscommctrl.h.
12666         Add preliminary macros for MSWindows/Mule.  More to come.
12667
12668         * unexnt.c:
12669         * unexnt.c (unexec):
12670         open_output_file moved to nt.c.
12671
12672
12673 2000-05-05  Andy Piper  <andy@xemacs.org>
12674
12675         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12676         instance from the frame cache also since GC may catch up too late
12677         to make frame deletion sane.
12678
12679 2000-05-04  Andy Piper  <andy@xemacs.org>
12680
12681         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12682         (x_finalize_image_instance): ungcpro on deletion.
12683
12684         * glyphs.c (image_instantiator_format_create): give pointers a
12685         query geometry method so that the geometry is at least set.
12686
12687         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12688         initialize layouts if using widgets.
12689
12690 2000-05-03  Andy Piper  <andy@xemacs.org>
12691
12692         * nt.c: remove bogus reference to sysmmsystem.h
12693
12694         * gui-x.c (popup_selection_callback): fix no selection abort.
12695
12696 2000-05-02  Andy Piper  <andy@xemacs.org>
12697
12698         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12699         (mswindows_widget_instantiate): ditto.
12700
12701         * glyphs-widget.c (initialize_widget_image_instance): initialize
12702         children correctly.
12703         (widget_instantiate): cope with children and items in the same
12704         instance.
12705
12706         * glyphs.c (mark_image_instance): cope with children as a first
12707         class member.
12708         (image_instance_equal): ditto.
12709         (image_instance_hash): ditto.
12710         (image_instance_changed): ditto.
12711
12712 2000-04-30  Andy Piper  <andy@xemacs.org>
12713
12714         * glyphs.c (subwindow_query_geometry): new function. Return some
12715         defaults.
12716         (subwindow_instantiate): don't assign dimensions if none have been
12717         given.
12718         (image_instantiator_format_create): add subwindow_query_geometry.
12719         (print_image_instance): cope with layouts as widgets.
12720
12721 2000-04-29  Andy Piper  <andy@xemacs.org>
12722
12723         * frame.c (delete_frame_internal): call
12724         free_frame_subwindow_instance_cache so that all subwindows are
12725         finalized before their parent.
12726         (mark_frame): remove subwindow_cachels.
12727         (Fmake_frame): remove subwindow_cachel manipulation.
12728         (allocate_frame_core): subwindow_instance_cache is a weak list.
12729         (delete_frame_internal): set subwindow_instance_cache to nil.
12730
12731         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12732         finalization safe.
12733         (mswindows_finalize_image_instance): use the device
12734         not the domain as the domain may have died already.
12735
12736         * glyphs-x.c (x_finalize_image_instance): ditto.
12737         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12738         HEIGHT.
12739
12740         * redisplay-output.c (redisplay_unmap_subwindows): update for
12741         subwindow instance cache as a weak list.
12742         (redisplay_unmap_subwindows_maybe): ditto.
12743         (redisplay_unmap_subwindows_except_us): ditto.
12744
12745         * glyphs.c (unmap_subwindow): error checking will check the domain
12746         so don't deal with it here. Don't use cachels anymore.
12747         (map_subwindow): ditto.
12748         (update_subwindow_cachel_data): remove old accessor names.
12749         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12750         (Fresize_subwindow): don't update cachel.
12751         (mark_subwindow_cachels):
12752         (update_subwindow_cachel_data):
12753         (add_subwindow_cachel):
12754         (get_subwindow_cachel_index):
12755         (update_subwindow_cachel):
12756         (reset_subwindow_cachels):
12757         (mark_subwindow_cachels_as_not_updated): deleted.
12758         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12759         subwindow instance to the frame cache.
12760         (find_matching_subwindow): update for subwindow instance cache as
12761         a weak list.
12762         (update_widget_instances): ditto.
12763         (image_instance_type_to_mask):inlined.
12764         (free_frame_subwindow_instance_cache): new function. finalize all
12765         subwindows that are instantiated.
12766
12767         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12768         of cachel information.
12769         (IMAGE_INSTANCE_DISPLAY_X):
12770         (IMAGE_INSTANCE_DISPLAY_Y):
12771         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12772         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12773         (XIMAGE_INSTANCE_DISPLAY_X):
12774         (XIMAGE_INSTANCE_DISPLAY_Y):
12775         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12776         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12777         remove subwindow_cachel structure and function references.
12778         (image_instance_type_to_mask): inline from glyphs.c
12779
12780         * redisplay.c (redisplay_frame): remove subwindow_cachel
12781         references.
12782
12783         * frame.h (struct frame): remove subwindow_cachels.
12784         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12785
12786         * frameslots.h: add subwindow_instance_cache.
12787
12788         * window.c (replace_window): check subwindow cache of replacement.
12789         (window_unmap_subwindows_cache_mapper):
12790         (window_unmap_subwindows): new functions. Unmap all subwindows
12791         cached on this window.
12792         (mark_window_as_deleted): unmap all subwindows.
12793
12794 2000-04-27  Andy Piper  <andy@xemacs.org>
12795
12796         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12797
12798         * glyphs-widget.c (widget_layout): return something.
12799         (layout_layout): return something. Fail if not initialized.
12800         (layout_query_geometry): ditto.
12801         (image_instantiator_native_layout): new function. Initialized the
12802         native layout type.
12803         (widget_instantiate): don't do layout stuff here.
12804
12805         * glyphs.c (instantiate_image_instantiator): reorded calling or
12806         instantiate and post_instantiate with layout in between.
12807         (image_instance_layout): be more selective about deciding whether
12808         the layout has been done or not.
12809
12810         * glyphs.h (struct image_instantiator_methods): return a value
12811         from layout_method.
12812
12813 2000-04-26  Andy Piper  <andy@xemacs.org>
12814
12815         * glyphs.c (allocate_image_instance): make initial width and
12816         height unspecified. Set initialized to 0.
12817
12818         * syscommctrl.h new file. Encapsulates commctrl.h.
12819
12820         * syswindows.h new file. Encapsulates windows.h.
12821
12822         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12823         * nt.c: ditto.
12824         * console-msw.h: ditto.
12825
12826         * redisplay-tty.c (tty_output_display_block): remove layout references.
12827
12828         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12829         window handle rather than just the frame.
12830
12831         * glyphs.c (mark_image_instance): remove layout references.
12832         (print_image_instance): ditto.
12833         (image_instance_equal): ditto.
12834         (image_instance_hash): ditto.
12835         (decode_image_instance_type): ditto.
12836         (encode_image_instance_type): ditto.
12837         (image_instantiate): ditto.
12838         (allocate_glyph): ditto.
12839         (Fimage_instance_height): ditto.
12840         (Fimage_instance_width): ditto.
12841         (update_subwindow): ditto.
12842
12843         * redisplay-x.c (x_output_display_block): recode for layouts as
12844         widgets.
12845
12846         * redisplay-output.c (redisplay_output_layout): recode for layouts
12847         as widgets.
12848         (compare_runes): remove layout references.
12849
12850         * redisplay-msw.c (mswindows_output_display_block): recode for
12851         layouts as widgets.
12852
12853         * glyphs-widget.c (image_instantiator_layout): remove
12854         layout_possible_dest_types.
12855         (layout_possible_dest_types): deleted.
12856
12857         * glyphs.h (image_instance_type): remove layout references.
12858         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12859         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12860         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12861
12862 2000-04-25  Andy Piper  <andy@xemacs.org>
12863
12864         * glyphs-widget.c (image_instantiator_buttons):
12865         (image_instantiator_edit_fields):
12866         (image_instantiator_combo_box):
12867         (image_instantiator_scrollbar):
12868         (image_instantiator_progress_guage):
12869         (image_instantiator_tree_view):
12870         (image_instantiator_tab_control):
12871         (image_instantiator_labels):
12872         (image_instantiator_layout): call default post_instantiate method.
12873         (widget_post_instantiate): new function. Simply lays out the
12874         widgets.
12875
12876         * glyphs.h (struct image_instantiator_methods): add
12877         post_instantiate method.
12878
12879         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12880         method calls.
12881
12882 2000-04-23  Andy Piper  <andy@xemacs.org>
12883
12884         * glyphs.h (struct image_instantiator_methods): add
12885         decode_domain_method.
12886         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12887         derived from the domain.
12888         (IMAGE_INSTANCE_FRAME): new accessor.
12889         (XIMAGE_INSTANCE_FRAME): ditto.
12890
12891         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12892         instead of _SUBWINDOW_FRAME.
12893         (finalize_image_instance): ditto.
12894         (Fimage_instance_foreground): ditto.
12895         (Fimage_instance_background): ditto.
12896         (image_instantiate): ditto.
12897         (update_subwindow_cachel): ditto.
12898         (update_subwindow): ditto.
12899         (unmap_subwindow): ditto.
12900         (map_subwindow): ditto
12901         (subwindow_instantiate): ditto.
12902         * glyphs-msw.c (mswindows_update_widget): ditto.
12903         (mswindows_progress_gauge_instantiate): ditto.
12904         (mswindows_tab_control_update): ditto.
12905         * glyphs-x.c (x_update_widget): ditto.
12906         (x_widget_instantiate): ditto.
12907         (x_tab_control_instantiate): ditto.
12908         (x_tab_control_update): ditto.
12909         * event-msw.c (mswindows_wnd_proc): ditto
12910
12911         * glyphs-widget.c (image_instantiator_layout): use
12912         subwindow_decode_domain.
12913         (image_instantiator_buttons): ditto.
12914         (image_instantiator_edit_fields): ditto.
12915         (image_instantiator_combo_box): ditto.
12916         (image_instantiator_scrollbar): ditto.
12917         (image_instantiator_progress_guage): ditto.
12918         (image_instantiator_tree_view): ditto.
12919         (image_instantiator_tab_control): ditto.
12920         (image_instantiator_labels): ditto.
12921         (image_instantiator_layout): ditto.
12922
12923         * glyphs.c: add instance error checking to many functions.
12924         (instantiate_image_instantiator): decode device from cache_domain.
12925         (image_instantiate): partially rewrite by using
12926         decode_image_instantiator_domain to determine what domain the
12927         instance needs to be cached in.
12928         (decode_image_instantiator_domain): new function. Determine what
12929         domain the image needs to be cached in.
12930         (check_window_subwindow_cache): new error checking function.
12931         (check_instance_cache_mapper): ditto.
12932         (check_image_instance_structure): ditto.
12933         (subwindow_decode_domain): new function. Encodes a window as a
12934         subwindow's cache domain.
12935         (image_instantiator_format_create): use it for text and
12936         subwindows.
12937
12938 2000-04-21  Andy Piper  <andy@xemacs.org>
12939
12940         * glyphs.c (image_instance_device): new function.
12941         (image_instance_frame): new function.
12942         (image_instance_window): new function.
12943         (image_instance_live_p): new function.
12944
12945         * window.c (mark_window_as_deleted): reset the subwindow_instance_
12946         cache to nil.
12947
12948         * glyphs.h (struct Lisp_Image_Instance): device->domain.
12949         (IMAGE_INSTANCE_DOMAIN): new accessor.
12950         (XIMAGE_INSTANCE_DOMAIN): ditto.
12951
12952         * glyphs-x.c (x_finalize_image_instance): device->domain.
12953
12954         * glyphs-msw.c (init_image_instance_geometry): device->domain.
12955         (mswindows_finalize_image_instance): ditto.
12956
12957         * glyphs-eimage.c (jpeg_instantiate): device->domain.
12958         (gif_instantiate): ditto.
12959         (png_instantiate): ditto.
12960         (tiff_instantiate): ditto.
12961
12962         * glyphs.c (instantiate_image_instantiator): use domain rather
12963         than device.
12964         (mark_image_instance): device -> domain.
12965         (print_image_instance): ditto.
12966         (finalize_image_instance): ditto.
12967         (image_instance_equal): ditto.
12968         (allocate_image_instance): ditto.
12969         (Fcolorize_image_instance): ditto.
12970         (query_string_geometry): ditto.
12971         (image_instantiate): ditto
12972         (query_string_font): ditto.
12973         (image_instantiate): ditto.
12974         (update_subwindow): ditto.
12975         (unmap_subwindow): ditto.
12976         (map_subwindow): ditto.
12977         (subwindow_instantiate): ditto.
12978
12979         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
12980         (DOMAIN_FRAME): ditto.
12981         (DOMAIN_WINDOW): ditto.
12982         (DOMAIN_LIVE_P): ditto.
12983         (XDOMAIN_DEVICE): ditto.
12984         (XDOMAIN_FRAME): ditto.
12985         (XDOMAIN_WINDOW): ditto.
12986
12987         * specifier.c (Fvalid_specifier_domain_p): add image instances as
12988         a valid specifier domain.
12989
12990 2000-04-19  Andy Piper  <andy@xemacs.org>
12991
12992         * glyphs-widget.c (syms_of_glyphs_widget): remove
12993         widget-callback-current-channel.
12994         (vars_of_glyphs_widget): ditto.
12995         * glyphs.h: ditto
12996
12997         * gui.c (get_gui_callback): revert to previous behaviour.
12998
12999 2000-04-18  Andy Piper  <andy@xemacs.org>
13000
13001         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
13002         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
13003         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
13004
13005         * glyphs.c (image_instance_equal): add margin_width.
13006         (image_instance_hash): ditto.
13007
13008         * glyphs-widget.c (widget_instantiate): deal with margin-width.
13009         (layout_query_geometry): ditto.
13010         (layout_layout): ditto.
13011         (syms_of_glyphs_widget): add margin-width.
13012         (image_instantiator_layout): allow margin-width.
13013
13014         * glyphs.c (update_widget_instances): make a normal function.
13015         (syms_of_glyphs): remove Qupdate_widget_instances.
13016         * glyphs.h: ditto.
13017
13018         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
13019         so that we don't corrupt ideas about the last event or
13020         command. Remove widget-callback-current-channel fiddling.
13021         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
13022
13023 2000-05-01  Martin Buchholz <martin@xemacs.org>
13024
13025         * XEmacs 21.2.33 is released.
13026
13027 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
13028
13029         * make-src-depend: Allow dots in header file name.
13030
13031 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
13032
13033         * mule-charset.h (struct charset_lookup): Add
13034         next_allocated_1_byte_leading_byte and
13035         next_allocated_2_byte_leading_byte.
13036         * mule-charset.c: Move above two variables so that those values
13037         will be dumped.
13038
13039 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
13040
13041         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
13042         when string length is zero.
13043         (find_charsets_in_emchar_string): Ditto.
13044
13045 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
13046
13047         * lisp.h: extern Qdialog and Qmenubar.
13048
13049         * gui-x.c: added events.h.
13050                 also fixed typo which made the file uncompilable.
13051
13052         * general.c: Added Qmenubar and Qdialog
13053
13054 2000-04-28  Ben Wing  <ben@xemacs.org>
13055
13056         * frame-msw.c (mswindows_init_frame_1):
13057         * frame-msw.c (mswindows_mark_frame):
13058         * event-msw.c (mswindows_enqueue_dispatch_event):
13059         * console-msw.h:
13060         * console-msw.h (struct mswindows_frame):
13061         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
13062         there are now three hash tables for callbacks.
13063         mswindows_enqueue_dispatch_event is no longer static.
13064
13065         * dialog-x.c (maybe_run_dbox_text_callback):
13066         * dialog-x.c (dbox_descriptor_to_widget_value):
13067         switch to new cons3 form for callbacks.
13068
13069         * glyphs-msw.c (mswindows_register_gui_item):
13070         * glyphs-msw.c (mswindows_widget_instantiate):
13071         * glyphs-msw.c (add_tree_item):
13072         * glyphs-msw.c (add_tab_item):
13073         new image instance parameter, so it can be passed to callback-ex.
13074         respect :callback-ex as well as :callback.
13075
13076         * glyphs-widget.c (VALID_GUI_KEYWORDS):
13077         add :callback-ex.
13078
13079         * glyphs.c (print_image_instance):
13080         prettify, e.g. now prints widget type.
13081
13082         * gui-x.h:
13083         certain funs have new image instance parameter.
13084
13085         * gui.c:
13086         * gui.c (get_gui_callback):
13087         * gui.c (gui_item_add_keyval_pair):
13088         * gui.c (gui_item_init):
13089         * gui.c (gui_add_item_keywords_to_plist):
13090         * gui.c (mark_gui_item):
13091         * gui.c (gui_item_hash):
13092         * gui.c (gui_item_equal):
13093         * gui.c (copy_gui_item):
13094         * gui.c (syms_of_gui):
13095         recognize callback-ex in a number of places.
13096         also, fix the annoying "can't get out of yes-no dialog" bug.
13097
13098         * gui.h:
13099         * gui.h (struct Lisp_Gui_Item):
13100         recognize callback-ex in a number of places.
13101
13102         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13103         new parameter in button_item_to_widget_value.
13104
13105         * glyphs-x.c (x_update_widget):
13106         * glyphs-x.c (x_button_instantiate):
13107         * glyphs-x.c (x_button_update):
13108         * glyphs-x.c (x_progress_gauge_instantiate):
13109         * glyphs-x.c (x_edit_field_instantiate):
13110         * glyphs-x.c (x_combo_box_instantiate):
13111         * glyphs-x.c (x_tab_control_instantiate):
13112         * glyphs-x.c (x_label_instantiate):
13113         new image instance parameter in various places.
13114
13115         * event-Xt.c:
13116         * event-Xt.c (enqueue_Xt_dispatch_event):
13117         this fun gets exported.
13118
13119         * gui-msw.c:
13120         * gui-msw.c (mswindows_handle_gui_wm_command):
13121         handle both :callback and :callback-ex, and generate our own
13122         event because it's one of the callback-ex arguments.
13123
13124         * gui-x.c:
13125         * gui-x.c (popup_selection_callback):
13126         handle both :callback and :callback-ex, and generate our own
13127         event because it's one of the callback-ex arguments.
13128         * gui-x.c (button_item_to_widget_value):
13129         * gui-x.c (gui_items_to_widget_values_1):
13130         * gui-x.c (gui_item_children_to_widget_values):
13131         * gui-x.c (gui_items_to_widget_values):
13132         new image instance parameter in various places.
13133
13134         * fns.c (Freplace_list):
13135         fix small typo in doc string.
13136
13137         * lisp.h:
13138         declare enqueue_Xt_dispatch_event.
13139
13140 2000-04-28  Ben Wing  <ben@xemacs.org>
13141
13142         * buffer.c:
13143         * buffer.c (Frecord_buffer):
13144         * buffer.c (syms_of_buffer):
13145         delete record-buffer-hook.
13146
13147         * fns.c:
13148         * fns.c (Freplace_list):
13149         * fns.c (syms_of_fns):
13150         new primitive replace-list.
13151
13152         * frameslots.h:
13153         slot for old buffer-alist.
13154
13155         * lisp.h:
13156         exfun replace-list.
13157
13158         * redisplay.c:
13159         * redisplay.c (redisplay_frame):
13160         * redisplay.c (syms_of_redisplay):
13161         * redisplay.c (vars_of_redisplay):
13162         new hook buffer-list-changed-hook.
13163         call it.
13164
13165 2000-04-27  Ben Wing  <ben@xemacs.org>
13166
13167         * extents.h: extern in_modeline_generation.
13168
13169         * redisplay.c (generate_formatted_string_db): set
13170         in_modeline_generation.
13171
13172         * extents.c (extent_changed_for_redisplay): don't mark redisplay
13173         flags if in modeline generation.  otherwise frame-modified-tick
13174         is ticked far too often.
13175         Declare in_modeline_generation.
13176
13177 2000-04-26  Ben Wing  <ben@xemacs.org>
13178
13179         * emacs.c (vars_of_emacs): document quick-build "error-checking"
13180         option.
13181         (vars_of_emacs): add quick-build as an error-checking option.
13182         A bit kludgy, but there doesn't seem much point in creating
13183         a real var for this.
13184
13185         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
13186
13187 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13188
13189         * redisplay.h (struct display_line): Add a new variable,
13190         line_continuation.
13191
13192         * redisplay.c (create_text_block): Set dl->line_continuation if
13193         the line continues.
13194         (create_string_text_block): Ditto.
13195         (regenerate_window_incrementally): Use line_continuation instead
13196         of searching continuation glyph.
13197         (add_margin_runes): Call add_glyph_rune.
13198         (add_glyph_rune): Handle margin glyph.
13199
13200 2000-04-20  Martin Buchholz  <martin@xemacs.org>
13201
13202         * filelock.c (fill_in_lock_file_name):
13203         ANSIfy.
13204         Check for IS_ANY_SEP instead of '/'.
13205         (lock_file_1):
13206         Avoid generating gratuitous garbage.  Call user_login_name() directly.
13207         Never check errno without first seeing that system call failed.
13208         (unlock_file): Add GCPRO.
13209         (Flock_buffer): Fix docstring.
13210         (Ffile_locked_p): Fix docstring.  Add GCPRO.
13211
13212 2000-04-19  Martin Buchholz  <martin@xemacs.org>
13213
13214         * sysdep.c (get_pty_max_bytes):
13215         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
13216         strings longer than 252 bytes.
13217
13218         * md5.c: Unconditionally include ANSI header <limits.h>
13219
13220         * glyphs-x.c (convert_EImage_to_XImage):
13221         * lisp-union.h (union Lisp_Object):
13222         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
13223
13224 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
13225
13226         * filelock.c (current_lock_owner): Remove unused variable o, p.
13227
13228 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
13229
13230         * callint.c: Remove multiply defined symbol Qlet
13231         (syms_of_callint): ditto.
13232
13233 2000-04-14  Andy Piper  <andy@xemacs.org>
13234
13235         * general.c (syms_of_general): add last-command, this-command, let
13236         and funcall.
13237
13238         * lisp.h: declare various symbols.
13239
13240         * glyphs.h: declare Qwidget_callback_current_channel;
13241
13242         * glyphs-widget.c (syms_of_glyphs_widget): add
13243         Qgui_callback_current_channel.
13244         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
13245
13246         * gui-msw.c (mswindows_handle_gui_wm_command): bind
13247         widget-callback-current-channel when invoking the interactive
13248         arg. Also bind last-command and next-command when invoking the
13249         widget updates.
13250         * gui-x.c (popup_selection_callback): ditto.
13251
13252         * gui.c (get_gui_callback): massage args so that we are always
13253         calling eval. This allows us to add our own variable bindings
13254         outside.
13255
13256         * glyphs-x.c (x_button_instantiate): use
13257         gui_items_to_widget_values since this is GC safe.
13258         (x_progress_gauge_instantiate): ditto.
13259         (x_edit_field_instantiate): ditto.
13260         (x_label_instantiate): ditto.
13261
13262         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
13263         (emacs_Xt_event_widget_focus_out): new function
13264         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
13265         focus.
13266         (emacs_Xt_event_add_widget_actions): new function. add focus
13267         functions as actions.
13268         (init_event_Xt_late): use it.
13269
13270 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
13271
13272         * event-stream.c (Fdispatch_event): Doc fix.
13273
13274 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
13275
13276         * postgresql.c: Remove all references to PQsetenv*.
13277
13278         * postgresql.h: Remove references to PGsetenvHandler object.
13279         * lrecord.h (lrecord_type): Ditto.
13280
13281 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13282
13283         * glyphs-msw.h (struct mswindows_image_instance_data): Added
13284         real_heigh and real_width members, and accessor macros for these.
13285
13286         * glyphs-msw.c (init_image_instance_geometry): New function.
13287         (init_image_instance_from_dibitmap): Use it.
13288         (mswindows_resource_instantiate): Use it.
13289         (init_image_instance_from_xbm_inline): Use it.
13290         (mswindows_initialize_image_instance_mask): Use real bitmap
13291         geometry.
13292         (mswindows_create_resized_bitmap): Ditto.
13293         (mswindows_create_resized_mask): Ditto.
13294
13295         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
13296         and bitmap to their surface size.
13297
13298 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
13299
13300         * process-unix.c (unix_send_process): Guard against process MIA
13301         after Faccept_process_output.
13302
13303 2000-04-11  Ben Wing  <ben@xemacs.org>
13304
13305         * eval.c (unbind_to_hairy): fix brokenness introduced by
13306         nanosecond speed improvements.
13307
13308 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
13309
13310         * sunplay.c (init_device): To play sounds correctly, the device
13311         apparently needs to be initialized at least once by XEmacs.  Make
13312         it so.
13313
13314 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13315
13316         * redisplay.c (add_margin_runes): Add text image glyph
13317           handling.
13318
13319 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
13320
13321         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
13322         gcc is newer than 2.5.
13323
13324 2000-04-06  Colin Rafferty  <colin@xemacs.org>
13325
13326         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
13327
13328         * fns.c (size_bit_vector):
13329         * alloc.c (size_vector):
13330         (make_vector_internal):
13331         (make_bit_vector_internal):
13332         (sweep_bit_vectors_1):
13333         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13334
13335 2000-04-06  Andy Piper  <andy@xemacs.org>
13336
13337         * gmalloc.c (malloc): undo previous change.
13338         (malloc): ditto.
13339         (free): ditto.
13340         (realloc): ditto.
13341
13342 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
13343
13344         * line-number.c (buffer_line_number): Revert to former version.
13345
13346 2000-04-06  Andy Piper  <andy@xemacs.org>
13347
13348         * gmalloc.c (malloc): add error checking.
13349         (malloc): ditto.
13350         (free): ditto.
13351         (realloc): ditto.
13352
13353         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13354         button_item_to_widget_value arg.
13355
13356         * glyphs-x.c (x_button_instantiate): add extra
13357         button_item_to_widget_value arg.
13358         (x_progress_gauge_instantiate): ditto.
13359         (x_edit_field_instantiate): ditto.
13360         (x_label_instantiate): ditto.
13361
13362         * gui-x.c (gui_items_to_widget_values_1): add extra
13363         button_item_to_widget_value arg.
13364         (button_item_to_widget_value): add extra menu_item_p arg.
13365
13366         * gui-x.h: change signature of button_item_to_widget_value.
13367
13368         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13369         button_item_to_widget_value arg.
13370
13371 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13372
13373         * buffer.h (struct buffer): auto_save_modified should be long.
13374
13375 2000-04-05  Andy Piper  <andy@xemacs.org>
13376
13377         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13378         type.
13379         (button_query_geometry): give a little more room so that athena
13380         buttons fit.
13381
13382 2000-04-05  Andy Piper  <andy@xemacs.org>
13383
13384         * faces.c (complex_vars_of_faces): The widget face should inherit
13385         the font of the gui-element face.
13386
13387 2000-04-04  Andy Piper  <andy@xemacs.org>
13388
13389         * glyphs-x.c (x_button_update): new function. unconditionally
13390         update a button's state when the instance is dirty.
13391         (image_instantiator_format_create_glyphs_x): add x_button_update.
13392         (x_widget_instantiate): remove old resize cruft.
13393
13394 2000-04-02  Andy Piper  <andy@xemacs.org>
13395
13396         * frame.c (change_frame_size_1): The introduction of gutters means
13397         that we need to allow 0 as a potential frame dimension.
13398
13399 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13400
13401         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13402         image glyph if allow_cursor.
13403         (add_hscroll_rune): Don't allow cursor to border glyph.
13404         (create_text_block): Ditto.
13405
13406         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13407         text not in buffer.
13408         (redisplay_output_layout): Call ensure_face_cachel_complete for
13409         text image glyph.
13410
13411
13412 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13413
13414         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13415
13416         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13417         not in buffer
13418
13419         * redisplay-tty.c (tty_output_display_block): Delete the routine
13420         for text image glyph
13421         * redisplay-x.c (x_output_display_block): ditto
13422         * redisplay-msw.c (mswindows_output_display_block): ditto
13423
13424 2000-02-02  Mike Alexander  <mta@arbortext.com>
13425
13426         Note: Some of these were committed by accident as part of other
13427         patches.
13428
13429         * regex.c (regex_compile): Avoid compiler warnings.
13430
13431         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13432
13433         * nt.h: Declare term_ntproc correctly.
13434
13435         * nt.c: Remove incorrect declaration of get_home_directory which
13436         is declared correctly in lisp.h.
13437
13438         * keymap.c (get_keyelt): Avoid compiler warnings.
13439         (raw_lookup_key_mapper): Avoid compiler warnings.
13440
13441         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13442
13443         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13444
13445         * filemode.c (mode_string): Avoid compiler warnings.
13446
13447         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13448         avoid warning.
13449
13450         * events-mod.h: Undef some things that winuser.h defines differently.
13451
13452         * data.c (Faset): Avoid compiler warnings.
13453
13454         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13455
13456 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13457
13458         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13459         Fall through to simple beep on error.
13460         Replace "extern" by real header file.
13461
13462         * linuxplay.c: Use nativesound.h
13463         (play_sound_data): Return error code. Be less verbose on error.
13464
13465         * sunplay.c: Use nativesound.h
13466         (play_sound_data): Return error code. Be less verbose on error.
13467
13468         * ntplay.c: Use nativesound.h
13469         (play_sound_data): Return fake error code
13470
13471         * sgiplay.c: Use nativesound.h
13472         (play_sound_data): Return error code
13473
13474         * hpplay.c: Use nativesound.h, partially implement
13475         new error code. Break compilation until finished.
13476         (play_sound_data): error code.
13477
13478         * nativesound.h (play_sound_file):
13479           (play_sound_data): Prototype in new header.
13480
13481 2000-03-31  Andy Piper  <andy@xemacs.org>
13482
13483         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13484         for toggle and radio buttons.
13485         (image_instantiator_buttons): use it.
13486
13487 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13488
13489         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13490         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13491         found. Scrollbar event probably belonged to some old config.
13492
13493 2000-03-31  Andy Piper  <andy@xemacs.org>
13494
13495         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13496         than 1.
13497         (initialize_widget_image_instance): default layout to
13498         LAYOUT_HORIZONTAL rather than 0.
13499         (widget_instantiate): reverse the item list at the end rather than
13500         every iteration.
13501         (layout_layout): re-code for the border text at the front of the
13502         item list rather than at the end.
13503         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13504         provided by the user.
13505         (widget_query_geometry): comment.
13506
13507 2000-03-30  Andy Piper  <andy@xemacs.org>
13508
13509         * glyphs-widget.c (image_instantiator_layout): allow standard
13510         widget keywords in layouts.
13511
13512         * gutter.c (output_gutter): cope with nil gutter contents.
13513
13514         * frame.c (Fset_frame_properties): add gutter docs.
13515
13516 2000-03-29  Andy Piper  <andy@xemacs.org>
13517
13518         * toolbar-msw.c (TBSTYLE_FLAT): add.
13519         (mswindows_output_toolbar): minor fiddling.
13520
13521 2000-03-29  Andy Piper  <andy@xemacs.org>
13522
13523         * gutter.c (output_gutter): force gutter size recalculation if
13524         what we are trying to display won't fit.
13525         (update_gutter_geometry): new function. A per-gutter version of
13526         update_frame_gutter_geometry.
13527         (update_frame_gutter_geometry): use it.
13528         (redraw_exposed_gutter): add extra debugging output.
13529
13530 2000-03-28  Mike Alexander  <mta@arbortext.com>
13531
13532         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13533         (pdump_file_unmap): Implement it on Windows
13534         (pdump_file_get): Save alocated handles for pdump_file_unmap
13535
13536 2000-03-28  Andy Piper  <andy@xemacs.org>
13537
13538         * gui.c (get_gui_callback): treat Quit specially.
13539
13540 2000-03-27  Andy Piper  <andy@xemacs.org>
13541
13542         * glyphs.c (image_instantiate): be careful to check in the same
13543         way we assigned.
13544
13545 2000-03-27  Didier Verna  <didier@xemacs.org>
13546
13547         * config.h.in: define the proper SMART_INCLUDE macro.
13548         handle renaming of `foo_h_path' to `foo_h_file'.
13549
13550         * database.c: ditto.
13551
13552         * emacs.c: ditto.
13553
13554         * linuxplay.c: ditto.
13555
13556         * terminfo.c: ditto.
13557
13558         * tooltalk.h: ditto.
13559
13560 2000-03-27  Andy Piper  <andy@xemacs.org>
13561
13562         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13563         gets updated whenever the face might have changed.
13564
13565 2000-03-26  Mike Alexander  <mta@arbortext.com>
13566
13567         * dumper.c (pdump_resource_free): Fix the comment.
13568
13569 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13570
13571         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13572
13573 2000-03-22  Mike Alexander  <mta@arbortext.com>
13574
13575         * dumper.c: Include Windows headers on Windows
13576         (pdump_resource_free): Add a body to the function
13577         (pdump_load): exe_name -> exe_path and add some comments.
13578
13579 2000-03-25  Mike Alexander  <mta@arbortext.com>
13580
13581         * gui.c (copy_gui_item_tree): Return a value in all cases
13582
13583 2000-03-21  Didier Verna  <didier@xemacs.org>
13584
13585         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13586         lwlib/config.h.in.
13587         (SMART_INCLUDE): new macro.
13588         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13589         the proper location.
13590
13591         * postgresql.c: use it.
13592
13593         * inline.c: ditto.
13594
13595 2000-03-24  Andy Piper  <andy@xemacs.org>
13596
13597         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13598         do this.
13599
13600 2000-03-24  Andy Piper  <andy@xemacs.org>
13601
13602         * redisplay-output.c (compare_runes): use image_instance_changed
13603         to detect changes. Do not depend on glyphs_changed, only depend on
13604         dirtiness.
13605          (redisplay_output_layout): add debug messages.
13606         (compare_runes): ditto.
13607
13608         * glyphs.h: declare new functions.
13609         (struct Lisp_Image_Instance): remove percent and associated
13610         accessors.
13611
13612         * gui.h: declare new copying functions.
13613
13614         * gui.c (copy_gui_item_tree): new function.
13615         (copy_gui_item): new function.
13616         (gui_item_id_hash): revert to standard hash.
13617         (gui_item_hash): ditto.
13618         (gui_item_hash_internal): deleted.
13619         (mark_gui_item): mark value.
13620         (gui_item_add_keyval_pair): add value.
13621         (gui_item_init): ditto.
13622         (gui_add_item_keywords_to_plist): ditto.
13623         (gui_item_equal): ditto.
13624         (syms_of_gui): add Q_value.
13625
13626         * glyphs-x.c (x_progress_gauge_update): use pending items and
13627         value for setting the state.
13628         (x_update_widget): don't set items from pending here.
13629
13630         * glyphs-widget.c (update_widget): update items here.
13631         (progress_gauge_set_property): use items for storing value. Put
13632         new value in pending items.
13633
13634         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13635         items for new value. Convert percent -> value.
13636         (mswindows_tab_control_update): don't update items here.
13637
13638         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13639         (update_subwindow): ditto.
13640         (image_instance_changed): new function. Compare hash values and
13641         past and present widget items.
13642         (image_instantiate): We more careful about where we instantiate
13643         things.
13644         (image_instantiate): add error checking.
13645
13646         * gutter.c (syms_of_gutter): use -hook.
13647
13648 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13649
13650         * console-tty.c (Fset_console_tty_input_coding_system): Use
13651         Qkeyboard.
13652         (Fset_console_tty_output_coding_system): Use Qterminal.
13653         (tty_init_console): Use Qkeyboard and Qterminal.
13654
13655 2000-03-21  Ben Wing  <ben@xemacs.org>
13656
13657         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13658         From Mike Alexander <mta@arbortext.com>.
13659
13660 2000-03-21  Ben Wing  <ben@xemacs.org>
13661
13662         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13663         process brokenness.  Proper implementation to come.
13664         * callproc.c:
13665         Rename call-process-internal to old-call-process-internal.
13666         New impl. in process.el.
13667
13668 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13669
13670         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13671
13672 2000-03-20  Andy Piper  <andy@xemacs.org>
13673
13674         * glyphs.c (full_list_hash): make hashes of the same elements in
13675         different orders return different values.
13676
13677 2000-03-20  Martin Buchholz <martin@xemacs.org>
13678
13679         * XEmacs 21.2.32 is released.
13680
13681 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13682
13683         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13684         (DFC_MALLOC_USE_CONVERTED_DATA):
13685         Add aliasing-safe casts to allow use with char* or unsigned char*
13686         lvalues.
13687
13688         * eldap.c (Fldap_open):
13689         (Fldap_search_basic):
13690         (Fldap_add):
13691         (Fldap_modify):
13692         Make C++-compilable.
13693         Make sure GCPRO'ed variables are initialized.
13694         Use temp variables to avoid repeated calls to Flength.
13695
13696 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13697
13698         * sysfile.h:
13699         Make sure PATH_MAX is always defined.
13700         Include limits.h for PATH_MAX.
13701         Deprecate use of MAXPATHLEN.
13702
13703 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13704
13705         * emacs.c: Add reinit_vars_of_fileio.
13706         * symsinit.h: Add reinit_vars_of_fileio.
13707         * fileio.c (reinit_vars_of_fileio): New.
13708         * fileio.c (Fmake_temp_name):
13709         Initialize temp_name random number from microseconds to make
13710         collisions even less likely.  Initialize always at process startup
13711         time.  (make-temp-name) used to return the same file name twice in
13712         a row when PDUMP.
13713         Random stylistic fiddling.
13714         Comment fixes.
13715
13716 2000-03-20  Andy Piper  <andy@xemacs.org>
13717
13718         * glyphs.c (image_instantiate): allow text glyphs to be
13719         instantiated in the minibuffer window.
13720
13721 2000-03-19  Andy Piper  <andy@xemacs.org>
13722
13723         * glyphs.c (image_instance_hash): be careful about which items we
13724         hash on.
13725
13726         * glyphs-widget.c (tab_control_set_property): record into pending
13727         items rather than the actual items.
13728
13729         * glyphs-x.c (x_update_widget): use pending items to update with.
13730
13731         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13732         to update with.
13733
13734         * glyphs.c (mark_image_instance): mark pending items.
13735
13736         * window.c (Fset_window_configuration): record the buffer.
13737         (Fselect_window): totally revert previous change which breaks many
13738         things.
13739
13740 2000-03-18  Andy Piper  <andy@xemacs.org>
13741
13742         * glyphs-msw.c (mswindows_tab_control_update): force selected
13743         item.
13744
13745         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13746         window domain cache, otherwise we get inconsistencies at
13747         startup. There is something fishy at startup which can lead to the
13748         minibuffer being the selected window when the gutter content is
13749         instantiated.
13750
13751         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13752         gcpros.
13753         (parse_gui_item_tree_children): ditto.
13754         (parse_gui_item_tree_item): ditto.
13755
13756         * glyphs.c (Fupdate_widget_instances): return something.
13757
13758 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13759
13760         * window.c (Fselect_window): Undo 2000-03-17 change.
13761
13762 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13763
13764         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13765         against v7.0 libraries.  Insta-coredump city until the postgres
13766         folks fix it.
13767
13768 2000-03-17  Andy Piper  <andy@xemacs.org>
13769
13770         * faces.c (complex_vars_of_faces): don't give the widget face an
13771         inherited background pixmap.
13772
13773         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13774         selected item.
13775
13776         * event-stream.c (Fdispatch_non_command_events): return something.
13777
13778         * gutter.c (output_gutter): use widget face.
13779         (clear_gutter): ditto.
13780
13781         * NEWS: adjust again.
13782
13783         * window.c (Fselect_window): make sure this runs to completion to
13784         avoid oddities with Fset_window_configuration.
13785         (Fcurrent_window_configuration): in general do not save the
13786         minibuffer as the selected window.
13787
13788         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13789
13790 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13791
13792         * emacs.c (Frunning_temacs_p): Revert previous patch.
13793         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13794
13795 2000-03-16  Andy Piper  <andy@xemacs.org>
13796
13797         * glyphs-x.c (x_tab_control_update): if no widget values then
13798         return.
13799
13800         * NEWS: update for new features.
13801
13802         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13803         synthetic event to the native system.
13804         (reinit_vars_of_event_Xt): set force_event_pending to
13805         emacs_Xt_force_event_pending.
13806
13807         * events.h (struct event_stream): add force_event_pending.
13808
13809         * specifier.c (recompute_one_cached_specifier_in_window): add
13810         comment.
13811
13812         * redisplay.c (redisplay_frame): don't call
13813         update_frame_subwindows. Reset subwindow cachels when
13814         subwindows_changed, removing this was an optimization too far.
13815
13816         * redisplay-output.c (compare_runes): reorganize so that we catch
13817         glyph changes when we want them. Set optimize_output when this
13818         would help layouts.
13819         (redisplay_output_layout): remove frame_really_changed, use
13820         optimize_output instead.
13821
13822         * redisplay-msw.c (mswindows_output_display_block): reset
13823         optimize_output after outputting a glyph.
13824         * redisplay-x.c (x_output_display_block): ditto.
13825         * redisplay-tty.c (tty_output_display_block): ditto.
13826
13827         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13828         functions.
13829         (gutter_specs_changed): do specific gutter positions.
13830         (top_gutter_specs_changed): new function. Only update the
13831         specified gutter specs.
13832         (bottom_gutter_specs_changed): ditto.
13833         (left_gutter_specs_changed): ditto.
13834         (right_gutter_specs_changed): ditto.
13835
13836         * gui.c (gui_item_hash_internal): new function, does a real hash.
13837         (gui_item_id_hash): use it.
13838         (gui_item_hash): hash the eval'ed gui_item.
13839
13840         * gui-x.c (popup_selection_callback): send an eval event to call
13841         Fupdate_widget_instances.
13842
13843         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13844         to call Fupdate_widget_instances.
13845
13846         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13847         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13848
13849         * glyphs.c: (update_frame_subwindows): deleted.
13850         (Fupdate_widget_instances): new function for updating the dirty
13851         state of widgets that might have changed.
13852         (syms_of_glyphs): add Qupdate_widget_instances.
13853         (full_list_hash): hash a list completely.
13854         (image_instance_hash): use it for items and properties.
13855
13856         * frame-msw.c (mswindows_size_frame_internal): remove unused
13857         variable.
13858
13859         * faces.h (struct face_cachel): fix comment.
13860
13861         * event-stream.c (Fdispatch_non_command_events): new
13862         function. Process non-command events, forcing an event cycle
13863         beforehand.
13864         (syms_of_event_stream): declare.
13865         (event_stream_force_event_pending): new function. Force an event
13866         on the native event queue so that an event cycle will occur next
13867         time we check.
13868
13869         * event-msw.c:
13870         (struct ntpipe_shove_stream):
13871         (mswindows_enqueue_dispatch_event):
13872         (mswindows_dequeue_dispatch_event):
13873         (mswindows_cancel_dispatch_event):
13874         (mswindows_pump_outstanding_events):
13875         (mswindows_drain_windows_queue):
13876         (mswindows_handle_paint):
13877         (mswindows_wnd_proc):
13878         (mswindows_key_to_emacs_keysym):
13879         (get_process_input_waitable):
13880         (emacs_mswindows_delete_stream_pair): re-indent file.
13881         (mswindows_need_event): do not process further fds if the windows
13882         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13883         fixes the 100% cpu problem.
13884         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13885
13886 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13887
13888         * alloc.h: New.
13889         * dumper.h: New.
13890         * dumper.c: New.
13891
13892         * emacs.c: Moved dump file searching to dumper.c.
13893         (Frunning_temacs_p): Fixed.
13894
13895         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13896         last_lrecord_type_index_assigned.
13897
13898 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13899
13900         * symsinit.h: Added reinit parameter to init_console_stream
13901         declaration.
13902
13903         * lisp.h: Added file parameter to pdump_load declaration.
13904
13905         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13906         support.  Added dump file searching.
13907
13908         * config.h.in: Added EMACS_PROGNAME.
13909
13910         * console-stream.c (init_console_stream): Fix reinitialisation
13911         when running from temacs.
13912
13913         * alloc.c (pdump): Add id support.
13914         (pdump_load): Add file parameter and signature/id support.
13915
13916         * Makefile.in.in: Add full pdump support.
13917
13918 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13919
13920         * postgresql.c: Update documentation to reflect latest code
13921         status.
13922         (print_result): Show tuple counts in printed representation when
13923         appropriate.
13924         (Fpq_put_nbytes): MULE-ize.
13925         (Fpq_get_line_async): Ditto.
13926
13927 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13928
13929         * postgresql.c (Fpq_lo_import): Fix return value.
13930         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13931
13932 2000-03-13  Ben Wing  <ben@xemacs.org>
13933
13934         * alloc.c (pdump_load):
13935         Fix compile warning under mswin.
13936
13937 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13938
13939         * postgresql.c: Mule-ization, bug fixes.
13940         Use PG_CODING to encapsulate coding system name changes.
13941         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
13942         (pg-coding-system): Create.
13943
13944         (Fpq_conn_defaults): Mule-ize.
13945         (Fpq_connectdb): Mule-ize & bug fix.
13946         (Fpq_connect_start): Mule-ize.
13947         (Fpq_set_client_encoding): Mule-ize.
13948         (Fpq_finish): Document `DEAD' connection status.
13949         (Fpq_clear): Ditto.
13950         (Fpq_pgconn): Mule-ize.
13951         (Fpq_exec): Mule-ize & bug fix.
13952         (Fpq_send_query): Ditto.
13953         (Fpq_get_result): Ditto.
13954         (Fpq_res_status): Mule-ize.
13955         (Fpq_result_error_message): Mule-ize.
13956         (Fpq_ntuples): fix comments.
13957         (Fpq_fname): Mule-ize.
13958         (Fpq_fnumber): Mule-ize.
13959         (Fpq_ftype): fix comments.
13960         (Fpq_get_value): Mule-ize.
13961         (Fpq_cmd_status): Ditto.
13962         (Fpq_cmd_tuples): Ditto.
13963         (Fpq_oid_value): Ditto.
13964         (Fpq_notifies): Ditto.
13965         (Fpq_lo_import): Ditto.
13966         (Fpq_lo_export): Ditto.
13967         (Fpq_get_line): Ditto.
13968         (Fpq_put_line): Mule-ize and bug fix.
13969         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
13970
13971 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
13972
13973         * postgresql.c (vars_of_postgresql): Mule-ize.
13974         (Fpq_conn_defaults): Ditto.
13975
13976 2000-03-12  Ben Wing  <ben@xemacs.org>
13977
13978         * alloc.c (Fmake_byte_code):
13979         * alloc.c (debug_string_purity_print):
13980         * alloc.c (pdump_backtrace):
13981         * alloc.c (pdump_get_indirect_count):
13982         * alloc.c (pdump_register_sub):
13983         * alloc.c (pdump_register_object):
13984         * alloc.c (pdump_register_struct):
13985         * alloc.c (pdump_dump_data):
13986         * alloc.c (pdump_reloc_one):
13987         Minor cleanups.
13988
13989         * console-msw.c:
13990         * console-msw.c (GetConsoleHwnd):
13991         * console-msw.c (msw_hide_console):
13992         * console-msw.c (msw_show_console):
13993         * console-msw.c (msw_ensure_console_buffered):
13994         * console-msw.c (msw_output_console_string):
13995         * console-msw.c (console_type_create_mswindows):
13996
13997         a) Added functions to manipulate the console window for use with
13998         shell support.
13999
14000         b) Added support for writing text to the console, which is now
14001         used under Windows when xemacs is not being run non-interactively,
14002         to write text that would otherwise be destined for stdout because
14003         under these circumstances, text written to stdout tends to
14004         disappear and not be seen.
14005
14006         * console-msw.h:
14007         * event-Xt.c:
14008         * event-Xt.c (x_event_to_emacs_event):
14009         * event-Xt.c (describe_event_window):
14010         * events-mod.h (XEMACS_MOD_CONTROL):
14011         * events.c:
14012         * events.c (Fmake_event):
14013         * events.c (character_to_event):
14014         * events.c (event_to_character):
14015         * events.c (format_event_object):
14016         * events.c (Fevent_modifiers):
14017         * events.h:
14018         * events.h (struct key_data):
14019         * events.h (struct button_data):
14020         * events.h (struct misc_user_data):
14021         * frame-x.c (Fcde_start_drag_internal):
14022         * frame-x.c (Foffix_start_drag_internal):
14023         * gpmevent.c (Freceive_gpm_event):
14024         * keymap.c:
14025         * keymap.c (bucky_sym_to_bucky_bit):
14026         * keymap.c (control_meta_superify):
14027         * keymap.c (make_key_description):
14028         * keymap.c (keymap_lookup_directly):
14029         * keymap.c (create_bucky_submap):
14030         * keymap.c (keymap_store):
14031         * keymap.c (define_key_check_and_coerce_keysym):
14032         * keymap.c (define_key_parser):
14033         * keymap.c (define_key_alternate_name):
14034         * keymap.c (Fdefine_key):
14035         * keymap.c (raw_lookup_key_mapper):
14036         * keymap.c (struct map_keymap_unsorted_closure):
14037         * keymap.c (map_keymap_unsorted_mapper):
14038         * keymap.c (map_keymap_sort_predicate):
14039         * keymap.c (map_keymap_sorted):
14040         * keymap.c (accessible_keymaps_mapper_1):
14041         * keymap.c (where_is_recursive_mapper):
14042         * keymap.c (describe_map_mapper):
14043         * keymap.c (describe_map_sort_predicate):
14044         * keymap.c (describe_map):
14045         * keymap.c (complex_vars_of_keymap):
14046         And a number of other files, the key modifier preprocessor
14047         constants that xemacs uses have names that conflict with constants
14048         defined under MS Windows for other purposes, so they were renamed
14049         to begin with the prefix XEMACS_. The variables that hold such
14050         modifiers were changed to consistently be of type int to fix
14051         various compile warnings.
14052
14053         * console.c (complex_vars_of_console):
14054         * device.c:
14055         * device-msw.c:
14056         * device-msw.c (mswindows_finish_init_device):
14057         * device-msw.c (msw_get_workspace_coords):
14058         * device-msw.c (mswindows_device_system_metrics):
14059         and various other files, added support for a new
14060         device property called offset-workspace which returns the position
14061         of the upper left corner of the workspace area and goes along with
14062         the existing size-workspace property.
14063
14064         * dialog-msw.c:
14065         * dialog-msw.c (push_bufbyte_string_as_unicode):
14066         * dialog-msw.c (mswindows_popup_dialog_box):
14067         Added support for XEmacs-style accelerator specifications in
14068         button text.  Note: I didn't add support for this under X Windows,
14069         and somebody needs to do this.
14070
14071         * dialog.c:
14072         * dialog.c (Fpopup_dialog_box):
14073         Documented the support for accelerators that was just mentioned.
14074
14075         editfns.c (get_home_directory): Changed behavior under Windows
14076         when HOME not defined; former behavior was irretrievably broken.
14077
14078         * emacs.c:
14079         * emacs.c (main_1):
14080         * emacs.c (main):
14081         * minibuf.c (clear_echo_area_internal):
14082         * minibuf.c (echo_area_append):
14083         * print.c:
14084         * print.c (std_handle_out_external):
14085         * print.c (std_handle_out_va):
14086         * print.c (fatal):
14087         * print.c (write_string_to_stdio_stream):
14088         * print.c (output_string):
14089         * print.c (debug_print):
14090         * print.c (debug_backtrace):
14091         * print.c (debug_short_backtrace):
14092         Cleaned up the code that prints text to stdout so that this can be
14093         changed to output into a console window instead under MS Windows,
14094         as described above.
14095
14096         * eval.c:
14097         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
14098         * eval.c (internal_catch):
14099         * eval.c (unwind_to_catch):
14100         * eval.c (throw_or_bomb_out):
14101         * eval.c (condition_case_1):
14102         * eval.c (signal_1):
14103         * eval.c (check_error_state_sanity):
14104         * eval.c (call_with_suspended_errors_1):
14105         * eval.c (call_with_suspended_errors):
14106         * eval.c (reinit_vars_of_eval):
14107         Added code to catch throw loops and check for a pesky bug that may
14108         be gone now.
14109
14110         * event-msw.c:
14111         * event-msw.c (key_needs_default_processing_p):
14112         * event-msw.c (mswindows_wnd_proc):
14113         * event-msw.c (mswindows_modifier_state):
14114         * event-msw.c (emacs_mswindows_quit_p):
14115         * event-msw.c (vars_of_event_mswindows):
14116         a) Added support for using the alt key to select menu items as is
14117         standard under MS Windows.  This is controlled using the variable
14118         menu-accelerator-enabled, just like under X Windows.  There is an
14119         option on the options menu to turn this support on.  I really
14120         think that it should be on by default under Windows, but I'm not
14121         going to make this change yet.
14122
14123         b)  Added support for dynamic display size changes under Windows.
14124
14125         * event-stream.c:
14126         * event-stream.c (maybe_echo_keys):
14127         * event-stream.c (Fnext_event):
14128         * event-stream.c (command_builder_find_leaf):
14129         * event-stream.c (lookup_command_event):
14130         * event-stream.c (execute_command_event):
14131         * event-stream.c (pre_command_hook):
14132         * event-stream.c (post_command_hook):
14133         * event-stream.c (syms_of_event_stream):
14134         * event-stream.c (vars_of_event_stream):
14135         * event-stream.c (complex_vars_of_event_stream):
14136         * events.h (struct command_builder):
14137
14138         a) Tried to clean up a little bit the horribly written x-specific
14139         accelerator code that crept into this file.  I moved this code
14140         into menubar-x.c where it belongs. I also needed to move the
14141         command builder structure into the file events.h because it is
14142         accessed directly by this accelerator code.  What I didn't do, but
14143         which should be done at some point, is to properly abstract this
14144         code using device methods instead of the kludgy way that it
14145         currently hooks into the event code.
14146
14147         b) Added the lisp variables this-command-properties and
14148         last-command- properties, which should be used to synchronize two
14149         adjacent commands in preference to playing games with the variable
14150         this-command, which is typically what happens.
14151
14152         c) Added some slightly nasty code to hook into the lisp support
14153         for shifted- motion-key selection.  This is actually necessary for
14154         somewhat complicated reasons, which are described in
14155         simple.el. (NB: I think the proper thing would be to have the code
14156         that calls the pre and post command hooks also call out to generic
14157         lisp functions in simple.el, where all built-in stuff could be
14158         added.  I will think about this more.)
14159
14160         * event-unixoid.c (poll_fds_for_input):
14161         * lread.c (readchar):
14162         * redisplay-tty.c (tty_clear_frame):
14163         * redisplay-x.c (x_get_gc):
14164         * signal.c (interrupt_signal):
14165         And a whole bunch of other files: fixed up places that printed
14166         directly to stderr to instead call the function stderr_out so that
14167         the changes I made under Windows work correctly.
14168
14169         * filemode.c (mode_string):
14170         Warning fixes.
14171
14172         * frame-msw.c:
14173         * frame-msw.c (mswindows_size_frame_internal):
14174         Fixed the computation of frame size and position to keep the frame
14175         within the workspace area, rather than within the physical
14176         dimensions of the screen, so that the frame doesn't overlap window
14177         manager decorations, such as the start menu and toolbar, typically
14178         at the bottom of the screen.
14179
14180         * frame.c (vars_of_frame):
14181         Changed the default frame title format under MS Windows to consist
14182         of buffername-XEmacs, which is standard under MS Windows.  I think
14183         it might be a good idea to change this everywhere because I think
14184         it is superior to the current frame title format, but this is the
14185         kind of change that is likely to cause some people to get annoyed,
14186         so I'm not making it.
14187
14188         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
14189
14190         * gui-msw.c (mswindows_handle_gui_wm_command):
14191         Fixed compile warnings.
14192
14193         * gui-x.c:
14194         * gui-x.c (strdup_and_add_accel):
14195         * gui-x.c (button_item_to_widget_value):
14196         * gui-x.h:
14197         Added code to automatically put an accelerator onto the beginning
14198         of menu items that don't have one as is now the standard, and is
14199         described more later.  Also fixed things so that the menu item
14200         name can be an evaluated expression, again a new standard.
14201
14202         * gui.c:
14203         * gui.c (gui_item_add_keyval_pair):
14204         * gui.c (make_gui_item_from_keywords_internal):
14205         * gui.c (gui_add_item_keywords_to_plist):
14206         * gui.c (gui_item_accelerator):
14207         * gui.c (gui_name_accelerator):
14208         * gui.c (gui_item_included_p):
14209         * gui.c (gui_item_display_flush_left):
14210         * gui.c (gui_item_display_flush_right):
14211         * gui.c (parse_gui_item_tree_item):
14212         * gui.c (parse_gui_item_tree_children):
14213         * gui.c (parse_gui_item_tree_list):
14214         Mule-ized.  Cleanup.  GCPRO addition.
14215
14216         * line-number.c (buffer_line_number):
14217         * lisp.h:
14218         * lisp.h (EMACS_INT_MAX):
14219         Added the manifest constant EMACS_INT_MIN corresponding to the
14220         existing constant EMACS_INT_MAX.  This is partially to fix compile
14221         warnings under Windows, and partly for cleanliness.
14222
14223         * menubar-msw.c:
14224         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
14225         * menubar-msw.c (msw_translate_menu_or_dialog_item):
14226         * menubar-msw.c (displayable_menu_item):
14227         * menubar-msw.c (populate_menu_add_item):
14228         * menubar-msw.c (populate_or_checksum_helper):
14229         * menubar-msw.c (populate_menu):
14230         * menubar-msw.c (update_frame_menubar_maybe):
14231         * menubar-msw.c (prune_menubar):
14232         * menubar-msw.c (msw_char_is_accelerator):
14233         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
14234         * menubar-msw.c (mswindows_handle_wm_command):
14235         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
14236         * menubar-msw.c (mswindows_handle_wm_initmenu):
14237         * menubar-msw.c (mswindows_update_frame_menubars):
14238         * menubar-msw.c (mswindows_free_frame_menubars):
14239         * menubar-msw.c (mswindows_popup_menu):
14240         Fixed a bug in handling accelerators where an extra character
14241         would be displayed in the menu item.  Also generalized the
14242         function displayable_menu_item because it is now used by the
14243         dialog box code as well.  And finally, added code in the functions
14244         that create the menubar to extract a list of accelerators for the
14245         top level menubar, which is used in the event code to determine
14246         whether a particular alt-key combination should be used to invoke
14247         a menu item, or should be passed through to access the standard
14248         XEmacs keymap binding for this key combination.
14249
14250         Much needed GCPROing.
14251
14252         * menubar-x.c:
14253         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14254         * menubar-x.c (menu_item_descriptor_to_widget_value):
14255         * menubar-x.c (restore_in_menu_callback):
14256         * menubar-x.c (x_popup_menu):
14257         * menubar-x.c (menu_move_up):
14258         * menubar-x.c (menu_move_down):
14259         * menubar-x.c (menu_move_left):
14260         * menubar-x.c (menu_move_right):
14261         * menubar-x.c (menu_select_item):
14262         * menubar-x.c (command_builder_operate_menu_accelerator):
14263         * menubar-x.c (menu_accelerator_junk_on_error):
14264         * menubar-x.c (command_builder_find_menu_accelerator):
14265         * menubar-x.c (Faccelerate_menu):
14266         * menubar.h:
14267         Moved a whole bunch of code here that was previously in
14268         event-stream.c as described above.  There is also code connected
14269         to the new standard of adding an accelerator to the beginning of
14270         menu items that don't have one as described above and below.
14271
14272         * menubar.c:
14273         * menubar.c (menu_parse_submenu_keywords):
14274         * menubar.c (Fmenu_find_real_submenu):
14275         * menubar.c (Fnormalize_menu_item_name):
14276         * menubar.c (syms_of_menubar):
14277         * menubar.c (vars_of_menubar):
14278         * menubar.c (complex_vars_of_menubar):
14279
14280         a) Cleaned up a bunch of documentation and improved it.
14281
14282         b) XEmacs now automatically adds an accelerator onto the beginning
14283         of any menu items that don't have one.  I did this because there
14284         will inevitably be some menu items on the main menubar that don't
14285         have accelerators on them because the package that adds that
14286         particular menu item hasn't yet been fixed up to have accelerators
14287         in them and it looked rather strange to have some items with and
14288         some items without accelerators, especially since even in items
14289         without accelerators, you can, at least under windows, still
14290         access the item through an accelerator corresponding to the first
14291         character in the item's name.  If people don't like this behavior,
14292         I can add a variable to turn it off optionally, but I'm not sure
14293         this is a good idea because we really do need to have accelerators
14294         on all of the menu items, and if a package doesn't like the
14295         accelerators being put on the first character, then it should put
14296         the accelerators where they belong.
14297
14298         c) I made a behavior change, which is that the descriptor that
14299         specifies the text of the menu item, which formerly was just a
14300         string, can now also be an evaluated expression.  This makes this
14301         descriptor parallel with all of the others, which could also be
14302         evaluated expressions.  This also obviates the need for the
14303         keyword :label, which was previously listed in the documentation
14304         as unimplemented, and which was for the same purpose.
14305
14306         d) GCPROing.
14307
14308         * ntproc.c:
14309         * ntproc.c (new_child):
14310         * ntproc.c (sys_spawnve):
14311         * ntproc.c (find_child_console):
14312         * ntproc.c (sys_kill):
14313         Fixed compile warnings.  By the way, this file should really go
14314         away entirely, and this will happen as soon as Kirill makes his
14315         final round of process cleanups, which affect the function
14316         call-process.
14317
14318         * process-nt.c:
14319         * process-nt.c (struct nt_process_data):
14320         * process-nt.c (find_process_from_pid):
14321         * process-nt.c (send_signal_the_nt_way):
14322         * process-nt.c (enable_child_signals):
14323         * process-nt.c (find_child_console):
14324         * process-nt.c (send_signal_the_95_way):
14325         * process-nt.c (nt_finalize_process_data):
14326         * process-nt.c (ensure_console_window_exists):
14327         * process-nt.c (nt_create_process):
14328         * process-nt.c (nt_kill_child_process):
14329         * process-nt.c (nt_kill_process_by_pid):
14330         * process-nt.c (nt_open_network_stream):
14331         * process-nt.c (vars_of_process_nt):
14332         Copied over code from Emacs 20.5 to correctly send signals to sub-
14333         processes under Windows 95.  Also added code to automatically
14334         create and hide console window when a sub-process is created under
14335         Windows 95, which obviates the need for the separate runemacs.exe
14336         executable, and finally implemented some variables that were
14337         implemented in Emacs 20.5, but previously not in XEmacs.  These
14338         include mswindows- start-process-share-console and
14339         mswindows-start-process-inherit-error-mode. (Both of these only
14340         apply to Windows 95.)
14341
14342         * regex.c (regex_compile): Fixed a compile warning.
14343
14344         * select-msw.c:
14345         * select-msw.c (mswindows_own_selection):
14346         * select-msw.c (mswindows_get_foreign_selection):
14347         * select-msw.c (mswindows_disown_selection):
14348         * select-msw.c (console_type_create_select_mswindows):
14349         * select-msw.c (syms_of_select_mswindows):
14350         Cleaned up the file and implemented the device method
14351         selection_exists_p, which had accidentally been left out.  Also
14352         removed four lisp functions that were remnants from before the
14353         time when the selection code was properly device abstracted.
14354         These functions are no longer needed because there are generic
14355         equivalents, and because they were added recently and don't exist
14356         in FSF Emacs, I don't think there's any problem with just deleting
14357         them.
14358
14359         * sysdep.c:
14360         * sysdep.c (sys_subshell):
14361         Fixed a compile warning, although in this case there's probably
14362         something wrong with this code, and it ought to be looked into
14363         more thoroughly by somebody who understands it.
14364
14365         * window.c:
14366         * window.c (Fwindow_text_area_height):
14367         * window.c (Fwindow_width):
14368         * window.c (Fwindow_full_width):
14369         * window.c (Fwindow_pixel_width):
14370         * window.c (debug_print_window):
14371         * window.c (syms_of_window):
14372         Added functions window-text-area-height and window-full-width,
14373         which are functions for returning various width and height
14374         characteristics of a window. (One of these functions is necessary
14375         for making the file dialog box work correctly, and the other one
14376         was added for completeness.)  Also added a table to the
14377         documentation for window-height which describes the entire scheme
14378         for accessing width and height characteristics of a window.
14379
14380 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14381
14382         * nt.c (fstat): Added a comment for another problem with
14383         non-encapsulated [f]stat(), reported by Adrian Aichner
14384         <aichner@ecf.teradyne.com>.
14385
14386 2000-03-11  Andy Piper  <andy@xemacs.org>
14387
14388         * window.c (make_dummy_parent): initialize subwindow instance
14389         cache.
14390         (Fset_window_configuration): zero extent_modiff.
14391
14392 2000-03-10  Andy Piper  <andy@xemacs.org>
14393
14394         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14395         more changes can be triggered.
14396         (Fredisplay_frame): ditto.
14397         (Fredraw_device): ditto.
14398         (Fredisplay_device): ditto.
14399         (redisplay_frame): make non-static.
14400         (redisplay_frame): call update_frame_gutter_geometry outside of
14401         display proper.
14402
14403         * gutter.h: declare update_frame_gutter_geometry.
14404
14405         * redisplay.h: declare redisplay_frame.
14406
14407         * gutter.c (update_frame_gutter_geometry): move geometry changes
14408         in update_frame_gutters here. Geometry changes can only occur
14409         outside of redisplay.
14410         (update_frame_gutters): remove geometry change code.
14411         (Fredisplay_gutter_area): make sure that we are in display when we
14412         update and that we have flushed any size changes.
14413
14414 2000-03-11  Andy Piper  <andy@xemacs.org>
14415
14416         * alloc.c (pdump_dump_data): remove i & count shadows.
14417
14418 2000-02-27  Mike Alexander  <mta@arbortext.com>
14419
14420         * sysdep.h: Declare pdump_read_file
14421
14422         * sysdep.c (pdump_read_file): New function
14423
14424         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14425         dump data
14426
14427 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14428
14429         * lrecord.h: add `lrecord_type_pgsetenv'.
14430
14431 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14432
14433         * symsinit.h: declare (vars|syms)_of* functions.
14434         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14435
14436 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14437
14438         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14439
14440         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14441         GCCs.
14442
14443         * emacs.c (main_1): Call postgres initialization code.
14444
14445         * postgresql.h: New file.  PostgreSQL RDBMS support.
14446         * postgresql.c: New file.
14447
14448 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14449
14450         * redisplay-output.c (redisplay_output_display_block): Disable
14451         redundant code.
14452
14453 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14454
14455         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14456         (Fcanna_henkan_next): Ditto.
14457         (Fcanna_bunsetu_henkou): Ditto.
14458         (Fcanna_henkan_kakutei): Ditto.
14459         (Fcanna_henkan_end): Ditto.
14460         (Fcanna_henkan_quit): Ditto.
14461         (Fcanna_henkan_next): Set retun value correctly.
14462         (c2mu): Use unsigned char instead of signed char.
14463
14464 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14465
14466         * emacs.c (main_1): Always call syms_of_gui.
14467         * inline.c: include gui.h
14468
14469 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14470
14471         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14472         converted to Lisp_Object.
14473         (Qtop_bottom): New variable.
14474         (syms_of_redisplay): Initialize it.
14475         * redisplay.h (Vvisible_bell): Ditto.
14476         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14477         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14478         only flash top and bottom.
14479
14480 2000-03-08  Andy Piper  <andy@xemacs.org>
14481
14482         * buffer.c (Frename_buffer): record new buffer name the right way.
14483
14484 2000-03-08  Andy Piper  <andy@xemacs.org>
14485
14486         * glyphs.c (update_subwindow): increase hash depth so that widget
14487         items get picked up properly.
14488
14489         * redisplay-output.c (compare_runes): increase hash depth so that
14490         widget items get picked up properly.
14491
14492 2000-03-08  Andy Piper  <andy@xemacs.org>
14493
14494         * gutter.c (output_gutter): add some debug.
14495
14496         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14497         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14498         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14499
14500         * redisplay-output.c (compare_runes): use display_hash to
14501         determine if glyphs really are not the same.
14502
14503         * glyphs.c (update_subwindow): check display_hash to see if
14504         anything really needs to be updated. If not then do
14505         nothing. Record the display_hash after updating.
14506         (image_instance_equal): compare the image_instance face also.
14507
14508 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14509
14510         * redisplay.h: Fix comment style.
14511
14512 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14513
14514         * consle-msw.h (struct mswindows_frame):
14515         Added new member paint_pending to indicate whether a WM_PAINT
14516         magic event has been queued for this frame.
14517
14518         * event-msw.c (mswindows_drain_windows_queue):
14519         Don't queue a WM_PAINT magic event if one is already queued.
14520         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14521
14522         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14523
14524 2000-03-07  Didier Verna  <didier@xemacs.org>
14525
14526         * dired.c: #include `regex.h' after `sysfile.h'.
14527
14528 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14529
14530         * sound.c (init_nas_sound): Fix compiler warning.
14531
14532         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14533         (FREE_STRUCT_P):
14534         (MARK_STRUCT_AS_FREE):
14535         (MARK_STRUCT_AS_NOT_FREE):
14536         Make `gcc -fstrict-aliasing' work properly.
14537
14538 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14539
14540         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14541         (mswindows_delete_device): Call CoUnnitialize().
14542
14543         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14544
14545 2000-02-25    <CraigL@DyCon.com>
14546
14547         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14548         <errno.h>.
14549
14550         * sysdep.c: This extern declaration for environ prevents MinGW
14551         from finding the variable in CRTDLL.DLL.
14552
14553         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14554         windows headers.
14555         (SHGFI_EXETYPE): ..
14556         (WM_MOUSEWHEEL): ..
14557         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14558         definitions.
14559         (MMRESULT): Removed, now defined in cygwin's windows headers.
14560         (TIMECAPS): ..
14561         (uid_t,gid_t,pid_t,ssize_t): ..
14562         (_timeb): Removed, MinGW defines both _timeb and timeb.
14563         (HAVE_H_ERRNO): Added.
14564         (HAVE_TZNAME): Added, configure is not detecting this.
14565
14566 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14567
14568         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14569         * syntax.c (syntax_match): Use it.
14570
14571         * cmds.c: Import auto-fill-chars from FSF Emacs.
14572         (Vauto_fill_chars): New variables.
14573         (internal_self_insert): Check Vauto_fill_chars.
14574         (vars_of_cmds):
14575         Declare auto-fill-chars as a Lisp variable and initialize it.
14576
14577 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14578
14579         * fileio.c (Fmake_symbolic_link):
14580         (Ffile_symlink_p):
14581         Run handlers even if local machine doesn't have symlinks.
14582
14583 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14584
14585         * event-msw.c (mswindows_drain_windows_queue):
14586         Don't generate paint magic events for non-XEmacs frames.
14587
14588 2000-03-05  Andy Piper  <andy@xemacs.org>
14589
14590         * redisplay.c (redisplay_frame): generate_displayable_area and
14591         friends assumes that we are not in GC, we therefore have to make
14592         sure that this doesn't happen.
14593
14594         * gutter.c (calculate_gutter_size): generate_displayable_area
14595         assumes that we are not in GC, we therefore have to make sure that
14596         this doesn't happen.
14597
14598 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14599
14600         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14601
14602 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14603
14604         * redisplay.c (regenerate_window): Make sure we set a sane value
14605         for end_pos even if we jump out of the loop.
14606         (regenerate_window): Answer Ben's question :-).
14607         (start_end_of_last_line): Add may_error argument.
14608         (start_of_last_line):
14609         (end_of_last_line): Pass may_error = 0.
14610         (end_of_last_line_may_error): New function.
14611         (pixel_to_glyph_translation): Use it, so we don't crash in
14612         event_to_glyph.
14613
14614 2000-03-04  Andy Piper  <andy@xemacs.org>
14615
14616         * window.h (struct window): add gutter_extent_modiff.
14617
14618         * window.c (allocate_window): zero out gutter_extent_modiff.
14619
14620         * redisplay.h: declare sync_display_line_structs.
14621
14622         * redisplay.c (add_glyph_rune): add a better comment.
14623
14624         * redisplay-output.c (sync_display_line_structs): made non-static.
14625         (compare_runes): remove unneccesary glyph cachel access.
14626
14627         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14628
14629         * gutter.c (output_gutter): don't output the gutter if extent
14630         changes only involve extents in buffers. use 4 sets of display
14631         lines.
14632         (gutter_extent_signal_changed_region_maybe): new function. Mark
14633         extents in gutters as changed.
14634         (update_frame_gutters): use 4 sets of display lines.
14635         (reset_gutter_display_lines): ditto.
14636         (free_frame_gutters): ditto.
14637         (redraw_exposed_gutter): force output of gutters.
14638
14639         * frame.h (struct frame): add 4 sets of gutter display lines.
14640
14641         * extents.c: (extent_changed_for_redisplay): signal changes to
14642         extents in strings in the gutter as well as extents in buffers.
14643
14644 2000-03-02  Andy Piper  <andy@xemacs.org>
14645
14646         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14647
14648         * frame.c (Fmake_frame): make sure the gutters get initialized
14649         after the frame is visible.
14650         (set_frame_selected_window): re-arrange compilation macros a
14651         little.
14652         (change_frame_size_1): mark gutters changed.
14653
14654         * device.c (Fset_device_class): mark gutters changed.
14655
14656 2000-03-01  Andy Piper  <andy@xemacs.org>
14657
14658         * window.c (window_top_frame_gutter_height): deleted.
14659         (window_bottom_frame_gutter_height): ditto.
14660         (window_left_frame_gutter_height): ditto.
14661         (window_right_frame_gutter_height): ditto.
14662         (window_top_gutter_height): don't use them.
14663         (window_bottom_gutter_height): ditto.
14664         (window_left_gutter_width): ditto.
14665         (window_right_gutter_width): ditto.
14666         (Fsplit_window): ditto.
14667         (Fwindow_pixel_edges): don't use border dimensions here.
14668
14669         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14670         (update_scrollbar_instance): ditto.
14671
14672         * redisplay.c (generate_modeline): don't take gutters into account.
14673         (generate_modeline): ditto.
14674         (redisplay_frame): small gutter display optimization.
14675
14676         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14677
14678         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14679         gutters into account.
14680
14681         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14682         for window position and type.
14683
14684         * gutter.c (get_gutter_coords): fix for frame gutters.
14685         (update_frame_gutters): update frame geometry if the gutters have
14686         changed.
14687         (init_frame_gutters): record current gutter geometries.
14688
14689         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14690         var.
14691         (mswindows_widget_instantiate): ditto.
14692
14693         * frame.h (struct frame): add current_gutter_bounds.
14694
14695         * frame.c (change_frame_size_1): position window and minibuffer
14696         appropriately taking into account the frame gutters.
14697
14698         * frame-x.c: (x_initialize_frame_size): take into account the
14699         frame gutters.
14700
14701 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14702
14703         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14704
14705 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14706
14707         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14708
14709 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14710
14711         * file-coding.c (reset_decoding_stream): Clear previous
14712         detection state when autodetect.
14713
14714 2000-02-29  Didier Verna  <didier@xemacs.org>
14715
14716         * extents.c (set_extent_glyph_1): don't require extents to be
14717         attached.
14718
14719 2000-02-27  Andy Piper  <andy@xemacs.org>
14720
14721         * gutter.c (Fset_default_gutter_position): don't default left and
14722         right gutter visibility to t.
14723         (Fset_default_gutter_position): run
14724         default-gutter-position-changed-hook.
14725         (syms_of_gutter): add default-gutter-position-changed-hook.
14726
14727 2000-02-26  Andy Piper  <andy@xemacs.org>
14728
14729         * specifier.c (Fmake_specifier): add gutter references.
14730
14731         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14732
14733         * lisp.h: declare Fvalid_plist_p.
14734
14735         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14736         as changed.
14737         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14738         well as its visibility so that it gets reconstructed.
14739         (construct_window_gutter_spec): new function. Construct a string
14740         to be displayed in the gutter from a plist of strings. Take care
14741         to only use elements that are declared as visible.
14742         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14743         WINDOW_GUTTER.
14744         (gutter_validate): allow plists of strings in the specifier.
14745         (gutter_specs_changed): construct the real_gutter from the gutter
14746         specs using construct_window_gutter_spec.
14747         (gutter_visible_validate): gutter-visible is a new specifier type.
14748         (Fgutter_visible_specifier_p): new function for the new specifier.
14749         (syms_of_gutter): declare gutter-visible and
14750         Fgutter_visible_specifier_p.
14751         (specifier_type_create_gutter): intitalize new gutter-visible
14752         specifier.
14753         (reinit_specifier_type_create_gutter): ditto.
14754         (specifier_vars_of_gutter): use new specifier type for gutter
14755         visibility.
14756         (init_frame_gutters): construct real_gutter correctly.
14757         (Fgutter_specifier_p): beef up documentation.
14758         (Fgutter_size_specifier_p): ditto.
14759
14760         * winslots.h: add real_gutter slots.
14761
14762 2000-02-25  Andy Piper  <andy@xemacs.org>
14763
14764         * device-msw.c: Be kind to older cygwin versions. From Raymond
14765         Toy <toy@rtp.ericsson.se>.
14766
14767         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14768         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14769
14770 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14771
14772         * elhash.c (MARK_OBJ): Practice macro hygiene.
14773
14774 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14775
14776         * miscplay.c: s/__inline__/inline/g;
14777         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14778         (get_device_compdc): INLINE ==> static inline
14779         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14780         find -name '*.h' | \
14781         xargs global-replace \
14782         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14783
14784 2000-02-25  Andy Piper  <andy@xemacs.org>
14785
14786         * window.c (window_top_frame_gutter_height): new function.
14787         (window_top_window_gutter_height): ditto.
14788         (window_top_gutter_height): use them.
14789         (window_bottom_frame_gutter_height): new function.
14790         (window_bottom_window_gutter_height): ditto.
14791         (window_bottom_gutter_height): use them.
14792         (window_left_window_gutter_width): new function.
14793         (window_left_frame_gutter_width): ditto.
14794         (window_left_gutter_width): use them.
14795         (window_right_window_gutter_width): new function.
14796         (window_right_frame_gutter_width): ditto.
14797         (window_right_gutter_width): use them.
14798         (window_pixel_height): new function. calulate window pixel height
14799         with frame gutter involvement.
14800         (Fsplit_window): calculate new sizes taking frame gutters into
14801         account.
14802         (window_char_height_to_pixel_height): don't include frame gutters.
14803         (window_char_height): use window_pixel_height.
14804         (window_pixheight): rename from window_pixel_height.
14805         (change_window_height): use it.
14806         (window_pixel_height_to_char_height): don't include frame gutters.
14807         (window_char_width_to_pixel_width): ditto.
14808
14809 2000-02-25  Andy Piper  <andy@xemacs.org>
14810
14811         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14812         if it is.
14813
14814 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14815
14816         * alloc.c (staticpro):
14817         (staticpro_nodump):
14818         (dumpstruct):
14819         (dumpopaque):
14820         (pdump_wire):
14821         (pdump_wire_list):
14822         (compact_string_chars):
14823         (pdump_dump_wired):
14824         Convert:  if (foo) abort();  ==>  assert (! foo);
14825
14826         * eldap.c (Fldap_search_basic):
14827         (Fldap_add):
14828         (Fldap_modify):
14829         (Fldap_delete):
14830         Fix compiler warnings, and possible crashes if (random) return
14831         value were to be used.
14832
14833 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14834
14835         * device-msw.c: Workaround ResetDC failure.
14836
14837         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14838         applying a devmode.
14839
14840         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14841         (mswindows_text_width): Do not start printer page.
14842
14843         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14844
14845         * glyphs-msw.c: Added image methods to msprinter console and
14846         msprinter-specific image instantiation.
14847
14848 2000-02-20  Mike Alexander  <mta@arbortext.com>
14849
14850         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14851         to avoid crashes when selection-sets-clipboard is on
14852         (mswindows_own_selection): ditto
14853
14854 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14855
14856         * glyphs-msw.c:
14857         * redisplay-msw.c (get_frame_dc):
14858         (get_frame_compdc):
14859         * console-msw.h:
14860         * device-msw.c (mswindows_init_device):
14861         (mswindows_delete_device):
14862         (msprinter_init_device):
14863         (msprinter_delete_device):
14864         * frame-msw.c (mswindows_init_frame_1):
14865         (mswindows_delete_frame):
14866         (msprinter_init_frame_3):
14867         (msprinter_delete_frame): Move compatible DC to device object from
14868         frame object, for both mswindows and msprinter. Only one at a time
14869         is needed, it is a real waste to have one per frame!
14870
14871 2000-02-23  Andy Piper  <andy@xemacs.org>
14872
14873         * glyphs.c: add dynamic width and height elements.
14874         (image_instance_equal): ditto.
14875
14876         * glyphs-widget.c (widget_query_geometry): calculate width and
14877         height dynamically if required.
14878         (initialize_widget_image_instance): initialize dynamic dimensions.
14879         (widget_instantiate): pick-up dynamic dimensions.
14880
14881         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14882         dynamic determination. Add appropriate macros.
14883
14884         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14885         dimensions safe.
14886         (WINDOW_GUTTER_SIZE): ditto.
14887         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14888
14889         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14890         inline.
14891         (get_frame_dc): ditto.
14892
14893         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14894         here.
14895
14896 2000-02-23  Martin Buchholz <martin@xemacs.org>
14897
14898         * XEmacs 21.2.31 is released.
14899
14900 2000-02-22  Ben Wing <ben@xemacs.org>
14901
14902         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14903
14904 2000-02-22  Andy Piper  <andy@xemacs.org>
14905
14906         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14907
14908 2000-02-21  Mike Sperber <mike@xemacs.org>
14909
14910         * .dbxrc:
14911         * .gdbinit:
14912         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14913         variables.
14914
14915 2000-02-21  Mike Sperber <mike@xemacs.org>
14916
14917         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14918
14919 2000-02-21  Martin Buchholz <martin@xemacs.org>
14920
14921         * XEmacs 21.2.30 is released.
14922
14923 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14924
14925         Performance hacking.
14926         * *.c (syms_of_*):
14927         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14928         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14929         * emacs.c (main_1):
14930         * lisp.h (DEFUN):
14931         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14932         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14933         * symeval.h (DEFVAR_SYMVAL_FWD):
14934         * symbols.c (guts_of_unbound_marker):
14935         Make all c_readonly objects also lisp_readonly and marked for life.
14936         * lrecord.h (struct lrecord_implementation):
14937         Document flags better.
14938         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
14939         * lrecord.h (DECLARE_LRECORD):
14940         * lrecord.h (XSETRECORD):
14941         * lrecord.h (RECORDP):
14942         * lrecord.h (RECORD_TYPEP):
14943         * lrecord.h (RECORD_MARKER): New.
14944         * lrecord.h (error_check_*):
14945         * lrecord.h (CONCHECK_NONRECORD):
14946         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
14947         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
14948         * lrecord.h (set_lheader_implementation):
14949         * lrecord.h (enum lrecord_type): New.
14950         * symeval.h (SYMBOL_VALUE_MAGIC_P):
14951         * alloc.c (disksave_object_finalization_1):
14952         * alloc.c (mark_object):
14953         * alloc.c (lrecord_type_index):
14954         * alloc.c (tick_lcrecord_stats):
14955         * alloc.c (Fgarbage_collect):
14956         * alloc.c (init_alloc_once_early):
14957         * alloc.c (pdump_load):
14958         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
14959         * alloc.c (lrecord_type_index): Delete.
14960         Make lisp object type indexes be constant.
14961           Makes (byte-compile) 5% faster.
14962         Put all marker functions into their own array.
14963           Makes (garbage-collect) 5% faster.
14964         Optimize SYMBOL_VALUE_MAGIC_P.
14965           Makes (byte-compile) 2-3% faster.
14966         * config.h.in (gc_checking_assert): New.
14967         * alloc.c: Use gc_checking_assert().
14968         * .dbxrc: Make compatible with new object type implementation.
14969         * .gdbinit: Make compatible with new object type implementation.
14970         * alloc.c: Delete all symbols defined only for debugging, such as
14971         Lisp_Type_Vector and lrecord_charset.
14972
14973 2000-02-21  Andy Piper  <andy@xemacs.org>
14974
14975         * gui-msw.c (Fmswindows_shell_execute): fix file location
14976         problems.
14977
14978         * buffer.c (Fkill_buffer): remove buffer from alist buffer
14979         unshowing so that set_window_buffer doesn't undo
14980         kill_buffer_hook's hard work.
14981
14982         * glyphs-widget.c (tab_control_query_geometry): don't count the
14983         first item when calculating geometry.
14984
14985         * glyphs.c (map_subwindow): remove redundant code.
14986         (update_frame_subwindows): be more circumspect about when to
14987         update subwindows.
14988
14989         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
14990         when items haven't changed. Update faces if faces have changed as
14991         well as just the widget face.
14992         (x_tab_control_update): Update faces if faces have changed as well
14993         as just the widget face.
14994
14995 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14996
14997         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
14998         registration.
14999         (build_syscolor_string): Use mswindows_color_to_string to try to
15000         get a named color.
15001         (mswindows_device_system_metrics): Reverse the foreground and
15002         background colors so that they match the documentation.
15003
15004         * objects-msw.c: (mswindows_X_color_map): tweak some values so
15005         they match the default Windows palette.
15006         (mswindows_color_to_string): New function.
15007
15008 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15009
15010         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
15011
15012 2000-02-18  Olivier Galibert  <galibert@pobox.com>
15013
15014         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
15015         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
15016
15017         * symbols.c (init_symbols_once_early): Removed obsolete
15018         DATA_SEG_BITS related kludge.
15019         (defvar_magic): Ditto.
15020
15021         * malloc.c: Removed obsolete DATA_SEG_BITS
15022         * ralloc.c: Ditto.
15023         * mem-limits.h: Ditto.
15024
15025         * Makefile.in.in: Removed obsolete HAVE_SHM
15026         * emacs.c: Ditto.
15027
15028 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15029
15030         *  device-msw.c (mswindows_delete_device): Free DDE string
15031         handles.
15032
15033 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15034
15035         * keymap.c (get_keyelt):
15036         * unexnt.c (unexec):
15037         * vm-limit.c (memory_warnings):
15038         * ntheap.c (recreate_heap):
15039         * ntheap.h (UNINIT_PTR):
15040         * select-msw.c (Fmswindows_get_clipboard):
15041         (Fmswindows_set_clipboard):
15042         * objects-msw.h (MSWINDOWS_BAD_HFONT):
15043         * objects-msw.c:
15044         * menubar-msw.c (displayable_menu_item):
15045         * glyphs-msw.c:
15046         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
15047         * sysdep.c (sys_subshell):
15048         * process-nt.c (nt_create_process):
15049         * nt.c (normalize_filename):
15050         (dostounix_filename):
15051         (unixtodos_filename):
15052         * ntproc.c (win32_executable_type):
15053         * ntplay.c (play_sound_data_1):
15054         (play_sound_file):
15055         * editfns.c (get_home_directory):
15056         * event-msw.c (struct winsock_stream):
15057         (mswindows_dde_callback):
15058         * device-msw.c (msprinter_init_device):
15059         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
15060
15061         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
15062         mswindows_clear_toolbar were swapped!
15063
15064         * objects-msw.c:(colormap_t):
15065         (fontmap_t):
15066         * emacs.c (struct standard_args): Fixed const jumble.
15067
15068         * glyphs-widget.c (update_widget): Fixed comparison notation.
15069
15070         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
15071
15072         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
15073         __declspec(noreturn) syntax.
15074
15075 2000-02-19  Martin Buchholz  <martin@xemacs.org>
15076
15077         * eldap.c (Fldap_open):
15078         (Fldap_search_basic):
15079         (Fldap_add):
15080         (Fldap_modify):
15081         Use new coding system conversion macros.
15082
15083 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15084
15085         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
15086
15087 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
15088
15089         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
15090         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15091
15092         * eldap.c (Qadd, Qreplace): New constant symbols
15093         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
15094         interruptions by XEmacs signals
15095         Remove unnecessary calls to slow_down_interrupts and
15096         speed_up_interrupts
15097         (Fldap_search_basic): Renamed from Fldap_search_internal
15098         Added new optional parameter VERBOSE that triggers the
15099         display of progress messages
15100         Remove unnecessary calls to slow_down_interrupts and
15101         speed_up_interrupts
15102         LDAP result code analysis rewritten
15103         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15104         (syms_of_eldap): Define the new symbols and functions
15105
15106
15107 2000-02-17  Martin Buchholz  <martin@xemacs.org>
15108
15109         * realpath.c: Determine PATH_MAX maximally portably.
15110
15111         * insdel.c (bytecount_to_charcount): Optimize.
15112         The function used to be optimized for entirely ASCII sequences.
15113         Now it is optimized for successive characters from the same
15114         charset.  This also wins big for _mostly_ ASCII sequences.
15115
15116         * fileio.c (Ffile_truename): convert return from realpath() using
15117         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
15118         - Rewrite GCPROing slightly.
15119
15120         * sysdep.c (sys_open): Do filename conversion, like all other
15121         sys_* functions.  Fixes bug:
15122         (let ((file-name-coding-system 'iso-8859-2))
15123            (write-region x y latin2-name))
15124         ==> writes filename using internal encoding.
15125
15126 2000-02-18  Martin Buchholz  <martin@xemacs.org>
15127
15128         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
15129         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
15130         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
15131         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
15132         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
15133         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
15134         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
15135         (CONST_IF_NOT_DEBUG): Delete.
15136         * alloc.c (this_one_is_unmarkable): Delete.
15137         (mark_object): Don't check for this_one_is_unmarkable. Use the
15138         c_readonly flag instead.
15139         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
15140
15141 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15142
15143         * event-msw.c (mswindows_drain_windows_queue):
15144         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
15145         away redundant repaint events.
15146
15147 2000-02-17  Andy Piper  <andy@xemacs.org>
15148
15149         * redisplay.h: declare mark_redisplay_structs.
15150
15151         * redisplay.c (redisplay_window):
15152         (redisplay_frame): don't check subwindows_state_changed.
15153         (mark_redisplay): mark gutters here.
15154
15155         * glyphs.c: (instantiate_image_instantiator): always layout if we
15156         haven't done so already.
15157         (allocate_image_instance): don't mark as dirty.
15158         (update_subwindow): bind inhibit_quit.
15159
15160         * gutter.c (mark_gutters): new function.
15161
15162         * glyphs-x.c (x_update_widget): Always resize to get round a
15163         widget bug.
15164
15165         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
15166         breaking absolutely everything.
15167
15168         * gutter.h: declare mark_gutters.
15169
15170 2000-02-16  Martin Buchholz <martin@xemacs.org>
15171
15172         * XEmacs 21.2.29 is released.
15173
15174 2000-02-15  Olivier Galibert  <galibert@pobox.com>
15175
15176         * fns.c (size_bit_vector): Fix computation of the size.
15177
15178 2000-02-15  Martin Buchholz  <martin@xemacs.org>
15179
15180         * *.[ch]: Change CONST to const globally.
15181         find -name '*.[ch]' | \
15182         xargs global-replace \
15183         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
15184         - Remove vestigial references to CONST_IS_LOSING
15185
15186 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15187
15188         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
15189         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
15190         events instead of dispatching them directly.
15191         (mswindows_handle_paint): New function to do repainting.
15192         (mswindows_wnd_proc):
15193         (emacs_mswindows_handle_magic_event): Call above function.
15194
15195 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15196
15197         * objects-msw.c (mswindows_create_font_variant): Return the new
15198         font handle.
15199         (initialize_font_instance): Get font metrics from the underlined
15200         variant of the font to cope with the case where the underlined
15201         font has a bigger descent.
15202
15203 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15204
15205         * gui.c (gui_item_accelerator): Return the first underlined
15206         character in item name.
15207
15208 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15209
15210         * lisp.h: Added Qprinter.
15211
15212         * general.c (syms_of_general): Initialized it.
15213
15214         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
15215         (get_frame_dc):
15216         (get_frame_compdc): Made inline.
15217
15218         * console.h (struct console_methods): Added eject_page method.
15219
15220         * frame.h: Added FRAME_DISPLAY_P and friends.
15221         Aligned backslahes in many macros in more readable fashion.
15222         Added page_number to struct frame, and an accessor macro
15223         for it.
15224
15225         * defice.h: Added DEVICE_DISPLAY_P and friends.
15226
15227         * device.c (Fdevice_printer_p): Used these.
15228
15229         * frame.c (allocate_frame_core): Initialize page number.
15230         (Fprint_job_page_number):
15231         (Fprint_job_eject_page): Implemented.
15232
15233         * frame-msw.c (msprinter_eject_page): Added method.
15234         (msprinter_start_page): Added.
15235
15236         * window.c (Fwindow_truncated_p): Fixed docstring.
15237         (Fwindow_last_line_visible_height): Implemented.
15238
15239 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15240
15241         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
15242
15243 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15244
15245         * syntax.c (scan_words): Always advance at least one character.
15246
15247 2000-02-13  Andy Piper  <andy@xemacs.org>
15248
15249         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
15250         to make sure the glyph is in the cachels.
15251
15252         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
15253         global image instance flag.
15254         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
15255         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
15256
15257         * glyphs.c (allocate_image_instance): set dirty bits correctly.
15258         (Fset_image_instance_property): mark layout as changed.
15259         (invalidate_glyph_geometry_maybe): mark layout as changed.
15260         (glyph_width): use new NEEDS_LAYOUT macro.
15261         (glyph_ascent): ditto.
15262         (glyph_descent): ditto.
15263         (glyph_height): ditto.
15264         (image_instance_layout): mark layout as clean after laying out.
15265         (update_subwindow): don't mark layout as clean here.
15266
15267         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
15268         should no longer be needed.
15269
15270         * glyphs-x.c (x_update_widget): sanitize asserts.
15271         (x_finalize_image_instance): sanitize assignment to widgets.
15272
15273         * glyphs-widget.c (widget_instantiate): don't need to clear the
15274         layout flag here.
15275
15276 2000-02-13  Martin Buchholz  <martin@xemacs.org>
15277
15278         * sysdep.c (getcwd): Use standard prototype.
15279         * sysdep.h (getcwd): Use standard prototype.
15280
15281         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
15282         (sequence, start, end).
15283         Remove redundant type checking.
15284         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
15285         view of `caller-protects') to avoid a crash where the real fix was
15286         found elsewhere.
15287
15288 2000-02-12  Martin Buchholz  <martin@xemacs.org>
15289
15290         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
15291
15292         * s/sol2.h: Remove feature macro initialization.
15293
15294         * alloc.c (alloc_lcrecord): Add more type checking assertions.
15295         (vector_hash): New.  Code from internal_hash.
15296         * lrecord.h:
15297         Fix up allocation subsystem comments.
15298
15299         * config.h.in: Add __EXTENSIONS__ for Solaris.
15300
15301         * systime.h (EMACS_GETTIMEOFDAY): New.
15302         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
15303         Remove Solaris-specific code.
15304         Use void* for the (ignored) second arg for gettimeofday().
15305
15306         * elhash.c (hash_table_hash): Implement it, finally.
15307         * elhash.c:  Use hashcode_t.
15308
15309         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
15310         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
15311
15312         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
15313         * fns.c (size_bit_vector):
15314         * alloc.c (size_vector):
15315         (make_vector_internal):
15316         (make_bit_vector_internal):
15317         (sweep_bit_vectors_1):
15318         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
15319
15320 2000-02-10  Martin Buchholz  <martin@xemacs.org>
15321
15322         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
15323         Include strings.h to avoid warnings for bzero and strcasecmp.
15324
15325 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15326
15327         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
15328         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
15329
15330         * fns.c (size_bit_vector): New.  Declare bit vectors as a
15331         sequence.
15332
15333 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15334
15335         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15336         use a value field instead.
15337         (symbol_value_forward_forward): Use value field.
15338         (DEFVAR_SYMVAL_FWD): Use value field.
15339         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
15340         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15341         (DEFVAR_CONST_INT): Ditto.
15342         (DEFVAR_BOOL): Ditto.
15343         (DEFVAR_CONST_BOOL): Ditto.
15344         (DEFVAR_INT_MAGIC): Ditto.
15345         (DEFVAR_BOOL_MAGIC): Ditto.
15346
15347         * symbols.c (guts_of_unbound_marker): Use value field.
15348         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15349         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15350
15351         * lisp.h: Declare dumpopaque and noninteractive1.
15352
15353         * alloc.c (dumpopaque): Added.
15354         (pdump_dump_opaquevec): Added.
15355         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15356         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15357         noninteractive.
15358
15359 2000-02-10  Andy Piper  <andy@xemacs.org>
15360
15361         * glyphs.c (image_instance_layout): if the size changes, mark it
15362         as such.
15363
15364         * redisplay-output.c (redisplay_output_layout): Update the
15365         subwindow here.
15366         (redisplay_output_subwindow): ditto.
15367
15368         * glyphs.c (update_subwindow): make sure we reset flags for
15369         layouts as well as everything else.
15370
15371         * glyphs-widget.c (layout_layout): don't need to set the instances
15372         dimensions here.
15373
15374 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15375
15376         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15377         not HAVE_DLOPEN, which is a lower-level thing.
15378
15379         * .cvsignore: Ignore gmon.out
15380
15381 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15382
15383         * .cvsignore: Ignore portable dumper xemacs.dmp file
15384
15385 2000-02-09  Andy Piper  <andy@xemacs.org>
15386
15387         * redisplay-output.c (redisplay_output_layout): be more clever
15388         about when we output based on the changed flags.
15389
15390         * glyphs.h (struct image_instantiator_methods): add update_method.
15391         (struct Lisp_Image_Instance): add changed flags. Declare new
15392         macros for manipulating them.
15393
15394         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15395         (image_instance_parent_glyph): find an image_instance's parent
15396         glyph or image_instance.
15397         (image_instance_layout): mark the size as changed.
15398         (set_image_instance_dirty_p): new function. mark an image
15399         instance, plus all of its parents, as dirty.
15400         (Fset_image_instance_property): use it.
15401         (Fglyph_animated_timeout_handler): use it.
15402         (update_subwindow): call update_widget and device methods for
15403         update_subwindow. Mark all changed flags as clean.
15404         (Fresize_subwindow): mark size as changed.
15405
15406         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15407         failures.
15408         (x_update_subwindow): only resize subwindows here.
15409         (x_update_widget): new function. Update all changed properties of
15410         a widget.
15411         (x_resize_subwindow): deleted.
15412         (x_widget_set_property): deleted.
15413         (x_progress_gauge_set_property): deleted.
15414         (x_progress_gauge_update): new function. Implement recorded
15415         changes.
15416         (x_tab_control_update): ditto.
15417         (x_tab_control_set_property): deleted.
15418         (console_type_create_glyphs_x): declare new functions.
15419         (image_instantiator_format_create_glyphs_x): ditto.
15420
15421         * glyphs-widget.c (widget_set_property): mark text changed.
15422         (update_widget): new function. Update properties of a widget.
15423         (widget_instantiate): for layouts make sure we set their
15424         children's parent correctly.
15425         (tab_control_set_property): new function. Record changes that will
15426         take place under redisplay's control.
15427         (progress_gauge_set_property): ditto.
15428         (image_instantiator_progress_guage): declare new functions.
15429         (image_instantiator_tab_control): ditto.
15430
15431         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15432         now.
15433         (mswindows_update_widget): new function. Update all properties on
15434         a widget that have changed.
15435         (mswindows_button_update): new function. Update a button's set
15436         state.
15437         (mswindows_tab_control_update): new function. Update the items in
15438         a tab.
15439         (mswindows_tab_control_set_property): deleted.
15440         (mswindows_progress_gauge_update): new function. Update the
15441         progress gauge's progress.
15442         (mswindows_widget_set_property): deleted. This is all done
15443         asynchronously now.
15444         (mswindows_progress_gauge_set_property): ditto.
15445         (console_type_create_glyphs_mswindows): declare new methods.
15446         (image_instantiator_format_create_glyphs_mswindows): ditto.
15447
15448         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15449         (msprinter_set_frame_properties): ditto.
15450
15451         * console.h (struct console_methods): Add update_widget_method.
15452
15453 2000-02-09  Andy Piper  <andy@xemacs.org>
15454
15455         * gui-msw.c (Fmswindows_shell_execute): Make
15456         mswindows-shell-execute industrial strength.
15457
15458 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15459
15460         * lrecord.h: Make macro argument `props' match member function `plist'.
15461         * fns.c (Fget):
15462         * fns.c (Fput):
15463         * fns.c (Fremprop):
15464         * fns.c (Fobject_plist):
15465         * alloc.c:
15466         * symbols.c:
15467         Object property list frobbing cleanup.
15468         - Allow any lisp object (compared with `eq'), not just symbols, as
15469           keys in object plists.
15470         - Move symbol plist frobbing into symbols.c, where it belongs.
15471         - Move string plist frobbing into alloc.c, where it belongs.
15472         - Everything's an lrecord now, so no need to test for symbolp, etc.
15473         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15474
15475         * extents.c: Reorder code to remove declarations.
15476
15477         * frame.h (store_in_alist): Remove useless declaration.
15478
15479 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15480
15481         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15482         * config.h.in: Add HAVE_XCONVERTCASE.
15483
15484 2000-02-07  Andy Piper  <andy@xemacs.org>
15485
15486         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15487         it breaks many things.
15488
15489 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15490
15491         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15492         actually can start a common comment type.
15493         * src/syntax.h (SYNTAX_END_P): ditto for end.
15494
15495 2000-02-07  Martin Buchholz <martin@xemacs.org>
15496
15497         * XEmacs 21.2.28 is released.
15498
15499 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15500
15501         * event-Xt.c (x_keysym_to_character): New.
15502         (maybe_define_x_key_as_self_inserting_character): New.
15503         (x_has_keysym): New.
15504         Auto-define all keys on the keyboard as self-insert-key.
15505
15506 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15507
15508         * menubar.c (vars_of_menubar): A small code simplification.
15509
15510         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15511
15512         * ExternalShell.c:
15513         * ExternalClient.c:
15514         * EmacsShell-sub.c:
15515         * EmacsManager.c:
15516         * EmacsFrame.c:
15517         Use consistent style for specifying X resources.
15518
15519         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15520         This makes (dontusethis-set-symbol-value-handler) actually usable.
15521
15522         * lrecord.h (lrecord_decription_type):
15523         * alloc.c (pdump_register_sub):
15524         (pdump_dump_data):
15525         (pdump_reloc_one):
15526         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15527         Comply with XEmacs coding style.
15528         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15529         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15530
15531         * keymap.c (Faccessible_keymaps):
15532         Make (accessible-keymaps map "\C-h") do the Right Thing.
15533         Make (accessible-keymaps map []) do the Right Thing.
15534         Make (accessible-keymaps map "") do the Right Thing.
15535         (check_keymap_definition_loop): New function.
15536         (keymap_store_internal): Keep luser from shooting self in foot,
15537           via (define-key ctl-x-4-map "p" global-map).
15538         Remove fullness slot from struct Lisp_Keymap, since hash tables
15539         are now reliable.
15540         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15541
15542 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15543
15544         * redisplay.c (init_redisplay): Fix small memory leak.
15545         * elhash.h:
15546         * elhash.c (pdump_reorganize_hash_table):
15547         Rename from reorganize_hash_table. Change prototype.
15548         Reuse the original memory for hentries.  Save 100k.
15549         * alloc.c (PDUMP_READ): new macro.
15550         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15551         * alloc.c: No need to #ifndef before #undef.
15552
15553         * print.c: Allow debug_print() to print readably by modifying
15554         debug_print_readably.  Use consistent variable names.
15555
15556         * .dbxrc: Try to get things to work even if stopped in a function
15557         without source available by explicitly specifying source files.
15558 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15559
15560         * unexnt.c (_start): Removed bogus code which caused loading heap
15561         from differrent executable file.
15562         Removed bogus assignment to _fmode, which caused inconsistencies.
15563
15564 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15565
15566         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15567         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15568         Do not preliminary `#define signal sigset'.
15569
15570         * systime.h: Do not prototype environ on windows nt and cygwin,
15571         this conflicts with system header.
15572
15573         * syssignal.h: Use correct define for WINDOWSNT
15574
15575         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15576         with system header.
15577
15578         * sysdep.c (near start of file): Fixed commentary and rearranged
15579         ifdefs in readable order.
15580         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15581         (start_of_text):
15582         (end_of_text):
15583         (end_of_data): Do not compile in if using PDUMP.
15584
15585         * symsinit.h: Prototyped vars_of_nt().
15586
15587         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15588         (find_child_console): Use it.
15589         (sys_kill): Use it.
15590
15591         * ntheap.h: Do not extern os_subtype.
15592
15593         * ntheap.c (cache_system_info): Do not cache unneeded:
15594         nt_major_version, nt_minor_version and os_subtype.
15595         (recreate_heap): Do not compile in when PDUMPing.
15596
15597         * nt.c (geteuid and friends): Use the new varibale
15598         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15599         (init_user_info): Removed the above mentioned hackery.
15600         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15601         stat has been fixed in the C runtime.
15602         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15603
15604         * file-coding.c (struct file_coding_dump): Do not define
15605         ucs_to_mule_table in the struct if not MULE.
15606         (struct struct lrecord_description fcd_description_1): Do not dump
15607         the above.
15608
15609         * emacs.c (main_1): Call vars_of_nt().
15610         (right before Fdump_emacs_data): Don't need lastfile if using both
15611         portabe dumper and system malloc.
15612
15613         * alloc.c (Fmemory_limit): Conditionalized out.
15614         (pdump): Use OPEN_BINARY for the portable dump file.
15615         (pdump_load): Ditto.
15616
15617 2000-02-02  Mike Alexander  <mta@arbortext.com>
15618
15619         * nt.c (convert_time): Set tm_isdst before calling mktime and
15620         avoid calling it at all if the compiler supports 64 bit integers.
15621         Also initialize utc_base_ft before using it.
15622
15623 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15624
15625         * frame.c (change_frame_size_1): Take f->internal_border_width
15626         into consideration when calculating the width of the frame.
15627
15628 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15629
15630         * window.c (frame_min_height):
15631         (frame_size_valid_p):
15632         (frame_pixsize_valid_p): Added.
15633         (check_frame_size): Generalized.
15634
15635         * window.h: Prototyped the above.
15636
15637         * lisp.h:
15638         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15639         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15640         Deleted Vwin32_* and Vbinary_process_* unused variables.
15641
15642         * device-msw.c (msprinter_init_device): Do not get printer font
15643         list; Added DEVMODE functions.
15644
15645         * frame-msw.c: Added lots of printer code.
15646
15647         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15648         general.c.
15649
15650         * console-msw.h: Added more msprinter device private slots.
15651
15652 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15653
15654         * event-msw.c (key_needs_default_processing_p): Added.
15655         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15656
15657 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15658
15659         * glyphs.c (image_instance_layout): Mark image instance as clean
15660         after layout.
15661         (glyph_dirty_p): Removed redundant function.
15662         (invalidate_glyph_geometry_maybe): Added.
15663         (update_glyph_cachel_data): Call it.
15664
15665         * glyphs.h: Prototyped it.
15666
15667         * redisplay.c (add_glyph_rune): Call it.
15668         (redisplay_window): Reset glyphs cachels when frame faces have
15669         changed, thus forcing recomputation of built-in border glyphs.
15670
15671 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15672
15673         * Makefile.in.in: Make portable dumper and purify play well together.
15674         Add imperfect, but better than nothing, support for pdump.
15675         Remove xemacs.dmp when temacs is re-generated.
15676         Don't ignore errors when dumping xemacs.
15677
15678         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15679
15680 2000-01-28  Andy Piper  <andy@xemacs.org>
15681
15682         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15683         (setup_normal_frame): ditto.
15684         (setup_frame_without_minibuffer): ditto.
15685         (setup_minibuffer_frame): ditto.
15686         (delete_frame_internal): ditto.
15687         (Fmake_frame_invisible): ditto.
15688         (Ficonify_frame): ditto.
15689
15690         * window.h: change Fset_window_buffer signature.
15691
15692         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15693         (Fset_window_buffer): allow recording of buffer if the window is
15694         the selected window.
15695         (window_loop): Use new Fset_window signature.
15696
15697 2000-01-23  Daniel Pittman  <daniel@danann.net>
15698
15699         * config.h.in: Added template for `HAVE_ATHENA_3D'
15700
15701 2000-01-29  Andy Piper  <andy@xemacs.org>
15702
15703         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15704
15705         * gutter.c (output_gutter): Don't output if the window isn't live.
15706
15707 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15708
15709         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15710         of 01/12/00: Moved SetFocus back here where it belongs.
15711
15712 2000-01-23  Andy Piper  <andy@xemacs.org>
15713
15714         * s/cygwin32.h: declare printer things.
15715
15716 2000-01-26  Andy Piper  <andy@xemacs.org>
15717
15718         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15719         Alexander.
15720
15721 2000-01-24  Andy Piper  <andy@xemacs.org>
15722
15723         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15724         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15725
15726         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15727
15728         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15729
15730         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15731
15732         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15733         (mswindows_output_display_block): Avoid local shadows.
15734
15735         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15736         (mswindows_enqueue_mouse_button_event): ditto.
15737         (mswindows_handle_gui_wm_command): remove declaration.
15738
15739         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15740         warnings.
15741
15742         * console-msw.h: Avoid shadows.
15743         (mswindows_get_toolbar_button_text):
15744         (emacs_mswindows_create_stream_pair):
15745         (emacs_mswindows_delete_stream_pair):
15746         (mswindows_handle_toolbar_wm_command): declare.
15747
15748         * device-msw.c (build_syscolor_string): Avoid shadows.
15749
15750 2000-01-23  Andy Piper  <andy@xemacs.org>
15751
15752         * glyphs-widget.c (widget_instantiate): reverse the items for
15753         layouts so that children are in the expected order.
15754
15755 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15756
15757         * ralloc.c: safe_bcopy ==> memmove
15758         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15759         * s/msdos.h: Remove BCOPY macros.
15760         * insdel.c (gap_right): Remove BCOPY conditional code.
15761         * insdel.c (gap_left): Remove BCOPY conditional code.
15762         XEmacs demands a working ANSI C compiler - hence memmove.
15763
15764         * regex.c (regex_compile): Remove accidental use of trigraphs.
15765
15766 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15767
15768         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15769         event timestamp.
15770
15771 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15772
15773         * event-msw.c (mswindows_drain_windows_queue): Added the
15774         parameter.
15775         (mswindows_need_event): Commented the call to
15776         mswindows_drain_windows_queue().
15777         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15778         only.
15779
15780         * console-msw.h: Moved a few function prototypes here from
15781         event-msw.c.
15782
15783         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15784         parameter from unsigned short to unsigned long.
15785         (Fmswindows_shell_execute): Added return value.
15786
15787 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15788
15789         * sysdep.c (init_system_name):
15790           process-unix.c (unix_canonicalized_host_name):
15791         Don't call freeaddrinfo() if getaddrinfo() fails.
15792
15793         * process-unix.c (unix_open_unix_network_stream):
15794         Moved the code to get a port # into address loop.
15795
15796 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15797
15798         * buffer.c (reinit_vars_of_buffer):
15799         The right place to initialize conversion_in_dynarr and
15800         conversion_out_dynarr.
15801
15802         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15803
15804         * process-unix.c (unix_canonicalize_host_name): Muleize.
15805         (unix_open_network_stream): Muleize.
15806
15807         * buffer.h: Fix up prototypes for ralloc.c functions.
15808
15809 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15810         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15811         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15812                 instead of gethostbyname()
15813         * process-unix.c: In unix_canonicalize_host_name() and
15814                 unix_open_network_stream(), add code to use getaddrinfo()
15815                 instead of gethostbyname().
15816
15817 2000-01-27  Daniel Pittman <daniel@danann.net>
15818
15819         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15820         libs when built with flat Athena.
15821
15822 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15823
15824         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15825         Use coding standards for function prototypes.
15826
15827 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15828
15829         * dialog-msw.c (push_lisp_string_as_unicode):
15830         * doc.c (unparesseuxify_doc_string):
15831         * dired.c (Fuser_name_completion_1):
15832         * dired.c (Fuser_name_all_completions):
15833         * dired.c (free_user_cache):
15834         * dired.c (user_name_completion):
15835         * console-x.c (get_display_arg_connection):
15836         * minibuf.c (clear_echo_area_internal):
15837         * minibuf.c (echo_area_append):
15838         * eldap.c (Fldap_open):
15839         * eldap.c (Fldap_search_internal):
15840         * frame-x.c (x_set_frame_text_value):
15841         * frame-x.c (x_set_frame_properties):
15842         * frame-x.c (x_create_widgets):
15843         * redisplay-tty.c (term_get_fkeys_1):
15844         * objects-x.c (x_parse_nearest_color):
15845         * objects-x.c (x_valid_color_name_p):
15846         * objects-x.c (x_initialize_font_instance):
15847         * objects-x.c (x_list_fonts):
15848         * objects-x.c (x_find_charset_font):
15849         * tooltalk.c (Fadd_tooltalk_message_arg):
15850         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15851         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15852         * process-unix.c (unix_create_process):
15853         * ntproc.c (sys_spawnve):
15854         * sound.c (Fplay_sound_file):
15855         * sound.c (Fplay_sound):
15856         * buffer.c (init_initial_directory):
15857         * buffer.c (init_buffer):
15858         * editfns.c (init_editfns):
15859         * editfns.c (Ftemp_directory):
15860         * editfns.c (Fuser_full_name):
15861         * editfns.c (uncache_home_directory):
15862         * editfns.c (get_home_directory):
15863         * editfns.c (Fuser_home_directory):
15864         * editfns.c (Fformat_time_string):
15865         * editfns.c (Fcurrent_time_string):
15866         * gui-x.c (button_item_to_widget_value):
15867         * database.c (Fopen_database):
15868         * event-Xt.c (x_to_emacs_keysym):
15869         * event-Xt.c (x_event_to_emacs_event):
15870         * event-Xt.c (describe_event_window):
15871         * event-msw.c (mswindows_wnd_proc):
15872         * glyphs-eimage.c (jpeg_instantiate):
15873         * glyphs-eimage.c (gif_instantiate):
15874         * glyphs-eimage.c (png_instantiate):
15875         * glyphs-eimage.c (tiff_instantiate):
15876         * glyphs-x.c (xbm_instantiate_1):
15877         * glyphs-x.c (x_xbm_instantiate):
15878         * glyphs-x.c (x_xface_instantiate):
15879         * glyphs-x.c (autodetect_instantiate):
15880         * glyphs-x.c (cursor_font_instantiate):
15881         * glyphs-x.c (x_widget_instantiate):
15882         * glyphs-x.c (x_widget_set_property):
15883         * glyphs-x.c (x_widget_property):
15884         * glyphs-x.c (BUILD_GLYPH_INST):
15885         * print.c (write_string_to_stdio_stream):
15886         * print.c (output_string):
15887         * print.c (Falternate_debugging_output):
15888         * print.c (Fexternal_debugging_output):
15889         * glyphs-msw.c (extract_xpm_color_names):
15890         * glyphs-msw.c (mswindows_xpm_instantiate):
15891         * glyphs-msw.c (bmp_instantiate):
15892         * glyphs-msw.c (resource_name_to_resource):
15893         * glyphs-msw.c (mswindows_resource_instantiate):
15894         * glyphs-msw.c (xbm_instantiate_1):
15895         * glyphs-msw.c (mswindows_xbm_instantiate):
15896         * glyphs-msw.c (mswindows_xface_instantiate):
15897         * glyphs-msw.c (mswindows_widget_instantiate):
15898         * glyphs-msw.c (add_tree_item):
15899         * glyphs-msw.c (add_tab_item):
15900         * glyphs-msw.c (mswindows_combo_box_instantiate):
15901         * glyphs-msw.c (mswindows_widget_property):
15902         * glyphs-msw.c (mswindows_combo_box_property):
15903         * glyphs-msw.c (mswindows_widget_set_property):
15904         * console.c (stuff_buffered_input):
15905         * objects-msw.c (mswindows_initialize_color_instance):
15906         * objects-msw.c (mswindows_valid_color_name_p):
15907         * objects-msw.c (mswindows_list_fonts):
15908         * objects-msw.c (mswindows_font_instance_truename):
15909         * bytecode.c (optimize_compiled_function):
15910         * select-x.c (symbol_to_x_atom):
15911         * select-x.c (x_atom_to_symbol):
15912         * select-x.c (hack_motif_clipboard_selection):
15913         * select-x.c (selection_data_to_lisp_data):
15914         * select-x.c (lisp_data_to_selection_data):
15915         * select-x.c (Fx_get_cutbuffer_internal):
15916         * select-x.c (Fx_store_cutbuffer_internal):
15917         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15918         * buffer.h (TO_INTERNAL_FORMAT): New function.
15919         * emacs.c (make_arg_list_1):
15920         * emacs.c (make_argc_argv):
15921         * emacs.c (main_1):
15922         * emacs.c (Fdump_emacs):
15923         * emacs.c (split_string_by_emchar_1):
15924         * file-coding.h:
15925         * lisp.h:
15926         * lstream.h:
15927         * symsinit.h:
15928         * device-x.c (x_init_device):
15929         * device-x.c (Fx_valid_keysym_name_p):
15930         * device-x.c (Fx_get_font_path):
15931         * device-x.c (Fx_set_font_path):
15932         * glyphs.c (bitmap_to_lisp_data):
15933         * glyphs.c (pixmap_to_lisp_data):
15934         * alloc.c (make_ext_string): Use coding system arguments.  Update
15935         all callers.
15936         * alloc.c (build_string):
15937         * callproc.c (child_setup):
15938         * callproc.c (init_callproc):
15939         * fileio.c (lisp_strerror):
15940         * fileio.c (directory_file_name):
15941         * fileio.c (Fexpand_file_name):
15942         * fileio.c (Ffile_truename):
15943         * fileio.c (Fsysnetunam):
15944         * fileio.c (Fdo_auto_save):
15945         * sysdep.c (sys_readdir):
15946         * tests.c: New file.  Allow adding C tests.
15947         Replace GET_* macros with a more comprehensible and flexible
15948         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
15949         Modify all calls.
15950         Any coding system can be used to do format conversion.
15951         Eliminate enum external_data_format.
15952         Eliminate convert_to_external_format.
15953         Eliminate convert_to_internal_format.
15954         Make sure file-name, keyboard, terminal, and ctext are always
15955         defined as coding systems or aliases.  Make
15956         file-name-coding-system, terminal-coding-system, and
15957         keyboard-coding-system magical variables that are equivalent to
15958         defining the corresponding coding system aliases.
15959
15960         * file-coding.c (Fcoding_system_canonical_name_p): New function.
15961         * file-coding.c (Fcoding_system_alias_p): New function.
15962         * file-coding.c (Fcoding_system_aliasee): New function.
15963         * file-coding.c (append_suffix_to_symbol): New function.
15964         * file-coding.c (dangling_coding_system_alias_p): New function.
15965         * file-coding.c (Ffind_coding_system):
15966         * file-coding.c (Fcopy_coding_system):
15967         * file-coding.c (encode_coding_no_conversion):
15968         * file-coding.c (syms_of_file_coding):
15969         * file-coding.c (vars_of_file_coding):
15970         Rewrite coding system alias code.
15971         Allow nested aliases, like symbolic links.
15972         Allow redefinition of coding system aliases.
15973         Prevent existence of dangling coding system aliases.
15974
15975         * dired.c (Fuser_name_completion_1):
15976         * dired.c (Fuser_name_all_completions):
15977         A crash would happen if user did QUIT in the middle of building
15978         user_name_cache.  Remove redundant code in mainline and unwind_protect.
15979
15980         * lisp.h:
15981         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
15982
15983         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
15984         an unsigned char *.  Update all callers.
15985
15986 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15987
15988         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
15989
15990 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15991
15992         * elhash.c (hentry_description): Use more portable definition.
15993         (resize_hash_table): Initialize new hentries using
15994         xnew_array_and_zero, thereby simplifying the code.
15995
15996         * mule-charset.c (make_charset): Make sure entire object is
15997         initialized, to avoid Purify warnings.
15998
15999         * alloc.c (resize_string): Fix unlikely crash with big strings.
16000
16001 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16002
16003         * realpath.c (xrealpath):
16004         Don't call getwd().
16005
16006 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16007
16008         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
16009
16010 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
16011
16012         * unexelfsgi.c (unexec): Change the way we decide which segment
16013         should be extended.
16014
16015         Assumption that .bss section should be outside the PT_LOADable
16016         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
16017         it's present) is inside the 'data' segment. This would fail the
16018         test which was used to find a segment to grow and cover new
16019         heap. Instead of this assumption, I created another one - on IRIX
16020         the segment to grow should start below .bss and it's address
16021         should extent above the end of .bss. Once this segment is
16022         identified, it's grown to accommodate the new heap and new
16023         zero-length .bss section is added at the end of .data2.
16024
16025 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16026
16027         * eval.c (Feval): Wrong number of arguments should use original
16028         function, not the indirect_function version of it.
16029
16030 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
16031
16032         * glyphs-x.c (x_button_instantiate): Don't add image if
16033         it is not a pixmap.
16034         (x_locate_pixmap_file): Call Fexpand_file_name when file name
16035         is relative.
16036
16037 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
16038
16039         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
16040         declaration.
16041         (DEFVAR_INT_MAGIC): Ditto.
16042         (DEFVAR_BOOL_MAGIC): Ditto.
16043         * glyphs.h: Reindent backslash.
16044
16045 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16046
16047         * glyphs-widget.c (layout_query_geometry):
16048         (layout_layout): Use correct types for gheight, gwidth.
16049
16050 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16051
16052         * EmacsManager.c (QueryGeometry): Purified.
16053
16054 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16055
16056         * alloc.c (make_float): Make sure entire object is initialized, to
16057         avoid Purify warnings.
16058         (pdump_register_sub): Remove useless assignment.
16059         (pdump): Use xmalloc, not malloc.
16060         (pdump_load): Use xmalloc, not malloc.
16061
16062 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16063
16064         * callproc.c:
16065         * dired-msw.c:
16066         * fileio.c:
16067         * process-nt.c:
16068         * redisplay-msw.c:
16069         * sysdep.c: Removed redundant #include <windows.h>
16070
16071 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16072
16073         * frame.c (delete_frame_internal): Do not delete device when its
16074         implementation so declares.
16075         (delete_frame_internal): Set device selected frame to nil when
16076         last frame goes away.
16077
16078         * device-msw.c (msprinter_device_system_metrics): Implemented.
16079         (mswindows_device_system_metrics): Added 'device-dpi property.
16080
16081         * device.c: (Fdevice_printer_p): Added.
16082         Added 'offset-workspace device metric.
16083
16084         * console.h (device_metrics): Declared DM_offset_workspace.
16085
16086 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16087
16088         * fileio.c (Ffile_truename): Remove pointless and confusing
16089         initialization of elen.
16090
16091         * glyphs-widget.c: Compiler warning fixes.
16092
16093 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
16094
16095         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
16096         instead of a Lisp_Object as argument to make it consistent with
16097         the other LIVE_P macros.
16098         (CHECK_LIVE_PROCESS): New macro.
16099
16100         * process.c: Declare Qprocess_live_p.
16101         (Fprocess_live_p): New function.
16102         (create_process): Use PROCESS_LIVE_P.
16103         (read_process_output): Ditto.
16104         (set_process_filter): Ditto.
16105         (Fdelete_process): Ditto.
16106         (kill_buffer_processes): Ditto
16107         (process_send_signal): Use CHECK_LIVE_PROCESS.
16108         (Fprocess_input_coding_system): Check whether process is still
16109         alive (fix PR#1061).
16110         (Fprocess_output_coding_system): Ditto.
16111         (Fprocess_coding_system): Ditto.
16112         (Fset_process_input_coding_system): Ditto.
16113         (Fset_process_output_coding_system): Ditto.
16114
16115 2000-01-23  Andy Piper  <andy@xemacs.org>
16116
16117         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
16118         layout and widget.
16119
16120         * glyphs.c (mark_image_instance): take into account changed
16121         image_instance format.
16122         (image_instance_equal): ditto.
16123         (image_instance_hash): ditto.
16124
16125         * glyphs-widget.c (widget_instantiate): Incorporate layout
16126         instantiation here. Delay layout of the layout until later.
16127         (layout_instantiate): deleted.
16128         (layout_query_geometry): new function. get the geometry of a
16129         layout.
16130         (layout_layout): layout a layout dynamically.
16131         (image_instantiator_widget): New function - splitting up
16132         image_instantiator_format_create_glyphs_widget for netwinder
16133         compilation.
16134         (image_instantiator_buttons):
16135         (image_instantiator_edit_fields):
16136         (image_instantiator_combo_box):
16137         (image_instantiator_scrollbar):
16138         (image_instantiator_progress_guage):
16139         (image_instantiator_tree_view):
16140         (image_instantiator_tab_control):
16141         (image_instantiator_labels):
16142         (image_instantiator_layout): ditto.
16143         (image_instantiator_format_create_glyphs_widget): Call preceding
16144         functions.
16145
16146 2000-01-22  Martin Buchholz  <martin@xemacs.org>
16147
16148         * process.c (Fset_process_coding_system):
16149         * device-x.c (Fx_keysym_hash_table):
16150         Docstring fixes.
16151
16152         * lstream.c (Lstream_write): Return documented value, not 0.
16153
16154         * fileio.c (directory_file_name):
16155         (Fsubstitute_in_file_name):
16156         (Fsubstitute_insert_file_contents_internal):
16157         (Fwrite_region_internal):
16158         * emacs.c:
16159         * sysdep.c:
16160         * getloadavg.c:
16161         * systty.h:
16162         Remove vestigial APOLLO-conditional code.
16163
16164 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16165
16166         * getpagesize.h: Add guard macros.
16167         * libsst.h: Add guard macros.
16168         * libst.h: Add guard macros.
16169         * line-number.h: Add guard macros.
16170         * ndir.h: Add guard macros.
16171         * sysfloat.h: Add guard macros.
16172         * sysfile.h: Add guard macros.
16173         * sysproc.h: Add guard macros.
16174         * syswait.h: Add guard macros.
16175         * xintrinsic.h: Add guard macros.
16176         * xintrinsicp.h: Add guard macros.
16177         * xmmanager.h: Add guard macros.
16178         * xmmanagerp.h: Add guard macros.
16179         * xmprimitive.h: Add guard macros.
16180         * xmu.h: Add guard macros.
16181         * gpmevent.h: Add copyright statement. Add guard macros.
16182         * miscplay.h: Add guard macros.
16183         * *.h: Use consistent C-standards-approved guard macro names.
16184
16185         * opaque.c (make_opaque): Switch parameter order.
16186         * opaque.h (make_opaque): Switch parameter order.
16187         Update all callers.
16188         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
16189
16190         * config.h.in (type_checking_assert): Added.
16191         (bufpos_checking_assert): Added.
16192
16193 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16194
16195         * alloc.c: Harmless pdump changes.
16196         - Use countof().
16197         - spell alignment correctly.
16198         * sysdep.c: Use countof()
16199
16200 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16201
16202         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
16203         initially_selected_for_input() console method, default to 0.
16204         (semi_canonicalize_console_connection): Try to delegate to
16205         canonicalize_console_connection if no such console method.
16206         (canonicalize_console_connection): Vice versa.
16207         (print_console): Do not print nil connection.
16208
16209         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
16210         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
16211         (XDEVIMPF_FRAMELESS_OK): Added.
16212         (CONSOLE_INHERITS_METHOD): Added.
16213
16214         * console-msw.c (mswindows_canonicalize_console_connection):
16215         Added.
16216         (mswindows_canonicalize_device_connection): Added.
16217
16218         * console-msw.h (struct msprinter_device): Added this struct and
16219         accessor macros.
16220         (mswindows_device): Made fontlist a lisp object.
16221
16222         * device.c (semi_canonicalize_device_connection):  Try to delegate
16223         to canonicalize_device_connection if no such console method.
16224         (canonicalize_device_connection): Vice versa.
16225         (print_device): Do not print nil connection.
16226
16227         * device-msw.c (mswindows_init_device): Call InitCommonControls
16228         when have widgets.
16229         (mswindows_delete_device): Removed fontlist deallocation.
16230         (mswindows_mark_device): Added.
16231
16232         * events.c (event_equal): Added abort() at unreached code.
16233         (event_hash): Ditto.
16234
16235         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
16236         fallback tags of Windows devices.
16237
16238         * general.c (syms_of_general): Initialized Qmsprinter.
16239
16240         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
16241         of fallback tags of Windows devices.
16242
16243         * lisp.h: Declared Qmsprinter.
16244
16245         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
16246         of strings.
16247         (mswindows_list_fonts): Ditto.
16248         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
16249         that it can be used by both mswindows and msprinter devices.
16250         (initialize_font_instance): Added.
16251         (mswindows_initialize_font_instance): Use it.
16252         (msprinter_initialize_font_instance): Added.
16253
16254         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
16255         and implementation flags check.
16256         (redisplay_without_hooks): Changed the call to the above.
16257         (Fredraw_device): Ditto.
16258         (Fredisplay_device): Ditto.
16259
16260         * redisplay-msw.c (get_frame_dc): Implemented.
16261         (get_frame_compdc): Implemented.
16262         (many functions): Use the two functions above to get device
16263         contexts, ether for a window or a printer.
16264
16265 2000-01-21  Olivier Galibert  <galibert@pobox.com>
16266
16267         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
16268         initialization here.
16269         (init_symbols_once_early): Call it.
16270         * emacs.c (main_1): Call it.
16271         * symsinit.h: Declare it.
16272
16273 2000-01-19  Olivier Galibert  <galibert@pobox.com>
16274
16275         * alloc.c: Use a lrecord_header * in the backtrace instead of a
16276         Lisp_Object.
16277         (pdump_backtrace): Ditto.
16278         (pdump_register_object): Ditto.  Cleanup use of the pointers.
16279         (pdump_get_entry): Abort if trying to register a null pointer.
16280         (pdump_dump_data): Cleanup types when relocating.
16281         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
16282         (pdump_dump_rtables): Remove bad casts.
16283         (pdump_load): Cleanup relocation w.r.t union type.  Use a
16284         Lisp_Object instead of a EMACS_INT for the hashtable
16285         reorganization.
16286
16287 2000-01-20  Martin Buchholz  <martin@xemacs.org>
16288
16289         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
16290
16291         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
16292
16293         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
16294
16295         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
16296
16297 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16298
16299         * faces.h (FACE_STRIKETHRU_P): Added.
16300
16301         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
16302         of font variants.
16303
16304         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
16305         (mswindows_set_dc_font): New function, aware of font variants,
16306         separated from mswindows_update_dc.
16307
16308         * objects-msw.h (struct mswindows_font_instance_data): Added
16309         definition.
16310
16311         * objects-msw.c (mswindows_finalize_font_instance): Delete all
16312         cached fonts and the data structure.
16313         (mswindows_initialize_font_instance): Added creation of font data
16314         structure.
16315         (mswindows_print_font_instance): Print at least something.
16316         (mswindows_create_font_variant): Implemented.
16317         (mswindows_get_hfont): Implemented.
16318
16319 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
16320
16321         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
16322         prototyping problem with msvc.
16323
16324         * emacs.c (main_1): added syms_of_gui_mswindows() call
16325
16326         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
16327         syms_of_gui_mswindows() function
16328
16329         * symsinit.h: added the prototype for syms_of_gui_mswindows()
16330
16331 2000-01-18  Martin Buchholz <martin@xemacs.org>
16332
16333         * XEmacs 21.2.27 is released.
16334
16335 2000-01-18  Martin Buchholz  <martin@xemacs.org>
16336
16337         * glyphs-eimage.c (struct tiff_error_struct):
16338         (tiff_error_func):
16339         (tiff_warning_func):
16340         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16341
16342         * unexmips.c:
16343         * unexhp9k3.c:
16344         * unexfreebsd.c:
16345         * unexec.c: Remove vestigial Lucid C code.
16346         * unexalpha.c:
16347         * unexaix.c:
16348         * termcap.c:
16349         * libsst.c: Ansify.
16350         Remove declarations of errno and strerror().
16351
16352         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16353
16354         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16355
16356 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16357
16358         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16359         Optimize.
16360
16361 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16362
16363         * md5.c:
16364         * file-coding.c:
16365         * file-coding.h:
16366         Change enum eol_type to eol_type_t.
16367
16368 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16369
16370         * gui.c (get_gui_callback): Check cons before accessing car.
16371
16372 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16373
16374         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16375         (XSETSPECIFIER_TYPE): Ditto.
16376
16377 2000-01-17  Didier Verna  <didier@xemacs.org>
16378
16379         * redisplay.c (generate_fstring_runes): compute string size in
16380         characters, not bytes.
16381
16382 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16383
16384         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16385
16386 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16387
16388         * print.c (print_error_message): Call print_prepare().
16389
16390 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16391
16392         * .dbxrc: Renamed from dbxrc.
16393
16394         * events.c (event_to_character):
16395         Use `assert (foo)' instead of `if (!foo) abort()'
16396
16397         * .gdbinit (xtype): Add documentation.
16398         * .gdbinit (check-temacs): New function.
16399         * .gdbinit (check-xemacs): New function.
16400         * dbxrc (check-xemacs): New function.
16401         * dbxrc (check-xemacs): New function.
16402
16403 2000-01-14  Andy Piper  <andy@xemacs.org>
16404
16405         * glyphs-widget.c (widget_query_geometry): Make sure that we
16406         calculate default dimensions correctly.
16407
16408 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16409
16410         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16411
16412         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16413         pdump_wire'd variable.
16414
16415         * emacs.c: (main_1): Conditionalized calls to
16416         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16417
16418 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16419
16420         * window.c (Fset_window_configuration):
16421         * sysdep.c (_start):
16422         * input-method-motif.c (res):
16423         * event-Xt.c (Xt_process_to_emacs_event):
16424         Simple compiler warning fixes.
16425
16426         * bytecode.c (funcall_compiled_function): Use the original
16427         function symbol on the backtrace list in preference to the
16428         compiled_function object in error messages.
16429
16430 2000-01-13  Andy Piper  <andy@xemacs.org>
16431
16432         * glyphs-x.c (update_widget_face): Make sure we update the widget
16433         background as well as foreground.
16434
16435 2000-01-13  Andy Piper  <andy@xemacs.org>
16436
16437         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16438         fields to subwindow.
16439         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16440         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16441         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16442         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16443
16444         * glyphs-widget.c (check_valid_tab_orientation): new function.
16445         (initialize_widget_image_instance): zero orientation and
16446         justification.
16447         (widget_instantiate): pick up orientation.
16448         (tab_control_query_geometry): return appropriate values for
16449         vertical tabs.
16450
16451         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16452         appropriate creation flags for left, right and bottom tabs.
16453
16454         * s/cygwin32.h: add tab definitions.
16455
16456 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16457
16458         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16459         frame upon hiding a subwindow.
16460         (mswindows_button_instantiate): Changed the push button style to
16461         BS_PUSHBUTTON.
16462         (mswindows_button_instantiate): Removed button BS_NOTIFY
16463         style.
16464         (mswindows_button_instantiate): Removed redundant check for
16465         a disabled gui item.
16466         (mswindows_button_instantiate): Made use of WS_TABSTOP
16467         consistent: "operable" controls (edit, button, tree, scroll) have
16468         this style, "display-only" ones (static, progress gauge) do
16469         not. This style is currently ignored by XEmacs though. Also,
16470         removed the WS_EX_CONTROLPARENT style - it is not for children,
16471         it is for their parents!
16472         (mswindows_edit_field_instantiate): Ditto.
16473         (mswindows_progress_gauge_instantiate): Ditto.
16474         (mswindows_tree_view_instantiate): Ditto.
16475         (mswindows_tab_control_instantiate): Ditto.
16476         (mswindows_scrollbar_instantiate): Ditto.
16477         (mswindows_combo_box_instantiate): Ditto.
16478         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16479         style to the "clip" window.
16480         (mswindows_button_instantiate): Removed compilation warning by
16481         equally typing terms of the ?: operator.
16482
16483 2000-01-12  Didier Verna  <didier@xemacs.org>
16484
16485         * redisplay.c (generate_fstring_runes): new parameter holding the
16486         last modeline-format extent.
16487         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16488         extent, fill the glyph block with it.
16489         (generate_fstring_runes): handle these parameters.
16490         (generate_formatted_string_db): ditto.
16491
16492         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16493         glyphs'extents in the modeline.
16494
16495 1999-01-11  Mike Woolley  <mike@bulsara.com>
16496
16497         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16498         256Mb, as a workaround for the non-starting problem many people
16499         have experienced.
16500
16501 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16502
16503         * console-tty.c (Fset_console_tty_output_coding_system):
16504         Force redrawing tty frame.
16505
16506 2000-01-10  Didier Verna  <didier@xemacs.org>
16507
16508         * redisplay.c (generate_fstring_runes): fix size computation bug.
16509
16510 2000-01-09  William M. Perry <wmperry@aventail.com>
16511
16512         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16513
16514 2000-01-09  Andy Piper  <andy@xemacs.org>
16515
16516         * glyphs-msw.c: index -> i to avoid shadows.
16517         (xbm_create_bitmap_from_data): make static.
16518         (check_valid_string_or_int): deleted.
16519         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16520
16521         * glyphs-x.c (x_update_subwindow): remove unused args.
16522
16523         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16524         back pointer - this is done in allocate_image_instance.
16525         (query_string_font): return Qnil to make the compiler happy.
16526         (unmap_subwindow): set to ~0 to make the compiler happy.
16527         (glyph_query_geometry): comment out until used.
16528         (glyph_layout): ditto.
16529
16530 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16531
16532         * insdel.c (signal_after_change): Remove extraneous unbind_to().