update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * fns.c (simplify_char_spec): Use Fdefine_char instead of
4         Ffind_char for char-spec.
5
6 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
7
8         * lisp-disunion.h (XCHARVAL): Fix condition about
9         SIZEOF_EMACS_INT.
10
11 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
12
13         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
14         <int> for `code'.
15         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
16         point; use <Emchar> instead of <int> for character-id.
17
18 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
19
20         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
21         (make_char): Likewise.
22         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
23         environment.
24         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
25         instead of <int> as the type of return value; use <Lisp_Object>
26         instead of <Emchar> as the type of argument.
27         (XCHARVAL[macro version]): Cast the result into <Emchar>.
28
29         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
30         syntaxcode> instead of <int>.
31
32 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
33
34         * chartab.c (put_char_composition): Use DECODE_CHAR to get
35         character corresponding with UCS code point.
36         (Fput_char_attribute): Likewise.
37
38         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
39         character in the UCS decoding-table if the char-id is not equal to
40         the UCS code point.
41
42 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
43
44         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
45         for aliases; write `description'; write
46         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
47         not 0.
48
49 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
50
51         * chartab.c (Fsave_char_attribute_table): Don't use
52         `save_charset_properties'.
53
54         * mule-charset.c (Fsave_charset_properties): Renamed from
55         `save_charset_properties' and changed to Lisp function again;
56         write property `type' as `CCS'; write properties `final-byte' and
57         `mother' if they exists.
58         (syms_of_mule_charset): Revive builtin function
59         `save-charset-properties' when HAVE_LIBCHISE is defined.
60
61 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
62
63         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
64         instead of Vexec_directory.
65         (char_attribute_system_db_file): Likewise.
66
67 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
68
69         * chartab.c (Fsave_char_attribute_table): Use
70         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
71         defined.
72
73         * mule-charset.c (save_charset_properties): Renamed from
74         `Fsave_charset_properties'; changed to non-Lisp function.
75         (syms_of_mule_charset): Abolish builtin function
76         `save-charset-properties'.
77
78 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
79
80         * mule-charset.c (Fsave_charset_properties): New function when
81         HAVE_LIBCHISE is defined.
82         (syms_of_mule_charset): Add new builtin function
83         `save-charset-properties' when HAVE_LIBCHISE is defined.
84
85 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
86
87         * chartab.c (Fput_char_attribute): Convert char-specs in value of
88         `{<-|->}ancient[^*]*' to characters and put reverse links.
89         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
90         for `{<-|->}ancient[^*]*'.
91
92 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
93
94         * chartab.c (Fput_char_attribute): Convert char-specs in value of
95         `{<-|->}original[^*]*' to characters and put reverse links.
96         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
97         for `{<-|->}original[^*]*'.
98
99 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
100
101         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
102
103 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
104
105         * mule-charset.c (Qsystem_char_id): New variable.
106
107         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
108         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
109
110 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
111
112         * chartab.c (Fput_char_attribute): When processing a reference of
113         a character, put into the end of the reversed reference of each
114         target character.
115
116 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
117
118         * chartab.c (Q_same): Deleted.
119         (Q_same_of): Deleted.
120         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
121         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
122         for `{<-|->}same'.
123         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
124
125 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
126
127         * chartab.c (Q_vulgar): Deleted.
128         (Q_vulgar_of): Deleted.
129         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
130         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
131         for `{<-|->}vulgar'.
132         (syms_of_chartab): Don't define `{<-|->}vulgar'.
133
134 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
135
136         * chartab.c (Fput_char_attribute): Convert char-specs in value of
137         `{<-|->}wrong[^*]*' to characters and put reverse links.
138         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
139         for `{<-|->}wrong[^*]*'.
140
141 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
142
143         * chartab.c (Q_vulgar): New variable.
144         (Q_vulgar_of): New variable.
145         (Fput_char_attribute): Convert char-specs in value of
146         `{->|<-}vulgar' to characters and put reverse links.
147         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
148         for `{->|<-}vulgar'.
149         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
150
151 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
152
153         * text-coding.c (decode_add_er_char): Must to quote prefix string
154         as regexp.
155
156 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
157
158         * mule-charset.c (put_char_ccs_code_point): Store characters of
159         =ucs whose code_points >= 0xF0000.
160
161 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
162
163         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
164         CHISE.
165         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
166         CHISE.
167         (complex_vars_of_mule_charset): Add new coded-charset
168         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
169         builtin characters over 0xEFFFF.
170
171         * chartab.c (syms_of_chartab): Don't define symbol
172         `system-char-id' in every case.
173
174         * char-ucs.h (Qsystem_char_id): New extern variable.
175         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
176
177 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
178
179         * text-coding.c (char_encode_utf8): Try to use entity-references
180         for U-000F0000 ...  U-0010FFFF.
181
182 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
183
184         * text-coding.c (ER_BUF_SIZE): New macro.
185         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
186         `er_buf'.
187         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
188         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
189
190 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
191
192         * chartab.c (find_char_feature_in_family): New function.
193         (Fchar_feature): Use `find_char_feature_in_family' with
194         `->identical', `<-subsumptive' and `<-denotational'.
195
196 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
197
198         * text-coding.c (char_encode_as_entity_reference): Allow prefix
199         within 8 characters; fix infinite loop.
200
201 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
202
203         * chartab.c (Q_same): New variable.
204         (Q_same_of): New variable.
205         (Fput_char_attribute): Convert char-specs in value of
206         `{->|<-}same' to characters and put reverse links.
207         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
208         for `{->|<-}same'.
209         (syms_of_chartab): Add new symbols `{->|<-}same'.
210
211 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
212
213         * chartab.c (Q_component): New variable.
214         (Q_component_of): Likewise.
215         (Fput_char_attribute): Convert char-specs in value of
216         `{->|<-}ideographic-component-forms' to characters and put reverse
217         links.
218         (syms_of_chartab): Add new symbols
219         `{->|<-}ideographic-component-forms'.
220
221 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
222
223         * chartab.c (Q_identical): New variable.
224         (Q_identical_from): New variable.
225         (Fchar_feature): Regard `->identical' as a feature to find
226         ancestors.
227         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
228         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
229         for `{->|<-}identical'.
230         (syms_of_chartab): Add new symbols `{->|<-}identical'.
231
232 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
233
234         * char-ucs.h (encode_char_2): New inline function.
235         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
236
237 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
238
239         * chartab.c (Fput_char_attribute): Convert char-specs to
240         characters in value of `ideographic-structure'.
241         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
242         for `{<-|->}simplified(@...)'.
243         (Fdefine_char): bTry to use predefined character's id.
244
245 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
246
247         * fns.c (simplify_char_spec): Try to convert builtin chars to
248         defined chars.
249
250 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
251
252         * chartab.c (Fput_char_attribute): Convert char-specs in value of
253         `<-simplified[^*]*' to characters and put reverse links.
254
255 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
256
257         * chartab.c (Q_subsumptive): Renamed from Q_unified.
258         (Q_subsumptive_from): Renamed from Q_unified_from.
259         (Fchar_feature): Use `Q_subsumptive_from' instead of
260         `Q_unified_from'.
261         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
262         `Q_unified'.
263         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
264         `<-unified' to `<-subsumptive'.
265
266 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
267
268         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
269         inheritance itself; fix typo; stop recursive search if cyclic
270         inheritance is found.
271
272 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
273
274         * chartab.c (Q_denotational): New variable.
275         (Q_denotational_from): New variable.
276         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
277         (put_char_attribute): New function.
278         (Fput_char_attribute): Use `put_char_attribute'; regard
279         `->denotational' and `<-denotational' as same as `->unified' and
280         `<-unified'.
281         (syms_of_chartab): Add new symbols `->denotational' and
282         `<-denotational'.
283
284 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
285
286         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
287         `Fget_char_attribute'.
288         (Fchar_variants): Likewise.
289         (get_char_table): Likewise.
290         (Fchar_feature): New function.
291         (put_char_composition): Use `Fchar_feature' instead of
292         `Fget_char_attribute'.
293         (Fput_char_attribute): Likewise; don't put the target character
294         into its `->unified' value.
295         (syms_of_chartab): Add new builtin function `char-feature'.
296
297 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
298
299         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
300         `Fget_char_attribute'.
301         (char_encode_utf8): Likewise.
302
303         * chartab.h: Add an EXFUN for `Fchar_feature'.
304
305 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
306
307         * chartab.c (Vnext_defined_char_id): New variable.
308         (Fput_char_attribute): Accept characters in `->unified'.
309         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
310         new characters which are not related with builtin char-id ranges.
311         (vars_of_chartab): Add new variable `next-defined-char-id'.
312
313 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
314
315         * chartab.c (Q_unified): New variable.
316         (Q_unified_from): New variable.
317         (Fput_char_attribute): Add code for `->unified'.
318         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
319         XEmacs CHISE.
320
321 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
322
323         * mule-charset.c (decode_ccs_conversion): New function.
324         (decode_defined_char): Use `decode_ccs_conversion'.
325         (decode_builtin_char): Likewise.
326
327 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
328
329         * char-ucs.h: Change some charset-ids of private coded-charsets.
330
331 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
332
333         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
334         (char_encode_as_entity_reference): Likewise.
335         (decode_coding_big5): Modify for `decode_defined_char' and
336         `DECODE_CHAR'.
337         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
338         avoid compiler warning.
339         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
340
341         * mule-charset.c (decode_defined_char): Add new argument
342         `without_inheritance'.
343         (Fdecode_char): Add new optional argument `without_inheritance'.
344         (Fdecode_builtin_char): Modify for `Fdecode_char'.
345
346         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
347         (simplify_char_spec): Likewise.
348
349         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
350         setting.
351
352         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
353         (map_char_table): Likewise.
354         (Fdefine_char): Use `Fdecode_char' without inheritance.
355         (Ffind_char): Modify for `Fdecode_char'.
356
357         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
358
359         * char-ucs.h (decode_defined_char): Add new argument
360         `without_inheritance'.
361         (DECODE_CHAR): Likewise.
362         (MAKE_CHAR): Modify for `DECODE_CHAR'.
363
364 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
365
366         * chartab.c (Vchise_system_db_directory): New variable.
367         (vars_of_chartab): Add new variable `chise-system-db-directory'.
368
369 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
370
371         * chartab.c: EXFUN `Fmount_char_attribute_table'.
372         (print_chartab_range): Don't define when `UTF2000' is defined.
373         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
374         `CHISE_DS_open'.
375
376 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
377
378         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
379         and optional argument `rehash' is specified, call
380         `open_chise_data_source_maybe' before
381         `chise_ds_foreach_char_feature_name' is called.
382
383 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
384
385         * chartab.c (char_attribute_list_reset_map_func): New function
386         when HAVE_LIBCHISE is defined.
387         (Fchar_attribute_list): Add new optional argument `rehash' when
388         HAVE_LIBCHISE is defined.
389         (open_chise_data_source_maybe): Use "chise-db" instead of
390         "char-db".
391         (char_attribute_system_db_file): Likewise.
392         (Fload_char_attribute_table): Use
393         `chise_feature_foreach_char_with_value' instead of
394         `chise_char_feature_value_iterate'.
395
396 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
397
398         * chartab.c (Vchise_db_directory): New variable.
399         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
400
401 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
402
403         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
404         instead of HAVE_CHISE to specify using with libchise.
405
406         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
407
408         * chartab.h: Don't use HAVE_CHISE_CLIENT.
409
410         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
411         defined or HAVE_LIBCHISE_LIBCHISE is defined.
412         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
413         is defined.
414         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
415         HAVE_CHISE to specify using with libchise.
416         (syms_of_chartab): Don't define symbol `system-char-id' when
417         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
418
419 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
420
421         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
422         specify CHISE DB support.
423         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
424         of `char_attribute_system_db_file' to check feature DB file.
425
426         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
427         HAVE_CHISE_CLIENT to specify CHISE DB support.
428
429         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
430         specify CHISE DB support.
431         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
432         not defined.
433         (Freset_char_attribute_table): Use `chise_feature_setup_db'
434         instead of `char_attribute_system_db_file' to check feature DB
435         file.
436
437 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
438
439         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
440         `HAVE_CHISE_CLIENT'.
441
442 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
443
444         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
445         (Fsave_charset_mapping_table): Don't use
446         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
447
448         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
449         (HAVE_LIBCHISE): New macro.
450
451         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
452
453         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
454         (Fsave_char_attribute_table): Don't use
455         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
456
457 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
458
459         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
460         defined.
461         (save_uint16_byte_table): Likewise.
462         (save_byte_table): Likewise.
463         (char_table_get_db): Use `chise_ds_load_char_feature_value'
464         instead of `chise_char_load_feature_value'.
465         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
466
467 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
468
469         * chartab.h (struct Lisp_Char_Table): Delete member
470         `feature_table' if CHISE is defined.
471
472         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
473         (Fcopy_char_table): Likewise.
474         (char_table_open_db_maybe): Likewise.
475         (char_table_close_db_maybe): Likewise.
476         (char_table_get_db): Likewise.
477         (Fmount_char_attribute_table): Likewise.
478         (Fload_char_attribute_table): Likewise.
479
480 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
481
482         * mule-charset.c (load_char_decoding_entry_maybe): Use
483         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
484         `chise_ccs_decode'.
485
486 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
487
488         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
489         instead of `chise_open_data_source'.
490         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
491         `chise_ds_close'.
492
493 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
494
495         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
496         instead of `chise_ds_open_feature_table'.
497         (char_table_close_db_maybe): Don't use `chise_ft_close'.
498
499 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
500
501         * mule-charset.c (Fsave_charset_mapping_table): Use
502         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
503         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
504         `chise_ccs_sync' instead of `chise_ccst_close'.
505         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
506
507         * chartab.c (open_chise_data_source_maybe): Modify for
508         `chise_open_data_source'.
509         (char_table_open_db_maybe): Modify for
510         `chise_ds_open_feature_table'.
511
512 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
513
514         * mule-charset.c (load_char_decoding_entry_maybe): Use
515         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
516         `chise_ccst_close'.
517
518 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
519
520         * mule-charset.c (Fsave_charset_mapping_table): Use
521         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
522         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
523         `chise_dt_put_char' and `chise_dt_close'.
524         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
525         `chise_ccs_decode' and `chise_ccst_close' instead of
526         `chise_ds_open_decoding_table', `chise_dt_get_char' and
527         `chise_dt_close'.
528
529         * chartab.c (char_table_get_db): Use
530         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
531         (load_char_attribute_table_map_func): Modify for
532         `chise_char_feature_value_iterate'.
533         (Fload_char_attribute_table): Use
534         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
535
536 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
537
538         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
539
540 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
541
542         * chartab.c (put_char_table): Modify for inherited coded-charsets
543         in XEmacs CHISE.
544
545 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
546
547         * chartab.c (Fput_char_table_map_function): Fixed.
548         (word_boundary_p): Don't check charset in XEmacs CHISE.
549
550 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
551
552         * mule-charset.c (Fsave_charset_mapping_table): Use
553         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
554         instead of `chise_open_decoding_table'; refer
555         `default_chise_data_source'; use `chise_dt_close' instead of
556         `chise_close_decoding_table'.
557         (load_char_decoding_entry_maybe): Likewise.
558
559         * chartab.c (default_chise_data_source): New variable when `CHISE'
560         is defined.
561         (Fcopy_char_table): `ct->ds' is deleted.
562         (open_chise_data_source_maybe): New function.
563         (Fclose_char_data_source): New function.
564         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
565         use `chise_ds_open_feature_table' instead of
566         `chise_open_feature_table'.
567         (char_table_close_db_maybe): Use `chise_ft_close' instead of
568         `chise_close_feature_table'; `cit->ds' is deleted.
569         (syms_of_chartab): Add new builtin function
570         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
571
572         * chartab.h (default_chise_data_source): New extern variable.
573         (open_chise_data_source_maybe): New prototype.
574         (struct Lisp_Char_Table): Delete `ds'.
575
576 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
577
578         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
579         `CHISE' is defined.
580
581 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
582
583         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
584         not defined; add code for non-libchise setting.
585         (char_table_close_db_maybe): Likewise.
586         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
587         defined.
588         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
589         even if `CHISE' is not defined.
590         (Freset_char_attribute_table): Likewise.
591         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
592         `char_table_close_db_maybe' even if `CHISE' is not defined; use
593         `char_table_get_db'.
594         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
595         `char_table_close_db_maybe' even if `CHISE' is not defined.
596
597 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
598
599         * chartab.c (char_table_open_db_maybe): New function.
600         (char_table_close_db_maybe): New function.
601         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
602         (Freset_char_attribute_table): Likewise.
603         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
604         `char_table_close_db_maybe'.
605         (Fload_char_attribute_table): Likewise.
606
607 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
608
609         * chartab.c: Don't include <chise.h> because it is included in
610         chartab.h.
611         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
612         defined.
613         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
614         `CHISE' is defined.
615         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
616         `CHISE' is defined.
617         (Fclose_char_attribute_table): Close `ct->feature_table' and
618         `ct->ds' when `CHISE' is defined.
619         (Freset_char_attribute_table): Likewise.
620         (load_char_attribute_maybe): Use `cit->ds' and
621         `cit->feature_table' when `CHISE' is defined.
622         (Fload_char_attribute_table): Likewise.
623
624         * chartab.h: Include <chise.h> when `CHISE' is defined.
625         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
626         when `CHISE' is defined.
627
628 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
629
630         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
631         is defined.
632         (char_table_description): Likewise.
633         (Fmake_char_table): Likewise.
634         (Fcopy_char_table): Likewise.
635         (Fmount_char_attribute_table): Likewise.
636         (Fclose_char_attribute_table): Likewise.
637         (Freset_char_attribute_table): Likewise.
638         (load_char_attribute_maybe): Likewise.
639         (Fload_char_attribute_table): Likewise.
640
641         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
642         defined.
643
644 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
645
646         * chartab.c (load_char_attribute_table_map_func): New function
647         when CHISE is defined.
648         (Qload_char_attribute_table_map_function): Don't define when CHISE
649         is defined.
650         (Fload_char_attribute_table_map_function): Likewise.
651         (Fload_char_attribute_table): Use libchise when `CHISE' is
652         defined.
653         (syms_of_chartab): Don't define
654         `load-char-attribute-table-map-function' when CHISE is defined.
655
656 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
657
658         * chartab.c: Include <chise.h> when `CHISE' is defined.
659         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
660
661 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
662
663         * mule-charset.c (charset_code_point): Fix problem when searching
664         in mother CCS fails with `defined_only' mode.
665
666 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
667
668         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
669         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
670         (put_char_composition): Likewise.
671         (Fput_char_attribute): Likewise.
672         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
673
674 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
675
676         * chartab.c (Q_ucs): Deleted.
677         (Fput_char_attribute): Don't refer `->ucs'.
678         (Fdefine_char): Likewise.
679         (Ffind_char): Likewise.
680         (syms_of_chartab): Delete `->ucs'.
681
682 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
683
684         * mule-charset.c (Qmap_cns11643_2): Renamed from
685         `Qchinese_cns11643_2'.
686         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
687         `chinese-cns11643-2'.
688         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
689         `=cns11643-2'.
690
691 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
692
693         * mule-charset.c (Qmap_cns11643_1): Renamed from
694         `Qchinese_cns11643_1'.
695         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
696         `chinese-cns11643-1'.
697         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
698         `=cns11643-1'.
699
700 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
701
702         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
703         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
704         `chinese-gb12345'.
705         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
706         `=gb12345'.
707
708 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
709
710         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
711         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
712         `chinese-gb2312'.
713         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
714         `=gb2312'.
715
716 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
717
718         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
719         (syms_of_mule_charset): Add new symbol `=big5' instead of
720         `chinese-big5'.
721         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
722
723 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
724
725         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
726         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
727         `korean-ksc5601'.
728         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
729         `=ks-x1001'.
730
731 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
732
733         * mule-charset.c (Qmap_jis_x0212): Renamed from
734         `Qjapanese_jisx0212'.
735         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
736         `japanese-jisx0212'.
737         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
738         `=jis-x0212'.
739
740 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
741
742         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
743         `Qjapanese_jisx0208'.
744         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
745         of `japanese-jisx0208'.
746         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
747         `=jis-x0208-1983'.
748
749 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
750
751         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
752         `Qjapanese_jisx0208_1978'.
753         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
754         of `japanese-jisx0208-1978'.
755         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
756         `=jis-x0208-1978'.
757
758 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
759
760         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
761         only for XEmacs CHISE.
762
763 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
764
765         * char-ucs.h: Compact non-ISO-IR charset-ids.
766         (LEADING_BYTE_UCS): Changed to -177.
767         (LEADING_BYTE_CONTROL_1): Changed to -77.
768         (LEADING_BYTE_UCS_BMP): Changed to -176.
769         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
770
771 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
772
773         * mule-charset.c (Qiso_ir): New variable.
774         (Fmake_charset): Recognise new property `iso-ir'.
775         (syms_of_mule_charset): Add new symbol `iso-ir'.
776
777 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
778
779         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
780         n to -n; charset-id of non ISO-IR sets are changed to positive
781         numbers.
782
783 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
784
785         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
786         for &MCS-XXXXXXXX; values.
787
788 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
789
790         * mule.c (Vxemacs_chise_version): Renamed from
791         `Vutf_2000_version'.
792         (vars_of_mule): Add new variable `xemacs-chise-version'; define
793         `utf-2000-version' as an alias for `xemacs-chise-version'.
794
795 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
796
797         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
798         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
799         defined.
800
801         * config.h.in (CHISE): New macro.
802
803 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
804
805         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
806         of `ucs'.
807         (Qmap_ucs): New variable.
808         (syms_of_mule_charset): Add new symbol `=ucs'.
809         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
810
811         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
812         (simplify_char_spec): Likewise.
813
814         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
815
816         * char-ucs.h (Qmap_ucs): New extern variable.
817
818 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
819
820         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
821         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
822         don't define it when UTF2000 is not defined.
823         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
824         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
825         when UTF2000 is not defined.
826         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
827         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
828
829 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
830
831         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
832
833         * mule-charset.c (Vcharset_ucs_gb): Deleted.
834         (Qucs_gb): Deleted.
835         (syms_of_mule_charset): Delete `ucs-gb'.
836         (complex_vars_of_mule_charset): Likewise.
837
838 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
839
840         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
841
842         * mule-charset.c (Vcharset_ucs_cns): Deleted.
843         (Qucs_cns): Deleted.
844         (syms_of_mule_charset): Delete `ucs-cns'.
845         (complex_vars_of_mule_charset): Likewise.
846
847 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
848
849         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
850
851         * mule-charset.c (Vcharset_ucs_jis): Deleted.
852         (Qucs_jis): Deleted.
853         (syms_of_mule_charset): Delete `ucs-jis'.
854         (complex_vars_of_mule_charset): Likewise.
855
856 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
857
858         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
859
860         * mule-charset.c (Vcharset_ucs_ks): Deleted.
861         (Qucs_ks): Deleted.
862         (syms_of_mule_charset): Delete `ucs-ks'.
863         (complex_vars_of_mule_charset): Likewise.
864
865 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
866
867         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
868         (Qideograph_daikanwa_2): Deleted.
869         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
870         (complex_vars_of_mule_charset): Likewise.
871
872         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
873         (LEADING_BYTE_DAIKANWA_1): Deleted.
874         (LEADING_BYTE_DAIKANWA_2): Deleted.
875         (MIN_CHAR_DAIKANWA): Deleted.
876         (MAX_CHAR_DAIKANWA): Deleted.
877
878 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
879
880         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
881         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
882         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
883
884         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
885         (Vcharset_ideograph_daikanwa): Deleted.
886         (Qideograph_hanziku_{1..12}): Deleted.
887         (Qideograph_daikanwa): Deleted.
888         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
889         Vcharset_ideograph_daikanwa.
890         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
891         `ideograph-hanziku-{1..12}'.
892         (complex_vars_of_mule_charset): Likewise.
893
894 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
895
896         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
897
898         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
899         (Qideograph_gt_pj_{1..11}): Deleted.
900         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
901         (complex_vars_of_mule_charset): Likewise.
902
903 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
904
905         * mule-charset.c (Vcharset_ucs_big5): Deleted.
906         (Vcharset_ideograph_gt): Deleted.
907         (Qucs_big5): Deleted.
908         (Qideograph_gt): Deleted.
909         (syms_of_mule_charset): Delete symbol `ucs-big5' and
910         `ideograph-gt'.
911         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
912         and `ideograph-gt'.
913
914         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
915         (LEADING_BYTE_GT): Deleted.
916         (MIN_CHAR_GT): Deleted.
917         (MAX_CHAR_GT): Deleted.
918
919 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
920
921         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
922
923 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
924
925         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
926         (save_uint16_byte_table): Likewise.
927         (save_byte_table): Likewise; convert values by it.
928         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
929         for `ideographic-structure'.
930         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
931         as the filter for `ideographic-structure'.
932
933 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
934
935         * chartab.c (put_char_composition): New function.
936         (Fput_char_attribute): Use `put_char_composition'; use
937         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
938
939         * fns.c (simplify_char_spec): New function.
940         (char_ref_simplify_spec): New function.
941         (Fchar_refs_simplify_char_specs): New function.
942         (syms_of_fns): Add new builtin function
943         `char-refs-simplify-char-specs'.
944
945 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
946
947         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
948         (Qideograph_cbeta): Deleted.
949         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
950         (complex_vars_of_mule_charset): Likewise.
951
952         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
953         (MIN_CHAR_CBETA): Comment out.
954         (MAX_CHAR_CBETA): Likewise.
955
956 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
957
958         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
959         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
960         CHISE client feature.
961
962 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
963
964         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
965
966 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
967
968         * mule-charset.c (charset_lookup_description_1): Use
969         `NUM_LEADING_BYTES' in UTF-2000.
970
971 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
972
973         * char-ucs.h (GC_CHARSETP): Deleted.
974
975 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
976
977         * char-ucs.h (MAX_CHAR_GT): Updated.
978
979 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
980
981         * text-coding.c: Sync with XEmacs 21.4.10.
982
983 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
984
985         * mule-charset.c (Vcharset_china3_jef): Deleted.
986         (Qchina3_jef): Deleted.
987         (syms_of_mule_charset): Don't define `china3-jef'.
988         (complex_vars_of_mule_charset): Likewise.
989
990         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
991         (MIN_CHAR_CHINA3_JEF): Comment out.
992         (MAX_CHAR_CHINA3_JEF): Comment out.
993
994 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
995
996         * mule-charset.c (Vcharset_ucs_gb): New variable.
997         (Qucs_gb): New variable.
998         (syms_of_mule_charset): Add new symbol `ucs-gb'.
999         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1000
1001         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1002
1003 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1004
1005         * mule-charset.c (charset_code_point): if a coded-charset has a
1006         final-byte, don't inherit the builtin range of the mother CCS.
1007
1008 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1009
1010         * mule-charset.c (charset_code_point): Fix problem about
1011         inheritance.
1012
1013 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1014
1015         * mule-charset.c (decode_builtin_char): Reorganized.
1016
1017 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1018
1019         * text-coding.c (char_encode_as_entity_reference): Modify for
1020         `charset_code_point'.
1021         (char_encode_shift_jis): Likewise.
1022         (char_encode_big5): Likewise.
1023         (char_encode_utf8): Likewise.
1024         (char_encode_iso2022): Likewise.
1025
1026         * mule-charset.c (charset_code_point): Add new argument
1027         `defined_only'.
1028         (Fencode_char): Add new optional argument `defined_only'.
1029
1030         * chartab.c (put_char_table): Modify for `charset_code_point'.
1031
1032         * char-ucs.h (charset_code_point): Add new argument
1033         `defined_only'.
1034         (encode_char_1): Modify for `charset_code_point'.
1035
1036 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1037
1038         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1039         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1040
1041 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1042
1043         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1044         (Qjis_x0208): Likewise.
1045         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1046         XCHARSET_FINAL(charset).
1047         (charset_code_point): Modify condition for final-byte based
1048         builtin-chars.
1049         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1050         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1051         in UTF-2000; specify `=jis-x0208' as the mother of
1052         `japanese-jisx0208-1978', `japanese-jisx0208' and
1053         `japanese-jisx0208-1990' in UTF-2000.
1054
1055 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1056
1057         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1058
1059 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1060
1061         * text-coding.c (decode_coding_utf16): Support UTF-16.
1062         (char_encode_utf16): Fixed.
1063
1064 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1065
1066         * text-coding.c (Qutf16): New variable in MULE.
1067         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1068         (Fcoding_system_type): Add `utf-16' in MULE.
1069         (struct detection_state): Add a structure for utf16 in MULE.
1070         (detect_coding_type): Setup st->utf16.mask in MULE.
1071         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1072         MULE.
1073         (reset_encoding_stream): Use `char_encode_utf16' and
1074         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1075         (detect_coding_utf16): New function [incomplete].
1076         (decode_coding_utf16): New function [support only UCS-2].
1077         (char_encode_utf16): New function.
1078         (char_finish_utf16): New function.
1079         (syms_of_file_coding): Add new symbol `utf-16'; setup
1080         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1081
1082         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1083         UTF-2000.
1084         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1085         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1086
1087 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1088
1089         * chartab.c (put_char_table): When a charset is specified as a
1090         range in UTF-2000, don't support builtin characters.
1091
1092 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1093
1094         * mule-charset.c (decode_defined_char): Don't refer external
1095         database if Qunbound or Qnil are found.
1096         (Fsave_charset_mapping_table): Don't define it if
1097         HAVE_CHISE_CLIENT is not defined.
1098         (Freset_charset_mapping_table): New function.
1099         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1100         found in external database.
1101         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1102         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1103         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1104
1105 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1106
1107         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1108         not.
1109
1110 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1111
1112         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1113         Q_lowercase, Q_uppercase in UTF-2000.
1114
1115         * chartab.c (get_char_table): Add special code for the standard
1116         case table to use character attribute `->downcase' and
1117         `->uppercase' for case operations in UTF-2000.
1118
1119         * casetab.c (Qflippedcase): New variable in UTF-2000.
1120         (Q_lowercase): Likewise.
1121         (Q_uppercase): Likewise.
1122         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1123         and `->uppercase' in UTF-2000.
1124         (complex_vars_of_casetab): Assign attribute name `downcase' to
1125         downcase and CANON table of Vstandard_case_table in UTF-2000;
1126         assign attribute name `flippedcase' to upcase and EQV table of
1127         Vstandard_case_table in UTF-2000.
1128
1129 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1130
1131         * text-coding.c (decode_add_er_char): Support isolated-chars.
1132         (char_encode_as_entity_reference): Likewise.
1133
1134 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1135
1136         * emacs.c (Vutf_2000_lisp_directory): New variable.
1137         (Vconfigure_utf_2000_lisp_directory): Likewise.
1138         (complex_vars_of_emacs): Add new variable
1139         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1140
1141 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1142
1143         * char-ucs.h (DECODE_CHAR): Delete special code for
1144         `chinese-big5-1' and `chinese-big5-2'.
1145
1146         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1147         (Qbig5_2): Likewise.
1148         (decode_defined_char): Support CONVERSION_BIG5_1 and
1149         CONVERSION_BIG5_2.
1150         (decode_builtin_char): Likewise.
1151         (charset_code_point): Likewise.
1152         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1153         'conversion in UTF-2000.
1154         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1155         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1156         `chinese-big5-2' as children of `chinese-big5'.
1157
1158         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1159         (CONVERSION_BIG5_2): New macro.
1160
1161 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1162
1163         * text-coding.c (char_encode_big5): Support entity-reference.
1164
1165 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1166
1167         * text-coding.c (char_encode_as_entity_reference): New function.
1168         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1169
1170 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1171
1172         * text-coding.c (decode_coding_big5): Support entity-reference
1173         decoding feature.
1174
1175 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1176
1177         * text-coding.c (allocate_coding_system): Initialize initial
1178         charsets for CODESYS_UTF8.
1179         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1180         charset-g2 for CODESYS_UTF8.
1181         (decode_coding_utf8): Use charset-g0.
1182         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1183         to force variants to map to UCS.
1184
1185 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1186
1187         * text-coding.c (Qutf_8_mcs): New variable.
1188         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1189         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1190         instead of `utf-8' in UTF-2000.
1191
1192 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1193
1194         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1195         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1196         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1197         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1198         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1199         CONVERSION_96x96x96x96 are introduced.
1200         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1201         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1202         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1203
1204         * char-ucs.h (CONVERSION_94): New macro.
1205         (CONVERSION_96): New macro.
1206         (CONVERSION_94x94): New macro.
1207         (CONVERSION_96x96): New macro.
1208         (CONVERSION_94x94x94): New macro.
1209         (CONVERSION_96x96x96): New macro.
1210         (CONVERSION_94x94x94x60): New macro.
1211         (CONVERSION_94x94x94x94): New macro.
1212         (CONVERSION_96x96x96x96): New macro.
1213
1214 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1215
1216         * chartab.c (Vcharacter_variant_table): Deleted.
1217         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1218         of `Vcharacter_variant_table'.
1219         (Fput_char_attribute): Likewise.
1220         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1221         (complex_vars_of_chartab): Likewise.
1222
1223 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1224
1225         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1226
1227         * fns.c (Qideographic_structure): New variable.
1228         (Qkeyword_char): New variable.
1229         (ids_format_unit): New function.
1230         (Fideographic_structure_to_ids): New function.
1231         (syms_of_fns): Add new symbols `ideographic-structure' and
1232         `:char'; add new builtin function `ideographic-structure-to-ids'.
1233
1234         * data.c (Fchar_ref_p): New function.
1235         (syms_of_data): Add new builtin function `char-ref-p'.
1236
1237         * chartab.h: Add an EXFUN for `Ffind_char'.
1238
1239 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1240
1241         * text-coding.c (Vcharacter_composition_table): Deleted.
1242         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1243         in every UTF-2000.
1244
1245         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1246         UTF-2000.
1247         (Vcharacter_composition_table): Deleted.
1248         (Fget_composite_char): Use the implementation for external-DB
1249         support in every UTF-2000.
1250         (Fput_char_attribute): Likewise.
1251         (char_attribute_system_db_file): Don't define if external-DB
1252         feature is not available.
1253         (Fsave_char_attribute_table): Likewise.
1254         (Fmount_char_attribute_table): Likewise.
1255         (Fclose_char_attribute_table): Likewise.
1256         (Freset_char_attribute_table): Likewise.
1257         (Fload_char_attribute_table): Likewise.
1258         (syms_of_chartab): Don't define `save-char-attribute-table',
1259         `mount-char-attribute-table', `reset-char-attribute-table',
1260         `close-char-attribute-table' and `load-char-attribute-table' if
1261         external-DB feature is not available.
1262         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1263
1264 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1265
1266         * text-coding.c (Qcomposition): Add extern if external-DB feature
1267         is supported.
1268         (Vcharacter_composition_table): Don't add extern if external-DB
1269         feature is supported.
1270         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1271         character composition rule if external-DB feature is supported.
1272
1273         * chartab.c (Vcharacter_composition_table): Don't define if
1274         external-DB feature is supported.
1275         (Qcomposition): New variable.
1276         (Fget_composite_char): New implementation for external-DB support.
1277         (Fput_char_attribute): Use `composition' property of each
1278         character instead of `Vcharacter_composition_table' to store
1279         character-composition rules if external-DB feature is supported.
1280         (syms_of_chartab): Add new symbol `composition'.
1281         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1282         external-DB feature is supported.
1283
1284 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1285
1286         * chartab.c (Vchar_db_stingy_mode): New variable.
1287         (load_char_attribute_maybe): Close database if
1288         Vchar_db_stingy_mode is not NIL.
1289         (Fload_char_attribute_table_map_function): Use
1290         `get_char_id_table_0' instead of `get_char_id_table'.
1291         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1292
1293         * chartab.h (get_char_id_table_0): New inline function.
1294         (get_char_id_table): Use `get_char_id_table_0'.
1295
1296 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1297
1298         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1299         and `COMPOSE_ADD_CHAR'.
1300         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1301
1302 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1303
1304         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1305         instead of `DECODE_ADD_UCS_CHAR'.
1306         (COMPOSE_ADD_CHAR): Likewise.
1307
1308 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1309
1310         * text-coding.c (decode_flush_er_chars): New inline function.
1311         (decode_add_er_char): New function.
1312         (decode_coding_utf8): Use `decode_flush_er_chars' and
1313         `decode_add_er_char'.
1314
1315 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1316
1317         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1318         done before `decode_output_utf8_partial_char'.
1319
1320         * mule-charset.c (complex_vars_of_mule_charset): Specify
1321         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1322         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1323
1324 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1325
1326         * mule-charset.c (decode_defined_char): New function; search
1327         mother.
1328         (decode_builtin_char): Don't search mother if
1329         XCHARSET_MAX_CODE(charset) == 0.
1330         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1331         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1332         (Fdecode_char): Use `decode_defined_char' instead of
1333         `DECODE_DEFINED_CHAR'.
1334         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1335         mother of `Vcharset_ucs_jis'.
1336
1337         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1338         instead of `DECODE_DEFINED_CHAR'.
1339
1340         * char-ucs.h (decode_defined_char): Renamed from
1341         `DECODE_DEFINED_CHAR'; changed to normal function.
1342         (DECODE_CHAR): Use `decode_defined_char' instead of
1343         `DECODE_DEFINED_CHAR'.
1344
1345         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1346
1347 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1348
1349         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1350
1351         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1352         variable.
1353         (Quse_entity_reference): New variable.
1354         (Qd): New variable.
1355         (Qx): New variable.
1356         (QX): New variable.
1357         (coding_system_description): Add description for
1358         `ccs_priority_list'.
1359         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1360         (allocate_coding_system): Initialize `ccs_priority_list' in
1361         UTF-2000.
1362         (Fmake_coding_system): Add description about
1363         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1364         (codesys).
1365         (Fcoding_system_property): Accept `disable-composition' and
1366         `use-entity-reference' in UTF-2000.
1367         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1368         in UTF-2000.
1369         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1370         (decode_coding_utf8): Decode entity-reference if
1371         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1372         (char_encode_utf8): Encode non-Unicode characters as
1373         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1374         (str->codesys).
1375         (syms_of_file_coding): Add new symbols `use-entity-reference',
1376         `d', `x', `X'.
1377         (vars_of_file_coding): Add new variable
1378         `coded-charset-entity-reference-alist'.
1379         (complex_vars_of_file_coding): Declare `disable-composition' and
1380         `use-entity-reference' to be coding-system-properties in UTF-2000.
1381
1382         * file-coding.h (struct Lisp_Coding_System): Add new member
1383         `use_entity_reference' and `ccs_priority_list'.
1384         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1385         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1386         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1387
1388 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1389
1390         * chartab.c (save_uint8_byte_table): Don't clear the table.
1391         (save_uint16_byte_table): Likewise.
1392         (save_byte_table): Likewise.
1393         (Fmount_char_attribute_table): New function.
1394         (syms_of_chartab): Add new builtin function
1395         `mount-char-attribute-table'.
1396
1397 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1398
1399         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1400         "w+" mode.
1401         (load_char_decoding_entry_maybe): Open database as read-only mode.
1402
1403         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1404         open database as "w+" mode.
1405         (load_char_attribute_maybe): Open database as read-only mode.
1406         (Fload_char_attribute_table): Likewise.
1407
1408 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1409
1410         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1411         (char_table_description): Delete member `db_file'.
1412         (Fmake_char_table): Don't refer `ct->db_file'.
1413         (Fcopy_char_table): Likewise.
1414         (Fsave_char_attribute_table): Likewise.
1415         (Fclose_char_attribute_table): Likewise.
1416         (Freset_char_attribute_table): Likewise.
1417         (load_char_attribute_maybe): Likewise.
1418         (Fload_char_attribute_table): Likewise.
1419
1420         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1421
1422 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1423
1424         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1425         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1426         `ct->db' is living.
1427         (load_char_attribute_maybe): Likewise.
1428         (Fload_char_attribute_table): Likewise.
1429
1430 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1431
1432         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1433         `ct->db_file' unconditionally.
1434
1435 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1436
1437         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1438         UTF-2000.
1439         (char_table_description): Add description for `db_file' and `db'
1440         in UTF-2000.
1441         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1442         UTF-2000.
1443         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1444         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1445         (Fclose_char_attribute_table): New function.
1446         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1447         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1448         and `cit->db'.
1449         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1450         (syms_of_chartab): Add new builtin function
1451         `Fclose_char_attribute_table'.
1452
1453 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1454
1455         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1456         `db' in UTF-2000.
1457         (load_char_attribute_maybe): Change interface.
1458         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1459
1460 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1461
1462         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1463
1464 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1465
1466         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1467         instead of `DECODE_CHAR' for mother; don't use special code for
1468         chinese-big5 to use code space of chinese-big5-1 and
1469         chinese-big5-2.
1470         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1471         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1472
1473         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1474         (MAX_CHAR_BIG5_CDP): Revival.
1475
1476 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1477
1478         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1479         the XLFD registry-encoding name of `chinese-big5'.
1480
1481 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1482
1483         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1484         (Qchinese_big5_cdp): Deleted.
1485         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1486         (complex_vars_of_mule_charset): Delete coded-charset
1487         `chinese-big5-cdp'.
1488
1489         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1490         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1491         `CHARSET_ID_OFFSET - n' for private CCS.
1492         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1493         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1494         of `MIN_LEADING_BYTE'.
1495         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1496         `(CHARSET_ID_OFFSET - 97)'.
1497         (MIN_CHAR_BIG5_CDP): Deleted.
1498         (MAX_CHAR_BIG5_CDP): Deleted.
1499
1500 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1501
1502         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1503
1504 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1505
1506         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1507         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1508         chartab.c].
1509
1510         * chartab.c (Vutf_2000_version): Moved to mule.c.
1511         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1512
1513 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1514
1515         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1516         when HAVE_CHISE_CLIENT is not defined.
1517
1518         * mule.c (vars_of_mule): Provide feature `chise' when
1519         HAVE_CHISE_CLIENT is defined.
1520
1521 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1522
1523         * config.h.in (UTF2000): Add comment.
1524         (HAVE_CHISE_CLIENT): New macro.
1525
1526 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1527
1528         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1529         CONSP.
1530         (Fput_char_attribute): Likewise.
1531         (char_attribute_system_db_file): Encode file-name of attribute.
1532         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1533         the initial value.
1534
1535 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1536
1537         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1538         (Fsave_charset_mapping_table): Use
1539         `char_attribute_system_db_file'.
1540         (load_char_decoding_entry_maybe): Likewise.
1541
1542         * chartab.h (Qsystem_char_id): New external variable.
1543         (char_attribute_system_db_file): New prototype.
1544
1545         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1546         (char_attribute_system_db_file): New function.
1547         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1548         (Freset_char_attribute_table): Likewise.
1549         (load_char_attribute_maybe): Likewise.
1550         (Fload_char_attribute_table): Likewise.
1551         (syms_of_chartab): Add new symbol `system-char-id'.
1552
1553 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1554
1555         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1556         `XCHARSET_GRAPHIC(ccs)'.
1557
1558 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1559
1560         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1561
1562 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1563
1564         * chartab.c (Q_ucs_variants): New variable.
1565         (syms_of_chartab): Add new symbol `->ucs-variants'.
1566         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1567         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1568         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1569
1570         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1571
1572         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1573         `HAVE_DATABASE' is defined.
1574         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1575         `HAVE_DATABASE' is defined.
1576
1577 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1578
1579         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1580         attribute-table.
1581         (Freset_char_attribute_table): New function.
1582         (syms_of_chartab): Add new builtin function
1583         `reset-char-attribute-table'.
1584
1585 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1586
1587         * chartab.c (load_char_attribute_maybe): Don't make directories.
1588
1589 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1590
1591         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1592
1593         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1594         for decoding-table.
1595
1596 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1597
1598         * mule-charset.c (Fsave_charset_mapping_table): Use
1599         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1600
1601         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1602         instead of `XCHARSET_CHARS'.
1603
1604 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1605
1606         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1607         (XCHARSET_BYTE_SIZE): Likewise.
1608
1609         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1610         mule-charset.c].
1611         (XCHARSET_BYTE_SIZE): Likewise.
1612
1613 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1614
1615         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1616         data-directory to store database.
1617         (Fsave_char_attribute_table): Likewise.
1618         (load_char_attribute_maybe): Likewise.
1619         (Fload_char_attribute_table): Likewise.
1620
1621 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1622
1623         * mule-charset.c (Fsave_charset_mapping_table): New function.
1624         (syms_of_mule_charset): Add new builtin function
1625         `save-charset-mapping-table'.
1626
1627 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1628
1629         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1630         (get_ccs_octet_table): New inline function.
1631         (put_ccs_octet_table): Likewise.
1632         (decoding_table_put_char): Use `get_ccs_octet_table' and
1633         `put_ccs_octet_table'.
1634         (decoding_table_remove_char): Use `decoding_table_put_char'.
1635         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1636
1637         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1638         into encoding_table.
1639         (make_charset): Use Qunbound instead Qnil as initial value of
1640         decoding_table.
1641
1642 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1643
1644         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1645         element is Qunloaded.
1646         (map_over_uint16_byte_table): Likewise.
1647         (map_over_byte_table): Likewise.
1648         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1649         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1650         database support, load encoding-table of the specified
1651         coded-charset if it is not loaded yet.
1652         (save_uint8_byte_table): New function of UTF-2000 with external
1653         database support.
1654         (save_uint16_byte_table): Likewise.
1655         (save_byte_table): Likewise.
1656         (Fput_char_attribute): Don't store value into external database
1657         even if the external database feature is supported in UTF-2000;
1658         set `attribute' as name of char-table if the external database
1659         feature is supported.
1660         (Fsave_char_attribute_table): New function in UTF-2000.
1661         (syms_of_chartab): Add new builtin function
1662         `save-char-attribute-table' in UTF-2000.
1663
1664 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1665
1666         * chartab.c (char_attribute_table_to_put): New variable in
1667         UTF-2000.
1668         (Qput_char_table_map_function): Likewise.
1669         (value_to_put): Likewise.
1670         (Fput_char_table_map_function): New function in UTF-2000.
1671         (put_char_table): Use `Fmap_char_attribute' for
1672         CHARTAB_RANGE_CHARSET in UTF-2000.
1673         (Fput_char_attribute): Store symbol instead of string in
1674         `XCHAR_TABLE_NAME (table)'.
1675         (load_char_attribute_maybe): Likewise.
1676         (syms_of_chartab): Add new symbol/function
1677         `put-char-table-map-function'.
1678
1679 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1680
1681         * database.h: Add new EXFUN for `Fmap_database'.
1682
1683         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1684         (syms_of_database): Likewise.
1685
1686         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1687         UTF-2000.
1688         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1689         (XCHAR_TABLE_UNLOADED): Likewise.
1690
1691         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1692         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1693         HAVE_DATABASE is defined.
1694         (char_attribute_table_to_load): New variable of UTF-2000 with
1695         external database support.
1696         (Qload_char_attribute_table_map_function): Likewise.
1697         (Fload_char_attribute_table_map_function): New function of
1698         UTF-2000 with external database support.
1699         (Fload_char_attribute_table): New function of UTF-2000.
1700         (Fmap_char_attribute): Call Fload_char_attribute_table if
1701         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1702         (syms_of_chartab): Add new symbol and function
1703         `load-char-attribute-table-map-function' in UTF-2000 with external
1704         database support; add new function `load-char-attribute-table' in
1705         UTF-2000.
1706
1707 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1708
1709         * chartab.h (load_char_attribute_maybe): New prototype for
1710         UTF-2000 with DATABASE support.
1711         (get_char_id_table): Use `load_char_attribute_maybe' if
1712         HAVE_DATABASE is defined.
1713
1714         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1715         with DATABASE support.
1716
1717 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1718
1719         * chartab.c (Fput_char_attribute): Use S-expression as key of
1720         external database.
1721
1722         * chartab.h (get_char_id_table): Use S-expression as key of
1723         external database.
1724
1725 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1726
1727         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1728         if an element is not loaded, load the corresponding attributes
1729         from an external database.
1730         (map_over_uint16_byte_table): Likewise.
1731         (map_over_byte_table): Likewise.
1732         (map_char_table): Modify for `map_over_uint8_byte_table',
1733         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1734         element is not loaded, load the corresponding attributes from an
1735         external database.
1736         (Fput_char_attribute): Change initial values to Qunloaded.
1737
1738         * chartab.h (get_char_id_table): If a character attribute is not
1739         loaded and the attribute value is not found in an external
1740         database, store Qunbound as the attribute value.
1741
1742 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1743
1744         * chartab.c (BT_UINT8_unloaded): New macro.
1745         (UINT8_VALUE_P): Accept Qunloaded.
1746         (UINT8_ENCODE): Likewise.
1747         (UINT8_DECODE): Likewise.
1748         (BT_UINT16_unloaded): New macro.
1749         (UINT16_VALUE_P): Accept Qunloaded.
1750         (UINT16_ENCODE): Likewise.
1751         (UINT16_DECODE): Likewise.
1752         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1753         BT_UINT16_unloaded.
1754         (mark_char_table): Mark `ct->name' in UTF-2000.
1755         (char_table_description): Add `name' in UTF-2000.
1756         (Fmake_char_table): Initialize `ct->name'.
1757         (Fcopy_char_table): Copy `ct->name'.
1758         (Fput_char_attribute): Store value into an external database if
1759         HAVE_DATABASE is defined.
1760
1761         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1762         UTF-2000.
1763         (CHAR_TABLE_NAME): New macro in UTF-2000.
1764         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1765         (get_char_id_table): Try to read an external database if Qunloaded
1766         is stored in a table.
1767
1768         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1769         Qunloaded.
1770
1771 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1772
1773         * database.h: Add EXFUN definitions for Fopen_database,
1774         Fput_database, Fget_database and Fclose_database.
1775
1776         * data.c (Qunloaded): New variable in UTF-2000.
1777
1778         * lisp.h (Qunloaded): New variable in UTF-2000.
1779
1780 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1781
1782         * mule-charset.c (put_char_ccs_code_point): Modify for
1783         `decoding_table_remove_char' and `decoding_table_put_char'.
1784         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1785
1786         * char-ucs.h (decoding_table_remove_char): Change arguments to
1787         hide decoding_table vector.
1788         (decoding_table_put_char): Likewise.
1789
1790 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1791
1792         * mule-charset.c (decoding_table_remove_char): Moved to
1793         char-ucs.h.
1794         (decoding_table_put_char): Likewise.
1795
1796         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1797         from mule-charset.c].
1798         (decoding_table_remove_char): New inline function [moved from
1799         mule-charset.c].
1800         (decoding_table_put_char): Likewise.
1801
1802 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1803
1804         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1805         extension.
1806
1807 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1808
1809         * mule-charset.c (decode_builtin_char): Support mother charsets.
1810
1811 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1812
1813         * mule-charset.c (Q94x94x60): New variable.
1814         (charset_code_point): Support conversion `94x94x60'.
1815         (Fmake_charset): Likewise.
1816         (syms_of_mule_charset): Add new symbol `94x94x60'.
1817
1818         * char-ucs.h (CONVERSION_94x94x60): New macro.
1819
1820 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1821
1822         * mule-charset.c (charset_code_point): Unify code about
1823         `code-offset'.
1824
1825 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1826
1827         * mule-charset.c (charset_code_point): Merge code about builtin
1828         characters into code about mother charsets; don't use
1829         `range_charset_code_point'.
1830         (range_charset_code_point): Deleted.
1831
1832 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1833
1834         * mule-charset.c (Qcode_offset): New variable.
1835         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1836         `max-code'; accept new property `code-offset'.
1837         (syms_of_mule_charset): Add new symbol `code-offset'.
1838
1839 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1840
1841         * mule-charset.c (range_charset_code_point): Fixed.
1842
1843 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1844
1845         * mule-charset.c (decode_builtin_char): Change semantics of
1846         code-offset of coded-charset.
1847         (charset_code_point): Likewise.
1848         (range_charset_code_point): Likewise.
1849         (complex_vars_of_mule_charset): Modify for the change.
1850
1851 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1852
1853         * mule-charset.c (Fencode_char): Reverse arguments.
1854
1855         * mule-charset.c (charset_code_point): Fixed.
1856
1857 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1858
1859         * mule-charset.c (Vcharset_mojikyo): Deleted.
1860         (Vcharset_mojikyo_2022_1): Deleted.
1861         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1862         (Qmin_code): New variable in UTF-2000.
1863         (Qmax_code): Likewise.
1864         (Qmother): Likewise.
1865         (Qconversion): Likewise.
1866         (Q94x60): Likewise.
1867         (Qmojikyo): Deleted.
1868         (Qmojikyo_2022_1): Deleted.
1869         (Qmojikyo_pj_{1..22}): Deleted.
1870         (mark_charset): Mark `cs->mother'.
1871         (charset_description): Add description for `mother'.
1872         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1873         new arguments `mother' and `conversion'; use
1874         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1875         (charset_code_point): Moved from char-ucs.h; support `mother'
1876         charset feature.
1877         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1878         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1879         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1880         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1881         allow 2 as the value of `graphic' in UTF-2000; add new properties
1882         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1883         require `final' in UTF-2000; modify for `make_charset'.
1884         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1885         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1886         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1887         (Fencode_char): New function.
1888         (syms_of_mule_charset): Add new builtin function `encode-char' in
1889         UTF-2000; add new symbols `min-code', `max-code', `mother',
1890         `conversion' and `94x60'; delete symbols `mojikyo',
1891         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1892         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1893         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1894         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1895
1896         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1897         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1898
1899         * char-ucs.h (Vcharset_mojikyo): Deleted.
1900         (Vcharset_mojikyo_2022_1): Deleted.
1901         (LEADING_BYTE_MOJIKYO): Deleted.
1902         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1903         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1904         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1905         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1906         add new member `mother'; add new member `conversion'.
1907         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1908         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1909         (CHARSET_MOTHER): New macro.
1910         (CHARSET_CONVERSION): New macro.
1911         (CONVERSION_IDENTICAL): New macro.
1912         (CONVERSION_94x60): New macro.
1913         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1914         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1915         (XCHARSET_MOTHER): New macro.
1916         (XCHARSET_CONVERSION): New macro.
1917         (MIN_CHAR_MOJIKYO): Deleted.
1918         (MAX_CHAR_MOJIKYO): Deleted.
1919         (DECODE_MOJIKYO_2022): Deleted.
1920         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1921         (charset_code_point): Changed to non-inline function.
1922         (encode_char_1): Use `charset_code_point'.
1923         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1924
1925 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1926
1927         * lread.c (read_compiled_function): Fix prototype.
1928         (read_vector): Likewise.
1929
1930 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1931
1932         * lrecord.h (struct lrecord_header): Delete `older'.
1933         (set_lheader_implementation): Delete code for `older'.
1934         (set_lheader_older_implementation): Deleted.
1935         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1936         (OLDER_RECORD_P): Deleted.
1937         (OLDER_RECORD_HEADER_P): Deleted.
1938         (alloc_older_lcrecord): Deleted.
1939         (alloc_older_lcrecord_type): Deleted.
1940
1941         * alloc.c (all_older_lcrecords): Deleted.
1942         (alloc_older_lcrecord): Deleted.
1943         (disksave_object_finalization_1): Delete code for older objects.
1944         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1945         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1946
1947 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1948
1949         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1950         instead of `make_older_vector'.
1951         (put_char_ccs_code_point): Likewise.
1952         (mark_charset): Mark `cs->decoding_table'.
1953         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1954
1955         * lisp.h (make_older_vector): Deleted.
1956         (make_vector_newer): Deleted.
1957
1958         * config.h.in (HAVE_GGC): Deleted.
1959
1960         * alloc.c (make_older_vector): Deleted.
1961         (make_vector_newer_1): Deleted.
1962         (make_vector_newer): Deleted.
1963
1964 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1965
1966         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1967         (Qideograph_daikanwa_2): New variable.
1968         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1969         (complex_vars_of_mule_charset): Add new coded-charset
1970         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1971         `LEADING_BYTE_DAIKANWA'.
1972
1973         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1974         (LEADING_BYTE_DAIKANWA_1): New macro.
1975         (LEADING_BYTE_DAIKANWA_2): New macro.
1976         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1977
1978 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1979
1980         * mule-charset.c (complex_vars_of_mule_charset): Change
1981         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1982         the second revised version.
1983
1984 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1985
1986         * mule-charset.c (Vcharset_ucs_smp): New variable.
1987         (Vcharset_ucs_sip): New variable.
1988         (Qucs_smp): New variable.
1989         (Qucs_sip): New variable.
1990         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
1991         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
1992         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
1993         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
1994         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
1995         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
1996
1997         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
1998         (LEADING_BYTE_UCS_SIP): New macro.
1999         (MIN_CHAR_SMP): New macro.
2000         (MAX_CHAR_SMP): New macro.
2001         (MIN_CHAR_SIP): New macro.
2002         (MAX_CHAR_SIP): New macro.
2003
2004 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2005
2006         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2007         utf-2000.
2008
2009 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2010
2011         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2012         value; don't store value into `encoding_table' of `Lisp_Charset'.
2013         (mark_charset): `encoding_table' was deleted.
2014         (charset_description): Likewise.
2015         (make_charset): Likewise.
2016         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2017         `put_char_ccs_code_point'.
2018
2019         * chartab.h (Fput_char_attribute): New EXFUN.
2020
2021         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2022         is unified with normal symbol space.
2023         (Fget_char_attribute): Likewise.
2024         (Fput_char_attribute): Likewise; behavior of
2025         `put_char_ccs_code_point' is changed.
2026
2027         * char-ucs.h: Include "elhash.h".
2028         (Vchar_attribute_hash_table): New external variable.
2029         (struct Lisp_Charset): Delete `encoding_table'.
2030         (CHARSET_ENCODING_TABLE): New implementation; refer
2031         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2032         `Lisp_Charset'.
2033
2034 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2035
2036         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2037         (cs) == 0.
2038
2039 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2040
2041         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2042         `chinese-big5'.
2043
2044 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2045
2046         * chartab.c (uint8_byte_table_description): New constant.
2047         (uint8-byte-table): Use `uint8_byte_table_description'.
2048         (uint16_byte_table_description): New constant.
2049         (uint16-byte-table): Use `uint16_byte_table_description'.
2050
2051 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2052
2053         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2054         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2055
2056 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2057
2058         * mule-charset.c (Vcharset_ucs_ks): New variable.
2059         (Qucs_ks): New variable.
2060         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2061         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2062
2063         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2064
2065 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2066
2067         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2068         (Fdecode_char): Likewise.
2069
2070         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2071         chartab.h.
2072         (Fdefine_char): Modify for Fdecode_char.
2073         (Ffind_char): Likewise.
2074
2075         * mule-charset.c (Fdecode_char): Add new optional argument
2076         `defined-only'.
2077         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2078
2079 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2080
2081         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2082         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2083         (allocate_coding_system): Initialize initial-charsets of
2084         CODESYS_BIG5 in XEmacs UTF-2000.
2085         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2086         CODESYS_BIG5 in XEmacs UTF-2000.
2087         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2088         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2089
2090         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2091         variables.
2092         (Qideograph_hanziku_{1 .. 12}): Likewise.
2093         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2094         .. 12}'.
2095         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2096         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2097         `ideograph-hanziku-{1 .. 12}'.
2098
2099         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2100         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2101         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2102         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2103         (DECODE_DEFINED_CHAR): New inline function.
2104         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2105
2106 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2107
2108         * mule-charset.c (Vcharset_china3_jef): Renamed from
2109         `Vcharset_japanese_jef_china3'.
2110         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2111         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2112         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2113         (syms_of_mule_charset): Rename `china3-jef' from
2114         `japanese-jef-china3'.
2115         (complex_vars_of_mule_charset): Likewise; rename
2116         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2117
2118         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2119         `LEADING_BYTE_JEF_CHINA3'.
2120         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2121         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2122
2123 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2124
2125         * mule-charset.c (encode_builtin_char_1): Comment out special code
2126         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2127
2128         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2129         (MAX_CHAR_MOJIKYO_0): Comment out.
2130         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2131         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2132         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2133         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2134
2135 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2136
2137         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2138         (Qideograph_cbeta): New variable.
2139         (encode_builtin_char_1): Comment out special code for
2140         coded-charset `mojikyo' and `japanese-jef-china3'.
2141         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2142         (complex_vars_of_mule_charset): Add new coded-charset
2143         `ideograph-cbeta'.
2144
2145         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2146         (MIN_CHAR_CBETA): New macro.
2147         (MAX_CHAR_CBETA): New macro.
2148
2149 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2150
2151         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2152         (LEADING_BYTE_JEF_CHINA3): New macro.
2153         (MIN_CHAR_JEF_CHINA3): New macro.
2154         (MAX_CHAR_JEF_CHINA3): Likewise.
2155         (DECODE_CHAR): Fixed.
2156
2157 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2158
2159         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2160         (Qjapanese_jef_china3): New variable.
2161         (encode_builtin_char_1): Support `japanese-jef-china3'.
2162         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2163         (complex_vars_of_mule_charset): Add new coded-charset
2164         `japanese-jef-china3'.
2165
2166 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2167
2168         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2169         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2170         94^4, 96^3, 96^4, 128^n and 256^n set.
2171         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2172         (map_char_table): Likewise.
2173
2174 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2175
2176         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2177         UTF-2000.
2178
2179 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2180
2181         * chartab.h (get_char_id_table): New inline function.
2182
2183         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2184         function.
2185
2186 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2187
2188         * chartab.h (decode_char_table_range): New prototype in XEmacs
2189         UTF-2000.
2190         (put_char_id_table): New inline function in XEmacs UTF-2000.
2191
2192         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2193         function.
2194         (decode_char_table_range): Delete static declaration in XEmacs
2195         UTF-2000.
2196
2197 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2198
2199         * chartab.c (put_char_id_table): Use `put_char_table'.
2200
2201 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2202
2203         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2204         (map_over_uint16_byte_table): Likewise.
2205         (map_over_byte_table): Likewise.
2206         (map_char_table): Modify for `map_over_uint8_byte_table',
2207         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2208         UTF-2000.
2209
2210 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2211
2212         * chartab.c (struct map_char_table_for_charset_arg): New
2213         structure.
2214         (map_char_table_for_charset_fun): New function.
2215         (map_char_table): Use `map_char_table' for encoding_table of
2216         `range->charset'.
2217
2218 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2219
2220         * chartab.c (map_char_table): Check a character is found in
2221         range->charset instead of non default value is defined in
2222         char-table when range is CHARTAB_RANGE_ROW.
2223
2224 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2225
2226         * chartab.c (map_char_id_table): Deleted.
2227         (Fmap_char_attribute): Use `map_char_table' instead of
2228         `map_char_id_table'.
2229
2230 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2231
2232         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2233         UTF-2000.
2234         (update_syntax_table): Deleted in XEmacs UTF-2000.
2235
2236         * syntax.c (find_defun_start): Use `syntax_table' instead of
2237         `mirror_syntax_table' in XEmacs UTF-2000.
2238         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2239         UTF-2000.
2240         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2241         XEmacs UTF-2000.
2242         (Fmatching_paren): Likewise.
2243         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2244         in XEmacs UTF-2000.
2245         (find_start_of_comment): Likewise.
2246         (find_end_of_comment): Likewise.
2247         (Fforward_comment): Likewise.
2248         (scan_lists): Likewise.
2249         (char_quoted): Likewise.
2250         (Fbackward_prefix_chars): Likewise.
2251         (scan_sexps_forward): Likewise.
2252         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2253         (update_syntax_table): Likewise.
2254
2255         * search.c (skip_chars): Use `syntax_table' instead of
2256         `mirror_syntax_table' in XEmacs UTF-2000.
2257         (wordify): Likewise.
2258         (Freplace_match): Likewise.
2259
2260         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2261         `mirror_syntax_table' in XEmacs UTF-2000.
2262         (WORDCHAR_P_UNSAFE): Likewise.
2263         (re_match_2_internal): Likewise.
2264
2265         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2266         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2267
2268         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2269         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2270
2271         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2272         XEmacs UTF-2000.
2273
2274         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2275         UTF-2000.
2276         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2277         (char_table_description): Delete `mirror_table' in XEmacs
2278         UTF-2000.
2279         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2280         UTF-2000.
2281         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2282         (Fcopy_char_table): Likewise.
2283         (put_char_table): Don't call `update_syntax_table' in XEmacs
2284         UTF-2000.
2285
2286         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2287         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2288         (casify_region_internal): Likewise.
2289
2290         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2291
2292         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2293         `mirror_syntax_table' in XEmacs UTF-2000.
2294
2295         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2296         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2297         (Fexpand_abbrev): Likewise.
2298
2299 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2300
2301         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2302
2303 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2304
2305         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2306         (map_over_uint16_byte_table): Likewise.
2307         (map_over_byte_table): Likewise.
2308         (get_char_id_table): Refer `cit->default_value'.
2309         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2310         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2311         of character-id ranges.
2312         (mark_char_table): Mark `ct->default_value'.
2313         (char_table_description): Add `default_value'.
2314         (fill_char_table): Use `default_value'.
2315         (decode_char_table_range): Decode `nil' as
2316         `CHARTAB_RANGE_DEFAULT'.
2317         (get_char_id_table): Refer `cit->default_value'.
2318         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2319         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2320         temporary hack; check value of char-table is bound or not.
2321         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2322
2323         * chartab.h (struct Lisp_Char_Table): Add new member
2324         `default_value' in XEmacs UTF-2000.
2325         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2326         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2327         UTF-2000.
2328
2329 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2330
2331         * chartab.h (Lisp_Char_ID_Table): Deleted.
2332
2333         * chartab.c (char_table_description): Fix typo.
2334         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2335         `Lisp_Char_ID_Table'.
2336
2337 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2338
2339         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2340         `CHAR_ID_TABLE_P'.
2341
2342         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2343         `CHAR_ID_TABLE_P'.
2344
2345         * chartab.h (XCHAR_ID_TABLE): Deleted.
2346         (XSETCHAR_ID_TABLE): Deleted.
2347         (CHAR_ID_TABLE_P): Deleted.
2348
2349         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2350         `CHAR_ID_TABLE_P'.
2351         (Fget_composite_char): Likewise.
2352         (put_char_table): Likewise.
2353         (add_char_attribute_alist_mapper): Fixed.
2354         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2355         `CHAR_ID_TABLE_P'.
2356         (Fget_char_attribute): Likewise.
2357         (Fget_char_attribute): Likewise.
2358         (Fmap_char_attribute): Likewise.
2359
2360         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2361         `CHAR_ID_TABLE_P'.
2362         (encode_char_1): Likewise.
2363
2364 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2365
2366         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2367         `XCHAR_ID_TABLE'.
2368
2369         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2370         instead of `XCHAR_ID_TABLE'.
2371         (remove_char_ccs): Likewise.
2372
2373         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2374         `XCHAR_ID_TABLE'.
2375         (Fget_composite_char): Likewise.
2376         (Fchar_variants): Likewise.
2377         (put_char_table): Likewise.
2378         (add_char_attribute_alist_mapper): Likewise.
2379         (Fchar_attribute_alist): Likewise.
2380         (Fget_char_attribute): Likewise.
2381         (Fput_char_attribute): Likewise.
2382         (Fmap_char_attribute): Likewise.
2383         (Fmap_char_attribute): Likewise.
2384
2385         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2386         `XCHAR_ID_TABLE'.
2387         (encode_char_1): Likewise.
2388
2389 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2390
2391         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2392         `Lisp_Char_ID_Table'.
2393         (mark_char_id_table): Deleted.
2394         (print_char_id_table): Likewise.
2395         (char_id_table_equal): Likewise.
2396         (char_id_table_hash): Likewise.
2397         (char_id_table_description): Likewise.
2398         (char_id_table): Likewise.
2399         (make_char_id_table): Use `Fmake_char_table' and
2400         `fill_char_table'.
2401         (get_char_id_table): Use `Lisp_Char_Table' instead of
2402         `Lisp_Char_ID_Table'.
2403         (put_char_id_table): Likewise.
2404         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2405         `XCHAR_ID_TABLE'.
2406         (Fremove_char_attribute): Likewise.
2407         (syms_of_chartab): Don't define type `char-id-table'.
2408
2409         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2410         (char_id_table): Likewise.
2411         (GC_CHAR_ID_TABLE_P): Likewise.
2412         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2413         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2414         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2415         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2416         (get_char_id_table): Use `Lisp_Char_Table' instead of
2417         `Lisp_Char_ID_Table'.
2418         (put_char_id_table_0): Likewise.
2419         (put_char_id_table): Likewise.
2420
2421 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2422
2423         * chartab.h: Lisp_Byte_Table related codes are moved from
2424         chartab.h.
2425
2426         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2427
2428 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2429
2430         * chartab.h: Don't include "chartab.h".
2431         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2432         (Lisp_Char_ID_Table): Likewise.
2433         (char_id_table): Likewise.
2434         (XCHAR_ID_TABLE): Likewise.
2435         (XSETCHAR_ID_TABLE): Likewise.
2436         (CHAR_ID_TABLE_P): Likewise.
2437         (GC_CHAR_ID_TABLE_P): Likewise.
2438         (get_char_id_table): Likewise.
2439
2440         * char-ucs.h: Include "chartab.h".
2441         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2442         (Lisp_Char_ID_Table): Likewise.
2443         (char_id_table): Likewise.
2444         (XCHAR_ID_TABLE): Likewise.
2445         (XSETCHAR_ID_TABLE): Likewise.
2446         (CHAR_ID_TABLE_P): Likewise.
2447         (GC_CHAR_ID_TABLE_P): Likewise.
2448         (get_char_id_table): Likewise.
2449
2450 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2451
2452         * chartab.c (copy_uint8_byte_table): New function.
2453         (copy_uint16_byte_table): New function.
2454         (copy_byte_table): New function.
2455         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2456         characters to call.
2457         (map_over_uint16_byte_table): Likewise.
2458         (map_over_byte_table): Likewise.
2459         (get_byte_table): Move prototype to chartab.h.
2460         (put_byte_table): Likewise.
2461         (put_char_id_table_0): Moved to chartab.h.
2462         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2463         (char_table_entry_equal): Likewise.
2464         (char_table_entry_hash): Likewise.
2465         (char_table_entry_description): Likewise.
2466         (char_table_entry): Likewise.
2467         (make_char_table_entry): Likewise.
2468         (copy_char_table_entry): Likewise.
2469         (get_non_ascii_char_table_value): Likewise.
2470         (map_over_charset_ascii): Likewise.
2471         (map_over_charset_control_1): Likewise.
2472         (map_over_charset_row): Likewise.
2473         (map_over_other_charset): Likewise.
2474         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2475         (print_char_table): Likewise.
2476         (char_table_equal): Likewise.
2477         (char_table_hash): Likewise.
2478         (char_table_description): Likewise.
2479         (fill_char_table): Likewise.
2480         (Fcopy_char_table): Likewise.
2481         (get_char_table): Likewise.
2482         (Fget_range_char_table): Likewise.
2483         (put_char_table): Likewise.
2484         (map_char_table): Likewise.
2485         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2486         UTF-2000.
2487
2488 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2489
2490         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2491         `Vauto_fill_chars' in XEmacs UTF-2000.
2492
2493         * chartab.h (get_byte_table): New prototype [moved from
2494         chartab.c].
2495         (put_byte_table): Likewise [moved from chartab.c].
2496         (put_char_id_table_0): New inline function [moved from chartab.c].
2497         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2498         (Lisp_Char_Table_Entry): Likewise.
2499         (char_table_entry): Likewise.
2500         (XCHAR_TABLE_ENTRY): Likewise.
2501         (XSETCHAR_TABLE_ENTRY): Likewise.
2502         (CHAR_TABLE_ENTRYP): Likewise.
2503         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2504         (NUM_ASCII_CHARS): Likewise.
2505         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2506         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2507
2508 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2509
2510         * chartab.c (get_char_id_table): Change interface.
2511         (put_char_id_table_0): New function.
2512         (put_char_id_table): Change interface; new implementation.
2513         (Fget_composite_char): Modify for interface change of
2514         `get_char_id_table'.
2515         (Fchar_variants): Likewise.
2516         (add_char_attribute_alist_mapper): Likewise.
2517         (Fchar_attribute_alist): Likewise.
2518         (Fget_char_attribute): Likewise.
2519         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2520         as same as character as the first argument like `put-char-table';
2521         modify for interface change of `put_char_id_table'.
2522         (Fremove_char_attribute): Modify for interface change of
2523         `put_char_id_table'.
2524
2525 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2526
2527         * text-coding.c: Sync up with XEmacs 21.2.41.
2528         (COMPOSE_ADD_CHAR): Modify for interface change of
2529         `get_char_id_table'.
2530
2531         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2532         change of `put_char_id_table'.
2533         (remove_char_ccs): Likewise.
2534
2535         * chartab.h (put_char_id_table): Change interface.
2536
2537         * char-ucs.h (get_char_id_table): Change interface.
2538         (charset_code_point): Modify for interface change of
2539         `get_char_id_table'.
2540         (encode_char_1): Likewise.
2541
2542 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2543
2544         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2545         argument `ccs'.
2546         (map_over_uint16_byte_table): Likewise.
2547         (map_over_byte_table): Likewise.
2548         (map_char_id_table): Add new argument `range' like
2549         `map_char_table'.
2550         (Fmap_char_attribute): Add new argument `range' like
2551         `Fmap_char_table'.
2552
2553 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2554
2555         * chartab.c (map_over_uint8_byte_table): Change interface of
2556         mapping function to use struct chartab_range instead of Emchar.
2557         (map_over_uint16_byte_table): Likewise.
2558         (map_over_byte_table): Likewise.
2559         (map_char_id_table): Likewise.
2560         (struct slow_map_char_id_table_arg): Deleted.
2561         (slow_map_char_id_table_fun): Deleted.
2562         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2563         function `slow_map_char_table_fun' instead of struct
2564         `slow_map_char_id_table_arg' and function
2565         `slow_map_char_id_table_fun'.
2566
2567 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2568
2569         * mule-charset.c: Move char-it-table related codes to chartab.c.
2570         (Vutf_2000_version): Moved to chartab.c.
2571         (Fdefine_char): Likewise.
2572         (Ffind_char): Likewise.
2573         (syms_of_mule_charset): Move types `uint8-byte-table',
2574         `uint16-byte-table', `byte-table' and `char-id-table' to
2575         chartab.c; move functions `char_attribute_list,
2576         `find_char_attribute_table, `char_attribute_alist,
2577         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2578         `map_char_attribute, `define_char, `find_char, `char_variants and
2579         `get_composite_char to chartab.c; move symbols `=>ucs',
2580         `->decomposition', `compat', `isolated', `initial', `medial',
2581         `final', `vertical', `noBreak', `fraction', `super', `sub',
2582         `circle', `square', `wide', `narrow', `small' and `font' to
2583         chartab.c.
2584         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2585         setting codes for `Vcharacter_composition_table' and
2586         `Vcharacter_variant_table' to chartab.c.
2587         (complex_vars_of_mule_charset): Move setting code for
2588         `Vchar_attribute_hash_table' to chartab.c.
2589
2590         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2591         (make_char_id_table): New prototype.
2592         (put_char_id_table): Likewise.
2593         (Fget_char_attribute): Likewise.
2594
2595         * chartab.c: Move char-id-table related code from mule-charset.c.
2596         (Vutf_2000_version): Moved from mule-charset.c.
2597
2598         * char-ucs.h (Qucs): New external variable.
2599         (put_char_ccs_code_point): New prototype.
2600         (remove_char_ccs): Likewise.
2601
2602 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2603
2604         * mule-charset.c (Vcharset_ucs_jis): New variable.
2605         (Qucs_jis): Likewise.
2606         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2607         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2608
2609         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2610
2611 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2612
2613         * mule-charset.c (map_over_uint8_byte_table): New function.
2614         (map_over_uint16_byte_table): Likewise.
2615         (map_over_byte_table): Likewise.
2616         (map_char_id_table): Likewise.
2617         (slow_map_char_id_table_fun): Likewise.
2618         (Fmap_char_attribute): Likewise.
2619         (syms_of_mule_charset): Add new function `map-char-attribute'.
2620
2621 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2622
2623         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2624         (syms_of_mule_charset): Add new function `find-char'.
2625
2626 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2627
2628         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2629         XEmacs UTF-2000.
2630         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2631         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2632         XEmacs UTF-2000.
2633         (complex_vars_of_mule_charset): Add new coded-charset
2634         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2635         `ideograph-gt-pj-*'.
2636
2637         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2638
2639 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2640
2641         * mule-charset.c (encode_builtin_char_1): Purge codes about
2642         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2643         {MIN|MAX}_CHAR_HEBREW.
2644         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2645         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2646
2647         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2648         (MAX_CHAR_GREEK): Purged.
2649         (MIN_CHAR_CYRILLIC): Purged.
2650         (MAX_CHAR_CYRILLIC): Purged.
2651         (MIN_CHAR_HEBREW): Commented out.
2652         (MAX_CHAR_HEBREW): Likewise.
2653
2654 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2655
2656         * mule-charset.c (Qto_ucs): New variable.
2657         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2658         (Fdefine_char): Likewise.
2659         (syms_of_mule_charset): Add new symbol `=>ucs'.
2660
2661 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2662
2663         * mule-charset.c (Fdecode_char): Fixed.
2664
2665 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2666
2667         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2668         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2669         "tcvn5712-1".
2670
2671 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2672
2673         * mule-charset.c (Vcharset_ucs_big5): New variable.
2674         (Qucs_big5): Likewise.
2675         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2676         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2677
2678         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2679
2680 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2681
2682         * mule-charset.c (decode_builtin_char): Check Big5 code range
2683         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2684
2685 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2686
2687         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2688         (Qchinese_gb12345): Likewise.
2689         (Fdecode_builtin_char): Fixed.
2690         (syms_of_mule_charset): Add `chinese-gb12345'.
2691         (complex_vars_of_mule_charset): Add coded-charset
2692         `chinese-gb12345'.
2693
2694         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2695         (LEADING_BYTE_CHINESE_GB12345): New macro.
2696
2697 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2698
2699         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2700         and `latin-viscii-upper' for `latin-viscii'.
2701
2702 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2703
2704         * mule-charset.c (Fdecode_builtin_char): Comment out
2705         regularization code for ISO-IR GR representation.
2706
2707 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2708
2709         * mule-charset.c (decode_builtin_char): New function; renamed from
2710         `make_builtin_char'; return -1 instead of signal.
2711         (Fdecode_builtin_char): Use `decode_builtin_char'.
2712
2713         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2714         `make_builtin_char'.
2715         (DECODE_CHAR): Use `decode_builtin_char' instead of
2716         `make_builtin_char'; use mapping table of `chinese-big5' for
2717         `chinese-big5-{1,2}'.
2718
2719 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2720
2721         * text-coding.c (char_encode_big5): New function.
2722         (char_finish_big5): Likewise.
2723         (reset_encoding_stream): Use `char_encode_big5' and
2724         `char_finish_big5' for CODESYS_BIG5.
2725         (mule_encode): Don't use `encode_coding_big5'.
2726         (encode_coding_big5): Deleted.
2727
2728 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2729
2730         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2731         0x81- in XEmacs UTF-2000.
2732         (detect_coding_big5): Likewise.
2733
2734 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2735
2736         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2737         generate character-id if the CCS property does not have
2738         corresponding predefined character.
2739         (make_builtin_char): Return -1 if corresponding predefined
2740         character is not found.
2741         (Fdecode_char): Return nil if corresponding character is not
2742         found.
2743         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2744         don't map to builtin ucs space.
2745
2746 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2747
2748         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2749         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2750
2751 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2752
2753         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2754         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2755         (Qideograph_gt): Likewise.
2756         (Qideograph_gt_pj_{1..11}): Likewise.
2757         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2758         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2759         `ideograph-gt-pj-11'.
2760         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2761         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2762         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2763
2764         * char-ucs.h (LEADING_BYTE_GT): New macro.
2765         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2766         (MIN_CHAR_GT): Likewise.
2767         (MAX_CHAR_GT): Likewise.
2768
2769 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2770
2771         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2772         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2773
2774         * doprnt.c (unsigned_int_converters): Add `c'.
2775         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2776
2777         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2778         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2779         `MIN_CHAR_MOJIKYO'.
2780         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2781         (MAX_CHAR_MOJIKYO_0): New macro.
2782         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2783
2784 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2785
2786         * mule-charset.c (Fdefine_char): Delete cemented out code.
2787         (encode_builtin_char_1): Modify for new allocation of builtin
2788         Mojikyo characters.
2789
2790         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2791
2792 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2793
2794         * mule-charset.c (Vcharset_ucs_cns): New variable.
2795         (Qucs_cns): New variable.
2796         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2797         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2798
2799 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2800
2801         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2802
2803 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2804
2805         * search.c (search_buffer): Make `charset_base_code' as
2806         character-id >> 6 to eliminate the corresponding last byte in
2807         UTF-8 representation [I'm not sure it is right thing].
2808         (boyer_moore): Likewise.
2809
2810 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2811
2812         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2813         representation in MULE.
2814
2815 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2816
2817         * text-coding.c (Fmake_coding_system): Use
2818         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2819         `EXTERNAL_PROPERTY_LIST_LOOP'.
2820
2821 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2822
2823         * text-coding.c (decode_output_utf8_partial_char): New function.
2824         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2825
2826 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2827
2828         * text-coding.c (decode_coding_utf8): Output original byte
2829         sequence if it is broken; change order of conditions.
2830
2831         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2832         of conditions.
2833
2834         * mb-multibyte.h (BYTE_ASCII_P):
2835         Use bit ops for char-signedness safety.
2836         (BYTE_C0_P): Use bit ops for char-signedness safety.
2837         (BYTE_C1_P): Use bit ops for char-signedness safety.
2838
2839         * character.h: (XCHAR_OR_CHAR_INT):
2840         Always use inline function.
2841         Remove redundant type checking assert() - XINT will abort quite
2842         nicely.
2843
2844 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2845
2846         * text-coding.c: (Fencode_shift_jis_char):
2847         (Fencode_big5_char):
2848         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2849         Replace 0 with '\0' when working with bytes.
2850         Replace initial "(" with "\(" in docstrings.
2851
2852         (Fmake_coding_system):
2853         When type is ccl and value is vector, register it with a proper
2854         symbol.  And checks whether the given ccl program is valid.
2855         (mule_decode): When calling ccl_driver, if src indicates
2856         NULL pointer, set an empty string instead.
2857         (mule_encode): Likewise.
2858
2859         (detect_eol_type):
2860         (detect_coding_sjis):
2861         (decode_coding_sjis):
2862         (detect_coding_big5):
2863         (decode_coding_big5):
2864         (detect_coding_ucs4):
2865         (decode_coding_ucs4):
2866         (detect_coding_utf8):
2867         (decode_coding_utf8):
2868         (detect_coding_iso2022):
2869         (decode_coding_iso2022):
2870         (decode_coding_no_conversion):
2871         (mule_decode):
2872         Make all detecting and decoding functions take an Extbyte * arg.
2873         (text_encode_generic):
2874         (encode_coding_big5):
2875         (encode_coding_no_conversion):
2876         (mule_encode):
2877         Make all encoding functions take a Bufbyte * arg.
2878         Use size_t instead of unsigned int for memory sizes.
2879         Only cast to unsigned char whenever dereferencing Extbyte *.
2880
2881         (struct lrecord_description fcd_description_1): Use countof.
2882         (complex_vars_of_file_coding):
2883         Use countof instead of sizeof.
2884         Use CHECK_NATNUM instead of CHECK_INT.
2885
2886 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2887
2888         * mule-charset.c (Fget_char_attribute): Add new optional argument
2889         `default-value'.
2890         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2891         (remove_char_ccs): Likewise.
2892
2893 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2894
2895         * text-coding.c (char_encode_shift_jis): New implementation in
2896         UTF-2000.
2897         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2898         ...)'.
2899
2900         * mule-charset.c (Vcharset_chinese_big5): New variable in
2901         UTF-2000.
2902         (Qchinese_big5): New variable in UTF-2000.
2903         (BIG5_SAME_ROW): New macro in UTF-2000.
2904         (make_builtin_char): Use builtin characters of
2905         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2906         characters of `Vcharset_chinese_big5'.
2907         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2908         (complex_vars_of_mule_charset): Add new coded-charset
2909         `chinese-big5' in UTF-2000.
2910
2911         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2912         (Vcharset_chinese_big5): New external variable declaration.
2913         (Vcharset_japanese_jisx0208_1990): Likewise.
2914
2915 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2916
2917         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2918         function.
2919         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2920
2921 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2922
2923         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2924         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2925         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2926         `mojikyo-pj-*'.
2927
2928 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2929
2930         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2931
2932 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2933
2934         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2935         to 0.17.
2936
2937 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2938
2939         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2940         for `CHARSET_BY_ATTRIBUTES'.
2941         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2942         `CHARSET_BY_ATTRIBUTES'.
2943
2944         * text-coding.c (struct decoding_stream): Rename member `CH' to
2945         `CPOS'.
2946         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2947         (decode_coding_sjis): Likewise.
2948         (decode_coding_big5): Likewise.
2949         (decode_coding_ucs4): Likewise.
2950         (decode_coding_utf8): Likewise.
2951         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2952         `CHARSET_BY_ATTRIBUTES'.
2953         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2954         `str->counter'; decode 3, 4 bytes sets.
2955         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2956         sets.
2957         (decode_coding_no_conversion): Use `str->cpos' instead of
2958         `str->ch'.
2959
2960         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2961         (Qmojikyo_2022_1): New variable.
2962         (make_charset): Don't use `CHARSET_TYPE_*'.
2963         (range_charset_code_point): Support coded-charset
2964         `mojikyo-2022-1'.
2965         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2966         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2967         `CHARSET_BY_ATTRIBUTES'.
2968         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2969         `CHARSET_BY_ATTRIBUTES'.
2970         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2971         (complex_vars_of_mule_charset): Add new coded-charset
2972         `mojikyo-2022-1'.
2973
2974         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2975         interface; changed to inline function.
2976
2977         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2978         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2979         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2980         (CHARSET_TYPE_94): Deleted.
2981         (CHARSET_TYPE_94X94): Deleted.
2982         (CHARSET_TYPE_96): Deleted.
2983         (CHARSET_TYPE_96X96): Deleted.
2984         (CHARSET_TYPE_128): Deleted.
2985         (CHARSET_TYPE_128X128): Deleted.
2986         (CHARSET_TYPE_256): Deleted.
2987         (CHARSET_TYPE_256X256): Deleted.
2988         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2989         to inline function.
2990         (DECODE_MOJIKYO_2022): New inline function.
2991         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
2992         `Vcharset_mojikyo_2022_1'.
2993
2994 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2995
2996         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
2997         instead of `EQ'.
2998         (put_byte_table): Likewise.
2999         (char_id_table_equal): Use `get_byte_table' [new implementation].
3000
3001 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3002
3003         * mule-charset.c: Include <limits.h> in UTF-2000.
3004         (BT_UINT8_MIN): New macro in UTF-2000.
3005         (BT_UINT8_MAX): New macro in UTF-2000.
3006         (BT_UINT8_t): New macro in UTF-2000.
3007         (BT_UINT8_nil): New macro in UTF-2000.
3008         (BT_UINT8_unbound): New macro in UTF-2000.
3009         (INT_UINT8_P): New inline function in UTF-2000.
3010         (UINT8_VALUE_P): New inline function in UTF-2000.
3011         (UINT8_ENCODE): New inline function in UTF-2000.
3012         (UINT8_DECODE): New inline function in UTF-2000.
3013         (mark_uint8_byte_table): New function in UTF-2000.
3014         (print_uint8_byte_table): New function in UTF-2000.
3015         (uint8_byte_table_equal): New function in UTF-2000.
3016         (uint8_byte_table_hash): New function in UTF-2000.
3017         (make_uint8_byte_table): New function in UTF-2000.
3018         (uint8_byte_table_same_value_p): New function in UTF-2000.
3019         (BT_UINT16_MIN): New macro in UTF-2000.
3020         (BT_UINT16_MAX): New macro in UTF-2000.
3021         (BT_UINT16_t): New macro in UTF-2000.
3022         (BT_UINT16_nil): New macro in UTF-2000.
3023         (BT_UINT16_unbound): New macro in UTF-2000.
3024         (INT_UINT16_P): New inline function in UTF-2000.
3025         (UINT16_VALUE_P): New inline function in UTF-2000.
3026         (UINT16_ENCODE): New inline function in UTF-2000.
3027         (UINT16_DECODE): New inline function in UTF-2000.
3028         (UINT8_TO_UINT16): New inline function in UTF-2000.
3029         (mark_uint16_byte_table): New function in UTF-2000.
3030         (print_uint16_byte_table): New function in UTF-2000.
3031         (uint16_byte_table_equal): New function in UTF-2000.
3032         (uint16_byte_table_hash): New function in UTF-2000.
3033         (make_uint16_byte_table): New function in UTF-2000.
3034         (uint16_byte_table_same_value_p): New function in UTF-2000.
3035         (print_byte_table): New function in UTF-2000.
3036         (byte-table): Use `print_byte_table' as printer.
3037         (make_byte_table): Delete second argument `older'.
3038         (byte_table_same_value_p): New function in UTF-2000.
3039         (copy_byte_table): Deleted.
3040         (get_byte_table): New function in UTF-2000.
3041         (put_byte_table): New function in UTF-2000.
3042         (print_char_id_table): New function in UTF-2000.
3043         (char-id-table): Use `print_char_id_table' as printer.
3044         (make_char_id_table): Delete second argument `older'.
3045         (get_char_id_table): Use `get_byte_table [new implementation].
3046         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3047         implementation].
3048         (Ffind_char_attribute_table): New function in UTF-2000.
3049         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3050         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3051         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3052         (syms_of_mule_charset): Add new function
3053         `find-char-attribute-table' in UTF-2000.
3054
3055         * lrecord.h (enum lrecord_type): Add
3056         `lrecord_type_uint16_byte_table' and
3057         `lrecord_type_uint8_byte_table'.
3058
3059         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3060         (Lisp_Uint8_Byte_Table): New type.
3061         (XUINT8_BYTE_TABLE): New macro.
3062         (XSETUINT8_BYTE_TABLE): New macro.
3063         (UINT8_BYTE_TABLE_P): New macro.
3064         (GC_UINT8_BYTE_TABLE_P): New macro.
3065         (struct Lisp_Uint16_Byte_Table): New structure.
3066         (Lisp_Uint16_Byte_Table): New type.
3067         (XUINT16_BYTE_TABLE): New macro.
3068         (XSETUINT16_BYTE_TABLE): New macro.
3069         (UINT16_BYTE_TABLE_P): New macro.
3070         (GC_UINT16_BYTE_TABLE_P): New macro.
3071
3072 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3073
3074         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3075         (Vcharacter_ideographic_strokes_table): Deleted.
3076         (Vcharacter_total_strokes_table): Deleted.
3077         (Vcharacter_morohashi_daikanwa_table): Deleted.
3078         (Vcharacter_decomposition_table): Deleted.
3079         (Qname): Deleted because it is duplicated.
3080         (Qideographic_radical): Deleted.
3081         (Qideographic_strokes): Deleted.
3082         (Qtotal_strokes): Deleted.
3083         (Qmorohashi_daikanwa): Deleted.
3084         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3085         `ideographic-radical', `ideographic-strokes', `total-strokes',
3086         `morohashi-daikanwa' and `->decomposition'.
3087         (Fget_char_attribute): Likewise.
3088         (Fput_char_attribute): Likewise; use `make-vector' instead of
3089         `make_older_vector' for `->decomposition' value.
3090         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3091         `ideograph-daikanwa'.
3092         (syms_of_mule_charset): Delete builtin symbols `name',
3093         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3094         `morohashi-daikanwa'.
3095         (vars_of_mule_charset): Don't setup
3096         `Vcharacter_ideographic_radical_table',
3097         `Vcharacter_ideographic_strokes_table',
3098         `Vcharacter_total_strokes_table',
3099         `Vcharacter_morohashi_daikanwa_table' and
3100         `Vcharacter_decomposition_table'.
3101
3102 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3103
3104         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3105         `make_older_vector', `make_vector_newer_1' and
3106         `make_vector_newer'.
3107
3108         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3109         `make_older_vector' and `make_vector_newer'.
3110
3111         * config.h.in (HAVE_GGC): New macro.
3112
3113 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3114
3115         * mule-charset.c (struct char_attribute_list_closure): New
3116         structure in UTF-2000.
3117         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3118         (Fchar_attribute_list): Likewise.
3119         (Fset_charset_mapping_table): Use `make_vector_newer'.
3120         (Fdecode_builtin_char): New function in UTF-2000.
3121         (syms_of_mule_charset): Add new function `char-attribute-list' and
3122         `decode-builtin-char' in UTF-2000.
3123
3124         * lisp.h (make_vector_newer): New prototype.
3125
3126         * alloc.c (make_vector_newer_1): New function.
3127         (make_vector_newer): New function.
3128
3129 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3130
3131         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3132         50100)'.
3133
3134 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3135
3136         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3137         (Vcharacter_attribute_table): Deleted.
3138         (Vcharacter_name_table): Deleted.
3139         (put_char_attribute): Deleted.
3140         (remove_char_attribute): Deleted.
3141         (struct char_attribute_alist_closure): New structure.
3142         (add_char_attribute_alist_mapper): New function.
3143         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3144         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3145         (Fget_char_attribute): Likewise.
3146         (Fput_char_attribute): Likewise.
3147         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3148         of `remove_char_attribute'.
3149         (Fdefine_char): Return character.
3150         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3151         and `Vcharacter_name_table'.
3152         (complex_vars_of_mule_charset): Likewise
3153         `Vchar_attribute_hash_table'.
3154
3155 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3156
3157         * character.h (CHARC_CHARSET): New macro.
3158         (CHARC_CHARSET_ID): New macro.
3159         (CHARC_CODE_POINT): New macro.
3160         (CHARC_COLUMNS): New macro.
3161         (CHARC_TO_CHAR): New inline function.
3162         (CHARC_EQ): New inline function.
3163         (CHARC_ASCII_EQ): New inline function.
3164         (CHARC_IS_SPACE): New inline function.
3165         (ASCII_TO_CHARC): New inline function.
3166
3167         * char-ucs.h (encode_char_2): Deleted.
3168         (ENCODE_CHAR): Use `encode_char_1' again.
3169         (breakup_char_1): Likewise.
3170         (CHAR_TO_CHARC): New inline function.
3171
3172         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3173
3174 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3175
3176         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3177         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3178         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3179         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3180         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3181         `CHARC_IS_SPACE'.
3182         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3183
3184         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3185         `CHARC_CODE_POINT'.
3186         (x_output_display_block): Use `CHARC_CHARSET' and
3187         `CHARC_ASCII_EQ'.
3188
3189         * redisplay-tty.c (tty_output_display_block): Use
3190         `CHARC_ASCII_EQ'.
3191         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3192
3193         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3194
3195         * insdel.c (find_charsets_in_charc_string): Use
3196         `CHARC_CHARSET_ID'.
3197         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3198         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3199         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3200         (convert_charc_string_into_malloced_string): Likewise.
3201
3202 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3203
3204         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3205         instead of <Emchar_dynarr *> for buf; use
3206         `convert_bufbyte_string_into_charc_dynarr' instead of
3207         `convert_bufbyte_string_into_emchar_dynarr'; use
3208         `find_charsets_in_charc_string' instead of
3209         `find_charsets_in_emchar_string'.
3210
3211         * redisplay.h:
3212         - Include "character.h".
3213         (struct rune): New member `cglyph'; delete member `chr'.
3214
3215         * redisplay.c (redisplay_text_width_charc_string): New function;
3216         delete `redisplay_text_width_emchar_string'.
3217         (rtw_charc_dynarr): New variable; renamed from
3218         `rtw_emchar_dynarr'.
3219         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3220         `rtw_emchar_dynarr'; use
3221         `convert_bufbyte_string_into_charc_dynarr' instead of
3222         `convert_bufbyte_string_into_emchar_dynarr'; use
3223         `redisplay_text_width_charc_string' instead of
3224         `redisplay_text_width_emchar_string'.
3225         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3226         instead of `rtw_emchar_dynarr'; use
3227         `convert_bufbyte_string_into_charc_dynarr' instead of
3228         `convert_bufbyte_string_into_emchar_dynarr'.
3229         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3230         `redisplay_text_width_charc_string' instead of
3231         `redisplay_text_width_emchar_string'.
3232         (create_text_block): Modify for <struct rune> change.
3233         (generate_formatted_string_db): Likewise.
3234         (create_string_text_block): Likewise.
3235         (pixel_to_glyph_translation): Likewise.
3236
3237         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3238         instead of <const Emchar *>.
3239         (x_text_width): Likewise.
3240         (x_output_display_block): Use <Charc_dynarr *> instead
3241         <Emchar_dynarr *>; modify for <structure rune> change.
3242         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3243         *>.
3244
3245         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3246         <const Emchar *>; use `charc_string_displayed_columns' instead of
3247         `emchar_string_displayed_columns'.
3248         (tty_output_display_block): Use <Charc_dynarr *> instead of
3249         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3250         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3251         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3252         `tty_output_emchar_dynarr_dynarr'.
3253         (tty_output_charc_dynarr): New function; delete
3254         `tty_output_charc_dynarr'.
3255
3256         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3257         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3258         <Emchar_dynarr *> for buf; use
3259         `convert_bufbyte_string_into_charc_dynarr' instead of
3260         `convert_bufbyte_string_into_emchar_dynarr'.
3261
3262         * frame.c (title_string_charc_dynarr): New variable; renamed from
3263         `title_string_emchar_dynarr'.
3264         (generate_title_string): Use `title_string_charc_dynarr' instead
3265         of `title_string_emchar_dynarr'; use
3266         `convert_charc_string_into_malloced_string' instead of
3267         `convert_emchar_string_into_malloced_string'.
3268         (init_frame): Use `title_string_charc_dynarr' instead of
3269         `title_string_emchar_dynarr'.
3270
3271         * console.h:
3272         - Include "character.h".
3273         (struct console_methods): Use <const Charc *> instead of <const
3274         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3275         <Emchar_dynarr *> in output_string_method.
3276
3277         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3278         <Emchar_dynarr *>.
3279
3280         * console-stream.c (stream_text_width): Use <const Charc *>
3281         instead of <const Emchar *>.
3282
3283         * character.h (Charc_dynarr): New type.
3284
3285         * char-ucs.h (structure Charc): New structure; define new type
3286         `Charc'.
3287
3288         * char-lb.h (DECODE_CHAR): New inline function.
3289         (encode_char_1): New inline function.
3290         (ENCODE_CHAR): New macro.
3291         (structure Charc): New structure; define new type `Charc'.
3292
3293         * char-1byte.h (Vcharset_control_1): New macro.
3294         (Vcharset_latin_iso8859_1): New macro.
3295         (DECODE_CHAR): New inline function.
3296         (encode_char_1): New inline function.
3297         (ENCODE_CHAR): New macro.
3298         (structure Charc): New structure; define new type `Charc'.
3299
3300         * insdel.c (find_charsets_in_charc_string): New function; delete
3301         `find_charsets_in_emchar_string'.
3302         (charc_string_displayed_columns): New function; delete
3303         `emchar_string_displayed_columns'.
3304         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3305         `convert_bufbyte_string_into_emchar_dynarr'.
3306         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3307         `convert_charc_string_into_bufbyte_dynarr'.
3308         (convert_charc_string_into_malloced_string): New function; delete
3309         `convert_charc_string_into_malloced_string'.
3310
3311         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3312         `find_charsets_in_emchar_string'.
3313         (charc_string_displayed_columns): New prototype; delete
3314         `emchar_string_displayed_columns'.
3315         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3316         `convert_charc_string_into_bufbyte_dynarr'.
3317         (convert_charc_string_into_malloced_string): New prototype; delete
3318         `convert_charc_string_into_malloced_string'.
3319
3320 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3321
3322         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3323
3324 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3325
3326         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3327
3328         * char-ucs.h: Use <short> for <Charset_ID>.
3329
3330         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3331         <Charset_ID>.
3332
3333 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3334
3335         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3336         to 0.16.
3337
3338 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3339
3340         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3341         variable.
3342         (Qmorohashi_daikanwa): New variable.
3343         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3344         for `morohashi-daikanwa' attribute.
3345         (Fget_char_attribute): Likewise.
3346         (Fput_char_attribute): Likewise.
3347         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3348         has the same value of `ideograph-daikanwa'.
3349         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3350         (vars_of_mule_charset): Setup
3351         `Vcharacter_morohashi_daikanwa_table'.
3352
3353 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3354
3355         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3356         attributes.
3357         (add_charset_to_list_mapper): Add `key' instead of
3358         `XCHARSET_NAME (value)' to return aliases.
3359
3360 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3361
3362         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3363         variable.
3364         (Vcharacter_ideographic_strokes_table): New variable.
3365         (Qideographic_radical): New variable.
3366         (Qideographic_strokes): New variable.
3367         (Fchar_attribute_alist): Use
3368         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3369         attribute; use `Vcharacter_ideographic_strokes_table' for
3370         `ideographic-strokes' attribute.
3371         (Fget_char_attribute): Likewise.
3372         (Fput_char_attribute): Likewise.
3373         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3374         `ideographic-strokes'.
3375         (vars_of_mule_charset): Setup
3376         `Vcharacter_ideographic_radical_table' and
3377         `Vcharacter_ideographic_strokes_table'.
3378
3379 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3380
3381         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3382         (Qtotal_strokes): New variable.
3383         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3384         `total-strokes' attribute.
3385         (Fget_char_attribute): Likewise.
3386         (Fput_char_attribute): Likewise.
3387         (syms_of_mule_charset): Add new symbol `total-strokes'.
3388         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3389
3390 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3391
3392         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3393         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3394         are found.
3395         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3396         `->decomposition' attribute.
3397         (Fput_char_attribute): Likewise.
3398         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3399
3400 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3401
3402         * mule-charset.c (decoding_table_check_elements): New function.
3403         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3404
3405 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3406
3407         * mule-charset.c (Fset_charset_mapping_table): Use
3408         `put_char_ccs_code_point'.
3409
3410 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3411
3412         * mule-charset.c (decoding_table_put_char): New inline function.
3413         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3414
3415 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3416
3417         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3418         (XCHARSET_BYTE_SIZE): New macro.
3419         (decoding_table_remove_char): New inline function.
3420         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3421         `decoding_table_remove_char'.
3422         (remove_char_ccs): Use `decoding_table_remove_char'.
3423         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3424
3425 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3426
3427         * mule-charset.c (Vcharacter_name_table): New variable.
3428         (Qname): New variable.
3429         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3430         attribute.
3431         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3432         `Vcharacter_name_table' for `name' attribute.
3433         (Fremove_char_attribute): Use function `remove_char_ccs'.
3434         (put_char_ccs_code_point): New function.
3435         (remove_char_ccs): New function.
3436         (syms_of_mule_charset): Add new symbol `name'.
3437         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3438
3439 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3440
3441         * mule-charset.c (make_byte_table): Add new argument `older'.
3442         (make_char_id_table): Likewise.
3443         (copy_char_id_table): Comment out because it is not used.
3444         (put_char_id_table): Modify for `make_byte_table'.
3445         (Fput_char_attribute): Make encoding_table as older object;
3446         inherit older bit of `Vcharacter_composition_table'.
3447         (mark_charset): Don't mark `cs->encoding_table'.
3448         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3449         normal object; make `Vcharacter_composition_table' as an older
3450         object; delete staticpro for `Vcharacter_composition_table'; make
3451         `Vcharacter_variant_table' as a normal object.
3452
3453         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3454         (mark_object): Don't check older object in UTF-2000.
3455
3456         * lrecord.h (struct lrecord_header): Add new member `older' in
3457         UTF-2000.
3458         (set_lheader_implementation): Setup `SLI_header->older' in
3459         UTF-2000.
3460         (set_lheader_older_implementation): New macro in UTF-2000.
3461         (OLDER_RECORD_P): New macro in UTF-2000.
3462         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3463         (alloc_older_lcrecord): New prototype in UTF-2000.
3464         (alloc_older_lcrecord_type): New macro in UTF-2000.
3465
3466 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3467
3468         * mule-charset.c (byte_table_description): Use
3469         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3470         (char_id_table_description): Delete bogus `, 1'.
3471         (Fget_char_attribute): Refer encoding_table of each coded-charset
3472         to get value of coded-charset attribute of a character.
3473         (Fput_char_attribute): Use `make_older_vector' instead of
3474         `make_vector'; use encoding_table of each coded-charset to store
3475         value of coded-charset attribute of a character.
3476         (Fremove_char_attribute): Use encoding_table of each coded-charset
3477         to store value of coded-charset attribute of a character.
3478         (mark_charset): Mark `cs->encoding_table'; don't mark
3479         `cs->decoding_table'.
3480         (charset_description): Add description of new member
3481         `encoding_table'.
3482         (make_charset): Initialize `encoding_table'.
3483
3484         * char-ucs.h (struct Lisp_Charset): Add new member
3485         `encoding_table'.
3486         (CHARSET_ENCODING_TABLE): New macro.
3487         (XCHARSET_ENCODING_TABLE): New macro.
3488         (charset_code_point): New implementation.
3489         (encode_char_1): Likewise.
3490
3491         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3492         (disksave_object_finalization_1): Call finalizers of
3493         `all_older_lcrecords' in UTF-2000.
3494         (make_older_vector): New function in UTF-2000.
3495         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3496         UTF-2000.
3497
3498         * lisp.h (make_older_vector): New prototype in UTF-2000.
3499
3500 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3501
3502         * lrecord.h (enum lrecord_type): Rename
3503         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3504
3505         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3506         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3507         `get_char_code_table'.
3508
3509         * mule-charset.c (mark_char_id_table): Renamed from
3510         `mark_char_code_table'.
3511         (char_id_table_equal): Renamed from `char_code_table_equal'.
3512         (char_id_table_hash): Renamed from `char_code_table_hash'.
3513         (make_char_id_table): Renamed from `make_char_code_table'.
3514         (copy_char_id_table): Renamed from `copy_char_code_table'.
3515         (get_char_id_table): Renamed from `get_char_code_table'.
3516         (put_char_id_table): Renamed from `put_char_code_table'.
3517         (to_char_id): Renamed from `to_char_code'.
3518
3519         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3520         `Lisp_Char_Code_Table'.
3521         (char_id_table): Renamed from `char_code_table'.
3522         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3523         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3524         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3525         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3526         (get_char_id_table): Renamed from `get_char_code_table'.
3527
3528 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3529
3530         * lrecord.h (enum lrecord_type): Rename
3531         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3532
3533         * mule-charset.c (mark_byte_table): Renamed from
3534         `mark_char_byte_table'.
3535         (byte_table_equal): Renamed from `char_byte_table_equal'.
3536         (byte_table_hash): Renamed from `byte_table_hash'.
3537         (make_byte_table): Renamed from `make_byte_table'.
3538         (copy_byte_table): Renamed from `copy_char_byte_table'.
3539
3540         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3541         `Lisp_Char_Byte_Table'.
3542         (byte_table): Renamed from `char_byte_table'.
3543         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3544         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3545         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3546         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3547
3548 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3549
3550         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3551         (dfc_convert_to_internal_format): Likewise.
3552         
3553         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3554         * text-coding.c (Fcoding_system_alias_p): New function.
3555         * text-coding.c (Fcoding_system_aliasee): New function.
3556         * text-coding.c (append_suffix_to_symbol): New function.
3557         * text-coding.c (dangling_coding_system_alias_p): New function.
3558         * text-coding.c (Ffind_coding_system):
3559         * text-coding.c (Fcopy_coding_system):
3560         * text-coding.c (encode_coding_no_conversion):
3561         * text-coding.c (syms_of_file_coding):
3562         * text-coding.c (vars_of_file_coding):
3563         Rewrite coding system alias code.
3564         Allow nested aliases, like symbolic links.
3565         Allow redefinition of coding system aliases.
3566         Prevent existence of dangling coding system aliases.
3567         Eliminate convert_to_external_format.
3568         Eliminate convert_to_internal_format.
3569         
3570         * text-coding.c: Change enum eol_type to eol_type_t.
3571
3572 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3573
3574         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3575         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3576
3577         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3578         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3579
3580 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3581
3582         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3583         `ideograph-daikanwa'.
3584
3585         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3586         (Vcharset_ucs_bmp): Likewise.
3587         (Vcharset_mojikyo): Add new extern variable definition.
3588         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3589         (Vcharset_latin_iso8859_3): Likewise.
3590         (Vcharset_latin_iso8859_4): Likewise.
3591         (Vcharset_latin_iso8859_9): Likewise.
3592         (Vcharset_latin_viscii_lower): Likewise.
3593         (Vcharset_latin_viscii_upper): Likewise.
3594         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3595         `mojikyo' code-point is used to decode.
3596         (encode_char_2): New function [to convert `mojikyo' code-point to
3597         Mojikyo font encoding].
3598         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3599         (breakup_char_1): Likewise.
3600         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3601
3602 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3603
3604         * text-coding.c (Fmake_coding_system): Add document about
3605         `disable-composition' property.
3606
3607 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3608
3609         * text-coding.c (Qdisable_composition): New variable; delete
3610         `Qcomposite'.
3611         (Fmake_coding_system): Add new property `disable-composite';
3612         delete property `composite'.
3613         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3614         instead of `!CODING_SYSTEM_COMPOSITE'.
3615         (syms_of_file_coding): Add new symbol `disable-composition';
3616         delete symbol `composite'.
3617
3618         * file-coding.h (struct Lisp_Coding_System): Add
3619         `disable_composition'; delete `enable_composition'.
3620         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3621         `CODING_SYSTEM_COMPOSITE'.
3622         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3623         `XCODING_SYSTEM_COMPOSITE'.
3624
3625 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3626
3627         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3628         to 0.15.
3629
3630 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3631
3632         * text-coding.c (Qcomposite): New variable.
3633         (Fmake_coding_system): Add new property `composite'.
3634         (struct decoding_stream): Add `combined_char_count',
3635         `combined_chars' and `combining_table' in UTF-2000.
3636         (COMPOSE_FLUSH_CHARS): New macro.
3637         (COMPOSE_ADD_CHAR): New macro.
3638         (reset_decoding_stream): Reset `str->combined_char_count' and
3639         `str->combining_table' in UTF-2000.
3640         (decode_coding_iso2022): Modify for character-decomposition.
3641         (syms_of_file_coding): Add new symbol `composite'.
3642
3643 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3644
3645         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3646         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3647         of `Vcharacter_composition_table' if `->decomposition' property
3648         has only 1 element.
3649         (Qlatin_tcvn5712): New variable.
3650         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3651         (complex_vars_of_mule_charset): Add new coded-charset
3652         `latin-tcvn5712'.
3653
3654         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3655
3656 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3657
3658         * file-coding.h (struct Lisp_Coding_System): Add
3659         `enable_composition'.
3660         (CODING_SYSTEM_COMPOSITE): New macro.
3661         (XCODING_SYSTEM_COMPOSITE): New macro.
3662
3663 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3664
3665         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3666
3667 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3668
3669         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3670         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3671
3672 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3673
3674         * mule-charset.c (Vcharset_mojikyo): New variable.
3675         (Fdefine_char): Don't use coded-charset which does not have
3676         non-builtin character range to allocate character-id.
3677         (Qmojikyo): New variable.
3678         (syms_of_mule_charset): Add new symbol `mojikyo'.
3679         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3680
3681         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3682         (LEADING_BYTE_MOJIKYO): New macro.
3683         (MIN_CHAR_MOJIKYO): New macro.
3684         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3685         (MAX_CHAR_MOJIKYO): New macro.
3686
3687 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3688
3689         * mule-charset.c (remove_char_attribute): Fixed.
3690
3691 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3692
3693         * mule-charset.c (remove_char_attribute): New function.
3694         (Fremove_char_attribute): New function.
3695         (encode_builtin_char_1): Comment out builtin-support for
3696         greek-iso8859-7 and cyrillic-iso8859-5.
3697         (Fdecode_char): Check `code' is an integer.
3698         (syms_of_mule_charset): Add `remove-char-attribute'.
3699         (MIN_CHAR_GREEK): Deleted.
3700         (MAX_CHAR_GREEK): Likewise.
3701         (MIN_CHAR_CYRILLIC): Likewise.
3702         (MAX_CHAR_CYRILLIC): Likewise.
3703         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3704         MAX_CHAR_GREEK for `greek-iso8859-7'.
3705
3706         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3707         (MAX_CHAR_GREEK): Likewise.
3708         (MIN_CHAR_CYRILLIC): Likewise.
3709         (MAX_CHAR_CYRILLIC): Likewise.
3710
3711 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3712
3713         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3714         format is used without `ucs' property.
3715         (Fdecode_char): Fix problem with GR representation.
3716         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3717         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3718
3719 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3720
3721         * mule-charset.c (make_builtin_char): New function.
3722         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3723         (Fset_charset_mapping_table): Modify for new representation of
3724         code-point.
3725         (Fdecode_char): New function.
3726         (syms_of_mule_charset): Add new builtin function `decode-char' in
3727         UTF-2000.
3728
3729         * char-ucs.h (make_builtin_char): New prototype.
3730         (DECODE_CHAR): New inline function.
3731         (MAKE_CHAR): Use `DECODE_CHAR'.
3732
3733 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3734
3735         * text-coding.c (parse_charset_conversion_specs): Use
3736         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3737         `XCHARSET_TYPE'.
3738         (iso2022_designate): Likewise.
3739
3740         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3741         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3742
3743         * mule-charset.c (Vcharset_ucs): New variable.
3744         (print_charset): Change design; use `CHARSET_CHARS' and
3745         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3746         (make_charset): Change signature to specify `chars' and
3747         `dimension' instead of `type'.
3748         (range_charset_code_point): Modify for 256^n-set.
3749         (encode_builtin_char_1): Encode as `ucs' in default.
3750         (Fmake_charset): Modify for `make_charset'.
3751         (Fmake_reverse_direction_charset): Likewise.
3752         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3753         UTF-2000.
3754         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3755         for `make_charset'.
3756
3757         * char-ucs.h (Vcharset_ucs): New variable.
3758         (LEADING_BYTE_UCS): New macro.
3759         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3760         and `chars' to `unsigned short' from `unsigned int'.
3761         (CHARSET_TYPE): Deleted.
3762         (XCHARSET_TYPE): Deleted.
3763
3764 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3765
3766         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3767
3768         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3769         (ENCODE_CHAR): New macro.
3770
3771 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3772
3773         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3774         to 0.14 (Kawachi-Katakami).
3775
3776 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3777
3778         * text-coding.c (char_encode_shift_jis): Modify for
3779         `charset_code_point'.
3780         (char_encode_iso2022): Likewise.
3781
3782         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3783         (integer) instead of list of <Lisp_Object>s (integers) as the
3784         format of code-point of a coded-charset.
3785         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3786         (encode_builtin_char_1): New function; delete
3787         `split_builtin_char'.
3788         (charset_code_point): Return <int> instead of <Lisp_Object>.
3789         (Fsplit_char): Don't use `SPLIT_CHAR'.
3790
3791         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3792         prototype for `split_builtin_char'.
3793         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3794         (charset_code_point): Likewise.
3795         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3796         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3797
3798 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3799
3800         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3801         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3802
3803 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3804
3805         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3806
3807         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3808         (MAX_CHAR_OBS_94x94): Deleted.
3809
3810 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3811
3812         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3813
3814         * char-ucs.h (MAX_CHAR_BMP): New macro.
3815
3816 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3817
3818         * text-coding.c: Sync with r21-2-24.
3819
3820 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3821
3822         * file-coding.c: Modify for UTF-2000.
3823
3824 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3825
3826         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3827         to 0.13 (Takaida).
3828
3829 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3830
3831         * mule-charset.c (split_builtin_char): Delete builtin support for
3832         `katakana-jisx0201'.
3833         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3834         BMP area in builtin representation.
3835
3836         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3837         `Vcharset_katakana_jisx0201'.
3838
3839 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3840
3841         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3842         (Qisolated): New variable.
3843         (Qinitial): New variable.
3844         (Qmedial): New variable.
3845         (Qfinal): New variable.
3846         (Qvertical): New variable.
3847         (Qsmall): New variable.
3848         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3849         `Qvertical' and `Qsmall'.
3850         (Qmojikyo_pj_[1 .. 21]): New variable.
3851         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3852         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3853         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3854         .. 21]'.
3855
3856 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3857
3858         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3859         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3860         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3861
3862 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3863
3864         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3865         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3866         BMP.
3867         (Qjapanese_jisx0208_1990): New variable.
3868         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3869         (complex_vars_of_mule_charset): Add new coded-charset
3870         `japanese-jisx0208-1990'.
3871
3872         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3873         (MIN_CHAR_JIS_X0208_1990): New macro.
3874         (MAX_CHAR_JIS_X0208_1990): New macro.
3875
3876 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3877
3878         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3879         coded-charset is not found.
3880
3881 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3882
3883         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3884         (Fdefine_char): Use `Fmake_char'.
3885
3886 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3887
3888         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3889         (Vcharset_hiragana_jisx0208): Deleted.
3890         (Vcharset_katakana_jisx0208): Deleted.
3891         (Qideograph_daikanwa): New variable.
3892         (Qhiragana_jisx0208): Deleted.
3893         (Qkatakana_jisx0208): Deleted.
3894         (split_builtin_char): Split `ideograph-daikanwa'.
3895         (Fsplit_char): New implementation for UTF-2000.
3896         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3897         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3898         (complex_vars_of_mule_charset): Add new coded-charset
3899         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3900         `katakana-jisx0208'.
3901
3902         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3903         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3904         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3905         (MIN_CHAR_DAIKANWA): New macro.
3906         (MAX_CHAR_DAIKANWA): New macro.
3907
3908 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3909
3910         * data.c (Fstring_to_number): Don't recognize floating point if
3911         base is not 10.
3912
3913 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3914
3915         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3916
3917 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3918
3919         * mule-charset.c (Qsquare): New variable.
3920         (to_char_code): Add `Qsquare'.
3921         (syms_of_mule_charset): Add new symbol `square'.
3922
3923 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3924
3925         * mule-charset.c (Qcircle): New variable.
3926         (to_char_code): Add `Qcircle'.
3927         (syms_of_mule_charset): Add new symbol `circle'.
3928
3929 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3930
3931         * mule-charset.c (Qfont): New variable.
3932         (to_char_code): Add `Qfont'.
3933         (syms_of_mule_charset): Add new symbol `font'.
3934
3935 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3936
3937         * mule-charset.c (Qsub): New variable.
3938         (to_char_code): Add `Qsub'.
3939         (syms_of_mule_charset): Add new symbol `sub'.
3940
3941 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3942
3943         * mule-charset.c (Fput_char_attribute): Convert each element of
3944         VALUE to GL position if ATTRIBUTE is a GR-set,
3945
3946 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3947
3948         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3949         coded-charset is a GR-set.
3950
3951 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3952
3953         * mule-charset.c (Fput_char_attribute): Check each element of
3954         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3955
3956 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3957
3958         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3959         UTF-2000.
3960         (Qethiopic_ucs): New variable in UTF-2000.
3961         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3962         (complex_vars_of_mule_charset): Add new coded-charset
3963         `ethiopic-ucs' in UTF-2000.
3964
3965         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3966         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3967         9)'.
3968         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3969         10)'.
3970         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3971
3972 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3973
3974         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3975         `ascii'.
3976
3977 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3978
3979         * mule-charset.c (Vcharacter_variant_table): New variable.
3980         (Q_ucs): New variable.
3981         (Fchar_variants): New function.
3982         (Fput_char_attribute): Register `->ucs' value to
3983         `Vcharacter_variant_table'.
3984         (syms_of_mule_charset): Add new function `char-variants' and new
3985         symbol `->ucs'.
3986         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3987
3988 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3989
3990         * mule-charset.c (get_char_code_table): Allow negative character
3991         code.
3992         (put_char_code_table): Likewise.
3993         (Vcharacter_composition_table): New variable.
3994         (Q_decomposition): New variable.
3995         (Qwide): New variable.
3996         (Qnarrow): New variable.
3997         (Qcompat): New variable.
3998         (QnoBreak): New variable.
3999         (Qsuper): New variable.
4000         (Qfraction): New variable.
4001         (to_char_code): New function.
4002         (Fget_composite_char): New function.
4003         (Fput_char_attribute): Register `->decomposition' value to
4004         `Vcharacter_composition_table'.
4005         (syms_of_mule_charset): Add new function `get-composite-char', new
4006         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4007         `super' and `fraction'.
4008         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4009
4010 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4011
4012         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4013         character; copy the return value.
4014
4015 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4016
4017         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4018
4019         * mule-charset.c (range_charset_code_point): Must use make_int.
4020         (split_builtin_char): New function.
4021
4022 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4023
4024         * mule-charset.c (char_byte_table): Change name from
4025         "char-code-table" to "char-byte-table".
4026         (mark_char_code_table): New function.
4027         (char_code_table_equal): New function.
4028         (char_code_table_hash): New function.
4029         (char_code_table_description): New constant.
4030         (char_code_table): New type.
4031         (make_char_code_table): New function.
4032         (copy_char_code_table): New function.
4033         (get_char_code_table): Modify for `char_code_table' type.
4034         (put_char_code_table): Likewise.
4035         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4036         (Kashiwara).
4037
4038         * char-ucs.h (char_code_table): New type.
4039         (XCHAR_CODE_TABLE): New macro.
4040         (XSETCHAR_CODE_TABLE): New macro.
4041         (CHAR_CODE_TABLE_P): New macro.
4042         (GC_CHAR_CODE_TABLE_P): New macro.
4043         (struct Lisp_Char_Code_Table): New structure.
4044
4045 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4046
4047         * mule-charset.c (Fmake_charset): Setup byte_offset for
4048         {94|96}^n-set.
4049
4050 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4051
4052         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4053         character.
4054
4055 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4056
4057         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4058         is found.
4059
4060 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4061
4062         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4063         charset, it is regarded as a charset.
4064         (put_char_attribute): New function in UTF-2000.
4065         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4066         charset, mapping-table of the charset is modified.
4067         (Fdefine_char): New function in UTF-2000.
4068         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4069         `Fput_char_attribute'.
4070         (syms_of_mule_charset): Add new function `define-char' and new
4071         symbol `ucs' in UTF-2000.
4072         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4073
4074 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4075
4076         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4077         non-UTF-2000 configuration.
4078
4079 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4080
4081         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4082         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4083
4084         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4085         deleted.
4086         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4087         (Fset_charset_mapping_table): Likewise.
4088
4089         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4090         (CHARSET_ENCODING_TABLE): Delete.
4091         (XCHARSET_ENCODING_TABLE): Delete.
4092         (charset_code_point): New interface.
4093
4094 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4095
4096         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4097         instead of `charset_get_byte1' and `charset_get_byte2'.
4098
4099         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4100         (charset_get_byte2): Deleted.
4101
4102 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4103
4104         * char-ucs.h (SPLIT_CHAR): New inline function.
4105         (breakup_char_1): Use `SPLIT_CHAR'.
4106
4107         * mule-charset.c (range_charset_code_point): New function.
4108         (charset_code_point): New function.
4109
4110         * char-ucs.h (range_charset_code_point): New interface.
4111         (breakup_char_1): Use `range_charset_code_point'.
4112
4113 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4114
4115         * mule-charset.c (Fmake_charset): Delete unused local variable
4116         `code_offset'.
4117
4118         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4119         (breakup_char_1): Find a charset and code-point in
4120         `Vcharacter_attribute_table'.
4121
4122 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4123
4124         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4125         to 0.10 (Yao).
4126
4127 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4128
4129         * mule-charset.c (Vcharacter_attribute_table): New variable.
4130         (Fchar_attribute_alist): New function.
4131         (Fget_char_attribute): New function.
4132         (Fput_char_attribute): New function.
4133         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4134         too.
4135         (syms_of_mule_charset): Add new function `char-attribute-alist',
4136         `get-char-attribute' and `put-char-attribute'.
4137         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4138
4139 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4140
4141         * mule-charset.c (Fmake_charset): Just use
4142         `get_unallocated_leading_byte'.
4143
4144         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4145         sets; don't use final-byte based number for private sets.
4146
4147 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4148
4149         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4150         integer.
4151
4152 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4153
4154         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4155         to 0.9.
4156
4157 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4158
4159         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4160         of `CHAR_LEADING_BYTE' in UTF-2000.
4161
4162         * insdel.c (find_charsets_in_bufbyte_string): Use
4163         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4164         (find_charsets_in_emchar_string): Likewise.
4165
4166         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4167         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4168
4169         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4170         (CHAR_CHARSET_ID): New macro.
4171
4172 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4173
4174         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4175         charset-id - MIN_LEADING_BYTE.
4176         (put_char_table): Likewise.
4177
4178 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4179
4180         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4181         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4182         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4183         (CHARSET_ID_OFFSET): New macro.
4184         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4185         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4186         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4187         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4188         4).
4189         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4190         5).
4191         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4192         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4193         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4194         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4195         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4196
4197 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4198
4199         * mule-charset.c (next_allocated_leading_byte): New variable in
4200         UTF-2000.
4201         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4202         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4203         (get_unallocated_leading_byte): Simply use
4204         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4205         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4206         UTF-2000.
4207
4208         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4209         (MAX_LEADING_BYTE_PRIVATE): New macro.
4210         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4211         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4212
4213 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4214
4215         * mule-charset.c (Fmake_charset): Allocate final-byte based
4216         charset-id for 94-set, 96-set and 94x94-set.
4217
4218 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4219
4220         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4221         ambiguous `else'.
4222         (Fmake_charset): Likewise.
4223         (complex_vars_of_mule_charset): Modify the font registry of
4224         `ucs-bmp' not to match `Ethiopic-Unicode'.
4225
4226 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4227
4228         * mule-charset.c (complex_vars_of_mule_charset): Add font
4229         registory of `ucs-bmp'.
4230
4231 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4232
4233         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4234         coded-charsets in `default-coded-charset-priority-list' when
4235         breaking up a character.
4236
4237         * mule-charset.c (Vcharset_latin_viscii): New variable.
4238         (Qlatin_viscii): New variable.
4239         (make_charset): Don't use `decoding_table'.
4240         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4241         byte_offset.
4242         (Fset_charset_mapping_table): New implementation.
4243         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4244         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4245         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4246         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4247         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4248         charset `latin_viscii'.
4249
4250         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4251         (CHARSET_TYPE_94X94): Change to 1 from 2.
4252         (CHARSET_TYPE_96): Change to 2 from 1.
4253         (CHARSET_TYPE_128): New macro.
4254         (CHARSET_TYPE_128X128): Change to 5 from 4.
4255         (CHARSET_TYPE_256): New macro.
4256         (CHARSET_TYPE_256X256): Change to 7 from 5.
4257         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4258
4259 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4260
4261         * text-coding.c (char_encode_shift_jis): Refer
4262         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4263         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4264
4265         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4266         (char_byte_table_equal): New function in UTF-2000.
4267         (char_byte_table_hash): New function in UTF-2000.
4268         (char_byte_table_description): New constant in UTF-2000.
4269         (char_byte_table): New type in UTF-2000.
4270         (make_char_byte_table): New function in UTF-2000.
4271         (copy_char_byte_table): New function in UTF-2000.
4272         (make_char_code_table): New macro in UTF-2000.
4273         (get_char_code_table): New function in UTF-2000.
4274         (put_char_code_table): New function in UTF-2000.
4275         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4276         (charset_description): Add setting in UTF-2000.
4277         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4278         `CHARSET_TO_BYTE1_TABLE(cs)'.
4279         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4280         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4281         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4282         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4283         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4284         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4285         `CHARSET_TO_BYTE2_TABLE(cs)'.
4286
4287         * char-ucs.h (char_byte_table): New type.
4288         (XCHAR_BYTE_TABLE): New macro.
4289         (XSETCHAR_BYTE_TABLE): New macro.
4290         (CHAR_BYTE_TABLE_P): New macro.
4291         (GC_CHAR_BYTE_TABLE_P): New macro.
4292         (struct Lisp_Char_Byte_Table): New structure.
4293         (get_char_code_table): New interface.
4294         (Emchar_to_byte_table): Deleted.
4295         (get_byte_from_character_table): Deleted.
4296         (struct Lisp_Charset): Add `encoding_table'; delete
4297         `to_byte1_table' and `to_byte2_table'.
4298         (CHARSET_ENCODING_TABLE): New macro.
4299         (CHARSET_TO_BYTE1_TABLE): Deleted.
4300         (CHARSET_TO_BYTE2_TABLE): Deleted.
4301         (XCHARSET_ENCODING_TABLE): New macro.
4302         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4303         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4304
4305 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4306
4307         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4308         `vietnamese-viscii-*'.
4309
4310 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4311
4312         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4313         (Qvietnamese_viscii_upper): New variable.
4314         (Fdefine_charset_alias): New function.
4315         (syms_of_mule_charset): Add new function `define-charset-alias'.
4316         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4317         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4318         `latin-viscii-*'.
4319
4320 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4321
4322         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4323         (MAX_CHAR_OBS_94x94): New macro.
4324         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4325         for 94x94 sets.
4326
4327         * mule-charset.c (put_byte_from_character_table): Change unit size
4328         from 128 to 256.
4329         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4330         not defined.
4331         (Fmake_reverse_direction_charset): Modify dummy argument of
4332         `make_charset' for non-UTF-2000 environment.
4333
4334 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4335
4336         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4337
4338         * mule-charset.c (destroy_byte_from_character_table): New macro.
4339         (latin_jisx0201_to_ucs): Deleted.
4340         (latin_iso8859_2_to_ucs): Deleted.
4341         (latin_iso8859_3_to_ucs): Deleted.
4342         (latin_iso8859_4_to_ucs): Deleted.
4343         (latin_iso8859_9_to_ucs): Deleted.
4344         (latin_viscii_lower_to_ucs): Deleted.
4345         (latin_viscii_upper_to_ucs): Deleted.
4346         (mark_charset): Mark `cs->decoding_table'.
4347         (Fcharset_mapping_table): Fix DOC-string.
4348         (Fset_charset_mapping_table): New function.
4349         (syms_of_mule_charset): Add nwe function
4350         `set-charset-mapping-table'.
4351         (complex_vars_of_mule_charset): Don't setup and use
4352         `latin_*_to_ucs'.
4353
4354 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4355
4356         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4357         charset.
4358
4359 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4360
4361         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4362         (Vcharset_katakana_jisx0208): New variable.
4363         (Qhiragana_jisx0208): New variable.
4364         (Qkatakana_jisx0208): New variable.
4365         (make_charset): Add new argument `byte_offset'.
4366         (charset_get_byte1): Modify for new coded-charset definition; use
4367         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4368         `XCHARSET_BYTE_OFFSET'.
4369         (Fmake_charset): Modify for `make_charset'.
4370         (Fmake_reverse_direction_charset): Likewise.
4371         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4372         `katakana-jisx0208'.
4373         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4374         `.'  in font registry of charset `katakana-jisx0201',
4375         `latin-jisx0201', `vietnamese-viscii-lower' and
4376         `vietnamese-viscii-upper'; modify DOC-string of charset
4377         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4378         registry of charset `japanese-jisx0208' not to use font for JIS
4379         X0208:1990; add new charset `hiragana-jisx0208' and
4380         `katakana-jisx0208'.
4381
4382         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4383         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4384         (struct Lisp_Charset): Add `byte_offset'.
4385         (CHARSET_BYTE_OFFSET): New macro.
4386         (XCHARSET_UCS_MIN): New macro.
4387         (XCHARSET_UCS_MAX): New macro.
4388         (XCHARSET_CODE_OFFSET): New macro.
4389         (XCHARSET_BYTE_OFFSET): New macro.
4390         (MIN_CHAR_HIRAGANA): New macro.
4391         (MAX_CHAR_HIRAGANA): New macro.
4392         (MIN_CHAR_KATAKANA): New macro.
4393         (MAX_CHAR_KATAKANA): New macro.
4394         (MAKE_CHAR): Modify for new coded-charset definition; use
4395         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4396         `XCHARSET_BYTE_OFFSET'.
4397
4398 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4399
4400         * mule-charset.c (CHAR96): Deleted.
4401         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4402         <Lisp_Object>.
4403         (latin_iso8859_2_to_ucs): Likewise.
4404         (latin_iso8859_3_to_ucs): Likewise.
4405         (latin_iso8859_4_to_ucs): Likewise.
4406         (latin_iso8859_9_to_ucs): Likewise.
4407         (latin_viscii_lower_to_ucs): Likewise.
4408         (latin_viscii_upper_to_ucs): Likewise.
4409         (latin_tcvn5712_to_ucs): Commented out.
4410         (make_charset): Change type of argument `decoding_table' from
4411         <Emchar*> to <Lisp_Object> [vector of characters].
4412         (Fmake_charset): Modify for `make_charset'.
4413         (Fmake_reverse_direction_charset): Likewise.
4414         (Fcharset_mapping_table): New function in UTF-2000.
4415         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4416         UTF-2000.
4417         (complex_vars_of_mule_charset): Modify for type change of
4418         `*_to_ucs'; modify for `make_charset'.
4419
4420         * char-ucs.h (struct Lisp_Charset): Change type of
4421         `decoding_table' from <Emchar*> to <Lisp_Object>.
4422         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4423
4424 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4425
4426         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4427         error with non-UTF-2000-Mule.
4428
4429 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4430
4431         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4432         in lisp again].
4433         (Vcharset_chinese_cns11643_4): Likewise.
4434         (Vcharset_chinese_cns11643_5): Likewise.
4435         (Vcharset_chinese_cns11643_6): Likewise.
4436         (Vcharset_chinese_cns11643_7): Likewise.
4437         (Qchinese_cns11643_3): Likewise.
4438         (Qchinese_cns11643_4): Likewise.
4439         (Qchinese_cns11643_5): Likewise.
4440         (Qchinese_cns11643_6): Likewise.
4441         (Qchinese_cns11643_7): Likewise.
4442         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4443         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4444         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4445         (complex_vars_of_mule_charset): Likewise.
4446
4447 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4448
4449         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4450         96-set.
4451         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4452         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4453
4454 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4455
4456         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4457         0xFF60.
4458         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4459         (breakup_char_1): Likewise.
4460
4461         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4462         one of them includes the specified character.
4463
4464 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4465
4466         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4467
4468 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4469
4470         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4471
4472 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4473
4474         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4475         definition for non-UTF-2000 Mule.
4476         (latin_iso8859_3_to_ucs): Likewise.
4477         (latin_iso8859_4_to_ucs): Likewise.
4478         (latin_iso8859_9_to_ucs): Likewise.
4479         (latin_jisx0201_to_ucs): Likewise.
4480         (MIN_CHAR_THAI): Likewise.
4481         (MAX_CHAR_THAI): Likewise.
4482         (MIN_CHAR_GREEK): Likewise.
4483         (MAX_CHAR_GREEK): Likewise.
4484         (MIN_CHAR_HEBREW): Likewise.
4485         (MAX_CHAR_HEBREW): Likewise.
4486         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4487         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4488         (MIN_CHAR_CYRILLIC): Likewise.
4489         (MAX_CHAR_CYRILLIC): Likewise.
4490
4491 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4492
4493         * char-ucs.h (breakup_char_1): Use
4494         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4495         thai-tis620 and katakana-jisx0201 area.
4496
4497 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4498
4499         * char-ucs.h (breakup_char_1): Use
4500         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4501         area.
4502
4503         * text-coding.c (reset_encoding_stream): Fixed.
4504         (char_encode_ucs4): Delete `& 255'.
4505
4506         * char-ucs.h (breakup_char_1): Use
4507         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4508
4509 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4510
4511         * file-coding.c (Fmake_coding_system): Don't set up
4512         `codesys->fixed.size'.
4513         (encode_coding_no_conversion): Don't refer
4514         `str->codesys->fixed.size'.
4515
4516 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4517
4518         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4519         (latin_a_char_to_byte1): Deleted.
4520         (latin_a_char_to_byte2): Deleted.
4521
4522 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4523
4524         * mule-charset.c (make_charset): Add new argument `ucs_min',
4525         `ucs_max' and `code_offset'.
4526         (charset_get_byte1): New implementation [delete specific charset
4527         depended implementations].
4528         (Fmake_charset): Modify for `make_charset'.
4529         (Fmake_reverse_direction_charset): Likewise.
4530         (complex_vars_of_mule_charset): Likewise.
4531
4532         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4533         `code_offset'.
4534         (CHARSET_UCS_MIN): New macro.
4535         (CHARSET_UCS_MAX): New macro.
4536         (CHARSET_CODE_OFFSET): New macro.
4537         (MAKE_CHAR): Delete charset depended definitions [except
4538         katakana-jisx0201].
4539
4540 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4541
4542         * char-ucs.h (breakup_char_1): Use
4543         `Vdefault_coded_charset_priority_list' for C0-Controls,
4544         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4545
4546 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4547
4548         * char-ucs.h (charset_get_byte1): New function.
4549         (XCHARSET_GET_BYTE1): Deleted.
4550         (charset_get_byte2): New function.
4551         (XCHARSET_GET_BYTE2): Deleted.
4552         (Vdefault_coded_charset_priority_list): New external variable.
4553         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4554         `Vdefault_preferred_coded_charset_list'.
4555
4556         * mule-charset.c (charset_get_byte1): New function.
4557         (charset_get_byte2): New function.
4558         (Vdefault_coded_charset_priority_list): New variable.
4559         (vars_of_mule_charset): Add new variable
4560         `default-coded-charset-priority-list'.
4561
4562 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4563
4564         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4565         (XCHARSET_GET_BYTE2): New inline function.
4566         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4567         `XCHARSET_GET_BYTE2'.
4568
4569 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4570
4571         * mule-charset.c (make_charset): Initialize
4572         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4573         NULL if table is not defined.
4574
4575 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4576
4577         * text-coding.c (char_encode_shift_jis): Use
4578         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4579         `ucs_to_latin_jisx0201'.
4580
4581         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4582         (ucs_to_latin_iso8859_2): Deleted.
4583         (ucs_to_latin_iso8859_3): Deleted.
4584         (ucs_to_latin_iso8859_4): Deleted.
4585         (ucs_to_latin_iso8859_9): Deleted.
4586         (ucs_to_latin_viscii_lower): Deleted.
4587         (ucs_to_latin_viscii_upper): Deleted.
4588         (ucs_to_latin_tcvn5712): Deleted.
4589         (make_charset): Add new argument `decoding_table'; set up
4590         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4591         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4592         `decoding_table' is defined in UTF-2000.
4593         (Fmake_charset): Modify for `make_charset'.
4594         (Fmake_reverse_direction_charset): Likewise.
4595         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4596         and `GENERATE_96_SET'.
4597
4598         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4599         (ucs_to_latin_jisx0201): Deleted.
4600         (latin_iso8859_2_to_ucs): Deleted.
4601         (ucs_to_latin_iso8859_2): Deleted.
4602         (latin_iso8859_3_to_ucs): Deleted.
4603         (ucs_to_latin_iso8859_3): Deleted.
4604         (latin_iso8859_4_to_ucs): Deleted.
4605         (ucs_to_latin_iso8859_4): Deleted.
4606         (latin_iso8859_9_to_ucs): Deleted.
4607         (ucs_to_latin_iso8859_9): Deleted.
4608         (latin_viscii_lower_to_ucs): Deleted.
4609         (ucs_to_latin_viscii_lower): Deleted.
4610         (latin_viscii_upper_to_ucs): Deleted.
4611         (ucs_to_latin_viscii_upper): Deleted.
4612         (struct Lisp_Charset): Renamed `encoding_table' to
4613         `to_byte1_table'; add `to_byte2_table'.
4614         (CHARSET_DECODING_TABLE): New macro.
4615         (CHARSET_TO_BYTE1_TABLE): New macro.
4616         (CHARSET_TO_BYTE2_TABLE): New macro.
4617         (XCHARSET_DECODING_TABLE): New macro.
4618         (XCHARSET_TO_BYTE1_TABLE): New macro.
4619         (XCHARSET_TO_BYTE2_TABLE): New macro.
4620         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4621         tables.
4622         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4623         don't use `ucs_to_*' tables.
4624
4625 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4626
4627         * text-coding.c (Fmake_coding_system): Don't set up
4628         `codesys->fixed.size'.
4629         (encode_coding_no_conversion): Use `if' instead of `switch'.
4630
4631         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4632
4633 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4634
4635         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4636         (Fmake_charset): Modify for `make_charset'.
4637         (Fmake_reverse_direction_charset): Likewise.
4638         (complex_vars_of_mule_charset): Likewise.
4639
4640 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4641
4642         * text-coding.c (char_encode_shift_jis): Use table
4643         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4644
4645 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4646
4647         * text-coding.c (text_encode_generic): Use `if' instead of
4648         `switch'.
4649         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4650         decode JIS-Latin.
4651
4652 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4653
4654         * text-coding.c (encode_coding_sjis): Deleted.
4655         (char_encode_shift_jis): New function.
4656         (char_finish_shift_jis): New function.
4657         (reset_encoding_stream): Set up `encode_char' and `finish' for
4658         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4659         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4660         (char_encode_utf8): Treat `eol_type'.
4661
4662 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4663
4664         * file-coding.c (decode_coding_iso2022): Use
4665         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4666
4667 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4668
4669         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4670         to 0.7 (Hirano).
4671
4672 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4673
4674         * char-lb.h (CHAR_COLUMNS): New macro.
4675
4676 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4677
4678         * text-coding.c (char_encode_ucs4): New function.
4679         (char_finish_ucs4): New function.
4680         (encode_coding_ucs4): Deleted.
4681         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4682         (text_encode_generic): Delete local variable `charset' and `half'.
4683         (ucs_to_mule_table): Deleted.
4684         (mule_to_ucs_table): Deleted.
4685         (Fset_ucs_char): Deleted.
4686         (ucs_to_char): Deleted.
4687         (Fucs_char): Deleted.
4688         (Fset_char_ucs): Deleted.
4689         (Fchar_ucs): Deleted.
4690         (decode_ucs4): Deleted.
4691         (mule_char_to_ucs4): Deleted.
4692         (encode_ucs4): Deleted.
4693         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4694         (decode_coding_utf8): Likewise.
4695         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4696         (char_encode_iso2022): Fixed.
4697         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4698         `Fset_char_ucs' and `Fchar_ucs'.
4699         (complex_vars_of_file_coding): Don't initialize
4700         `ucs_to_mule_table'.
4701
4702         * objects-tty.c (tty_initialize_font_instance): Don't use
4703         `XCHARSET_COLUMNS'.
4704
4705         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4706         UTF-2000.
4707
4708         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4709         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4710
4711         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4712         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4713         (emchar_string_displayed_columns): Likewise.
4714
4715         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4716         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4717         (string_column_at_point): Likewise.
4718         (Fmove_to_column): Likewise.
4719
4720         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4721         `encoding_table' and `decoding_table'.
4722         (CHARSET_REP_BYTES): Deleted.
4723         (XCHARSET_REP_BYTES): Deleted.
4724         (XCHARSET_COLUMNS): Deleted.
4725         (CHAR_COLUMNS): New macro.
4726         (lookup_composite_char): Deleted unconditionally.
4727         (composite_char_string): Likewise.
4728
4729 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4730
4731         * char-ucs.h (Emchar_to_byte_table): New type.
4732         (get_byte_from_character_table): New function interface.
4733         (Vcharset_latin_jisx0201): New variable.
4734         (latin_jisx0201_to_ucs): New variable.
4735         (ucs_to_latin_jisx0201): New variable.
4736         (Vcharset_latin_iso8859_2): New variable.
4737         (latin_iso8859_2_to_ucs): New variable.
4738         (ucs_to_latin_iso8859_2): New variable.
4739         (Vcharset_latin_iso8859_3): New variable.
4740         (latin_iso8859_3_to_ucs): New variable.
4741         (ucs_to_latin_iso8859_3): New variable.
4742         (Vcharset_latin_iso8859_4): New variable.
4743         (latin_iso8859_4_to_ucs): New variable.
4744         (ucs_to_latin_iso8859_4): New variable.
4745         (Vcharset_latin_iso8859_9): New variable.
4746         (latin_iso8859_9_to_ucs): New variable.
4747         (ucs_to_latin_iso8859_9): New variable.
4748         (Vcharset_latin_viscii_lower): New variable.
4749         (latin_viscii_lower_to_ucs): New variable.
4750         (ucs_to_latin_viscii_lower): New variable.
4751         (Vcharset_latin_viscii_upper): New variable.
4752         (latin_viscii_upper_to_ucs): New variable.
4753         (ucs_to_latin_viscii_upper): New variable.
4754         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4755         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4756         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4757         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4758         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4759         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4760         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4761         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4762         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4763         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4764
4765         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4766         (Vcharset_latin_viscii_upper): New variable.
4767         (make_byte_from_character_table): New function.
4768         (put_byte_from_character_table): New function.
4769         (get_byte_from_character_table): New function.
4770         (CHAR96): New macro.
4771         (ucs_to_latin_jisx0201): New variable.
4772         (latin_jisx0201_to_ucs): New variable.
4773         (ucs_to_latin_iso8859_2): New variable.
4774         (latin_iso8859_2_to_ucs): New variable.
4775         (ucs_to_latin_iso8859_3): New variable.
4776         (latin_iso8859_3_to_ucs): New variable.
4777         (ucs_to_latin_iso8859_4): New variable.
4778         (latin_iso8859_4_to_ucs): New variable.
4779         (ucs_to_latin_iso8859_9): New variable.
4780         (latin_iso8859_9_to_ucs): New variable.
4781         (ucs_to_latin_viscii_lower): New variable.
4782         (latin_viscii_lower_to_ucs): New variable.
4783         (ucs_to_latin_viscii_upper): New variable.
4784         (latin_viscii_upper_to_ucs): New variable.
4785         (ucs_to_latin_tcvn5712): New variable.
4786         (latin_tcvn5712_to_ucs): New variable.
4787         (Qlatin_viscii_lower): New variable.
4788         (Qlatin_viscii_upper): New variable.
4789         (syms_of_mule_charset): Set up new symbol
4790         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4791         (complex_vars_of_mule_charset): Set up new charset
4792         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4793         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4794         `ucs_to_<CHARSET>' tables.
4795
4796 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4797
4798         * text-coding.c: New file.
4799
4800 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4801
4802         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4803
4804         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4805         (MAKE_CHAR): Modify for `ucs-bmp'.
4806         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4807         non-MULE characters of BMP.
4808
4809 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4810
4811         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4812         to 0.6.
4813
4814 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4815
4816         * lstream.h:
4817         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4818         - Include character.h for `CHAR_ASCII_P'.
4819
4820         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4821
4822         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4823         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4824
4825         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4826         (BYTE_C0_P): Likewise.
4827         (BYTE_C1_P): Likewise.
4828         (Lstream_get_emchar_1): Likewise.
4829         (Lstream_fput_emchar): Likewise.
4830         (Lstream_funget_emchar): Likewise.
4831         (copy_internal_to_external): Likewise.
4832         (copy_external_to_internal): Likewise.
4833
4834         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4835         (BYTE_C0_P): Likewise.
4836         (BYTE_C1_P): Likewise.
4837         (Lstream_get_emchar_1): Likewise.
4838         (Lstream_fput_emchar): Likewise.
4839         (Lstream_funget_emchar): Likewise.
4840         (copy_internal_to_external): Likewise.
4841         (copy_external_to_internal): Likewise.
4842
4843         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4844         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4845
4846         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4847         (BYTE_ASCII_P): Moved to mb-1byte.h.
4848
4849 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4850
4851         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4852
4853         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4854         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4855         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4856         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4857         (VALIDATE_CHARPTR_FORWARD): Likewise.
4858         (simple_charptr_emchar): Moved to mb-multibyte.h.
4859         (simple_set_charptr_emchar): Likewise.
4860         (simple_charptr_copy_char): Likewise.
4861         (non_ascii_charptr_emchar): Likewise.
4862         (non_ascii_set_charptr_emchar): Likewise.
4863         (non_ascii_charptr_copy_char): Likewise.
4864         (charptr_emchar): Moved to mb-*byte.h.
4865         (set_charptr_emchar): Likewise.
4866         (charptr_copy_char): Likewise.
4867
4868         * mb-1byte.h, mb-multibyte.h: New files.
4869
4870 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4871
4872         * mb-utf-8.h (MULTIBYTE): New macro.
4873         (MAX_EMCHAR_LEN): Moved from buffer.h.
4874         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4875
4876         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4877
4878         * mb-lb.h, multibyte.h: New files.
4879
4880         * char-1byte.h (Charset_ID): Moved from buffer.h.
4881         (MIN_LEADING_BYTE): Likewise.
4882         (LEADING_BYTE_ASCII): Likewise.
4883         (NUM_LEADING_BYTES): Likewise.
4884         (CHARSETP): Likewise.
4885         (CHARSET_BY_LEADING_BYTE): Likewise.
4886         (XCHARSET_LEADING_BYTE): Likewise.
4887         (XCHARSET_GRAPHIC): Likewise.
4888         (XCHARSET_COLUMNS): Likewise.
4889         (XCHARSET_DIMENSION): Likewise.
4890         (CHAR_CHARSET): Likewise.
4891         (CHAR_LEADING_BYTE): Likewise.
4892         (BREAKUP_CHAR): Likewise.
4893         (Vcharset_ascii): Likewise.
4894
4895         * buffer.h: Include multibyte.h unconditionally.
4896         (VALID_CHARPTR_P): Moved to multibyte.h.
4897         (ASSERT_VALID_CHARPTR): Likewise.
4898         (REAL_INC_CHARPTR): Likewise.
4899         (REAL_INC_CHARBYTIND): Likewise.
4900         (REAL_DEC_CHARPTR): Likewise.
4901         (INC_CHARPTR): Likewise.
4902         (INC_CHARBYTIND): Likewise.
4903         (DEC_CHARPTR): Likewise.
4904         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4905         (VALIDATE_CHARPTR_FORWARD): Likewise.
4906         (charptr_n_addr): Likewise.
4907         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4908         (simple_charptr_emchar): Moved to multibyte.h.
4909         (simple_set_charptr_emchar): Likewise.
4910         (simple_charptr_copy_char): Likewise.
4911         (non_ascii_charptr_emchar): Likewise.
4912         (non_ascii_set_charptr_emchar): Likewise.
4913         (non_ascii_charptr_copy_char): Likewise.
4914         (charptr_emchar): Likewise.
4915         (set_charptr_emchar): Likewise.
4916         (charptr_copy_char): Likewise.
4917         (charptr_emchar_n): Likewise.
4918         (Charset_ID): Moved to char-1byte.h.
4919         (Vcharset_ascii): Likewise.
4920         (CHAR_CHARSET): Likewise.
4921         (CHAR_LEADING_BYTE): Likewise.
4922         (LEADING_BYTE_ASCII): Likewise.
4923         (NUM_LEADING_BYTES): Likewise.
4924         (MIN_LEADING_BYTE): Likewise.
4925         (CHARSETP): Likewise.
4926         (CHARSET_BY_LEADING_BYTE): Likewise.
4927         (XCHARSET_LEADING_BYTE): Likewise.
4928         (XCHARSET_GRAPHIC): Likewise.
4929         (XCHARSET_COLUMNS): Likewise.
4930         (XCHARSET_DIMENSION): Likewise.
4931         (BREAKUP_CHAR): Likewise.
4932
4933 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4934
4935         * character.h: Add document about interface for characters.
4936
4937         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4938         (MAKE_CHAR): Delete comment about
4939         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4940         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4941         (BREAKUP_CHAR): Modify name of arguments.
4942         (CHAR_CHARSET): Modify name of argument.
4943
4944         * buffer.h: Delete document about Emchar accessors.
4945
4946 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4947
4948         * character.h (CHAR_INTP): Moved from buffer.h
4949         (CHAR_OR_CHAR_INTP): Likewise.
4950         (XCHAR_OR_CHAR_INT): Likewise.
4951         (CHECK_CHAR_COERCE_INT): Likewise.
4952
4953         * buffer.h (CHAR_INTP): Moved to character.h
4954         (CHAR_OR_CHAR_INTP): Likewise.
4955         (XCHAR_OR_CHAR_INT): Likewise.
4956         (CHECK_CHAR_COERCE_INT): Likewise.
4957
4958 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4959
4960         * character.h:
4961         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4962         - Include char-1byte.h, char-lb.h or char-ucs.h.
4963
4964         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4965
4966         * buffer.h: Include character unconditionally.
4967         (valid_char_p): Moved to char-*.h.
4968         (non_ascii_valid_char_p): Moved to char-lb.h.
4969
4970         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4971
4972 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4973
4974         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4975         in UTF-2000 because it is not ported yet and not to use
4976         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4977         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4978         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4979
4980         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4981         (CHAR_ASCII_P): Moved from character.h.
4982
4983         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4984         (CHAR_ASCII_P): Likewise.
4985         (CHAR_FIELD1_MASK): Deleted.
4986         (CHAR_FIELD2_MASK): Deleted.
4987         (CHAR_FIELD3_MASK): Deleted.
4988         (MAX_CHAR_BASIC_LATIN): New macro.
4989         (CHAR_FIELD1): Deleted.
4990         (CHAR_FIELD2_INTERNAL): Deleted.
4991         (CHAR_FIELD3_INTERNAL): Deleted.
4992         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
4993         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
4994         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
4995         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
4996         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
4997         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
4998         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
4999         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5000         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5001         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5002         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5003         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5004         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5005         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5006         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5007         (MIN_CHAR_COMPOSITION): Deleted.
5008         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5009         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5010
5011 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5012
5013         * buffer.h: Include mb-utf-8.h in UTF-2000.
5014
5015         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5016
5017         * mb-utf-8.h: New file.
5018
5019 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5020
5021         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5022         instead of `int'.
5023
5024         * mule-charset.h, buffer.h (Charset_ID): New type.
5025
5026 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5027
5028         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5029         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5030         instead of `MULE_CHAR_PRIVATE_OFFSET',
5031         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5032         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5033         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5034
5035         * character.h (Vcharset_japanese_jisx0212): New variable
5036         definition.
5037
5038 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5039
5040         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5041         (charset_by_attributes): Delete array about direction.
5042         (latin_a_char_to_charset): New variable in UTF-2000.
5043         (latin_a_char_to_byte1): New variable in UTF-2000.
5044         (latin_a_char_to_byte2): New variable in UTF-2000.
5045         (Qucs_bmp): New variable.
5046         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5047         `Bufbyte'.
5048         (next_allocated_2_byte_leading_byte): Likewise.
5049         (non_ascii_set_charptr_emchar): Likewise.
5050         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5051         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5052         `charset_by_attributes'.
5053         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5054         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5055         and `CHARSET_BY_LEADING_BYTE'.
5056         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5057         `utf-2000-version' to `vars_of_mule_charset'.
5058         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5059         define `leading-code-private-11' in UTF-2000; move setting of
5060         `utf-2000-version' from `syms_of_mule_charset'.
5061         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5062         UTF-2000.
5063
5064         * character.h (Charset_ID): New type.
5065         (LEADING_BYTE_UCS_BMP): New macro.
5066         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5067         (CHARSET_ID_OFFSET_94): New macro.
5068         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5069         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5070         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5071         final-byte.
5072         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5073         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5074         (CHARSET_ID_OFFSET_96): New macro.
5075         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5076         CHARSET_ID_OFFSET_96 and final-byte.
5077         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5078         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5079         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5080         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5081         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5082         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5083         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5084         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5085         (LEADING_BYTE_THAI_TIS620): Likewise.
5086         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5087         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5088         (CHARSET_ID_OFFSET_94x94): New macro.
5089         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5090         CHARSET_ID_OFFSET_94x94 and final-byte.
5091         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5092         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5093         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5094         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5095         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5096         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5097         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5098         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5099         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5100         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5101         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5102         (CHARSET_TYPE_128X128): New macro.
5103         (CHARSET_TYPE_256X256): New macro.
5104         (XCHARSET_PRIVATE_P): Delete unconditionally.
5105         (charset_by_attributes): Delete array about direction.
5106         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5107         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5108         (MIN_CHAR_94): New macro.
5109         (MAX_CHAR_94): New macro.
5110         (MIN_CHAR_96): New macro.
5111         (MAX_CHAR_96): New macro.
5112         (MIN_CHAR_94x94): New macro.
5113         (MAX_CHAR_94x94): New macro.
5114         (MIN_CHAR_96x96): New macro.
5115         (MAX_CHAR_96x96): New macro.
5116         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5117         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5118         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5119         - 32)'.
5120         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5121         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5122         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5123         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5124         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5125         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5126         `XCHARSET_LEADING_BYTE' to make code-point.
5127         (latin_a_char_to_charset): New variable.
5128         (latin_a_char_to_byte1): New variable.
5129         (latin_a_char_to_byte2): New variable.
5130         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5131         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5132         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5133
5134         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5135         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5136         (find_charsets_in_emchar_string): Likewise.
5137         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5138
5139         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5140         `int'.
5141         (decode_coding_iso2022): Likewise.
5142
5143         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5144         of `unsigned char'.
5145
5146         * redisplay.c (redisplay_text_width_emchar_string): Use
5147         `Charset_ID' instead of `unsigned char'.
5148         (redisplay_frame_text_width_string): Likewise.
5149
5150         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5151         `unsigned char'.
5152
5153         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5154         instead of `unsigned char'.
5155         (face_cachel_charset_font_metric_info): Likewise.
5156
5157         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5158         (get_non_ascii_char_table_value): Likewise.
5159         (get_char_table): Likewise.
5160         (put_char_table): Likewise.
5161         (map_over_other_charset): Likewise.
5162         (map_char_table): Likewise.
5163
5164         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5165         instead of `unsigned char'.
5166
5167 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5168
5169         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5170         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5171
5172         * mule-charset.c (leading_code_private_11): Don't define in
5173         UTF-2000.
5174
5175         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5176         in UTF-2000 because it is not ported yet and not to use
5177         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5178
5179 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5180
5181         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5182
5183 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5184
5185         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5186         in UTF-2000.
5187
5188         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5189         of unsigned char to store leading-byte.
5190
5191         * chartab.c (get_non_ascii_char_table_value): Don't use
5192         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5193
5194         * file-coding.c (encode_coding_big5): Delete bogus implementation
5195         in UTF2000.
5196
5197         * character.h (LEADING_BYTE_*): Delete definition for
5198         non-UTF-2000.
5199         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5200         (LEADING_BYTE_PREFIX_P): Deleted.
5201         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5202         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5203         (BUFBYTE_LEADING_BYTE_P): Deleted.
5204         (CHARSET_PRIVATE_P): Deleted unconditionally.
5205         (rep_bytes_by_first_byte): Deleted unconditionally.
5206         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5207         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5208         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5209         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5210         (CHAR_FIELD2): Deleted.
5211         (CHAR_FIELD3): Deleted.
5212         (MAKE_CHAR): Delete definition for non-UTF-2000.
5213         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5214         (breakup_char_1): New implementation.
5215         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5216         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5217
5218 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5219
5220         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5221         condition.
5222
5223 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5224
5225         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5226         (CHARSET_PRIVATE_P): Likewise.
5227         (XCHARSET_PRIVATE_P): Likewise.
5228         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5229
5230         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5231         UTF2000.
5232         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5233
5234 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5235
5236         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5237         (NUM_LEADING_BYTES): Changed from 128 to 256.
5238         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5239         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5240         UTF2000.
5241         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5242
5243         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5244         UTF2000.
5245         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5246         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5247         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5248         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5249         (Qchinese_cns11643_3): New variable in UTF2000.
5250         (Qchinese_cns11643_4): New variable in UTF2000.
5251         (Qchinese_cns11643_5): New variable in UTF2000.
5252         (Qchinese_cns11643_6): New variable in UTF2000.
5253         (Qchinese_cns11643_7): New variable in UTF2000.
5254         (syms_of_mule_charset): Define `chinese-cns11643-3',
5255         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5256         and `chinese-cns11643-7' in UTF2000.
5257         (vars_of_mule_charset): Initialize
5258         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5259         + 1 in UTF2000.
5260         (complex_vars_of_mule_charset): Setup charset
5261         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5262         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5263
5264 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5265
5266         * mule-charset.c: Move setting for `leading-code-private-11' from
5267         `syms_of_mule_charset' to `vars_of_mule_charset'.
5268
5269 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5270
5271         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5272         and `NUM_LEADING_BYTES' in assert.
5273
5274 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5275
5276         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5277         instead of 128.
5278         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5279         `NUM_LEADING_BYTES' instead of 128.
5280
5281 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5282
5283         * mule-charset.h (charset_by_leading_byte): Use
5284         `NUM_LEADING_BYTES' instead of 128.
5285         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5286
5287         * mule-charset.c (charset_by_leading_byte): Use
5288         `NUM_LEADING_BYTES' instead of 128.
5289         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5290
5291         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5292         128.
5293
5294 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5295
5296         * mule-charset.c (syms_of_mule_charset): Update to
5297         0.4 (Shin-Imamiya).
5298
5299 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5300
5301         * file-coding.c (encode_coding_sjis): New implementation for
5302         UTF2000.  (decode_coding_sjis): Ditto.
5303
5304 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5305
5306         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5307         Don't define in UTF2000.
5308
5309         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5310         defined.
5311
5312         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5313         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5314         MULE.
5315
5316 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5317
5318         * config.h.in (CHAR_IS_UCS4): New macro.
5319
5320         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5321         conventional MULE representation.
5322         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5323
5324         * mule-charset.h: Reverted to original.
5325
5326         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5327         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5328         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5329
5330         * character.h: New file.
5331
5332         * file-coding.c (Fmake_coding_system): Set 1 to
5333         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5334         defined.
5335         (encode_coding_no_conversion): New implementation for UTF2000.
5336
5337         * file-coding.h (struct Lisp_Coding_System): Add new member
5338         `fixed.size'.
5339
5340 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5341
5342         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5343         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5344         (encode_coding_iso2022): New implementation for UTF2000.
5345
5346 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5347
5348         * mule-canna.c (c2mu): New implementation for UTF2000.
5349         (m2c): Likewise.
5350
5351 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5352
5353         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5354
5355 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5356
5357         * file-coding.c (reset_encoding_stream): Set 0 to
5358         `str->iso2022.current_char_boundary' in UTF2000.
5359         (encode_utf8): Don't define in UTF2000.
5360         (encode_coding_utf8): New implementation for UTF-8 representation
5361         of UTF2000.
5362         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5363
5364 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5365
5366         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5367
5368         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5369         UTF2000.
5370         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5371
5372         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5373
5374         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5375         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5376         as UTF-8 in UTF2000.
5377         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5378         (non_ascii_valid_char_p): Don't define in UTF2000.
5379         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5380         (Lstream_get_emchar_1): Likewise.
5381         (utf-2000-version): New variable in UTF2000.
5382
5383         * lread.c (read_escape): Add new reader `u'.
5384
5385         * insdel.c (three_to_one_table): Don't define in UTF2000.
5386         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5387         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5388         UTF2000.
5389         (bytind_to_bufpos_func): Likewise.
5390         (buffer_mule_signal_inserted_region): Likewise.
5391         (vars_of_insdel): Don't initialize `three_to_one_table'.
5392         (init_buffer_text): Use `buf->text->mule_size' instead of
5393         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5394         UTF2000.
5395
5396         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5397         UTF-8 representation in UTF2000.
5398         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5399         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5400         (decode_coding_iso2022): Don't define local variable `lb' in
5401         UTF2000; don't use LEADING_BYTE in UTF2000; use
5402         `DECODE_ADD_UCS_CHAR' in UTF2000.
5403         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5404
5405         * config.h.in (UTF2000): New macro.
5406
5407         * buffer.h (struct buffer_text): Add new member `mule_size' and
5408         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5409         (valid_char_p): Return always 1 in UTF2000.
5410         (MAX_EMCHAR_LEN): 6 in UTF2000.
5411         (three_to_one_table): Don't define in UTF2000.
5412         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5413         UTF2000.
5414         (real_bytind_to_bufpos): Likewise.
5415
5416         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5417
5418 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5419
5420         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5421         representation change.
5422         (Vutf_2000_version): New variable.
5423         (leading_code_private_11): New variable.
5424         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5425         `leading-code-private-11'.
5426
5427         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5428         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5429         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5430         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5431         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5432         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5433         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5434         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5435         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5436         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5437         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5438         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5439         (MIN_CHAR_GREEK): New macro.
5440         (MAX_CHAR_GREEK): New macro.
5441         (MIN_CHAR_CYRILLIC): New macro.
5442         (MAX_CHAR_CYRILLIC): New macro.
5443         (MIN_CHAR_HEBREW): New macro.
5444         (MAX_CHAR_HEBREW): New macro.
5445         (MIN_CHAR_THAI): New macro.
5446         (MAX_CHAR_THAI): New macro.
5447         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5448         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5449         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5450         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5451         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5452         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5453         (CHAR_FIELD2): New inline function.
5454         (CHAR_FIELD3): New inline function.
5455         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5456         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5457         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5458         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5459         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5460         (MIN_CHAR_COMPOSITION): Likewise.
5461         (CHAR_LEADING_BYTE): Modified for character representation change.
5462         (MAKE_CHAR): Likewise.
5463
5464         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5465         (Vcharset_greek_iso8859_7): Likewise.
5466         (Vcharset_cyrillic_iso8859_5): Likewise.
5467         (Vcharset_hebrew_iso8859_8): Likewise.
5468         (Vcharset_thai_tis620): Likewise.
5469         (Vcharset_katakana_jisx0201): Likewise.
5470
5471 2004-02-02  Vin Shelton <acs@xemacs.org>
5472
5473         * XEmacs 21.4.15 is released
5474
5475 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
5476
5477         * device-x.c (x_error_handler): Don't call stderr_out
5478
5479 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
5480
5481         * buffer.c (other-buffer): Clarify documentation of order of
5482         arguments for FSF Emacs.
5483
5484 2003-10-11  Olivier Galibert  <galibert@pobox.com>
5485
5486         * window.c (Fdelete_window): Dirty the mirror structure _before_
5487         marking the window deleted.
5488
5489 2003-09-15  Jerry James  <james@xemacs.org>
5490
5491         * event-msw.c (debug_mswin_messages): Conditionally compile
5492         messages missing from the Cygwin headers.
5493
5494 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
5495
5496         * data.c (eq_with_ebola_notice): Fix typo in comment.
5497         (Ftrue_list_p): Improve docstring.
5498
5499 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
5500
5501         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
5502
5503 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
5504
5505         * search.c (trivial_regexp_p): Regexps containing "\{" are
5506         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
5507         Stefan Monnier for suggesting a diagnosis.
5508
5509 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
5510
5511         * elhash.c (make-hash-table): Clarify use of :test #'equal.
5512
5513 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
5514
5515         * search.c (Fsearch_forward):
5516         (Fsearch_backward):
5517         Document negative count.
5518
5519 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
5520
5521         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
5522
5523 2003-09-13  Martin Buchholz  <martin@xemacs.org>
5524
5525         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
5526
5527 2003-09-15  Vin Shelton  <acs@xemacs.org>
5528
5529         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
5530         21.5.
5531
5532 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
5533
5534         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
5535         (re_search_2): Match the first byte of Bufbyte, not Emchar.
5536         (re_match_2_internal): Use TRANSLATE instead of
5537         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
5538         non-ASCII char case conversion.
5539
5540 2003-09-08  Mike Sperber  <mike@xemacs.org>
5541
5542         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
5543         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
5544
5545 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
5546
5547        * .gdbinit (pobj): fix printing of symbol name.
5548
5549 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
5550
5551         * frame-x.c (x_layout_widgets): When resizing is about to cause
5552         frame size slip, mark it for redisplay.
5553
5554 2003-08-18  Jerry James  <james@xemacs.org>
5555
5556         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
5557
5558 2003-09-03  Vin Shelton <acs@xemacs.org>
5559
5560         * XEmacs 21.4.14 is released
5561
5562 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5563
5564         * config.h.in (REGEX_MALLOC): Make it configure'able.
5565
5566 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5567
5568         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5569         linking.
5570         * sysdll.c (dll_init):
5571         * sysdll.c (dll_open):
5572         * sysdll.c (dll_close):
5573         * sysdll.c (dll_function):
5574         * sysdll.c (dll_variable):
5575         * sysdll.c (dll_error):
5576         Add support for loading bundles using Darwin/MacOSX
5577         native API.
5578
5579 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5580
5581         * process.c (start-process-internal): Document coding systems.
5582
5583 2003-07-30  Jerry James  <james@xemacs.org>
5584
5585         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5586
5587 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5588
5589         * event-msw.c (mswindows_enqueue_mouse_button_event):
5590         * event-msw.c (mswindows_wnd_proc):
5591           enqueue button event when scrollwheel event isn't handled by 
5592           mswindows_handle_mousewheel_event, such as when the scrollbars
5593           are not showing.
5594
5595 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5596
5597         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5598
5599 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5600
5601         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5602
5603 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5604
5605         * regex.c (re_match_2_internal): Fix matching degenerate word
5606         boundaries.
5607
5608 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5609
5610         * XEmacs 21.4.13 is released
5611
5612 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5613
5614         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5615         * lisp.h (<inttypes.h>):
5616         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5617         the definition.
5618
5619 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5620
5621         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5622         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5623         Result: "temacs can only be run in -batch mode."
5624         Fix: Check xemacs executable candidate for directory-ness.
5625
5626 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5627
5628         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5629           they conflict with <sys/types.h>.
5630
5631 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5632
5633         * database.c: Berkeley DB wants __STDC__ to be defined.
5634
5635 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5636
5637         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5638
5639 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5640
5641         * process-unix.c (unix_send_process): Fix C++ compile error.
5642
5643 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5644
5645         * Added .dylib as an acceptable shared library file extension
5646         * to support MacOSX.
5647
5648 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5649
5650         * EmacsFrameP.h (EmacsFramePart):
5651         Kludge to allow compiling with Motif1, but linking with Motif2.
5652
5653 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5654
5655         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5656
5657
5658 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5659
5660         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5661
5662 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5663
5664         * sysdll.c: Included lisp.h to define needed alloca_array.
5665
5666 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5667
5668         Make XEmacs redisplay 10 times faster.
5669         If, that is, you're using a slow X connection and MoveOpaque.
5670         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5671         Use compress_motion = TRUE.
5672         * EmacsFrame.c (emacsFrameClassRec): 
5673         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5674         * EmacsManager.c (emacsManagerClassRec):
5675         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5676
5677 2003-01-30  Vin Shelton  <acs@xemacs.org>
5678
5679         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5680
5681 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5682
5683         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5684         Patch by Martin Buchholz.
5685
5686 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5687
5688         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5689         Thanks to icc for warning and Martin Buchholz for reporting.
5690
5691 2003-01-29  Vin Shelton <acs@xemacs.org>
5692
5693         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5694
5695         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5696         remember to multiply by the element size.
5697
5698 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5699
5700         * XEmacs 21.4.12 "Portable Code" is released.
5701
5702 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5703
5704         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5705         * s/cygwin.sc: new linker file.
5706
5707 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5708
5709         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5710
5711         * redisplay-x.c (x_output_string): Use X11-specified types.
5712         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5713         * emacs.c (__free_hook): Use typeof with Intel compiler.
5714         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5715
5716 2003-01-08  Andy Piper  <andy@xemacs.org>
5717
5718         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5719         reserve size during unexec().
5720
5721 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5722
5723         * process-unix.c (unix_create_process): Don't let outchannel block.
5724
5725 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5726
5727         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5728         Needed for IsBadReadPtr().
5729
5730 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5731
5732         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5733
5734 2002-12-14  Ben Wing  <ben@xemacs.org>
5735
5736         * callint.c: Declaration error.
5737         * dumper.c (pdump):
5738         * dumper.c (pdump_load): Warning fix.
5739         * process.c: GCPRO error.
5740         * glyphs.c (unmap_subwindow):
5741         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5742         * event-stream.c (maybe_kbd_translate): Wrong argument to
5743         character_to_event().
5744
5745         * alloc.c (garbage_collect_1):
5746         * emacs.c:
5747         * emacs.c (debug_can_access_memory):
5748         * emacs.c (fatal_error_signal):
5749         * emacs.c (mswindows_handle_hardware_exceptions):
5750         * emacs.c (main_1):
5751         * emacs.c (main):
5752         * emacs.c (assert_failed):
5753         * emacs.c (syms_of_emacs):
5754         * lisp.h:
5755         * print.c:
5756         * print.c (std_handle_out_va):
5757         * print.c (write_string_to_stdio_stream):
5758         * print.c (write_fmt_string):
5759         * print.c (printing_badness):
5760         * print.c (printing_major_badness):
5761         * print.c (print_internal):
5762         * print.c (debug_print_no_newline):
5763         * print.c (debug_backtrace):
5764         Be more defensive in handling bad values when printing.  Add code
5765         from trunk involving inhibit_non_essential_printing_operations.
5766         When going down or in debug_print(), don't do external conversion
5767         and such and try really, really hard when printing to avoid core
5768         dumping.  Add force-debugging-signal, debug_break().
5769
5770 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5771
5772         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5773         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5774
5775 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5776
5777         * database.c: Fix open_database. Berkeley DB API has changed in
5778         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5779
5780 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5781
5782         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5783
5784 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5785
5786         * event-Xt.c (Xt_timeout):
5787         (Xt_timeout_callback):
5788         (emacs_Xt_add_timeout):
5789         (emacs_Xt_remove_timeout):
5790         (Xt_timeout_to_emacs_event):
5791         Turn completed_timeouts from a stack into a queue.  Fixes
5792         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5793
5794 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5795
5796         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5797         * emacs.c (main): Assert that mmap'd allocation is disabled.
5798
5799 2002-10-14  Andy Piper  <andy@xemacs.org>
5800
5801         * glyphs-widget.c (layout_query_geometry): add in fiddle
5802         factor. Include border text in width layout calculation.
5803         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5804
5805 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5806
5807         * XEmacs 21.4.10 "Military Intelligence" is released.
5808
5809 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5810
5811         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5812         using the NAS private array SoundFileInfo that no longer exists in
5813         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5814         and earlier.  This is broken for some versions between 1.5a and
5815         1.5f.
5816
5817 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5818
5819         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5820
5821         * emacs.c (shut_down_emacs): Improve crash message.
5822
5823 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5824
5825         * file-coding.c (determine_real_coding_system): Check for coding
5826         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5827         shebangs and Python PEP 263.
5828
5829 2002-10-08  Andy Piper  <andy@xemacs.org>
5830
5831         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5832         if static sizes haven't been set.
5833
5834 2002-08-30  Mike Alexander  <mta@arbortext.com>
5835
5836         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5837         to close a socket.
5838
5839 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5840
5841         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5842
5843 2002-09-20  Mike Sperber <mike@xemacs.org>
5844
5845         (This partially gets back my patch from 2002-07-20 without the
5846         bug.)
5847         * callproc.c (child_setup): Remove Ben's comment noting confusion
5848         over the file descriptors >= 3: close_process_descs() doesn't
5849         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5850         * process-unix.c (unix_create_process): Call
5851         begin_dont_check_for_quit to inhibit unwanted interaction (and
5852         thus breaking of X event synchronicity) in the child.
5853
5854 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5855
5856         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5857         widget.
5858
5859 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5860
5861         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5862         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5863         the xemacs process did not exit, but looped infinitely here.  This
5864         fixes that problem.
5865
5866 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5867
5868         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5869         (find_context): Improve comments.
5870
5871         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5872         (re_match_2): An XCHAR_TABLE operation was missing.
5873
5874         Many of the following changes were inspired by Andy Piper's (now
5875         obsolete) patch to make syntax-table text property lookup optional.
5876
5877         [Documentation]
5878
5879         * syntax.h (top level): Document semantics of syntax flags.
5880         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5881         * syntax.c, syntax.h (top level): Document syntax cache better in
5882         comments.
5883
5884         [Instrument syntax caching (temporary change)]
5885
5886         * syntax.h (enum syntax_cache_statistics_functions, struct
5887         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5888         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5889         * syntax.c (scan_words, Fforward_comment, scan_lists,
5890         Fbackward_prefix_characters):
5891         * font-lock.c (find_context):
5892         Use them to instrument syntax caching. 
5893         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5894         syntax_cache_statistics_function_names): New type and variables.
5895         * syntax.c (update_syntax_cache): Update and report statistics.
5896
5897         [Major syntax cache optimizations]
5898
5899         syntax.c (lookup_syntax_properties): Default off.
5900
5901         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5902         * syntax.c (update_syntax_cache):
5903         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5904
5905         [Minor syntax cache optimizations and code clarifications]
5906
5907         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5908         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5909         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5910         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5911         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5912         (Code clarification.)
5913
5914         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5915         scan_lists): Compute code from syncode, use Boolean macros instead
5916         of redundant masking operations.  (Code clarification; any decent
5917         compiler can do this optimization.)
5918
5919         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5920         for clarity.
5921
5922         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5923         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5924         use F*_single_property_change instead of F*_extent_change.
5925         Currently F*_single_property_change is _much_ less efficient.
5926
5927         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5928         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5929         syntax_cache.object properly, don't leave Qt or Qnil.
5930         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5931         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5932         tests for Qt or Qnil.
5933
5934 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5935
5936         * redisplay.c (point_in_line_start_cache): 
5937         * extents.c (print_extent_1):
5938         Fix warnings.
5939
5940         * extents.c (Fset_extent_property): Document `syntax-table' property.
5941
5942         * extents.h (Fnext_single_property_change): EXFUN it.
5943
5944 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5945
5946         * search.c (clear_unused_search_regs): New static function.
5947         (search_buffer): 
5948         (simple_search): 
5949         (boyer_moore):
5950         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5951         Minor clarifications in comments.
5952
5953         * regex.c (re_match_2_internal): Ensure no stale submatches.
5954
5955 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5956
5957         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5958
5959 2002-08-29  Jerry James  <james@xemacs.org>
5960
5961         * lisp.h: structrures -> structures.
5962
5963 2002-06-03  Andy Piper  <andy@xemacs.org>
5964
5965         * frame.c (frame_conversion_internal): add conversion appropriate
5966         for setting frame dimensions in pixels.
5967
5968         * console.h (struct console_methods): add device-specific widget
5969         layout functions.
5970
5971         * emacs.c (main_1): initialize glyph vars.
5972
5973         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5974         (handle_focus_event_2): new function. Allow focus to
5975         be set to a particular window and widget.
5976         (enqueue_focus_event): new function. Create a
5977         synthetic focus event.
5978         (emacs_Xt_handle_magic_event): call
5979         handle_focus_event_2.
5980
5981         * frame.c (Fset_frame_pixel_height): new function. Allow
5982         pixel-based sizing. Does the right thing on character-oriented
5983         displays.
5984         (Fset_frame_pixel_width): ditto.
5985         (Fset_frame_pixel_size): ditto.
5986         (syms_of_frame): declare.
5987
5988         * general-slots.h: add :vertically-justify and
5989         :horizontally-justify.
5990
5991         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
5992         (mswindows_widget_border_width): new function.
5993         (mswindows_combo_box_instantiate): set border widths.
5994         (console_type_create_glyphs_mswindows): declare.
5995
5996         * glyphs-widget.c:
5997         (check_valid_justification): allow vertical and horizontal
5998         justification.
5999         (widget_border_width): new function. Call device methods.
6000         (widget_instance_border_width): ditto.
6001         (logical_unit_height): new function. Determine the height of a
6002         logical-unit. Logical units are intended to provide grid-like
6003         layout for subcontrols in a layout. If the layout is
6004         :vertically-justify top then subcontrols will be positioned on
6005         logical-unit boundaries, thus allowing adjacent subcontrols to
6006         line up.
6007         (widget_logical_unit_height): ditto for widgets.
6008         (redisplay_widget): misc cleanup.
6009         (widget_spacing): new function. Call device specific
6010         methods. Intended to be the default gap between adjacent widgets.
6011         (widget_query_geometry): use new spacing functions to determine
6012         appropriate geometry.
6013         (initialize_widget_image_instance): initialize horizontal and
6014         vertical justification.
6015         (widget_instantiate): use logica-units where appropriate for
6016         sizing large widgets.
6017         (button_query_geometry): use widget_instance_border_width.
6018         (tree_view_query_geometry): ditto.
6019         (tab_control_query_geometry): ditto.
6020         (edit_field_query_geometry): new function.
6021         (layout_update): pick up :justify, :horizontally-justify and
6022         :vertically-justify none of which worked previously. :justify is
6023         used as a fallback for both horizontal and vertical justification.
6024         (layout_query_geometry): use logical units to size appropriately.
6025         (layout_layout): ditto.
6026         (Fwidget_logical_to_character_width): new function. Allow users to
6027         convert from logical units to characters so that frame sizes can
6028         be set appropriately.
6029         (Fwidget_logical_to_character_height): ditto.
6030         (syms_of_glyphs_widget): declare.
6031         (image_instantiator_edit_fields): add edit_field_query_geometry.
6032         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
6033         :horizontally-justify.
6034         (specifier_vars_of_glyphs_widget): new function. Declare
6035         Vwidget_border_width which is not yet used.
6036
6037         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
6038         (x_widget_border_width): new function.
6039         (x_widget_instantiate): create a sensible name for widgets.
6040         (console_type_create_glyphs_x): declare x_widget_border_width.
6041
6042         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
6043         (struct Lisp_Image_Instance): add :vertically-justify and
6044         :horizontally-justify.
6045         (LAYOUT_JUSTIFY_TOP): new.
6046         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
6047         (ROUND_UP): new macro. Round argument up to next integral
6048         interval.
6049
6050         * redisplay-output.c (redisplay_output_layout): misc formatting.
6051
6052         * symsinit.h: declare specifier_vars_of_glyphs_widget.
6053
6054 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
6055
6056         * XEmacs 21.4.9 "Informed Management" is released.
6057
6058 2002-08-19  Andy Piper  <andy@xemacs.org>
6059
6060         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
6061         win32 format.
6062
6063         * realpath.c (xrealpath): normalize drive spec also so that dir
6064         sep chars are not mixed on cygwin.
6065
6066 2002-08-06  Jerry James  <james@xemacs.org>
6067
6068         * window.c (Fsplit_window): Count only half of the divider width
6069         against the left window when splitting horizontally. 
6070
6071 2002-06-24  Andy Piper  <andy@xemacs.org>
6072
6073         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
6074         toolbar was cleared.
6075
6076         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
6077         function. Split out from mswindows_output_frame_toolbars.
6078         (mswindows_output_frame_toolbars): move clear pieces to
6079         mswindows_output_frame_toolbars.
6080
6081         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
6082         out from gtk_output_frame_toolbars.
6083         (gtk_output_frame_toolbars): move clear pieces to
6084         gtk_clear_frame_toolbars.
6085
6086         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
6087         the frame is cleared. How this ever worked before is a mystery.
6088         (x_output_frame_toolbars): Only output toolbars.
6089         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
6090
6091         * gutter.c (update_gutter_geometry):
6092         Mark frame layout changed.
6093         (update_frame_gutter_geometry, update_frame_gutters):
6094         Respect frame_layout_changed.
6095
6096         * console.h (struct console_methods): add
6097         clear_frame_toolbars_method.
6098
6099         * redisplay.c (redisplay_frame): call
6100         update_frame_toolbars_geometry and re-order update_frame_toolbars.
6101
6102         * toolbar.h: declare update_frame_toolbars_geometry.
6103
6104         * toolbar.c (update_frame_toolbars_geometry): new function. Split
6105         out from update_frame_toolbars.  Call clear_frame_toolbars.
6106         (update_frame_toolbars): only output, do not change geometry.
6107
6108         * redisplay.c: add frame_layout_changed.
6109
6110         * redisplay.h: add frame_layout_changed.
6111         (CLASS_RESET_CHANGED_FLAGS): set it.
6112         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
6113         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
6114         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
6115
6116         * device.h (struct device): add frame_layout_changed.
6117         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
6118
6119         * frame.h (struct frame): add frame_layout_changed.
6120         (MARK_FRAME_LAYOUT_CHANGED): new.
6121
6122 2002-06-30  Mike Alexander  <mta@arbortext.com>
6123
6124         * event-msw.c (mswindows_need_event): Don't wait for a new message
6125         if the queue is not empty.  Suggested by Paul Moore.
6126
6127 2002-06-12  Andy Piper  <andy@xemacs.org>
6128
6129         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
6130         for printing on accurately.
6131
6132 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
6133
6134         * event-msw.c (mswindows_wnd_proc): Add a handler for the
6135         WM_ACTIVATE message. Make sure that the frame is visible if the
6136         window is visible. This seemss to fix the problem where XEmacs
6137         appears to freeze after switching desktops with certain virtual
6138         window managers.
6139         (debug_output_mswin_message): Added code to output message
6140         parameters for WM_WINDOWPOSCHANGED, 
6141         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
6142
6143 2002-05-25  Andy Piper  <andy@xemacs.org>
6144
6145         * select-x.c (vars_of_select_x): Fix docstring of
6146         x-selection-strict-motif-ownership
6147
6148 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6149
6150         * keymap.c (get_keymap):
6151         Add comment about do_autoload GCPROs own args.
6152
6153 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6154
6155         * bytecode.c (execute_optimized_program): check_opcode ifdef
6156         ERROR_CHECK_BYTE_CODE.
6157
6158 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6159
6160         Thanks to Ben Wing and Michael Sperber.
6161
6162         * eval.c (Fcommand_execute):
6163         (Feval):
6164         (Ffuncall):
6165         (Fmacroexpand_internal):
6166         (function_argcount):
6167         callint.c (Fcall_interactively):
6168         Add comment about do_autoload GCPROs own args.
6169
6170         * (do_autoload): GCPRO both args as well as local Lisp_Object.
6171
6172         * eval.c (Ffuncall): Extra braces to placate GCC.
6173
6174 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
6175
6176         * backtrace.h (grow_specpdl):
6177         (SPECPDL_RESERVE):
6178         * EmacsFrame.c (EmacsFrameSetValues):
6179         * eval.c (grow_specpdl):
6180         * ExternalShell.c (hack_event_masks_1):
6181         * glyphs-x.c (convert_EImage_to_XImage): 
6182         (x_finalize_image_instance):
6183         * ralloc.c (page_size):
6184         (r_alloc_sbrk):
6185         * xgccache.c (gc_cache_hash):
6186         Fix unsigned comparison warnings.
6187
6188 2002-07-29  Jerry James  <james@xemacs.org>
6189
6190         * lread.c (locate_file): Any nonnegative return value indicates
6191         success if MODE is nonnegative.
6192
6193 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
6194
6195         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
6196         argument. 
6197
6198 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
6199
6200         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
6201
6202         * dumper.c (pdump_get_indirect_count):
6203         (pdump_scan_by_alignment):
6204         (pdump_dump_root_struct_ptrs):
6205         (pdump_dump_rtables):
6206         (pdump_dump_root_objects):
6207         (pdump):
6208         * nas.c (WaveOpenDataForReading):
6209         * fns.c (print_bit_vector):
6210         * font-lock.c (SINGLE_SYNTAX_STYLE):
6211         * glyphs.c (check_for_ignored_expose):
6212         (find_matching_subwindow):
6213         * glyphs-eimage.c:
6214         * imgproc.c (get_histogram):
6215         * redisplay.c (point_in_line_start_cache):
6216         * redisplay-output.c (redisplay_unmap_subwindows):
6217         * symbols.c (defsymbol_massage_name_1):
6218         (defkeyword_massage_name):
6219         (deferror_massage_name_and_message):
6220         * redisplay-x.c (x_output_string): 
6221         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
6222         * frame.h (struct frame):
6223         * filelock.c (current_lock_owner):
6224         * doprnt.c (emacs_doprnt_1):
6225         * lisp.h (struct Lisp_Bit_Vector):
6226         (DO_REALLOC):
6227         Fix warnings.
6228
6229 2002-02-13  Ben Wing  <ben@xemacs.org>
6230
6231         * event-stream.c (reset_key_echo):
6232         * event-stream.c (reset_this_command_keys):
6233         * event-stream.c (execute_command_event):
6234         If console is dead as a result of C-x 5 0, then post-command stuff
6235         needs to be careful and do only non-console-specific stuff.
6236
6237 2002-07-01  Mike Sperber <mike@xemacs.org>
6238
6239         * process-unix.c (unix_send_process): Mark coding_outstream as
6240         non-open upon SIGPIPE.
6241
6242         * event-stream.c (Fnext_event): Reorder switch cases to something
6243         that makes sense.
6244
6245 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
6246
6247         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
6248         Don't bogusly reinitialize ascii_character property.
6249
6250 2002-07-08  Mike Sperber <mike@xemacs.org>
6251
6252         * process.c (Fstart_process_internal): Do error checking before we
6253         fork off the child, so the child can't muck with the state of the
6254         parent.
6255
6256 2002-07-08  Mike Sperber <mike@xemacs.org>
6257
6258         * ralloc.c (init_ralloc): Allocate properly for pdump.
6259
6260 2002-06-12  Andy Piper  <andy@xemacs.org>
6261
6262         * glyphs.c (query_string_geometry): check the string.
6263
6264         * glyphs-widget.c (widget_logical_unit_height): cope with nil
6265         widget names.
6266
6267 2002-06-17  Jerry James  <james@xemacs.org>
6268
6269         * sysdll.c: Remove RTLD_GLOBAL initialization.
6270         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
6271
6272 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
6273
6274         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
6275
6276 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
6277
6278         * sysdep.c (sys_rename): Make sys_rename work for the case where
6279         Windows rename sets errno to EACCES if target file exists.
6280
6281 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
6282
6283         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6284         Fix detection of metric units to work on Win95
6285
6286 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
6287
6288         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
6289
6290 2002-04-25  Andy Piper  <andy@xemacs.org>
6291
6292         * redisplay.c (create_text_block): Remove extra comment trailer.
6293
6294 2002-04-24  Andy Piper  <andy@xemacs.org>
6295
6296         * redisplay.c (create_text_block): Don't actually add propagation
6297         data if the line ends after we have added a glyph.
6298
6299 2002-04-22  Andy Piper  <andy@xemacs.org>
6300
6301         * extents.c (extent_fragment_update): check for glyphs we have
6302         previously displayed.
6303         * extents.c (print_extent_1): warning removal.
6304         * extents.h: change prototype.
6305         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
6306         widths correctly for wide glyphs.
6307         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
6308         * redisplay.c (prop_type): add PROP_GLYPH.
6309         * redisplay.c (struct prop_block): add glyph type
6310         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
6311         to the propagation data.
6312         * redisplay.c (create_text_block): if there is a glyph in the
6313         propagation data use it to salt extent_fragment_update.
6314         * redisplay.c (create_string_text_block): ditto.
6315
6316 2002-04-13  Nix  <nix@esperi.demon.co.uk>
6317
6318         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
6319         * redisplay-output.c (compare_runes): Compare them.
6320         * redisplay.c: Update copyright date.
6321         * redisplay.c (pos_data): Add need_baseline_computation field.
6322         * redisplay.c (add_glyph_rune): Update ascent, descent, and
6323         need_baseline_computation; zero yoffset. Set max_pixmap_height
6324         for all pixmaps, not just automatically positioned ones.
6325         * redisplay.c (calculate_yoffset): New, compute yoffset values.
6326         * redisplay.c (calculate_baseline): New, compute textual baseline.
6327         * redisplay.c (add_glyph_rune): Call them.
6328         * redisplay.c (create_text_block): Likewise.
6329         * redisplay.c (create_overlay_glyph_block): Likewise.
6330         * redisplay.c (add_margin_runes): Likewise.
6331         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
6332
6333         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
6334         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
6335         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
6336         * redisplay-msw.c (mswindows_output_string): Likewise.
6337         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
6338         * redisplay-gtk.c (gtk_output_display_block): Likewise.
6339         * redisplay-x.c (x_output_display_block): Likewise.
6340
6341 2002-03-28  Ben Wing  <ben@xemacs.org>
6342
6343         * redisplay.c: Fixed bug in redisplay
6344         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
6345         and down of the lines, since they're bigger than the line
6346         size. (It was seen most obviously when there's a horizontal scroll
6347         bar, e.g. do C-h a glyph or something like that.) The problem was
6348         that the glyph-contrib-p setting on glyphs was ignored even if it
6349         was set properly, which it wasn't until now.
6350
6351 2002-04-24  Andy Piper  <andy@xemacs.org>
6352
6353         * lisp.h (Dynarr_end): Fix definition.
6354
6355 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
6356
6357         * redisplay.c (mark_redisplay): Remove call to
6358         update_frame_window_mirror.
6359
6360 2001-11-15  Andy Piper  <andy@xemacs.org>
6361
6362         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
6363         cygwin (again).
6364
6365 2002-02-13  Andy Piper  <andy@xemacs.org>
6366
6367         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
6368         we did in fact enqueue the XM_MAPFRAME event.
6369
6370 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
6371
6372         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
6373         to fix problem switching between virtual desktops under virtuawin
6374         virtual window manager.
6375
6376 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
6377
6378         * event-msw.c: Typo fix.
6379         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
6380         magic XM_MAPFRAME event has been sent.
6381
6382 2001-11-23  Andy Piper  <andy@xemacs.org>
6383
6384         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
6385
6386 2001-11-21  Andy Piper  <andy@xemacs.org>
6387
6388         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
6389         mouse events outside the frame.
6390
6391 2002-03-20  Andy Piper  <andy@xemacs.org>
6392
6393         * menubar-msw.c (mswindows_popup_menu): warning removal.
6394         * dialog-msw.c (dialog_popped_down): ditto.
6395
6396 2001-12-11  Andy Piper  <andy@xemacs.org>
6397
6398         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6399         * dialog-msw.c (mswindows_make_dialog_box_internal): set
6400         popup_up_p.
6401         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6402         * menubar-msw.c (mswindows_handle_wm_command): ditto.
6403         * menubar-msw.c (mswindows_popup_menu): ditto.
6404
6405 2001-10-29  Andy Piper  <andy@xemacs.org>
6406
6407         * dialog-msw.c (handle_directory_dialog_box): quit if the user
6408         cancels.
6409
6410 2002-01-03  Andy Piper  <andy@xemacs.org>
6411
6412         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6413         letters.
6414         (xrealpath): ditto.
6415
6416 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6417
6418         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6419         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6420         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6421         Detect and handle case where machine is set up for metric units
6422
6423 2002-04-02  Andy Piper  <andy@xemacs.org>
6424
6425         * dired-msw.c (mswindows_get_files): 
6426         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6427         completely handled by XEmacs. Suggested by Thomas Vogler
6428         <mail@thomas-vogler.de>.
6429
6430 2001-11-14  Andy Piper  <andy@xemacs.org>
6431
6432         * nt.c (REG_ROOT): change registry key to XEmacs.
6433
6434 2002-04-27  Andy Piper  <andy@xemacs.org>
6435
6436         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6437
6438 2002-04-26  Andy Piper  <andy@xemacs.org>
6439
6440         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6441         behavior.
6442
6443 2002-03-14  Mike Alexander  <mta@arbortext.com>
6444
6445         * event-msw.c (mswindows_unwait_process): New, remove process from
6446         wait list
6447         * process-nt.c (nt_finalize_process_data): Call
6448         mswindows_unwait_process
6449         * console-msw.h: Declare mswindows_unwait_process
6450
6451 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6452
6453         * editfns.c (Fdecode_time):
6454         (Fformat_time_string):
6455         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6456         (make_time): Warning elimination (change arg name).
6457
6458 2001-11-24  Andy Piper  <andy@xemacs.org>
6459
6460         * window.c (Fsplit_window): Doc return type.
6461
6462 2002-04-01  Andy Piper  <andy@xemacs.org>
6463
6464         * emacs.c (Fkill_emacs): Only output message box in interactive
6465         mode.
6466
6467 2002-04-26  Andy Piper  <andy@xemacs.org>
6468  
6469         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6470         cygwin.
6471
6472 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6473
6474         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6475         bit platform.
6476
6477 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6478
6479         * XEmacs 21.4.8 "Honest Recruiter" is released.
6480
6481 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6482
6483         Supersedes 2002-04-17 patch.
6484
6485         * process.h (PROCESS_LIVE_P): Use the process status as
6486         evidence of health, not the state of the input stream.
6487         (PROCESS_READABLE_P): Say if the process is readable
6488         from. (It may be dead nonetheless.)
6489         (CHECK_READABLE_PROCESS): Test for that condition.
6490
6491         * process.c (create_process): Use PROCESS_READABLE_P.
6492         (read_process_output, set_process_filter): Likewise.
6493
6494         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6495         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6496
6497         This code is #if 0'd, this is not the time to add new functions:
6498
6499         * process.c (Fprocess_readable_p): Report readability status.
6500         * process.c (Qprocess_readable_p): New, associated symbol...
6501         * process.c (syms_of_process): ... initialize it.
6502
6503 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6504
6505         * XEmacs 21.4.7 "Economic Science" is released.
6506
6507 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6508
6509         * process.h (PROCESS_LIVE_P): Use the process status as
6510         evidence of health, not the state of the input stream.
6511
6512 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6513
6514         * sysdep.c (sys_siglist): change "signum" to "signal"
6515
6516 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6517
6518         * s/darwin.h: New file.
6519         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6520         
6521 2002-04-23  Andreas Jaeger  <aj@suse.de>
6522
6523         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6524         which use lib64 for 64-bit libs.
6525         (START_FILES): Likewise.
6526
6527 2002-02-11  Mike Sperber  <mike@xemacs.org>
6528
6529         * device-x.c: 
6530         (x_IO_error_handler):
6531         (x_init_device): Temporarily keep device in static variable
6532         `device_being_initialized' so we can recover gracefully from
6533         internal XOpenDevice failure.  (XOpenDevice is documented to
6534         return NULL on failure, but sometimes calls the IO error handler
6535         instead.)
6536
6537 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6538
6539         * dired.c (Ffile_name_all_completions): Change documentation --
6540         remove reference to completion-ignored-extensions.
6541         * dired.c (vars_of_dired): Change documentation for
6542         completion-ignored-extensions -- remove reference to
6543         file-name-all-completions.
6544
6545 2002-03-06  Jerry James  <james@xemacs.org>
6546
6547         * emodules.c (emodules_load): Fix multiple loading of same module.
6548
6549 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6550         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6551         RTLD_LAZY to avoid incorrect symbol binding when using nested
6552         shared libraries on Solaris.
6553
6554 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6555
6556         * fileio.c (Ffind_file_name_handler): Improve docstring.
6557
6558 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6559
6560         * fns.c (Fmapconcat): Improve docstring.
6561
6562 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6563
6564         * device-gtk.c: Add prototype for
6565         emacs_gtk_selection_clear_event_handle.
6566         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6567         selection.  Setup signal handler for "selection_clear_event"
6568         (emacs_gtk_selection_clear_event_handle).
6569
6570         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6571         other applications owning the clipboard (based on
6572         x_handle_selection_clear).
6573
6574 2001-12-23  William M. Perry  <wmperry@gnu.org>
6575
6576         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6577         
6578 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6579
6580         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6581
6582 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6583
6584         * XEmacs 21.4.6 "Common Lisp" is released.
6585
6586 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6587
6588         * search.c (Freplace_match): Add missing sub-expression functionality.
6589
6590         * buffer.c (decode_buffer): Add a check for pointer type to
6591         decode_buffer, before gcc's CSE optimization reorders a
6592         dereference in front of the allow_string test.
6593
6594 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6595
6596         * window.c (window_loop): Fix bug that sometimes prevented
6597         window_loop() from iterating across multiple devices.  Also, at
6598         Ben's request, changed infloop-detecting code to abort() instead
6599         of silently terminating window_loop().
6600
6601 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6602
6603         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6604         * editfns.c (make_time): New function.
6605         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6606         * lisp.h (make_time): Prototype and comment it.
6607         * dired.c (wasteful_word_to_lisp): Deprecate.
6608         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6609
6610 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6611
6612         * fileio.c (auto_save_1): Use current coding system, not
6613         escape-quoted.
6614
6615 2001-11-13  Ben Wing  <ben@xemacs.org>
6616
6617         * window.c:
6618         * window.c (window_truncation_on):
6619         * window.c (syms_of_window):
6620         truncate-partial-width-windows should respect the buffer being
6621         displayed, like other redisplay vars.
6622
6623 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6624
6625         * event-stream.c (Fread_key_sequence): save current buffer.
6626
6627 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6628
6629         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6630
6631 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6632
6633         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6634
6635 2001-10-26  Mike Alexander  <mta@arbortext.com>
6636
6637         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6638
6639 2001-10-25  Andy Piper  <andy@xemacs.org>
6640
6641         * ChangeLog:
6642         * dialog-msw.c (handle_directory_proc): new function.
6643          (handle_directory_dialog_box): new fucntion.
6644          (handle_file_dialog_box): use new directory dialog support.
6645          (mswindows_make_dialog_box_internal): ditto.
6646         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6647         handling.
6648         (mswindows_find_frame): make global.
6649         * fileio.c (Fexpand_file_name): build fix.
6650         * general-slots.h: add Qdirectory.
6651         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6652         handling.
6653         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6654         cygwin not leaving win32 paths unchanged.
6655         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6656         cygwin runtime to do path conversion.
6657         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6658         (syms_of_win32): add new function.
6659         * window.c (window_loop): build fix.
6660
6661 2001-10-15  Andy Piper  <andy@xemacs.org>
6662
6663         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6664
6665 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6666
6667         * XEmacs 21.4.5 "Civil Service" is released.
6668
6669 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6670
6671         * glyphs-x.c: Force buffer-tab highlight update when moving the
6672         buffer, avoiding an ugly black border, used for keyboard focus
6673         indication, on a widget that can never have keyboard focus, the
6674         buffer tab.
6675
6676 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6677
6678         * process-unix.c (unix_open_multicast_group): Remove too much
6679         conversion between host and network byte order.
6680
6681 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6682
6683         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6684         before replacing them.
6685
6686         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6687         operation.
6688
6689         * src/window.c (undedicate_windows): Use it.
6690         * src/window.h: Add prototype.
6691
6692 2001-09-17  Ben Wing  <ben@xemacs.org>
6693
6694         * fileio.c (normalize_filename):
6695         * fileio.c (Fexpand_file_name):
6696         Fix various C++ compile errors in Andy's recent code.
6697         
6698         * callint.c (Fcall_interactively):
6699         * editfns.c (Ftemp_directory):
6700         * editfns.c (Fuser_full_name):
6701         * emacs.c (argmatch):
6702         * lread.c (locate_file_map_suffixes):
6703         * redisplay-x.c (x_ring_bell):
6704         Fix sign-compare warnings.
6705         
6706 2001-09-08  Andy Piper  <andy@xemacs.org>
6707
6708         * fileio.c (normalize_filename): copied from nt.c
6709         * (Ffile_name_directory): enable win32 paths under cygwin.
6710         * (Ffile_name_nondirectory): ditto.
6711         * (directory_file_name): ditto.
6712         * (Fexpand_file_name): ditto.
6713         * (Ffile_truename): ditto.
6714         * (Fsubstitute_in_file_name): ditto.
6715         * (Ffile_name_absolute_p): ditto.
6716         * (Ffile_readable_p): ditto.
6717
6718 2001-09-08  Andy Piper  <andy@xemacs.org>
6719
6720         * device-msw.c (mswindows_finish_init_device): remove dde
6721         initialization.
6722         * device-msw.c (mswindows_init_dde): factor out from
6723         mswindows_finish_init_device()
6724         * device-msw.c (init_mswindows_very_early): new function
6725         initialize but don't enable dde.
6726         * emacs.c (main_1): call init_mswindows_very_early.
6727         * event-msw.c:
6728         * event-msw.c (mswindows_dde_callback): only execute when we are
6729         ready.
6730         * symsinit.h: declare init_mswindows_very_early.
6731
6732 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6733
6734         [sjt: This has been in 21.5 for months with no complaints.]
6735
6736         * console.h (struct console_methods): Added flags member.
6737         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6738         (CONMETH_IMPL_FLAG):
6739         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6740         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6741
6742         * device.c (window_system_pixelated_geometry): Use the above macros.
6743
6744         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6745         implememntation flag.
6746         * device.h (DEVICE_DISPLAY_P): Use it.
6747
6748         * frame.c (delete_frame_internal): Use the above macro.
6749
6750         * redisplay.c (redisplay_device): Use it.
6751         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6752         (redisplay_frame): Ditto.
6753
6754         * device-msw.c (mswindows_device_implementation_flags): Removed.
6755         (msprinter_device_implementation_flags): Removed.
6756         (console_type_create_device_mswindows): Removed references to
6757         implementation_flags methods, set implementation flags here.
6758         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6759
6760         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6761         (console_type_create_device_gtk): Removed method declaration.
6762         Added commented out statement which semantically matches the
6763         commented out statement in the above removed method.
6764
6765 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6766
6767         The attached patch fixes a few warnings. 
6768
6769         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6770         * src/frame-gtk.c: guard against GNOME calls in GTK only
6771         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6772         * src/select-gtk.c: prototype lisp_to_time
6773
6774 2001-06-08  Ben Wing  <ben@xemacs.org>
6775
6776         ------ gc-in-window-procedure fixes ------
6777         
6778         * alloc.c:
6779         * alloc.c (struct post_gc_action):
6780         * alloc.c (register_post_gc_action):
6781         * alloc.c (run_post_gc_actions):
6782         * alloc.c (garbage_collect_1):
6783         Create "post-gc actions", to avoid those dreaded "GC during window
6784         procedure" problems.
6785
6786         * event-msw.c:
6787         Abort, clean and simple, when GC in window procedure.  We want
6788         to flush these puppies out.
6789
6790         * glyphs-msw.c:
6791         * glyphs-msw.c (finalize_destroy_window):
6792         * glyphs-msw.c (mswindows_finalize_image_instance):
6793         Use a post-gc action when destroying subwindows.
6794
6795         * lisp.h:
6796         Declare register_post_gc_action().
6797
6798         * scrollbar-msw.c:
6799         * scrollbar-msw.c (unshow_that_mofo):
6800         Use a post-gc action when unshowing scrollbar windows, if in gc.
6801
6802         * redisplay.c (mark_redisplay):
6803         Add comment about the utter evilness of what's going down here.
6804
6805         ------ cygwin setitimer fixes ------
6806         
6807         * Makefile.in.in (sheap_objs):
6808         * Makefile.in.in (profile_objs):
6809         * Makefile.in.in (objs):
6810         Compile profile.c only when HAVE_SETITIMER.
6811         
6812         * nt.c (mswindows_sigset):
6813         * nt.c (mswindows_sighold):
6814         * nt.c (mswindows_sigrelse):
6815         * nt.c (mswindows_sigpause):
6816         * nt.c (mswindows_raise):
6817         * nt.c (close_file_data):
6818         Style fixes.
6819         
6820         * nt.c:
6821         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6822         
6823         * profile.c:
6824         * profile.c (Fstart_profiling):
6825         * profile.c (Fstop_profiling):
6826         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6827         instead of just plain setitimer().
6828         
6829         * signal.c:
6830         * signal.c (set_one_shot_timer):
6831         * signal.c (alarm):
6832         Define qxe_setitimer() as an encapsulation around setitimer() --
6833         call setitimer() directly unless Cygwin or MS Win, in which case
6834         we use our simulated version in win32.c.
6835         
6836         * systime.h:
6837         * systime.h (struct itimerval):
6838         * systime.h (ITIMER_REAL):
6839         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6840         comment about "qxe" and the policy regarding encapsulation.
6841
6842         * win32.c:
6843         * win32.c (setitimer_helper_proc):
6844         * win32.c (setitimer_helper_period):
6845         * win32.c (setitimer_helper):
6846         * win32.c (mswindows_setitimer):
6847         Move setitimer() emulation here, so Cygwin can use it.
6848         Rename a couple of functions and variables to be longer and more
6849         descriptive.  In setitimer_helper_proc(), send the signal
6850         using either mswindows_raise() or (on Cygwin) kill().  If for
6851         some reason we are still getting lockups, we'll change the kill()
6852         to directly invoke the signal handlers.
6853
6854         ------ windows shell fixes ------
6855         
6856         * callproc.c:
6857         * ntproc.c:
6858         Comments about how these two files must die.
6859
6860         * callproc.c (init_callproc):
6861         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6862         not just COMSPEC. (more correct and closer to FSF.) Don't
6863         force a value for SHELL into the environment. (Comments added
6864         to explain why not.)
6865         
6866         * nt.c (init_user_info):
6867         Don't shove a fabricated SHELL into the environment.  See above.
6868
6869 2001-06-01  Ben Wing  <ben@xemacs.org>
6870
6871         * Makefile.in.in (ldflags):
6872         eliminate that pesky "defaulting to 00401000" warning.
6873         * nt.h:
6874         eliminate warnings.
6875
6876 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6877
6878         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6879         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6880
6881 2001-04-24  Jerry James <james@xemacs.org>
6882
6883         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6884         correct order.
6885
6886 2001-06-01  Ben Wing  <ben@xemacs.org>
6887
6888         * event-msw.c (debug_mswin_messages):
6889         conditionalize the messages that were causing compile errors.
6890         (if only macros could generate #ifdef statements ...)
6891
6892 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6893
6894         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6895
6896 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6897
6898         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6899
6900 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6901
6902         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6903         * process-unix.c (unix_canonicalize_host_name):
6904         sysdep.c (init_system_name):
6905         Use it to conditionally support IPv6 canonicalization.
6906
6907 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6908
6909         * event-msw.c:
6910         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6911
6912 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6913
6914         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6915         attempt is made to scroll when no scroll bar is available.
6916
6917 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6918
6919         * input-method-motif.c (XIM_delete_frame): New callback.
6920         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6921         got deleted from 21.4.3.)
6922
6923 2001-06-01  Ben Wing  <ben@xemacs.org>
6924
6925         * nt.c (mswindows_utime):
6926         * nt.c (close_file_data):
6927         fix off-by-one-indirection error.
6928
6929 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6930
6931         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6932         because set_file_times() now takes Lisp_Object path, instead of
6933         char*.
6934         * nt.c: Include buffer.h.
6935         * nt.c (convert_from_time_t): New.
6936         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6937         not set mtime correctly.
6938         * nt.h: Declare mswindows_utime().
6939         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6940         path, instead of char*.
6941         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6942
6943 2001-05-30  Ben Wing  <ben@xemacs.org>
6944
6945         For 21.4:
6946
6947         (Stephen, just take all event-msw.c patches.  This includes
6948         the "iconify" fix below.)
6949
6950         * event-msw.c:
6951         * event-msw.c (mswindows_dequeue_dispatch_event):
6952         * event-msw.c (assert):
6953         * event-msw.c (emacs_mswindows_quit_p):
6954         * event-msw.c (debug_mswin_messages):
6955         * event-msw.c (debug_output_mswin_message):
6956         * event-msw.c (vars_of_event_mswindows):
6957         Fix yet more problems with C-g handling.
6958         Implement debug-mswindows-events.
6959         
6960 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6961
6962         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6963         
6964 2001-05-23  Ben Wing  <ben@xemacs.org>
6965
6966         * event-msw.c (winsock_writer):
6967         * event-msw.c (winsock_closer):
6968         prior kludgy code was clobbering the buffer, thinking it was
6969         "unused" space to store an unneeded return value; instead, use
6970         the variable we've already got staring us in the face.
6971
6972 2001-05-17  Andy Piper  <andy@xemacs.org>
6973
6974         * sysfile.h: don't assume that file attributes are boolean
6975
6976 2001-05-23  Ben Wing  <ben@xemacs.org>
6977
6978         * device-msw.c (msprinter_init_device):
6979         signal an error rather than crash with an unavailable network
6980         printer (from Mike Alexander).
6981         
6982         * event-msw.c:
6983         * event-msw.c (struct winsock_stream):
6984         * event-msw.c (winsock_writer):
6985         * event-msw.c (winsock_closer):
6986         * event-msw.c (make_winsock_stream_1):
6987         cleanup headers.  fix (hopefully) an error with data corruption
6988         when sending to a network connection.
6989
6990         * fileio.c (Fexpand_file_name): Fix evil code that attempts
6991         to handle the ~user prefix by (a) always assuming we're referencing
6992         ourselves and not even verifying the user -- hence any file with
6993         a tilde as its first char is invalid! (b) if there wasn't a slash
6994         following the filename, the pointer was set *past* the end of
6995         file and we started reading from uninitialized memory.  Now we
6996         simply treat these as files, always.
6997
6998         * buffer.c (common_init_complex_vars_of_buffer): comment change.
6999         
7000 2001-05-19  Ben Wing  <ben@xemacs.org>
7001
7002         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
7003
7004         * process-nt.c:
7005         * process-nt.c (vars_of_process_nt):
7006         remove unused mswindows-quote-process-args.  rec for 21.4.
7007         
7008 2001-05-12  Ben Wing  <ben@xemacs.org>
7009
7010         * event-msw.c (mswindows_dde_callback):
7011         * event-msw.c (mswindows_wnd_proc):
7012         eliminate cygwin warnings.
7013
7014 2001-05-06  Ben Wing  <ben@xemacs.org>
7015
7016         * console-msw.h:
7017         * device-msw.c:
7018         * device-msw.c (print_dialog_worker):
7019         * device-msw.c (mswindows_handle_print_dialog_box):
7020         * device-msw.c (syms_of_device_mswindows):
7021         * dialog-msw.c (mswindows_make_dialog_box_internal):
7022         * general-slots.h:
7023         implement printing the selection when it's selected.
7024
7025 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
7026
7027         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
7028
7029 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7030
7031         * lisp.h (EMACS_INT_MAX): This should be one bit less since
7032         EMACS_INT is signed.
7033
7034 2001-04-15  Michael Lausch  <mla@1012surf.net>
7035
7036         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
7037         gtk_widget_request_size() to give scrollbar >0 width for
7038         GTK >1.2.8.
7039
7040 2001-05-30  William M. Perry  <wmperry@gnu.org>
7041
7042         * event-gtk.c: Check for buttons as modifier keys.
7043
7044 2001-05-25  Craig Lanning  <CraigL@Knology.net>
7045
7046         * s\mingw32.h:
7047         Properly find MinGW's <process.h> inside Cygwin's restructured
7048         include directories.  Don't try to include <cygwin/version.h>
7049         since we are dropping support for MinGW in versions of Cygwin
7050         earlier than b21.
7051         * nt.c:
7052         Drop support for MinGW in versions of Cygwin before b21.
7053         * sysdep.c:
7054         Properly find MinGW's <process.h> inside Cygwin's restructured
7055         include directories.
7056         * syswindows.h:
7057         Drop support for MinGW in versions of Cygwin before b21.
7058         * unexcw.c:
7059         Even though a.out.h is no longer detected by configure, allow
7060         MinGW to use it until we figure out how to do the job with Win32.
7061
7062 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
7063
7064         * syntax.c (find_start_of_comment):
7065         Fix `unbalanced parentheses' bug when dealing with mixed comment
7066         styles in c++/java/etc. mode
7067
7068 2001-05-29  Mike Alexander  <mta@arbortext.com>
7069
7070         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
7071         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
7072
7073 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
7074
7075         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
7076
7077 2001-03-31  Mike Sperber <mike@xemacs.org>
7078
7079         * search.c (Freplace_match): Support FSF-style specification of
7080         match subexpression when applied to a buffer.
7081
7082 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7083
7084         * event-stream.c (is_scrollbar_event): add missing semicolon
7085
7086 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
7087
7088         * Makefile.in.in: Use TAR macro instead of hardcoding
7089           tar.  Allows use of GNU tar instead of system tar
7090
7091 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7092
7093         * event-stream.c (is_scrollbar_event): add missing semicolon
7094
7095 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7096
7097         * XEmacs 21.4.3 "Academic Rigor" is released.
7098
7099 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7100
7101         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
7102
7103 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7104
7105         * buffer.c (Vcase_fold_search): Remove obsolete
7106           comment about non ASCII case-fold-search.  This
7107           bug has been fixed by case-table changes.
7108
7109 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
7110
7111         * event-msw.c: Restore include of events-mod.h.
7112
7113 2001-04-22   zhaoway  <zw@debian.org>
7114
7115         * event-stream.c (is_scrollbar_event): Noop returning 0 if
7116         !HAVE_SCROLLBARS.
7117
7118 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
7119
7120         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
7121
7122 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
7123
7124         * mule-charset.c (Fmake_charset): Add missing else.
7125
7126 2001-04-23  Ben Wing  <ben@xemacs.org>
7127
7128         * event-msw.c (FAKE_MOD_QUIT):
7129         * event-msw.c (mswindows_dequeue_dispatch_event):
7130         * event-msw.c (mswindows_wnd_proc):
7131         * event-msw.c (emacs_mswindows_quit_p):
7132         Get critical quit working.
7133
7134 2001-05-05  Ben Wing  <ben@xemacs.org>
7135
7136         * console-msw.h:
7137         * device-msw.c:
7138         * device-msw.c (mswindows_get_default_margin):
7139         * frame-msw.c (mswindows_size_frame_internal):
7140         * frame-msw.c (msprinter_init_frame_1):
7141         * frame-msw.c (vars_of_frame_mswindows):
7142         Change top/bottom margin defaults to 0.5 inches.
7143
7144 2001-05-01  Martin Buchholz  <martin@xemacs.org>
7145
7146         Fix link error with gcc 3.0 on Linux.
7147         * terminfo.c (UP): Remove.
7148         * terminfo.c (BC): Remove.
7149         * terminfo.c (PC): Remove.
7150         They weren't used, and in any case, these symbols should be
7151         defined in the *library*.
7152
7153 2001-05-03  Martin Buchholz  <martin@xemacs.org>
7154
7155         * s/aix4.h: Fix crash with xlc -O3.
7156         Improve comment explaining how -O3 works.
7157
7158 2001-04-15  Ben Wing  <ben@xemacs.org>
7159
7160         * event-stream.c:
7161         * event-stream.c (Fnext_event):
7162         * event-stream.c (is_scrollbar_event):
7163         * event-stream.c (execute_command_event):
7164         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
7165         crash' problem.  His fix introduces other problems.  We filter
7166         out scrollbar events specifically, making them somewhat invisible
7167         to command-building, and not appearing in `this-command-keys'.
7168         More work is still needed (see comments in event-stream.c), but
7169         this fixes all the major problems.
7170
7171 2001-04-20  Ben Wing  <ben@xemacs.org>
7172
7173         * .cvsignore: Added stuff for Windows.
7174
7175 2001-04-28  Ben Wing  <ben@xemacs.org>
7176
7177         * buffer.c (Ferase_buffer):
7178         * editfns.c (buffer_insert1):
7179         * editfns.c (Finsert_before_markers):
7180         * editfns.c (Finsert_string):
7181         * editfns.c (Finsert_char):
7182         * editfns.c (Fdelete_region):
7183         * editfns.c (Fwiden):
7184         * editfns.c (Fnarrow_to_region):
7185         remove bogus lines setting zmacs_region_stays to 0.
7186         
7187 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7188
7189         * process-unix.c (unix_open_network_stream): If connect() fails
7190         invalidate file descriptor after closing it.
7191
7192 2001-03-08  Mike Alexander  <mta@arbortext.com>
7193
7194         * event-msw.c (mswindows_need_event_in_modal_loop):
7195         Don't dispatch a message if we didn't get one.
7196         (mswindows_need_event):
7197         Terminate the correct process when one exits instead of the first
7198         one on Vprocess_list and look for process termination when in
7199         mswindows_protect_modal_loop.
7200
7201 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
7202
7203         * XEmacs 21.4.1 "Copyleft" is released.
7204
7205 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7206
7207         * input-method-motif.c (XIM_delete_frame): New callback.
7208         (XIM_init_frame): Register it.
7209
7210 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7211
7212         * XEmacs 21.4.0 "Solid Vapor" is released.
7213
7214 2001-04-15  Ben Wing  <ben@xemacs.org>
7215
7216         * cmdloop.c (call_command_loop):
7217         Fix braino in bit-rotting code.
7218         
7219 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
7220
7221         * extents.c (Fset_extent_endpoints): Force creation of extent info
7222         in buffer_or_string.
7223
7224         * extents.c (process_extents_for_insertion_mapper): Correctly
7225         check for open-open zero-length extents.
7226
7227 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7228
7229         * lisp.h: New typedefs Memory_count, Element_count.
7230         * regex.c:
7231         * regex.h:
7232         Sign-compare warning elimination: several unsigned -> signed.
7233         Based on work by Ben Wing <ben@xemacs.org>.
7234
7235 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
7236
7237         * XEmacs 21.2.47 "Zephir" is released.
7238
7239 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
7240
7241         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
7242
7243 2001-04-03  Mike Sperber <mike@xemacs.org>
7244
7245         * search.c: Revert previous patch due because of release.
7246
7247 2001-03-30  Ben Wing  <ben@xemacs.org>
7248
7249         * s\cygwin32.h:
7250         Add missing killpg prototype.
7251
7252         * elhash.c:
7253         Add a comment about fixing problems when a new entry is added
7254         while mapping.
7255
7256         * frame-msw.c (mswindows_init_frame_1):
7257         Fix compile warnings.
7258
7259         * menubar.c (vars_of_menubar):
7260         Provide `menu-accelerator-support' to indicate that we properly
7261         support %_ in menu specifications, so that package code can
7262         conditionalize on this (and remove %_ from menu specifications
7263         on older versions).
7264
7265         * event-msw.c:
7266         * scrollbar-msw.c:
7267         * scrollbar-msw.c (can_scroll):
7268         * scrollbar-msw.h:
7269         Fix handling of mouse wheel under Windows to follow standards --
7270         now scrolls window under pointer, not selected window.
7271
7272 2001-03-31  Mike Sperber <mike@xemacs.org>
7273
7274         * search.c (Freplace_match): Support FSF-style specification of
7275         match subexpression when applied to a buffer.
7276
7277 2001-03-15  Martin Buchholz  <martin@xemacs.org>
7278
7279         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
7280         function to modify KEYMAP, so map over a copy of the hash table.
7281
7282 2001-03-21  Martin Buchholz <martin@xemacs.org>
7283
7284         * XEmacs 21.2.46 "Urania" is released.
7285
7286 2001-03-20  Dan Holmsand  <dan@eyebee.com>
7287
7288         * realpath.c (xrealpath): Make file-truename work with symlinks to
7289         /cygdrive paths on cygwin. Always lowercase drive-letters on
7290         native windows.
7291         (cygwin_readlink): Don't try to find canonical filename unless
7292         file exists.
7293
7294 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
7295
7296         * ChangeLog: Log GTK merge.
7297
7298         * dumper.c:
7299         * select-x.c:
7300         * specifier.c:
7301         * symeval.h:
7302         Revert gratuitous whitespace changes from GTK merge.
7303
7304         * emacs.c: Document end of complex #ifdef @ l. 1495.
7305
7306
7307 2001-03-12  Andy Piper  <andy@xemacs.org>
7308
7309         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
7310         have to do likewise.
7311
7312 2001-03-12  Andy Piper  <andy@xemacs.org>
7313
7314         * sysdep.c: we only support mingw now.
7315
7316 2001-03-09  Andy Piper  <andy@xemacs.org>
7317
7318         * unexcw.c (copy_executable_and_dump_data_section): making approx
7319         overrun a warning only.
7320
7321 2001-03-10  William M. Perry  <wmperry@aventail.com>
7322
7323         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
7324         satisfy Stephen's identical-after-cpp plea.
7325
7326 2001-03-02  Ben Wing  <ben@xemacs.org>
7327
7328         * cmds.c:
7329         * cmds.c (Fforward_char):
7330         * syntax.c:
7331         * window.c:
7332
7333         Augment documentation of the most common motion commands to make
7334         note of the shifted-motion support.
7335         
7336 2001-03-02  Ben Wing  <ben@xemacs.org>
7337
7338         * nt.c (mswindows_fstat):
7339         * nt.c (mswindows_stat):
7340         * search.c (boyer_moore):
7341         Fix compile warnings under Windows.
7342         
7343         * sysdep.c (sys_readdir):
7344         Fix buggy filename-conversion code under Mule.
7345
7346 2001-03-09  William M. Perry  <wmperry@aventail.com>
7347
7348         * Makefile.in.in:
7349         * config.h.in:
7350         * console.c:
7351         * console.h:
7352         * device.c:
7353         * device.h:
7354         * dragdrop.c:
7355         * emacs.c:
7356         * event-stream.c:
7357         * events.c:
7358         * events.h:
7359         * faces.c:
7360         * frame.h:
7361         * general-slots.h:
7362         * glyphs.c:
7363         * gutter.c:
7364         * inline.c:
7365         * lisp.h:
7366         * lrecord.h:
7367         * make-src-depend:
7368         * redisplay-output.c:
7369         * redisplay.c:
7370         * symsinit.h:
7371         * sysfile.h:
7372         * toolbar.c:
7373         * window.c:
7374         The Great GTK Merge.
7375
7376         * ChangeLog.GTK:
7377         * console-gtk.c:
7378         * console-gtk.h:
7379         * device-gtk.c:
7380         * emacs-marshals.c:
7381         * emacs-widget-accessors.c:
7382         * event-gtk.c:
7383         * frame-gtk.c:
7384         * gccache-gtk.c:
7385         * gccache-gtk.h:
7386         * glade.c:
7387         * glyphs-gtk.c:
7388         * glyphs-gtk.h:
7389         * gtk-glue.c:
7390         * gtk-xemacs.c:
7391         * gtk-xemacs.h:
7392         * gui-gtk.c:
7393         * gui-gtk.h:
7394         * menubar-gtk.c:
7395         * native-gtk-toolbar.c:
7396         * objects-gtk.c:
7397         * objects-gtk.h:
7398         * redisplay-gtk.c:
7399         * scrollbar-gtk.c:
7400         * scrollbar-gtk.h:
7401         * select-gtk.c:
7402         * toolbar-gtk.c:
7403         * ui-byhand.c:
7404         * ui-gtk.c:
7405         * ui-gtk.h:
7406         The Great GTK Merge: new files.
7407
7408 2001-02-26  Ben Wing  <ben@xemacs.org>
7409
7410         Reapplied Lstream change.
7411
7412 2001-02-26  Ben Wing  <ben@xemacs.org>
7413
7414         Undid the last change, since it is more controversial than I
7415         thought.  It should be back in at some point soon.
7416         
7417 2001-02-25  Ben Wing  <ben@xemacs.org>
7418
7419         * buffer.c:
7420         * callproc.c (Fold_call_process_internal):
7421         * event-msw.c (ntpipe_slurp_reader):
7422         * event-msw.c (ntpipe_shove_writer):
7423         * event-msw.c (winsock_reader):
7424         * event-msw.c (winsock_writer):
7425         * file-coding.c:
7426         * file-coding.c (detect_eol_type):
7427         * file-coding.c (detect_coding_type):
7428         * file-coding.c (determine_real_coding_system):
7429         * file-coding.c (Fdetect_coding_region):
7430         * file-coding.c (decoding_reader):
7431         * file-coding.c (decoding_writer):
7432         * file-coding.c (mule_decode):
7433         * file-coding.c (Fdecode_coding_region):
7434         * file-coding.c (encoding_reader):
7435         * file-coding.c (encoding_writer):
7436         * file-coding.c (mule_encode):
7437         * file-coding.c (Fencode_coding_region):
7438         * file-coding.c (detect_coding_sjis):
7439         * file-coding.c (decode_coding_sjis):
7440         * file-coding.c (encode_coding_sjis):
7441         * file-coding.c (detect_coding_big5):
7442         * file-coding.c (decode_coding_big5):
7443         * file-coding.c (encode_coding_big5):
7444         * file-coding.c (detect_coding_ucs4):
7445         * file-coding.c (decode_coding_ucs4):
7446         * file-coding.c (encode_coding_ucs4):
7447         * file-coding.c (detect_coding_utf8):
7448         * file-coding.c (decode_coding_utf8):
7449         * file-coding.c (encode_coding_utf8):
7450         * file-coding.c (detect_coding_iso2022):
7451         * file-coding.c (decode_coding_iso2022):
7452         * file-coding.c (encode_coding_iso2022):
7453         * file-coding.c (decode_coding_no_conversion):
7454         * file-coding.c (encode_coding_no_conversion):
7455         * glyphs-x.c (write_lisp_string_to_temp_file):
7456         * gpmevent.c (tty_get_foreign_selection):
7457         * lisp.h:
7458         * lstream.c:
7459         * lstream.c (Lstream_flush_out):
7460         * lstream.c (Lstream_adding):
7461         * lstream.c (Lstream_write_1):
7462         * lstream.c (Lstream_write):
7463         * lstream.c (Lstream_raw_read):
7464         * lstream.c (Lstream_read_more):
7465         * lstream.c (Lstream_read):
7466         * lstream.c (Lstream_unread):
7467         * lstream.c (Lstream_fputc):
7468         * lstream.c (stdio_reader):
7469         * lstream.c (stdio_writer):
7470         * lstream.c (filedesc_reader):
7471         * lstream.c (filedesc_writer):
7472         * lstream.c (lisp_string_reader):
7473         * lstream.c (struct fixed_buffer_stream):
7474         * lstream.c (make_fixed_buffer_input_stream):
7475         * lstream.c (make_fixed_buffer_output_stream):
7476         * lstream.c (fixed_buffer_reader):
7477         * lstream.c (fixed_buffer_writer):
7478         * lstream.c (struct resizing_buffer_stream):
7479         * lstream.c (resizing_buffer_writer):
7480         * lstream.c (dynarr_writer):
7481         * lstream.c (lisp_buffer_reader):
7482         * lstream.c (lisp_buffer_writer):
7483         * lstream.h:
7484         * lstream.h (lstream_implementation):
7485         * lstream.h (struct lstream):
7486         * md5.c (Fmd5):
7487         * process-nt.c (nt_send_process):
7488         * process-unix.c (unix_send_process):
7489         
7490         Correct Lstream lossage due to mixing of signed and unsigned
7491         quantities.  All Lstream uses of size_t and ssize_t are now a
7492         single signed data type Lstream_data_count.  This fixes problems
7493         under Windows with sending large quantities of data to a process,
7494         and may well fix other subtle bugs.
7495
7496 2001-02-23  Martin Buchholz <martin@xemacs.org>
7497
7498         * XEmacs 21.2.45 "Thelxepeia" is released.
7499
7500 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7501
7502         * lisp-union.h (XSETINT): 
7503         (XSETCHAR):
7504         (XSETOBJ): 
7505         Reverse previous change of 2001-02-06.
7506
7507 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7508
7509         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7510         buffers.
7511         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7512         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7513         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7514         * regex.c (POS_AS_IN_BUFFER): removed
7515         * regex.c (re_search_2):
7516         * regex.c (re_match_2):
7517         Don't use an offset of 1 when calculating buffer positions, since
7518         `BI_BUF_BEGV' does it already.
7519
7520 2001-02-18  Wim Dumon  <wim@easics.be>
7521
7522         * insdel.c (prepare_to_modify_buffer): Also check for
7523         supersession when clash-detection is enabled. 
7524
7525 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7526
7527         * regex.c (re_match_2_internal):
7528         Convert temp characters from 'const unsigned char' to 're_char'.
7529         Fix crashing bug with extended characters under mule.
7530         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7531         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7532         font-lock, pdump, and new syntax-table code.
7533         * syntax.c (find_start_of_comment):
7534         (find_end_of_comment):
7535         (forward-comment):
7536         Fix crashing bugs involving moving beyond end of buffer.
7537         * syntax.c (find_start_of_comment):
7538         Fixed logic to allow proper detection of cases where the same
7539         character is used to end both a two-char comment start and a
7540         two-char comment end sequence. Fixes `(forward-comment -1)'.
7541         * syntax.c (find_start_of_comment):
7542         Return position just past last comment-end character for all cases
7543         (previously was only done for two-char comment-end sequences).
7544         * syntax.c (forward-comment):
7545         Take value returned from `find_end_of_comment', rather than
7546         incrementing it.
7547         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7548         Properly deal with BUFFERP (syntax_cache.object)
7549
7550 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7551
7552         * alloc.c (Fgarbage_collect): 
7553         * alloc.c (make_bit_vector_from_byte_vector):
7554         -Wsign-compare-correctness.
7555
7556 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7557
7558         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7559         (XSETCHAR): Likewise.
7560         (XSETOBJ): Likewise.
7561
7562 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7563
7564         * mule-canna.c (canna-func-delete_previous): 
7565         Rename to canna-func-delete-previous.
7566
7567 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7568
7569         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7570
7571 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7572
7573         * font-lock.c (find_context): Fix C++ compile errors introduced by
7574         recent patch
7575
7576 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7577
7578         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7579         pragma, but earlier ones barf on the same pragma.
7580
7581 2001-02-06  Mike Sperber <mike@xemacs.org>
7582
7583         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7584         `configure-mule-lisp-directory'.
7585
7586 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7587
7588         Make sure dump-id.c is compiled in the same way as other .c's.
7589         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7590         * dump-id.h: Remove.
7591         * emacs.c: Move dump-id.h into dumper.h.
7592         * dumper.h: Move dump-id.h into dumper.h.
7593         * Makefile.in.in:
7594         Use standard .c.o rule for building dump-id.o.
7595         Remove preprocessor flags from link command.
7596         Add dump-id.o to ${otherobjs} if PDUMP.
7597
7598 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7599
7600         Port FSF 20.7 syntax table improvements.
7601         * syntax.c.
7602         * syntax.h.
7603
7604         Fixups for new syntax table stuff.
7605         * dired.c: Include syntax.c.
7606         (Fdirectory_files): Initialize regex_match_object and
7607         regex_emacs_buffer.
7608         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7609         and Fget_char_property.
7610
7611         Use ported FSF 20.7 syntax table improvements.
7612         * font-lock.c.
7613         * regex.c.
7614         * search.c.
7615         
7616 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7617
7618         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7619         Unixware's enum boolean from sys/types.h.
7620
7621 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7622
7623         Fix support for building with latest Purify.
7624         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7625         (PURIFY_FLAGS): Likewise.
7626
7627 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7628
7629         * fileio.c (lisp_string_set_file_times): New.
7630         * fileio.c (Fcopy_file): Use it.
7631         Fixes bug:
7632         (copy-file filename non-ascii-filename t t)
7633         ==> No such file or directory, non-ascii-filename
7634
7635 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7636
7637         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7638         USHRT_MAX seems clearer than ~0 anyways.
7639
7640 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7641
7642         dumper improvements.  Inspired by Olivier.
7643         * dumper.c (pdump_max_align): New.
7644         * dumper.c (pdump_add_entry): Use pdump_max_align.
7645         * dumper.c (pdump_get_entry_list): Likewise.
7646         * dumper.c (pdump_scan_by_alignment): Likewise.
7647         Don't iterate through unnecessary alignments.
7648         * dumper.c (pdump_file_get): No need to align result of malloc().
7649         * dumper.c (pdump_mallocadr): Remove.  
7650         The result of malloc() is guaranteed to be maximally aligned.
7651         * dumper.c: s/elmt/elt/g;
7652         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7653         * dumper.c (pdump_alert_undump_object): Likewise.
7654         * dumper.c (pdump_align_table): 
7655         Don't support alignments > 64.
7656         Store ALIGNOF's, not shift counts, in table.
7657
7658 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7659
7660         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7661         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7662         * systime.h: Use HAVE_UTIME.
7663         * sysdep.c (struct utimbuf): Remove.
7664         * sysdep.c (set_file_times): Prefer utime() to utimes().
7665         * config.h.in (HAVE_UTIME): New.
7666         * config.h.in (HAVE_UTIME_H): Remove.
7667         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7668
7669 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7670
7671         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7672
7673 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7674
7675         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7676
7677 2001-02-08  Martin Buchholz <martin@xemacs.org>
7678
7679         * XEmacs 21.2.44 "Thalia" is released.
7680
7681 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7682
7683         Fixes crashes in kill-emacs on some systems.
7684         * process-unix.c (unix_kill_child_process):
7685         It's OK for kill() to fail with ESRCH.
7686
7687 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7688
7689         Contortions to make .gdbinit tricks work on most systems.
7690         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7691         * alloc.c (dbg_valmask): Make non-const.
7692         * alloc.c (dbg_typemask): Make non-const.
7693         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7694         * alloc.c (dbg_valbits): Make non-const.
7695         * alloc.c (dbg_gctypebits): Make non-const.
7696         * .gdbinit (decode_object): Make it work with AIX cc.
7697
7698 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7699
7700         * elhash.c (make_general_lisp_hash_table):
7701         Use simpler and more efficient calloc to clear entries.
7702
7703 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7704
7705         * window.c (window_scroll): Work around an AIX C compiler bug.
7706         Fixes 'scroll-up' does nothing problem with xlC.
7707
7708 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7709
7710         * .gdbinit: Remove obsolete comment.
7711
7712 2001-01-31  Mike Alexander  <mta@arbortext.com>
7713
7714         * select.c (Fown_selection_internal): Set owned_p for device
7715         method correctly.
7716
7717 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7718
7719         Port to g++ 2.97.
7720         "not" cannot be used as a macro name as it is an operator in C++
7721         * config.h.in: Stop #defining `not'.
7722         * chartab.c (check_category_char): not ==> not_p
7723         * chartab.h: Likewise.
7724         * regex.c (re_match_2_internal): Likewise.
7725
7726 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7727
7728         * lisp-disunion.h: Fix up comments.
7729
7730 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7731
7732         * keymap.c (define_key_check_and_coerce_keysym):
7733         (syms_of_keymap):
7734         Support mouse-6 and mouse-7 bindings in the obvious way.
7735
7736 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7737
7738         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7739
7740 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7741
7742         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7743         Previous patch missed DEFVAR_INT_MAGIC.
7744         Make sure future DEFVAR_foo use correct types.
7745         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7746         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7747         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7748         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7749         * (DEFVAR_INT): Likewise.
7750         * redisplay.c (vertical_clip): Should be of type Fixnum.
7751         * redisplay.c (horizontal_clip): Likewise.
7752         * lisp.h (dump_add_opaque_int): New.
7753         (dump_add_opaque_fixnum): New.
7754
7755 2001-01-29  Andy Piper  <andy@xemacs.org>
7756
7757         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7758         since they can be eval'ed
7759
7760 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7761
7762         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7763         Oops, XEmacs redefines `class'.  Use `typename' instead.
7764
7765 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7766
7767         * dumper.c: Fix C++ compile errors.
7768
7769 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7770
7771         * tparam.c: Use correct prototypes.
7772
7773 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7774
7775         * sysproc.h: #include util.h for NetBSD's openpty.
7776
7777 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7778
7779         More 64-bit correctness.
7780         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7781         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7782         Fix up comments.
7783         This finally finishes the 64-bit SGI port.
7784         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7785         * symbols.c: Fix up comments and type casts.
7786         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7787         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7788         * symeval.h (Fixnum): New type.
7789         * symeval.h (symbol_value_type): Fix up comment.
7790
7791         * commands.h:
7792         * nt.c:
7793         * emacs.c:
7794         * data.c:
7795         * redisplay.c:
7796         * abbrev.c:
7797         * dired-msw.c:
7798         * event-Xt.c:
7799         * eldap.c:
7800         * window.c:
7801         * sound.c:
7802         * event-stream.c:
7803         * eval.c:
7804         * buffer.c:
7805         * mule-canna.c: A million DEFVAR_INTs here...
7806         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7807         * extents.c:
7808         * cmdloop.c:
7809         * lisp.h:
7810         * select-x.c:
7811         * console-x.h:
7812         * event-msw.c:
7813         * mule-wnnfns.c:
7814         * hpplay.c:
7815         * ralloc.c:
7816         * alloc.c:
7817         * keymap.c:
7818         * profile.c:
7819         s/int/Fixnum/g in DEFVAR_INT declarations.
7820
7821 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7822
7823         Port pdump to SGI alignment-sensitive environment.
7824         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7825         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7826         properly aligned.
7827         Define and use aligned reading and writing macros.
7828         Use buffered stdio instead of posix i/o for faster dumping.
7829         Eliminate kludgy 256 byte space for header.
7830         Read and write from dump file using structs for alignment safety.
7831         * dumper.c (pdump_align_stream): New.
7832         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7833         * dumper.c (PDUMP_READ_ALIGNED): New.
7834         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7835         * dumper.c (pdump_static_Lisp_Object): New struct.
7836         * dumper.c (pdump_static_pointer): New struct.
7837         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7838         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7839         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7840         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7841
7842         * dumper.c (pdump_backtrace):
7843         * dumper.c (pdump_get_indirect_count):
7844         * dumper.c (pdump_register_object):
7845         * dumper.c (pdump_register_struct):
7846         * dumper.c (pdump_reloc_one):
7847         * dumper.c (pdump_scan_by_alignment):
7848         * dumper.c (pdump_dump_from_root_struct_ptrs):
7849         * dumper.c (pdump_dump_opaques):
7850         * dumper.c (pdump_dump_rtables):
7851         * dumper.c (pdump_dump_from_root_objects):
7852         * dumper.c (pdump):
7853         * dumper.c (pdump_load_finish):
7854         Use aligned reading and writing.
7855
7856         * dumper.c (pdump_free): Make static.
7857         * dumper.c (pdump_hFile): Likewise.
7858         * dumper.c (pdump_hMap): Likewise.
7859
7860 2001-01-26  Martin Buchholz <martin@xemacs.org>
7861
7862         * XEmacs 21.2.43 "Terspichore" is released.
7863
7864 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7865
7866         Type fiddling for window_config.saved_windows_count
7867         * window.c (struct window_config): 
7868         Make saved_windows_count member unsigned.
7869         * window.c (sizeof_window_config_for_n_windows): 
7870         Make parameter unsigned.
7871         * window.c (mark_window_config):
7872         * window.c (window_config_equal):
7873         * window.c (free_window_configuration):
7874         * window.c (Fset_window_configuration):
7875         * window.c (count_windows):
7876         * window.c (Fcurrent_window_configuration):
7877         * window.c (reinit_vars_of_window):
7878         Update all callers and users.
7879
7880 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7881
7882         Alignment correctness for flexible arrays.
7883         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7884         Make alignment-correct. Add interesting comments.
7885         * alloc.c (size_vector):
7886         * alloc.c (make_vector_internal):
7887         * alloc.c (make_bit_vector_internal):
7888         * alloc.c (sweep_bit_vectors_1):
7889         * fns.c (size_bit_vector):
7890         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7891         * window.c (sizeof_window_config_for_n_windows): 
7892         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7893
7894 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7895
7896         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7897
7898 2001-01-23  Andy Piper  <andy@xemacs.org>
7899
7900         * select.c (Fown_selection_internal): pass owned_p
7901
7902         * select-msw.c (mswindows_own_selection): New Signature.
7903
7904         * console.h (struct console_methods): add owned_p to
7905         _own_selection.
7906
7907         * select-x.c (x_own_selection): pass owned_p
7908         (hack_motif_clipboard_selection): use owned_p
7909         (vars_of_select_x): new variable -
7910         x_selection_strict_motif_ownership.
7911
7912 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7913
7914         * specifier.h (specifier_data_offset): Remove pointless parens.
7915         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7916
7917 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7918
7919         Make Lisp_Object sizeof methods be alignment-correct.
7920         pdump must restore objects to the same alignment as the C compiler
7921         assumes.  It really matters on SGIs.
7922         * lstream.c (aligned_sizeof_lstream): New.
7923         (sizeof_lstream): Use aligned_sizeof_lstream.
7924         (Lstream_new): Likewise.
7925         * opaque.c (aligned_sizeof_opaque): New.
7926         (sizeof_opaque): Use aligned_sizeof_opaque.
7927         (make_opaque): Likewise.
7928         * specifier.c (aligned_sizeof_specifier): New.
7929         (sizeof_specifier): Use aligned_sizeof_specifier.
7930         (make_specifier_internal): Likewise.
7931
7932 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7933
7934         * lstream.h (struct lstream): Use max_align_t for trailing data.
7935         * specifier.h (struct Lisp_Specifier): Likewise.
7936
7937 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7938
7939         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7940         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7941         (CCL_SUSPEND): Likewise.
7942         (CCL_INVALID_CMD): Likewise.
7943         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7944         (ccl_driver): Likewise.
7945         (CCL_WRITE_CHAR): Macro hygiene.
7946         (CCL_WRITE_STRING): Macro hygiene.
7947
7948 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7949
7950         Port "portable" dumper to SunOS 4 and HP-UX.
7951         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7952         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7953         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7954
7955 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7956
7957         * lisp.h (ALIGNOF): A better definition for C++.
7958
7959 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7960
7961         Macro hygiene.
7962         Fix printf warnings: int format, long int arg.
7963         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7964         (PUSH_FAILURE_POINT): Use correct printf formats.
7965         (POP_FAILURE_POINT): Use correct printf formats.  
7966         Use do {...} while (0)
7967
7968 2001-01-20  Martin Buchholz <martin@xemacs.org>
7969
7970         * XEmacs 21.2.42 "Poseidon" is released.
7971
7972 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7973
7974         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7975
7976 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7977
7978         De-kludgify FIXED_TYPE free list frobbing.
7979         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7980         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7981         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7982         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7983         * alloc.c (LRECORD_FREE_P): New.
7984         * alloc.c (MARK_LRECORD_AS_FREE): New.
7985         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7986         * alloc.c (STRUCT_FREE_P): Deleted.
7987         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7988         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7989         * alloc.c (STRING_CHARS_FREE_P): New.
7990         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
7991         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
7992         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
7993         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
7994         * alloc.c (resize_string): Use new definitions.
7995         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
7996         * alloc.c (verify_string_chars_integrity): Use new definitions.
7997         * alloc.c (compact_string_chars): Use new definitions.
7998         * alloc.c: Update monster comments.
7999         * lrecord.h (lrecord_type): Add some new lrecord types for
8000         alloc.c's use.
8001
8002 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8003
8004         Improve alignment hackery.
8005         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
8006         (max_align_t): Moved from opaque.h - general purpose.
8007         (ALIGN_PTR): Use size_t, not long.
8008         * opaque.h (max_align_t): Move to lisp.h.
8009
8010 2001-01-18  Norbert Koch  <nk@LF.net>
8011
8012         * gui.h: Fix and add prototypes to fix build problems.
8013
8014 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8015
8016         temacs is going away, so `dump-temacs' is now a bad name.
8017         * .dbxrc (dump-temacs): Rename to `dmp'.
8018         * .gdbinit (dump-temacs): Rename to `dmp'.
8019
8020 2001-01-17  Andy Piper  <andy@xemacs.org>
8021
8022         * glyphs.c (print_image_instance): comment to make martin happy.
8023
8024         * glyphs-x.c (x_redisplay_widget): update faces after a frame
8025         change.
8026
8027         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
8028         activation.
8029         (mswindows_tab_control_redisplay): warning suppression.
8030
8031         * glyphs-widget.c (widget_update): re-write to cope with updated
8032         items.
8033         (widget_instantiate): use new gui_item functions.
8034         (tab_control_update): deleted.
8035         (progress_gauge_update): deleted.
8036         (image_instantiator_progress_guage): take out update reference.
8037         (image_instantiator_tree_view): ditto.
8038         (image_instantiator_tab_control): ditto.
8039
8040         * gui.c (widget_gui_parse_item_keywords): new function. Do things
8041         Right the new way.
8042         (gui_item_add_keyval_pair): re-write to cope with descriptors and
8043         return whether anything was changed.
8044         (update_gui_item_keywords): as it sounds.
8045
8046         * gui.h: declare widget_gui_parse_item_keywords.
8047
8048         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
8049         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
8050
8051 2001-01-17  Martin Buchholz <martin@xemacs.org>
8052
8053         * XEmacs 21.2.41 "Polyhymnia" is released.
8054
8055 2001-01-16  Didier Verna  <didier@xemacs.org>
8056
8057         * glyphs.c (image_instantiate): don't use fallbacks when
8058         instantiating a face's background pixmap by inheritance.
8059
8060 2001-01-14  Mike Sperber <mike@xemacs.org>
8061
8062         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
8063         Conditionalize accordingly.
8064
8065 2001-01-16  Martin Buchholz  <martin@xemacs.org>
8066
8067         * dumper.c (pdump_file_get): Fix a compiler warning.
8068
8069 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8070
8071         Make Purify happy when pdumping.
8072         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
8073         iniitalizing all bits of new lisp object memory.
8074         * symbols.c (Fmake_local_variable): Likewise.
8075         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
8076         * symbols.c (Fdefvaralias): Likewise.
8077         * mule-charset.c (vars_of_mule_charset): Likewise.
8078
8079 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8080         Add the `-nd' flag when running pre-dump operations under the debugger.
8081         * .dbxrc (run-temacs): Add `-nd'.
8082         * .dbxrc (update-elc): Likewise.
8083         * .dbxrc (dump-temacs): Likewise.
8084         * .gdbinit (run-temacs): Likewise.
8085         * .gdbinit (check-temacs): Likewise.
8086         * .gdbinit (update-elc): Likewise.
8087         * .gdbinit (dump-temacs): Likewise.
8088
8089 2001-01-14  Martin Buchholz  <martin@xemacs.org>
8090
8091         Allow building 64-bit executables on AIX with GNU malloc, e.g.
8092         export OBJECT_MODE=64
8093         configure --pdump --use-union-type=no
8094         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
8095         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
8096
8097         * miscplay.c (sndcnv8U_2mono):
8098         Avoid two uses of `++' in the same expression.
8099         Suppresses a GCC warning.
8100
8101 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8102
8103         Make sure future compilers don't miscompile alloc.c.
8104         * alloc.c:
8105         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
8106         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
8107
8108 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8109
8110         * dumper.c: A little post-pdump-rename comment fixup.
8111
8112 2001-01-09  Jerry James  <james@eecs.ku.edu>
8113
8114         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
8115
8116 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8117
8118         * *.[ch]: Globally rename symbols using the following `pdump-rename'
8119         script:
8120         #!/bin/sh
8121         replace_symbol () {
8122           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
8123         }
8124
8125         replace_symbol pdump_wire_lists pdump_weak_object_chains
8126         replace_symbol pdump_wire_list dump_add_weak_object_chain
8127
8128         replace_symbol pdump_wires pdump_root_objects
8129         replace_symbol pdump_wire dump_add_root_object
8130
8131         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
8132         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
8133
8134         replace_symbol dumpstructinfos pdump_root_struct_ptrs
8135         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
8136         replace_symbol dumpstructinfo pdump_root_struct_ptr
8137         replace_symbol dumpstruct dump_add_root_struct_ptr
8138
8139         replace_symbol dumpopaque dump_add_opaque
8140         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
8141         replace_symbol dumpopaqueinfos pdump_opaques
8142         replace_symbol dumpopaqueinfo pdump_opaque
8143
8144         replace_symbol nb_structdump nb_root_struct_ptrs
8145         replace_symbol nb_opaquedump nb_opaques
8146
8147         replace_symbol align_table pdump_align_table
8148         replace_symbol dump_header pdump_header
8149
8150         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
8151         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
8152
8153
8154 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8155
8156         * s/aix4.h: Keep the C for AIX compiler from overaggressively
8157         optimizing bytecount_to_charcount().
8158
8159 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8160
8161         * config.h.in:
8162         (HAVE_DLFCN_H): Removed.
8163         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
8164
8165 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8166
8167         Portable dumper maintainability improvements.
8168         * alloc.c (staticpro):
8169         * alloc.c (staticpro_nodump):
8170         * alloc.c (garbage_collect_1):
8171         * alloc.c (reinit_alloc_once_early):
8172         * alloc.c (init_alloc_once_early):
8173         * alloc.c: Move dumper functions to alloc.c.
8174         * dumper.c (pdump_backtrace):
8175         * dumper.c (pdump_dump_structs):
8176         * dumper.c (pdump_dump_opaques):
8177         * dumper.c (pdump_dump_rtables):
8178         * dumper.c (pdump_dump_wired):
8179         * dumper.c (pdump):
8180         * dumper.c (pdump_load_check):
8181         * dumper.c (pdump_load_finish):
8182         * dumper.c (pdump_file_unmap):
8183         * dumper.c (pdump_file_get):
8184         * dumper.c (pdump_resource_free):
8185         * dumper.c (pdump_resource_get):
8186         * dumper.c (pdump_file_free):
8187         * dumper.c (pdump_file_try):
8188         * dumper.c (pdump_load):
8189         Remove fixed size limits on staticpro(), staticpro_nodump(),
8190         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
8191         Remove custom code for dumping lrecord_implementations_table - use
8192         dumpopaque instead.
8193         Remove (most of the) custom code for dumping staticpros - dump it
8194         like any other dynarr.
8195
8196         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
8197         * dumper.c: Moved functions from alloc.c.
8198         * alloc.c (dumpstruct): Moved to dumper.c.
8199         * alloc.c (dumpopaque): Likewise.
8200         * alloc.c (pdump_wire): Likewise.
8201         * alloc.c (pdump_wire_list): Likewise.
8202
8203         * lisp.h (Dynarr_sizeof): New.
8204         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
8205         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
8206         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
8207
8208         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
8209         * lisp.h (dumpopaque): ditto.
8210         * lisp.h (pdump_wire): ditto.
8211         * lisp.h (pdump_wire_list): ditto.
8212
8213 2001-01-09  Martin Buchholz  <martin@xemacs.org>
8214
8215         * make-src-depend (PrintPatternDeps):
8216         Use `sort' to make output independent of perl version.
8217
8218 2001-01-08  Martin Buchholz  <martin@xemacs.org>
8219
8220         Port to Netbsd 1.5.
8221         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
8222         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
8223
8224 2001-01-03  Didier Verna  <didier@xemacs.org>
8225
8226         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
8227         that `focus_frame' is alive before thinking of calling
8228         `redisplay_redraw_cursor' on it.
8229
8230 2001-01-08  Martin Buchholz <martin@xemacs.org>
8231
8232         * XEmacs 21.2.40 is released.
8233
8234 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8235
8236         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
8237
8238 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8239
8240         * alloc.c (dbg_valmask): Make const.
8241         * alloc.c (dbg_typemask): Make const.
8242         * alloc.c (dbg_USE_UNION_TYPE): Make const.
8243         * alloc.c (dbg_valbits): Make const.
8244         * alloc.c (dbg_gctypebits): Make const.
8245
8246 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
8247
8248         * redisplay-x.c (x_bevel_area):
8249         redisplay.h (struct rune):
8250         Typo fixes in comments.
8251
8252 2001-01-05  Andy Piper  <andy@xemacs.org>
8253
8254         * glyphs-x.c (x_redisplay_widget): use size changed for offset
8255         adjustment.
8256
8257         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
8258
8259 2001-01-05  Martin Buchholz  <martin@xemacs.org>
8260
8261         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
8262
8263         * mule-ccl.c (stack_idx_of_map_multiple):
8264         Non const global data must not be initialized!
8265         Found by MIYASHITA Hisashi.
8266
8267 2001-01-02  Andy Piper  <andy@xemacs.org>
8268
8269         * frame.c (change_frame_size): make sure frame size is always
8270         marked as changed.
8271
8272         * glyphs.c (image_instance_layout): minor code reuse.
8273
8274         * window.c (Fcurrent_window_configuration): revert previous
8275         change.
8276
8277 2001-01-02  Martin Buchholz  <martin@xemacs.org>
8278
8279         * glyphs.h:
8280         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
8281
8282 2000-12-31  Andy Piper  <andy@xemacs.org>
8283
8284         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
8285         when widget gets unmapped.
8286
8287         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
8288         function. Make sure widgets losing focus don't just drop it.
8289         (handle_focus_event_1): record the widget with focus.
8290
8291 2000-12-31  Andy Piper  <andy@xemacs.org>
8292
8293         * window.c (allocate_window): use
8294         make_image_instance_cache_hash_table.
8295         (make_dummy_parent): ditto.
8296         (Fset_window_configuration): ditto.
8297
8298         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
8299
8300         * glyphs.c (process_image_string_instantiator): use
8301         INSTANTIATOR_TYPE.
8302         (get_image_instantiator_governing_domain): ditto.
8303         (normalize_image_instantiator): ditto.
8304         (instantiate_image_instantiator): ditto.
8305         (make_image_instance_1): ditto.
8306         (image_instantiate): ditto. Key on glyph *and* instantiator type.
8307         (instantiator_eq_equal): new function for use with instance hash
8308         tables.
8309         (instantiator_eq_hash): ditto.
8310         (make_image_instance_cache_hash_table): create a suitable hash
8311         table for storing image instances.
8312
8313         * elhash.h (hash_table_weakness): new internal weakness type
8314         HASH_TABLE_KEY_CAR_VALUE_WEAK.
8315         declare new functions.
8316
8317         * elhash.c (finish_marking_weak_hash_tables): introduce yet
8318         another weakness type for glyphs.
8319         (make_standard_lisp_hash_table): new function split out from
8320         make_general_lisp_hash_table.
8321         (make_lisp_hash_table): call make_standard_lisp_hash_table.
8322         (hash_table_instantiate): ditto.
8323         (Fmake_hash_table): ditto.
8324
8325 2000-12-31  Martin Buchholz <martin@xemacs.org>
8326
8327         * XEmacs 21.2.39 is released.
8328
8329 2000-12-29  Andy Piper  <andy@xemacs.org>
8330
8331         * menubar.c (menubar_visible_p_changed): signal the frame changed.
8332
8333         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
8334         the frame has changed so that we pick up geometry changes such as
8335         menubar visibility.
8336
8337 2000-12-28  Andy Piper  <andy@xemacs.org>
8338
8339         * lastfile.c (my_ebss): make a char array so we can pad the
8340         bss. Fixes cygwin unexec.
8341
8342         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
8343
8344 2000-12-26  Andy Piper  <andy@xemacs.org>
8345
8346         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
8347         comments and try and be more precise about a non-/SIGIO world.
8348         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
8349         SIGIO.
8350
8351         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
8352         we don't normalize to zero width or height.
8353
8354 2000-12-24  Andy Piper  <andy@xemacs.org>
8355
8356         * Makefile.in.in (ldflags): add -mwindows when appropriate.
8357
8358 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
8359
8360         * s/sco5.h: SCO 5 has pty support.
8361
8362 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
8363
8364         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
8365         input-method-xlib.c contains whole contents of input-method-xfs.c,
8366         so we can use input-method-xlib.c's code for USE_XFONTSET
8367         using #ifdefs.
8368         * input-method-xfs.c: removed.
8369
8370 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
8371
8372         * file-coding.h (enum coding_category_type): reorder enumerators to
8373         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
8374         (now one greater than largest real coding_category_type enumerator).
8375         * file-coding.c (coding_category_symbol, coding_category_by_priority,
8376         coding_category_system, fcd_descriptihon_1, decode_coding_category,
8377         Fcoding_category_list, Fset_coding_priority_list,
8378         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
8379         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
8380
8381 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8382
8383         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
8384         * redisplay-output.c (redisplay_output_window): Clear top of window
8385         when face is changed.
8386         * redisplay-x.c (x_redraw_exposed_window): Call
8387         redisplay_clear_top_of_window.
8388         * redisplay.h: Publish redisplay_clear_top_of_window.
8389
8390 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8391
8392         * buffer.c (Fkill_buffer): Map over all devices.
8393         * window.c (window_loop): Remove UNSHOW_BUFFER code.
8394         (list_windows): New function.
8395         (list_all_windows): Ditto.
8396         (Freplace_buffer_in_windows): Use them.
8397
8398 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8399
8400         * database.c (berkdb_subtype): Recognize new subtype `queue'.
8401         (Fopen_database): Use `db_create' instead of `db_open'.
8402         (syms_of_database): Initialize Qqueue.
8403
8404 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8405
8406         * buffer.c (common_init_complex_vars_of_buffer): Initialize
8407         buffer_local_face_property.
8408         * buffer.h (struct buffer): New member buffer_local_face_property.
8409         * window.c (Fset_window_buffer):  Mark window's face as changed
8410         when buffer has buffer local face.
8411         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8412         * objects.c (color_after_change): Set buffer_local_face_property
8413         when locale of face specifier is buffer.
8414         * objects.c (font_after_change): Ditto.
8415         * objects.c (face_boolean_after_change): Ditto.
8416         * glyphs.c (image_after_change): Ditto.
8417
8418 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8419
8420         * nt.c (mswindows_fstat): Report file permissions, volume serial
8421         number, etc. Code adapted from FSF Emacs 20.7.
8422
8423 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8424
8425         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8426         of stat when we don't have symbolic links, to make sure
8427         mswindows_stat is called on mswindows.
8428
8429 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8430
8431         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8432
8433 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8434
8435         * doprnt.c (emacs_doprnt_1): More printing fixes.
8436         Make printing of numbers compatible with libc and FSF Emacs.
8437         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8438         Use the system printf to do most of the hard work of formatting,
8439         instead of doprnt_1().
8440         Calculate memory to allocate for format string.
8441         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8442         (doprnt_1): Cleaner code and documentation.
8443
8444 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8445
8446         * Makefile.in.in: Use the loop variable to install headers.
8447
8448 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8449
8450         * window.c (Fsplit_window): Don't invalidate face cache.
8451
8452 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8453
8454         * minibuf.c (Fall_completions): Undo the previous change
8455         which removed checking elements start with space.
8456
8457 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8458
8459         * mule-canna.c: Didier suppression.
8460
8461 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8462
8463         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8464         (warning suppression).  Add English comment translations.
8465
8466 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8467
8468         * unexelfsgi.c (unexec): Better test for mmap failure.
8469
8470 2000-12-05  Martin Buchholz <martin@xemacs.org>
8471
8472         * XEmacs 21.2.38 is released.
8473
8474 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8475
8476         * redisplay.c (bar-cursor): Make a user variable.
8477
8478         * symsinit.h: Add init_postgresql_from_environment.
8479
8480 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8481
8482         * regex.c: Convert to clean C.
8483
8484 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8485
8486         * realpath.c:
8487         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8488         initialization.
8489         (sys_readlink): renamed to system_readlink to avoid conflict with
8490         the other sys_readlink.
8491
8492 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8493
8494         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8495
8496 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8497
8498         * postgresql.c (init_postgresql_from_environment): new function.
8499         (vars_of_postgresql): Move code initializing Lisp variables out and
8500         into init_postgresql_from_environment.
8501         emacs.c (main_1): Call init_postgresql_from_environment if and only
8502         if running a dumped XEmacs.
8503
8504 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8505
8506         * buffer.c: Make find-file-compare-truenames default to true on
8507         windows.
8508
8509         * realpath.c (win32_abs_start):
8510         (cygwin_readlink):
8511         (win32_readlink): New functions.
8512         (xrealpath): Return really real filenames on windows.
8513
8514         * fileio.c (Ffile_truename): Make file-truename work on windows.
8515
8516 2000-11-29  Didier Verna  <didier@xemacs.org>
8517
8518         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8519         * faces.c (update_face_cachel_data): use it.
8520         * faces.c (add_face_cachel): use it. Complete background pixmap
8521         frobbing in face cache if `update_face_cachel_data' has not done so.
8522
8523 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8524
8525         * search.c (string_match_1): Don't set last_thing_searched
8526         when search failed.
8527
8528 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8529
8530         * buffer.c: Include casetab.h
8531         (common_init_complex_vars_of_buffer): Use new case-table object.
8532         * buffer.h: Include casetab.h
8533         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8534         (DOWNCASE_TABLE_OF): Ditto.
8535         * bufslots.h: Remove char-tables and add case-table.
8536         * casetab.c: Include casetab.h
8537         (CASE_TABLE_P): Removed.
8538         (mark_case_table): New function.
8539         (allocate_case_table): New function.
8540         (Fcase_table_p): Use new case-table.
8541         (case_table_char): New function.
8542         (Fget_case_table): Ditto.
8543         (Fput_case_table): Ditto.
8544         (Fput_case_table_pair): Ditto.
8545         (Fcopy_case_table): Ditto.
8546         (Fcurrent_case_table): Return case-table.
8547         (Fstandard_case_table): Return case-table.
8548         (Fset_case_table): Fix doc-string.
8549         (set_case_table): Use case-table
8550         (syms_of_casetab): DEFSUBR new functions.
8551         (complex_vars_of_casetab): Set up standard case-table.
8552         * casetab.h: New file.
8553         * editfns.c: Include casetab.h
8554         (Fcompare_buffer_substrings): Use case-table.
8555         * inline.c: Include casetab.h
8556         * lisp.h: Remove bogus extern.
8557         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8558         * search.c: Include casetab.h
8559         (TRANSLATE_ASCII): Removed.
8560         (TRANSLATE): Unconditionally translate character.
8561         (looking_at_1): Use case-table.
8562         (string_match_1): Ditto.
8563         (fast_string_match): Ditto.
8564         (search_command): Ditto.
8565         (search_buffer): Separate boyer_moore.  Check whether
8566         boyer_moore is possible.
8567         (simple_search): New function.
8568         (boyer_moore): Separated from search_buffer. Translate char.
8569
8570 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8571
8572         * regex.c (RE_TR_ASCII): Removed.
8573         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8574         (PATFETCH): Call PATFETCH_RAW.
8575         (PATFETCH_RAW): Fetch Emchar.
8576         (PATUNFETCH): Decrement charptr.
8577         (GET_BUFFER_SPACE): Rename b to buf_end.
8578         (BUF_PUSH): Ditto.
8579         (BUF_PUSH_2): Ditto.
8580         (BUF_PUSH_3): Ditto.
8581         (EXTEND_BUFFER): Ditto.
8582         (SET_LIST_BIT): Ditto.
8583         (regex_compile): Ditto.  Translate non ASCII char.
8584         (compile_range): Ditto.
8585         (re_search_2): Ditto.
8586         (re_match_2_internal): Compare Emchar.
8587         (bcmp_translate): Ditto.
8588
8589 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8590
8591         * lisp.h (basic char/int typedefs):  comment improvement.
8592
8593 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8594
8595         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8596         unstomp inhibit_site_lisp.  Improve comments.
8597
8598 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8599
8600         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8601
8602 2000-11-28  Andy Piper  <andy@xemacs.org>
8603
8604         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8605         clipped display for windows in the gutter also.
8606         (redisplay_display_boxes_in_window_p): change semantics of return
8607         codes to be more intuitive.
8608
8609         * gutter.h: declare display_boxes_in_gutter_p.
8610
8611         * gutter.c (display_boxes_in_gutter_p): new function for
8612         redisplay.
8613
8614 2000-11-22  Andy Piper  <andy@xemacs.org>
8615
8616         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8617         autodetect domain.
8618
8619 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8620
8621         * callproc.c (Fold_call_process_internal):
8622         * gpm.c (Freceive_gpm_event):
8623         (tty_get_foreign_selection): Might be just warning supression.
8624         * fileio.c (Fwrite_region_internal):
8625         (Fset_visited_file_modtime):
8626         * keymap.c (event_matches_key_specifier_p):
8627         Initialize GCPROed variable.
8628
8629         * menubar-x.c (command_builder_find_menu_accelerator):
8630         Initialize before use.
8631
8632 2000-11-23  Andy Piper  <andy@xemacs.org>
8633
8634         * unexcw.c (unexec): make the resulting executable executable.
8635
8636 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8637
8638         * doc.c (get_doc_string):
8639         Use size_t, not int, for result of XSTRING_LENGTH.
8640
8641         * cmds.c (Fdelete_char):
8642         * cmds.c (Fpoint_at_eol):
8643         * cmds.c (Fself_insert_command):
8644         Use EMACS_INT, not int, for result of XINT.
8645         Someday, someone will want to insert more than 2**31 identical characters.
8646
8647         * cmds.c (Fdelete_char):
8648         * cmds.c (Fdelete_backward_char):
8649         * syntax.c (Fforward_word):
8650         * syntax.c (Fforward_comment):
8651         Make COUNT argument optional, for consistency with forward-char et al.
8652
8653 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8654
8655         * lisp.h:
8656         * print.c (long_to_string):
8657         Return a useful value: the pointer at end of data written.
8658
8659         * doprnt.c:
8660         Use `static const char * const' for constant strings.
8661         (union printf_arg): Delete `i', `ui' members.
8662         (get_doprnt_args):
8663         (emacs_doprnt_1):
8664         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8665         Do all printf-ing via the `l' specifier.
8666         Use EMACS_INT instead of int.
8667         Optimize.
8668
8669 2000-11-20  Didier Verna  <didier@xemacs.org>
8670
8671         * faces.c (update_face_cachel_data): don't frob the background
8672         pixmap when the window is being created. The face is needed but
8673         does not exist yet.
8674
8675 2000-11-20  Andy Piper  <andy@xemacs.org>
8676
8677         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8678         messing with a debug environment.
8679
8680 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8681
8682         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8683
8684 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8685
8686         * casetab.c (Fcase_table_p): Fix compile error and crash.
8687
8688 2000-11-18  Philip Aston  <philipa@mail.com>
8689
8690         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8691
8692 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8693
8694         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8695         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8696
8697 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8698
8699         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8700         * unexelf.c: Use HAVE_ELF_H.
8701         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8702         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8703         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8704         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8705         for testing.
8706         So this is an unexelfsgi.c from a different line of development.
8707
8708 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8709
8710         * regex.c (RE_TR_ASCII): New function.
8711         (RE_TRANSLATE): Call it.
8712
8713 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8714
8715         * buffer.h (TRT_TABLE_OF): Remove assert.
8716         (IN_TRT_TABLE_DOMAIN): Removed.
8717
8718 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8719
8720         * free-hook.c (log_gcpro):
8721         (show_gcprohist): Add support for GCPRO5.
8722
8723 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8724
8725         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8726
8727 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8728
8729         * symeval.h: Declare flush_all_buffer_local_cache.
8730
8731         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8732         (flush_buffer_local_cache): Added.
8733         (flush_all_buffer_local_cache): Added.
8734
8735         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8736
8737         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8738         (pdump_dump_data): Ditto.
8739         (pdump_reloc_one): Ditto.
8740         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8741         before dumping.
8742
8743
8744 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8745
8746         * buffer.c: Remove if 0'ed entry.
8747         * buffer.h: Rewrite TRT to use char-table.
8748         * bufslots.h: Remove mirror tables.
8749         * casetab.c: Remove mirror tables.
8750         (CASE_TABLE_P): New macro.
8751         (Fcase_table_p): Element of a case table is string or char-table.
8752         (make_mirror_trt_table): Removed.
8753         (set_case_table): Setup char-table from strings for backward
8754         compatibility.
8755         * dired.c (Fdirectory_files):
8756         * dired-msw.c: (mswindows_get_files):
8757         * lisp.h: Change prototype of re_pattern_buffer.
8758         * regex.c: (RE_TRANSLATE): New macro.
8759         (TRANSLATE_P): Ditto.
8760         Change translate to type RE_TRANSLATE_TYPE.
8761         * regex.h: Define RE_TRANSLATE_TYPE
8762         * search.c (TRANSLATE): New macro.
8763         (TRANSLATE_ASCII): New macro.
8764         Translate table is changed to Lisp_Object.
8765         (signal_failure): Inhibit return.
8766
8767 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8768
8769         * device-msw.c:
8770         * eldap.c:
8771         * event-Xt.c:
8772         * event-stream.c:
8773         * print.c:
8774         Do UNGCPRO before return.
8775
8776 2000-11-14  Martin Buchholz <martin@xemacs.org>
8777
8778         * XEmacs 21.2.37 is released.
8779
8780 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8781
8782         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8783         Add comments about discarded return value.
8784
8785 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8786
8787         * callint.c:
8788         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8789
8790 2000-10-27  Andy Piper  <andy@xemacs.org>
8791
8792         * gutter.c (Fset_default_gutter_position): default left and right
8793         gutters to visible.
8794         (calculate_gutter_size): calculate resonable heuristic for left
8795         and right gutter sizes.
8796         (specifier_vars_of_gutter): change left and right gutter sizes to
8797         autodetect.
8798         (calculate_gutter_size_from_display_lines): new function.
8799         (output_gutter): check for resizing on left and right gutters.
8800         (clear_gutter): don't special case top and left gutters.
8801         (specifier_vars_of_gutter): use new signature for
8802         set_specifier_caching.
8803
8804         * glyphs-x.c (x_redisplay_widget): spelling fix.
8805         * glyphs.c (specifier_vars_of_glyphs):
8806         * menubar.c (specifier_vars_of_menubar):
8807         * redisplay.c (specifier_vars_of_redisplay):
8808         * toolbar.c (specifier_vars_of_toolbar):
8809         * window.c (specifier_vars_of_window):
8810         * scrollbar.c (specifier_vars_of_scrollbar):
8811         (complex_vars_of_scrollbar): use new signature for
8812         set_specifier_caching.
8813
8814         * specifier.c (set_specifier_caching): include recompute flag.
8815         (recompute_one_cached_specifier_in_window): always recompute if
8816         flag set.
8817         (recompute_one_cached_specifier_in_frame): ditto.
8818
8819         * specifier.h (struct specifier_caching): add recompute flag.
8820
8821 2000-10-24  Andy Piper  <andy@xemacs.org>
8822
8823         * unexcw.c (copy_executable_and_dump_data_section): add new
8824         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8825         5.0 happy.
8826
8827 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8828
8829         * console-x.h (x_device): New member modifier_release_time.
8830         * event-Xt.c (x_handle_sticky_modifiers):
8831         Bound interval modifier keys are sticky.
8832         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8833         * events.h: extern it.
8834
8835 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8836
8837         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8838
8839 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8840
8841         * event-stream.c (execute_command_event): Preserve current_events
8842         and the like when event is misc-user-event.
8843         Inhibit quit during the call to maybe_echo_keys.
8844
8845 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8846
8847         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8848         symlink when buffer is killed.
8849         (inhibit_clash_detection): New variable.
8850
8851 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8852
8853         * console.c (Fset_input_method): Trigger redisplay on tty.
8854
8855 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8856
8857         * process.c (Fprocess_status): Revert to previous behavior:
8858         (process-status "nosuchprocess") ==> nil
8859
8860 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8861
8862         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8863         Work around another GCC 2.95.2 optimizer bug.
8864
8865 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8866
8867         * process.c (Fget_process): Use LIST_LOOP_2.
8868         (kill_buffer_processes): Use LIST_LOOP_2.
8869
8870         * minibuf.c (Fall_completions):
8871         Delete old non-functional code for FSF fourth argument.
8872
8873         * frame.c (frame_matches_frame_spec):
8874         Renamed from `frame_matches_frametype'.  Update all callers.
8875         (device_matches_device_spec):
8876         Renamed from 'device_matches_console_spec'.  Update all callers.
8877
8878         * doc.c (Fsubstitute_command_keys):
8879         Remove buffer overflow crash.  Small code cleanups.
8880
8881         * casetab.c (check_case_table): Simpler code.
8882
8883         * window.c (Freplace_buffer_in_windows):
8884         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8885         (and similar implementation) as Fdelete_windows_on.
8886         Update all callers.
8887
8888         * alloc.c (Fmake_list):
8889         * alloc.c (make_vector):
8890         * alloc.c (Fmake_vector):
8891         * alloc.c (make_bit_vector):
8892         * alloc.c (Fmake_bit_vector):
8893         * alloc.c (Fbit_vector):
8894         * alloc.c (Fmake_string):
8895         * alloc.c (Fpurecopy):
8896         * alloc.c (Fmemory_limit):
8897         * buffer.c:
8898         * buffer.c (Fget_buffer):
8899         * buffer.c (Fkill_buffer):
8900         * buffer.c (complex_vars_of_buffer):
8901         * bytecode.c (Fcompiled_function_stack_depth):
8902         * callint.c (Fprefix_numeric_value):
8903         * event-stream.c:
8904         * event-stream.c (Fread_key_sequence):
8905         * casetab.c:
8906         * casetab.c (Fcase_table_p):
8907         * casetab.c (check_case_table):
8908         * casetab.c (Fset_case_table):
8909         * casetab.c (Fset_standard_case_table):
8910         * chartab.c:
8911         * chartab.c (Fchar_table_type):
8912         * chartab.c (Freset_char_table):
8913         * chartab.c (Fget_char_table):
8914         * chartab.c (Fget_range_char_table):
8915         * chartab.c (Fput_char_table):
8916         * chartab.c (Fmap_char_table):
8917         * chartab.c (Fcategory_table_p):
8918         * chartab.c (Fcheck_category_at):
8919         * chartab.c (Fchar_in_category_p):
8920         * chartab.c (Fcategory_table):
8921         * chartab.c (Fcopy_category_table):
8922         * chartab.c (Fset_category_table):
8923         * chartab.c (Fcategory_designator_p):
8924         * chartab.c (Fcategory_table_value_p):
8925         * cmds.c (Fdelete_char):
8926         * cmds.c (Fdelete_backward_char):
8927         * cmds.c (Fself_insert_command):
8928         * cmds.c (Fself_insert_internal):
8929         * console.c (Fvalid_console_type_p):
8930         * console.c (Fcdfw_console):
8931         * console.c (Fconsole_type):
8932         * console.c (Fconsole_name):
8933         * console.c (Fconsole_device_list):
8934         * console.c (Fconsole_on_window_system_p):
8935         * data.c:
8936         * data.c (Feq):
8937         * data.c (Fold_eq):
8938         * data.c (Fsubr_interactive):
8939         * data.c (Fchar_to_int):
8940         * data.c (Fint_to_char):
8941         * data.c (Fsetcar):
8942         * data.c (Fsetcdr):
8943         * data.c (Fnumber_to_string):
8944         * data.c (Fstring_to_number):
8945         * data.c (Frem):
8946         * database.c (mark_database):
8947         * database.c (finalize_database):
8948         * database.c (Fdatabase_live_p):
8949         * database.c (Fdatabasep):
8950         * device-x.c (Fx_get_resource):
8951         * device.c (Fdfw_device):
8952         * dired.c:
8953         * dired.c (Ffile_name_completion):
8954         * dired.c (Ffile_name_all_completions):
8955         * dired.c (Fuser_name_completion):
8956         * dired.c (Fuser_name_completion_1):
8957         * dired.c (Fuser_name_all_completions):
8958         * doc.c (Fdocumentation):
8959         * doc.c (Fdocumentation_property):
8960         * doc.c (Fsubstitute_command_keys):
8961         * editfns.c:
8962         * editfns.c (Fchar_to_string):
8963         * editfns.c (Fstring_to_char):
8964         * editfns.c (Ftemp_directory):
8965         * editfns.c (Finsert_char):
8966         * editfns.c (Fbuffer_substring_no_properties):
8967         * editfns.c (Fnarrow_to_region):
8968         * editfns.c (Fchar_equal):
8969         * editfns.c (Fchar_Equal):
8970         * editfns.c (Ftranspose_regions):
8971         * emacs.c (Fdump_emacs):
8972         * eval.c (Fthrow):
8973         * eval.c (Fcommand_execute):
8974         * eval.c (Fautoload):
8975         * eval.c (Fbacktrace):
8976         * eval.c (Fbacktrace_frame):
8977         * events.c:
8978         * events.c (Fcopy_event):
8979         * events.c (Fcharacter_to_event):
8980         * events.c (Fevent_button):
8981         * events.c (Fevent_process):
8982         * extents.c:
8983         * extents.c (Fnext_extent_change):
8984         * extents.c (Fextent_property):
8985         * faces.c (Ffacep):
8986         * faces.c (Fmake_face):
8987         * file-coding.c:
8988         * file-coding.c (Fencode_shift_jis_char):
8989         * file-coding.c (Fencode_big5_char):
8990         * fileio.c (Ffile_name_directory):
8991         * fileio.c (Ffile_name_nondirectory):
8992         * fileio.c (Ffile_name_as_directory):
8993         * fileio.c (Fdirectory_file_name):
8994         * fileio.c (Ffile_truename):
8995         * fileio.c (Fsubstitute_in_file_name):
8996         * fileio.c (Ffile_modes):
8997         * fileio.c (Fset_file_modes):
8998         * fileio.c (Fset_default_file_modes):
8999         * fileio.c (Fverify_visited_file_modtime):
9000         * floatfns.c (Facos):
9001         * floatfns.c (Fasin):
9002         * floatfns.c (Fatan):
9003         * floatfns.c (Fcos):
9004         * floatfns.c (Fsin):
9005         * floatfns.c (Ftan):
9006         * floatfns.c (Fbessel_j0):
9007         * floatfns.c (Fbessel_j1):
9008         * floatfns.c (Fbessel_jn):
9009         * floatfns.c (Fbessel_y0):
9010         * floatfns.c (Fbessel_y1):
9011         * floatfns.c (Fbessel_yn):
9012         * floatfns.c (Ferf):
9013         * floatfns.c (Ferfc):
9014         * floatfns.c (Flog_gamma):
9015         * floatfns.c (Fexp):
9016         * floatfns.c (Fexpt):
9017         * floatfns.c (Flog):
9018         * floatfns.c (Flog10):
9019         * floatfns.c (Fsqrt):
9020         * floatfns.c (Fcube_root):
9021         * floatfns.c (Facosh):
9022         * floatfns.c (Fasinh):
9023         * floatfns.c (Fatanh):
9024         * floatfns.c (Fcosh):
9025         * floatfns.c (Fsinh):
9026         * floatfns.c (Ftanh):
9027         * floatfns.c (Fabs):
9028         * floatfns.c (Ffloat):
9029         * floatfns.c (Flogb):
9030         * floatfns.c (Fceiling):
9031         * floatfns.c (Ffloor):
9032         * floatfns.c (Fround):
9033         * floatfns.c (Ftruncate):
9034         * floatfns.c (Ffceiling):
9035         * floatfns.c (Fffloor):
9036         * floatfns.c (Ffround):
9037         * floatfns.c (Fftruncate):
9038         * fns.c (Fstring_equal):
9039         * fns.c (Fstring_lessp):
9040         * fns.c (concat2):
9041         * fns.c (concat3):
9042         * fns.c (vconcat2):
9043         * fns.c (vconcat3):
9044         * fns.c (Fsubstring):
9045         * fns.c (Fassoc):
9046         * fns.c (Fold_assoc):
9047         * fns.c (assoc_no_quit):
9048         * fns.c (Fassq):
9049         * fns.c (Fold_assq):
9050         * fns.c (assq_no_quit):
9051         * fns.c (Frassoc):
9052         * fns.c (Fold_rassoc):
9053         * fns.c (Frassq):
9054         * fns.c (Fold_rassq):
9055         * fns.c (rassq_no_quit):
9056         * fns.c (Fremassoc):
9057         * fns.c (remassoc_no_quit):
9058         * fns.c (Fremassq):
9059         * fns.c (remassq_no_quit):
9060         * fns.c (Fremrassoc):
9061         * fns.c (Fremrassq):
9062         * fns.c (remrassq_no_quit):
9063         * fns.c (Fsort):
9064         * fns.c (Fplist_get):
9065         * fns.c (Fplist_put):
9066         * fns.c (Fplist_remprop):
9067         * fns.c (Fplist_member):
9068         * fns.c (Flax_plist_get):
9069         * fns.c (Flax_plist_put):
9070         * fns.c (Flax_plist_remprop):
9071         * fns.c (Flax_plist_member):
9072         * fns.c (Fequal):
9073         * fns.c (Fold_equal):
9074         * fns.c (Frequire):
9075         * fns.c (Fbase64_encode_region):
9076         * fns.c (Fbase64_encode_string):
9077         * fns.c (Fbase64_decode_region):
9078         * frame.c:
9079         * frame.c (frame_matches_frame_spec):
9080         * frame.c (device_matches_device_spec):
9081         * frame.c (next_frame):
9082         * frame.c (previous_frame):
9083         * frame.c (Fnext_frame):
9084         * frame.c (Fprevious_frame):
9085         * frame.c (Fframe_property):
9086         * frame.c (Fset_frame_height):
9087         * frame.c (Fset_frame_size):
9088         * frame.h:
9089         * glyphs.c:
9090         * glyphs.c (if):
9091         * glyphs.c (decode_error_behavior_flag):
9092         * glyphs.c (Fmake_image_instance):
9093         * indent.c (Findent_to):
9094         * intl.c (Fignore_defer_gettext):
9095         * keymap.c (Fkeymapp):
9096         * keymap.c (Flookup_key):
9097         * lread.c:
9098         * lread.c (Fload_internal):
9099         * lread.c (Feval_buffer):
9100         * lread.c (Feval_region):
9101         * macros.c (Fexecute_kbd_macro):
9102         * marker.c (set_marker_internal):
9103         * marker.c (Fset_marker):
9104         * marker.c (set_marker_restricted):
9105         * marker.c (Fcopy_marker):
9106         * marker.c (noseeum_copy_marker):
9107         * menubar.c:
9108         * menubar.c (Fpopup_menu):
9109         * minibuf.c:
9110         * mule-charset.c (Fcharset_name):
9111         * mule-charset.c (Fchar_charset):
9112         * mule-charset.c (Fchar_octet):
9113         * mule-charset.c (Fsplit_char):
9114         * mule-wnnfns.c (Fwnn_open):
9115         * mule-wnnfns.c (Fwnn_dict_comment):
9116         * mule-wnnfns.c (Fwnn_quit_henkan):
9117         * mule-wnnfns.c (Fwnn_word_toroku):
9118         * mule-wnnfns.c (Fwnn_word_sakujo):
9119         * mule-wnnfns.c (Fwnn_word_use):
9120         * mule-wnnfns.c (Fwnn_hindo_set):
9121         * objects.c:
9122         * objects.c (Fmake_color_instance):
9123         * objects.c (Fmake_font_instance):
9124         * print.c (Fwrite_char):
9125         * process.c:
9126         * process.c (mark_process):
9127         * process.c (print_process):
9128         * process.c (get_process_from_usid):
9129         * process.c (Fprocessp):
9130         * process.c (Fprocess_live_p):
9131         * process.c (Fget_process):
9132         * process.c (Fget_buffer_process):
9133         * process.c (get_process):
9134         * process.c (Fprocess_id):
9135         * process.c (Fprocess_name):
9136         * process.c (Fprocess_command):
9137         * process.c (init_process_io_handles):
9138         * process.c (start_process_unwind):
9139         * process.c (Fstart_process_internal):
9140         * process.c (Fopen_multicast_group_internal):
9141         * process.c (Fset_process_window_size):
9142         * process.c (read_process_output):
9143         * process.c (send_process):
9144         * process.c (Fprocess_tty_name):
9145         * process.c (Fset_process_buffer):
9146         * process.c (Fprocess_buffer):
9147         * process.c (Fprocess_mark):
9148         * process.c (set_process_filter):
9149         * process.c (Fset_process_filter):
9150         * process.c (Fprocess_filter):
9151         * process.c (Fprocess_send_region):
9152         * process.c (Fprocess_send_string):
9153         * process.c (exec_sentinel):
9154         * process.c (Fset_process_sentinel):
9155         * process.c (Fprocess_sentinel):
9156         * process.c (status_notify):
9157         * process.c (Fprocess_status):
9158         * process.c (Fprocess_exit_status):
9159         * process.c (process_send_signal):
9160         * process.c (Fprocess_send_eof):
9161         * process.c (deactivate_process):
9162         * process.c (remove_process):
9163         * process.c (Fdelete_process):
9164         * process.c (kill_buffer_processes):
9165         * process.c (Fprocess_kill_without_query):
9166         * process.c (Fprocess_kill_without_query_p):
9167         * rangetab.c:
9168         * rangetab.c (Fget_range_table):
9169         * rangetab.c (Fput_range_table):
9170         * rangetab.c (Fremove_range_table):
9171         * rangetab.c (Fclear_range_table):
9172         * search.c:
9173         * search.c (Fskip_chars_forward):
9174         * search.c (Fskip_chars_backward):
9175         * search.c (Fskip_syntax_forward):
9176         * search.c (Fskip_syntax_backward):
9177         * search.c (search_command):
9178         * search.c (Freplace_match):
9179         * search.c (Fregexp_quote):
9180         * select.c (Fown_selection_internal):
9181         * select.c (Fselection_owner_p):
9182         * select.c (Fselection_exists_p):
9183         * select.c (Fget_selection_internal):
9184         * specifier.c:
9185         * symbols.c:
9186         * symbols.c (Fintern):
9187         * symbols.c (Fintern_soft):
9188         * symbols.c (Funintern):
9189         * symbols.c (Fapropos_internal):
9190         * symbols.c (Fset_default):
9191         * syntax.c:
9192         * syntax.c (Fsyntax_table_p):
9193         * syntax.c (Fcopy_syntax_table):
9194         * syntax.c (Fset_syntax_table):
9195         * syntax.c (Fchar_syntax):
9196         * syntax.c (syntax_match):
9197         * syntax.c (Fmatching_paren):
9198         * syntax.c (Fforward_word):
9199         * syntax.c (scan_lists):
9200         * syntax.c (Fscan_lists):
9201         * syntax.c (Fscan_sexps):
9202         * syntax.c (Fparse_partial_sexp):
9203         * toolbar.c (Fcheck_toolbar_button_syntax):
9204         * tooltalk.doc:
9205         * window.c:
9206         * window.c (Fwindowp):
9207         * window.c (Fwindow_live_p):
9208         * window.c (Fwindow_point):
9209         * window.c (Fdelete_window):
9210         * window.c (Fnext_window):
9211         * window.c (Fprevious_window):
9212         * window.c (Fother_window):
9213         * window.c (window_loop):
9214         * window.c (Fget_lru_window):
9215         * window.c (Fsplit_window):
9216         * window.c (Fenlarge_window):
9217         * window.c (Fenlarge_window_pixels):
9218         * window.c (Fshrink_window):
9219         * window.c (Fshrink_window_pixels):
9220         * window.c (change_window_height):
9221         * window.c (Fwindow_configuration_p):
9222         * window.c (Fcurrent_window_configuration):
9223         * window.h:
9224         * casefiddle.c (casify_object):
9225         * casefiddle.c (Fupcase):
9226         * casefiddle.c (Fdowncase):
9227         * casefiddle.c (Fcapitalize):
9228         * casefiddle.c (Fupcase_initials):
9229         * casefiddle.c (casify_region_internal):
9230         * casefiddle.c (casify_region):
9231         * casefiddle.c (Fupcase_region):
9232         * casefiddle.c (Fdowncase_region):
9233         * casefiddle.c (Fcapitalize_region):
9234         * casefiddle.c (Fupcase_initials_region):
9235         * casefiddle.c (Fupcase_word):
9236         * casefiddle.c (Fdowncase_word):
9237         * casefiddle.c (Fcapitalize_word):
9238         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
9239         Replace 0 with '\0' when working with bytes.
9240         Replace initial "(" with "\(" in docstrings.
9241
9242 2000-11-01  Martin Buchholz  <martin@xemacs.org>
9243
9244         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
9245
9246         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
9247
9248 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9249
9250         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
9251
9252 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9253
9254         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
9255         correctly.
9256
9257 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9258
9259         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
9260         (inhibit_auto_save_session): New variable.
9261         (vars_of_fileio): Declare and initialize them.
9262         * fileio.c (Fdo_auto_save): Don't create session file if
9263         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
9264
9265 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9266
9267         * sgiplay.c (play_internal): C++ compilability.
9268         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
9269         * callproc.c (Fold_call_process_internal):
9270         Remove unused vars `env', `first'.
9271         * scrollbar.c (update_scrollbar_instance):
9272         #### unused var `current_window'.
9273         * redisplay-tty.c: Put currently unused vars insert_mode_on,
9274         etc. within #ifdef NOT_YET.
9275         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
9276         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
9277         * specifier.c (specifier_instance):
9278         #### unused var `tag'.
9279         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
9280
9281 2000-10-27  Martin Buchholz  <martin@xemacs.org>
9282
9283         * fns.c (Fbutlast):
9284         * fns.c (list_sort):
9285         * fns.c (Ffillarray):
9286         * fns.c (bytecode_nconc2):
9287         * fns.c (Fnconc):
9288         * fns.c (mapcar1):
9289         * fns.c (Fmapconcat):
9290         Be pedantically 64-bit correct.  For the time when someone will
9291         want to have a list with length > 2**32.
9292
9293         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9294         Work around MIPSpro compiler bug.
9295
9296         * process-unix.c (unix_kill_child_process): Add snarky comment.
9297         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
9298
9299         * config.h.in: Oops, _getpt ==> _getpty
9300
9301 2000-10-26  Martin Buchholz  <martin@xemacs.org>
9302
9303         * config.h.in:
9304         * regex.c:
9305         Use void*, not char*, as return type of alloca().
9306
9307         * alloc.c (free_marker): Side effect inside assert expression!
9308
9309 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
9310
9311         * mule-charset.c (Fset_charset_ccl_program): To check
9312         if the given ccl program is valid, use setup_ccl_program()
9313         instead of CHECK_VECTOR().
9314         (Fmake_charset): Likewise.
9315
9316 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
9317
9318         * faces.c (get_extent_fragment_face_cache_index):
9319         Fix cachel.merged_faces memory leak.
9320
9321 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
9322
9323         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
9324         Reset MSB of octets obtained by DECODE_SJIS
9325         because of the incompatibility with Emacs.
9326         (ccl_driver)<CCL_ENCODE_SJIS>:
9327         Set MSB of octets before passing them to
9328         ENCODE_SJIS because of the incompatibility
9329         with Emacs.
9330
9331 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
9332
9333         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
9334         (DECLARE_LRECORD): Undo the last change.
9335         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
9336
9337 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
9338
9339         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
9340         the implementation to lrecord_implementations_table.
9341
9342 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
9343
9344         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
9345         initial value of `lrecord_type_##c_name' and
9346         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
9347         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
9348         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
9349         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
9350         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
9351
9352 2000-10-17  Martin Buchholz  <martin@xemacs.org>
9353
9354         * miscplay.c (sndcnv8S_2mono):
9355         (sndcnv2monounsigned):
9356         (sndcnvULaw_2linear):
9357         (sndcnv16swap):
9358         Remove implementation-defined behavior.
9359
9360 2000-10-12  Martin Buchholz  <martin@xemacs.org>
9361
9362         * input-method-xlib.c: Warning suppression.
9363
9364 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
9365
9366         * mule-ccl.c: Sync up with Emacs 21.0.90.
9367         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
9368         Do nothing.
9369         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
9370         Likewise.
9371         (ccl_driver[WriteMultibyteChar2]): Bug fix.
9372         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
9373         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
9374         leading char belongs to official 2-dimensional charset.
9375         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
9376         write the given character as is.  Otherwise,
9377         if it is a multibyte char, convert it by
9378         non_ascii_set_charptr_emchar, then write it.
9379         (CCL_WRITE_STRING): Likewise.
9380         (ccl_get_compiled_code): New function.
9381         (setup_ccl_program): When ccl_prog is invalid,
9382         return -1.
9383         (Fregister_code_conversion_map): New function.
9384         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
9385
9386         * mule-ccl.h: Sync up with Emacs 21.0.90.
9387         (Fregister_ccl_program): export it.
9388
9389         * redisplay-msw.c (separate_textual_runs):
9390         If ccl program is not valid, don't do ccl conversion.
9391
9392         * redisplay-x.c (separate_textual_runs): Ditto.
9393
9394         * file-coding.c (Fmake_coding_system):
9395         When type is ccl and value is vector, register it
9396         with a proper symbol.  And checks whether the
9397         given ccl program is valid.
9398         (mule_decode): When calling ccl_driver, if src indicates
9399         NULL pointer, set an empty string instead.
9400         (mule_encode): Likewise.
9401
9402 2000-10-11  Martin Buchholz  <martin@xemacs.org>
9403
9404         The following large batch of changes gets us back to a state of
9405         C++ compilability.  Extbyte is now a char, which means that
9406         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9407
9408         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9409
9410         * sound.c (Fplay_sound): Type correctness.
9411
9412         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9413         (x_get_window_property): Type correctness.
9414         (receive_incremental_selection): unsigned char ==> Extbyte
9415         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9416         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9417         (Fx_store_cutbuffer_internal): Type correctness.
9418
9419         * process-unix.c (try_to_initialize_subtty): Type correctness.
9420
9421         * objects-x.c (x_print_color_instance): Type correctness.
9422         (x_print_font_instance): Type correctness.
9423         (x_list_fonts): SExtbyte ==> Extbyte.
9424         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9425         (x_find_charset_font): SExtbyte ==> Extbyte.
9426         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9427         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9428         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9429         Use bufbyte_strcmp.
9430
9431         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9432         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9433         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9434         (BYTE_C0_P): Use bit ops for char-signedness safety.
9435         (BYTE_C1_P): Use bit ops for char-signedness safety.
9436         (CHARSET_BY_LEADING_BYTE):
9437         (CHARSET_BY_ATTRIBUTES):
9438         Always use inline function.
9439         Use type_checking_assert.
9440         Hide chlook.
9441
9442         * mule-charset.c (non_ascii_charptr_copy_char):
9443         Modify to work with both ASCII and non-ASCII characters.
9444         Improve docs and variable names.
9445         Replace over-clever fall-through switch with a simple loop.
9446         (Lstream_get_emchar_1):
9447         Replace over-clever fall-through switch with a simple loop.
9448
9449         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9450         Warning suppression.
9451
9452         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9453         the return value of Lstream_getc, which could be EOF as well.
9454
9455         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9456
9457         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9458         APIs can be used on Extbytes without casts.  Risky!
9459         (SExtbyte): Remove.
9460         (UExtbyte): Remove.
9461
9462         * input-method-xlib.c (XIM_init_device):
9463         Use Xlib.h instead of IntrinsicP.h.
9464         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9465         which will break in X11R7.
9466         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9467         to call XRegisterIMInstantiateCallback with correct types.
9468
9469         * gui-x.c (button_item_to_widget_value): Type correctness.
9470
9471         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9472
9473         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9474         (xbm_instantiate_1): Type correctness.
9475         (BUILD_GLYPH_INST):  Type correctness.
9476
9477         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9478
9479         * file-coding.c:
9480         (decode_coding_sjis):
9481         (decode_coding_big5):
9482         (decode_coding_ucs4):
9483         (decode_coding_utf8):
9484         (decode_coding_iso2022):
9485         (decode_coding_no_conversion):
9486         Make all decoding functions take an Extbyte * arg.
9487         (encode_coding_sjis):
9488         (encode_coding_big5):
9489         (encode_coding_ucs4):
9490         (encode_coding_utf8):
9491         (encode_coding_iso2022):
9492         (encode_coding_no_conversion):
9493         Make all encoding functions take a Bufbyte * arg.
9494         Use size_t instead of unsigned int for memory sizes.
9495         Only cast to unsigned char whenever dereferencing Extbyte *.
9496
9497         * doc.c (unparesseuxify_doc_string): Type correctness.
9498
9499         * console-x.c (split_up_display_spec):
9500         Rewrite without using details of internal string representation.
9501         (x_semi_canonicalize_device_connection): Type correctness.
9502
9503         * config.h.in:
9504         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9505         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9506         (HAVE_XFREE386): Removed.
9507
9508         * buffer.h (DEC_CHARPTR): `const' correctness.
9509         (bufbyte_strcmp): New.
9510         (bufbyte_memcmp): New.
9511
9512         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9513
9514         * buffer.h (XCHAR_OR_CHAR_INT):
9515         Always use inline function.
9516         Remove redundant type checking assert() - XINT will abort quite nicely.
9517
9518 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9519
9520         * search.c (Freplace_match): Set newtext to an empty string.
9521
9522 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9523
9524         * s/decosf1-3.h: Remove #include of stropts.h
9525         * s/ptx.h: Remove #include of stropts.h
9526         * s/usg5-4.h: Remove #include of stropts.h
9527         * sysproc.h:
9528         * config.h.in:
9529         Use stropts.h, not sys/stropts.h.
9530         Use strtio.h, not sys/strtio.h.
9531
9532 2000-10-04  Martin Buchholz <martin@xemacs.org>
9533
9534         * XEmacs 21.2.36 is released.
9535
9536 2000-09-21  Andy Piper  <andy@xemacs.org>
9537
9538         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9539         changes still involve copying the widget tree.
9540         (update_widget_face): make sure a change is register in the widget
9541         tree. Call update_tab_widget_face appropriately.
9542         (update_tab_widget_face): ditto.
9543         (x_tab_control_redisplay): make sure non-structural changes still
9544         involve copying the widget tree.
9545
9546 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9547
9548         * lread.c (locate_file): Check the path element is non-nil.
9549
9550 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9551
9552         * lisp.h: Warning suppression for SCO compilers.
9553
9554         * redisplay-tty.c (reset_tty_modes): Fix crash.
9555         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9556
9557 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9558
9559         Big signal/process handling overhaul.  Bugs fixed:
9560         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9561         M-x comint-kill-subjob should work for both values nil and t of
9562         process-connection-type. It was broken on most platforms.
9563         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9564         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9565         * process-unix.c: Signal/Process handling overhaul.
9566         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9567         (allocate_pty): Use all available modern methods of allocating
9568         ptys, falling back to old style BSD allocation as a last resort.
9569         Use allegedly more secure Unix98 pty allocation by default.
9570         (allocate_pty_the_old_fashioned_way): New. the last resort.
9571         (unix_create_process): Push ptem, ldterm, ttcompat where
9572         available.  Autoconfiscate.
9573         (try_to_initialize_subtty): New.
9574         (unix_kill_child_process): Proper signal handling for ptys on most
9575         platforms, using special knowledge of AIX, BSD, etc...
9576         (unix_create_process): Always disconnect_controlling_terminal() for
9577         subprocesses, whether using ptys or not.
9578         * process.h: Remove old getpt-dependent PTY code.
9579         * process.c (Fprocess_send_signal): New, obvious generic function.
9580         (decode_signal): New.
9581         (Finterrupt_process):
9582         (Fkill_process):
9583         (Fquit_process):
9584         (Fstop_process):
9585         (Fcontinue_process):
9586         (Fsignal_process): Use decode_signal.
9587         (process_send_signal):
9588         Many docstring corrections.
9589         Allow any signal to be sent to a process object.
9590         * config.h.in: Add symbols for big signal/process overhaul.
9591         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9592         * sysproc.h: Include process-related headers, where available:
9593         sys/stropts.h sys/strtio.h pty.h libutil.h
9594         * s/irix4-0.h:
9595         * s/irix5-0.h:
9596         * s/cygwin32.h:
9597         * s/gnu.h:
9598         * s/linux.h:
9599         * s/hpux.h:
9600         * s/aix3-1.h:
9601         Remove old S&M pty stuff.
9602         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9603         * systty.h: Simplify cpp hackery, improve comments.
9604         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9605
9606         * editfns.c (Fformat_time_string):
9607         Be a little more paranoid with the return value of ctime.
9608
9609         * fileio.c (check_executable):
9610         (check_writable):
9611         Use symbolic constants X_OK, W_OK.
9612
9613         * console-x.c (split_up_display_spec): Fix a warning.
9614
9615 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9616
9617         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9618         * ntproc.c (sys_spawnve): make_string ==> build_string
9619         Small clarity improvements.
9620
9621 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9622
9623         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9624
9625         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9626
9627         * config.h.in (HAVE_STRCASECMP): Remove.
9628
9629 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9630
9631         * redisplay-output.c (redisplay_output_pixmap):
9632         Cleaner and possibly more 64-bit correct code.
9633
9634 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9635
9636         * dumper.c (pdump_load_finish): move restoration of
9637         `noninteractive1' to emacs.c (main_1).
9638         * emacs.c (main_1): protect LISP-visible command-line flags
9639         from pdump_load().
9640
9641 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9642
9643         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9644         DUMP_TARGET instead of literal program names.
9645
9646 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9647
9648         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9649
9650 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9651
9652         * *: Spelling mega-patch
9653
9654 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9655
9656         * fns.c (bad_bad_turtle):
9657         Delete "Eek!" comment, since we fixed the bug to which it refers.
9658
9659 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9660
9661         * alloca.c: Replace REGISTER with register.
9662
9663 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9664
9665         * file-coding.c (ucs_to_char): Use countof.
9666
9667 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9668
9669         * file-coding.c: (ucs_to_char):
9670         (complex_vars_of_file_coding):
9671         Use countof instead of sizeof.
9672         Use CHECK_NATNUM instead of CHECK_INT.
9673
9674         * sysdep.c (strcasecmp): Remove.
9675         * device-x.c (ascii_strcasecmp): New.
9676         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9677         Avoid using non-standard non-portable strcasecmp.
9678
9679 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9680
9681         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9682         * font-lock.c: remove reference to emacsfns.h.
9683         * search.c: small doc improvement.
9684         * event-Xt.c: correct file names in comments.
9685         * console-x.h Correct file names in comments.
9686         * frame.c: Correct file names in comments.
9687         * event-stream.c: remove Energize from comments.
9688
9689 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9690
9691         * symeval.h (DEFERROR_STANDARD):
9692         (DEFERROR):
9693         (DEFSYMBOL):
9694         (DEFSYMBOL_NO_DUMP):
9695         (DEFSYMBOL_MULTIWORD_PREDICATE):
9696         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9697         (DEFKEYWORD):
9698         The construct &##name is not sensible C.
9699         Fixes compilation errors with Unixware native compiler.
9700
9701 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9702
9703         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9704         (next_frame_internal): Removed.  We now just have next_frame.
9705         (next_frame):
9706         Write a simpler and cleaner one-pass algorithm.
9707         Remove called_from_delete_device arg and #ifdefed-out code.
9708         (previous_frame):
9709         Renamed from prev_frame.  Update callers.
9710         Cleaned up to have an analogous implementation to next_frame.
9711         (other_visible_frames_internal): Remove the
9712         called_from_delete_device bogus arg, and hence, remove this
9713         function.  Just use other_visible_frames().
9714
9715         * window.c (Fnext_window):
9716         Prettify docstring.
9717         Since next_frame() is guaranteed to return a frame, remove check
9718         for nil inserted in previous patch.
9719         (Fprevious_window):
9720         Prettify docstring.
9721         Make code look more like Fnext_window.
9722         (window_loop):
9723         Respect the `console' arg when iterating through windows.
9724         Fixes bug: (get-buffer-window buffer t device) not respecting
9725         the `device' arg.
9726         This function needs more work, as others have pointed out.
9727
9728         * frame.h: Rename prev_frame to previous_frame.
9729         device_matches_console_spec no longer takes a `frame' arg.
9730
9731         * s/gnu.h:
9732         * s/linux.h:
9733         * s/hpux.h:
9734         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9735         From "Golubev I. N." <gin@mo.msk.ru>.
9736
9737         * make-src-depend: Fix typo.
9738
9739 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9740
9741         * window.c (Fnext_window):
9742         next_frame() might return nil, not a frame.
9743         Fixes this crash:
9744         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9745
9746         * frame.c (next_frame_internal):
9747         We've passed a frame if we've passed its device.
9748         Fixes this crash:
9749         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9750 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9751
9752 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9753
9754         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9755         Allow option to suppress accelerators in menu/dialog items.
9756         (populate_or_checksum_helper): Pass dialog title through above.
9757
9758 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9759
9760         * event-msw.c (mswindows_key_to_emacs_keysym):
9761         Add "pause" key, fix "menu" key.
9762
9763 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9764
9765         * eval.c (reinit_vars_of_eval):
9766         Increase max_lisp_eval_depth to 1000,
9767         required for thai-xtis.el to byte-compile under some circumstances.
9768
9769 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9770
9771         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9772         From Kenichi Handa.
9773
9774 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9775
9776         * make-src-depend: Make the generated Makefiles smaller.
9777
9778         * s/hpux.h (SETUP_SLAVE_PTY):
9779         Provide a %d in the format string for the errno argument.
9780
9781         * editfns.c (Ftemp_directory):
9782         Warning fix.
9783         Avoid buffer overrun on very long file name.
9784
9785         * input-method-xlib.c (XIM_init_device):
9786         6th parameter of XRegisterIMInstantiateCallback has different
9787         pointer types on different OSes, so simply cast to (void *).
9788
9789         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9790
9791         * sysdll.c (dll_open):
9792         shl_load will hang hard if passed a NULL filename.
9793         Simply return NULL for compatibility with dlopen.
9794         * sysdll.c: Conform to XEmacs coding standards.
9795
9796         * sysdep.c (get_pty_max_bytes):
9797         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9798
9799 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9800
9801         * tooltalk.c: Add #include <syssignal.h>
9802
9803 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9804
9805         * s/hpux.h: Don't use undefined function sigunblock().
9806
9807 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9808
9809         * config.h.in: Add HAVE_BALLOON_HELP.
9810         * emacs.c: Use HAVE_BALLOON_HELP.
9811         * Makefile.in.in (x_objs):
9812         Make Balloon Help conditional on finding shape.h.
9813
9814 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9815
9816         * syntax.c (regex_emacs_buffer_p): New variable.
9817         * syntax.h (regex_emacs_buffer_p): extern.
9818         * search.c (looking_at_1):
9819         (string_match_1):
9820         (fast_string_match):
9821         (search_buffer): Set regex_emacs_buffer_p.
9822         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9823         when before_dot, at_dot, after_dot.
9824
9825 2000-08-23  Andy Piper  <andy@xemacs.org>
9826
9827         * gui-x.c (popup_selection_callback): Only set action_occurred
9828         when we really have an image instance.
9829         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9830
9831 2000-08-23  Andy Piper  <andy@xemacs.org>
9832
9833         * gui-msw.c (mswindows_handle_gui_wm_command): set
9834         action_occurred.
9835         * gui-x.c (popup_selection_callback): ditto.
9836
9837         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9838         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9839         (struct Lisp_Image_Instance): add action_occurred flag.
9840
9841         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9842         (image_instance_changed): ditto.
9843         (reset_frame_subwindow_instance_cache): only unmap windows - do
9844         not remove them from the cache also.
9845
9846         * glyphs-widget.c (tab_control_update): better debug.
9847         (progress_gauge_update): ditto.
9848         (layout_update): ditto.
9849         (layout_instantiate): ditto.
9850         (tab_control_order_only_changed): cope with null pending items.
9851
9852         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9853         debug. Force selection of an item when an action occurred. Cope
9854         with null pending_items.
9855         (mswindows_progress_gauge_redisplay): better debug.
9856         * glyphs-x.c (x_tab_control_redisplay): ditto.
9857
9858         * redisplay.c (redisplay_frame): reset the frame cache if the
9859         frame is garbaged.
9860
9861         * window.c (Fset_window_configuration): potentially re-enable
9862         frame cache reset.
9863         (window_unmap_subwindows): need to finalize instances here since
9864         it is only used in mark_window_as_deleted.
9865
9866 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9867
9868         * nas.c (SndOpenDataForReading):
9869         nas.c (WaveOpenDataForReading):
9870         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9871         Somehow escaped from the 2000-08-14 patch.
9872
9873 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9874
9875         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9876         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9877
9878 2000-08-21  Andy Piper  <andy@xemacs.org>
9879
9880         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9881         window if it is not already displayed.
9882
9883         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9884         it is not already displayed.
9885
9886         * window.c (Fset_window_configuration): don't reset the frame
9887         cache.
9888
9889         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9890         instances from the frame cache if we are actually finalizing them.
9891         (reset_frame_subwindow_instance_cache): reset frame cache only
9892         after unmapping everything.
9893         (map_subwindow): set displayed flag after mapping.
9894
9895 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9896
9897         * data.c (indirect_function):
9898         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9899
9900         * eval.c (function_argcount):
9901         Use original function when signaling errors.
9902
9903 2000-08-18  Andy Piper  <andy@xemacs.org>
9904
9905         * frame.c (delete_frame_internal): use new
9906         free_frame_subwindow_instances name.
9907
9908         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9909         (add_tab_item): make return type correct.
9910         (mswindows_tab_control_instantiate): assert index of tab.
9911         (mswindows_tab_control_redisplay): Re-code to use
9912         gui_item_equal_sans_selected and gui_item_list_find_selected.
9913
9914         * glyphs-widget.c (tab_control_update): Correct comment.
9915
9916         * window.c (window_unmap_subwindows): use new
9917         unmap_subwindow_instance_cache_mapper.
9918         (window_unmap_subwindows_cache_mapper): deleted.
9919         (Fset_window_configuration): comparisons should now be with
9920         EQ. Preserve the subwindow instance cache across configuration
9921         changes.
9922         (allocate_window): ditto.
9923         (make_dummy_parent): ditto.
9924
9925         * glyphs.c (free_frame_subwindow_instances): rename from
9926         free_frame_subwindow_instance_cache. finalize all instances rather
9927         than just those in the display cache.
9928         (finalize_all_subwindow_instances): walk windows unmapping and
9929         finalizing subwindows.
9930         (unmap_subwindow_instance_cache_mapper): moved from
9931         window.c. Allow finalization as well as unmapping.
9932
9933         * gui.c (gui_item_list_find_selected): new function.
9934
9935         * gui.h (gui_item_list_find_selected): declare.
9936
9937         * glyphs-x.c (x_tab_control_redisplay): pick tab
9938         explicitly. Re-code to use gui_item_equal_sans_selected and
9939         gui_item_list_find_selected.
9940
9941         * glyphs-x.h: add lwlib-utils.h
9942
9943         * buffer.c (Frecord_buffer): undo previous change.
9944
9945 2000-08-09  Vin Shelton  <acs@xemacs.org>
9946
9947         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9948         possible.  Create temporary files more securely.  The patch was
9949         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9950         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9951         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9952         for details.
9953
9954 2000-08-07  Ben Wing  <ben@xemacs.org>
9955
9956         * getloadavg.c: remove duplicate (and windows-breaking)
9957         includes of fcntl.h and sys/file.h.
9958
9959         * nt.c: remove duplicate getloadavg() definition.
9960
9961         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9962         encodings.
9963
9964 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9965
9966         * eval.c (function_argcount): If function needs to be autoloaded
9967         actually use the loaded definition.
9968         GCPRO function.
9969
9970 2000-08-05  Ben Wing  <ben@xemacs.org>
9971
9972         * getloadavg.c: add prototype for getloadavg().  remove
9973         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9974         of the code).  remove duplicate header includes.
9975
9976         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9977
9978         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9979         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9980         useful load average.
9981
9982         * alloc.c (reinit_alloc_once_early): removed references to
9983         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9984         the lisp vars are the only things referencing the malloc_sbrk_*
9985         vars, and they were already if 0'd out.  these vars only exist
9986         in the older malloc.c, which is basically unused, and they're
9987         only for informational purposes.
9988
9989         * m\*.h: removed useless VIRT_ADDR_VARIES.
9990
9991         * m\powerpc.h: removed stray NO_ARG_ARRAY.
9992
9993 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9994
9995         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
9996         color if the image is a mono pixmap.
9997
9998 2000-07-30  Ben Wing  <ben@xemacs.org>
9999
10000         * Makefile.in.in (release):
10001         Remove stray @.
10002
10003         * buffer.c (directory_is_current_directory):
10004         * dired-msw.c (mswindows_get_files):
10005         * dired.c:
10006         * dired.c (Fdirectory_files):
10007         * dired.c (file_name_completion_stat):
10008         * dired.c (Ffile_attributes):
10009         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
10010         preprocessor tricks, to avoid problems on some machines
10011         (e.g. SCO).
10012
10013         * callproc.c (egetenv): GC docs.
10014
10015         * console-msw.h:
10016         * console-msw.h (struct mswindows_dialog_id):
10017         * lrecord.h (lrecord_type):
10018         New object for use with MSW dialogs.
10019
10020         * console.h (struct console_methods):
10021         New enable/disable frame methods, for proper modal dialogs.
10022
10023         * device-msw.c (msprinter_default_printer): Fix to follow
10024         proper Mule conventions.
10025
10026         * device-msw.c:
10027         * device-msw.c (signal_open_printer_error):
10028         * device-msw.c (msprinter_init_device):
10029         * device-msw.c (ensure_not_printing):
10030         * device-msw.c (plist_get_margin):
10031         * device-msw.c (Fmsprinter_select_settings):
10032         * device-msw.c (finalize_devmode):
10033         * device-msw.c (Fmsprinter_settings_despecialize):
10034         * device-msw.c (signal_enum_priner_error):
10035         * extents.c (decode_extent):
10036         * extents.c (decode_map_extents_flags):
10037         * extents.c (decode_extent_at_flag):
10038         * extents.c (Fextent_at):
10039         * extents.c (Fextents_at):
10040         * extents.c (symbol_to_glyph_layout):
10041         [[[[2]]]] Use structured errors.
10042
10043         * dialog-msw.c:
10044         * dialog-msw.c (mswindows_is_dialog_msg):
10045         * dialog-msw.c (mark_mswindows_dialog_id):
10046         * dialog-msw.c (dialog_proc):
10047         * dialog-msw.c (handle_question_dialog_box):
10048         * dialog-msw.c (syms_of_dialog_mswindows):
10049         Define new object to clean up marking; use it as a dialog identifier.
10050         Call new delete-dialog-box-hook.
10051
10052         * dialog-x.c (dbox_selection_callback):
10053         * dialog-x.c (dbox_descriptor_to_widget_value):
10054         * dialog-x.c (x_make_dialog_box_internal):
10055         Call new delete-dialog-box-hook.
10056         Return an id.
10057
10058         * dialog.c:
10059         * dialog.c (syms_of_dialog):
10060         * dialog.c (vars_of_dialog):
10061         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
10062
10063         * eval.c:
10064         * eval.c (signal_call_debugger):
10065         when noninteractive, output stack traces on the console instead
10066         of in a (never-seen) buffer.
10067
10068         * eval.c (signal_type_error):
10069         * eval.c (invalid_argument_2):
10070         * lisp.h:
10071         new funs for use w/structured errors.
10072
10073         * event-Xt.c:
10074         * event-Xt.c (x_to_emacs_keysym):
10075         * event-Xt.c (describe_event):
10076         * event-Xt.c (emacs_Xt_event_handler):
10077         * event-Xt.c (vars_of_event_Xt):
10078         * event-msw.c:
10079         * event-msw.c (mswindows_wnd_proc):
10080         * event-msw.c (vars_of_event_mswindows):
10081         rename {x,mswindows}-debug-events to debug-{}-events for
10082         consistency with other debug-foo variables.
10083
10084         * event-stream.c:
10085         document next-event more clearly.
10086
10087         * fileio.c (Ffile_name_directory):
10088         * fileio.c (Ffile_name_nondirectory):
10089         * fileio.c (Funhandled_file_name_directory):
10090         * fileio.c (file_name_as_directory):
10091         * fileio.c (Ffile_name_as_directory):
10092         * fileio.c (directory_file_name):
10093         * fileio.c (Fdirectory_file_name):
10094         * fileio.c (Fmake_temp_name):
10095         * fileio.c (Ffile_truename):
10096         * fileio.c (Fsubstitute_in_file_name):
10097         * fileio.c (expand_and_dir_to_file):
10098         * fileio.c (barf_or_query_if_file_exists):
10099         * fileio.c (check_executable):
10100         * fileio.c (Ffile_exists_p):
10101         * fileio.c (Ffile_writable_p):
10102         * fileio.c (Ffile_directory_p):
10103         * fileio.c (Ffile_regular_p):
10104         * fileio.c (Ffile_modes):
10105         * fileio.c (Ffile_newer_than_file_p):
10106         * fileio.c (Fverify_visited_file_modtime):
10107         * fileio.c (Fset_visited_file_modtime):
10108         * fileio.c (auto_save_1):
10109         (1). (2).
10110         fix up gcpro's.
10111
10112         * frame-msw.c:
10113         * frame-msw.c (mswindows_init_frame_1):
10114         * frame-msw.c (mswindows_enable_frame):
10115         * frame-msw.c (error_frame_unsizable):
10116         * frame-msw.c (msprinter_init_frame_1):
10117         * frame-msw.c (msprinter_init_frame_3):
10118         * frame-msw.c (console_type_create_frame_mswindows):
10119         (2).
10120         implement new enable/disable frame methods.
10121
10122         * frame-x.c:
10123         * frame-x.c (x_enable_frame):
10124         * frame-x.c (console_type_create_frame_x):
10125         implement new enable/disable frame methods.
10126
10127         * frame.c:
10128         * frame.c (Fdisable_frame):
10129         * frame.c (syms_of_frame):
10130         * frame.h (struct frame):
10131         implement new enable/disable frame methods/functions.
10132
10133         * general-slots.h:
10134         add initial-focus.
10135
10136         * glyphs-msw.c (mswindows_widget_instantiate):
10137         comment that initial-focus should be implemented.
10138
10139         * glyphs-widget.c:
10140         * glyphs-widget.c (check_valid_instantiator):
10141         * glyphs-widget.c (check_valid_orientation):
10142         * glyphs-widget.c (check_valid_tab_orientation):
10143         * glyphs-widget.c (check_valid_justification):
10144         * glyphs-widget.c (check_valid_border):
10145         * glyphs-widget.c (check_valid_callback):
10146         * glyphs-widget.c (check_valid_int_or_function):
10147         * glyphs-widget.c (check_valid_string_or_vector):
10148         * glyphs-widget.c (check_valid_item_list_1):
10149         * glyphs-widget.c (widget_validate):
10150         * glyphs-widget.c (combo_box_validate):
10151         * glyphs-widget.c (widget_instantiate):
10152         * glyphs-widget.c (syms_of_glyphs_widget):
10153         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
10154         * glyphs-widget.c (image_instantiator_combo_box):
10155         * glyphs-widget.c (image_instantiator_scrollbar):
10156         * glyphs-widget.c (image_instantiator_tab_control):
10157         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
10158         (2).
10159         support (unimplemented) keyword initial-focus.
10160         reindent long macros.
10161
10162         * glyphs-x.c (x_redisplay_widget):
10163         * glyphs-x.c (x_button_instantiate):
10164         * glyphs-x.c (x_button_redisplay):
10165         * glyphs-x.c (x_progress_gauge_instantiate):
10166         * glyphs-x.c (x_edit_field_instantiate):
10167         * glyphs-x.c (x_combo_box_instantiate):
10168         * glyphs-x.c (x_tab_control_instantiate):
10169         * glyphs-x.c (x_label_instantiate):
10170         * gui-x.c:
10171         * gui-x.c (button_item_to_widget_value):
10172         * gui-x.c (gui_items_to_widget_values_1):
10173         * gui-x.c (gui_item_children_to_widget_values):
10174         * gui-x.c (gui_items_to_widget_values):
10175         * gui-x.h:
10176         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10177         add new flag to gui-parsing routines to indicate whether
10178         accelerator specs should be supported.
10179
10180         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
10181
10182         * glyphs.h (struct Lisp_Image_Instance):
10183         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
10184         add initial-focus flag.
10185
10186         * gui.c:
10187         * gui.c (syms_of_gui):
10188         * gui.c (vars_of_gui):
10189         clean up menu-no-selection-hook.
10190
10191         * gui.h:
10192         support delete-dialog-box-hook.
10193
10194         * lread.c (Fload_internal):
10195         * lread.c (locate_file_in_directory_mapper):
10196         (1).
10197
10198         * lrecord.h:
10199         * lrecord.h (struct toolbar_button):
10200         * lrecord.h (syms_of_toolbar):
10201         document how to create a new object.
10202
10203         * menubar-msw.c (mswindows_char_is_accelerator):
10204         may be called on frames w/o menus.
10205
10206         * menubar.c (vars_of_menubar):
10207         clean up :filter docs.
10208
10209         * nt.c (readdir):
10210         * ntproc.c:
10211         (1).
10212
10213         * process-nt.c:
10214         * process-nt.c (validate_signal_number):
10215         * process-nt.c (signal_cannot_launch):
10216         * process-nt.c (nt_create_process):
10217         * process-nt.c (nt_send_process):
10218         * process-nt.c (nt_kill_child_process):
10219         * process-nt.c (nt_open_network_stream):
10220         * process-nt.c (syms_of_process_nt):
10221         (2).
10222         delete quote-handling.  call new lisp code that does it better.
10223
10224         * process-unix.c (connect_to_file_descriptor):
10225         * process-unix.c (allocate_pty):
10226         * process-unix.c (unix_send_process):
10227         * process-unix.c (unix_kill_child_process):
10228         * process-unix.c (unix_open_network_stream):
10229         * process-unix.c (unix_open_multicast_group):
10230         (1). (2).
10231
10232         * process.c:
10233         * process.c (Fstart_process_internal):
10234         (2).  need to canonicalize process path even if absolute.
10235
10236         * select-msw.c (symbol_to_ms_cf):
10237         * select-msw.c (ms_cf_to_symbol):
10238         * select-msw.c (cf_is_autofreed):
10239         * select-msw.c (mswindows_destroy_selection):
10240         * select.c:
10241         * select.c (syms_of_select):
10242         * select.h:
10243         support dibv5, fix bugs. (from Mike Alexander)
10244
10245         * select.c (Fget_selection_internal):
10246         * select.c (select_convert_out):
10247
10248         * sysdep.c:
10249         * sysdep.c (xemacs_stat):
10250         renamed.
10251
10252         * sysdep.c (mkdir):
10253         * sysdep.c (rmdir):
10254         but keep original stat() here because we provide encapsulation
10255         around these funs.
10256
10257         * sysfile.h:
10258         * sysfile.h (fstat):
10259         remove stat garbage.
10260
10261         * syswindows.h:
10262         fix X/MSW conflict.
10263         don't include tchar.h.  it's inappropriate because it makes
10264         compile-time distinctions when we want runtime distinctions.
10265         (we provide our own tchar replacements)
10266
10267         * toolbar.c:
10268         use default object printer for toolbar-button.
10269
10270         * unexcw.c:
10271         make sure we don't encapsulate.
10272
10273         * window.c (vars_of_window):
10274         emphasize that temp-buffer-show-hook is obsolete.
10275
10276 2000-08-05  Martin Buchholz  <martin@xemacs.org>
10277
10278         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
10279         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
10280
10281         * events.c (Fevent_timestamp_lessp):
10282         Not 64-bit clean.  Use EMACS_INT, not int.
10283
10284 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
10285
10286         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
10287         unsigned int and changed the last enum to
10288         lrecord_type_last_built_in_type.
10289         (lrecord_implementations_table): changed prototype to know how
10290         long the array is supposed to be.
10291         (lrecord_type_count): new unsigned int to keep track of the
10292         current number of lisp lrecord types.
10293         (DEFINE_EXTERNAL_LRECORD):
10294         (DECLARE_EXTERNAL_LRECORD): Added these two for external
10295         dynamic-modules to declare new lisp types. They are the same
10296         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
10297         int for each new type, and increment lrecord_type_count by 1.
10298
10299         * alloc.c (lrecord_implementations_table): Changed to reference
10300         lrecord_type_last_built_in_type for the size of the array.
10301         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
10302
10303 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10304
10305         * glyphs.h (check_valid_item_list): Renamed from
10306         check_valid_item_list_1.
10307
10308 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
10309
10310         * select.c (Qselect_coerce): New.
10311         * select.c (Vselection_coercion_alist): New.
10312         * select.c (syms_of_select): Declare.
10313         * select.c (get-selection-internal): Use it.
10314         Use the new select-coerce functionality.
10315
10316         * select.c (select_coerce): New.
10317         * select.h (select_coerce): Declare.
10318         New function to coerce one type of data into another.
10319
10320 2000-08-03  Martin Buchholz  <martin@xemacs.org>
10321
10322         * callproc.c (Fcall_process_internal):
10323         (Fcall_process_internal):
10324         * process-unix.c (unix_create_process):
10325         Save and restore the value of errno, so that error messages are accurate.
10326
10327 2000-08-01  Martin Buchholz  <martin@xemacs.org>
10328
10329         * elhash.c (print_hash_table):
10330         Fix printing of hash tables to also use `key-and-value' instead of `t'.
10331         Prettify docstrings and indentation.
10332
10333 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10334
10335         * window.c (Fwindow_pixel_edges): Subtract frame border and
10336         gutter size.
10337
10338 2000-07-31  Andy Piper  <andy@xemacs.org>
10339
10340         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
10341         will acknowledge the change.
10342
10343         * glyphs.h: declare tab_control_order_only_changed.
10344
10345         * glyphs-x.c (x_tab_control_redisplay): use
10346         tab_control_order_only_changed.
10347
10348         * glyphs-widget.c (tab_control_order_only_changed): new function.
10349
10350         * glyphs-msw.c (mswindows_tab_control_redisplay): use
10351         tab_control_order_only_changed.
10352
10353         * gui.c (gui_item_equal_sans_selected): new function.
10354         (gui_item_equal): use it.
10355
10356         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
10357         :properties in favor of :items..
10358
10359         * glyphs-widget.c (check_valid_item_list): rename from
10360         check_valid_item_list_1.
10361         (check_valid_item_list_1): renamed.
10362         (combo_box_validate): deprecate :properties in favor of :items.
10363         (widget_instantiate): ditto.
10364         (tab_control_update): ditto.
10365         (image_instantiator_combo_box): ditto.
10366         (image_instantiator_tree_view): ditto.
10367         (image_instantiator_tab_control): ditto.
10368         (layout_post_instantiate): remove dead code.
10369
10370         * print.c (debug_print_no_newline): only write to debugger if in
10371         WIN32_NATIVE.
10372
10373         * elhash.c (Fmake_hash_table): update doc string.
10374
10375         * event-msw.c (mswindows_wnd_proc): don't allow processing of
10376         messages whilst in GC. This at least stops XEmacs crashing but has
10377         the potential for wierd behaviour.
10378
10379 2000-07-31  Martin Buchholz  <martin@xemacs.org>
10380
10381         * config.h.in:
10382         Make existence of s&m files optional.
10383
10384         * s/bsd386.h: Remove HAVE_GETLOADAVG.
10385         * s/freebsd.h: Remove HAVE_GETLOADAVG.
10386         * s/gnu.h: Remove HAVE_GETLOADAVG.
10387         * s/netbsd.h: Remove HAVE_GETLOADAVG.
10388         * s/sol2.h: Remove HAVE_GETLOADAVG.
10389         * lisp.h: Remove getloadavg() declaration.
10390         * fns.c:
10391         Include <sys/loadavg.h> if available.
10392         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
10393         * config.h.in:  Group together getloadavg()-related macros.
10394         Use only configure-time tests to detect getloadavg().
10395
10396 2000-07-30  Martin Buchholz  <martin@xemacs.org>
10397
10398         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10399
10400 2000-07-25  Andy Piper  <andy@xemacs.org>
10401
10402         * syswindows.h: add tchar.h for native builds.
10403
10404         * frame.c (syms_of_frame): remove set-glyph-image.
10405
10406         * general-slots.h: add Qset_glyph_image.
10407
10408         * glyphs-widget.c (layout_update): add domain arg to
10409         set-glyph-image.
10410         (syms_of_glyphs_widget): remove set-glyph-image.
10411
10412 2000-07-23  Ben Wing  <ben@xemacs.org>
10413
10414         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10415         Vpopup_frame_list.
10416
10417 2000-07-22  Andy Piper  <andy@xemacs.org>
10418
10419         * symsinit.h: add syms_of_win32().
10420
10421         * gui-msw.c (syms_of_gui_mswindows): remove
10422         Fmswindows_shell_execute.
10423         (Fmswindows_shell_execute): moved to win32.c.
10424
10425         * emacs.c (main_1): add syms_of_win32 ().
10426
10427         * win32.c (init_potentially_nonexistent_functions): rewrite in
10428         compiler-friendly terms.
10429         (Fmswindows_shell_execute): move here from gui-msw.c.
10430         (syms_of_win32): new.
10431
10432         * device-msw.c (Fmswindows_printer_list): clean up args to
10433         EnumPrinters.
10434         Don't include tchar under cygwin or mingw.
10435         (msprinter_default_printer): make cygwin-friendly.
10436
10437 2000-07-21  Andy Piper  <andy@xemacs.org>
10438
10439         * glyphs-widget.c (image_instantiator_tree_view): use tab
10440         control's update function.
10441         (layout_property): new function. Retrieve items.
10442
10443         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10444         function. Re-populate the tree view from the pending items.
10445
10446         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10447         is designated the parent if the domain is an image instance. This
10448         is needed so that dirtiness can be cascade up the hierarchy and
10449         thus for layout children to be redisplayed correctly.
10450         (allocate_image_instance): rename glyph -> parent.
10451
10452         * redisplay.h: change redisplay_output_layout signature.
10453
10454         * redisplay-msw.c (mswindows_output_display_block): use domain
10455         arg.
10456
10457         * redisplay-x.c (x_output_display_block): use domain arg.
10458
10459 2000-07-10  Andy Piper  <andy@xemacs.org>
10460
10461         * window.c (Fset_window_configuration): add comment.
10462
10463         * redisplay-output.c (compare_runes):
10464         (redisplay_output_subwindow): redisplay rather than update subwindow.
10465         (redisplay_output_layout): ditto.
10466
10467         * redisplay-msw.c (mswindows_frame_output_end):
10468         (mswindows_frame_output_end): make defer window pos optional.
10469
10470         * lisp.h: add Flast.
10471
10472         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10473         normalize method. Change update method to be for changed
10474         instantiators. Add redisplay method. Change signature of layout
10475         method.
10476         (struct Lisp_Image_Instance): add instantiator.
10477         (IMAGE_INSTANCE_INSTANTIATOR): new.
10478         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10479         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10480         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10481
10482         * glyphs.c:
10483         (find_instantiator_differences): new function.
10484         (Fset_instantiator_property): new convenience function.
10485         (check_image_instance_structure): strictly check for vector
10486         instantiators.
10487         (normalize_image_instantiator): make non-static.
10488         (instantiate_image_instantiator): pass on dest_mask and use new
10489         signatures for image_instance_layout and friends.
10490         (mark_image_instance): mark the instantiator. Mark the subwindow
10491         face not the widget face.
10492         (image_instance_equal): add instantiator.
10493         (image_instance_hash): ditto.
10494         (allocate_image_instance): ditto.
10495         (Fset_image_instance_property): removed.
10496         (Fimage_instance_file_name): ditto.
10497         (Fcolorize_image_instance): ditto.
10498         (image_instance_layout): add offsets to be set.
10499         (update_image_instance): new function. update an image instance
10500         from its changed instantiator.
10501         (inherit_normalize): add dest_mask.
10502         (xbm_normalize): ditto.
10503         (xface_normalize): ditto.
10504         (xpm_normalize): ditto.
10505         (text_update): set_property -> update.
10506         (image_instantiate): use the glyph identity as a hash key, not the
10507         instantiator.
10508         (glyph_width): use new image_instance_layout signature.
10509         (glyph_ascent): ditto.
10510         (glyph_descent): ditto.
10511         (glyph_height): ditto.
10512         (glyph_query_geometry): ressurrect.
10513         (glyph_layout): ditto.
10514         (redisplay_subwindow): update -> redisplay.
10515         (syms_of_glyphs): add Fset_instantiator_property.
10516         (image_instantiator_format_create): set_property -> update.
10517
10518         * glyphs-x.c:
10519         (autodetect_normalize): add dest_maks to signature.
10520         (x_redisplay_subwindow): update -> redisplay.
10521         (x_redisplay_widget): ditto.
10522         (x_button_redisplay): ditto.
10523         (x_progress_gauge_redisplay): ditto.
10524         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10525         stacking order.
10526         (console_type_create_glyphs_x): update -> redisplay.
10527         (image_instantiator_format_create_glyphs_x): ditto.
10528
10529         * glyphs-widget.c:
10530         (check_valid_instantiator): disallow glyphs in the instantiator,
10531         they must now be vectors.
10532         (check_valid_instantiator_list): ditto.
10533         (glyph_instantiator_to_glyph): use internal symbol rather than
10534         intern.
10535         (widget_update): renamed from widget_set_property. Call cascaded
10536         update methods.
10537         (redisplay_widget): renamed from update_widget.
10538         (widget_layout): image_instance_layout now takes position as well
10539         as size.
10540         (widget_normalize): ditto.
10541         (widget_instantiate): ditto.
10542         (tab_control_query_geometry) ditto.:
10543         (tab_control_update): renamed from tab_control_set_property.
10544         (progress_gauge_update): set_property -> update.
10545         (layout_normalize): rewrite so that child instantiators are
10546         normalized also.
10547         (layout_update): new function. Create glyphs from the normalized
10548         children and cope with any other layout keywords. We do not
10549         instantiate children here that will be take care of by
10550         redisplay_output_layout.
10551         (layout_instantiate): call layout_update and not much else.
10552         (layout_post_instantiate): not sure whether this is needed
10553         anymore.
10554         (layout_query_geometry): query glyph geometry rather than
10555         image_instance geometry.
10556         (layout_layout): set offsets from pass in parameters. Use glyph
10557         geometry and layout functions rather than image instance ones.
10558         (native_layout_layout): ditto.
10559         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10560         (image_instantiator_widget): set_property -> update.
10561         (image_instantiator_buttons): ditto.
10562         (image_instantiator_progress_guage): ditto.
10563         (image_instantiator_tab_control): ditto.
10564         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10565         (image_instantiator_layout): add update method.
10566
10567         * glyphs-msw.c (bmp_normalize):
10568         (mswindows_resource_normalize): add dest_mask so that it can be
10569         proprogated by layout_normalize.
10570         (begin_defer_window_pos): make optional because it may not be the
10571         right thing to do and it introduces differences with X.
10572         (mswindows_unmap_subwindow): ditto.
10573         (mswindows_map_subwindow): ditto.
10574         (mswindows_redisplay_subwindow): renamed from
10575         mswindows_update_subwindow.
10576         (mswindows_redisplay_widget): ditto.
10577         (mswindows_button_redisplay): renamed from
10578         mswindows_button_update. Update is now what the instantiation
10579         function does for a changed instantiator.
10580         (mswindows_progress_gauge_instantiate): set the progress value
10581         here if appropriate.
10582         (mswindows_tab_control_redisplay): cope with re-ordering of the
10583         members of the tab widget by simply selecting the new top
10584         widget. This makes things appear ok if you click on a tab.
10585         (mswindows_combo_box_instantiate): image_instance_layout now takes
10586         position as well as size.
10587         (mswindows_progress_gauge_redisplay): renamed from
10588         mswindows_progress_gauge_update.
10589         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10590         (image_instantiator_format_create_glyphs_mswindows): ditto.
10591
10592         * glyphs-eimage.c (jpeg_normalize):
10593         (gif_normalize):
10594         (png_normalize):
10595         (tiff_normalize): add dest_mask so that it can be proprogated by
10596         layout_normalize.
10597
10598         * elhash.c:
10599         (print_hash_table):
10600         (hash_table_weakness_validate):
10601         (decode_hash_table_weakness):
10602         (Fhash_table_weakness):
10603         (Fhash_table_type):
10604         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10605
10606         * console.h (struct console_methods): move update_* to
10607         redisplay_*.
10608
10609 2000-07-20  Ben Wing  <ben@xemacs.org>
10610
10611         * *.[ch] (XSETOBJ): remove unused middle argument.
10612         lisp-disunion.h: correct wrap_object() to one argument.
10613
10614 2000-07-15  Ben Wing  <ben@xemacs.org>
10615
10616         * s/cygwin32.h:
10617         * s/cygwin32.h (CYGWIN_CONV_PATH):
10618         Add missing logb prototype for v1.1.
10619         Use post-b20 names and alias to pre-b20 names when pre-b20.
10620
10621         * s/windowsnt.h: [5].
10622
10623 2000-07-15  Ben Wing  <ben@xemacs.org>
10624
10625         * Makefile.in.in (x_objs):
10626         * Makefile.in.in (sheap_objs):
10627         * Makefile.in.in (objs):
10628         added win32.o, cosmetic cleanups.
10629
10630         * alloc.c (Fmake_byte_code):
10631         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10632         etc. macros which declare their own args now.
10633
10634         * alloc.c (syms_of_alloc):
10635         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10636
10637         * buffer.c:
10638         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10639
10640         * buffer.c (Fget_file_buffer):
10641         Fixed GCPRO problem.
10642
10643         * buffer.c (get_truename_buffer):
10644         Fixed comment about GC checking.
10645
10646         * buffer.c (syms_of_buffer):
10647         Undeclared those dedicated frame funs.
10648         [2].
10649
10650         * buffer.h:
10651         Define convenience macros for internal/external conversions.
10652         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10653         and Qenvironment_variable_encoding for cleaner code.
10654
10655         * bufslots.h:
10656         Remove dedicated-frame; in lisp.
10657
10658         * bytecode.c (funcall_compiled_function):
10659         [1].
10660
10661         * bytecode.c (syms_of_bytecode):
10662         [2].
10663
10664         * console-msw.c:
10665         * console-msw.c (mswindows_show_console): Rewrote.
10666
10667         * console-msw.c (Fmswindows_debugging_output): New.
10668         Sends to OutputDebugString (special MSWin debugger interface).
10669
10670         * console-msw.c (Fmswindows_message_box):
10671         Fixed stupid bugs so it works when called from kill-emacs.
10672
10673         * console-msw.c (syms_of_console_mswindows):
10674         Declare Fmswindows_debugging_output.
10675
10676         * console-msw.h:
10677         New MSWin prototypes.
10678
10679         * console-msw.h (struct mswindows_frame):
10680         New entry last-click-mods for improved button-modifier support.
10681
10682         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10683         New struct entry `popup' with corresponding accessor.
10684
10685         * console-x.c:
10686         * console-x.c (split_up_display_spec):
10687         * console-x.c (get_display_arg_connection):
10688         * console-x.c (x_semi_canonicalize_console_connection):
10689         * console-x.c (x_canonicalize_device_connection):
10690         [[[6]]]: Change char to more specific type.
10691         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10692
10693         * console-x.c (x_semi_canonicalize_console_connection):
10694         * console-x.c (x_canonicalize_device_connection):
10695         [[[9]]]: Fix up error signalling to use new structured error system.
10696
10697         * console-x.h:
10698         [[[4]]]: Define codesys aliases:
10699         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10700         Qx_color_name_encoding, Qx_display_name_encoding.
10701
10702         * console.h (struct console_methods):
10703         New method make_dialog_box_internal supersedes older
10704         popup_dialog_box method.
10705
10706         * data.c:
10707         Define many new errors, part of new structured errors.
10708
10709         * data.c (init_errors_once_early):
10710         * data.c (syms_of_data):
10711         [2].
10712
10713         * device-msw.c (mswindows_init_device):
10714         [[[5]]]: Cleanup to support NT 3.51.
10715
10716         * device-msw.c (decode_devmode): Cleanup.
10717
10718         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10719         * device-msw.c (mswindows_handle_print_dialog_box):
10720         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10721         * device-msw.c (syms_of_device_mswindows):
10722         Delete the dialog box primitives recently introduced by Kirill and
10723         instead interface to general dialog box interface.
10724
10725         * device-x.c:
10726         * device-x.c (compute_x_app_name):
10727         * device-x.c (x_init_device):
10728         * device-x.c (Fx_valid_keysym_name_p):
10729         * device-x.c (Fx_set_font_path):
10730         [6].
10731         [7].
10732
10733         * device.h (wrap_device): New.
10734         First of its kind; meant to replace XSETDEVICE.
10735
10736         * dialog-msw.c: Many file-dialog symbols.
10737
10738         * dialog-msw.c (mswindows_register_popup_frame): New.
10739         * dialog-msw.c (mswindows_is_dialog_msg): New.
10740         For supporting kbd traversal in dialog boxes.
10741
10742         * dialog-msw.c (dialog_proc):
10743         Support hitting ESC in dialogs.
10744
10745         * dialog-msw.c (struct):
10746         Common dialog box errors.
10747
10748         * dialog-msw.c (handle_file_dialog_box): New.
10749         Add file dialog code.
10750
10751         * dialog-msw.c (handle_question_dialog_box):
10752         Redo existing code to support new question dialog syntax.
10753
10754         * dialog-msw.c (console_type_create_dialog_mswindows):
10755         We support new dialog console method.
10756
10757         * dialog-msw.c (syms_of_dialog_mswindows):
10758         * dialog-msw.c (vars_of_dialog_mswindows):
10759         New file dialog symbols, vars.
10760
10761         * dialog-x.c:
10762         * dialog-x.c (maybe_run_dbox_text_callback):
10763         * dialog-x.c (dbox_descriptor_to_widget_value):
10764         * dialog-x.c (x_make_dialog_box_internal):
10765         * dialog-x.c (console_type_create_dialog_x):
10766         Mule-ize entire file.
10767         Redo to support question dialog syntax.
10768         [6].
10769
10770         * dialog.c:
10771         * dialog.c (Fmake_dialog_box_internal):
10772         * dialog.c (syms_of_dialog):
10773         Kill old popup-dialog-box, replace with new primitive.
10774         Just call device method or signal error.
10775
10776         * eldap.c (Fldap_open):
10777         * eldap.c (Fldap_search_basic):
10778         * eldap.c (Fldap_add):
10779         * eldap.c (Fldap_modify):
10780         [1].
10781         [7].
10782
10783         * emacs.c:
10784         * emacs.c (make_arg_list_1):
10785         * emacs.c (make_arg_list):
10786         Mule-ize call to dll_init().
10787         [6].
10788         [8].
10789
10790         * emacs.c (make_argc_argv):
10791         * emacs.c (free_argc_argv):
10792         * emacs.c (init_cmdargs):
10793         * emacs.c (main_1):
10794         * emacs.c (Fkill_emacs):
10795         * emacs.c (Fdump_emacs):
10796         Update comments about what can be used in syms_* etc.
10797         Call init_win32() when necessary.
10798         Fix up MS Win dialog box in kill-buffer to actually work right.
10799         [7].
10800
10801         * eval.c:
10802         * eval.c (For):
10803         * eval.c (Fand):
10804         * eval.c (Fprogn):
10805         * eval.c (Fprog1):
10806         * eval.c (Fprog2):
10807         * eval.c (FletX):
10808         * eval.c (Flet):
10809         * eval.c (condition_case_3):
10810         * eval.c (Feval):
10811         * eval.c (function_argcount):
10812         * eval.c (funcall_lambda):
10813         [1].
10814
10815         * eval.c (type_error): New.
10816         * eval.c (maybe_type_error): New.
10817         * eval.c (continuable_type_error): New.
10818         * eval.c (maybe_continuable_type_error): New.
10819         * eval.c (type_error_with_frob): New.
10820         * eval.c (maybe_type_error_with_frob): New.
10821         * eval.c (continuable_type_error_with_frob): New.
10822         * eval.c (maybe_continuable_type_error_with_frob): New.
10823         New functions for use with structured errors.
10824
10825         * event-Xt.c:
10826         * event-Xt.c (x_event_to_emacs_event):
10827         Buttons are now modifiers too.
10828
10829         * event-Xt.c (emacs_Xt_current_event_timestamp):
10830         Implement new event method.
10831         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10832
10833         * event-msw.c:
10834         * event-msw.c (ntpipe_shove_writer): [5].
10835         * event-msw.c (mswindows_enqueue_mouse_button_event):
10836         * event-msw.c (mswindows_drain_windows_queue):
10837         * event-msw.c (mswindows_wnd_proc): [7].
10838         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10839         * event-msw.c (mswindows_modifier_state):
10840         Throughout: support new button modifiers.
10841
10842         * event-msw.c (emacs_mswindows_current_event_timestamp):
10843         Implement new event method.
10844         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10845
10846         * event-stream.c:
10847         * event-stream.c (event_stream_current_event_timestamp): New.
10848         * event-stream.c (maybe_kbd_translate): New functionality.
10849         * event-stream.c (vars_of_event_stream):
10850         Document new kbd-translate-table functionality.
10851
10852         * event-stream.c (Fcurrent_event_timestamp): New.
10853         New primitive for use in fabricated events.
10854         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10855
10856         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10857
10858         * events.c:
10859         * events.c (Fmake_event):
10860         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10861         [1].
10862         [9].
10863
10864         * events.c (format_event_object): fix gcc warnings.
10865
10866         * events.c (Fevent_timestamp): Document new primitives.
10867
10868         * events.c (TIMESTAMP_HALFSPACE): New.
10869
10870         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10871         comparing timestamps correctly (half-space algorithm).
10872
10873         * events.c (Fevent_modifier_bits): Doc fix.
10874
10875         * events.c (Fevent_modifiers): Major doc addition.
10876         * events.c (event_x_y_pixel_internal): Typo fix.
10877         * events.c (syms_of_events): Declare new primitives.
10878
10879         * events.h:
10880         Update long comment for button modifiers, timestamps.
10881
10882         * events.h (struct event_stream):
10883         New current_event_timestamp method.
10884
10885         * extents.c:
10886         * extents.c (extent_in_region_p):
10887         * extents.c (decode_extent):
10888         * extents.c (Fset_extent_parent):
10889         * extents.c (decode_map_extents_flags):
10890         Fix gcc warnings.
10891         [9].
10892
10893         * extents.c (struct extent_at_arg):
10894         * extents.c (decode_extent_at_flag):
10895         * extents.c (extent_at_mapper):
10896         * extents.c (extent_at_bytind):
10897         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10898         * extents.c (Fextents_at): New primitive. [9].
10899         * extents.c (symbol_to_glyph_layout): [9].
10900         Support new primitive `extents-at'.
10901
10902
10903         * extents.c (get_text_property_bytind):
10904         extent_at_bytind has another arg.
10905         [9].
10906
10907         * extents.c (syms_of_extents): New primitive.
10908
10909         * file-coding.c (Fmake_coding_system): [1].
10910         * file-coding.c (subsidiary_coding_system): fix gcc warning
10911         * file-coding.c (syms_of_file_coding): [2].
10912
10913         * fileio.c (Fexpand_file_name):
10914         * fileio.c (Fsysnetunam):
10915         * fileio.c (Ffile_exists_p):
10916         * fileio.c (Ffile_executable_p):
10917         * fileio.c (Fverify_visited_file_modtime):
10918         Clean up GCPROing.
10919
10920         * fileio.c (syms_of_fileio): [2].
10921
10922         * filelock.c (lock_file_1):
10923         * filelock.c (current_lock_owner):
10924         * filelock.c (lock_if_free):
10925         * filelock.c (lock_file):
10926         * filelock.c (unlock_file):
10927         Clean up GCPROing.
10928
10929         * fns.c (concat): Fix gcc warning.
10930
10931         * fns.c (Fmember):
10932         * fns.c (Fold_member):
10933         * fns.c (Fmemq):
10934         * fns.c (Fold_memq):
10935         * fns.c (memq_no_quit):
10936         * fns.c (Fassoc):
10937         * fns.c (Fold_assoc):
10938         * fns.c (Fassq):
10939         * fns.c (Fold_assq):
10940         * fns.c (assq_no_quit):
10941         * fns.c (Frassoc):
10942         * fns.c (Fold_rassoc):
10943         * fns.c (Frassq):
10944         * fns.c (Fold_rassq):
10945         * fns.c (rassq_no_quit):
10946         * fns.c (Fdelete):
10947         * fns.c (Fold_delete):
10948         * fns.c (Fdelq):
10949         * fns.c (Fold_delq):
10950         * fns.c (delq_no_quit):
10951         * fns.c (Fremassoc):
10952         * fns.c (Fremassq):
10953         * fns.c (remassq_no_quit):
10954         * fns.c (Fremrassoc):
10955         * fns.c (Fremrassq):
10956         * fns.c (remrassq_no_quit):
10957         * fns.c (Freverse):
10958         * fns.c (mapcar1):
10959         [1].
10960
10961         * frame-msw.c (mswindows_init_frame_1):
10962         * frame-msw.c (mswindows_delete_frame):
10963         Register popups with dialog code so keyboard traversing works.
10964
10965         * frame-tty.c (tty_raise_frame_no_select): [1].
10966
10967         * frame-x.c:
10968         * frame-x.c (x_set_frame_text_value):
10969         * frame-x.c (x_set_frame_properties):
10970         * frame-x.c (x_create_widgets):
10971         [7].
10972
10973         * frame.c:
10974         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10975
10976         * frame.h (wrap_frame): New.
10977         Macro like wrap_device.
10978
10979         * general.c:
10980         * general.c (SYMBOL):
10981         * general.c (syms_of_general):
10982         Major reorg.  This is now just a wrapper and symbols themselves
10983         are listed in general-slots.h.
10984
10985         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10986         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10987
10988         * glyphs-msw.c (mswindows_native_layout_instantiate):
10989         Add DS_CONTROL so keyboard traversal will work.
10990
10991         * glyphs-widget.c:
10992         * glyphs-widget.c (syms_of_glyphs_widget):
10993         Move some symbols to general-slots.h.
10994
10995         * glyphs-x.c:
10996         * glyphs-x.c (xbm_instantiate_1):
10997         * glyphs-x.c (x_xbm_instantiate):
10998         * glyphs-x.c (x_xface_instantiate):
10999         * glyphs-x.c (autodetect_instantiate):
11000         * glyphs-x.c (cursor_font_instantiate):
11001         * glyphs-x.c (x_update_widget):
11002         * glyphs-x.c (x_widget_instantiate):
11003         * glyphs.c (bitmap_to_lisp_data):
11004         * glyphs.c (pixmap_to_lisp_data):
11005         [7].
11006
11007         * glyphs.c (syms_of_glyphs):
11008         [2].
11009
11010         * gui-x.c:
11011         * gui-x.c (print_widget_value):
11012         * gui-x.c (menu_separator_style_and_to_external):
11013         * gui-x.c (add_accel_and_to_external):
11014         * gui-x.c (button_item_to_widget_value):
11015         * gui-x.c (gui_items_to_widget_values_1):
11016         * gui-x.c (gui_items_to_widget_values):
11017         * gui-x.c (syms_of_gui_x):
11018         * gui-x.c (vars_of_gui_x):
11019         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
11020         [9].
11021
11022         * gui-x.h:
11023         Muleize, prototype changes matching gui-x.c.
11024
11025         * gui.c:
11026         * gui.c (separator_string_p):
11027         * gui.c (gui_item_add_keyval_pair):
11028         * gui.c (make_gui_item_from_keywords_internal):
11029         * gui.c (signal_too_long_error):
11030         * gui.c (parse_gui_item_tree_item):
11031         * gui.c (syms_of_gui):
11032         * gui.c (vars_of_gui):
11033         * gui.h:
11034         menu-no-selection-hook moved here (used by MSWin).
11035         Move some symbols to general-slots.h.
11036         [6].
11037         [9].
11038
11039         * insdel.c (get_buffer_pos_char):
11040         * insdel.c (get_buffer_range_char):
11041         Add GC comments.
11042
11043         * keymap.c (keymap_lookup_directly):
11044         * keymap.c (keymap_store):
11045         * keymap.c (ensure_meta_prefix_char_keymapp):
11046         * keymap.c (describe_map):
11047         * keymap.h:
11048         Support new button modifiers.
11049
11050         * lisp-disunion.h (wrap_object):
11051         * lisp-disunion.h (XSETOBJ):
11052         Rename make_obj to wrap_object.
11053
11054         * lisp-union.h:
11055         * lisp-union.h (make_int):
11056         * lisp-union.h (make_char):
11057         Support wrap_object.
11058
11059         * lisp.h:
11060         * lisp.h (LIST_LOOP):
11061         * lisp.h (EXTERNAL_LIST_LOOP):
11062         * lisp.h (LIST_LOOP_2):
11063         * lisp.h (EXTERNAL_LIST_LOOP_1):
11064         * lisp.h (EXTERNAL_LIST_LOOP_2):
11065         * lisp.h (EXTERNAL_LIST_LOOP_3):
11066         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
11067         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11068         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
11069         * lisp.h (EXTERNAL_ALIST_LOOP_5):
11070         * lisp.h (EXTERNAL_ALIST_LOOP_6):
11071         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
11072         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
11073         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
11074         * lisp.h (struct Lisp_Symbol):
11075         * lisp.h (maybe_continuable_error_with_frob):
11076         Fix up section comments.
11077         Add new types for char to indicate usage.
11078         Delete symbols auto-generated from general-slots.h.
11079         Add prototypes for structured error functions.
11080         Add long comments describing looping macros and change interface
11081         so that lvalues are automatically declared.
11082         Add NO_DECLARE macro in case callers want to declare lvalues
11083         themselves.
11084
11085         * lread.c (read_syntax_error):
11086         * lread.c (continuable_read_syntax_error):
11087         * lread.c (read_structure):
11088         * lread.c (sequence_reader):
11089         * lread.c (read_list_conser):
11090         * lread.c (read_compiled_function):
11091         Rename syntax_error and continuable_syntax_error to avoid clash
11092         with same-named structured error functions.
11093
11094         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11095         * menubar-msw.c (populate_menu_add_item):
11096         * menubar-msw.c (populate_or_checksum_helper):
11097         [5].
11098         [9].
11099
11100         * menubar-x.c:
11101         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11102         Mule-ize whole file.
11103
11104         * menubar.c (Fnormalize_menu_item_name): Add optimization.
11105
11106         * mule-charset.c (Fmake_charset):
11107         * mule-wnnfns.c (Fwnn_set_param):
11108         [1].
11109
11110         * ntproc.c (create_child):
11111         * ntproc.c (Fwin32_set_current_locale):
11112         Add comments portending doom.
11113
11114         * objects-msw.c:
11115         * objects-msw.c (old_font_enum_callback_2):
11116         * objects-msw.c (font_enum_callback_1):
11117         * objects-msw.c (mswindows_enumerate_fonts):
11118         [5].
11119
11120         * objects-x.c:
11121         * objects-x.c (allocate_nearest_color):
11122         * objects-x.c (x_parse_nearest_color):
11123         * objects-x.c (x_initialize_color_instance):
11124         * objects-x.c (x_print_color_instance):
11125         * objects-x.c (x_finalize_color_instance):
11126         * objects-x.c (x_valid_color_name_p):
11127         * objects-x.c (x_initialize_font_instance):
11128         * objects-x.c (x_print_font_instance):
11129         * objects-x.c (valid_x_font_name_p):
11130         * objects-x.c (truename_via_FONT_prop):
11131         * objects-x.c (truename_via_random_props):
11132         * objects-x.c (truename_via_XListFonts):
11133         * objects-x.c (x_font_truename):
11134         * objects-x.c (x_font_instance_truename):
11135         * objects-x.c (x_font_instance_properties):
11136         * objects-x.c (x_list_fonts):
11137         * objects-x.c (x_find_charset_font):
11138         Mule-ize entire file.
11139         [7].
11140
11141         * objects-x.h:
11142         Mule-verify.
11143
11144         * print.c:
11145         * print.c (std_handle_out_external):
11146         * print.c (debug_print_no_newline):
11147         * print.c (syms_of_print):
11148         Output to all debugger kinds in debug-print.
11149         Fix console-output code under MSWin to actually work.
11150
11151         * process-nt.c (send_signal):
11152         * process-nt.c (nt_create_process):
11153         Use newer Unicode macros.
11154
11155         * process-unix.c (unix_create_process):
11156         * process-unix.c (unix_canonicalize_host_name):
11157         * process-unix.c (unix_open_network_stream):
11158         [7].
11159
11160         * scrollbar-x.c:
11161         Mule-verify.
11162
11163         * search.c (syms_of_search):
11164         [2].
11165
11166         * select-msw.c (mswindows_destroy_selection):
11167         Use LIST_LOOP_2.
11168
11169         * select-x.c (symbol_to_x_atom):
11170         [7].
11171
11172         * select.c (syms_of_select):
11173         [2].
11174
11175         * sound.c (Fplay_sound_file):
11176         [7].
11177
11178         * specifier.c:
11179         * specifier.c (decode_specifier_type):
11180         * specifier.c (Fvalid_specifier_locale_type_p):
11181         * specifier.c (check_valid_locale_or_locale_type):
11182         * specifier.c (decode_locale):
11183         * specifier.c (decode_locale_type):
11184         * specifier.c (decode_locale_list):
11185         * specifier.c (check_valid_domain):
11186         * specifier.c (decode_specifier_tag_set):
11187         * specifier.c (Fcanonicalize_tag_set):
11188         * specifier.c (Fdefine_specifier_tag):
11189         * specifier.c (Fspecifier_tag_predicate):
11190         * specifier.c (check_valid_inst_list):
11191         * specifier.c (check_valid_spec_list):
11192         * specifier.c (decode_how_to_add_specification):
11193         * specifier.c (check_modifiable_specifier):
11194         * specifier.c (specifier_add_spec):
11195         * specifier.c (boolean_validate):
11196         * specifier.c (display_table_validate):
11197         [9].
11198
11199         * specifier.c (syms_of_specifier):
11200         Move some symbols to general-slots.h.
11201         [2].
11202
11203         * symbols.c:
11204         * symbols.c (Fmapatoms):
11205         * symbols.c (Fapropos_internal):
11206         Add GCPROs.
11207
11208         * symbols.c (set_default_buffer_slot_variable):
11209         * symbols.c (set_default_console_slot_variable):
11210         [1].
11211
11212         * symbols.c (defsymbol_massage_name_1):
11213         * symbols.c (defkeyword_massage_name):
11214         * symbols.c (deferror_1):
11215         * symbols.c (deferror):
11216         * symbols.c (deferror_massage_name_and_message):
11217         * symeval.h:
11218         * symeval.h (DEFSYMBOL):
11219         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
11220
11221         * symbols.c (syms_of_symbols):
11222         [2].
11223
11224         * symsinit.h:
11225         * symsinit.h (init_win32): New.
11226         Also new is syms_of_dialog_mswindows.
11227
11228         * syswindows.h:
11229         Add new Unicode macros, missing Cygwin wide-char functions,
11230         convenience conversion macros for Qmswindows_tstr, macros for
11231         encapsulating required MSWin <-> Cygwin filename conversions,
11232         prototype for dynamically-extracted (not in NT 3.51) functions.
11233
11234         * toolbar-x.c:
11235         Mule-verify.
11236
11237         * tooltalk.c (Fadd_tooltalk_message_arg):
11238         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11239         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11240         [7].
11241
11242         * tooltalk.c (syms_of_tooltalk):
11243         [2].
11244
11245         * unexnt.c:
11246         * unexnt.c (unexec):
11247         Fix up headers, declaration of unexec() to be more standard.
11248
11249 2000-07-20  Martin Buchholz  <martin@xemacs.org>
11250
11251         * offix.h: Revert change to guard macros - they're used in offix.c!
11252
11253 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11254
11255         * lisp.h: Defsubred Fdelete.
11256
11257         * console-msw.h:  (msprinter_default_printer): Added.
11258
11259         * console-msw.c (msprinter_canonicalize_console_connection):
11260         (msprinter_canonicalize_device_connection): Added.
11261
11262         * device-msw.c (msprinter_default_printer):
11263         (Fmswingows_get_default_printer):
11264         (signal_enum_priner_error):
11265         (Fmswingows_printer_list): Added.
11266
11267 2000-07-19  Martin Buchholz <martin@xemacs.org>
11268
11269         * XEmacs 21.2.35 is released.
11270
11271 2000-07-19  Martin Buchholz  <martin@xemacs.org>
11272
11273         * select-x.c (x_handle_selection_request):
11274         Text selected in xemacs and pasted into xterm failed to appear.
11275         Spelling fixes and cosmetic changes.
11276
11277 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11278
11279         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
11280         XEmacs frame (fix for doubling chars in dialog boxes).
11281
11282 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11283
11284         * select.c (select_convert_in, select_convert_out):
11285         Don't call intern() every time.
11286
11287         * select.c (Qselect_convert_in, Qselect_convert_out): New.
11288         * select.c (vars_of_select): Initialise them.
11289
11290 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11291
11292         * select.c (selection-coercible-types): New.
11293
11294         * select.c (own-selection-internal):
11295         * select.c (get-selection-internal):
11296         MULE bug fix - these should default to COMPOUND_TEXT and not
11297         STRING for MULE. I think.
11298
11299         * select.c (select_convert_out): Use selection-coercible-types
11300         to find types that we can attempt to perform coercions on.
11301
11302 2000-07-18  Martin Buchholz  <martin@xemacs.org>
11303
11304         * mule-wnnfns.c:
11305         * mule-canna.c:
11306         Add coding: cookie to identify encoding.
11307
11308         * mule-canna.c (CANNA_mode_keys): make static.
11309         Use proper prototypes, even for functions of no arguments.
11310         Remove external prototype for Fding().
11311
11312         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
11313
11314         * select.c (syms_of_select): Add missing DEFSUBR.
11315
11316 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11317
11318         * select.c (get_selection_internal, own_selection_internal):
11319         Make the type default to STRING, rather than placing a nil type
11320         into Vselection_alist.
11321
11322 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11323
11324         * gpmevent.c (tty_selection_exists_p):
11325         * gpmevent.c (tty_own_selection):
11326         Updated parameter lists.
11327
11328 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
11329
11330         * select.h (selection-alist): Removed declaration.
11331
11332         * select.h (get_local_selection):
11333         * select.c (get_local_selection):
11334         Made static.
11335
11336         * select.h (convert_selection): Removed declaration.
11337         * select.c (convert_selection): Removed.
11338         This function belongs in Lisp.
11339
11340         * select.h (select_convert_in): Declare.
11341         * select.h (select_convert_out): Declare.
11342         * select.c (select_convert_in): New.
11343         * select.c (select_convert_out): New.
11344         New conversion functions for other files to call.
11345
11346         * select.h (select_notify_buffer_kill): Declare.
11347         * select.c (select_notify_buffer_kill): New.
11348         New functions that get called from kill-buffer.
11349
11350         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
11351         X-specific lisp code.
11352
11353         * select.h: Declare some of the lisp-visible functions for
11354         external use.
11355
11356         * select.c (clean_local_selection_data): Removed. This was
11357         a disgusting function, and previously should have been in
11358         select-x.c in any case. The functionality is now provided
11359         in select-convert-from-integer (select.el).
11360
11361         * select.c (available-selection-types): Fixed stupidity where
11362         INTEGER and ATOM got added twice. Also add STRING when we see an
11363         extent.
11364
11365         * select.c (get-selection-internal): Removed symbol stripping. No
11366         longer causes conversion when data comes from the internal cache.
11367
11368         * select.c (syms_of_select): Added new functions.
11369
11370         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
11371         error checking - previously this called abort!
11372
11373         * select-x.c (x_own_selection): Changed comment.
11374
11375         * select-x.c (x_handle_selection_request): Use select_convert_out.
11376         Don't mess with selection-alist; it's an internal variable of select.c.
11377
11378         * select-x.c (x_get_foreign_selection): Use select_convert_in.
11379
11380         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
11381         rather than messing with selection-alist.
11382
11383         * select-msw.c (mswindows_get_foreign_selection):
11384         Use TO_INTERNAL_FORMAT rather than hacking.
11385
11386 2000-07-14  Martin Buchholz  <martin@xemacs.org>
11387
11388         * process-unix.c (unix_open_multicast_group):
11389         (unix_open_multicast_group): Remove useless casts.
11390
11391 2000-07-13  Martin Buchholz  <martin@xemacs.org>
11392
11393         * sound.c (Fplay_sound): Fix `unused variable' warning.
11394
11395         * emacs.c (main): Use correct type for _environ on SCO5.
11396
11397 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
11398
11399         * console.h (own_selection_method):
11400         * console.h (selection_exists_p_method):
11401         * console.h (available_selection_types_method): New.
11402         * console.h (register_selection_data_type_method): New.
11403         * console.h (selection_data_type_name): New.
11404
11405         * console-msw.h (mswindows_destroy_selection): Declare it.  New
11406         function & alist to track GlobalAlloc()'d handles that need
11407         releasing when the clipboard data gets replaced or emptied.
11408
11409         * event-msw.c (mswindows_wnd_proc): Call it.
11410
11411         * lisp.h, general.c (Qappend): New symbol representing a
11412         `how-to-add' mode.
11413
11414         * select.c (own-selection-internal):
11415         * select.c (selection-exists-p):
11416         * select.c (available-selection-types): New.
11417         * select.c (register-selection-data-type): New.
11418         * select.c (selection-data-type-name): New.  New functions to deal
11419         with device-specific selection data formats.
11420         * select.c (selection-converter-out-alist): Renamed.
11421         * select.c (selection-converter-in-alist): New.
11422         * select.c (selection-appender-alist): New.  Added new alists.
11423         * select.c (syms_of_select, vars_of_select): Added new symbols &
11424         variables.
11425         * select.c (get_local_selection): Split.
11426         * select.c: Removed spurious type checking - selections may now be
11427         of any type, not just strings.
11428         * select.c (own-selection-internal):
11429
11430         * select.h, select.c (convert_selection): New. Created
11431         convert_selection() function based on get_local_selection().
11432         * select.h, select.c (QCF_*): New symbols representing mswindows
11433         clipboard formats.
11434         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11435         symbols representing `how-to-add' modes.
11436
11437         * select-msw.c (x_sym_p): New.
11438         * select-msw.c (symbol_to_ms_cf): New.
11439         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11440         symbols & clipboard formats. Can also handle string names.
11441         * select-msw.c (mswindows_own_selection):
11442         * select-msw.c (mswindows_selection_exists_p):
11443         Added `data-type' parameter. Use it.
11444         * select-msw.c (mswindows_available_selection_types): New.
11445         * select-msw.c (mswindows_register_selection_data_type): New.
11446         * select-msw.c (mswindows_selection_data_type_name): New.
11447         * select-msw.c (mswindows_own_selection):
11448         * select-msw.c (mswindows_get_foreign_selection):
11449         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11450         * select-msw.c (console_create_select_mswindows): Added new methods.
11451         * select-msw.c (mswindows_destroy_selection): New.
11452         * select-msw.c (Vhandle_alist): New list.
11453         * select-msw.c (mswindows_own_selection):
11454
11455         * select-x.c (x_own_selection):
11456         * select-x.c (x_selection_exists_p):
11457         * select-x.c: Added some comments about maybe using new
11458         functionality.
11459         * select-x.c (x_own_selection):
11460
11461         * specifier.c: Remove definition of Qappend (now in general.c)
11462         * specifier.c (syms_of_specifier): Remove Qappend.
11463
11464 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11465
11466         * config.h.in: Add socklen_t.
11467
11468         * s/decosf4-0.h: No special compiler flags needed or desired.
11469         In particular, undefine _BSD for DEC OSF 4.0.
11470
11471 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11472
11473         * redisplay-msw.c (msprinter_frame_output_end): Added.
11474         (console_type_create_redisplay_mswindows): Referred the above.
11475
11476         * frame.c (setup_frame_without_minibuffer): Do not create a
11477         default minibuffer frame on a printer device.
11478
11479         * frame-msw.c (apply_dc_geometry): Added.
11480         (msprinter_start_page):
11481         (msprinter_init_frame_3):
11482         (msprinter_eject_page): Use it.
11483
11484         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11485         and removed residual duplex and orientation properties.
11486
11487 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11488
11489         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11490
11491         * unexalpha.c: Remove system prototypes from C sources!
11492
11493 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11494
11495         * eval.c: Remove references to M-x edit-options in DEFUNs for
11496         `defvar' and `defconst'.
11497
11498 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11499
11500         * config.h.in: Remove SMART_INCLUDE hackery.
11501
11502         PostgreSQL hacking:
11503         * config.h.in: Don't use SMART_INCLUDE.
11504
11505         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11506         * inline.c: Simply #include "postgresql.h"
11507         * postgresql.c:
11508         - Don't use SMART_INCLUDE
11509         - Use simply "const".
11510         - Use standard doc string conventions.
11511         - Use correct type for result of PQstatus.
11512
11513 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11514
11515         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11516
11517         C++ compilation changes.
11518         * config.h.in (EXTERN_C): Define.
11519         * config.h.in (not): This is also a C++ keyword.
11520         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11521         * cm.c: Use EXTERN_C.
11522         * redisplay-tty.c: Use EXTERN_C.
11523         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11524
11525 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11526
11527         * general.c: Remove duplicate definition for Qfunction.
11528
11529 2000-07-08  Ben Wing  <ben@xemacs.org>
11530
11531         * device-msw.c (msprinter_init_device):
11532         * device-msw.c (sync_printer_with_devmode):
11533         * device-msw.c (handle_devmode_changes):
11534         * device-msw.c (print_dialog_worker):
11535         * device-msw.c (Fmsprinter_apply_settings):
11536         * device-msw.c (hash_devmode):
11537         * device-msw.c (Fmsprinter_settings_despecialize):
11538         use Qmswindows_tstr, not Qctext.
11539
11540         * vm-limit.c (check_memory_limits):
11541         avoid infinite loop printing warning messages.
11542
11543 2000-07-05  Craig Lanning  <lanning@scra.org>
11544
11545         * Makefile.in.in: Add support for including the Windows resources
11546         when building with the cygwin and mingw targets.
11547
11548         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11549         not set or not correct.
11550         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11551         (init_initial_directory): Don't try to use $PWD on the
11552         WIN32_NATIVE target.
11553
11554         * s\cygwin32.h:
11555         [[Add -mwindows to eliminate console window.]] not required --ben
11556         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11557         (MAIL_USE_POP): removed; now handled by configure.
11558
11559         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11560         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11561         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11562         (MAIL_USE_POP): removed; now handled by configure.
11563         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11564         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11565         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11566         constant string.
11567         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11568         up from <winsock.h> via systime.h.
11569         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11570         (getpagesize): from Dan Holmsand, added.
11571         Added #endif which was left dangling by Ben's mega patch; added
11572         comment to help prevent this in the future.
11573
11574         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11575
11576 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11577
11578         * console-msw.h (struct mswindows_device): Removed unnecessary
11579         cached device geometry values.
11580         Added update_tick and an accessor macro.
11581         (Lisp_Devmode): Added lrecord declaration.
11582         (struct msprinter_device): Contain devmode as a Lisp object.
11583         Added mswindows_get_selected_frame_hwnd();
11584
11585         * console.h (struct console_methods): Indentation nitpicking.
11586
11587         * device-msw.c (mswindows_init_device): Do not initialize geometry
11588         cache. Initialize update tick.
11589         (mswindows_device_system_metrics): Ask the device for its geometry.
11590         (global_free_2_maybe):
11591         (devmode_to_hglobal):
11592         (handle_printer_changes):
11593         (ensure_not_printing):
11594         (print_dialog_worker):
11595         (Fmsprinter_print_setup_dialog):
11596         (Fmsprinter_print_dialog):
11597         (plist_get_margin):
11598         (plist_set_margin):
11599         (Fmsprinter_page_setup_dialog): Added functions.
11600         (sync_printer_with_devmode):
11601         (handle_devmode_changes):
11602         (Fmsprinter_get_settings):
11603         (Fmsprinter_select_settings):
11604         (Fmsprinter_apply_settings):
11605         (allocate_devmode):
11606         (Fmsprinter_settings_copy):
11607         (Fmsprinter_settings_despecialize):
11608         (print_devmode):
11609         (finalize_devmode):
11610         (equal_devmode):
11611         (hash_devmode): Added functions
11612         (syms_of_device_mswindows): Init devmode lrecord class.
11613
11614         * device.h: Added an exfun for find-device.
11615
11616         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11617         geometry; although, recreate the device compatible DC.
11618
11619         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11620         (msprinter_init_frame_3):
11621         (msprinter_frame_property):
11622         (msprinter_internal_frame_property_p):
11623         (msprinter_frame_properties):
11624         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11625         print job properties (will move to device settings).
11626
11627         * lisp.h: Added symbols.
11628
11629         * general.c (syms_of_general): Declared them.
11630
11631         * hash.c (string_hash): Added.
11632
11633         * lrecord.h (lrecord_type): Added devmode lrecord type.
11634
11635 2000-07-02  Mike Sperber <mike@xemacs.org>
11636
11637         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11638         FreeBSD 4.0.
11639
11640 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11641
11642         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11643         integer.
11644
11645 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11646
11647         * data.c (Fstring_to_number): Don't recognize floating point if
11648         base is not 10.
11649
11650 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11651
11652         * glyphs-widget.c (tab_control_query_geometry):
11653         (widget_query_geometry):
11654         (button_query_geometry):
11655         * glyphs.c (text_query_geometry):
11656         Enforce type correctness.
11657
11658 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11659
11660         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11661         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11662
11663 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11664
11665         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11666         conflicts with gcc's fixincluded version of FOO.h.
11667
11668         * glyphs.h (image_instance_geometry): Remove trailing `,'
11669
11670 2000-06-08  Mike Alexander  <mta@arbortext.com>
11671
11672         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11673         (shove_thread): Don't write the same output twice
11674         (make_ntpipe_output_stream): Increase priority of shove thread
11675         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11676         chance to run
11677         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11678         it.
11679
11680 2000-06-12  Ben Wing  <ben@xemacs.org>
11681
11682         * s\mingw32.h (sigset):
11683         * s\windowsnt.h (sigset):
11684         rename msw_ to mswindows_ for consistency with general convention.
11685
11686 2000-06-12  Ben Wing  <ben@xemacs.org>
11687
11688         * console-msw.c:
11689         * console-msw.c (mswindows_get_console_hwnd):
11690         * console-msw.c (mswindows_ensure_console_allocated):
11691         * console-msw.c (mswindows_hide_console):
11692         * console-msw.c (mswindows_show_console):
11693         * console-msw.c (mswindows_ensure_console_buffered):
11694         * console-msw.c (mswindows_output_console_string):
11695         * console-msw.c (mswindows_windows9x_p):
11696         * console-msw.h:
11697         * device-msw.c (mswindows_get_workspace_coords):
11698         * device-msw.c (mswindows_device_system_metrics):
11699         * dialog-msw.c (mswindows_popup_dialog_box):
11700         * event-msw.c (mswindows_wnd_proc):
11701         * frame-msw.c (mswindows_size_frame_internal):
11702         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11703         * menubar-msw.c (displayable_menu_item):
11704         * menubar-msw.c (mswindows_char_is_accelerator):
11705         * nt.c:
11706         * nt.c (mswindows_sigset):
11707         * nt.c (mswindows_sigrelse):
11708         * nt.c (mswindows_sigpause):
11709         * nt.c (mswindows_raise):
11710         * nt.c (timer_proc):
11711         * ntproc.c:
11712         * ntproc.c (find_child_console):
11713         * ntproc.c (sys_kill):
11714         * print.c:
11715         * print.c (std_handle_out_external):
11716         * process-nt.c (find_child_console):
11717         * process-nt.c (send_signal_the_95_way):
11718         * process-nt.c (ensure_console_window_exists):
11719         * process-nt.c (nt_create_process):
11720         * syssignal.h:
11721         rename msw_ to mswindows_ for consistency with general convention.
11722
11723         * emacs.c:
11724         * dumper.c:
11725         include nt.h, not syswindows.h.
11726
11727         * nt.c (mswindows_fstat):
11728         * nt.c (mswindows_stat):
11729         prefix mswindows_ instead of attempting to directly override the
11730         library functions.  fix declarations.
11731
11732         * nt.h:
11733         include syswindows.h.  move some sysdep.h stuff here.
11734
11735         * ntheap.h:
11736         include syswindows.h, not <windows.h>.
11737
11738         * ntplay.c:
11739         clean up headers.
11740
11741         * sysdep.c:
11742         clean up headers.
11743
11744         * sysdep.c (sys_fstat):
11745         * sysdep.c (sys_stat):
11746         call mswindows versions when appropriate.
11747
11748         * sysdep.h:
11749         move mswin decls to nt.h.
11750
11751         * syswindows.h:
11752         add long comment describing appropriate use of the various windows
11753         headers.
11754
11755 2000-06-11  Ben Wing  <ben@xemacs.org>
11756
11757         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11758
11759 2000-06-10  Ben Wing  <ben@xemacs.org>
11760
11761         * Makefile.in.in (release):
11762         Correction to make sure xemacs.exe always dumped when correct.
11763
11764         * alloca.c:
11765         * balloon_help.c:
11766         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11767
11768         * buffer.c (set_buffer_internal):
11769         [[[[2]]]]: Remove HAVE_FEP code.
11770
11771         * buffer.c (init_initial_directory):
11772         [3].
11773
11774         * bytecode.c:
11775         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11776         individual files.
11777
11778         * callproc.c:
11779         * callproc.c (call_process_cleanup):
11780         * callproc.c (Fold_call_process_internal):
11781         * callproc.c (child_setup):
11782         * callproc.c (getenv_internal):
11783         * callproc.c (init_callproc):
11784         * callproc.c (vars_of_callproc):
11785         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11786         __CYGWIN32__ -> CYGWIN.
11787         DOS_NT -> WIN32_NATIVE.
11788         Remove MSDOS support/references, converting to WIN32_NATIVE
11789           where correct.
11790         __MINGW32__ -> MINGW.
11791         Fix windows.h includes.
11792         Remove bogus HAVE_NTGUI.
11793
11794         * config.h.in:
11795         [2].
11796
11797         * console-msw.c:
11798         mswindows_message_outputted added for use in allowing startup
11799         errors on the console to be seen.
11800
11801         * console-msw.c (msw_ensure_console_allocated):
11802         * console-msw.c (msw_output_console_string):
11803         * console-msw.c (DHEADER):
11804         * console-msw.c (DOPAQUE_DATA):
11805         * console-msw.c (DEVENT):
11806         * console-msw.c (DCONS):
11807         * console-msw.c (DCONSCDR):
11808         * console-msw.c (DSTRING):
11809         * console-msw.c (DVECTOR):
11810         * console-msw.c (DSYMBOL):
11811         * console-msw.c (DSYMNAME):
11812         Fix warnings.
11813
11814         * console-stream.c (stream_init_console):
11815         Fix text/binary problems.
11816
11817         * device-msw.c:
11818         * device-msw.c (mswindows_finish_init_device):
11819         * device-msw.c (mswindows_delete_device):
11820         [1].
11821
11822         * device.c (handle_asynch_device_change):
11823         [3].
11824
11825         * dgif_lib.c:
11826         * dgif_lib.c (DGifOpenFileName):
11827         * dgif_lib.c (DGifOpenFileHandle):
11828         * dgif_lib.c (DGifGetLine):
11829         * dgif_lib.c (DGifGetPixel):
11830         Added config.h/lisp.h, fix up includes.
11831         [1].
11832
11833         * dired-msw.c:
11834         [4].
11835
11836         * dired.c:
11837         * dired.c (file_name_completion):
11838         * dired.c (Ffile_attributes):
11839         * dired.c (syms_of_dired):
11840         [1].
11841
11842         * dumper.c:
11843         * dumper.c (pdump_file_unmap):
11844         * dumper.c (pdump_load):
11845         [1].
11846
11847         * editfns.c:
11848         * editfns.c (Ftemp_directory):
11849         * editfns.c (user_login_name):
11850         * editfns.c (Fuser_real_login_name):
11851         * editfns.c (get_home_directory):
11852         [1].
11853
11854         * elhash.c (finish_marking_weak_hash_tables):
11855         [[[[5]]]]: Fix GCC warnings.
11856
11857         * emacs.c:
11858         * emacs.c (mswindows_handle_hardware_exceptions):
11859         * emacs.c (make_arg_list_1):
11860         * emacs.c (main_1):
11861         * emacs.c (Fkill_emacs):
11862         * emacs.c (Fdump_emacs):
11863         [1].
11864         Fix problems with nested crashes, add long comment.
11865
11866         * event-Xt.c (init_event_Xt_late):
11867         [1].
11868
11869         * event-msw.c:
11870         * event-msw.c (mswindows_dde_callback):
11871         * event-msw.c (mswindows_handle_sticky_modifiers):
11872         * event-msw.c (mswindows_wnd_proc):
11873         [1].
11874         [5].
11875
11876         * events.c (character_to_event):
11877         [1].
11878
11879         * fileio.c:
11880         * fileio.c (Ffile_name_directory):
11881         * fileio.c (Ffile_name_nondirectory):
11882         * fileio.c (directory_file_name):
11883         * fileio.c (Fexpand_file_name):
11884         * fileio.c (Fsubstitute_in_file_name):
11885         * fileio.c (Ffile_name_absolute_p):
11886         * fileio.c (check_executable):
11887         * fileio.c (Ffile_readable_p):
11888         * fileio.c (Ffile_accessible_directory_p):
11889         * fileio.c (Ffile_modes):
11890         * fileio.c (Funix_sync):
11891         * fileio.c (vars_of_fileio):
11892         [1]. [4].
11893
11894         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11895
11896         Expand getdefdir defn.
11897         Fix bogus rename() comment.
11898
11899         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11900         to use standard XEmacs include files, e.g. sysfile.h, rather
11901         than system-specific includes.
11902
11903         * fns.c:
11904         * fns.c (Fsubseq):
11905         [5]. [6].
11906
11907         * frame.c (vars_of_frame):
11908         [1].
11909
11910         * getloadavg.c:
11911         * getloadavg.c (getloadavg):
11912         [1]. [6].
11913         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11914         (We don't use it elsewhere in the code; just add a comment.)
11915
11916         * gif_io.c:
11917         [6].
11918         Add config.h.
11919
11920         * glyphs-msw.c:
11921         * glyphs-msw.c (mswindows_resource_instantiate):
11922         [1].
11923
11924         * glyphs-x.c (x_native_layout_instantiate):
11925         [5].
11926
11927         * gui-msw.c (Fmswindows_shell_execute):
11928         [1].
11929
11930         * insdel.c:
11931         [4].
11932
11933         * lisp.h:
11934         [4]. [5].
11935
11936         * lread.c (locate_file_in_directory_mapper):
11937         [1].
11938
11939         * lstream.c:
11940         [4].
11941
11942         * mem-limits.h:
11943         * mem-limits.h (get_lim_data):
11944         [1].
11945
11946         * menubar-msw.c:
11947         [4].
11948
11949         * ndir.h:
11950         [1].
11951
11952         * nt.c:
11953         * nt.c (getwd):
11954         * nt.c (closedir):
11955         * nt.c (rva_to_section):
11956         * nt.c (mswindows_executable_type):
11957         [1]. [6].
11958         Fix closedir() defn.
11959
11960         * nt.h:
11961         [[[[8]]]]: *_OK defs moved to sysfile.h.
11962
11963         * ntproc.c:
11964         [6]. [7].
11965
11966         * objects-x.c:
11967         [4].
11968
11969         * print.c:
11970         * print.c (std_handle_out_external):
11971         [1]. [4].
11972
11973         * process-nt.c:
11974         * process-nt.c (nt_create_process):
11975         [6].
11976         try to fix process quoting somewhat.
11977
11978         * process-unix.c (unix_create_process):
11979         [1].
11980
11981         * process.c:
11982         * process.c (vars_of_process):
11983         Add Vnull_device.
11984
11985         * process.h:
11986         [1].
11987
11988         * realpath.c:
11989         * realpath.c (xrealpath):
11990         [1].
11991
11992         * redisplay-tty.c (init_tty_for_redisplay):
11993         [3].
11994
11995         * redisplay.c:
11996         [4]. [6].
11997
11998         * scrollbar-msw.c:
11999         [4].
12000
12001         * sheap.c:
12002         * sheap.c (more_static_core):
12003         * sheap.c (report_sheap_usage):
12004         [5]. [6].
12005
12006         * signal.c:
12007         * signal.c (alarm_signal):
12008         [1]. [6].
12009
12010         * sound.c:
12011         [6].
12012
12013         * strftime.c:
12014         * strftime.c (zone_name):
12015         [1]. [5].
12016
12017         * symsinit.h (init_sunpro):
12018         [1].
12019
12020         * syscommctrl.h:
12021         commctrl.h not in Cygwin b20.1.
12022
12023         * sysdep.c:
12024         * sysdep.c (endif):
12025         * sysdep.c (sys_subshell):
12026         * sysdep.c (init_baud_rate):
12027         * sysdep.c (emacs_get_tty):
12028         * sysdep.c (emacs_set_tty):
12029         * sysdep.c (tty_init_sys_modes_on_device):
12030         * sysdep.c (init_system_name):
12031         * sysdep.c (sys_open):
12032         * sysdep.c (interruptible_open):
12033         * sysdep.c (sys_fopen):
12034         * sysdep.c (sys_mkdir):
12035         * sysdep.c (sys_rename):
12036         * sysdep.c (get_process_times_1):
12037         [1]. [6].
12038
12039         * sysdep.h:
12040         [1].
12041
12042         * sysdir.h:
12043         * sysdir.h (DIRENTRY_NONEMPTY):
12044         [1]. [6].
12045
12046         * sysdll.c (dll_init):
12047         * sysdll.h:
12048         [1].
12049
12050         * sysfile.h:
12051         [1]. [6]. [8].
12052         added text/binary defs.
12053
12054         * sysfloat.h:
12055         [1].
12056
12057         * sysproc.h:
12058         * sysproc.h (EDESTADDRREQ):
12059         * sysproc.h (poll_fds_for_input):
12060         [1]. [6].
12061
12062         * syspwd.h:
12063         [6].
12064
12065         * syssignal.h:
12066         [1].
12067
12068         * systime.h:
12069         [1]. [6].
12070
12071         * systty.h:
12072         [1].
12073
12074         * syswindows.h:
12075         [1].
12076         Always define WIN32_LEAN_AND_MEAN.
12077
12078         * unexcw.c (unexec):
12079         [5].
12080
12081         * unexec.c:
12082         * unexec.c (copy_text_and_data):
12083         * unexec.c (adjust_lnnoptrs):
12084         [1].
12085
12086         * unexnt.c:
12087         * unexnt.c (_start):
12088         [1].
12089
12090 2000-06-07  Ben Wing  <ben@xemacs.org>
12091
12092         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
12093         was used only as a model.  We've long since extracted any useful
12094         logic or code out of this. (I just did an exhaustive search.)
12095
12096         * s\msdos.h: Removed.
12097
12098         * s\windows95.h: Removed.
12099
12100 2000-06-10  Ben Wing  <ben@xemacs.org>
12101
12102         * s\cygwin32.h:
12103         [1]. [5].
12104         Don't use extern with fun defs.
12105
12106         * s\mingw32.h:
12107         [1]. [7].
12108         Remove nt\inc include.
12109         Remove getdisk, getdefdir. (The former is unused, the latter
12110         expanded in fileio.h.)
12111
12112         * s\windowsnt.h:
12113         * s\windowsnt.h (WIN32_NATIVE):
12114         * s\windowsnt.h (HAVE_STRCASECMP):
12115         [1]. [7].
12116         Add long comment about preprocessor changes.
12117         Remove getdisk, getdefdir. (The former is unused, the latter
12118         expanded in fileio.h.)
12119
12120 2000-06-10  Ben Wing  <ben@xemacs.org>
12121
12122         * m\arm.h:
12123         * m\delta.h:
12124         * m\intel386.h:
12125         * m\sequent.h:
12126         * m\template.h:
12127         * m\windowsnt.h:
12128         [1].
12129         Remove bogus/unused NO_SOCK_SIGIO.
12130
12131 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
12132
12133         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
12134         not an Emchar.
12135
12136 2000-06-04  Mike Sperber <mike@xemacs.org>
12137
12138         * casetab.c (set_case_table): For `set-standard-case-table',
12139         actually deposit the new case tables where the rest of XEmacs can
12140         see them.
12141
12142 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
12143
12144         * data.c (Faset): Don't cast XCHAR() to unsigned char.
12145
12146 2000-06-05  Ben Wing  <ben@xemacs.org>
12147
12148         * callproc.c (child_setup): Don't do close_load_descs() under
12149         MS Windows.  Put in a comment explaining why.
12150
12151 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
12152
12153         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
12154         Toolkit shell" which breaks `kill-compilation' on Windows NT
12155         native, retaining STDERR handling improvements.
12156
12157 2000-06-01  Andreas Jaeger  <aj@suse.de>
12158
12159         * s/s390.h: Support for S390, based on a patch by Martin
12160         Schwidefsky <schwidefsky@de.ibm.com>.
12161
12162 2000-05-30  Andy Piper  <andy@xemacs.org>
12163
12164         * window.c (allocate_window):
12165         (make_dummy_parent):
12166         (Fset_window_configuration): use new hashtable type.
12167
12168         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
12169         (struct image_instantiator_methods):
12170         (struct Lisp_Image_Instance): make instance geometry signed.
12171
12172         * glyphs.c (instantiate_image_instantiator):
12173         (image_instance_query_geometry):
12174         (image_instance_layout):
12175         (image_instance_layout):
12176         (query_string_geometry):
12177         (text_query_geometry):
12178         (image_instantiate):
12179         (image_instantiate):
12180         (cache_subwindow_instance_in_frame_maybe):
12181         (subwindow_query_geometry): make instance geometry signed.
12182
12183         * glyphs-widget.c (widget_query_geometry):
12184         (widget_layout):
12185         (button_query_geometry):
12186         (tree_view_query_geometry):
12187         (tab_control_query_geometry):
12188         (layout_query_geometry):
12189         (layout_layout):
12190         (native_layout_layout): make instance geometry signed.
12191
12192 2000-05-29  Olivier Galibert  <galibert@pobox.com>
12193
12194         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
12195         constant.
12196
12197         * general.c (syms_of_general): Add Qfull_assoc symbol.
12198
12199         * data.c (finish_marking_weak_lists): Mark full-assoc lists
12200         correctly.
12201         (decode_weak_list_type): Decode full-assoc type.
12202         (encode_weak_list_type): Encode full-assoc type.
12203         (Fmake_weak_list): Update doc string.
12204
12205 2000-05-30  Andy Piper  <andy@xemacs.org>
12206
12207         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
12208
12209         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
12210         (decode_hash_table_weakness): ditto.
12211         (Fhash_table_weakness): ditto.
12212         (Fhash_table_type): ditto.
12213         (finish_marking_weak_hash_tables): ditto.
12214         (hash_table_weakness_validate): ditto.
12215         (syms_of_elhash): ditto.
12216
12217 2000-05-28  Martin Buchholz <martin@xemacs.org>
12218
12219         * XEmacs 21.2.34 is released.
12220
12221 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12222
12223         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
12224         start cache.
12225         (updating_line_start_cache): Gone.
12226         (regenerate_window): Replace resetting of VERTICAL_CLIP by
12227         generic code to force a minimum of 1 line laid out in the
12228         CMOTION_DISP case.
12229
12230 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12231
12232         * glyphs.c (instantiate_image_instantiator): Check for initialized
12233         height & width no longer special cases IMAGE_NOTHING.
12234         (nothing_instantiate): Set height and width of instance.
12235
12236 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12237
12238         * unexelf.c (unexec): Search for ".data" section.
12239         Initialize new_data2_offset from old_data_index.
12240         Remove redundant check for ElfW.
12241
12242 2000-05-23  Andy Piper  <andy@xemacs.org>
12243
12244         * glyphs.c (get_image_instantiator_governing_domain): allow more
12245         specific domains as the governing domain rather than expecting an
12246         exact match. This fixes problems with layouts.
12247
12248 2000-05-22  Andy Piper  <andy@xemacs.org>
12249
12250         * redisplay-output.c (compare_runes): check for non-images
12251
12252         * glyphs.c (set_glyph_dirty_p): ditto.
12253         (update_glyph_cachel_data): ditto.
12254
12255         * glyphs-widget.c (layout_post_instantiate): ditto.
12256         (layout_post_instantiate): ditto.
12257
12258         * event-msw.c (mswindows_wnd_proc): warning removal.
12259
12260 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
12261
12262         * s\mingw32.h: Added #undef for CLASH_DETECTION.
12263
12264         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
12265
12266         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
12267
12268         * nt.c (rva_to_section): mingw32 needs rva_to_section.
12269         (mswindows_executable_type): mingw32 now has enough headers for
12270         this to work.
12271
12272 2000-05-20  Andy Piper  <andy@xemacs.org>
12273
12274         * console-msw.c (mswindows_output_last_error): ; -> ,
12275
12276 2000-05-12  Andy Piper  <andy@xemacs.org>
12277
12278         * console-msw.c (FROB): compare ints with ints.
12279
12280 2000-05-11  Andy Piper  <andy@xemacs.org>
12281
12282         * glyphs-x.c (x_finalize_image_instance): make minimal build
12283         happy.
12284
12285 2000-05-20  Ben Wing  <ben@xemacs.org>
12286
12287         * event-Xt.c:
12288         * event-Xt.c (vars_of_event_Xt):
12289         move modifier-keys-are-sticky to event-stream.c.
12290
12291         * event-msw.c:
12292         * event-msw.c (mswindows_enqueue_mouse_button_event):
12293         * event-msw.c (key_needs_default_processing_p):
12294         * event-msw.c (XEMSW_LCONTROL):
12295         * event-msw.c (mswindows_handle_sticky_modifiers):
12296         * event-msw.c (FROB):
12297         * event-msw.c (clear_sticky_modifiers):
12298         * event-msw.c (output_modifier_keyboard_state):
12299         * event-msw.c (output_alt_keyboard_state):
12300         * event-msw.c (mswindows_wnd_proc):
12301         * event-msw.c (mswindows_modifier_state):
12302         * event-msw.c (emacs_mswindows_handle_magic_event):
12303         implement sticky modifiers.
12304
12305         * event-stream.c:
12306         * event-stream.c (vars_of_event_stream):
12307         move modifier-keys-are-sticky here.
12308
12309         * lisp.h:
12310         add CHECK_FUNCTION.
12311
12312         * rangetab.c:
12313         implement map-range-table.
12314
12315
12316 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
12317
12318         * redisplay-tty.c (reset_tty_modes):
12319         (tty_redisplay_shutdown): Adjust argument type to
12320         tty_frame_output_end.
12321
12322 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12323
12324         * eval.c (Fbacktrace): Don't output a line with only right
12325         parenthesis.
12326
12327 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
12328
12329         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
12330         (Fpq_reset_poll): Ditto.
12331
12332 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
12333
12334         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
12335
12336 2000-05-16  Ben Wing  <ben@xemacs.org>
12337
12338         * buffer.c:
12339         * buffer.c (dfc_convert_to/from_internal_format):
12340         * buffer.c (reinit_vars_of_buffer):
12341         Fix conversion functions to allow reentrancy.
12342
12343         * console-msw.c:
12344         * console-msw.c (mswindows_output_last_error):
12345         New fun, generally useful -- output a human-readable
12346         version of GetLastError() on the console.
12347
12348         * console-msw.h:
12349         * console-msw.h (struct mswindows_frame):
12350         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
12351
12352         * console-stream.c (stream_output_begin):
12353         * console-stream.c (stream_output_end):
12354         * console-stream.c (stream_output_vertical_divider):
12355         * console-stream.c (stream_clear_region):
12356         * console-stream.c (stream_flash):
12357         * console-stream.c (console_type_create_stream):
12358         Delete blank stream methods, not needed.
12359
12360         * console.h (struct console_methods):
12361         Split begin/end methods into window and frame.
12362
12363         * event-msw.c:
12364         * event-msw.c (mswindows_handle_paint):
12365         * event-msw.c (output_alt_keyboard_state):
12366         * event-msw.c (mswindows_wnd_proc):
12367         * event-msw.c (vars_of_event_mswindows):
12368         Comment about problems with ignored-expose.
12369         Define mswindows-debug-events; not really implemented.
12370
12371         * frame-msw.c (mswindows_init_frame_1):
12372         random cleanups.
12373
12374         * glyphs-msw.c:
12375         * glyphs-msw.c (begin_defer_window_pos):
12376         * glyphs-msw.c (mswindows_unmap_subwindow):
12377         * glyphs-msw.c (mswindows_map_subwindow):
12378         * glyphs-msw.c (mswindows_resize_subwindow):
12379         Use DeferWindowPos to reduce flashing when mapping/unmapping.
12380
12381         * glyphs.c (make_image_instance_1):
12382         Fix crash.
12383
12384         * gutter.c (Fredisplay_gutter_area):
12385         Use new begin/end methods.
12386
12387         * lisp.h (Dynarr_new2):
12388         New creation fun.
12389
12390         * redisplay-msw.c:
12391         * redisplay-msw.c (mswindows_frame_output_begin):
12392         * redisplay-msw.c (mswindows_frame_output_end):
12393         * redisplay-msw.c (console_type_create_redisplay_mswindows):
12394         New begin/end methods -- handle DeferWindowPos.
12395
12396         * redisplay-output.c (redisplay_move_cursor):
12397         * redisplay-output.c (redraw_cursor_in_window):
12398         * redisplay-output.c (redisplay_update_line):
12399         * redisplay-output.c (redisplay_output_window):
12400         New begin/end methods.
12401
12402         * redisplay-tty.c:
12403         * redisplay-tty.c (tty_frame_output_begin):
12404         * redisplay-tty.c (tty_frame_output_end):
12405         * redisplay-tty.c (console_type_create_redisplay_tty):
12406         New begin/end methods.
12407
12408         * redisplay-x.c:
12409         * redisplay-x.c (x_window_output_begin):
12410         * redisplay-x.c (x_window_output_end):
12411         * redisplay-x.c (console_type_create_redisplay_x):
12412         New begin/end methods.
12413
12414         * redisplay.c (redisplay_frame):
12415         * redisplay.c (Fredisplay_echo_area):
12416         New begin/end methods.
12417         use MAYBE_DEVMETH for clear_frame; it may not exist.
12418
12419         * window.h (WINDOW_XFRAME):
12420         WINDOW_XFOO macros -- get locale and decode struct pointer.
12421
12422
12423 2000-05-12  Ben Wing  <ben@xemacs.org>
12424
12425         * emacs.c:
12426         * emacs.c (ensure_no_quitting_from_now_on):
12427         * emacs.c (fatal_error_signal):
12428         * emacs.c (mswindows_handle_hardware_exceptions):
12429         * emacs.c (main):
12430         * emacs.c (Fkill_emacs):
12431         * emacs.c (shut_down_emacs):
12432         * emacs.c (assert_failed):
12433         various improvements in fatal error handling.
12434
12435         * eval.c:
12436         move preparing_for_armageddon to emacs.c.
12437
12438         * lisp.h:
12439         declare fatal_error_in_progress.
12440
12441         * print.c:
12442         * print.c (std_handle_out_external):
12443         * print.c (std_handle_out_va):
12444         * print.c (stderr_out):
12445         * print.c (stdout_out):
12446         use console under mswin when no standard output.
12447         don't do code conversion during fatal error.
12448
12449         * scrollbar.c (Fscrollbar_page_up):
12450         * scrollbar.c (Fscrollbar_page_down):
12451         fix missing else.  reindent.
12452
12453 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12454
12455         Emergency fix.
12456
12457         * glyphs.h (GLYPH_CACHEL_DESCENT):
12458         (GLYPH_CACHEL_DESCENT):
12459         (GLYPH_CACHEL_DESCENT):
12460         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12461         used in case these are inline functions.
12462         Use more absurd values to error check.
12463
12464         include window.h for error check functions.
12465
12466 2000-05-11  Ben Wing  <ben@xemacs.org>
12467
12468         * cmdloop.c (Freally_early_error_handler):
12469         Display message box under windows; otherwise, message will disappear
12470         before it can be viewed.
12471
12472         * console-msw.c:
12473         * console-msw.c (Fmswindows_message_box):
12474         * console-msw.c (FROB):
12475         * console-msw.c (syms_of_console_mswindows):
12476         Define new fun `mswindows-message-box'.
12477         #### I will merge this into `popup-dialog-box'; just give me
12478         a bit of time.
12479
12480         * general.c:
12481         * general.c (syms_of_general):
12482         Some new symbols used in `mswindows-message-box'.
12483
12484         * glyphs.c:
12485         * glyphs.c (Fset_image_instance_property):
12486         put warning in this fun.
12487
12488         * glyphs.h:
12489         * glyphs.h (GLYPH_CACHEL_WIDTH):
12490         * glyphs.h (GLYPH_CACHEL_ASCENT):
12491         * glyphs.h (GLYPH_CACHEL):
12492         * glyphs.h (GLYPH_CACHEL_GLYPH):
12493         define error-checking versions to try to catch a bug i've seen --
12494         redisplay gets in an infinite loop because the glyph width of the
12495         continuation glyph is 65535.
12496
12497         * lisp.h:
12498         Extern message-box stuff.
12499
12500         * window.c (allocate_window):
12501         * window.c (make_dummy_parent):
12502         * window.c (Fset_window_configuration):
12503         Use EQUAL not EQ for subwindow caches to make them work a bit
12504         better. (Something is still very broken.)
12505
12506
12507 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12508
12509         * glyphs.c (image_instantiate): Suppress gcc warnings.
12510         (Fmake_image_instance): Fix doc string.
12511         * specifier.c (Fmake_specifier): Ditto.
12512
12513 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12514
12515         * paths.h.in (PATH_LOCK): Removed.
12516         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12517         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12518
12519 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12520
12521         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12522         Document (featurep '(and xemacs 21.02)).
12523
12524 2000-05-09  Ben Wing  <ben@xemacs.org>
12525
12526         * buffer.c (complex_vars_of_buffer):
12527         update modeline-format doc.
12528
12529         * device.h:
12530         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12531
12532         * emacs.c:
12533         timeline of all released versions of Emacs, for use in creating
12534         authorship comments and in synching up.
12535
12536         * glyphs-widget.c (image_instantiator_buttons):
12537         * glyphs-widget.c (image_instantiator_edit_fields):
12538         * glyphs-widget.c (image_instantiator_combo_box):
12539         * glyphs-widget.c (image_instantiator_scrollbar):
12540         * glyphs-widget.c (image_instantiator_progress_guage):
12541         * glyphs-widget.c (image_instantiator_tree_view):
12542         * glyphs-widget.c (image_instantiator_tab_control):
12543         * glyphs-widget.c (image_instantiator_labels):
12544         * glyphs-widget.c (image_instantiator_layout):
12545         * glyphs-widget.c (image_instantiator_native_layout):
12546         rename decode_domain method to governing_domain.
12547
12548         * glyphs.c:
12549         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12550         * glyphs.c (add_entry_to_device_ii_format_list):
12551         make sure we don't put an entry more than once into the list.
12552         * glyphs.c (check_instance_cache_mapper):
12553         *************************************************************
12554         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12555         HAVE BEEN GETTING.
12556         *************************************************************
12557         * glyphs.c (get_image_instantiator_governing_domain):
12558         clean up, expand on new concept of governing domain.
12559         * glyphs.c (instantiate_image_instantiator):
12560         * glyphs.c (allocate_image_instance):
12561         use governing_domain instead of cache_domain in naming.
12562         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12563         * glyphs.c (make_image_instance_1):
12564         * glyphs.c (Fmake_image_instance):
12565         allow for any domain (not just device), and process the
12566         governing domain correctly.  very big doc fix.
12567         * glyphs.c (Fimage_instance_domain):
12568         new primitive, to retrieve the governing domain of an image instance.
12569         * glyphs.c (image_instantiate):
12570         use new governing_domain stuff.  this fixes a crash you could get
12571         by instantiating certain widget glyphs in frame locales. (should
12572         signal an error instead of crashing.)
12573         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12574         * glyphs.c (Fglyphp): clean up doc.
12575         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12576         * glyphs.c (syms_of_glyphs):
12577         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12578         * glyphs.c (image_instantiator_format_create): add some comments about
12579         bogus code.
12580         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12581         for current-display-table. (Apparently Hrjove implemented in 1998 a
12582         design I wrote up in 1996, but didn't update the doc string.)
12583
12584         * glyphs.h: clean up a doc string.
12585         * glyphs.h (governing_domain):
12586         * glyphs.h (struct image_instantiator_methods):
12587         changes for governing_domain stuff.
12588
12589         * gutter.c:
12590         * gutter.c (Fgutter_specifier_p):
12591         * gutter.c (Fgutter_size_specifier_p):
12592         * gutter.c (Fgutter_visible_specifier_p):
12593         * objects.c:
12594         * objects.c (Fcolor_specifier_p):
12595         * objects.c (Ffont_specifier_p):
12596         * objects.c (Fface_boolean_specifier_p):
12597         doc strings moved to make-*-specifier.
12598
12599         * redisplay.c (add_disp_table_entry_runes_1):
12600         * redisplay.c (generate_fstring_runes):
12601         * redisplay.c (screen):
12602         add random comments and doc strings.
12603
12604         * specifier.c:
12605         * specifier.c (Fmake_specifier):
12606         major overhaul of this doc string.
12607
12608         * specifier.c (Fvalid_specifier_domain_p):
12609         comment about the bogosity of image instances being domains.
12610         * specifier.c (decode_domain):
12611         now non-static, used in glyphs.c.
12612         * specifier.c (specifier_instance):
12613         comment about the bogosity of image instances being domains.
12614         * specifier.c (Fgeneric_specifier_p):
12615         move doc string to make-generic-specifier.
12616         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12617         rebackslashify.
12618
12619         * specifier.h:
12620         * specifier.h (DOMAIN_FRAME):
12621         * specifier.h (DOMAIN_LIVE_P):
12622         * specifier.h (DOMAIN_XDEVICE):
12623         rebackslashify.
12624         add comments about problems with these macros.
12625         prototype for decode_domain.
12626
12627         * toolbar.c:
12628         * toolbar.c (Ftoolbar_specifier_p):
12629         move doc string to `make-toolbar-specifier'.
12630
12631         * window.c (window_unmap_subwindows_cache_mapper):
12632         *************************************************************
12633         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12634         HAVE BEEN GETTING.
12635         *************************************************************
12636
12637 2000-05-09  Andy Piper  <andy@xemacs.org>
12638
12639         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12640
12641         * window.c (Fset_window_configuration): reset the frame subwindow
12642         cache and re-initialize the window subwindow caches.
12643
12644         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12645
12646 2000-05-09  Ben Wing  <ben@xemacs.org>
12647
12648         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12649         DWORD.
12650
12651 2000-04-26  Mike Woolley  <mike@bulsara.com>
12652
12653         * ntheap.c: Changed recreate_heap to limit the amount reserved
12654         for the heap to that which is actually available. Also now
12655         displays a message box (with some dignostics) in the event that
12656         it still can't start.
12657
12658 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12659
12660         * callproc.c (Fold_call_process_internal): GCPRO path
12661
12662 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12663
12664         Patch by Bill Perry.
12665
12666         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12667         back data instead of #ifdef.
12668         (Fscrollbar_page_down): ditto.
12669
12670 2000-05-07  Ben Wing  <ben@xemacs.org>
12671
12672         * buffer.h:
12673         Kludge for defining Qmswindows_tstr.
12674
12675         * nt.c:
12676         * nt.c (open_input_file):
12677         * nt.c (open_output_file):
12678         * nt.c (rva_to_section):
12679         * nt.c (mswindows_executable_type):
12680         Move all memory-mapped-file routines here (some were in unexnt.c,
12681         which is bad because they are used by process-nt.c, and unexnt
12682         won't be around when portable dumping).  Synched the above routines
12683         with FSF 20.6.
12684
12685         * nt.h:
12686         Removed ifdef'd out bogus code.
12687         Fixed some prototypes.
12688
12689         * nt.h (file_data):
12690         * nt.h (OFFSET_TO_RVA):
12691         * nt.h (RVA_TO_OFFSET):
12692         * nt.h (RVA_TO_PTR):
12693         Moved the memory-mapped-file structures, macros and prototypes
12694         here, to parallel nt.c.  ntheap.h should really be removed
12695         entirely, and it's a non-portable-dumper specific file.
12696
12697         * ntheap.h (round_to_next):
12698         Moved the memory-mapped-file structures, macros and prototypes
12699         to nt.h.
12700
12701         * ntproc.c (compare_env):
12702         Moved rva_to_section and mswindows_executable_type to nt.c.
12703         Moved compare_env to process-nt.c.
12704         ntproc.c will die, one day.
12705
12706         * ntproc.c (sys_spawnve):
12707         Account for win32_ -> mswindows_.
12708
12709         * process-nt.c:
12710         * process-nt.c (struct nt_process_data):
12711         * process-nt.c (ensure_console_window_exists):
12712         * process-nt.c (compare_env):
12713         * process-nt.c (nt_create_process):
12714         * process-nt.c (nt_kill_process_by_pid):
12715         * process-nt.c (syms_of_process_nt):
12716         * process-nt.c (vars_of_process_nt):
12717         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12718         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12719         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12720         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12721         Move compare_env here from ntproc.c.
12722
12723         * process.c (Fprocess_send_region):
12724         Takes an optional fourth argument, BUFFER, which should fix some
12725         problems with call-process.
12726
12727         * syscommctrl.h:
12728         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12729
12730         * syswindows.h:
12731         Move ICC_BAR_CLASSES to syscommctrl.h.
12732         Add preliminary macros for MSWindows/Mule.  More to come.
12733
12734         * unexnt.c:
12735         * unexnt.c (unexec):
12736         open_output_file moved to nt.c.
12737
12738
12739 2000-05-05  Andy Piper  <andy@xemacs.org>
12740
12741         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12742         instance from the frame cache also since GC may catch up too late
12743         to make frame deletion sane.
12744
12745 2000-05-04  Andy Piper  <andy@xemacs.org>
12746
12747         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12748         (x_finalize_image_instance): ungcpro on deletion.
12749
12750         * glyphs.c (image_instantiator_format_create): give pointers a
12751         query geometry method so that the geometry is at least set.
12752
12753         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12754         initialize layouts if using widgets.
12755
12756 2000-05-03  Andy Piper  <andy@xemacs.org>
12757
12758         * nt.c: remove bogus reference to sysmmsystem.h
12759
12760         * gui-x.c (popup_selection_callback): fix no selection abort.
12761
12762 2000-05-02  Andy Piper  <andy@xemacs.org>
12763
12764         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12765         (mswindows_widget_instantiate): ditto.
12766
12767         * glyphs-widget.c (initialize_widget_image_instance): initialize
12768         children correctly.
12769         (widget_instantiate): cope with children and items in the same
12770         instance.
12771
12772         * glyphs.c (mark_image_instance): cope with children as a first
12773         class member.
12774         (image_instance_equal): ditto.
12775         (image_instance_hash): ditto.
12776         (image_instance_changed): ditto.
12777
12778 2000-04-30  Andy Piper  <andy@xemacs.org>
12779
12780         * glyphs.c (subwindow_query_geometry): new function. Return some
12781         defaults.
12782         (subwindow_instantiate): don't assign dimensions if none have been
12783         given.
12784         (image_instantiator_format_create): add subwindow_query_geometry.
12785         (print_image_instance): cope with layouts as widgets.
12786
12787 2000-04-29  Andy Piper  <andy@xemacs.org>
12788
12789         * frame.c (delete_frame_internal): call
12790         free_frame_subwindow_instance_cache so that all subwindows are
12791         finalized before their parent.
12792         (mark_frame): remove subwindow_cachels.
12793         (Fmake_frame): remove subwindow_cachel manipulation.
12794         (allocate_frame_core): subwindow_instance_cache is a weak list.
12795         (delete_frame_internal): set subwindow_instance_cache to nil.
12796
12797         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12798         finalization safe.
12799         (mswindows_finalize_image_instance): use the device
12800         not the domain as the domain may have died already.
12801
12802         * glyphs-x.c (x_finalize_image_instance): ditto.
12803         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12804         HEIGHT.
12805
12806         * redisplay-output.c (redisplay_unmap_subwindows): update for
12807         subwindow instance cache as a weak list.
12808         (redisplay_unmap_subwindows_maybe): ditto.
12809         (redisplay_unmap_subwindows_except_us): ditto.
12810
12811         * glyphs.c (unmap_subwindow): error checking will check the domain
12812         so don't deal with it here. Don't use cachels anymore.
12813         (map_subwindow): ditto.
12814         (update_subwindow_cachel_data): remove old accessor names.
12815         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12816         (Fresize_subwindow): don't update cachel.
12817         (mark_subwindow_cachels):
12818         (update_subwindow_cachel_data):
12819         (add_subwindow_cachel):
12820         (get_subwindow_cachel_index):
12821         (update_subwindow_cachel):
12822         (reset_subwindow_cachels):
12823         (mark_subwindow_cachels_as_not_updated): deleted.
12824         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12825         subwindow instance to the frame cache.
12826         (find_matching_subwindow): update for subwindow instance cache as
12827         a weak list.
12828         (update_widget_instances): ditto.
12829         (image_instance_type_to_mask):inlined.
12830         (free_frame_subwindow_instance_cache): new function. finalize all
12831         subwindows that are instantiated.
12832
12833         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12834         of cachel information.
12835         (IMAGE_INSTANCE_DISPLAY_X):
12836         (IMAGE_INSTANCE_DISPLAY_Y):
12837         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12838         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12839         (XIMAGE_INSTANCE_DISPLAY_X):
12840         (XIMAGE_INSTANCE_DISPLAY_Y):
12841         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12842         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12843         remove subwindow_cachel structure and function references.
12844         (image_instance_type_to_mask): inline from glyphs.c
12845
12846         * redisplay.c (redisplay_frame): remove subwindow_cachel
12847         references.
12848
12849         * frame.h (struct frame): remove subwindow_cachels.
12850         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12851
12852         * frameslots.h: add subwindow_instance_cache.
12853
12854         * window.c (replace_window): check subwindow cache of replacement.
12855         (window_unmap_subwindows_cache_mapper):
12856         (window_unmap_subwindows): new functions. Unmap all subwindows
12857         cached on this window.
12858         (mark_window_as_deleted): unmap all subwindows.
12859
12860 2000-04-27  Andy Piper  <andy@xemacs.org>
12861
12862         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12863
12864         * glyphs-widget.c (widget_layout): return something.
12865         (layout_layout): return something. Fail if not initialized.
12866         (layout_query_geometry): ditto.
12867         (image_instantiator_native_layout): new function. Initialized the
12868         native layout type.
12869         (widget_instantiate): don't do layout stuff here.
12870
12871         * glyphs.c (instantiate_image_instantiator): reorded calling or
12872         instantiate and post_instantiate with layout in between.
12873         (image_instance_layout): be more selective about deciding whether
12874         the layout has been done or not.
12875
12876         * glyphs.h (struct image_instantiator_methods): return a value
12877         from layout_method.
12878
12879 2000-04-26  Andy Piper  <andy@xemacs.org>
12880
12881         * glyphs.c (allocate_image_instance): make initial width and
12882         height unspecified. Set initialized to 0.
12883
12884         * syscommctrl.h new file. Encapsulates commctrl.h.
12885
12886         * syswindows.h new file. Encapsulates windows.h.
12887
12888         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12889         * nt.c: ditto.
12890         * console-msw.h: ditto.
12891
12892         * redisplay-tty.c (tty_output_display_block): remove layout references.
12893
12894         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12895         window handle rather than just the frame.
12896
12897         * glyphs.c (mark_image_instance): remove layout references.
12898         (print_image_instance): ditto.
12899         (image_instance_equal): ditto.
12900         (image_instance_hash): ditto.
12901         (decode_image_instance_type): ditto.
12902         (encode_image_instance_type): ditto.
12903         (image_instantiate): ditto.
12904         (allocate_glyph): ditto.
12905         (Fimage_instance_height): ditto.
12906         (Fimage_instance_width): ditto.
12907         (update_subwindow): ditto.
12908
12909         * redisplay-x.c (x_output_display_block): recode for layouts as
12910         widgets.
12911
12912         * redisplay-output.c (redisplay_output_layout): recode for layouts
12913         as widgets.
12914         (compare_runes): remove layout references.
12915
12916         * redisplay-msw.c (mswindows_output_display_block): recode for
12917         layouts as widgets.
12918
12919         * glyphs-widget.c (image_instantiator_layout): remove
12920         layout_possible_dest_types.
12921         (layout_possible_dest_types): deleted.
12922
12923         * glyphs.h (image_instance_type): remove layout references.
12924         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12925         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12926         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12927
12928 2000-04-25  Andy Piper  <andy@xemacs.org>
12929
12930         * glyphs-widget.c (image_instantiator_buttons):
12931         (image_instantiator_edit_fields):
12932         (image_instantiator_combo_box):
12933         (image_instantiator_scrollbar):
12934         (image_instantiator_progress_guage):
12935         (image_instantiator_tree_view):
12936         (image_instantiator_tab_control):
12937         (image_instantiator_labels):
12938         (image_instantiator_layout): call default post_instantiate method.
12939         (widget_post_instantiate): new function. Simply lays out the
12940         widgets.
12941
12942         * glyphs.h (struct image_instantiator_methods): add
12943         post_instantiate method.
12944
12945         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12946         method calls.
12947
12948 2000-04-23  Andy Piper  <andy@xemacs.org>
12949
12950         * glyphs.h (struct image_instantiator_methods): add
12951         decode_domain_method.
12952         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12953         derived from the domain.
12954         (IMAGE_INSTANCE_FRAME): new accessor.
12955         (XIMAGE_INSTANCE_FRAME): ditto.
12956
12957         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12958         instead of _SUBWINDOW_FRAME.
12959         (finalize_image_instance): ditto.
12960         (Fimage_instance_foreground): ditto.
12961         (Fimage_instance_background): ditto.
12962         (image_instantiate): ditto.
12963         (update_subwindow_cachel): ditto.
12964         (update_subwindow): ditto.
12965         (unmap_subwindow): ditto.
12966         (map_subwindow): ditto
12967         (subwindow_instantiate): ditto.
12968         * glyphs-msw.c (mswindows_update_widget): ditto.
12969         (mswindows_progress_gauge_instantiate): ditto.
12970         (mswindows_tab_control_update): ditto.
12971         * glyphs-x.c (x_update_widget): ditto.
12972         (x_widget_instantiate): ditto.
12973         (x_tab_control_instantiate): ditto.
12974         (x_tab_control_update): ditto.
12975         * event-msw.c (mswindows_wnd_proc): ditto
12976
12977         * glyphs-widget.c (image_instantiator_layout): use
12978         subwindow_decode_domain.
12979         (image_instantiator_buttons): ditto.
12980         (image_instantiator_edit_fields): ditto.
12981         (image_instantiator_combo_box): ditto.
12982         (image_instantiator_scrollbar): ditto.
12983         (image_instantiator_progress_guage): ditto.
12984         (image_instantiator_tree_view): ditto.
12985         (image_instantiator_tab_control): ditto.
12986         (image_instantiator_labels): ditto.
12987         (image_instantiator_layout): ditto.
12988
12989         * glyphs.c: add instance error checking to many functions.
12990         (instantiate_image_instantiator): decode device from cache_domain.
12991         (image_instantiate): partially rewrite by using
12992         decode_image_instantiator_domain to determine what domain the
12993         instance needs to be cached in.
12994         (decode_image_instantiator_domain): new function. Determine what
12995         domain the image needs to be cached in.
12996         (check_window_subwindow_cache): new error checking function.
12997         (check_instance_cache_mapper): ditto.
12998         (check_image_instance_structure): ditto.
12999         (subwindow_decode_domain): new function. Encodes a window as a
13000         subwindow's cache domain.
13001         (image_instantiator_format_create): use it for text and
13002         subwindows.
13003
13004 2000-04-21  Andy Piper  <andy@xemacs.org>
13005
13006         * glyphs.c (image_instance_device): new function.
13007         (image_instance_frame): new function.
13008         (image_instance_window): new function.
13009         (image_instance_live_p): new function.
13010
13011         * window.c (mark_window_as_deleted): reset the subwindow_instance_
13012         cache to nil.
13013
13014         * glyphs.h (struct Lisp_Image_Instance): device->domain.
13015         (IMAGE_INSTANCE_DOMAIN): new accessor.
13016         (XIMAGE_INSTANCE_DOMAIN): ditto.
13017
13018         * glyphs-x.c (x_finalize_image_instance): device->domain.
13019
13020         * glyphs-msw.c (init_image_instance_geometry): device->domain.
13021         (mswindows_finalize_image_instance): ditto.
13022
13023         * glyphs-eimage.c (jpeg_instantiate): device->domain.
13024         (gif_instantiate): ditto.
13025         (png_instantiate): ditto.
13026         (tiff_instantiate): ditto.
13027
13028         * glyphs.c (instantiate_image_instantiator): use domain rather
13029         than device.
13030         (mark_image_instance): device -> domain.
13031         (print_image_instance): ditto.
13032         (finalize_image_instance): ditto.
13033         (image_instance_equal): ditto.
13034         (allocate_image_instance): ditto.
13035         (Fcolorize_image_instance): ditto.
13036         (query_string_geometry): ditto.
13037         (image_instantiate): ditto
13038         (query_string_font): ditto.
13039         (image_instantiate): ditto.
13040         (update_subwindow): ditto.
13041         (unmap_subwindow): ditto.
13042         (map_subwindow): ditto.
13043         (subwindow_instantiate): ditto.
13044
13045         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
13046         (DOMAIN_FRAME): ditto.
13047         (DOMAIN_WINDOW): ditto.
13048         (DOMAIN_LIVE_P): ditto.
13049         (XDOMAIN_DEVICE): ditto.
13050         (XDOMAIN_FRAME): ditto.
13051         (XDOMAIN_WINDOW): ditto.
13052
13053         * specifier.c (Fvalid_specifier_domain_p): add image instances as
13054         a valid specifier domain.
13055
13056 2000-04-19  Andy Piper  <andy@xemacs.org>
13057
13058         * glyphs-widget.c (syms_of_glyphs_widget): remove
13059         widget-callback-current-channel.
13060         (vars_of_glyphs_widget): ditto.
13061         * glyphs.h: ditto
13062
13063         * gui.c (get_gui_callback): revert to previous behaviour.
13064
13065 2000-04-18  Andy Piper  <andy@xemacs.org>
13066
13067         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
13068         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
13069         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
13070
13071         * glyphs.c (image_instance_equal): add margin_width.
13072         (image_instance_hash): ditto.
13073
13074         * glyphs-widget.c (widget_instantiate): deal with margin-width.
13075         (layout_query_geometry): ditto.
13076         (layout_layout): ditto.
13077         (syms_of_glyphs_widget): add margin-width.
13078         (image_instantiator_layout): allow margin-width.
13079
13080         * glyphs.c (update_widget_instances): make a normal function.
13081         (syms_of_glyphs): remove Qupdate_widget_instances.
13082         * glyphs.h: ditto.
13083
13084         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
13085         so that we don't corrupt ideas about the last event or
13086         command. Remove widget-callback-current-channel fiddling.
13087         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
13088
13089 2000-05-01  Martin Buchholz <martin@xemacs.org>
13090
13091         * XEmacs 21.2.33 is released.
13092
13093 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
13094
13095         * make-src-depend: Allow dots in header file name.
13096
13097 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
13098
13099         * mule-charset.h (struct charset_lookup): Add
13100         next_allocated_1_byte_leading_byte and
13101         next_allocated_2_byte_leading_byte.
13102         * mule-charset.c: Move above two variables so that those values
13103         will be dumped.
13104
13105 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
13106
13107         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
13108         when string length is zero.
13109         (find_charsets_in_emchar_string): Ditto.
13110
13111 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
13112
13113         * lisp.h: extern Qdialog and Qmenubar.
13114
13115         * gui-x.c: added events.h.
13116                 also fixed typo which made the file uncompilable.
13117
13118         * general.c: Added Qmenubar and Qdialog
13119
13120 2000-04-28  Ben Wing  <ben@xemacs.org>
13121
13122         * frame-msw.c (mswindows_init_frame_1):
13123         * frame-msw.c (mswindows_mark_frame):
13124         * event-msw.c (mswindows_enqueue_dispatch_event):
13125         * console-msw.h:
13126         * console-msw.h (struct mswindows_frame):
13127         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
13128         there are now three hash tables for callbacks.
13129         mswindows_enqueue_dispatch_event is no longer static.
13130
13131         * dialog-x.c (maybe_run_dbox_text_callback):
13132         * dialog-x.c (dbox_descriptor_to_widget_value):
13133         switch to new cons3 form for callbacks.
13134
13135         * glyphs-msw.c (mswindows_register_gui_item):
13136         * glyphs-msw.c (mswindows_widget_instantiate):
13137         * glyphs-msw.c (add_tree_item):
13138         * glyphs-msw.c (add_tab_item):
13139         new image instance parameter, so it can be passed to callback-ex.
13140         respect :callback-ex as well as :callback.
13141
13142         * glyphs-widget.c (VALID_GUI_KEYWORDS):
13143         add :callback-ex.
13144
13145         * glyphs.c (print_image_instance):
13146         prettify, e.g. now prints widget type.
13147
13148         * gui-x.h:
13149         certain funs have new image instance parameter.
13150
13151         * gui.c:
13152         * gui.c (get_gui_callback):
13153         * gui.c (gui_item_add_keyval_pair):
13154         * gui.c (gui_item_init):
13155         * gui.c (gui_add_item_keywords_to_plist):
13156         * gui.c (mark_gui_item):
13157         * gui.c (gui_item_hash):
13158         * gui.c (gui_item_equal):
13159         * gui.c (copy_gui_item):
13160         * gui.c (syms_of_gui):
13161         recognize callback-ex in a number of places.
13162         also, fix the annoying "can't get out of yes-no dialog" bug.
13163
13164         * gui.h:
13165         * gui.h (struct Lisp_Gui_Item):
13166         recognize callback-ex in a number of places.
13167
13168         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13169         new parameter in button_item_to_widget_value.
13170
13171         * glyphs-x.c (x_update_widget):
13172         * glyphs-x.c (x_button_instantiate):
13173         * glyphs-x.c (x_button_update):
13174         * glyphs-x.c (x_progress_gauge_instantiate):
13175         * glyphs-x.c (x_edit_field_instantiate):
13176         * glyphs-x.c (x_combo_box_instantiate):
13177         * glyphs-x.c (x_tab_control_instantiate):
13178         * glyphs-x.c (x_label_instantiate):
13179         new image instance parameter in various places.
13180
13181         * event-Xt.c:
13182         * event-Xt.c (enqueue_Xt_dispatch_event):
13183         this fun gets exported.
13184
13185         * gui-msw.c:
13186         * gui-msw.c (mswindows_handle_gui_wm_command):
13187         handle both :callback and :callback-ex, and generate our own
13188         event because it's one of the callback-ex arguments.
13189
13190         * gui-x.c:
13191         * gui-x.c (popup_selection_callback):
13192         handle both :callback and :callback-ex, and generate our own
13193         event because it's one of the callback-ex arguments.
13194         * gui-x.c (button_item_to_widget_value):
13195         * gui-x.c (gui_items_to_widget_values_1):
13196         * gui-x.c (gui_item_children_to_widget_values):
13197         * gui-x.c (gui_items_to_widget_values):
13198         new image instance parameter in various places.
13199
13200         * fns.c (Freplace_list):
13201         fix small typo in doc string.
13202
13203         * lisp.h:
13204         declare enqueue_Xt_dispatch_event.
13205
13206 2000-04-28  Ben Wing  <ben@xemacs.org>
13207
13208         * buffer.c:
13209         * buffer.c (Frecord_buffer):
13210         * buffer.c (syms_of_buffer):
13211         delete record-buffer-hook.
13212
13213         * fns.c:
13214         * fns.c (Freplace_list):
13215         * fns.c (syms_of_fns):
13216         new primitive replace-list.
13217
13218         * frameslots.h:
13219         slot for old buffer-alist.
13220
13221         * lisp.h:
13222         exfun replace-list.
13223
13224         * redisplay.c:
13225         * redisplay.c (redisplay_frame):
13226         * redisplay.c (syms_of_redisplay):
13227         * redisplay.c (vars_of_redisplay):
13228         new hook buffer-list-changed-hook.
13229         call it.
13230
13231 2000-04-27  Ben Wing  <ben@xemacs.org>
13232
13233         * extents.h: extern in_modeline_generation.
13234
13235         * redisplay.c (generate_formatted_string_db): set
13236         in_modeline_generation.
13237
13238         * extents.c (extent_changed_for_redisplay): don't mark redisplay
13239         flags if in modeline generation.  otherwise frame-modified-tick
13240         is ticked far too often.
13241         Declare in_modeline_generation.
13242
13243 2000-04-26  Ben Wing  <ben@xemacs.org>
13244
13245         * emacs.c (vars_of_emacs): document quick-build "error-checking"
13246         option.
13247         (vars_of_emacs): add quick-build as an error-checking option.
13248         A bit kludgy, but there doesn't seem much point in creating
13249         a real var for this.
13250
13251         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
13252
13253 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13254
13255         * redisplay.h (struct display_line): Add a new variable,
13256         line_continuation.
13257
13258         * redisplay.c (create_text_block): Set dl->line_continuation if
13259         the line continues.
13260         (create_string_text_block): Ditto.
13261         (regenerate_window_incrementally): Use line_continuation instead
13262         of searching continuation glyph.
13263         (add_margin_runes): Call add_glyph_rune.
13264         (add_glyph_rune): Handle margin glyph.
13265
13266 2000-04-20  Martin Buchholz  <martin@xemacs.org>
13267
13268         * filelock.c (fill_in_lock_file_name):
13269         ANSIfy.
13270         Check for IS_ANY_SEP instead of '/'.
13271         (lock_file_1):
13272         Avoid generating gratuitous garbage.  Call user_login_name() directly.
13273         Never check errno without first seeing that system call failed.
13274         (unlock_file): Add GCPRO.
13275         (Flock_buffer): Fix docstring.
13276         (Ffile_locked_p): Fix docstring.  Add GCPRO.
13277
13278 2000-04-19  Martin Buchholz  <martin@xemacs.org>
13279
13280         * sysdep.c (get_pty_max_bytes):
13281         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
13282         strings longer than 252 bytes.
13283
13284         * md5.c: Unconditionally include ANSI header <limits.h>
13285
13286         * glyphs-x.c (convert_EImage_to_XImage):
13287         * lisp-union.h (union Lisp_Object):
13288         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
13289
13290 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
13291
13292         * filelock.c (current_lock_owner): Remove unused variable o, p.
13293
13294 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
13295
13296         * callint.c: Remove multiply defined symbol Qlet
13297         (syms_of_callint): ditto.
13298
13299 2000-04-14  Andy Piper  <andy@xemacs.org>
13300
13301         * general.c (syms_of_general): add last-command, this-command, let
13302         and funcall.
13303
13304         * lisp.h: declare various symbols.
13305
13306         * glyphs.h: declare Qwidget_callback_current_channel;
13307
13308         * glyphs-widget.c (syms_of_glyphs_widget): add
13309         Qgui_callback_current_channel.
13310         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
13311
13312         * gui-msw.c (mswindows_handle_gui_wm_command): bind
13313         widget-callback-current-channel when invoking the interactive
13314         arg. Also bind last-command and next-command when invoking the
13315         widget updates.
13316         * gui-x.c (popup_selection_callback): ditto.
13317
13318         * gui.c (get_gui_callback): massage args so that we are always
13319         calling eval. This allows us to add our own variable bindings
13320         outside.
13321
13322         * glyphs-x.c (x_button_instantiate): use
13323         gui_items_to_widget_values since this is GC safe.
13324         (x_progress_gauge_instantiate): ditto.
13325         (x_edit_field_instantiate): ditto.
13326         (x_label_instantiate): ditto.
13327
13328         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
13329         (emacs_Xt_event_widget_focus_out): new function
13330         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
13331         focus.
13332         (emacs_Xt_event_add_widget_actions): new function. add focus
13333         functions as actions.
13334         (init_event_Xt_late): use it.
13335
13336 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
13337
13338         * event-stream.c (Fdispatch_event): Doc fix.
13339
13340 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
13341
13342         * postgresql.c: Remove all references to PQsetenv*.
13343
13344         * postgresql.h: Remove references to PGsetenvHandler object.
13345         * lrecord.h (lrecord_type): Ditto.
13346
13347 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13348
13349         * glyphs-msw.h (struct mswindows_image_instance_data): Added
13350         real_heigh and real_width members, and accessor macros for these.
13351
13352         * glyphs-msw.c (init_image_instance_geometry): New function.
13353         (init_image_instance_from_dibitmap): Use it.
13354         (mswindows_resource_instantiate): Use it.
13355         (init_image_instance_from_xbm_inline): Use it.
13356         (mswindows_initialize_image_instance_mask): Use real bitmap
13357         geometry.
13358         (mswindows_create_resized_bitmap): Ditto.
13359         (mswindows_create_resized_mask): Ditto.
13360
13361         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
13362         and bitmap to their surface size.
13363
13364 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
13365
13366         * process-unix.c (unix_send_process): Guard against process MIA
13367         after Faccept_process_output.
13368
13369 2000-04-11  Ben Wing  <ben@xemacs.org>
13370
13371         * eval.c (unbind_to_hairy): fix brokenness introduced by
13372         nanosecond speed improvements.
13373
13374 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
13375
13376         * sunplay.c (init_device): To play sounds correctly, the device
13377         apparently needs to be initialized at least once by XEmacs.  Make
13378         it so.
13379
13380 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13381
13382         * redisplay.c (add_margin_runes): Add text image glyph
13383           handling.
13384
13385 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
13386
13387         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
13388         gcc is newer than 2.5.
13389
13390 2000-04-06  Colin Rafferty  <colin@xemacs.org>
13391
13392         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
13393
13394         * fns.c (size_bit_vector):
13395         * alloc.c (size_vector):
13396         (make_vector_internal):
13397         (make_bit_vector_internal):
13398         (sweep_bit_vectors_1):
13399         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13400
13401 2000-04-06  Andy Piper  <andy@xemacs.org>
13402
13403         * gmalloc.c (malloc): undo previous change.
13404         (malloc): ditto.
13405         (free): ditto.
13406         (realloc): ditto.
13407
13408 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
13409
13410         * line-number.c (buffer_line_number): Revert to former version.
13411
13412 2000-04-06  Andy Piper  <andy@xemacs.org>
13413
13414         * gmalloc.c (malloc): add error checking.
13415         (malloc): ditto.
13416         (free): ditto.
13417         (realloc): ditto.
13418
13419         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13420         button_item_to_widget_value arg.
13421
13422         * glyphs-x.c (x_button_instantiate): add extra
13423         button_item_to_widget_value arg.
13424         (x_progress_gauge_instantiate): ditto.
13425         (x_edit_field_instantiate): ditto.
13426         (x_label_instantiate): ditto.
13427
13428         * gui-x.c (gui_items_to_widget_values_1): add extra
13429         button_item_to_widget_value arg.
13430         (button_item_to_widget_value): add extra menu_item_p arg.
13431
13432         * gui-x.h: change signature of button_item_to_widget_value.
13433
13434         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13435         button_item_to_widget_value arg.
13436
13437 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13438
13439         * buffer.h (struct buffer): auto_save_modified should be long.
13440
13441 2000-04-05  Andy Piper  <andy@xemacs.org>
13442
13443         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13444         type.
13445         (button_query_geometry): give a little more room so that athena
13446         buttons fit.
13447
13448 2000-04-05  Andy Piper  <andy@xemacs.org>
13449
13450         * faces.c (complex_vars_of_faces): The widget face should inherit
13451         the font of the gui-element face.
13452
13453 2000-04-04  Andy Piper  <andy@xemacs.org>
13454
13455         * glyphs-x.c (x_button_update): new function. unconditionally
13456         update a button's state when the instance is dirty.
13457         (image_instantiator_format_create_glyphs_x): add x_button_update.
13458         (x_widget_instantiate): remove old resize cruft.
13459
13460 2000-04-02  Andy Piper  <andy@xemacs.org>
13461
13462         * frame.c (change_frame_size_1): The introduction of gutters means
13463         that we need to allow 0 as a potential frame dimension.
13464
13465 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13466
13467         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13468         image glyph if allow_cursor.
13469         (add_hscroll_rune): Don't allow cursor to border glyph.
13470         (create_text_block): Ditto.
13471
13472         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13473         text not in buffer.
13474         (redisplay_output_layout): Call ensure_face_cachel_complete for
13475         text image glyph.
13476
13477
13478 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13479
13480         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13481
13482         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13483         not in buffer
13484
13485         * redisplay-tty.c (tty_output_display_block): Delete the routine
13486         for text image glyph
13487         * redisplay-x.c (x_output_display_block): ditto
13488         * redisplay-msw.c (mswindows_output_display_block): ditto
13489
13490 2000-02-02  Mike Alexander  <mta@arbortext.com>
13491
13492         Note: Some of these were committed by accident as part of other
13493         patches.
13494
13495         * regex.c (regex_compile): Avoid compiler warnings.
13496
13497         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13498
13499         * nt.h: Declare term_ntproc correctly.
13500
13501         * nt.c: Remove incorrect declaration of get_home_directory which
13502         is declared correctly in lisp.h.
13503
13504         * keymap.c (get_keyelt): Avoid compiler warnings.
13505         (raw_lookup_key_mapper): Avoid compiler warnings.
13506
13507         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13508
13509         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13510
13511         * filemode.c (mode_string): Avoid compiler warnings.
13512
13513         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13514         avoid warning.
13515
13516         * events-mod.h: Undef some things that winuser.h defines differently.
13517
13518         * data.c (Faset): Avoid compiler warnings.
13519
13520         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13521
13522 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13523
13524         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13525         Fall through to simple beep on error.
13526         Replace "extern" by real header file.
13527
13528         * linuxplay.c: Use nativesound.h
13529         (play_sound_data): Return error code. Be less verbose on error.
13530
13531         * sunplay.c: Use nativesound.h
13532         (play_sound_data): Return error code. Be less verbose on error.
13533
13534         * ntplay.c: Use nativesound.h
13535         (play_sound_data): Return fake error code
13536
13537         * sgiplay.c: Use nativesound.h
13538         (play_sound_data): Return error code
13539
13540         * hpplay.c: Use nativesound.h, partially implement
13541         new error code. Break compilation until finished.
13542         (play_sound_data): error code.
13543
13544         * nativesound.h (play_sound_file):
13545           (play_sound_data): Prototype in new header.
13546
13547 2000-03-31  Andy Piper  <andy@xemacs.org>
13548
13549         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13550         for toggle and radio buttons.
13551         (image_instantiator_buttons): use it.
13552
13553 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13554
13555         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13556         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13557         found. Scrollbar event probably belonged to some old config.
13558
13559 2000-03-31  Andy Piper  <andy@xemacs.org>
13560
13561         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13562         than 1.
13563         (initialize_widget_image_instance): default layout to
13564         LAYOUT_HORIZONTAL rather than 0.
13565         (widget_instantiate): reverse the item list at the end rather than
13566         every iteration.
13567         (layout_layout): re-code for the border text at the front of the
13568         item list rather than at the end.
13569         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13570         provided by the user.
13571         (widget_query_geometry): comment.
13572
13573 2000-03-30  Andy Piper  <andy@xemacs.org>
13574
13575         * glyphs-widget.c (image_instantiator_layout): allow standard
13576         widget keywords in layouts.
13577
13578         * gutter.c (output_gutter): cope with nil gutter contents.
13579
13580         * frame.c (Fset_frame_properties): add gutter docs.
13581
13582 2000-03-29  Andy Piper  <andy@xemacs.org>
13583
13584         * toolbar-msw.c (TBSTYLE_FLAT): add.
13585         (mswindows_output_toolbar): minor fiddling.
13586
13587 2000-03-29  Andy Piper  <andy@xemacs.org>
13588
13589         * gutter.c (output_gutter): force gutter size recalculation if
13590         what we are trying to display won't fit.
13591         (update_gutter_geometry): new function. A per-gutter version of
13592         update_frame_gutter_geometry.
13593         (update_frame_gutter_geometry): use it.
13594         (redraw_exposed_gutter): add extra debugging output.
13595
13596 2000-03-28  Mike Alexander  <mta@arbortext.com>
13597
13598         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13599         (pdump_file_unmap): Implement it on Windows
13600         (pdump_file_get): Save alocated handles for pdump_file_unmap
13601
13602 2000-03-28  Andy Piper  <andy@xemacs.org>
13603
13604         * gui.c (get_gui_callback): treat Quit specially.
13605
13606 2000-03-27  Andy Piper  <andy@xemacs.org>
13607
13608         * glyphs.c (image_instantiate): be careful to check in the same
13609         way we assigned.
13610
13611 2000-03-27  Didier Verna  <didier@xemacs.org>
13612
13613         * config.h.in: define the proper SMART_INCLUDE macro.
13614         handle renaming of `foo_h_path' to `foo_h_file'.
13615
13616         * database.c: ditto.
13617
13618         * emacs.c: ditto.
13619
13620         * linuxplay.c: ditto.
13621
13622         * terminfo.c: ditto.
13623
13624         * tooltalk.h: ditto.
13625
13626 2000-03-27  Andy Piper  <andy@xemacs.org>
13627
13628         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13629         gets updated whenever the face might have changed.
13630
13631 2000-03-26  Mike Alexander  <mta@arbortext.com>
13632
13633         * dumper.c (pdump_resource_free): Fix the comment.
13634
13635 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13636
13637         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13638
13639 2000-03-22  Mike Alexander  <mta@arbortext.com>
13640
13641         * dumper.c: Include Windows headers on Windows
13642         (pdump_resource_free): Add a body to the function
13643         (pdump_load): exe_name -> exe_path and add some comments.
13644
13645 2000-03-25  Mike Alexander  <mta@arbortext.com>
13646
13647         * gui.c (copy_gui_item_tree): Return a value in all cases
13648
13649 2000-03-21  Didier Verna  <didier@xemacs.org>
13650
13651         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13652         lwlib/config.h.in.
13653         (SMART_INCLUDE): new macro.
13654         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13655         the proper location.
13656
13657         * postgresql.c: use it.
13658
13659         * inline.c: ditto.
13660
13661 2000-03-24  Andy Piper  <andy@xemacs.org>
13662
13663         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13664         do this.
13665
13666 2000-03-24  Andy Piper  <andy@xemacs.org>
13667
13668         * redisplay-output.c (compare_runes): use image_instance_changed
13669         to detect changes. Do not depend on glyphs_changed, only depend on
13670         dirtiness.
13671          (redisplay_output_layout): add debug messages.
13672         (compare_runes): ditto.
13673
13674         * glyphs.h: declare new functions.
13675         (struct Lisp_Image_Instance): remove percent and associated
13676         accessors.
13677
13678         * gui.h: declare new copying functions.
13679
13680         * gui.c (copy_gui_item_tree): new function.
13681         (copy_gui_item): new function.
13682         (gui_item_id_hash): revert to standard hash.
13683         (gui_item_hash): ditto.
13684         (gui_item_hash_internal): deleted.
13685         (mark_gui_item): mark value.
13686         (gui_item_add_keyval_pair): add value.
13687         (gui_item_init): ditto.
13688         (gui_add_item_keywords_to_plist): ditto.
13689         (gui_item_equal): ditto.
13690         (syms_of_gui): add Q_value.
13691
13692         * glyphs-x.c (x_progress_gauge_update): use pending items and
13693         value for setting the state.
13694         (x_update_widget): don't set items from pending here.
13695
13696         * glyphs-widget.c (update_widget): update items here.
13697         (progress_gauge_set_property): use items for storing value. Put
13698         new value in pending items.
13699
13700         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13701         items for new value. Convert percent -> value.
13702         (mswindows_tab_control_update): don't update items here.
13703
13704         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13705         (update_subwindow): ditto.
13706         (image_instance_changed): new function. Compare hash values and
13707         past and present widget items.
13708         (image_instantiate): We more careful about where we instantiate
13709         things.
13710         (image_instantiate): add error checking.
13711
13712         * gutter.c (syms_of_gutter): use -hook.
13713
13714 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13715
13716         * console-tty.c (Fset_console_tty_input_coding_system): Use
13717         Qkeyboard.
13718         (Fset_console_tty_output_coding_system): Use Qterminal.
13719         (tty_init_console): Use Qkeyboard and Qterminal.
13720
13721 2000-03-21  Ben Wing  <ben@xemacs.org>
13722
13723         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13724         From Mike Alexander <mta@arbortext.com>.
13725
13726 2000-03-21  Ben Wing  <ben@xemacs.org>
13727
13728         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13729         process brokenness.  Proper implementation to come.
13730         * callproc.c:
13731         Rename call-process-internal to old-call-process-internal.
13732         New impl. in process.el.
13733
13734 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13735
13736         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13737
13738 2000-03-20  Andy Piper  <andy@xemacs.org>
13739
13740         * glyphs.c (full_list_hash): make hashes of the same elements in
13741         different orders return different values.
13742
13743 2000-03-20  Martin Buchholz <martin@xemacs.org>
13744
13745         * XEmacs 21.2.32 is released.
13746
13747 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13748
13749         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13750         (DFC_MALLOC_USE_CONVERTED_DATA):
13751         Add aliasing-safe casts to allow use with char* or unsigned char*
13752         lvalues.
13753
13754         * eldap.c (Fldap_open):
13755         (Fldap_search_basic):
13756         (Fldap_add):
13757         (Fldap_modify):
13758         Make C++-compilable.
13759         Make sure GCPRO'ed variables are initialized.
13760         Use temp variables to avoid repeated calls to Flength.
13761
13762 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13763
13764         * sysfile.h:
13765         Make sure PATH_MAX is always defined.
13766         Include limits.h for PATH_MAX.
13767         Deprecate use of MAXPATHLEN.
13768
13769 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13770
13771         * emacs.c: Add reinit_vars_of_fileio.
13772         * symsinit.h: Add reinit_vars_of_fileio.
13773         * fileio.c (reinit_vars_of_fileio): New.
13774         * fileio.c (Fmake_temp_name):
13775         Initialize temp_name random number from microseconds to make
13776         collisions even less likely.  Initialize always at process startup
13777         time.  (make-temp-name) used to return the same file name twice in
13778         a row when PDUMP.
13779         Random stylistic fiddling.
13780         Comment fixes.
13781
13782 2000-03-20  Andy Piper  <andy@xemacs.org>
13783
13784         * glyphs.c (image_instantiate): allow text glyphs to be
13785         instantiated in the minibuffer window.
13786
13787 2000-03-19  Andy Piper  <andy@xemacs.org>
13788
13789         * glyphs.c (image_instance_hash): be careful about which items we
13790         hash on.
13791
13792         * glyphs-widget.c (tab_control_set_property): record into pending
13793         items rather than the actual items.
13794
13795         * glyphs-x.c (x_update_widget): use pending items to update with.
13796
13797         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13798         to update with.
13799
13800         * glyphs.c (mark_image_instance): mark pending items.
13801
13802         * window.c (Fset_window_configuration): record the buffer.
13803         (Fselect_window): totally revert previous change which breaks many
13804         things.
13805
13806 2000-03-18  Andy Piper  <andy@xemacs.org>
13807
13808         * glyphs-msw.c (mswindows_tab_control_update): force selected
13809         item.
13810
13811         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13812         window domain cache, otherwise we get inconsistencies at
13813         startup. There is something fishy at startup which can lead to the
13814         minibuffer being the selected window when the gutter content is
13815         instantiated.
13816
13817         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13818         gcpros.
13819         (parse_gui_item_tree_children): ditto.
13820         (parse_gui_item_tree_item): ditto.
13821
13822         * glyphs.c (Fupdate_widget_instances): return something.
13823
13824 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13825
13826         * window.c (Fselect_window): Undo 2000-03-17 change.
13827
13828 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13829
13830         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13831         against v7.0 libraries.  Insta-coredump city until the postgres
13832         folks fix it.
13833
13834 2000-03-17  Andy Piper  <andy@xemacs.org>
13835
13836         * faces.c (complex_vars_of_faces): don't give the widget face an
13837         inherited background pixmap.
13838
13839         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13840         selected item.
13841
13842         * event-stream.c (Fdispatch_non_command_events): return something.
13843
13844         * gutter.c (output_gutter): use widget face.
13845         (clear_gutter): ditto.
13846
13847         * NEWS: adjust again.
13848
13849         * window.c (Fselect_window): make sure this runs to completion to
13850         avoid oddities with Fset_window_configuration.
13851         (Fcurrent_window_configuration): in general do not save the
13852         minibuffer as the selected window.
13853
13854         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13855
13856 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13857
13858         * emacs.c (Frunning_temacs_p): Revert previous patch.
13859         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13860
13861 2000-03-16  Andy Piper  <andy@xemacs.org>
13862
13863         * glyphs-x.c (x_tab_control_update): if no widget values then
13864         return.
13865
13866         * NEWS: update for new features.
13867
13868         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13869         synthetic event to the native system.
13870         (reinit_vars_of_event_Xt): set force_event_pending to
13871         emacs_Xt_force_event_pending.
13872
13873         * events.h (struct event_stream): add force_event_pending.
13874
13875         * specifier.c (recompute_one_cached_specifier_in_window): add
13876         comment.
13877
13878         * redisplay.c (redisplay_frame): don't call
13879         update_frame_subwindows. Reset subwindow cachels when
13880         subwindows_changed, removing this was an optimization too far.
13881
13882         * redisplay-output.c (compare_runes): reorganize so that we catch
13883         glyph changes when we want them. Set optimize_output when this
13884         would help layouts.
13885         (redisplay_output_layout): remove frame_really_changed, use
13886         optimize_output instead.
13887
13888         * redisplay-msw.c (mswindows_output_display_block): reset
13889         optimize_output after outputting a glyph.
13890         * redisplay-x.c (x_output_display_block): ditto.
13891         * redisplay-tty.c (tty_output_display_block): ditto.
13892
13893         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13894         functions.
13895         (gutter_specs_changed): do specific gutter positions.
13896         (top_gutter_specs_changed): new function. Only update the
13897         specified gutter specs.
13898         (bottom_gutter_specs_changed): ditto.
13899         (left_gutter_specs_changed): ditto.
13900         (right_gutter_specs_changed): ditto.
13901
13902         * gui.c (gui_item_hash_internal): new function, does a real hash.
13903         (gui_item_id_hash): use it.
13904         (gui_item_hash): hash the eval'ed gui_item.
13905
13906         * gui-x.c (popup_selection_callback): send an eval event to call
13907         Fupdate_widget_instances.
13908
13909         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13910         to call Fupdate_widget_instances.
13911
13912         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13913         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13914
13915         * glyphs.c: (update_frame_subwindows): deleted.
13916         (Fupdate_widget_instances): new function for updating the dirty
13917         state of widgets that might have changed.
13918         (syms_of_glyphs): add Qupdate_widget_instances.
13919         (full_list_hash): hash a list completely.
13920         (image_instance_hash): use it for items and properties.
13921
13922         * frame-msw.c (mswindows_size_frame_internal): remove unused
13923         variable.
13924
13925         * faces.h (struct face_cachel): fix comment.
13926
13927         * event-stream.c (Fdispatch_non_command_events): new
13928         function. Process non-command events, forcing an event cycle
13929         beforehand.
13930         (syms_of_event_stream): declare.
13931         (event_stream_force_event_pending): new function. Force an event
13932         on the native event queue so that an event cycle will occur next
13933         time we check.
13934
13935         * event-msw.c:
13936         (struct ntpipe_shove_stream):
13937         (mswindows_enqueue_dispatch_event):
13938         (mswindows_dequeue_dispatch_event):
13939         (mswindows_cancel_dispatch_event):
13940         (mswindows_pump_outstanding_events):
13941         (mswindows_drain_windows_queue):
13942         (mswindows_handle_paint):
13943         (mswindows_wnd_proc):
13944         (mswindows_key_to_emacs_keysym):
13945         (get_process_input_waitable):
13946         (emacs_mswindows_delete_stream_pair): re-indent file.
13947         (mswindows_need_event): do not process further fds if the windows
13948         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13949         fixes the 100% cpu problem.
13950         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13951
13952 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13953
13954         * alloc.h: New.
13955         * dumper.h: New.
13956         * dumper.c: New.
13957
13958         * emacs.c: Moved dump file searching to dumper.c.
13959         (Frunning_temacs_p): Fixed.
13960
13961         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13962         last_lrecord_type_index_assigned.
13963
13964 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13965
13966         * symsinit.h: Added reinit parameter to init_console_stream
13967         declaration.
13968
13969         * lisp.h: Added file parameter to pdump_load declaration.
13970
13971         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13972         support.  Added dump file searching.
13973
13974         * config.h.in: Added EMACS_PROGNAME.
13975
13976         * console-stream.c (init_console_stream): Fix reinitialisation
13977         when running from temacs.
13978
13979         * alloc.c (pdump): Add id support.
13980         (pdump_load): Add file parameter and signature/id support.
13981
13982         * Makefile.in.in: Add full pdump support.
13983
13984 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13985
13986         * postgresql.c: Update documentation to reflect latest code
13987         status.
13988         (print_result): Show tuple counts in printed representation when
13989         appropriate.
13990         (Fpq_put_nbytes): MULE-ize.
13991         (Fpq_get_line_async): Ditto.
13992
13993 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
13994
13995         * postgresql.c (Fpq_lo_import): Fix return value.
13996         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
13997
13998 2000-03-13  Ben Wing  <ben@xemacs.org>
13999
14000         * alloc.c (pdump_load):
14001         Fix compile warning under mswin.
14002
14003 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14004
14005         * postgresql.c: Mule-ization, bug fixes.
14006         Use PG_CODING to encapsulate coding system name changes.
14007         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
14008         (pg-coding-system): Create.
14009
14010         (Fpq_conn_defaults): Mule-ize.
14011         (Fpq_connectdb): Mule-ize & bug fix.
14012         (Fpq_connect_start): Mule-ize.
14013         (Fpq_set_client_encoding): Mule-ize.
14014         (Fpq_finish): Document `DEAD' connection status.
14015         (Fpq_clear): Ditto.
14016         (Fpq_pgconn): Mule-ize.
14017         (Fpq_exec): Mule-ize & bug fix.
14018         (Fpq_send_query): Ditto.
14019         (Fpq_get_result): Ditto.
14020         (Fpq_res_status): Mule-ize.
14021         (Fpq_result_error_message): Mule-ize.
14022         (Fpq_ntuples): fix comments.
14023         (Fpq_fname): Mule-ize.
14024         (Fpq_fnumber): Mule-ize.
14025         (Fpq_ftype): fix comments.
14026         (Fpq_get_value): Mule-ize.
14027         (Fpq_cmd_status): Ditto.
14028         (Fpq_cmd_tuples): Ditto.
14029         (Fpq_oid_value): Ditto.
14030         (Fpq_notifies): Ditto.
14031         (Fpq_lo_import): Ditto.
14032         (Fpq_lo_export): Ditto.
14033         (Fpq_get_line): Ditto.
14034         (Fpq_put_line): Mule-ize and bug fix.
14035         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
14036
14037 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14038
14039         * postgresql.c (vars_of_postgresql): Mule-ize.
14040         (Fpq_conn_defaults): Ditto.
14041
14042 2000-03-12  Ben Wing  <ben@xemacs.org>
14043
14044         * alloc.c (Fmake_byte_code):
14045         * alloc.c (debug_string_purity_print):
14046         * alloc.c (pdump_backtrace):
14047         * alloc.c (pdump_get_indirect_count):
14048         * alloc.c (pdump_register_sub):
14049         * alloc.c (pdump_register_object):
14050         * alloc.c (pdump_register_struct):
14051         * alloc.c (pdump_dump_data):
14052         * alloc.c (pdump_reloc_one):
14053         Minor cleanups.
14054
14055         * console-msw.c:
14056         * console-msw.c (GetConsoleHwnd):
14057         * console-msw.c (msw_hide_console):
14058         * console-msw.c (msw_show_console):
14059         * console-msw.c (msw_ensure_console_buffered):
14060         * console-msw.c (msw_output_console_string):
14061         * console-msw.c (console_type_create_mswindows):
14062
14063         a) Added functions to manipulate the console window for use with
14064         shell support.
14065
14066         b) Added support for writing text to the console, which is now
14067         used under Windows when xemacs is not being run non-interactively,
14068         to write text that would otherwise be destined for stdout because
14069         under these circumstances, text written to stdout tends to
14070         disappear and not be seen.
14071
14072         * console-msw.h:
14073         * event-Xt.c:
14074         * event-Xt.c (x_event_to_emacs_event):
14075         * event-Xt.c (describe_event_window):
14076         * events-mod.h (XEMACS_MOD_CONTROL):
14077         * events.c:
14078         * events.c (Fmake_event):
14079         * events.c (character_to_event):
14080         * events.c (event_to_character):
14081         * events.c (format_event_object):
14082         * events.c (Fevent_modifiers):
14083         * events.h:
14084         * events.h (struct key_data):
14085         * events.h (struct button_data):
14086         * events.h (struct misc_user_data):
14087         * frame-x.c (Fcde_start_drag_internal):
14088         * frame-x.c (Foffix_start_drag_internal):
14089         * gpmevent.c (Freceive_gpm_event):
14090         * keymap.c:
14091         * keymap.c (bucky_sym_to_bucky_bit):
14092         * keymap.c (control_meta_superify):
14093         * keymap.c (make_key_description):
14094         * keymap.c (keymap_lookup_directly):
14095         * keymap.c (create_bucky_submap):
14096         * keymap.c (keymap_store):
14097         * keymap.c (define_key_check_and_coerce_keysym):
14098         * keymap.c (define_key_parser):
14099         * keymap.c (define_key_alternate_name):
14100         * keymap.c (Fdefine_key):
14101         * keymap.c (raw_lookup_key_mapper):
14102         * keymap.c (struct map_keymap_unsorted_closure):
14103         * keymap.c (map_keymap_unsorted_mapper):
14104         * keymap.c (map_keymap_sort_predicate):
14105         * keymap.c (map_keymap_sorted):
14106         * keymap.c (accessible_keymaps_mapper_1):
14107         * keymap.c (where_is_recursive_mapper):
14108         * keymap.c (describe_map_mapper):
14109         * keymap.c (describe_map_sort_predicate):
14110         * keymap.c (describe_map):
14111         * keymap.c (complex_vars_of_keymap):
14112         And a number of other files, the key modifier preprocessor
14113         constants that xemacs uses have names that conflict with constants
14114         defined under MS Windows for other purposes, so they were renamed
14115         to begin with the prefix XEMACS_. The variables that hold such
14116         modifiers were changed to consistently be of type int to fix
14117         various compile warnings.
14118
14119         * console.c (complex_vars_of_console):
14120         * device.c:
14121         * device-msw.c:
14122         * device-msw.c (mswindows_finish_init_device):
14123         * device-msw.c (msw_get_workspace_coords):
14124         * device-msw.c (mswindows_device_system_metrics):
14125         and various other files, added support for a new
14126         device property called offset-workspace which returns the position
14127         of the upper left corner of the workspace area and goes along with
14128         the existing size-workspace property.
14129
14130         * dialog-msw.c:
14131         * dialog-msw.c (push_bufbyte_string_as_unicode):
14132         * dialog-msw.c (mswindows_popup_dialog_box):
14133         Added support for XEmacs-style accelerator specifications in
14134         button text.  Note: I didn't add support for this under X Windows,
14135         and somebody needs to do this.
14136
14137         * dialog.c:
14138         * dialog.c (Fpopup_dialog_box):
14139         Documented the support for accelerators that was just mentioned.
14140
14141         editfns.c (get_home_directory): Changed behavior under Windows
14142         when HOME not defined; former behavior was irretrievably broken.
14143
14144         * emacs.c:
14145         * emacs.c (main_1):
14146         * emacs.c (main):
14147         * minibuf.c (clear_echo_area_internal):
14148         * minibuf.c (echo_area_append):
14149         * print.c:
14150         * print.c (std_handle_out_external):
14151         * print.c (std_handle_out_va):
14152         * print.c (fatal):
14153         * print.c (write_string_to_stdio_stream):
14154         * print.c (output_string):
14155         * print.c (debug_print):
14156         * print.c (debug_backtrace):
14157         * print.c (debug_short_backtrace):
14158         Cleaned up the code that prints text to stdout so that this can be
14159         changed to output into a console window instead under MS Windows,
14160         as described above.
14161
14162         * eval.c:
14163         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
14164         * eval.c (internal_catch):
14165         * eval.c (unwind_to_catch):
14166         * eval.c (throw_or_bomb_out):
14167         * eval.c (condition_case_1):
14168         * eval.c (signal_1):
14169         * eval.c (check_error_state_sanity):
14170         * eval.c (call_with_suspended_errors_1):
14171         * eval.c (call_with_suspended_errors):
14172         * eval.c (reinit_vars_of_eval):
14173         Added code to catch throw loops and check for a pesky bug that may
14174         be gone now.
14175
14176         * event-msw.c:
14177         * event-msw.c (key_needs_default_processing_p):
14178         * event-msw.c (mswindows_wnd_proc):
14179         * event-msw.c (mswindows_modifier_state):
14180         * event-msw.c (emacs_mswindows_quit_p):
14181         * event-msw.c (vars_of_event_mswindows):
14182         a) Added support for using the alt key to select menu items as is
14183         standard under MS Windows.  This is controlled using the variable
14184         menu-accelerator-enabled, just like under X Windows.  There is an
14185         option on the options menu to turn this support on.  I really
14186         think that it should be on by default under Windows, but I'm not
14187         going to make this change yet.
14188
14189         b)  Added support for dynamic display size changes under Windows.
14190
14191         * event-stream.c:
14192         * event-stream.c (maybe_echo_keys):
14193         * event-stream.c (Fnext_event):
14194         * event-stream.c (command_builder_find_leaf):
14195         * event-stream.c (lookup_command_event):
14196         * event-stream.c (execute_command_event):
14197         * event-stream.c (pre_command_hook):
14198         * event-stream.c (post_command_hook):
14199         * event-stream.c (syms_of_event_stream):
14200         * event-stream.c (vars_of_event_stream):
14201         * event-stream.c (complex_vars_of_event_stream):
14202         * events.h (struct command_builder):
14203
14204         a) Tried to clean up a little bit the horribly written x-specific
14205         accelerator code that crept into this file.  I moved this code
14206         into menubar-x.c where it belongs. I also needed to move the
14207         command builder structure into the file events.h because it is
14208         accessed directly by this accelerator code.  What I didn't do, but
14209         which should be done at some point, is to properly abstract this
14210         code using device methods instead of the kludgy way that it
14211         currently hooks into the event code.
14212
14213         b) Added the lisp variables this-command-properties and
14214         last-command- properties, which should be used to synchronize two
14215         adjacent commands in preference to playing games with the variable
14216         this-command, which is typically what happens.
14217
14218         c) Added some slightly nasty code to hook into the lisp support
14219         for shifted- motion-key selection.  This is actually necessary for
14220         somewhat complicated reasons, which are described in
14221         simple.el. (NB: I think the proper thing would be to have the code
14222         that calls the pre and post command hooks also call out to generic
14223         lisp functions in simple.el, where all built-in stuff could be
14224         added.  I will think about this more.)
14225
14226         * event-unixoid.c (poll_fds_for_input):
14227         * lread.c (readchar):
14228         * redisplay-tty.c (tty_clear_frame):
14229         * redisplay-x.c (x_get_gc):
14230         * signal.c (interrupt_signal):
14231         And a whole bunch of other files: fixed up places that printed
14232         directly to stderr to instead call the function stderr_out so that
14233         the changes I made under Windows work correctly.
14234
14235         * filemode.c (mode_string):
14236         Warning fixes.
14237
14238         * frame-msw.c:
14239         * frame-msw.c (mswindows_size_frame_internal):
14240         Fixed the computation of frame size and position to keep the frame
14241         within the workspace area, rather than within the physical
14242         dimensions of the screen, so that the frame doesn't overlap window
14243         manager decorations, such as the start menu and toolbar, typically
14244         at the bottom of the screen.
14245
14246         * frame.c (vars_of_frame):
14247         Changed the default frame title format under MS Windows to consist
14248         of buffername-XEmacs, which is standard under MS Windows.  I think
14249         it might be a good idea to change this everywhere because I think
14250         it is superior to the current frame title format, but this is the
14251         kind of change that is likely to cause some people to get annoyed,
14252         so I'm not making it.
14253
14254         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
14255
14256         * gui-msw.c (mswindows_handle_gui_wm_command):
14257         Fixed compile warnings.
14258
14259         * gui-x.c:
14260         * gui-x.c (strdup_and_add_accel):
14261         * gui-x.c (button_item_to_widget_value):
14262         * gui-x.h:
14263         Added code to automatically put an accelerator onto the beginning
14264         of menu items that don't have one as is now the standard, and is
14265         described more later.  Also fixed things so that the menu item
14266         name can be an evaluated expression, again a new standard.
14267
14268         * gui.c:
14269         * gui.c (gui_item_add_keyval_pair):
14270         * gui.c (make_gui_item_from_keywords_internal):
14271         * gui.c (gui_add_item_keywords_to_plist):
14272         * gui.c (gui_item_accelerator):
14273         * gui.c (gui_name_accelerator):
14274         * gui.c (gui_item_included_p):
14275         * gui.c (gui_item_display_flush_left):
14276         * gui.c (gui_item_display_flush_right):
14277         * gui.c (parse_gui_item_tree_item):
14278         * gui.c (parse_gui_item_tree_children):
14279         * gui.c (parse_gui_item_tree_list):
14280         Mule-ized.  Cleanup.  GCPRO addition.
14281
14282         * line-number.c (buffer_line_number):
14283         * lisp.h:
14284         * lisp.h (EMACS_INT_MAX):
14285         Added the manifest constant EMACS_INT_MIN corresponding to the
14286         existing constant EMACS_INT_MAX.  This is partially to fix compile
14287         warnings under Windows, and partly for cleanliness.
14288
14289         * menubar-msw.c:
14290         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
14291         * menubar-msw.c (msw_translate_menu_or_dialog_item):
14292         * menubar-msw.c (displayable_menu_item):
14293         * menubar-msw.c (populate_menu_add_item):
14294         * menubar-msw.c (populate_or_checksum_helper):
14295         * menubar-msw.c (populate_menu):
14296         * menubar-msw.c (update_frame_menubar_maybe):
14297         * menubar-msw.c (prune_menubar):
14298         * menubar-msw.c (msw_char_is_accelerator):
14299         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
14300         * menubar-msw.c (mswindows_handle_wm_command):
14301         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
14302         * menubar-msw.c (mswindows_handle_wm_initmenu):
14303         * menubar-msw.c (mswindows_update_frame_menubars):
14304         * menubar-msw.c (mswindows_free_frame_menubars):
14305         * menubar-msw.c (mswindows_popup_menu):
14306         Fixed a bug in handling accelerators where an extra character
14307         would be displayed in the menu item.  Also generalized the
14308         function displayable_menu_item because it is now used by the
14309         dialog box code as well.  And finally, added code in the functions
14310         that create the menubar to extract a list of accelerators for the
14311         top level menubar, which is used in the event code to determine
14312         whether a particular alt-key combination should be used to invoke
14313         a menu item, or should be passed through to access the standard
14314         XEmacs keymap binding for this key combination.
14315
14316         Much needed GCPROing.
14317
14318         * menubar-x.c:
14319         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14320         * menubar-x.c (menu_item_descriptor_to_widget_value):
14321         * menubar-x.c (restore_in_menu_callback):
14322         * menubar-x.c (x_popup_menu):
14323         * menubar-x.c (menu_move_up):
14324         * menubar-x.c (menu_move_down):
14325         * menubar-x.c (menu_move_left):
14326         * menubar-x.c (menu_move_right):
14327         * menubar-x.c (menu_select_item):
14328         * menubar-x.c (command_builder_operate_menu_accelerator):
14329         * menubar-x.c (menu_accelerator_junk_on_error):
14330         * menubar-x.c (command_builder_find_menu_accelerator):
14331         * menubar-x.c (Faccelerate_menu):
14332         * menubar.h:
14333         Moved a whole bunch of code here that was previously in
14334         event-stream.c as described above.  There is also code connected
14335         to the new standard of adding an accelerator to the beginning of
14336         menu items that don't have one as described above and below.
14337
14338         * menubar.c:
14339         * menubar.c (menu_parse_submenu_keywords):
14340         * menubar.c (Fmenu_find_real_submenu):
14341         * menubar.c (Fnormalize_menu_item_name):
14342         * menubar.c (syms_of_menubar):
14343         * menubar.c (vars_of_menubar):
14344         * menubar.c (complex_vars_of_menubar):
14345
14346         a) Cleaned up a bunch of documentation and improved it.
14347
14348         b) XEmacs now automatically adds an accelerator onto the beginning
14349         of any menu items that don't have one.  I did this because there
14350         will inevitably be some menu items on the main menubar that don't
14351         have accelerators on them because the package that adds that
14352         particular menu item hasn't yet been fixed up to have accelerators
14353         in them and it looked rather strange to have some items with and
14354         some items without accelerators, especially since even in items
14355         without accelerators, you can, at least under windows, still
14356         access the item through an accelerator corresponding to the first
14357         character in the item's name.  If people don't like this behavior,
14358         I can add a variable to turn it off optionally, but I'm not sure
14359         this is a good idea because we really do need to have accelerators
14360         on all of the menu items, and if a package doesn't like the
14361         accelerators being put on the first character, then it should put
14362         the accelerators where they belong.
14363
14364         c) I made a behavior change, which is that the descriptor that
14365         specifies the text of the menu item, which formerly was just a
14366         string, can now also be an evaluated expression.  This makes this
14367         descriptor parallel with all of the others, which could also be
14368         evaluated expressions.  This also obviates the need for the
14369         keyword :label, which was previously listed in the documentation
14370         as unimplemented, and which was for the same purpose.
14371
14372         d) GCPROing.
14373
14374         * ntproc.c:
14375         * ntproc.c (new_child):
14376         * ntproc.c (sys_spawnve):
14377         * ntproc.c (find_child_console):
14378         * ntproc.c (sys_kill):
14379         Fixed compile warnings.  By the way, this file should really go
14380         away entirely, and this will happen as soon as Kirill makes his
14381         final round of process cleanups, which affect the function
14382         call-process.
14383
14384         * process-nt.c:
14385         * process-nt.c (struct nt_process_data):
14386         * process-nt.c (find_process_from_pid):
14387         * process-nt.c (send_signal_the_nt_way):
14388         * process-nt.c (enable_child_signals):
14389         * process-nt.c (find_child_console):
14390         * process-nt.c (send_signal_the_95_way):
14391         * process-nt.c (nt_finalize_process_data):
14392         * process-nt.c (ensure_console_window_exists):
14393         * process-nt.c (nt_create_process):
14394         * process-nt.c (nt_kill_child_process):
14395         * process-nt.c (nt_kill_process_by_pid):
14396         * process-nt.c (nt_open_network_stream):
14397         * process-nt.c (vars_of_process_nt):
14398         Copied over code from Emacs 20.5 to correctly send signals to sub-
14399         processes under Windows 95.  Also added code to automatically
14400         create and hide console window when a sub-process is created under
14401         Windows 95, which obviates the need for the separate runemacs.exe
14402         executable, and finally implemented some variables that were
14403         implemented in Emacs 20.5, but previously not in XEmacs.  These
14404         include mswindows- start-process-share-console and
14405         mswindows-start-process-inherit-error-mode. (Both of these only
14406         apply to Windows 95.)
14407
14408         * regex.c (regex_compile): Fixed a compile warning.
14409
14410         * select-msw.c:
14411         * select-msw.c (mswindows_own_selection):
14412         * select-msw.c (mswindows_get_foreign_selection):
14413         * select-msw.c (mswindows_disown_selection):
14414         * select-msw.c (console_type_create_select_mswindows):
14415         * select-msw.c (syms_of_select_mswindows):
14416         Cleaned up the file and implemented the device method
14417         selection_exists_p, which had accidentally been left out.  Also
14418         removed four lisp functions that were remnants from before the
14419         time when the selection code was properly device abstracted.
14420         These functions are no longer needed because there are generic
14421         equivalents, and because they were added recently and don't exist
14422         in FSF Emacs, I don't think there's any problem with just deleting
14423         them.
14424
14425         * sysdep.c:
14426         * sysdep.c (sys_subshell):
14427         Fixed a compile warning, although in this case there's probably
14428         something wrong with this code, and it ought to be looked into
14429         more thoroughly by somebody who understands it.
14430
14431         * window.c:
14432         * window.c (Fwindow_text_area_height):
14433         * window.c (Fwindow_width):
14434         * window.c (Fwindow_full_width):
14435         * window.c (Fwindow_pixel_width):
14436         * window.c (debug_print_window):
14437         * window.c (syms_of_window):
14438         Added functions window-text-area-height and window-full-width,
14439         which are functions for returning various width and height
14440         characteristics of a window. (One of these functions is necessary
14441         for making the file dialog box work correctly, and the other one
14442         was added for completeness.)  Also added a table to the
14443         documentation for window-height which describes the entire scheme
14444         for accessing width and height characteristics of a window.
14445
14446 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14447
14448         * nt.c (fstat): Added a comment for another problem with
14449         non-encapsulated [f]stat(), reported by Adrian Aichner
14450         <aichner@ecf.teradyne.com>.
14451
14452 2000-03-11  Andy Piper  <andy@xemacs.org>
14453
14454         * window.c (make_dummy_parent): initialize subwindow instance
14455         cache.
14456         (Fset_window_configuration): zero extent_modiff.
14457
14458 2000-03-10  Andy Piper  <andy@xemacs.org>
14459
14460         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14461         more changes can be triggered.
14462         (Fredisplay_frame): ditto.
14463         (Fredraw_device): ditto.
14464         (Fredisplay_device): ditto.
14465         (redisplay_frame): make non-static.
14466         (redisplay_frame): call update_frame_gutter_geometry outside of
14467         display proper.
14468
14469         * gutter.h: declare update_frame_gutter_geometry.
14470
14471         * redisplay.h: declare redisplay_frame.
14472
14473         * gutter.c (update_frame_gutter_geometry): move geometry changes
14474         in update_frame_gutters here. Geometry changes can only occur
14475         outside of redisplay.
14476         (update_frame_gutters): remove geometry change code.
14477         (Fredisplay_gutter_area): make sure that we are in display when we
14478         update and that we have flushed any size changes.
14479
14480 2000-03-11  Andy Piper  <andy@xemacs.org>
14481
14482         * alloc.c (pdump_dump_data): remove i & count shadows.
14483
14484 2000-02-27  Mike Alexander  <mta@arbortext.com>
14485
14486         * sysdep.h: Declare pdump_read_file
14487
14488         * sysdep.c (pdump_read_file): New function
14489
14490         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14491         dump data
14492
14493 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14494
14495         * lrecord.h: add `lrecord_type_pgsetenv'.
14496
14497 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14498
14499         * symsinit.h: declare (vars|syms)_of* functions.
14500         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14501
14502 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14503
14504         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14505
14506         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14507         GCCs.
14508
14509         * emacs.c (main_1): Call postgres initialization code.
14510
14511         * postgresql.h: New file.  PostgreSQL RDBMS support.
14512         * postgresql.c: New file.
14513
14514 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14515
14516         * redisplay-output.c (redisplay_output_display_block): Disable
14517         redundant code.
14518
14519 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14520
14521         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14522         (Fcanna_henkan_next): Ditto.
14523         (Fcanna_bunsetu_henkou): Ditto.
14524         (Fcanna_henkan_kakutei): Ditto.
14525         (Fcanna_henkan_end): Ditto.
14526         (Fcanna_henkan_quit): Ditto.
14527         (Fcanna_henkan_next): Set retun value correctly.
14528         (c2mu): Use unsigned char instead of signed char.
14529
14530 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14531
14532         * emacs.c (main_1): Always call syms_of_gui.
14533         * inline.c: include gui.h
14534
14535 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14536
14537         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14538         converted to Lisp_Object.
14539         (Qtop_bottom): New variable.
14540         (syms_of_redisplay): Initialize it.
14541         * redisplay.h (Vvisible_bell): Ditto.
14542         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14543         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14544         only flash top and bottom.
14545
14546 2000-03-08  Andy Piper  <andy@xemacs.org>
14547
14548         * buffer.c (Frename_buffer): record new buffer name the right way.
14549
14550 2000-03-08  Andy Piper  <andy@xemacs.org>
14551
14552         * glyphs.c (update_subwindow): increase hash depth so that widget
14553         items get picked up properly.
14554
14555         * redisplay-output.c (compare_runes): increase hash depth so that
14556         widget items get picked up properly.
14557
14558 2000-03-08  Andy Piper  <andy@xemacs.org>
14559
14560         * gutter.c (output_gutter): add some debug.
14561
14562         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14563         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14564         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14565
14566         * redisplay-output.c (compare_runes): use display_hash to
14567         determine if glyphs really are not the same.
14568
14569         * glyphs.c (update_subwindow): check display_hash to see if
14570         anything really needs to be updated. If not then do
14571         nothing. Record the display_hash after updating.
14572         (image_instance_equal): compare the image_instance face also.
14573
14574 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14575
14576         * redisplay.h: Fix comment style.
14577
14578 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14579
14580         * consle-msw.h (struct mswindows_frame):
14581         Added new member paint_pending to indicate whether a WM_PAINT
14582         magic event has been queued for this frame.
14583
14584         * event-msw.c (mswindows_drain_windows_queue):
14585         Don't queue a WM_PAINT magic event if one is already queued.
14586         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14587
14588         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14589
14590 2000-03-07  Didier Verna  <didier@xemacs.org>
14591
14592         * dired.c: #include `regex.h' after `sysfile.h'.
14593
14594 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14595
14596         * sound.c (init_nas_sound): Fix compiler warning.
14597
14598         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14599         (FREE_STRUCT_P):
14600         (MARK_STRUCT_AS_FREE):
14601         (MARK_STRUCT_AS_NOT_FREE):
14602         Make `gcc -fstrict-aliasing' work properly.
14603
14604 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14605
14606         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14607         (mswindows_delete_device): Call CoUnnitialize().
14608
14609         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14610
14611 2000-02-25    <CraigL@DyCon.com>
14612
14613         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14614         <errno.h>.
14615
14616         * sysdep.c: This extern declaration for environ prevents MinGW
14617         from finding the variable in CRTDLL.DLL.
14618
14619         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14620         windows headers.
14621         (SHGFI_EXETYPE): ..
14622         (WM_MOUSEWHEEL): ..
14623         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14624         definitions.
14625         (MMRESULT): Removed, now defined in cygwin's windows headers.
14626         (TIMECAPS): ..
14627         (uid_t,gid_t,pid_t,ssize_t): ..
14628         (_timeb): Removed, MinGW defines both _timeb and timeb.
14629         (HAVE_H_ERRNO): Added.
14630         (HAVE_TZNAME): Added, configure is not detecting this.
14631
14632 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14633
14634         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14635         * syntax.c (syntax_match): Use it.
14636
14637         * cmds.c: Import auto-fill-chars from FSF Emacs.
14638         (Vauto_fill_chars): New variables.
14639         (internal_self_insert): Check Vauto_fill_chars.
14640         (vars_of_cmds):
14641         Declare auto-fill-chars as a Lisp variable and initialize it.
14642
14643 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14644
14645         * fileio.c (Fmake_symbolic_link):
14646         (Ffile_symlink_p):
14647         Run handlers even if local machine doesn't have symlinks.
14648
14649 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14650
14651         * event-msw.c (mswindows_drain_windows_queue):
14652         Don't generate paint magic events for non-XEmacs frames.
14653
14654 2000-03-05  Andy Piper  <andy@xemacs.org>
14655
14656         * redisplay.c (redisplay_frame): generate_displayable_area and
14657         friends assumes that we are not in GC, we therefore have to make
14658         sure that this doesn't happen.
14659
14660         * gutter.c (calculate_gutter_size): generate_displayable_area
14661         assumes that we are not in GC, we therefore have to make sure that
14662         this doesn't happen.
14663
14664 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14665
14666         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14667
14668 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14669
14670         * redisplay.c (regenerate_window): Make sure we set a sane value
14671         for end_pos even if we jump out of the loop.
14672         (regenerate_window): Answer Ben's question :-).
14673         (start_end_of_last_line): Add may_error argument.
14674         (start_of_last_line):
14675         (end_of_last_line): Pass may_error = 0.
14676         (end_of_last_line_may_error): New function.
14677         (pixel_to_glyph_translation): Use it, so we don't crash in
14678         event_to_glyph.
14679
14680 2000-03-04  Andy Piper  <andy@xemacs.org>
14681
14682         * window.h (struct window): add gutter_extent_modiff.
14683
14684         * window.c (allocate_window): zero out gutter_extent_modiff.
14685
14686         * redisplay.h: declare sync_display_line_structs.
14687
14688         * redisplay.c (add_glyph_rune): add a better comment.
14689
14690         * redisplay-output.c (sync_display_line_structs): made non-static.
14691         (compare_runes): remove unneccesary glyph cachel access.
14692
14693         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14694
14695         * gutter.c (output_gutter): don't output the gutter if extent
14696         changes only involve extents in buffers. use 4 sets of display
14697         lines.
14698         (gutter_extent_signal_changed_region_maybe): new function. Mark
14699         extents in gutters as changed.
14700         (update_frame_gutters): use 4 sets of display lines.
14701         (reset_gutter_display_lines): ditto.
14702         (free_frame_gutters): ditto.
14703         (redraw_exposed_gutter): force output of gutters.
14704
14705         * frame.h (struct frame): add 4 sets of gutter display lines.
14706
14707         * extents.c: (extent_changed_for_redisplay): signal changes to
14708         extents in strings in the gutter as well as extents in buffers.
14709
14710 2000-03-02  Andy Piper  <andy@xemacs.org>
14711
14712         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14713
14714         * frame.c (Fmake_frame): make sure the gutters get initialized
14715         after the frame is visible.
14716         (set_frame_selected_window): re-arrange compilation macros a
14717         little.
14718         (change_frame_size_1): mark gutters changed.
14719
14720         * device.c (Fset_device_class): mark gutters changed.
14721
14722 2000-03-01  Andy Piper  <andy@xemacs.org>
14723
14724         * window.c (window_top_frame_gutter_height): deleted.
14725         (window_bottom_frame_gutter_height): ditto.
14726         (window_left_frame_gutter_height): ditto.
14727         (window_right_frame_gutter_height): ditto.
14728         (window_top_gutter_height): don't use them.
14729         (window_bottom_gutter_height): ditto.
14730         (window_left_gutter_width): ditto.
14731         (window_right_gutter_width): ditto.
14732         (Fsplit_window): ditto.
14733         (Fwindow_pixel_edges): don't use border dimensions here.
14734
14735         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14736         (update_scrollbar_instance): ditto.
14737
14738         * redisplay.c (generate_modeline): don't take gutters into account.
14739         (generate_modeline): ditto.
14740         (redisplay_frame): small gutter display optimization.
14741
14742         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14743
14744         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14745         gutters into account.
14746
14747         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14748         for window position and type.
14749
14750         * gutter.c (get_gutter_coords): fix for frame gutters.
14751         (update_frame_gutters): update frame geometry if the gutters have
14752         changed.
14753         (init_frame_gutters): record current gutter geometries.
14754
14755         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14756         var.
14757         (mswindows_widget_instantiate): ditto.
14758
14759         * frame.h (struct frame): add current_gutter_bounds.
14760
14761         * frame.c (change_frame_size_1): position window and minibuffer
14762         appropriately taking into account the frame gutters.
14763
14764         * frame-x.c: (x_initialize_frame_size): take into account the
14765         frame gutters.
14766
14767 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14768
14769         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14770
14771 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14772
14773         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14774
14775 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14776
14777         * file-coding.c (reset_decoding_stream): Clear previous
14778         detection state when autodetect.
14779
14780 2000-02-29  Didier Verna  <didier@xemacs.org>
14781
14782         * extents.c (set_extent_glyph_1): don't require extents to be
14783         attached.
14784
14785 2000-02-27  Andy Piper  <andy@xemacs.org>
14786
14787         * gutter.c (Fset_default_gutter_position): don't default left and
14788         right gutter visibility to t.
14789         (Fset_default_gutter_position): run
14790         default-gutter-position-changed-hook.
14791         (syms_of_gutter): add default-gutter-position-changed-hook.
14792
14793 2000-02-26  Andy Piper  <andy@xemacs.org>
14794
14795         * specifier.c (Fmake_specifier): add gutter references.
14796
14797         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14798
14799         * lisp.h: declare Fvalid_plist_p.
14800
14801         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14802         as changed.
14803         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14804         well as its visibility so that it gets reconstructed.
14805         (construct_window_gutter_spec): new function. Construct a string
14806         to be displayed in the gutter from a plist of strings. Take care
14807         to only use elements that are declared as visible.
14808         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14809         WINDOW_GUTTER.
14810         (gutter_validate): allow plists of strings in the specifier.
14811         (gutter_specs_changed): construct the real_gutter from the gutter
14812         specs using construct_window_gutter_spec.
14813         (gutter_visible_validate): gutter-visible is a new specifier type.
14814         (Fgutter_visible_specifier_p): new function for the new specifier.
14815         (syms_of_gutter): declare gutter-visible and
14816         Fgutter_visible_specifier_p.
14817         (specifier_type_create_gutter): intitalize new gutter-visible
14818         specifier.
14819         (reinit_specifier_type_create_gutter): ditto.
14820         (specifier_vars_of_gutter): use new specifier type for gutter
14821         visibility.
14822         (init_frame_gutters): construct real_gutter correctly.
14823         (Fgutter_specifier_p): beef up documentation.
14824         (Fgutter_size_specifier_p): ditto.
14825
14826         * winslots.h: add real_gutter slots.
14827
14828 2000-02-25  Andy Piper  <andy@xemacs.org>
14829
14830         * device-msw.c: Be kind to older cygwin versions. From Raymond
14831         Toy <toy@rtp.ericsson.se>.
14832
14833         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14834         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14835
14836 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14837
14838         * elhash.c (MARK_OBJ): Practice macro hygiene.
14839
14840 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14841
14842         * miscplay.c: s/__inline__/inline/g;
14843         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14844         (get_device_compdc): INLINE ==> static inline
14845         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14846         find -name '*.h' | \
14847         xargs global-replace \
14848         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14849
14850 2000-02-25  Andy Piper  <andy@xemacs.org>
14851
14852         * window.c (window_top_frame_gutter_height): new function.
14853         (window_top_window_gutter_height): ditto.
14854         (window_top_gutter_height): use them.
14855         (window_bottom_frame_gutter_height): new function.
14856         (window_bottom_window_gutter_height): ditto.
14857         (window_bottom_gutter_height): use them.
14858         (window_left_window_gutter_width): new function.
14859         (window_left_frame_gutter_width): ditto.
14860         (window_left_gutter_width): use them.
14861         (window_right_window_gutter_width): new function.
14862         (window_right_frame_gutter_width): ditto.
14863         (window_right_gutter_width): use them.
14864         (window_pixel_height): new function. calulate window pixel height
14865         with frame gutter involvement.
14866         (Fsplit_window): calculate new sizes taking frame gutters into
14867         account.
14868         (window_char_height_to_pixel_height): don't include frame gutters.
14869         (window_char_height): use window_pixel_height.
14870         (window_pixheight): rename from window_pixel_height.
14871         (change_window_height): use it.
14872         (window_pixel_height_to_char_height): don't include frame gutters.
14873         (window_char_width_to_pixel_width): ditto.
14874
14875 2000-02-25  Andy Piper  <andy@xemacs.org>
14876
14877         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14878         if it is.
14879
14880 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14881
14882         * alloc.c (staticpro):
14883         (staticpro_nodump):
14884         (dumpstruct):
14885         (dumpopaque):
14886         (pdump_wire):
14887         (pdump_wire_list):
14888         (compact_string_chars):
14889         (pdump_dump_wired):
14890         Convert:  if (foo) abort();  ==>  assert (! foo);
14891
14892         * eldap.c (Fldap_search_basic):
14893         (Fldap_add):
14894         (Fldap_modify):
14895         (Fldap_delete):
14896         Fix compiler warnings, and possible crashes if (random) return
14897         value were to be used.
14898
14899 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14900
14901         * device-msw.c: Workaround ResetDC failure.
14902
14903         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14904         applying a devmode.
14905
14906         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14907         (mswindows_text_width): Do not start printer page.
14908
14909         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14910
14911         * glyphs-msw.c: Added image methods to msprinter console and
14912         msprinter-specific image instantiation.
14913
14914 2000-02-20  Mike Alexander  <mta@arbortext.com>
14915
14916         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14917         to avoid crashes when selection-sets-clipboard is on
14918         (mswindows_own_selection): ditto
14919
14920 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14921
14922         * glyphs-msw.c:
14923         * redisplay-msw.c (get_frame_dc):
14924         (get_frame_compdc):
14925         * console-msw.h:
14926         * device-msw.c (mswindows_init_device):
14927         (mswindows_delete_device):
14928         (msprinter_init_device):
14929         (msprinter_delete_device):
14930         * frame-msw.c (mswindows_init_frame_1):
14931         (mswindows_delete_frame):
14932         (msprinter_init_frame_3):
14933         (msprinter_delete_frame): Move compatible DC to device object from
14934         frame object, for both mswindows and msprinter. Only one at a time
14935         is needed, it is a real waste to have one per frame!
14936
14937 2000-02-23  Andy Piper  <andy@xemacs.org>
14938
14939         * glyphs.c: add dynamic width and height elements.
14940         (image_instance_equal): ditto.
14941
14942         * glyphs-widget.c (widget_query_geometry): calculate width and
14943         height dynamically if required.
14944         (initialize_widget_image_instance): initialize dynamic dimensions.
14945         (widget_instantiate): pick-up dynamic dimensions.
14946
14947         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14948         dynamic determination. Add appropriate macros.
14949
14950         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14951         dimensions safe.
14952         (WINDOW_GUTTER_SIZE): ditto.
14953         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14954
14955         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14956         inline.
14957         (get_frame_dc): ditto.
14958
14959         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14960         here.
14961
14962 2000-02-23  Martin Buchholz <martin@xemacs.org>
14963
14964         * XEmacs 21.2.31 is released.
14965
14966 2000-02-22  Ben Wing <ben@xemacs.org>
14967
14968         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14969
14970 2000-02-22  Andy Piper  <andy@xemacs.org>
14971
14972         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14973
14974 2000-02-21  Mike Sperber <mike@xemacs.org>
14975
14976         * .dbxrc:
14977         * .gdbinit:
14978         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14979         variables.
14980
14981 2000-02-21  Mike Sperber <mike@xemacs.org>
14982
14983         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14984
14985 2000-02-21  Martin Buchholz <martin@xemacs.org>
14986
14987         * XEmacs 21.2.30 is released.
14988
14989 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14990
14991         Performance hacking.
14992         * *.c (syms_of_*):
14993         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
14994         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
14995         * emacs.c (main_1):
14996         * lisp.h (DEFUN):
14997         * console.c (DEFVAR_CONSOLE_LOCAL_1):
14998         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
14999         * symeval.h (DEFVAR_SYMVAL_FWD):
15000         * symbols.c (guts_of_unbound_marker):
15001         Make all c_readonly objects also lisp_readonly and marked for life.
15002         * lrecord.h (struct lrecord_implementation):
15003         Document flags better.
15004         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
15005         * lrecord.h (DECLARE_LRECORD):
15006         * lrecord.h (XSETRECORD):
15007         * lrecord.h (RECORDP):
15008         * lrecord.h (RECORD_TYPEP):
15009         * lrecord.h (RECORD_MARKER): New.
15010         * lrecord.h (error_check_*):
15011         * lrecord.h (CONCHECK_NONRECORD):
15012         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
15013         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
15014         * lrecord.h (set_lheader_implementation):
15015         * lrecord.h (enum lrecord_type): New.
15016         * symeval.h (SYMBOL_VALUE_MAGIC_P):
15017         * alloc.c (disksave_object_finalization_1):
15018         * alloc.c (mark_object):
15019         * alloc.c (lrecord_type_index):
15020         * alloc.c (tick_lcrecord_stats):
15021         * alloc.c (Fgarbage_collect):
15022         * alloc.c (init_alloc_once_early):
15023         * alloc.c (pdump_load):
15024         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
15025         * alloc.c (lrecord_type_index): Delete.
15026         Make lisp object type indexes be constant.
15027           Makes (byte-compile) 5% faster.
15028         Put all marker functions into their own array.
15029           Makes (garbage-collect) 5% faster.
15030         Optimize SYMBOL_VALUE_MAGIC_P.
15031           Makes (byte-compile) 2-3% faster.
15032         * config.h.in (gc_checking_assert): New.
15033         * alloc.c: Use gc_checking_assert().
15034         * .dbxrc: Make compatible with new object type implementation.
15035         * .gdbinit: Make compatible with new object type implementation.
15036         * alloc.c: Delete all symbols defined only for debugging, such as
15037         Lisp_Type_Vector and lrecord_charset.
15038
15039 2000-02-21  Andy Piper  <andy@xemacs.org>
15040
15041         * gui-msw.c (Fmswindows_shell_execute): fix file location
15042         problems.
15043
15044         * buffer.c (Fkill_buffer): remove buffer from alist buffer
15045         unshowing so that set_window_buffer doesn't undo
15046         kill_buffer_hook's hard work.
15047
15048         * glyphs-widget.c (tab_control_query_geometry): don't count the
15049         first item when calculating geometry.
15050
15051         * glyphs.c (map_subwindow): remove redundant code.
15052         (update_frame_subwindows): be more circumspect about when to
15053         update subwindows.
15054
15055         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
15056         when items haven't changed. Update faces if faces have changed as
15057         well as just the widget face.
15058         (x_tab_control_update): Update faces if faces have changed as well
15059         as just the widget face.
15060
15061 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15062
15063         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
15064         registration.
15065         (build_syscolor_string): Use mswindows_color_to_string to try to
15066         get a named color.
15067         (mswindows_device_system_metrics): Reverse the foreground and
15068         background colors so that they match the documentation.
15069
15070         * objects-msw.c: (mswindows_X_color_map): tweak some values so
15071         they match the default Windows palette.
15072         (mswindows_color_to_string): New function.
15073
15074 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15075
15076         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
15077
15078 2000-02-18  Olivier Galibert  <galibert@pobox.com>
15079
15080         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
15081         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
15082
15083         * symbols.c (init_symbols_once_early): Removed obsolete
15084         DATA_SEG_BITS related kludge.
15085         (defvar_magic): Ditto.
15086
15087         * malloc.c: Removed obsolete DATA_SEG_BITS
15088         * ralloc.c: Ditto.
15089         * mem-limits.h: Ditto.
15090
15091         * Makefile.in.in: Removed obsolete HAVE_SHM
15092         * emacs.c: Ditto.
15093
15094 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15095
15096         *  device-msw.c (mswindows_delete_device): Free DDE string
15097         handles.
15098
15099 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15100
15101         * keymap.c (get_keyelt):
15102         * unexnt.c (unexec):
15103         * vm-limit.c (memory_warnings):
15104         * ntheap.c (recreate_heap):
15105         * ntheap.h (UNINIT_PTR):
15106         * select-msw.c (Fmswindows_get_clipboard):
15107         (Fmswindows_set_clipboard):
15108         * objects-msw.h (MSWINDOWS_BAD_HFONT):
15109         * objects-msw.c:
15110         * menubar-msw.c (displayable_menu_item):
15111         * glyphs-msw.c:
15112         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
15113         * sysdep.c (sys_subshell):
15114         * process-nt.c (nt_create_process):
15115         * nt.c (normalize_filename):
15116         (dostounix_filename):
15117         (unixtodos_filename):
15118         * ntproc.c (win32_executable_type):
15119         * ntplay.c (play_sound_data_1):
15120         (play_sound_file):
15121         * editfns.c (get_home_directory):
15122         * event-msw.c (struct winsock_stream):
15123         (mswindows_dde_callback):
15124         * device-msw.c (msprinter_init_device):
15125         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
15126
15127         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
15128         mswindows_clear_toolbar were swapped!
15129
15130         * objects-msw.c:(colormap_t):
15131         (fontmap_t):
15132         * emacs.c (struct standard_args): Fixed const jumble.
15133
15134         * glyphs-widget.c (update_widget): Fixed comparison notation.
15135
15136         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
15137
15138         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
15139         __declspec(noreturn) syntax.
15140
15141 2000-02-19  Martin Buchholz  <martin@xemacs.org>
15142
15143         * eldap.c (Fldap_open):
15144         (Fldap_search_basic):
15145         (Fldap_add):
15146         (Fldap_modify):
15147         Use new coding system conversion macros.
15148
15149 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15150
15151         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
15152
15153 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
15154
15155         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
15156         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15157
15158         * eldap.c (Qadd, Qreplace): New constant symbols
15159         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
15160         interruptions by XEmacs signals
15161         Remove unnecessary calls to slow_down_interrupts and
15162         speed_up_interrupts
15163         (Fldap_search_basic): Renamed from Fldap_search_internal
15164         Added new optional parameter VERBOSE that triggers the
15165         display of progress messages
15166         Remove unnecessary calls to slow_down_interrupts and
15167         speed_up_interrupts
15168         LDAP result code analysis rewritten
15169         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15170         (syms_of_eldap): Define the new symbols and functions
15171
15172
15173 2000-02-17  Martin Buchholz  <martin@xemacs.org>
15174
15175         * realpath.c: Determine PATH_MAX maximally portably.
15176
15177         * insdel.c (bytecount_to_charcount): Optimize.
15178         The function used to be optimized for entirely ASCII sequences.
15179         Now it is optimized for successive characters from the same
15180         charset.  This also wins big for _mostly_ ASCII sequences.
15181
15182         * fileio.c (Ffile_truename): convert return from realpath() using
15183         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
15184         - Rewrite GCPROing slightly.
15185
15186         * sysdep.c (sys_open): Do filename conversion, like all other
15187         sys_* functions.  Fixes bug:
15188         (let ((file-name-coding-system 'iso-8859-2))
15189            (write-region x y latin2-name))
15190         ==> writes filename using internal encoding.
15191
15192 2000-02-18  Martin Buchholz  <martin@xemacs.org>
15193
15194         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
15195         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
15196         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
15197         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
15198         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
15199         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
15200         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
15201         (CONST_IF_NOT_DEBUG): Delete.
15202         * alloc.c (this_one_is_unmarkable): Delete.
15203         (mark_object): Don't check for this_one_is_unmarkable. Use the
15204         c_readonly flag instead.
15205         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
15206
15207 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15208
15209         * event-msw.c (mswindows_drain_windows_queue):
15210         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
15211         away redundant repaint events.
15212
15213 2000-02-17  Andy Piper  <andy@xemacs.org>
15214
15215         * redisplay.h: declare mark_redisplay_structs.
15216
15217         * redisplay.c (redisplay_window):
15218         (redisplay_frame): don't check subwindows_state_changed.
15219         (mark_redisplay): mark gutters here.
15220
15221         * glyphs.c: (instantiate_image_instantiator): always layout if we
15222         haven't done so already.
15223         (allocate_image_instance): don't mark as dirty.
15224         (update_subwindow): bind inhibit_quit.
15225
15226         * gutter.c (mark_gutters): new function.
15227
15228         * glyphs-x.c (x_update_widget): Always resize to get round a
15229         widget bug.
15230
15231         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
15232         breaking absolutely everything.
15233
15234         * gutter.h: declare mark_gutters.
15235
15236 2000-02-16  Martin Buchholz <martin@xemacs.org>
15237
15238         * XEmacs 21.2.29 is released.
15239
15240 2000-02-15  Olivier Galibert  <galibert@pobox.com>
15241
15242         * fns.c (size_bit_vector): Fix computation of the size.
15243
15244 2000-02-15  Martin Buchholz  <martin@xemacs.org>
15245
15246         * *.[ch]: Change CONST to const globally.
15247         find -name '*.[ch]' | \
15248         xargs global-replace \
15249         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
15250         - Remove vestigial references to CONST_IS_LOSING
15251
15252 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15253
15254         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
15255         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
15256         events instead of dispatching them directly.
15257         (mswindows_handle_paint): New function to do repainting.
15258         (mswindows_wnd_proc):
15259         (emacs_mswindows_handle_magic_event): Call above function.
15260
15261 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15262
15263         * objects-msw.c (mswindows_create_font_variant): Return the new
15264         font handle.
15265         (initialize_font_instance): Get font metrics from the underlined
15266         variant of the font to cope with the case where the underlined
15267         font has a bigger descent.
15268
15269 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15270
15271         * gui.c (gui_item_accelerator): Return the first underlined
15272         character in item name.
15273
15274 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15275
15276         * lisp.h: Added Qprinter.
15277
15278         * general.c (syms_of_general): Initialized it.
15279
15280         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
15281         (get_frame_dc):
15282         (get_frame_compdc): Made inline.
15283
15284         * console.h (struct console_methods): Added eject_page method.
15285
15286         * frame.h: Added FRAME_DISPLAY_P and friends.
15287         Aligned backslahes in many macros in more readable fashion.
15288         Added page_number to struct frame, and an accessor macro
15289         for it.
15290
15291         * defice.h: Added DEVICE_DISPLAY_P and friends.
15292
15293         * device.c (Fdevice_printer_p): Used these.
15294
15295         * frame.c (allocate_frame_core): Initialize page number.
15296         (Fprint_job_page_number):
15297         (Fprint_job_eject_page): Implemented.
15298
15299         * frame-msw.c (msprinter_eject_page): Added method.
15300         (msprinter_start_page): Added.
15301
15302         * window.c (Fwindow_truncated_p): Fixed docstring.
15303         (Fwindow_last_line_visible_height): Implemented.
15304
15305 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15306
15307         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
15308
15309 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15310
15311         * syntax.c (scan_words): Always advance at least one character.
15312
15313 2000-02-13  Andy Piper  <andy@xemacs.org>
15314
15315         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
15316         to make sure the glyph is in the cachels.
15317
15318         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
15319         global image instance flag.
15320         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
15321         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
15322
15323         * glyphs.c (allocate_image_instance): set dirty bits correctly.
15324         (Fset_image_instance_property): mark layout as changed.
15325         (invalidate_glyph_geometry_maybe): mark layout as changed.
15326         (glyph_width): use new NEEDS_LAYOUT macro.
15327         (glyph_ascent): ditto.
15328         (glyph_descent): ditto.
15329         (glyph_height): ditto.
15330         (image_instance_layout): mark layout as clean after laying out.
15331         (update_subwindow): don't mark layout as clean here.
15332
15333         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
15334         should no longer be needed.
15335
15336         * glyphs-x.c (x_update_widget): sanitize asserts.
15337         (x_finalize_image_instance): sanitize assignment to widgets.
15338
15339         * glyphs-widget.c (widget_instantiate): don't need to clear the
15340         layout flag here.
15341
15342 2000-02-13  Martin Buchholz  <martin@xemacs.org>
15343
15344         * sysdep.c (getcwd): Use standard prototype.
15345         * sysdep.h (getcwd): Use standard prototype.
15346
15347         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
15348         (sequence, start, end).
15349         Remove redundant type checking.
15350         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
15351         view of `caller-protects') to avoid a crash where the real fix was
15352         found elsewhere.
15353
15354 2000-02-12  Martin Buchholz  <martin@xemacs.org>
15355
15356         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
15357
15358         * s/sol2.h: Remove feature macro initialization.
15359
15360         * alloc.c (alloc_lcrecord): Add more type checking assertions.
15361         (vector_hash): New.  Code from internal_hash.
15362         * lrecord.h:
15363         Fix up allocation subsystem comments.
15364
15365         * config.h.in: Add __EXTENSIONS__ for Solaris.
15366
15367         * systime.h (EMACS_GETTIMEOFDAY): New.
15368         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
15369         Remove Solaris-specific code.
15370         Use void* for the (ignored) second arg for gettimeofday().
15371
15372         * elhash.c (hash_table_hash): Implement it, finally.
15373         * elhash.c:  Use hashcode_t.
15374
15375         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
15376         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
15377
15378         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
15379         * fns.c (size_bit_vector):
15380         * alloc.c (size_vector):
15381         (make_vector_internal):
15382         (make_bit_vector_internal):
15383         (sweep_bit_vectors_1):
15384         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
15385
15386 2000-02-10  Martin Buchholz  <martin@xemacs.org>
15387
15388         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
15389         Include strings.h to avoid warnings for bzero and strcasecmp.
15390
15391 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15392
15393         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
15394         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
15395
15396         * fns.c (size_bit_vector): New.  Declare bit vectors as a
15397         sequence.
15398
15399 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15400
15401         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15402         use a value field instead.
15403         (symbol_value_forward_forward): Use value field.
15404         (DEFVAR_SYMVAL_FWD): Use value field.
15405         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
15406         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15407         (DEFVAR_CONST_INT): Ditto.
15408         (DEFVAR_BOOL): Ditto.
15409         (DEFVAR_CONST_BOOL): Ditto.
15410         (DEFVAR_INT_MAGIC): Ditto.
15411         (DEFVAR_BOOL_MAGIC): Ditto.
15412
15413         * symbols.c (guts_of_unbound_marker): Use value field.
15414         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15415         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15416
15417         * lisp.h: Declare dumpopaque and noninteractive1.
15418
15419         * alloc.c (dumpopaque): Added.
15420         (pdump_dump_opaquevec): Added.
15421         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15422         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15423         noninteractive.
15424
15425 2000-02-10  Andy Piper  <andy@xemacs.org>
15426
15427         * glyphs.c (image_instance_layout): if the size changes, mark it
15428         as such.
15429
15430         * redisplay-output.c (redisplay_output_layout): Update the
15431         subwindow here.
15432         (redisplay_output_subwindow): ditto.
15433
15434         * glyphs.c (update_subwindow): make sure we reset flags for
15435         layouts as well as everything else.
15436
15437         * glyphs-widget.c (layout_layout): don't need to set the instances
15438         dimensions here.
15439
15440 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15441
15442         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15443         not HAVE_DLOPEN, which is a lower-level thing.
15444
15445         * .cvsignore: Ignore gmon.out
15446
15447 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15448
15449         * .cvsignore: Ignore portable dumper xemacs.dmp file
15450
15451 2000-02-09  Andy Piper  <andy@xemacs.org>
15452
15453         * redisplay-output.c (redisplay_output_layout): be more clever
15454         about when we output based on the changed flags.
15455
15456         * glyphs.h (struct image_instantiator_methods): add update_method.
15457         (struct Lisp_Image_Instance): add changed flags. Declare new
15458         macros for manipulating them.
15459
15460         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15461         (image_instance_parent_glyph): find an image_instance's parent
15462         glyph or image_instance.
15463         (image_instance_layout): mark the size as changed.
15464         (set_image_instance_dirty_p): new function. mark an image
15465         instance, plus all of its parents, as dirty.
15466         (Fset_image_instance_property): use it.
15467         (Fglyph_animated_timeout_handler): use it.
15468         (update_subwindow): call update_widget and device methods for
15469         update_subwindow. Mark all changed flags as clean.
15470         (Fresize_subwindow): mark size as changed.
15471
15472         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15473         failures.
15474         (x_update_subwindow): only resize subwindows here.
15475         (x_update_widget): new function. Update all changed properties of
15476         a widget.
15477         (x_resize_subwindow): deleted.
15478         (x_widget_set_property): deleted.
15479         (x_progress_gauge_set_property): deleted.
15480         (x_progress_gauge_update): new function. Implement recorded
15481         changes.
15482         (x_tab_control_update): ditto.
15483         (x_tab_control_set_property): deleted.
15484         (console_type_create_glyphs_x): declare new functions.
15485         (image_instantiator_format_create_glyphs_x): ditto.
15486
15487         * glyphs-widget.c (widget_set_property): mark text changed.
15488         (update_widget): new function. Update properties of a widget.
15489         (widget_instantiate): for layouts make sure we set their
15490         children's parent correctly.
15491         (tab_control_set_property): new function. Record changes that will
15492         take place under redisplay's control.
15493         (progress_gauge_set_property): ditto.
15494         (image_instantiator_progress_guage): declare new functions.
15495         (image_instantiator_tab_control): ditto.
15496
15497         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15498         now.
15499         (mswindows_update_widget): new function. Update all properties on
15500         a widget that have changed.
15501         (mswindows_button_update): new function. Update a button's set
15502         state.
15503         (mswindows_tab_control_update): new function. Update the items in
15504         a tab.
15505         (mswindows_tab_control_set_property): deleted.
15506         (mswindows_progress_gauge_update): new function. Update the
15507         progress gauge's progress.
15508         (mswindows_widget_set_property): deleted. This is all done
15509         asynchronously now.
15510         (mswindows_progress_gauge_set_property): ditto.
15511         (console_type_create_glyphs_mswindows): declare new methods.
15512         (image_instantiator_format_create_glyphs_mswindows): ditto.
15513
15514         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15515         (msprinter_set_frame_properties): ditto.
15516
15517         * console.h (struct console_methods): Add update_widget_method.
15518
15519 2000-02-09  Andy Piper  <andy@xemacs.org>
15520
15521         * gui-msw.c (Fmswindows_shell_execute): Make
15522         mswindows-shell-execute industrial strength.
15523
15524 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15525
15526         * lrecord.h: Make macro argument `props' match member function `plist'.
15527         * fns.c (Fget):
15528         * fns.c (Fput):
15529         * fns.c (Fremprop):
15530         * fns.c (Fobject_plist):
15531         * alloc.c:
15532         * symbols.c:
15533         Object property list frobbing cleanup.
15534         - Allow any lisp object (compared with `eq'), not just symbols, as
15535           keys in object plists.
15536         - Move symbol plist frobbing into symbols.c, where it belongs.
15537         - Move string plist frobbing into alloc.c, where it belongs.
15538         - Everything's an lrecord now, so no need to test for symbolp, etc.
15539         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15540
15541         * extents.c: Reorder code to remove declarations.
15542
15543         * frame.h (store_in_alist): Remove useless declaration.
15544
15545 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15546
15547         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15548         * config.h.in: Add HAVE_XCONVERTCASE.
15549
15550 2000-02-07  Andy Piper  <andy@xemacs.org>
15551
15552         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15553         it breaks many things.
15554
15555 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15556
15557         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15558         actually can start a common comment type.
15559         * src/syntax.h (SYNTAX_END_P): ditto for end.
15560
15561 2000-02-07  Martin Buchholz <martin@xemacs.org>
15562
15563         * XEmacs 21.2.28 is released.
15564
15565 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15566
15567         * event-Xt.c (x_keysym_to_character): New.
15568         (maybe_define_x_key_as_self_inserting_character): New.
15569         (x_has_keysym): New.
15570         Auto-define all keys on the keyboard as self-insert-key.
15571
15572 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15573
15574         * menubar.c (vars_of_menubar): A small code simplification.
15575
15576         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15577
15578         * ExternalShell.c:
15579         * ExternalClient.c:
15580         * EmacsShell-sub.c:
15581         * EmacsManager.c:
15582         * EmacsFrame.c:
15583         Use consistent style for specifying X resources.
15584
15585         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15586         This makes (dontusethis-set-symbol-value-handler) actually usable.
15587
15588         * lrecord.h (lrecord_decription_type):
15589         * alloc.c (pdump_register_sub):
15590         (pdump_dump_data):
15591         (pdump_reloc_one):
15592         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15593         Comply with XEmacs coding style.
15594         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15595         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15596
15597         * keymap.c (Faccessible_keymaps):
15598         Make (accessible-keymaps map "\C-h") do the Right Thing.
15599         Make (accessible-keymaps map []) do the Right Thing.
15600         Make (accessible-keymaps map "") do the Right Thing.
15601         (check_keymap_definition_loop): New function.
15602         (keymap_store_internal): Keep luser from shooting self in foot,
15603           via (define-key ctl-x-4-map "p" global-map).
15604         Remove fullness slot from struct Lisp_Keymap, since hash tables
15605         are now reliable.
15606         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15607
15608 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15609
15610         * redisplay.c (init_redisplay): Fix small memory leak.
15611         * elhash.h:
15612         * elhash.c (pdump_reorganize_hash_table):
15613         Rename from reorganize_hash_table. Change prototype.
15614         Reuse the original memory for hentries.  Save 100k.
15615         * alloc.c (PDUMP_READ): new macro.
15616         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15617         * alloc.c: No need to #ifndef before #undef.
15618
15619         * print.c: Allow debug_print() to print readably by modifying
15620         debug_print_readably.  Use consistent variable names.
15621
15622         * .dbxrc: Try to get things to work even if stopped in a function
15623         without source available by explicitly specifying source files.
15624 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15625
15626         * unexnt.c (_start): Removed bogus code which caused loading heap
15627         from differrent executable file.
15628         Removed bogus assignment to _fmode, which caused inconsistencies.
15629
15630 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15631
15632         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15633         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15634         Do not preliminary `#define signal sigset'.
15635
15636         * systime.h: Do not prototype environ on windows nt and cygwin,
15637         this conflicts with system header.
15638
15639         * syssignal.h: Use correct define for WINDOWSNT
15640
15641         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15642         with system header.
15643
15644         * sysdep.c (near start of file): Fixed commentary and rearranged
15645         ifdefs in readable order.
15646         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15647         (start_of_text):
15648         (end_of_text):
15649         (end_of_data): Do not compile in if using PDUMP.
15650
15651         * symsinit.h: Prototyped vars_of_nt().
15652
15653         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15654         (find_child_console): Use it.
15655         (sys_kill): Use it.
15656
15657         * ntheap.h: Do not extern os_subtype.
15658
15659         * ntheap.c (cache_system_info): Do not cache unneeded:
15660         nt_major_version, nt_minor_version and os_subtype.
15661         (recreate_heap): Do not compile in when PDUMPing.
15662
15663         * nt.c (geteuid and friends): Use the new varibale
15664         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15665         (init_user_info): Removed the above mentioned hackery.
15666         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15667         stat has been fixed in the C runtime.
15668         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15669
15670         * file-coding.c (struct file_coding_dump): Do not define
15671         ucs_to_mule_table in the struct if not MULE.
15672         (struct struct lrecord_description fcd_description_1): Do not dump
15673         the above.
15674
15675         * emacs.c (main_1): Call vars_of_nt().
15676         (right before Fdump_emacs_data): Don't need lastfile if using both
15677         portabe dumper and system malloc.
15678
15679         * alloc.c (Fmemory_limit): Conditionalized out.
15680         (pdump): Use OPEN_BINARY for the portable dump file.
15681         (pdump_load): Ditto.
15682
15683 2000-02-02  Mike Alexander  <mta@arbortext.com>
15684
15685         * nt.c (convert_time): Set tm_isdst before calling mktime and
15686         avoid calling it at all if the compiler supports 64 bit integers.
15687         Also initialize utc_base_ft before using it.
15688
15689 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15690
15691         * frame.c (change_frame_size_1): Take f->internal_border_width
15692         into consideration when calculating the width of the frame.
15693
15694 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15695
15696         * window.c (frame_min_height):
15697         (frame_size_valid_p):
15698         (frame_pixsize_valid_p): Added.
15699         (check_frame_size): Generalized.
15700
15701         * window.h: Prototyped the above.
15702
15703         * lisp.h:
15704         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15705         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15706         Deleted Vwin32_* and Vbinary_process_* unused variables.
15707
15708         * device-msw.c (msprinter_init_device): Do not get printer font
15709         list; Added DEVMODE functions.
15710
15711         * frame-msw.c: Added lots of printer code.
15712
15713         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15714         general.c.
15715
15716         * console-msw.h: Added more msprinter device private slots.
15717
15718 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15719
15720         * event-msw.c (key_needs_default_processing_p): Added.
15721         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15722
15723 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15724
15725         * glyphs.c (image_instance_layout): Mark image instance as clean
15726         after layout.
15727         (glyph_dirty_p): Removed redundant function.
15728         (invalidate_glyph_geometry_maybe): Added.
15729         (update_glyph_cachel_data): Call it.
15730
15731         * glyphs.h: Prototyped it.
15732
15733         * redisplay.c (add_glyph_rune): Call it.
15734         (redisplay_window): Reset glyphs cachels when frame faces have
15735         changed, thus forcing recomputation of built-in border glyphs.
15736
15737 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15738
15739         * Makefile.in.in: Make portable dumper and purify play well together.
15740         Add imperfect, but better than nothing, support for pdump.
15741         Remove xemacs.dmp when temacs is re-generated.
15742         Don't ignore errors when dumping xemacs.
15743
15744         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15745
15746 2000-01-28  Andy Piper  <andy@xemacs.org>
15747
15748         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15749         (setup_normal_frame): ditto.
15750         (setup_frame_without_minibuffer): ditto.
15751         (setup_minibuffer_frame): ditto.
15752         (delete_frame_internal): ditto.
15753         (Fmake_frame_invisible): ditto.
15754         (Ficonify_frame): ditto.
15755
15756         * window.h: change Fset_window_buffer signature.
15757
15758         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15759         (Fset_window_buffer): allow recording of buffer if the window is
15760         the selected window.
15761         (window_loop): Use new Fset_window signature.
15762
15763 2000-01-23  Daniel Pittman  <daniel@danann.net>
15764
15765         * config.h.in: Added template for `HAVE_ATHENA_3D'
15766
15767 2000-01-29  Andy Piper  <andy@xemacs.org>
15768
15769         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15770
15771         * gutter.c (output_gutter): Don't output if the window isn't live.
15772
15773 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15774
15775         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15776         of 01/12/00: Moved SetFocus back here where it belongs.
15777
15778 2000-01-23  Andy Piper  <andy@xemacs.org>
15779
15780         * s/cygwin32.h: declare printer things.
15781
15782 2000-01-26  Andy Piper  <andy@xemacs.org>
15783
15784         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15785         Alexander.
15786
15787 2000-01-24  Andy Piper  <andy@xemacs.org>
15788
15789         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15790         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15791
15792         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15793
15794         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15795
15796         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15797
15798         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15799         (mswindows_output_display_block): Avoid local shadows.
15800
15801         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15802         (mswindows_enqueue_mouse_button_event): ditto.
15803         (mswindows_handle_gui_wm_command): remove declaration.
15804
15805         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15806         warnings.
15807
15808         * console-msw.h: Avoid shadows.
15809         (mswindows_get_toolbar_button_text):
15810         (emacs_mswindows_create_stream_pair):
15811         (emacs_mswindows_delete_stream_pair):
15812         (mswindows_handle_toolbar_wm_command): declare.
15813
15814         * device-msw.c (build_syscolor_string): Avoid shadows.
15815
15816 2000-01-23  Andy Piper  <andy@xemacs.org>
15817
15818         * glyphs-widget.c (widget_instantiate): reverse the items for
15819         layouts so that children are in the expected order.
15820
15821 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15822
15823         * ralloc.c: safe_bcopy ==> memmove
15824         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15825         * s/msdos.h: Remove BCOPY macros.
15826         * insdel.c (gap_right): Remove BCOPY conditional code.
15827         * insdel.c (gap_left): Remove BCOPY conditional code.
15828         XEmacs demands a working ANSI C compiler - hence memmove.
15829
15830         * regex.c (regex_compile): Remove accidental use of trigraphs.
15831
15832 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15833
15834         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15835         event timestamp.
15836
15837 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15838
15839         * event-msw.c (mswindows_drain_windows_queue): Added the
15840         parameter.
15841         (mswindows_need_event): Commented the call to
15842         mswindows_drain_windows_queue().
15843         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15844         only.
15845
15846         * console-msw.h: Moved a few function prototypes here from
15847         event-msw.c.
15848
15849         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15850         parameter from unsigned short to unsigned long.
15851         (Fmswindows_shell_execute): Added return value.
15852
15853 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15854
15855         * sysdep.c (init_system_name):
15856           process-unix.c (unix_canonicalized_host_name):
15857         Don't call freeaddrinfo() if getaddrinfo() fails.
15858
15859         * process-unix.c (unix_open_unix_network_stream):
15860         Moved the code to get a port # into address loop.
15861
15862 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15863
15864         * buffer.c (reinit_vars_of_buffer):
15865         The right place to initialize conversion_in_dynarr and
15866         conversion_out_dynarr.
15867
15868         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15869
15870         * process-unix.c (unix_canonicalize_host_name): Muleize.
15871         (unix_open_network_stream): Muleize.
15872
15873         * buffer.h: Fix up prototypes for ralloc.c functions.
15874
15875 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15876         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15877         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15878                 instead of gethostbyname()
15879         * process-unix.c: In unix_canonicalize_host_name() and
15880                 unix_open_network_stream(), add code to use getaddrinfo()
15881                 instead of gethostbyname().
15882
15883 2000-01-27  Daniel Pittman <daniel@danann.net>
15884
15885         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15886         libs when built with flat Athena.
15887
15888 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15889
15890         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15891         Use coding standards for function prototypes.
15892
15893 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15894
15895         * dialog-msw.c (push_lisp_string_as_unicode):
15896         * doc.c (unparesseuxify_doc_string):
15897         * dired.c (Fuser_name_completion_1):
15898         * dired.c (Fuser_name_all_completions):
15899         * dired.c (free_user_cache):
15900         * dired.c (user_name_completion):
15901         * console-x.c (get_display_arg_connection):
15902         * minibuf.c (clear_echo_area_internal):
15903         * minibuf.c (echo_area_append):
15904         * eldap.c (Fldap_open):
15905         * eldap.c (Fldap_search_internal):
15906         * frame-x.c (x_set_frame_text_value):
15907         * frame-x.c (x_set_frame_properties):
15908         * frame-x.c (x_create_widgets):
15909         * redisplay-tty.c (term_get_fkeys_1):
15910         * objects-x.c (x_parse_nearest_color):
15911         * objects-x.c (x_valid_color_name_p):
15912         * objects-x.c (x_initialize_font_instance):
15913         * objects-x.c (x_list_fonts):
15914         * objects-x.c (x_find_charset_font):
15915         * tooltalk.c (Fadd_tooltalk_message_arg):
15916         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15917         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15918         * process-unix.c (unix_create_process):
15919         * ntproc.c (sys_spawnve):
15920         * sound.c (Fplay_sound_file):
15921         * sound.c (Fplay_sound):
15922         * buffer.c (init_initial_directory):
15923         * buffer.c (init_buffer):
15924         * editfns.c (init_editfns):
15925         * editfns.c (Ftemp_directory):
15926         * editfns.c (Fuser_full_name):
15927         * editfns.c (uncache_home_directory):
15928         * editfns.c (get_home_directory):
15929         * editfns.c (Fuser_home_directory):
15930         * editfns.c (Fformat_time_string):
15931         * editfns.c (Fcurrent_time_string):
15932         * gui-x.c (button_item_to_widget_value):
15933         * database.c (Fopen_database):
15934         * event-Xt.c (x_to_emacs_keysym):
15935         * event-Xt.c (x_event_to_emacs_event):
15936         * event-Xt.c (describe_event_window):
15937         * event-msw.c (mswindows_wnd_proc):
15938         * glyphs-eimage.c (jpeg_instantiate):
15939         * glyphs-eimage.c (gif_instantiate):
15940         * glyphs-eimage.c (png_instantiate):
15941         * glyphs-eimage.c (tiff_instantiate):
15942         * glyphs-x.c (xbm_instantiate_1):
15943         * glyphs-x.c (x_xbm_instantiate):
15944         * glyphs-x.c (x_xface_instantiate):
15945         * glyphs-x.c (autodetect_instantiate):
15946         * glyphs-x.c (cursor_font_instantiate):
15947         * glyphs-x.c (x_widget_instantiate):
15948         * glyphs-x.c (x_widget_set_property):
15949         * glyphs-x.c (x_widget_property):
15950         * glyphs-x.c (BUILD_GLYPH_INST):
15951         * print.c (write_string_to_stdio_stream):
15952         * print.c (output_string):
15953         * print.c (Falternate_debugging_output):
15954         * print.c (Fexternal_debugging_output):
15955         * glyphs-msw.c (extract_xpm_color_names):
15956         * glyphs-msw.c (mswindows_xpm_instantiate):
15957         * glyphs-msw.c (bmp_instantiate):
15958         * glyphs-msw.c (resource_name_to_resource):
15959         * glyphs-msw.c (mswindows_resource_instantiate):
15960         * glyphs-msw.c (xbm_instantiate_1):
15961         * glyphs-msw.c (mswindows_xbm_instantiate):
15962         * glyphs-msw.c (mswindows_xface_instantiate):
15963         * glyphs-msw.c (mswindows_widget_instantiate):
15964         * glyphs-msw.c (add_tree_item):
15965         * glyphs-msw.c (add_tab_item):
15966         * glyphs-msw.c (mswindows_combo_box_instantiate):
15967         * glyphs-msw.c (mswindows_widget_property):
15968         * glyphs-msw.c (mswindows_combo_box_property):
15969         * glyphs-msw.c (mswindows_widget_set_property):
15970         * console.c (stuff_buffered_input):
15971         * objects-msw.c (mswindows_initialize_color_instance):
15972         * objects-msw.c (mswindows_valid_color_name_p):
15973         * objects-msw.c (mswindows_list_fonts):
15974         * objects-msw.c (mswindows_font_instance_truename):
15975         * bytecode.c (optimize_compiled_function):
15976         * select-x.c (symbol_to_x_atom):
15977         * select-x.c (x_atom_to_symbol):
15978         * select-x.c (hack_motif_clipboard_selection):
15979         * select-x.c (selection_data_to_lisp_data):
15980         * select-x.c (lisp_data_to_selection_data):
15981         * select-x.c (Fx_get_cutbuffer_internal):
15982         * select-x.c (Fx_store_cutbuffer_internal):
15983         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15984         * buffer.h (TO_INTERNAL_FORMAT): New function.
15985         * emacs.c (make_arg_list_1):
15986         * emacs.c (make_argc_argv):
15987         * emacs.c (main_1):
15988         * emacs.c (Fdump_emacs):
15989         * emacs.c (split_string_by_emchar_1):
15990         * file-coding.h:
15991         * lisp.h:
15992         * lstream.h:
15993         * symsinit.h:
15994         * device-x.c (x_init_device):
15995         * device-x.c (Fx_valid_keysym_name_p):
15996         * device-x.c (Fx_get_font_path):
15997         * device-x.c (Fx_set_font_path):
15998         * glyphs.c (bitmap_to_lisp_data):
15999         * glyphs.c (pixmap_to_lisp_data):
16000         * alloc.c (make_ext_string): Use coding system arguments.  Update
16001         all callers.
16002         * alloc.c (build_string):
16003         * callproc.c (child_setup):
16004         * callproc.c (init_callproc):
16005         * fileio.c (lisp_strerror):
16006         * fileio.c (directory_file_name):
16007         * fileio.c (Fexpand_file_name):
16008         * fileio.c (Ffile_truename):
16009         * fileio.c (Fsysnetunam):
16010         * fileio.c (Fdo_auto_save):
16011         * sysdep.c (sys_readdir):
16012         * tests.c: New file.  Allow adding C tests.
16013         Replace GET_* macros with a more comprehensible and flexible
16014         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
16015         Modify all calls.
16016         Any coding system can be used to do format conversion.
16017         Eliminate enum external_data_format.
16018         Eliminate convert_to_external_format.
16019         Eliminate convert_to_internal_format.
16020         Make sure file-name, keyboard, terminal, and ctext are always
16021         defined as coding systems or aliases.  Make
16022         file-name-coding-system, terminal-coding-system, and
16023         keyboard-coding-system magical variables that are equivalent to
16024         defining the corresponding coding system aliases.
16025
16026         * file-coding.c (Fcoding_system_canonical_name_p): New function.
16027         * file-coding.c (Fcoding_system_alias_p): New function.
16028         * file-coding.c (Fcoding_system_aliasee): New function.
16029         * file-coding.c (append_suffix_to_symbol): New function.
16030         * file-coding.c (dangling_coding_system_alias_p): New function.
16031         * file-coding.c (Ffind_coding_system):
16032         * file-coding.c (Fcopy_coding_system):
16033         * file-coding.c (encode_coding_no_conversion):
16034         * file-coding.c (syms_of_file_coding):
16035         * file-coding.c (vars_of_file_coding):
16036         Rewrite coding system alias code.
16037         Allow nested aliases, like symbolic links.
16038         Allow redefinition of coding system aliases.
16039         Prevent existence of dangling coding system aliases.
16040
16041         * dired.c (Fuser_name_completion_1):
16042         * dired.c (Fuser_name_all_completions):
16043         A crash would happen if user did QUIT in the middle of building
16044         user_name_cache.  Remove redundant code in mainline and unwind_protect.
16045
16046         * lisp.h:
16047         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
16048
16049         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
16050         an unsigned char *.  Update all callers.
16051
16052 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16053
16054         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
16055
16056 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16057
16058         * elhash.c (hentry_description): Use more portable definition.
16059         (resize_hash_table): Initialize new hentries using
16060         xnew_array_and_zero, thereby simplifying the code.
16061
16062         * mule-charset.c (make_charset): Make sure entire object is
16063         initialized, to avoid Purify warnings.
16064
16065         * alloc.c (resize_string): Fix unlikely crash with big strings.
16066
16067 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16068
16069         * realpath.c (xrealpath):
16070         Don't call getwd().
16071
16072 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16073
16074         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
16075
16076 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
16077
16078         * unexelfsgi.c (unexec): Change the way we decide which segment
16079         should be extended.
16080
16081         Assumption that .bss section should be outside the PT_LOADable
16082         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
16083         it's present) is inside the 'data' segment. This would fail the
16084         test which was used to find a segment to grow and cover new
16085         heap. Instead of this assumption, I created another one - on IRIX
16086         the segment to grow should start below .bss and it's address
16087         should extent above the end of .bss. Once this segment is
16088         identified, it's grown to accommodate the new heap and new
16089         zero-length .bss section is added at the end of .data2.
16090
16091 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16092
16093         * eval.c (Feval): Wrong number of arguments should use original
16094         function, not the indirect_function version of it.
16095
16096 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
16097
16098         * glyphs-x.c (x_button_instantiate): Don't add image if
16099         it is not a pixmap.
16100         (x_locate_pixmap_file): Call Fexpand_file_name when file name
16101         is relative.
16102
16103 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
16104
16105         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
16106         declaration.
16107         (DEFVAR_INT_MAGIC): Ditto.
16108         (DEFVAR_BOOL_MAGIC): Ditto.
16109         * glyphs.h: Reindent backslash.
16110
16111 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16112
16113         * glyphs-widget.c (layout_query_geometry):
16114         (layout_layout): Use correct types for gheight, gwidth.
16115
16116 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16117
16118         * EmacsManager.c (QueryGeometry): Purified.
16119
16120 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16121
16122         * alloc.c (make_float): Make sure entire object is initialized, to
16123         avoid Purify warnings.
16124         (pdump_register_sub): Remove useless assignment.
16125         (pdump): Use xmalloc, not malloc.
16126         (pdump_load): Use xmalloc, not malloc.
16127
16128 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16129
16130         * callproc.c:
16131         * dired-msw.c:
16132         * fileio.c:
16133         * process-nt.c:
16134         * redisplay-msw.c:
16135         * sysdep.c: Removed redundant #include <windows.h>
16136
16137 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16138
16139         * frame.c (delete_frame_internal): Do not delete device when its
16140         implementation so declares.
16141         (delete_frame_internal): Set device selected frame to nil when
16142         last frame goes away.
16143
16144         * device-msw.c (msprinter_device_system_metrics): Implemented.
16145         (mswindows_device_system_metrics): Added 'device-dpi property.
16146
16147         * device.c: (Fdevice_printer_p): Added.
16148         Added 'offset-workspace device metric.
16149
16150         * console.h (device_metrics): Declared DM_offset_workspace.
16151
16152 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16153
16154         * fileio.c (Ffile_truename): Remove pointless and confusing
16155         initialization of elen.
16156
16157         * glyphs-widget.c: Compiler warning fixes.
16158
16159 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
16160
16161         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
16162         instead of a Lisp_Object as argument to make it consistent with
16163         the other LIVE_P macros.
16164         (CHECK_LIVE_PROCESS): New macro.
16165
16166         * process.c: Declare Qprocess_live_p.
16167         (Fprocess_live_p): New function.
16168         (create_process): Use PROCESS_LIVE_P.
16169         (read_process_output): Ditto.
16170         (set_process_filter): Ditto.
16171         (Fdelete_process): Ditto.
16172         (kill_buffer_processes): Ditto
16173         (process_send_signal): Use CHECK_LIVE_PROCESS.
16174         (Fprocess_input_coding_system): Check whether process is still
16175         alive (fix PR#1061).
16176         (Fprocess_output_coding_system): Ditto.
16177         (Fprocess_coding_system): Ditto.
16178         (Fset_process_input_coding_system): Ditto.
16179         (Fset_process_output_coding_system): Ditto.
16180
16181 2000-01-23  Andy Piper  <andy@xemacs.org>
16182
16183         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
16184         layout and widget.
16185
16186         * glyphs.c (mark_image_instance): take into account changed
16187         image_instance format.
16188         (image_instance_equal): ditto.
16189         (image_instance_hash): ditto.
16190
16191         * glyphs-widget.c (widget_instantiate): Incorporate layout
16192         instantiation here. Delay layout of the layout until later.
16193         (layout_instantiate): deleted.
16194         (layout_query_geometry): new function. get the geometry of a
16195         layout.
16196         (layout_layout): layout a layout dynamically.
16197         (image_instantiator_widget): New function - splitting up
16198         image_instantiator_format_create_glyphs_widget for netwinder
16199         compilation.
16200         (image_instantiator_buttons):
16201         (image_instantiator_edit_fields):
16202         (image_instantiator_combo_box):
16203         (image_instantiator_scrollbar):
16204         (image_instantiator_progress_guage):
16205         (image_instantiator_tree_view):
16206         (image_instantiator_tab_control):
16207         (image_instantiator_labels):
16208         (image_instantiator_layout): ditto.
16209         (image_instantiator_format_create_glyphs_widget): Call preceding
16210         functions.
16211
16212 2000-01-22  Martin Buchholz  <martin@xemacs.org>
16213
16214         * process.c (Fset_process_coding_system):
16215         * device-x.c (Fx_keysym_hash_table):
16216         Docstring fixes.
16217
16218         * lstream.c (Lstream_write): Return documented value, not 0.
16219
16220         * fileio.c (directory_file_name):
16221         (Fsubstitute_in_file_name):
16222         (Fsubstitute_insert_file_contents_internal):
16223         (Fwrite_region_internal):
16224         * emacs.c:
16225         * sysdep.c:
16226         * getloadavg.c:
16227         * systty.h:
16228         Remove vestigial APOLLO-conditional code.
16229
16230 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16231
16232         * getpagesize.h: Add guard macros.
16233         * libsst.h: Add guard macros.
16234         * libst.h: Add guard macros.
16235         * line-number.h: Add guard macros.
16236         * ndir.h: Add guard macros.
16237         * sysfloat.h: Add guard macros.
16238         * sysfile.h: Add guard macros.
16239         * sysproc.h: Add guard macros.
16240         * syswait.h: Add guard macros.
16241         * xintrinsic.h: Add guard macros.
16242         * xintrinsicp.h: Add guard macros.
16243         * xmmanager.h: Add guard macros.
16244         * xmmanagerp.h: Add guard macros.
16245         * xmprimitive.h: Add guard macros.
16246         * xmu.h: Add guard macros.
16247         * gpmevent.h: Add copyright statement. Add guard macros.
16248         * miscplay.h: Add guard macros.
16249         * *.h: Use consistent C-standards-approved guard macro names.
16250
16251         * opaque.c (make_opaque): Switch parameter order.
16252         * opaque.h (make_opaque): Switch parameter order.
16253         Update all callers.
16254         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
16255
16256         * config.h.in (type_checking_assert): Added.
16257         (bufpos_checking_assert): Added.
16258
16259 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16260
16261         * alloc.c: Harmless pdump changes.
16262         - Use countof().
16263         - spell alignment correctly.
16264         * sysdep.c: Use countof()
16265
16266 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16267
16268         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
16269         initially_selected_for_input() console method, default to 0.
16270         (semi_canonicalize_console_connection): Try to delegate to
16271         canonicalize_console_connection if no such console method.
16272         (canonicalize_console_connection): Vice versa.
16273         (print_console): Do not print nil connection.
16274
16275         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
16276         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
16277         (XDEVIMPF_FRAMELESS_OK): Added.
16278         (CONSOLE_INHERITS_METHOD): Added.
16279
16280         * console-msw.c (mswindows_canonicalize_console_connection):
16281         Added.
16282         (mswindows_canonicalize_device_connection): Added.
16283
16284         * console-msw.h (struct msprinter_device): Added this struct and
16285         accessor macros.
16286         (mswindows_device): Made fontlist a lisp object.
16287
16288         * device.c (semi_canonicalize_device_connection):  Try to delegate
16289         to canonicalize_device_connection if no such console method.
16290         (canonicalize_device_connection): Vice versa.
16291         (print_device): Do not print nil connection.
16292
16293         * device-msw.c (mswindows_init_device): Call InitCommonControls
16294         when have widgets.
16295         (mswindows_delete_device): Removed fontlist deallocation.
16296         (mswindows_mark_device): Added.
16297
16298         * events.c (event_equal): Added abort() at unreached code.
16299         (event_hash): Ditto.
16300
16301         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
16302         fallback tags of Windows devices.
16303
16304         * general.c (syms_of_general): Initialized Qmsprinter.
16305
16306         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
16307         of fallback tags of Windows devices.
16308
16309         * lisp.h: Declared Qmsprinter.
16310
16311         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
16312         of strings.
16313         (mswindows_list_fonts): Ditto.
16314         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
16315         that it can be used by both mswindows and msprinter devices.
16316         (initialize_font_instance): Added.
16317         (mswindows_initialize_font_instance): Use it.
16318         (msprinter_initialize_font_instance): Added.
16319
16320         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
16321         and implementation flags check.
16322         (redisplay_without_hooks): Changed the call to the above.
16323         (Fredraw_device): Ditto.
16324         (Fredisplay_device): Ditto.
16325
16326         * redisplay-msw.c (get_frame_dc): Implemented.
16327         (get_frame_compdc): Implemented.
16328         (many functions): Use the two functions above to get device
16329         contexts, ether for a window or a printer.
16330
16331 2000-01-21  Olivier Galibert  <galibert@pobox.com>
16332
16333         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
16334         initialization here.
16335         (init_symbols_once_early): Call it.
16336         * emacs.c (main_1): Call it.
16337         * symsinit.h: Declare it.
16338
16339 2000-01-19  Olivier Galibert  <galibert@pobox.com>
16340
16341         * alloc.c: Use a lrecord_header * in the backtrace instead of a
16342         Lisp_Object.
16343         (pdump_backtrace): Ditto.
16344         (pdump_register_object): Ditto.  Cleanup use of the pointers.
16345         (pdump_get_entry): Abort if trying to register a null pointer.
16346         (pdump_dump_data): Cleanup types when relocating.
16347         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
16348         (pdump_dump_rtables): Remove bad casts.
16349         (pdump_load): Cleanup relocation w.r.t union type.  Use a
16350         Lisp_Object instead of a EMACS_INT for the hashtable
16351         reorganization.
16352
16353 2000-01-20  Martin Buchholz  <martin@xemacs.org>
16354
16355         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
16356
16357         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
16358
16359         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
16360
16361         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
16362
16363 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16364
16365         * faces.h (FACE_STRIKETHRU_P): Added.
16366
16367         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
16368         of font variants.
16369
16370         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
16371         (mswindows_set_dc_font): New function, aware of font variants,
16372         separated from mswindows_update_dc.
16373
16374         * objects-msw.h (struct mswindows_font_instance_data): Added
16375         definition.
16376
16377         * objects-msw.c (mswindows_finalize_font_instance): Delete all
16378         cached fonts and the data structure.
16379         (mswindows_initialize_font_instance): Added creation of font data
16380         structure.
16381         (mswindows_print_font_instance): Print at least something.
16382         (mswindows_create_font_variant): Implemented.
16383         (mswindows_get_hfont): Implemented.
16384
16385 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
16386
16387         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
16388         prototyping problem with msvc.
16389
16390         * emacs.c (main_1): added syms_of_gui_mswindows() call
16391
16392         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
16393         syms_of_gui_mswindows() function
16394
16395         * symsinit.h: added the prototype for syms_of_gui_mswindows()
16396
16397 2000-01-18  Martin Buchholz <martin@xemacs.org>
16398
16399         * XEmacs 21.2.27 is released.
16400
16401 2000-01-18  Martin Buchholz  <martin@xemacs.org>
16402
16403         * glyphs-eimage.c (struct tiff_error_struct):
16404         (tiff_error_func):
16405         (tiff_warning_func):
16406         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16407
16408         * unexmips.c:
16409         * unexhp9k3.c:
16410         * unexfreebsd.c:
16411         * unexec.c: Remove vestigial Lucid C code.
16412         * unexalpha.c:
16413         * unexaix.c:
16414         * termcap.c:
16415         * libsst.c: Ansify.
16416         Remove declarations of errno and strerror().
16417
16418         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16419
16420         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16421
16422 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16423
16424         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16425         Optimize.
16426
16427 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16428
16429         * md5.c:
16430         * file-coding.c:
16431         * file-coding.h:
16432         Change enum eol_type to eol_type_t.
16433
16434 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16435
16436         * gui.c (get_gui_callback): Check cons before accessing car.
16437
16438 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16439
16440         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16441         (XSETSPECIFIER_TYPE): Ditto.
16442
16443 2000-01-17  Didier Verna  <didier@xemacs.org>
16444
16445         * redisplay.c (generate_fstring_runes): compute string size in
16446         characters, not bytes.
16447
16448 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16449
16450         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16451
16452 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16453
16454         * print.c (print_error_message): Call print_prepare().
16455
16456 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16457
16458         * .dbxrc: Renamed from dbxrc.
16459
16460         * events.c (event_to_character):
16461         Use `assert (foo)' instead of `if (!foo) abort()'
16462
16463         * .gdbinit (xtype): Add documentation.
16464         * .gdbinit (check-temacs): New function.
16465         * .gdbinit (check-xemacs): New function.
16466         * dbxrc (check-xemacs): New function.
16467         * dbxrc (check-xemacs): New function.
16468
16469 2000-01-14  Andy Piper  <andy@xemacs.org>
16470
16471         * glyphs-widget.c (widget_query_geometry): Make sure that we
16472         calculate default dimensions correctly.
16473
16474 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16475
16476         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16477
16478         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16479         pdump_wire'd variable.
16480
16481         * emacs.c: (main_1): Conditionalized calls to
16482         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16483
16484 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16485
16486         * window.c (Fset_window_configuration):
16487         * sysdep.c (_start):
16488         * input-method-motif.c (res):
16489         * event-Xt.c (Xt_process_to_emacs_event):
16490         Simple compiler warning fixes.
16491
16492         * bytecode.c (funcall_compiled_function): Use the original
16493         function symbol on the backtrace list in preference to the
16494         compiled_function object in error messages.
16495
16496 2000-01-13  Andy Piper  <andy@xemacs.org>
16497
16498         * glyphs-x.c (update_widget_face): Make sure we update the widget
16499         background as well as foreground.
16500
16501 2000-01-13  Andy Piper  <andy@xemacs.org>
16502
16503         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16504         fields to subwindow.
16505         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16506         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16507         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16508         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16509
16510         * glyphs-widget.c (check_valid_tab_orientation): new function.
16511         (initialize_widget_image_instance): zero orientation and
16512         justification.
16513         (widget_instantiate): pick up orientation.
16514         (tab_control_query_geometry): return appropriate values for
16515         vertical tabs.
16516
16517         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16518         appropriate creation flags for left, right and bottom tabs.
16519
16520         * s/cygwin32.h: add tab definitions.
16521
16522 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16523
16524         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16525         frame upon hiding a subwindow.
16526         (mswindows_button_instantiate): Changed the push button style to
16527         BS_PUSHBUTTON.
16528         (mswindows_button_instantiate): Removed button BS_NOTIFY
16529         style.
16530         (mswindows_button_instantiate): Removed redundant check for
16531         a disabled gui item.
16532         (mswindows_button_instantiate): Made use of WS_TABSTOP
16533         consistent: "operable" controls (edit, button, tree, scroll) have
16534         this style, "display-only" ones (static, progress gauge) do
16535         not. This style is currently ignored by XEmacs though. Also,
16536         removed the WS_EX_CONTROLPARENT style - it is not for children,
16537         it is for their parents!
16538         (mswindows_edit_field_instantiate): Ditto.
16539         (mswindows_progress_gauge_instantiate): Ditto.
16540         (mswindows_tree_view_instantiate): Ditto.
16541         (mswindows_tab_control_instantiate): Ditto.
16542         (mswindows_scrollbar_instantiate): Ditto.
16543         (mswindows_combo_box_instantiate): Ditto.
16544         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16545         style to the "clip" window.
16546         (mswindows_button_instantiate): Removed compilation warning by
16547         equally typing terms of the ?: operator.
16548
16549 2000-01-12  Didier Verna  <didier@xemacs.org>
16550
16551         * redisplay.c (generate_fstring_runes): new parameter holding the
16552         last modeline-format extent.
16553         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16554         extent, fill the glyph block with it.
16555         (generate_fstring_runes): handle these parameters.
16556         (generate_formatted_string_db): ditto.
16557
16558         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16559         glyphs'extents in the modeline.
16560
16561 1999-01-11  Mike Woolley  <mike@bulsara.com>
16562
16563         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16564         256Mb, as a workaround for the non-starting problem many people
16565         have experienced.
16566
16567 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16568
16569         * console-tty.c (Fset_console_tty_output_coding_system):
16570         Force redrawing tty frame.
16571
16572 2000-01-10  Didier Verna  <didier@xemacs.org>
16573
16574         * redisplay.c (generate_fstring_runes): fix size computation bug.
16575
16576 2000-01-09  William M. Perry <wmperry@aventail.com>
16577
16578         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16579
16580 2000-01-09  Andy Piper  <andy@xemacs.org>
16581
16582         * glyphs-msw.c: index -> i to avoid shadows.
16583         (xbm_create_bitmap_from_data): make static.
16584         (check_valid_string_or_int): deleted.
16585         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16586
16587         * glyphs-x.c (x_update_subwindow): remove unused args.
16588
16589         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16590         back pointer - this is done in allocate_image_instance.
16591         (query_string_font): return Qnil to make the compiler happy.
16592         (unmap_subwindow): set to ~0 to make the compiler happy.
16593         (glyph_query_geometry): comment out until used.
16594         (glyph_layout): ditto.
16595
16596 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16597
16598         * insdel.c (signal_after_change): Remove extraneous unbind_to().