8ffb4a76e00473c90a3bbbc6475db453c9ea46fd
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
4         New extern.
5         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
6         (encode_char_2_search_children): New inline function.
7         (encode_char_2): Refer
8         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
9         and use `encode_char_2_search_children'.
10
11 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
12
13         * mule-charset.c
14         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
15         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
16         (vars_of_mule_charset): Add new variable
17         `display-coded-charset-priority-use-inheritance' and
18         `display-coded-charset-priority-use-hierarchy-order'.
19
20 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
21
22         * char-ucs.h (Q_subsumptive): New extern.
23         (Q_denotational): Likewise.
24         (encode_char_2): Search children specified by `->subsumptive' and
25         `->denotational'.
26
27 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
28
29         * mule-charset.c (complex_vars_of_mule_charset): Modify the
30         X-registry of `ucs-bmp'.
31
32 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
33
34         * chartab.c (char-variants): Refer `->subsumptive',
35         `->denotational' and `->identical' as same as `->ucs-unified'.
36
37 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
38
39         * chartab.c (Fput_char_attribute): Convert char-specs in value of
40         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
41         links.
42
43 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
44
45         * text-coding.c: Add EXFUN for `Fregexp_quote'.
46         (decode_add_er_char): Fix problem about infinite loop when a CCS
47         specified in `coded-charset-entity-reference-alist' is not
48         existed.
49
50 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
51
52         * mule-charset.c (syms_of_mule_charset): Rename
53         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
54
55 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
56
57         * fns.c (simplify_char_spec): Don't allocate new character-object
58         if specified char_spec does not have any CCS-features.
59
60         * chartab.h: Add EXFUN for Fdefine_char.
61
62         * chartab.c: Delete EXFUN for Fdefine_char.
63
64 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
65
66         * fns.c (simplify_char_spec): Use Fdefine_char instead of
67         Ffind_char for char-spec.
68
69 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
70
71         * lisp-disunion.h (XCHARVAL): Fix condition about
72         SIZEOF_EMACS_INT.
73
74 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
75
76         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
77         <int> for `code'.
78         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
79         point; use <Emchar> instead of <int> for character-id.
80
81 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
82
83         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
84         (make_char): Likewise.
85         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
86         environment.
87         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
88         instead of <int> as the type of return value; use <Lisp_Object>
89         instead of <Emchar> as the type of argument.
90         (XCHARVAL[macro version]): Cast the result into <Emchar>.
91
92         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
93         syntaxcode> instead of <int>.
94
95 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
96
97         * chartab.c (put_char_composition): Use DECODE_CHAR to get
98         character corresponding with UCS code point.
99         (Fput_char_attribute): Likewise.
100
101         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
102         character in the UCS decoding-table if the char-id is not equal to
103         the UCS code point.
104
105 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
106
107         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
108         for aliases; write `description'; write
109         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
110         not 0.
111
112 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
113
114         * chartab.c (Fsave_char_attribute_table): Don't use
115         `save_charset_properties'.
116
117         * mule-charset.c (Fsave_charset_properties): Renamed from
118         `save_charset_properties' and changed to Lisp function again;
119         write property `type' as `CCS'; write properties `final-byte' and
120         `mother' if they exists.
121         (syms_of_mule_charset): Revive builtin function
122         `save-charset-properties' when HAVE_LIBCHISE is defined.
123
124 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
125
126         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
127         instead of Vexec_directory.
128         (char_attribute_system_db_file): Likewise.
129
130 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
131
132         * chartab.c (Fsave_char_attribute_table): Use
133         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
134         defined.
135
136         * mule-charset.c (save_charset_properties): Renamed from
137         `Fsave_charset_properties'; changed to non-Lisp function.
138         (syms_of_mule_charset): Abolish builtin function
139         `save-charset-properties'.
140
141 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
142
143         * mule-charset.c (Fsave_charset_properties): New function when
144         HAVE_LIBCHISE is defined.
145         (syms_of_mule_charset): Add new builtin function
146         `save-charset-properties' when HAVE_LIBCHISE is defined.
147
148 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
149
150         * chartab.c (Fput_char_attribute): Convert char-specs in value of
151         `{<-|->}ancient[^*]*' to characters and put reverse links.
152         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
153         for `{<-|->}ancient[^*]*'.
154
155 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
156
157         * chartab.c (Fput_char_attribute): Convert char-specs in value of
158         `{<-|->}original[^*]*' to characters and put reverse links.
159         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
160         for `{<-|->}original[^*]*'.
161
162 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
163
164         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
165
166 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
167
168         * mule-charset.c (Qsystem_char_id): New variable.
169
170         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
171         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
172
173 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
174
175         * chartab.c (Fput_char_attribute): When processing a reference of
176         a character, put into the end of the reversed reference of each
177         target character.
178
179 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
180
181         * chartab.c (Q_same): Deleted.
182         (Q_same_of): Deleted.
183         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
184         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
185         for `{<-|->}same'.
186         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
187
188 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
189
190         * chartab.c (Q_vulgar): Deleted.
191         (Q_vulgar_of): Deleted.
192         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
193         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
194         for `{<-|->}vulgar'.
195         (syms_of_chartab): Don't define `{<-|->}vulgar'.
196
197 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
198
199         * chartab.c (Fput_char_attribute): Convert char-specs in value of
200         `{<-|->}wrong[^*]*' to characters and put reverse links.
201         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
202         for `{<-|->}wrong[^*]*'.
203
204 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
205
206         * chartab.c (Q_vulgar): New variable.
207         (Q_vulgar_of): New variable.
208         (Fput_char_attribute): Convert char-specs in value of
209         `{->|<-}vulgar' to characters and put reverse links.
210         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
211         for `{->|<-}vulgar'.
212         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
213
214 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
215
216         * text-coding.c (decode_add_er_char): Must to quote prefix string
217         as regexp.
218
219 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
220
221         * mule-charset.c (put_char_ccs_code_point): Store characters of
222         =ucs whose code_points >= 0xF0000.
223
224 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
225
226         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
227         CHISE.
228         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
229         CHISE.
230         (complex_vars_of_mule_charset): Add new coded-charset
231         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
232         builtin characters over 0xEFFFF.
233
234         * chartab.c (syms_of_chartab): Don't define symbol
235         `system-char-id' in every case.
236
237         * char-ucs.h (Qsystem_char_id): New extern variable.
238         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
239
240 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
241
242         * text-coding.c (char_encode_utf8): Try to use entity-references
243         for U-000F0000 ...  U-0010FFFF.
244
245 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
246
247         * text-coding.c (ER_BUF_SIZE): New macro.
248         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
249         `er_buf'.
250         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
251         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
252
253 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
254
255         * chartab.c (find_char_feature_in_family): New function.
256         (Fchar_feature): Use `find_char_feature_in_family' with
257         `->identical', `<-subsumptive' and `<-denotational'.
258
259 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
260
261         * text-coding.c (char_encode_as_entity_reference): Allow prefix
262         within 8 characters; fix infinite loop.
263
264 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
265
266         * chartab.c (Q_same): New variable.
267         (Q_same_of): New variable.
268         (Fput_char_attribute): Convert char-specs in value of
269         `{->|<-}same' to characters and put reverse links.
270         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
271         for `{->|<-}same'.
272         (syms_of_chartab): Add new symbols `{->|<-}same'.
273
274 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
275
276         * chartab.c (Q_component): New variable.
277         (Q_component_of): Likewise.
278         (Fput_char_attribute): Convert char-specs in value of
279         `{->|<-}ideographic-component-forms' to characters and put reverse
280         links.
281         (syms_of_chartab): Add new symbols
282         `{->|<-}ideographic-component-forms'.
283
284 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
285
286         * chartab.c (Q_identical): New variable.
287         (Q_identical_from): New variable.
288         (Fchar_feature): Regard `->identical' as a feature to find
289         ancestors.
290         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
291         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
292         for `{->|<-}identical'.
293         (syms_of_chartab): Add new symbols `{->|<-}identical'.
294
295 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
296
297         * char-ucs.h (encode_char_2): New inline function.
298         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
299
300 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
301
302         * chartab.c (Fput_char_attribute): Convert char-specs to
303         characters in value of `ideographic-structure'.
304         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
305         for `{<-|->}simplified(@...)'.
306         (Fdefine_char): bTry to use predefined character's id.
307
308 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
309
310         * fns.c (simplify_char_spec): Try to convert builtin chars to
311         defined chars.
312
313 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
314
315         * chartab.c (Fput_char_attribute): Convert char-specs in value of
316         `<-simplified[^*]*' to characters and put reverse links.
317
318 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
319
320         * chartab.c (Q_subsumptive): Renamed from Q_unified.
321         (Q_subsumptive_from): Renamed from Q_unified_from.
322         (Fchar_feature): Use `Q_subsumptive_from' instead of
323         `Q_unified_from'.
324         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
325         `Q_unified'.
326         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
327         `<-unified' to `<-subsumptive'.
328
329 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
330
331         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
332         inheritance itself; fix typo; stop recursive search if cyclic
333         inheritance is found.
334
335 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
336
337         * chartab.c (Q_denotational): New variable.
338         (Q_denotational_from): New variable.
339         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
340         (put_char_attribute): New function.
341         (Fput_char_attribute): Use `put_char_attribute'; regard
342         `->denotational' and `<-denotational' as same as `->unified' and
343         `<-unified'.
344         (syms_of_chartab): Add new symbols `->denotational' and
345         `<-denotational'.
346
347 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
348
349         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
350         `Fget_char_attribute'.
351         (Fchar_variants): Likewise.
352         (get_char_table): Likewise.
353         (Fchar_feature): New function.
354         (put_char_composition): Use `Fchar_feature' instead of
355         `Fget_char_attribute'.
356         (Fput_char_attribute): Likewise; don't put the target character
357         into its `->unified' value.
358         (syms_of_chartab): Add new builtin function `char-feature'.
359
360 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
361
362         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
363         `Fget_char_attribute'.
364         (char_encode_utf8): Likewise.
365
366         * chartab.h: Add an EXFUN for `Fchar_feature'.
367
368 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
369
370         * chartab.c (Vnext_defined_char_id): New variable.
371         (Fput_char_attribute): Accept characters in `->unified'.
372         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
373         new characters which are not related with builtin char-id ranges.
374         (vars_of_chartab): Add new variable `next-defined-char-id'.
375
376 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
377
378         * chartab.c (Q_unified): New variable.
379         (Q_unified_from): New variable.
380         (Fput_char_attribute): Add code for `->unified'.
381         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
382         XEmacs CHISE.
383
384 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
385
386         * mule-charset.c (decode_ccs_conversion): New function.
387         (decode_defined_char): Use `decode_ccs_conversion'.
388         (decode_builtin_char): Likewise.
389
390 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
391
392         * char-ucs.h: Change some charset-ids of private coded-charsets.
393
394 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
395
396         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
397         (char_encode_as_entity_reference): Likewise.
398         (decode_coding_big5): Modify for `decode_defined_char' and
399         `DECODE_CHAR'.
400         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
401         avoid compiler warning.
402         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
403
404         * mule-charset.c (decode_defined_char): Add new argument
405         `without_inheritance'.
406         (Fdecode_char): Add new optional argument `without_inheritance'.
407         (Fdecode_builtin_char): Modify for `Fdecode_char'.
408
409         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
410         (simplify_char_spec): Likewise.
411
412         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
413         setting.
414
415         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
416         (map_char_table): Likewise.
417         (Fdefine_char): Use `Fdecode_char' without inheritance.
418         (Ffind_char): Modify for `Fdecode_char'.
419
420         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
421
422         * char-ucs.h (decode_defined_char): Add new argument
423         `without_inheritance'.
424         (DECODE_CHAR): Likewise.
425         (MAKE_CHAR): Modify for `DECODE_CHAR'.
426
427 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
428
429         * chartab.c (Vchise_system_db_directory): New variable.
430         (vars_of_chartab): Add new variable `chise-system-db-directory'.
431
432 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
433
434         * chartab.c: EXFUN `Fmount_char_attribute_table'.
435         (print_chartab_range): Don't define when `UTF2000' is defined.
436         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
437         `CHISE_DS_open'.
438
439 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
440
441         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
442         and optional argument `rehash' is specified, call
443         `open_chise_data_source_maybe' before
444         `chise_ds_foreach_char_feature_name' is called.
445
446 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
447
448         * chartab.c (char_attribute_list_reset_map_func): New function
449         when HAVE_LIBCHISE is defined.
450         (Fchar_attribute_list): Add new optional argument `rehash' when
451         HAVE_LIBCHISE is defined.
452         (open_chise_data_source_maybe): Use "chise-db" instead of
453         "char-db".
454         (char_attribute_system_db_file): Likewise.
455         (Fload_char_attribute_table): Use
456         `chise_feature_foreach_char_with_value' instead of
457         `chise_char_feature_value_iterate'.
458
459 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
460
461         * chartab.c (Vchise_db_directory): New variable.
462         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
463
464 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
465
466         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
467         instead of HAVE_CHISE to specify using with libchise.
468
469         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
470
471         * chartab.h: Don't use HAVE_CHISE_CLIENT.
472
473         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
474         defined or HAVE_LIBCHISE_LIBCHISE is defined.
475         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
476         is defined.
477         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
478         HAVE_CHISE to specify using with libchise.
479         (syms_of_chartab): Don't define symbol `system-char-id' when
480         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
481
482 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
483
484         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
485         specify CHISE DB support.
486         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
487         of `char_attribute_system_db_file' to check feature DB file.
488
489         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
490         HAVE_CHISE_CLIENT to specify CHISE DB support.
491
492         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
493         specify CHISE DB support.
494         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
495         not defined.
496         (Freset_char_attribute_table): Use `chise_feature_setup_db'
497         instead of `char_attribute_system_db_file' to check feature DB
498         file.
499
500 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
501
502         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
503         `HAVE_CHISE_CLIENT'.
504
505 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
506
507         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
508         (Fsave_charset_mapping_table): Don't use
509         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
510
511         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
512         (HAVE_LIBCHISE): New macro.
513
514         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
515
516         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
517         (Fsave_char_attribute_table): Don't use
518         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
519
520 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
521
522         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
523         defined.
524         (save_uint16_byte_table): Likewise.
525         (save_byte_table): Likewise.
526         (char_table_get_db): Use `chise_ds_load_char_feature_value'
527         instead of `chise_char_load_feature_value'.
528         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
529
530 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
531
532         * chartab.h (struct Lisp_Char_Table): Delete member
533         `feature_table' if CHISE is defined.
534
535         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
536         (Fcopy_char_table): Likewise.
537         (char_table_open_db_maybe): Likewise.
538         (char_table_close_db_maybe): Likewise.
539         (char_table_get_db): Likewise.
540         (Fmount_char_attribute_table): Likewise.
541         (Fload_char_attribute_table): Likewise.
542
543 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
544
545         * mule-charset.c (load_char_decoding_entry_maybe): Use
546         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
547         `chise_ccs_decode'.
548
549 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
550
551         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
552         instead of `chise_open_data_source'.
553         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
554         `chise_ds_close'.
555
556 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
557
558         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
559         instead of `chise_ds_open_feature_table'.
560         (char_table_close_db_maybe): Don't use `chise_ft_close'.
561
562 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
563
564         * mule-charset.c (Fsave_charset_mapping_table): Use
565         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
566         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
567         `chise_ccs_sync' instead of `chise_ccst_close'.
568         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
569
570         * chartab.c (open_chise_data_source_maybe): Modify for
571         `chise_open_data_source'.
572         (char_table_open_db_maybe): Modify for
573         `chise_ds_open_feature_table'.
574
575 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
576
577         * mule-charset.c (load_char_decoding_entry_maybe): Use
578         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
579         `chise_ccst_close'.
580
581 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
582
583         * mule-charset.c (Fsave_charset_mapping_table): Use
584         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
585         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
586         `chise_dt_put_char' and `chise_dt_close'.
587         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
588         `chise_ccs_decode' and `chise_ccst_close' instead of
589         `chise_ds_open_decoding_table', `chise_dt_get_char' and
590         `chise_dt_close'.
591
592         * chartab.c (char_table_get_db): Use
593         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
594         (load_char_attribute_table_map_func): Modify for
595         `chise_char_feature_value_iterate'.
596         (Fload_char_attribute_table): Use
597         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
598
599 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
600
601         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
602
603 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
604
605         * chartab.c (put_char_table): Modify for inherited coded-charsets
606         in XEmacs CHISE.
607
608 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
609
610         * chartab.c (Fput_char_table_map_function): Fixed.
611         (word_boundary_p): Don't check charset in XEmacs CHISE.
612
613 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
614
615         * mule-charset.c (Fsave_charset_mapping_table): Use
616         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
617         instead of `chise_open_decoding_table'; refer
618         `default_chise_data_source'; use `chise_dt_close' instead of
619         `chise_close_decoding_table'.
620         (load_char_decoding_entry_maybe): Likewise.
621
622         * chartab.c (default_chise_data_source): New variable when `CHISE'
623         is defined.
624         (Fcopy_char_table): `ct->ds' is deleted.
625         (open_chise_data_source_maybe): New function.
626         (Fclose_char_data_source): New function.
627         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
628         use `chise_ds_open_feature_table' instead of
629         `chise_open_feature_table'.
630         (char_table_close_db_maybe): Use `chise_ft_close' instead of
631         `chise_close_feature_table'; `cit->ds' is deleted.
632         (syms_of_chartab): Add new builtin function
633         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
634
635         * chartab.h (default_chise_data_source): New extern variable.
636         (open_chise_data_source_maybe): New prototype.
637         (struct Lisp_Char_Table): Delete `ds'.
638
639 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
640
641         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
642         `CHISE' is defined.
643
644 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
645
646         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
647         not defined; add code for non-libchise setting.
648         (char_table_close_db_maybe): Likewise.
649         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
650         defined.
651         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
652         even if `CHISE' is not defined.
653         (Freset_char_attribute_table): Likewise.
654         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
655         `char_table_close_db_maybe' even if `CHISE' is not defined; use
656         `char_table_get_db'.
657         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
658         `char_table_close_db_maybe' even if `CHISE' is not defined.
659
660 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
661
662         * chartab.c (char_table_open_db_maybe): New function.
663         (char_table_close_db_maybe): New function.
664         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
665         (Freset_char_attribute_table): Likewise.
666         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
667         `char_table_close_db_maybe'.
668         (Fload_char_attribute_table): Likewise.
669
670 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
671
672         * chartab.c: Don't include <chise.h> because it is included in
673         chartab.h.
674         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
675         defined.
676         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
677         `CHISE' is defined.
678         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
679         `CHISE' is defined.
680         (Fclose_char_attribute_table): Close `ct->feature_table' and
681         `ct->ds' when `CHISE' is defined.
682         (Freset_char_attribute_table): Likewise.
683         (load_char_attribute_maybe): Use `cit->ds' and
684         `cit->feature_table' when `CHISE' is defined.
685         (Fload_char_attribute_table): Likewise.
686
687         * chartab.h: Include <chise.h> when `CHISE' is defined.
688         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
689         when `CHISE' is defined.
690
691 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
692
693         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
694         is defined.
695         (char_table_description): Likewise.
696         (Fmake_char_table): Likewise.
697         (Fcopy_char_table): Likewise.
698         (Fmount_char_attribute_table): Likewise.
699         (Fclose_char_attribute_table): Likewise.
700         (Freset_char_attribute_table): Likewise.
701         (load_char_attribute_maybe): Likewise.
702         (Fload_char_attribute_table): Likewise.
703
704         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
705         defined.
706
707 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
708
709         * chartab.c (load_char_attribute_table_map_func): New function
710         when CHISE is defined.
711         (Qload_char_attribute_table_map_function): Don't define when CHISE
712         is defined.
713         (Fload_char_attribute_table_map_function): Likewise.
714         (Fload_char_attribute_table): Use libchise when `CHISE' is
715         defined.
716         (syms_of_chartab): Don't define
717         `load-char-attribute-table-map-function' when CHISE is defined.
718
719 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
720
721         * chartab.c: Include <chise.h> when `CHISE' is defined.
722         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
723
724 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
725
726         * mule-charset.c (charset_code_point): Fix problem when searching
727         in mother CCS fails with `defined_only' mode.
728
729 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
730
731         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
732         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
733         (put_char_composition): Likewise.
734         (Fput_char_attribute): Likewise.
735         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
736
737 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
738
739         * chartab.c (Q_ucs): Deleted.
740         (Fput_char_attribute): Don't refer `->ucs'.
741         (Fdefine_char): Likewise.
742         (Ffind_char): Likewise.
743         (syms_of_chartab): Delete `->ucs'.
744
745 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
746
747         * mule-charset.c (Qmap_cns11643_2): Renamed from
748         `Qchinese_cns11643_2'.
749         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
750         `chinese-cns11643-2'.
751         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
752         `=cns11643-2'.
753
754 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
755
756         * mule-charset.c (Qmap_cns11643_1): Renamed from
757         `Qchinese_cns11643_1'.
758         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
759         `chinese-cns11643-1'.
760         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
761         `=cns11643-1'.
762
763 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
764
765         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
766         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
767         `chinese-gb12345'.
768         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
769         `=gb12345'.
770
771 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
772
773         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
774         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
775         `chinese-gb2312'.
776         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
777         `=gb2312'.
778
779 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
780
781         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
782         (syms_of_mule_charset): Add new symbol `=big5' instead of
783         `chinese-big5'.
784         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
785
786 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
787
788         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
789         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
790         `korean-ksc5601'.
791         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
792         `=ks-x1001'.
793
794 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
795
796         * mule-charset.c (Qmap_jis_x0212): Renamed from
797         `Qjapanese_jisx0212'.
798         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
799         `japanese-jisx0212'.
800         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
801         `=jis-x0212'.
802
803 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
804
805         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
806         `Qjapanese_jisx0208'.
807         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
808         of `japanese-jisx0208'.
809         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
810         `=jis-x0208-1983'.
811
812 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
813
814         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
815         `Qjapanese_jisx0208_1978'.
816         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
817         of `japanese-jisx0208-1978'.
818         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
819         `=jis-x0208-1978'.
820
821 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
822
823         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
824         only for XEmacs CHISE.
825
826 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
827
828         * char-ucs.h: Compact non-ISO-IR charset-ids.
829         (LEADING_BYTE_UCS): Changed to -177.
830         (LEADING_BYTE_CONTROL_1): Changed to -77.
831         (LEADING_BYTE_UCS_BMP): Changed to -176.
832         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
833
834 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
835
836         * mule-charset.c (Qiso_ir): New variable.
837         (Fmake_charset): Recognise new property `iso-ir'.
838         (syms_of_mule_charset): Add new symbol `iso-ir'.
839
840 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
841
842         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
843         n to -n; charset-id of non ISO-IR sets are changed to positive
844         numbers.
845
846 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
847
848         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
849         for &MCS-XXXXXXXX; values.
850
851 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
852
853         * mule.c (Vxemacs_chise_version): Renamed from
854         `Vutf_2000_version'.
855         (vars_of_mule): Add new variable `xemacs-chise-version'; define
856         `utf-2000-version' as an alias for `xemacs-chise-version'.
857
858 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
859
860         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
861         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
862         defined.
863
864         * config.h.in (CHISE): New macro.
865
866 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
867
868         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
869         of `ucs'.
870         (Qmap_ucs): New variable.
871         (syms_of_mule_charset): Add new symbol `=ucs'.
872         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
873
874         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
875         (simplify_char_spec): Likewise.
876
877         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
878
879         * char-ucs.h (Qmap_ucs): New extern variable.
880
881 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
882
883         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
884         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
885         don't define it when UTF2000 is not defined.
886         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
887         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
888         when UTF2000 is not defined.
889         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
890         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
891
892 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
893
894         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
895
896         * mule-charset.c (Vcharset_ucs_gb): Deleted.
897         (Qucs_gb): Deleted.
898         (syms_of_mule_charset): Delete `ucs-gb'.
899         (complex_vars_of_mule_charset): Likewise.
900
901 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
902
903         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
904
905         * mule-charset.c (Vcharset_ucs_cns): Deleted.
906         (Qucs_cns): Deleted.
907         (syms_of_mule_charset): Delete `ucs-cns'.
908         (complex_vars_of_mule_charset): Likewise.
909
910 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
911
912         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
913
914         * mule-charset.c (Vcharset_ucs_jis): Deleted.
915         (Qucs_jis): Deleted.
916         (syms_of_mule_charset): Delete `ucs-jis'.
917         (complex_vars_of_mule_charset): Likewise.
918
919 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
920
921         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
922
923         * mule-charset.c (Vcharset_ucs_ks): Deleted.
924         (Qucs_ks): Deleted.
925         (syms_of_mule_charset): Delete `ucs-ks'.
926         (complex_vars_of_mule_charset): Likewise.
927
928 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
929
930         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
931         (Qideograph_daikanwa_2): Deleted.
932         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
933         (complex_vars_of_mule_charset): Likewise.
934
935         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
936         (LEADING_BYTE_DAIKANWA_1): Deleted.
937         (LEADING_BYTE_DAIKANWA_2): Deleted.
938         (MIN_CHAR_DAIKANWA): Deleted.
939         (MAX_CHAR_DAIKANWA): Deleted.
940
941 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
942
943         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
944         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
945         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
946
947         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
948         (Vcharset_ideograph_daikanwa): Deleted.
949         (Qideograph_hanziku_{1..12}): Deleted.
950         (Qideograph_daikanwa): Deleted.
951         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
952         Vcharset_ideograph_daikanwa.
953         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
954         `ideograph-hanziku-{1..12}'.
955         (complex_vars_of_mule_charset): Likewise.
956
957 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
958
959         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
960
961         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
962         (Qideograph_gt_pj_{1..11}): Deleted.
963         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
964         (complex_vars_of_mule_charset): Likewise.
965
966 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
967
968         * mule-charset.c (Vcharset_ucs_big5): Deleted.
969         (Vcharset_ideograph_gt): Deleted.
970         (Qucs_big5): Deleted.
971         (Qideograph_gt): Deleted.
972         (syms_of_mule_charset): Delete symbol `ucs-big5' and
973         `ideograph-gt'.
974         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
975         and `ideograph-gt'.
976
977         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
978         (LEADING_BYTE_GT): Deleted.
979         (MIN_CHAR_GT): Deleted.
980         (MAX_CHAR_GT): Deleted.
981
982 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
983
984         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
985
986 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
987
988         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
989         (save_uint16_byte_table): Likewise.
990         (save_byte_table): Likewise; convert values by it.
991         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
992         for `ideographic-structure'.
993         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
994         as the filter for `ideographic-structure'.
995
996 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
997
998         * chartab.c (put_char_composition): New function.
999         (Fput_char_attribute): Use `put_char_composition'; use
1000         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1001
1002         * fns.c (simplify_char_spec): New function.
1003         (char_ref_simplify_spec): New function.
1004         (Fchar_refs_simplify_char_specs): New function.
1005         (syms_of_fns): Add new builtin function
1006         `char-refs-simplify-char-specs'.
1007
1008 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1009
1010         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1011         (Qideograph_cbeta): Deleted.
1012         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1013         (complex_vars_of_mule_charset): Likewise.
1014
1015         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1016         (MIN_CHAR_CBETA): Comment out.
1017         (MAX_CHAR_CBETA): Likewise.
1018
1019 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1020
1021         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1022         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1023         CHISE client feature.
1024
1025 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1026
1027         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1028
1029 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1030
1031         * mule-charset.c (charset_lookup_description_1): Use
1032         `NUM_LEADING_BYTES' in UTF-2000.
1033
1034 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1035
1036         * char-ucs.h (GC_CHARSETP): Deleted.
1037
1038 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1039
1040         * char-ucs.h (MAX_CHAR_GT): Updated.
1041
1042 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1043
1044         * text-coding.c: Sync with XEmacs 21.4.10.
1045
1046 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1047
1048         * mule-charset.c (Vcharset_china3_jef): Deleted.
1049         (Qchina3_jef): Deleted.
1050         (syms_of_mule_charset): Don't define `china3-jef'.
1051         (complex_vars_of_mule_charset): Likewise.
1052
1053         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1054         (MIN_CHAR_CHINA3_JEF): Comment out.
1055         (MAX_CHAR_CHINA3_JEF): Comment out.
1056
1057 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1058
1059         * mule-charset.c (Vcharset_ucs_gb): New variable.
1060         (Qucs_gb): New variable.
1061         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1062         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1063
1064         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1065
1066 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1067
1068         * mule-charset.c (charset_code_point): if a coded-charset has a
1069         final-byte, don't inherit the builtin range of the mother CCS.
1070
1071 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1072
1073         * mule-charset.c (charset_code_point): Fix problem about
1074         inheritance.
1075
1076 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1077
1078         * mule-charset.c (decode_builtin_char): Reorganized.
1079
1080 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1081
1082         * text-coding.c (char_encode_as_entity_reference): Modify for
1083         `charset_code_point'.
1084         (char_encode_shift_jis): Likewise.
1085         (char_encode_big5): Likewise.
1086         (char_encode_utf8): Likewise.
1087         (char_encode_iso2022): Likewise.
1088
1089         * mule-charset.c (charset_code_point): Add new argument
1090         `defined_only'.
1091         (Fencode_char): Add new optional argument `defined_only'.
1092
1093         * chartab.c (put_char_table): Modify for `charset_code_point'.
1094
1095         * char-ucs.h (charset_code_point): Add new argument
1096         `defined_only'.
1097         (encode_char_1): Modify for `charset_code_point'.
1098
1099 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1100
1101         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1102         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1103
1104 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1105
1106         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1107         (Qjis_x0208): Likewise.
1108         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1109         XCHARSET_FINAL(charset).
1110         (charset_code_point): Modify condition for final-byte based
1111         builtin-chars.
1112         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1113         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1114         in UTF-2000; specify `=jis-x0208' as the mother of
1115         `japanese-jisx0208-1978', `japanese-jisx0208' and
1116         `japanese-jisx0208-1990' in UTF-2000.
1117
1118 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1119
1120         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1121
1122 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1123
1124         * text-coding.c (decode_coding_utf16): Support UTF-16.
1125         (char_encode_utf16): Fixed.
1126
1127 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1128
1129         * text-coding.c (Qutf16): New variable in MULE.
1130         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1131         (Fcoding_system_type): Add `utf-16' in MULE.
1132         (struct detection_state): Add a structure for utf16 in MULE.
1133         (detect_coding_type): Setup st->utf16.mask in MULE.
1134         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1135         MULE.
1136         (reset_encoding_stream): Use `char_encode_utf16' and
1137         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1138         (detect_coding_utf16): New function [incomplete].
1139         (decode_coding_utf16): New function [support only UCS-2].
1140         (char_encode_utf16): New function.
1141         (char_finish_utf16): New function.
1142         (syms_of_file_coding): Add new symbol `utf-16'; setup
1143         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1144
1145         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1146         UTF-2000.
1147         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1148         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1149
1150 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1151
1152         * chartab.c (put_char_table): When a charset is specified as a
1153         range in UTF-2000, don't support builtin characters.
1154
1155 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1156
1157         * mule-charset.c (decode_defined_char): Don't refer external
1158         database if Qunbound or Qnil are found.
1159         (Fsave_charset_mapping_table): Don't define it if
1160         HAVE_CHISE_CLIENT is not defined.
1161         (Freset_charset_mapping_table): New function.
1162         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1163         found in external database.
1164         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1165         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1166         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1167
1168 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1169
1170         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1171         not.
1172
1173 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1174
1175         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1176         Q_lowercase, Q_uppercase in UTF-2000.
1177
1178         * chartab.c (get_char_table): Add special code for the standard
1179         case table to use character attribute `->downcase' and
1180         `->uppercase' for case operations in UTF-2000.
1181
1182         * casetab.c (Qflippedcase): New variable in UTF-2000.
1183         (Q_lowercase): Likewise.
1184         (Q_uppercase): Likewise.
1185         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1186         and `->uppercase' in UTF-2000.
1187         (complex_vars_of_casetab): Assign attribute name `downcase' to
1188         downcase and CANON table of Vstandard_case_table in UTF-2000;
1189         assign attribute name `flippedcase' to upcase and EQV table of
1190         Vstandard_case_table in UTF-2000.
1191
1192 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1193
1194         * text-coding.c (decode_add_er_char): Support isolated-chars.
1195         (char_encode_as_entity_reference): Likewise.
1196
1197 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1198
1199         * emacs.c (Vutf_2000_lisp_directory): New variable.
1200         (Vconfigure_utf_2000_lisp_directory): Likewise.
1201         (complex_vars_of_emacs): Add new variable
1202         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1203
1204 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1205
1206         * char-ucs.h (DECODE_CHAR): Delete special code for
1207         `chinese-big5-1' and `chinese-big5-2'.
1208
1209         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1210         (Qbig5_2): Likewise.
1211         (decode_defined_char): Support CONVERSION_BIG5_1 and
1212         CONVERSION_BIG5_2.
1213         (decode_builtin_char): Likewise.
1214         (charset_code_point): Likewise.
1215         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1216         'conversion in UTF-2000.
1217         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1218         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1219         `chinese-big5-2' as children of `chinese-big5'.
1220
1221         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1222         (CONVERSION_BIG5_2): New macro.
1223
1224 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1225
1226         * text-coding.c (char_encode_big5): Support entity-reference.
1227
1228 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1229
1230         * text-coding.c (char_encode_as_entity_reference): New function.
1231         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1232
1233 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1234
1235         * text-coding.c (decode_coding_big5): Support entity-reference
1236         decoding feature.
1237
1238 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1239
1240         * text-coding.c (allocate_coding_system): Initialize initial
1241         charsets for CODESYS_UTF8.
1242         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1243         charset-g2 for CODESYS_UTF8.
1244         (decode_coding_utf8): Use charset-g0.
1245         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1246         to force variants to map to UCS.
1247
1248 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1249
1250         * text-coding.c (Qutf_8_mcs): New variable.
1251         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1252         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1253         instead of `utf-8' in UTF-2000.
1254
1255 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1256
1257         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1258         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1259         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1260         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1261         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1262         CONVERSION_96x96x96x96 are introduced.
1263         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1264         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1265         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1266
1267         * char-ucs.h (CONVERSION_94): New macro.
1268         (CONVERSION_96): New macro.
1269         (CONVERSION_94x94): New macro.
1270         (CONVERSION_96x96): New macro.
1271         (CONVERSION_94x94x94): New macro.
1272         (CONVERSION_96x96x96): New macro.
1273         (CONVERSION_94x94x94x60): New macro.
1274         (CONVERSION_94x94x94x94): New macro.
1275         (CONVERSION_96x96x96x96): New macro.
1276
1277 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1278
1279         * chartab.c (Vcharacter_variant_table): Deleted.
1280         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1281         of `Vcharacter_variant_table'.
1282         (Fput_char_attribute): Likewise.
1283         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1284         (complex_vars_of_chartab): Likewise.
1285
1286 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1287
1288         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1289
1290         * fns.c (Qideographic_structure): New variable.
1291         (Qkeyword_char): New variable.
1292         (ids_format_unit): New function.
1293         (Fideographic_structure_to_ids): New function.
1294         (syms_of_fns): Add new symbols `ideographic-structure' and
1295         `:char'; add new builtin function `ideographic-structure-to-ids'.
1296
1297         * data.c (Fchar_ref_p): New function.
1298         (syms_of_data): Add new builtin function `char-ref-p'.
1299
1300         * chartab.h: Add an EXFUN for `Ffind_char'.
1301
1302 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1303
1304         * text-coding.c (Vcharacter_composition_table): Deleted.
1305         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1306         in every UTF-2000.
1307
1308         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1309         UTF-2000.
1310         (Vcharacter_composition_table): Deleted.
1311         (Fget_composite_char): Use the implementation for external-DB
1312         support in every UTF-2000.
1313         (Fput_char_attribute): Likewise.
1314         (char_attribute_system_db_file): Don't define if external-DB
1315         feature is not available.
1316         (Fsave_char_attribute_table): Likewise.
1317         (Fmount_char_attribute_table): Likewise.
1318         (Fclose_char_attribute_table): Likewise.
1319         (Freset_char_attribute_table): Likewise.
1320         (Fload_char_attribute_table): Likewise.
1321         (syms_of_chartab): Don't define `save-char-attribute-table',
1322         `mount-char-attribute-table', `reset-char-attribute-table',
1323         `close-char-attribute-table' and `load-char-attribute-table' if
1324         external-DB feature is not available.
1325         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1326
1327 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1328
1329         * text-coding.c (Qcomposition): Add extern if external-DB feature
1330         is supported.
1331         (Vcharacter_composition_table): Don't add extern if external-DB
1332         feature is supported.
1333         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1334         character composition rule if external-DB feature is supported.
1335
1336         * chartab.c (Vcharacter_composition_table): Don't define if
1337         external-DB feature is supported.
1338         (Qcomposition): New variable.
1339         (Fget_composite_char): New implementation for external-DB support.
1340         (Fput_char_attribute): Use `composition' property of each
1341         character instead of `Vcharacter_composition_table' to store
1342         character-composition rules if external-DB feature is supported.
1343         (syms_of_chartab): Add new symbol `composition'.
1344         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1345         external-DB feature is supported.
1346
1347 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1348
1349         * chartab.c (Vchar_db_stingy_mode): New variable.
1350         (load_char_attribute_maybe): Close database if
1351         Vchar_db_stingy_mode is not NIL.
1352         (Fload_char_attribute_table_map_function): Use
1353         `get_char_id_table_0' instead of `get_char_id_table'.
1354         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1355
1356         * chartab.h (get_char_id_table_0): New inline function.
1357         (get_char_id_table): Use `get_char_id_table_0'.
1358
1359 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1360
1361         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1362         and `COMPOSE_ADD_CHAR'.
1363         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1364
1365 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1366
1367         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1368         instead of `DECODE_ADD_UCS_CHAR'.
1369         (COMPOSE_ADD_CHAR): Likewise.
1370
1371 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1372
1373         * text-coding.c (decode_flush_er_chars): New inline function.
1374         (decode_add_er_char): New function.
1375         (decode_coding_utf8): Use `decode_flush_er_chars' and
1376         `decode_add_er_char'.
1377
1378 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1379
1380         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1381         done before `decode_output_utf8_partial_char'.
1382
1383         * mule-charset.c (complex_vars_of_mule_charset): Specify
1384         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1385         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1386
1387 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1388
1389         * mule-charset.c (decode_defined_char): New function; search
1390         mother.
1391         (decode_builtin_char): Don't search mother if
1392         XCHARSET_MAX_CODE(charset) == 0.
1393         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1394         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1395         (Fdecode_char): Use `decode_defined_char' instead of
1396         `DECODE_DEFINED_CHAR'.
1397         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1398         mother of `Vcharset_ucs_jis'.
1399
1400         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1401         instead of `DECODE_DEFINED_CHAR'.
1402
1403         * char-ucs.h (decode_defined_char): Renamed from
1404         `DECODE_DEFINED_CHAR'; changed to normal function.
1405         (DECODE_CHAR): Use `decode_defined_char' instead of
1406         `DECODE_DEFINED_CHAR'.
1407
1408         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1409
1410 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1411
1412         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1413
1414         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1415         variable.
1416         (Quse_entity_reference): New variable.
1417         (Qd): New variable.
1418         (Qx): New variable.
1419         (QX): New variable.
1420         (coding_system_description): Add description for
1421         `ccs_priority_list'.
1422         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1423         (allocate_coding_system): Initialize `ccs_priority_list' in
1424         UTF-2000.
1425         (Fmake_coding_system): Add description about
1426         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1427         (codesys).
1428         (Fcoding_system_property): Accept `disable-composition' and
1429         `use-entity-reference' in UTF-2000.
1430         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1431         in UTF-2000.
1432         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1433         (decode_coding_utf8): Decode entity-reference if
1434         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1435         (char_encode_utf8): Encode non-Unicode characters as
1436         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1437         (str->codesys).
1438         (syms_of_file_coding): Add new symbols `use-entity-reference',
1439         `d', `x', `X'.
1440         (vars_of_file_coding): Add new variable
1441         `coded-charset-entity-reference-alist'.
1442         (complex_vars_of_file_coding): Declare `disable-composition' and
1443         `use-entity-reference' to be coding-system-properties in UTF-2000.
1444
1445         * file-coding.h (struct Lisp_Coding_System): Add new member
1446         `use_entity_reference' and `ccs_priority_list'.
1447         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1448         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1449         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1450
1451 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1452
1453         * chartab.c (save_uint8_byte_table): Don't clear the table.
1454         (save_uint16_byte_table): Likewise.
1455         (save_byte_table): Likewise.
1456         (Fmount_char_attribute_table): New function.
1457         (syms_of_chartab): Add new builtin function
1458         `mount-char-attribute-table'.
1459
1460 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1461
1462         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1463         "w+" mode.
1464         (load_char_decoding_entry_maybe): Open database as read-only mode.
1465
1466         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1467         open database as "w+" mode.
1468         (load_char_attribute_maybe): Open database as read-only mode.
1469         (Fload_char_attribute_table): Likewise.
1470
1471 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1472
1473         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1474         (char_table_description): Delete member `db_file'.
1475         (Fmake_char_table): Don't refer `ct->db_file'.
1476         (Fcopy_char_table): Likewise.
1477         (Fsave_char_attribute_table): Likewise.
1478         (Fclose_char_attribute_table): Likewise.
1479         (Freset_char_attribute_table): Likewise.
1480         (load_char_attribute_maybe): Likewise.
1481         (Fload_char_attribute_table): Likewise.
1482
1483         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1484
1485 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1486
1487         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1488         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1489         `ct->db' is living.
1490         (load_char_attribute_maybe): Likewise.
1491         (Fload_char_attribute_table): Likewise.
1492
1493 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1494
1495         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1496         `ct->db_file' unconditionally.
1497
1498 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1499
1500         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1501         UTF-2000.
1502         (char_table_description): Add description for `db_file' and `db'
1503         in UTF-2000.
1504         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1505         UTF-2000.
1506         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1507         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1508         (Fclose_char_attribute_table): New function.
1509         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1510         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1511         and `cit->db'.
1512         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1513         (syms_of_chartab): Add new builtin function
1514         `Fclose_char_attribute_table'.
1515
1516 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1517
1518         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1519         `db' in UTF-2000.
1520         (load_char_attribute_maybe): Change interface.
1521         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1522
1523 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1524
1525         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1526
1527 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1528
1529         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1530         instead of `DECODE_CHAR' for mother; don't use special code for
1531         chinese-big5 to use code space of chinese-big5-1 and
1532         chinese-big5-2.
1533         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1534         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1535
1536         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1537         (MAX_CHAR_BIG5_CDP): Revival.
1538
1539 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1540
1541         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1542         the XLFD registry-encoding name of `chinese-big5'.
1543
1544 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1545
1546         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1547         (Qchinese_big5_cdp): Deleted.
1548         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1549         (complex_vars_of_mule_charset): Delete coded-charset
1550         `chinese-big5-cdp'.
1551
1552         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1553         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1554         `CHARSET_ID_OFFSET - n' for private CCS.
1555         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1556         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1557         of `MIN_LEADING_BYTE'.
1558         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1559         `(CHARSET_ID_OFFSET - 97)'.
1560         (MIN_CHAR_BIG5_CDP): Deleted.
1561         (MAX_CHAR_BIG5_CDP): Deleted.
1562
1563 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1564
1565         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1566
1567 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1568
1569         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1570         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1571         chartab.c].
1572
1573         * chartab.c (Vutf_2000_version): Moved to mule.c.
1574         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1575
1576 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1577
1578         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1579         when HAVE_CHISE_CLIENT is not defined.
1580
1581         * mule.c (vars_of_mule): Provide feature `chise' when
1582         HAVE_CHISE_CLIENT is defined.
1583
1584 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1585
1586         * config.h.in (UTF2000): Add comment.
1587         (HAVE_CHISE_CLIENT): New macro.
1588
1589 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1590
1591         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1592         CONSP.
1593         (Fput_char_attribute): Likewise.
1594         (char_attribute_system_db_file): Encode file-name of attribute.
1595         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1596         the initial value.
1597
1598 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1599
1600         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1601         (Fsave_charset_mapping_table): Use
1602         `char_attribute_system_db_file'.
1603         (load_char_decoding_entry_maybe): Likewise.
1604
1605         * chartab.h (Qsystem_char_id): New external variable.
1606         (char_attribute_system_db_file): New prototype.
1607
1608         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1609         (char_attribute_system_db_file): New function.
1610         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1611         (Freset_char_attribute_table): Likewise.
1612         (load_char_attribute_maybe): Likewise.
1613         (Fload_char_attribute_table): Likewise.
1614         (syms_of_chartab): Add new symbol `system-char-id'.
1615
1616 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1617
1618         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1619         `XCHARSET_GRAPHIC(ccs)'.
1620
1621 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1622
1623         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1624
1625 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1626
1627         * chartab.c (Q_ucs_variants): New variable.
1628         (syms_of_chartab): Add new symbol `->ucs-variants'.
1629         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1630         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1631         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1632
1633         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1634
1635         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1636         `HAVE_DATABASE' is defined.
1637         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1638         `HAVE_DATABASE' is defined.
1639
1640 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1641
1642         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1643         attribute-table.
1644         (Freset_char_attribute_table): New function.
1645         (syms_of_chartab): Add new builtin function
1646         `reset-char-attribute-table'.
1647
1648 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1649
1650         * chartab.c (load_char_attribute_maybe): Don't make directories.
1651
1652 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1653
1654         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1655
1656         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1657         for decoding-table.
1658
1659 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1660
1661         * mule-charset.c (Fsave_charset_mapping_table): Use
1662         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1663
1664         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1665         instead of `XCHARSET_CHARS'.
1666
1667 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1668
1669         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1670         (XCHARSET_BYTE_SIZE): Likewise.
1671
1672         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1673         mule-charset.c].
1674         (XCHARSET_BYTE_SIZE): Likewise.
1675
1676 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1677
1678         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1679         data-directory to store database.
1680         (Fsave_char_attribute_table): Likewise.
1681         (load_char_attribute_maybe): Likewise.
1682         (Fload_char_attribute_table): Likewise.
1683
1684 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1685
1686         * mule-charset.c (Fsave_charset_mapping_table): New function.
1687         (syms_of_mule_charset): Add new builtin function
1688         `save-charset-mapping-table'.
1689
1690 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1691
1692         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1693         (get_ccs_octet_table): New inline function.
1694         (put_ccs_octet_table): Likewise.
1695         (decoding_table_put_char): Use `get_ccs_octet_table' and
1696         `put_ccs_octet_table'.
1697         (decoding_table_remove_char): Use `decoding_table_put_char'.
1698         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1699
1700         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1701         into encoding_table.
1702         (make_charset): Use Qunbound instead Qnil as initial value of
1703         decoding_table.
1704
1705 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1706
1707         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1708         element is Qunloaded.
1709         (map_over_uint16_byte_table): Likewise.
1710         (map_over_byte_table): Likewise.
1711         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1712         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1713         database support, load encoding-table of the specified
1714         coded-charset if it is not loaded yet.
1715         (save_uint8_byte_table): New function of UTF-2000 with external
1716         database support.
1717         (save_uint16_byte_table): Likewise.
1718         (save_byte_table): Likewise.
1719         (Fput_char_attribute): Don't store value into external database
1720         even if the external database feature is supported in UTF-2000;
1721         set `attribute' as name of char-table if the external database
1722         feature is supported.
1723         (Fsave_char_attribute_table): New function in UTF-2000.
1724         (syms_of_chartab): Add new builtin function
1725         `save-char-attribute-table' in UTF-2000.
1726
1727 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1728
1729         * chartab.c (char_attribute_table_to_put): New variable in
1730         UTF-2000.
1731         (Qput_char_table_map_function): Likewise.
1732         (value_to_put): Likewise.
1733         (Fput_char_table_map_function): New function in UTF-2000.
1734         (put_char_table): Use `Fmap_char_attribute' for
1735         CHARTAB_RANGE_CHARSET in UTF-2000.
1736         (Fput_char_attribute): Store symbol instead of string in
1737         `XCHAR_TABLE_NAME (table)'.
1738         (load_char_attribute_maybe): Likewise.
1739         (syms_of_chartab): Add new symbol/function
1740         `put-char-table-map-function'.
1741
1742 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1743
1744         * database.h: Add new EXFUN for `Fmap_database'.
1745
1746         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1747         (syms_of_database): Likewise.
1748
1749         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1750         UTF-2000.
1751         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1752         (XCHAR_TABLE_UNLOADED): Likewise.
1753
1754         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1755         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1756         HAVE_DATABASE is defined.
1757         (char_attribute_table_to_load): New variable of UTF-2000 with
1758         external database support.
1759         (Qload_char_attribute_table_map_function): Likewise.
1760         (Fload_char_attribute_table_map_function): New function of
1761         UTF-2000 with external database support.
1762         (Fload_char_attribute_table): New function of UTF-2000.
1763         (Fmap_char_attribute): Call Fload_char_attribute_table if
1764         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1765         (syms_of_chartab): Add new symbol and function
1766         `load-char-attribute-table-map-function' in UTF-2000 with external
1767         database support; add new function `load-char-attribute-table' in
1768         UTF-2000.
1769
1770 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1771
1772         * chartab.h (load_char_attribute_maybe): New prototype for
1773         UTF-2000 with DATABASE support.
1774         (get_char_id_table): Use `load_char_attribute_maybe' if
1775         HAVE_DATABASE is defined.
1776
1777         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1778         with DATABASE support.
1779
1780 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1781
1782         * chartab.c (Fput_char_attribute): Use S-expression as key of
1783         external database.
1784
1785         * chartab.h (get_char_id_table): Use S-expression as key of
1786         external database.
1787
1788 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1789
1790         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1791         if an element is not loaded, load the corresponding attributes
1792         from an external database.
1793         (map_over_uint16_byte_table): Likewise.
1794         (map_over_byte_table): Likewise.
1795         (map_char_table): Modify for `map_over_uint8_byte_table',
1796         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1797         element is not loaded, load the corresponding attributes from an
1798         external database.
1799         (Fput_char_attribute): Change initial values to Qunloaded.
1800
1801         * chartab.h (get_char_id_table): If a character attribute is not
1802         loaded and the attribute value is not found in an external
1803         database, store Qunbound as the attribute value.
1804
1805 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1806
1807         * chartab.c (BT_UINT8_unloaded): New macro.
1808         (UINT8_VALUE_P): Accept Qunloaded.
1809         (UINT8_ENCODE): Likewise.
1810         (UINT8_DECODE): Likewise.
1811         (BT_UINT16_unloaded): New macro.
1812         (UINT16_VALUE_P): Accept Qunloaded.
1813         (UINT16_ENCODE): Likewise.
1814         (UINT16_DECODE): Likewise.
1815         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1816         BT_UINT16_unloaded.
1817         (mark_char_table): Mark `ct->name' in UTF-2000.
1818         (char_table_description): Add `name' in UTF-2000.
1819         (Fmake_char_table): Initialize `ct->name'.
1820         (Fcopy_char_table): Copy `ct->name'.
1821         (Fput_char_attribute): Store value into an external database if
1822         HAVE_DATABASE is defined.
1823
1824         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1825         UTF-2000.
1826         (CHAR_TABLE_NAME): New macro in UTF-2000.
1827         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1828         (get_char_id_table): Try to read an external database if Qunloaded
1829         is stored in a table.
1830
1831         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1832         Qunloaded.
1833
1834 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1835
1836         * database.h: Add EXFUN definitions for Fopen_database,
1837         Fput_database, Fget_database and Fclose_database.
1838
1839         * data.c (Qunloaded): New variable in UTF-2000.
1840
1841         * lisp.h (Qunloaded): New variable in UTF-2000.
1842
1843 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1844
1845         * mule-charset.c (put_char_ccs_code_point): Modify for
1846         `decoding_table_remove_char' and `decoding_table_put_char'.
1847         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1848
1849         * char-ucs.h (decoding_table_remove_char): Change arguments to
1850         hide decoding_table vector.
1851         (decoding_table_put_char): Likewise.
1852
1853 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1854
1855         * mule-charset.c (decoding_table_remove_char): Moved to
1856         char-ucs.h.
1857         (decoding_table_put_char): Likewise.
1858
1859         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1860         from mule-charset.c].
1861         (decoding_table_remove_char): New inline function [moved from
1862         mule-charset.c].
1863         (decoding_table_put_char): Likewise.
1864
1865 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1866
1867         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1868         extension.
1869
1870 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1871
1872         * mule-charset.c (decode_builtin_char): Support mother charsets.
1873
1874 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1875
1876         * mule-charset.c (Q94x94x60): New variable.
1877         (charset_code_point): Support conversion `94x94x60'.
1878         (Fmake_charset): Likewise.
1879         (syms_of_mule_charset): Add new symbol `94x94x60'.
1880
1881         * char-ucs.h (CONVERSION_94x94x60): New macro.
1882
1883 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1884
1885         * mule-charset.c (charset_code_point): Unify code about
1886         `code-offset'.
1887
1888 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1889
1890         * mule-charset.c (charset_code_point): Merge code about builtin
1891         characters into code about mother charsets; don't use
1892         `range_charset_code_point'.
1893         (range_charset_code_point): Deleted.
1894
1895 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1896
1897         * mule-charset.c (Qcode_offset): New variable.
1898         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1899         `max-code'; accept new property `code-offset'.
1900         (syms_of_mule_charset): Add new symbol `code-offset'.
1901
1902 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1903
1904         * mule-charset.c (range_charset_code_point): Fixed.
1905
1906 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1907
1908         * mule-charset.c (decode_builtin_char): Change semantics of
1909         code-offset of coded-charset.
1910         (charset_code_point): Likewise.
1911         (range_charset_code_point): Likewise.
1912         (complex_vars_of_mule_charset): Modify for the change.
1913
1914 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1915
1916         * mule-charset.c (Fencode_char): Reverse arguments.
1917
1918         * mule-charset.c (charset_code_point): Fixed.
1919
1920 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1921
1922         * mule-charset.c (Vcharset_mojikyo): Deleted.
1923         (Vcharset_mojikyo_2022_1): Deleted.
1924         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1925         (Qmin_code): New variable in UTF-2000.
1926         (Qmax_code): Likewise.
1927         (Qmother): Likewise.
1928         (Qconversion): Likewise.
1929         (Q94x60): Likewise.
1930         (Qmojikyo): Deleted.
1931         (Qmojikyo_2022_1): Deleted.
1932         (Qmojikyo_pj_{1..22}): Deleted.
1933         (mark_charset): Mark `cs->mother'.
1934         (charset_description): Add description for `mother'.
1935         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1936         new arguments `mother' and `conversion'; use
1937         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1938         (charset_code_point): Moved from char-ucs.h; support `mother'
1939         charset feature.
1940         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1941         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1942         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1943         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1944         allow 2 as the value of `graphic' in UTF-2000; add new properties
1945         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1946         require `final' in UTF-2000; modify for `make_charset'.
1947         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1948         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1949         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1950         (Fencode_char): New function.
1951         (syms_of_mule_charset): Add new builtin function `encode-char' in
1952         UTF-2000; add new symbols `min-code', `max-code', `mother',
1953         `conversion' and `94x60'; delete symbols `mojikyo',
1954         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1955         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1956         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1957         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1958
1959         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1960         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1961
1962         * char-ucs.h (Vcharset_mojikyo): Deleted.
1963         (Vcharset_mojikyo_2022_1): Deleted.
1964         (LEADING_BYTE_MOJIKYO): Deleted.
1965         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1966         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1967         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1968         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1969         add new member `mother'; add new member `conversion'.
1970         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1971         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1972         (CHARSET_MOTHER): New macro.
1973         (CHARSET_CONVERSION): New macro.
1974         (CONVERSION_IDENTICAL): New macro.
1975         (CONVERSION_94x60): New macro.
1976         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1977         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1978         (XCHARSET_MOTHER): New macro.
1979         (XCHARSET_CONVERSION): New macro.
1980         (MIN_CHAR_MOJIKYO): Deleted.
1981         (MAX_CHAR_MOJIKYO): Deleted.
1982         (DECODE_MOJIKYO_2022): Deleted.
1983         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1984         (charset_code_point): Changed to non-inline function.
1985         (encode_char_1): Use `charset_code_point'.
1986         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1987
1988 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1989
1990         * lread.c (read_compiled_function): Fix prototype.
1991         (read_vector): Likewise.
1992
1993 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1994
1995         * lrecord.h (struct lrecord_header): Delete `older'.
1996         (set_lheader_implementation): Delete code for `older'.
1997         (set_lheader_older_implementation): Deleted.
1998         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1999         (OLDER_RECORD_P): Deleted.
2000         (OLDER_RECORD_HEADER_P): Deleted.
2001         (alloc_older_lcrecord): Deleted.
2002         (alloc_older_lcrecord_type): Deleted.
2003
2004         * alloc.c (all_older_lcrecords): Deleted.
2005         (alloc_older_lcrecord): Deleted.
2006         (disksave_object_finalization_1): Delete code for older objects.
2007         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2008         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2009
2010 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2011
2012         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2013         instead of `make_older_vector'.
2014         (put_char_ccs_code_point): Likewise.
2015         (mark_charset): Mark `cs->decoding_table'.
2016         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2017
2018         * lisp.h (make_older_vector): Deleted.
2019         (make_vector_newer): Deleted.
2020
2021         * config.h.in (HAVE_GGC): Deleted.
2022
2023         * alloc.c (make_older_vector): Deleted.
2024         (make_vector_newer_1): Deleted.
2025         (make_vector_newer): Deleted.
2026
2027 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2028
2029         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2030         (Qideograph_daikanwa_2): New variable.
2031         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2032         (complex_vars_of_mule_charset): Add new coded-charset
2033         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2034         `LEADING_BYTE_DAIKANWA'.
2035
2036         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2037         (LEADING_BYTE_DAIKANWA_1): New macro.
2038         (LEADING_BYTE_DAIKANWA_2): New macro.
2039         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2040
2041 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2042
2043         * mule-charset.c (complex_vars_of_mule_charset): Change
2044         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2045         the second revised version.
2046
2047 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2048
2049         * mule-charset.c (Vcharset_ucs_smp): New variable.
2050         (Vcharset_ucs_sip): New variable.
2051         (Qucs_smp): New variable.
2052         (Qucs_sip): New variable.
2053         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2054         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2055         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2056         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2057         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2058         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2059
2060         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2061         (LEADING_BYTE_UCS_SIP): New macro.
2062         (MIN_CHAR_SMP): New macro.
2063         (MAX_CHAR_SMP): New macro.
2064         (MIN_CHAR_SIP): New macro.
2065         (MAX_CHAR_SIP): New macro.
2066
2067 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2068
2069         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2070         utf-2000.
2071
2072 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2073
2074         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2075         value; don't store value into `encoding_table' of `Lisp_Charset'.
2076         (mark_charset): `encoding_table' was deleted.
2077         (charset_description): Likewise.
2078         (make_charset): Likewise.
2079         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2080         `put_char_ccs_code_point'.
2081
2082         * chartab.h (Fput_char_attribute): New EXFUN.
2083
2084         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2085         is unified with normal symbol space.
2086         (Fget_char_attribute): Likewise.
2087         (Fput_char_attribute): Likewise; behavior of
2088         `put_char_ccs_code_point' is changed.
2089
2090         * char-ucs.h: Include "elhash.h".
2091         (Vchar_attribute_hash_table): New external variable.
2092         (struct Lisp_Charset): Delete `encoding_table'.
2093         (CHARSET_ENCODING_TABLE): New implementation; refer
2094         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2095         `Lisp_Charset'.
2096
2097 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2098
2099         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2100         (cs) == 0.
2101
2102 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2103
2104         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2105         `chinese-big5'.
2106
2107 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2108
2109         * chartab.c (uint8_byte_table_description): New constant.
2110         (uint8-byte-table): Use `uint8_byte_table_description'.
2111         (uint16_byte_table_description): New constant.
2112         (uint16-byte-table): Use `uint16_byte_table_description'.
2113
2114 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2115
2116         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2117         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2118
2119 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2120
2121         * mule-charset.c (Vcharset_ucs_ks): New variable.
2122         (Qucs_ks): New variable.
2123         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2124         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2125
2126         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2127
2128 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2129
2130         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2131         (Fdecode_char): Likewise.
2132
2133         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2134         chartab.h.
2135         (Fdefine_char): Modify for Fdecode_char.
2136         (Ffind_char): Likewise.
2137
2138         * mule-charset.c (Fdecode_char): Add new optional argument
2139         `defined-only'.
2140         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2141
2142 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2143
2144         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2145         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2146         (allocate_coding_system): Initialize initial-charsets of
2147         CODESYS_BIG5 in XEmacs UTF-2000.
2148         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2149         CODESYS_BIG5 in XEmacs UTF-2000.
2150         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2151         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2152
2153         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2154         variables.
2155         (Qideograph_hanziku_{1 .. 12}): Likewise.
2156         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2157         .. 12}'.
2158         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2159         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2160         `ideograph-hanziku-{1 .. 12}'.
2161
2162         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2163         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2164         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2165         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2166         (DECODE_DEFINED_CHAR): New inline function.
2167         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2168
2169 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2170
2171         * mule-charset.c (Vcharset_china3_jef): Renamed from
2172         `Vcharset_japanese_jef_china3'.
2173         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2174         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2175         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2176         (syms_of_mule_charset): Rename `china3-jef' from
2177         `japanese-jef-china3'.
2178         (complex_vars_of_mule_charset): Likewise; rename
2179         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2180
2181         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2182         `LEADING_BYTE_JEF_CHINA3'.
2183         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2184         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2185
2186 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2187
2188         * mule-charset.c (encode_builtin_char_1): Comment out special code
2189         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2190
2191         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2192         (MAX_CHAR_MOJIKYO_0): Comment out.
2193         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2194         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2195         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2196         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2197
2198 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2199
2200         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2201         (Qideograph_cbeta): New variable.
2202         (encode_builtin_char_1): Comment out special code for
2203         coded-charset `mojikyo' and `japanese-jef-china3'.
2204         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2205         (complex_vars_of_mule_charset): Add new coded-charset
2206         `ideograph-cbeta'.
2207
2208         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2209         (MIN_CHAR_CBETA): New macro.
2210         (MAX_CHAR_CBETA): New macro.
2211
2212 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2213
2214         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2215         (LEADING_BYTE_JEF_CHINA3): New macro.
2216         (MIN_CHAR_JEF_CHINA3): New macro.
2217         (MAX_CHAR_JEF_CHINA3): Likewise.
2218         (DECODE_CHAR): Fixed.
2219
2220 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2221
2222         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2223         (Qjapanese_jef_china3): New variable.
2224         (encode_builtin_char_1): Support `japanese-jef-china3'.
2225         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2226         (complex_vars_of_mule_charset): Add new coded-charset
2227         `japanese-jef-china3'.
2228
2229 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2230
2231         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2232         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2233         94^4, 96^3, 96^4, 128^n and 256^n set.
2234         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2235         (map_char_table): Likewise.
2236
2237 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2238
2239         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2240         UTF-2000.
2241
2242 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2243
2244         * chartab.h (get_char_id_table): New inline function.
2245
2246         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2247         function.
2248
2249 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2250
2251         * chartab.h (decode_char_table_range): New prototype in XEmacs
2252         UTF-2000.
2253         (put_char_id_table): New inline function in XEmacs UTF-2000.
2254
2255         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2256         function.
2257         (decode_char_table_range): Delete static declaration in XEmacs
2258         UTF-2000.
2259
2260 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2261
2262         * chartab.c (put_char_id_table): Use `put_char_table'.
2263
2264 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2265
2266         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2267         (map_over_uint16_byte_table): Likewise.
2268         (map_over_byte_table): Likewise.
2269         (map_char_table): Modify for `map_over_uint8_byte_table',
2270         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2271         UTF-2000.
2272
2273 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2274
2275         * chartab.c (struct map_char_table_for_charset_arg): New
2276         structure.
2277         (map_char_table_for_charset_fun): New function.
2278         (map_char_table): Use `map_char_table' for encoding_table of
2279         `range->charset'.
2280
2281 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2282
2283         * chartab.c (map_char_table): Check a character is found in
2284         range->charset instead of non default value is defined in
2285         char-table when range is CHARTAB_RANGE_ROW.
2286
2287 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2288
2289         * chartab.c (map_char_id_table): Deleted.
2290         (Fmap_char_attribute): Use `map_char_table' instead of
2291         `map_char_id_table'.
2292
2293 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2294
2295         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2296         UTF-2000.
2297         (update_syntax_table): Deleted in XEmacs UTF-2000.
2298
2299         * syntax.c (find_defun_start): Use `syntax_table' instead of
2300         `mirror_syntax_table' in XEmacs UTF-2000.
2301         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2302         UTF-2000.
2303         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2304         XEmacs UTF-2000.
2305         (Fmatching_paren): Likewise.
2306         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2307         in XEmacs UTF-2000.
2308         (find_start_of_comment): Likewise.
2309         (find_end_of_comment): Likewise.
2310         (Fforward_comment): Likewise.
2311         (scan_lists): Likewise.
2312         (char_quoted): Likewise.
2313         (Fbackward_prefix_chars): Likewise.
2314         (scan_sexps_forward): Likewise.
2315         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2316         (update_syntax_table): Likewise.
2317
2318         * search.c (skip_chars): Use `syntax_table' instead of
2319         `mirror_syntax_table' in XEmacs UTF-2000.
2320         (wordify): Likewise.
2321         (Freplace_match): Likewise.
2322
2323         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2324         `mirror_syntax_table' in XEmacs UTF-2000.
2325         (WORDCHAR_P_UNSAFE): Likewise.
2326         (re_match_2_internal): Likewise.
2327
2328         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2329         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2330
2331         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2332         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2333
2334         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2335         XEmacs UTF-2000.
2336
2337         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2338         UTF-2000.
2339         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2340         (char_table_description): Delete `mirror_table' in XEmacs
2341         UTF-2000.
2342         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2343         UTF-2000.
2344         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2345         (Fcopy_char_table): Likewise.
2346         (put_char_table): Don't call `update_syntax_table' in XEmacs
2347         UTF-2000.
2348
2349         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2350         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2351         (casify_region_internal): Likewise.
2352
2353         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2354
2355         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2356         `mirror_syntax_table' in XEmacs UTF-2000.
2357
2358         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2359         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2360         (Fexpand_abbrev): Likewise.
2361
2362 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2363
2364         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2365
2366 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2367
2368         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2369         (map_over_uint16_byte_table): Likewise.
2370         (map_over_byte_table): Likewise.
2371         (get_char_id_table): Refer `cit->default_value'.
2372         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2373         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2374         of character-id ranges.
2375         (mark_char_table): Mark `ct->default_value'.
2376         (char_table_description): Add `default_value'.
2377         (fill_char_table): Use `default_value'.
2378         (decode_char_table_range): Decode `nil' as
2379         `CHARTAB_RANGE_DEFAULT'.
2380         (get_char_id_table): Refer `cit->default_value'.
2381         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2382         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2383         temporary hack; check value of char-table is bound or not.
2384         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2385
2386         * chartab.h (struct Lisp_Char_Table): Add new member
2387         `default_value' in XEmacs UTF-2000.
2388         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2389         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2390         UTF-2000.
2391
2392 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2393
2394         * chartab.h (Lisp_Char_ID_Table): Deleted.
2395
2396         * chartab.c (char_table_description): Fix typo.
2397         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2398         `Lisp_Char_ID_Table'.
2399
2400 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2401
2402         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2403         `CHAR_ID_TABLE_P'.
2404
2405         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2406         `CHAR_ID_TABLE_P'.
2407
2408         * chartab.h (XCHAR_ID_TABLE): Deleted.
2409         (XSETCHAR_ID_TABLE): Deleted.
2410         (CHAR_ID_TABLE_P): Deleted.
2411
2412         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2413         `CHAR_ID_TABLE_P'.
2414         (Fget_composite_char): Likewise.
2415         (put_char_table): Likewise.
2416         (add_char_attribute_alist_mapper): Fixed.
2417         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2418         `CHAR_ID_TABLE_P'.
2419         (Fget_char_attribute): Likewise.
2420         (Fget_char_attribute): Likewise.
2421         (Fmap_char_attribute): Likewise.
2422
2423         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2424         `CHAR_ID_TABLE_P'.
2425         (encode_char_1): Likewise.
2426
2427 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2428
2429         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2430         `XCHAR_ID_TABLE'.
2431
2432         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2433         instead of `XCHAR_ID_TABLE'.
2434         (remove_char_ccs): Likewise.
2435
2436         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2437         `XCHAR_ID_TABLE'.
2438         (Fget_composite_char): Likewise.
2439         (Fchar_variants): Likewise.
2440         (put_char_table): Likewise.
2441         (add_char_attribute_alist_mapper): Likewise.
2442         (Fchar_attribute_alist): Likewise.
2443         (Fget_char_attribute): Likewise.
2444         (Fput_char_attribute): Likewise.
2445         (Fmap_char_attribute): Likewise.
2446         (Fmap_char_attribute): Likewise.
2447
2448         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2449         `XCHAR_ID_TABLE'.
2450         (encode_char_1): Likewise.
2451
2452 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2453
2454         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2455         `Lisp_Char_ID_Table'.
2456         (mark_char_id_table): Deleted.
2457         (print_char_id_table): Likewise.
2458         (char_id_table_equal): Likewise.
2459         (char_id_table_hash): Likewise.
2460         (char_id_table_description): Likewise.
2461         (char_id_table): Likewise.
2462         (make_char_id_table): Use `Fmake_char_table' and
2463         `fill_char_table'.
2464         (get_char_id_table): Use `Lisp_Char_Table' instead of
2465         `Lisp_Char_ID_Table'.
2466         (put_char_id_table): Likewise.
2467         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2468         `XCHAR_ID_TABLE'.
2469         (Fremove_char_attribute): Likewise.
2470         (syms_of_chartab): Don't define type `char-id-table'.
2471
2472         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2473         (char_id_table): Likewise.
2474         (GC_CHAR_ID_TABLE_P): Likewise.
2475         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2476         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2477         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2478         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2479         (get_char_id_table): Use `Lisp_Char_Table' instead of
2480         `Lisp_Char_ID_Table'.
2481         (put_char_id_table_0): Likewise.
2482         (put_char_id_table): Likewise.
2483
2484 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2485
2486         * chartab.h: Lisp_Byte_Table related codes are moved from
2487         chartab.h.
2488
2489         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2490
2491 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2492
2493         * chartab.h: Don't include "chartab.h".
2494         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2495         (Lisp_Char_ID_Table): Likewise.
2496         (char_id_table): Likewise.
2497         (XCHAR_ID_TABLE): Likewise.
2498         (XSETCHAR_ID_TABLE): Likewise.
2499         (CHAR_ID_TABLE_P): Likewise.
2500         (GC_CHAR_ID_TABLE_P): Likewise.
2501         (get_char_id_table): Likewise.
2502
2503         * char-ucs.h: Include "chartab.h".
2504         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2505         (Lisp_Char_ID_Table): Likewise.
2506         (char_id_table): Likewise.
2507         (XCHAR_ID_TABLE): Likewise.
2508         (XSETCHAR_ID_TABLE): Likewise.
2509         (CHAR_ID_TABLE_P): Likewise.
2510         (GC_CHAR_ID_TABLE_P): Likewise.
2511         (get_char_id_table): Likewise.
2512
2513 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2514
2515         * chartab.c (copy_uint8_byte_table): New function.
2516         (copy_uint16_byte_table): New function.
2517         (copy_byte_table): New function.
2518         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2519         characters to call.
2520         (map_over_uint16_byte_table): Likewise.
2521         (map_over_byte_table): Likewise.
2522         (get_byte_table): Move prototype to chartab.h.
2523         (put_byte_table): Likewise.
2524         (put_char_id_table_0): Moved to chartab.h.
2525         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2526         (char_table_entry_equal): Likewise.
2527         (char_table_entry_hash): Likewise.
2528         (char_table_entry_description): Likewise.
2529         (char_table_entry): Likewise.
2530         (make_char_table_entry): Likewise.
2531         (copy_char_table_entry): Likewise.
2532         (get_non_ascii_char_table_value): Likewise.
2533         (map_over_charset_ascii): Likewise.
2534         (map_over_charset_control_1): Likewise.
2535         (map_over_charset_row): Likewise.
2536         (map_over_other_charset): Likewise.
2537         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2538         (print_char_table): Likewise.
2539         (char_table_equal): Likewise.
2540         (char_table_hash): Likewise.
2541         (char_table_description): Likewise.
2542         (fill_char_table): Likewise.
2543         (Fcopy_char_table): Likewise.
2544         (get_char_table): Likewise.
2545         (Fget_range_char_table): Likewise.
2546         (put_char_table): Likewise.
2547         (map_char_table): Likewise.
2548         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2549         UTF-2000.
2550
2551 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2552
2553         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2554         `Vauto_fill_chars' in XEmacs UTF-2000.
2555
2556         * chartab.h (get_byte_table): New prototype [moved from
2557         chartab.c].
2558         (put_byte_table): Likewise [moved from chartab.c].
2559         (put_char_id_table_0): New inline function [moved from chartab.c].
2560         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2561         (Lisp_Char_Table_Entry): Likewise.
2562         (char_table_entry): Likewise.
2563         (XCHAR_TABLE_ENTRY): Likewise.
2564         (XSETCHAR_TABLE_ENTRY): Likewise.
2565         (CHAR_TABLE_ENTRYP): Likewise.
2566         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2567         (NUM_ASCII_CHARS): Likewise.
2568         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2569         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2570
2571 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2572
2573         * chartab.c (get_char_id_table): Change interface.
2574         (put_char_id_table_0): New function.
2575         (put_char_id_table): Change interface; new implementation.
2576         (Fget_composite_char): Modify for interface change of
2577         `get_char_id_table'.
2578         (Fchar_variants): Likewise.
2579         (add_char_attribute_alist_mapper): Likewise.
2580         (Fchar_attribute_alist): Likewise.
2581         (Fget_char_attribute): Likewise.
2582         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2583         as same as character as the first argument like `put-char-table';
2584         modify for interface change of `put_char_id_table'.
2585         (Fremove_char_attribute): Modify for interface change of
2586         `put_char_id_table'.
2587
2588 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2589
2590         * text-coding.c: Sync up with XEmacs 21.2.41.
2591         (COMPOSE_ADD_CHAR): Modify for interface change of
2592         `get_char_id_table'.
2593
2594         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2595         change of `put_char_id_table'.
2596         (remove_char_ccs): Likewise.
2597
2598         * chartab.h (put_char_id_table): Change interface.
2599
2600         * char-ucs.h (get_char_id_table): Change interface.
2601         (charset_code_point): Modify for interface change of
2602         `get_char_id_table'.
2603         (encode_char_1): Likewise.
2604
2605 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2606
2607         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2608         argument `ccs'.
2609         (map_over_uint16_byte_table): Likewise.
2610         (map_over_byte_table): Likewise.
2611         (map_char_id_table): Add new argument `range' like
2612         `map_char_table'.
2613         (Fmap_char_attribute): Add new argument `range' like
2614         `Fmap_char_table'.
2615
2616 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2617
2618         * chartab.c (map_over_uint8_byte_table): Change interface of
2619         mapping function to use struct chartab_range instead of Emchar.
2620         (map_over_uint16_byte_table): Likewise.
2621         (map_over_byte_table): Likewise.
2622         (map_char_id_table): Likewise.
2623         (struct slow_map_char_id_table_arg): Deleted.
2624         (slow_map_char_id_table_fun): Deleted.
2625         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2626         function `slow_map_char_table_fun' instead of struct
2627         `slow_map_char_id_table_arg' and function
2628         `slow_map_char_id_table_fun'.
2629
2630 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2631
2632         * mule-charset.c: Move char-it-table related codes to chartab.c.
2633         (Vutf_2000_version): Moved to chartab.c.
2634         (Fdefine_char): Likewise.
2635         (Ffind_char): Likewise.
2636         (syms_of_mule_charset): Move types `uint8-byte-table',
2637         `uint16-byte-table', `byte-table' and `char-id-table' to
2638         chartab.c; move functions `char_attribute_list,
2639         `find_char_attribute_table, `char_attribute_alist,
2640         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2641         `map_char_attribute, `define_char, `find_char, `char_variants and
2642         `get_composite_char to chartab.c; move symbols `=>ucs',
2643         `->decomposition', `compat', `isolated', `initial', `medial',
2644         `final', `vertical', `noBreak', `fraction', `super', `sub',
2645         `circle', `square', `wide', `narrow', `small' and `font' to
2646         chartab.c.
2647         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2648         setting codes for `Vcharacter_composition_table' and
2649         `Vcharacter_variant_table' to chartab.c.
2650         (complex_vars_of_mule_charset): Move setting code for
2651         `Vchar_attribute_hash_table' to chartab.c.
2652
2653         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2654         (make_char_id_table): New prototype.
2655         (put_char_id_table): Likewise.
2656         (Fget_char_attribute): Likewise.
2657
2658         * chartab.c: Move char-id-table related code from mule-charset.c.
2659         (Vutf_2000_version): Moved from mule-charset.c.
2660
2661         * char-ucs.h (Qucs): New external variable.
2662         (put_char_ccs_code_point): New prototype.
2663         (remove_char_ccs): Likewise.
2664
2665 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2666
2667         * mule-charset.c (Vcharset_ucs_jis): New variable.
2668         (Qucs_jis): Likewise.
2669         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2670         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2671
2672         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2673
2674 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2675
2676         * mule-charset.c (map_over_uint8_byte_table): New function.
2677         (map_over_uint16_byte_table): Likewise.
2678         (map_over_byte_table): Likewise.
2679         (map_char_id_table): Likewise.
2680         (slow_map_char_id_table_fun): Likewise.
2681         (Fmap_char_attribute): Likewise.
2682         (syms_of_mule_charset): Add new function `map-char-attribute'.
2683
2684 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2685
2686         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2687         (syms_of_mule_charset): Add new function `find-char'.
2688
2689 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2690
2691         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2692         XEmacs UTF-2000.
2693         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2694         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2695         XEmacs UTF-2000.
2696         (complex_vars_of_mule_charset): Add new coded-charset
2697         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2698         `ideograph-gt-pj-*'.
2699
2700         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2701
2702 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2703
2704         * mule-charset.c (encode_builtin_char_1): Purge codes about
2705         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2706         {MIN|MAX}_CHAR_HEBREW.
2707         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2708         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2709
2710         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2711         (MAX_CHAR_GREEK): Purged.
2712         (MIN_CHAR_CYRILLIC): Purged.
2713         (MAX_CHAR_CYRILLIC): Purged.
2714         (MIN_CHAR_HEBREW): Commented out.
2715         (MAX_CHAR_HEBREW): Likewise.
2716
2717 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2718
2719         * mule-charset.c (Qto_ucs): New variable.
2720         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2721         (Fdefine_char): Likewise.
2722         (syms_of_mule_charset): Add new symbol `=>ucs'.
2723
2724 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2725
2726         * mule-charset.c (Fdecode_char): Fixed.
2727
2728 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2729
2730         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2731         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2732         "tcvn5712-1".
2733
2734 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2735
2736         * mule-charset.c (Vcharset_ucs_big5): New variable.
2737         (Qucs_big5): Likewise.
2738         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2739         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2740
2741         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2742
2743 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2744
2745         * mule-charset.c (decode_builtin_char): Check Big5 code range
2746         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2747
2748 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2749
2750         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2751         (Qchinese_gb12345): Likewise.
2752         (Fdecode_builtin_char): Fixed.
2753         (syms_of_mule_charset): Add `chinese-gb12345'.
2754         (complex_vars_of_mule_charset): Add coded-charset
2755         `chinese-gb12345'.
2756
2757         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2758         (LEADING_BYTE_CHINESE_GB12345): New macro.
2759
2760 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2761
2762         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2763         and `latin-viscii-upper' for `latin-viscii'.
2764
2765 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2766
2767         * mule-charset.c (Fdecode_builtin_char): Comment out
2768         regularization code for ISO-IR GR representation.
2769
2770 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2771
2772         * mule-charset.c (decode_builtin_char): New function; renamed from
2773         `make_builtin_char'; return -1 instead of signal.
2774         (Fdecode_builtin_char): Use `decode_builtin_char'.
2775
2776         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2777         `make_builtin_char'.
2778         (DECODE_CHAR): Use `decode_builtin_char' instead of
2779         `make_builtin_char'; use mapping table of `chinese-big5' for
2780         `chinese-big5-{1,2}'.
2781
2782 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2783
2784         * text-coding.c (char_encode_big5): New function.
2785         (char_finish_big5): Likewise.
2786         (reset_encoding_stream): Use `char_encode_big5' and
2787         `char_finish_big5' for CODESYS_BIG5.
2788         (mule_encode): Don't use `encode_coding_big5'.
2789         (encode_coding_big5): Deleted.
2790
2791 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2792
2793         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2794         0x81- in XEmacs UTF-2000.
2795         (detect_coding_big5): Likewise.
2796
2797 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2798
2799         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2800         generate character-id if the CCS property does not have
2801         corresponding predefined character.
2802         (make_builtin_char): Return -1 if corresponding predefined
2803         character is not found.
2804         (Fdecode_char): Return nil if corresponding character is not
2805         found.
2806         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2807         don't map to builtin ucs space.
2808
2809 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2810
2811         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2812         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2813
2814 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2815
2816         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2817         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2818         (Qideograph_gt): Likewise.
2819         (Qideograph_gt_pj_{1..11}): Likewise.
2820         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2821         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2822         `ideograph-gt-pj-11'.
2823         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2824         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2825         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2826
2827         * char-ucs.h (LEADING_BYTE_GT): New macro.
2828         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2829         (MIN_CHAR_GT): Likewise.
2830         (MAX_CHAR_GT): Likewise.
2831
2832 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2833
2834         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2835         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2836
2837         * doprnt.c (unsigned_int_converters): Add `c'.
2838         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2839
2840         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2841         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2842         `MIN_CHAR_MOJIKYO'.
2843         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2844         (MAX_CHAR_MOJIKYO_0): New macro.
2845         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2846
2847 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2848
2849         * mule-charset.c (Fdefine_char): Delete cemented out code.
2850         (encode_builtin_char_1): Modify for new allocation of builtin
2851         Mojikyo characters.
2852
2853         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2854
2855 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2856
2857         * mule-charset.c (Vcharset_ucs_cns): New variable.
2858         (Qucs_cns): New variable.
2859         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2860         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2861
2862 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2863
2864         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2865
2866 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2867
2868         * search.c (search_buffer): Make `charset_base_code' as
2869         character-id >> 6 to eliminate the corresponding last byte in
2870         UTF-8 representation [I'm not sure it is right thing].
2871         (boyer_moore): Likewise.
2872
2873 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2874
2875         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2876         representation in MULE.
2877
2878 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2879
2880         * text-coding.c (Fmake_coding_system): Use
2881         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2882         `EXTERNAL_PROPERTY_LIST_LOOP'.
2883
2884 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2885
2886         * text-coding.c (decode_output_utf8_partial_char): New function.
2887         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2888
2889 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2890
2891         * text-coding.c (decode_coding_utf8): Output original byte
2892         sequence if it is broken; change order of conditions.
2893
2894         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2895         of conditions.
2896
2897         * mb-multibyte.h (BYTE_ASCII_P):
2898         Use bit ops for char-signedness safety.
2899         (BYTE_C0_P): Use bit ops for char-signedness safety.
2900         (BYTE_C1_P): Use bit ops for char-signedness safety.
2901
2902         * character.h: (XCHAR_OR_CHAR_INT):
2903         Always use inline function.
2904         Remove redundant type checking assert() - XINT will abort quite
2905         nicely.
2906
2907 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2908
2909         * text-coding.c: (Fencode_shift_jis_char):
2910         (Fencode_big5_char):
2911         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2912         Replace 0 with '\0' when working with bytes.
2913         Replace initial "(" with "\(" in docstrings.
2914
2915         (Fmake_coding_system):
2916         When type is ccl and value is vector, register it with a proper
2917         symbol.  And checks whether the given ccl program is valid.
2918         (mule_decode): When calling ccl_driver, if src indicates
2919         NULL pointer, set an empty string instead.
2920         (mule_encode): Likewise.
2921
2922         (detect_eol_type):
2923         (detect_coding_sjis):
2924         (decode_coding_sjis):
2925         (detect_coding_big5):
2926         (decode_coding_big5):
2927         (detect_coding_ucs4):
2928         (decode_coding_ucs4):
2929         (detect_coding_utf8):
2930         (decode_coding_utf8):
2931         (detect_coding_iso2022):
2932         (decode_coding_iso2022):
2933         (decode_coding_no_conversion):
2934         (mule_decode):
2935         Make all detecting and decoding functions take an Extbyte * arg.
2936         (text_encode_generic):
2937         (encode_coding_big5):
2938         (encode_coding_no_conversion):
2939         (mule_encode):
2940         Make all encoding functions take a Bufbyte * arg.
2941         Use size_t instead of unsigned int for memory sizes.
2942         Only cast to unsigned char whenever dereferencing Extbyte *.
2943
2944         (struct lrecord_description fcd_description_1): Use countof.
2945         (complex_vars_of_file_coding):
2946         Use countof instead of sizeof.
2947         Use CHECK_NATNUM instead of CHECK_INT.
2948
2949 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2950
2951         * mule-charset.c (Fget_char_attribute): Add new optional argument
2952         `default-value'.
2953         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2954         (remove_char_ccs): Likewise.
2955
2956 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2957
2958         * text-coding.c (char_encode_shift_jis): New implementation in
2959         UTF-2000.
2960         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2961         ...)'.
2962
2963         * mule-charset.c (Vcharset_chinese_big5): New variable in
2964         UTF-2000.
2965         (Qchinese_big5): New variable in UTF-2000.
2966         (BIG5_SAME_ROW): New macro in UTF-2000.
2967         (make_builtin_char): Use builtin characters of
2968         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2969         characters of `Vcharset_chinese_big5'.
2970         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2971         (complex_vars_of_mule_charset): Add new coded-charset
2972         `chinese-big5' in UTF-2000.
2973
2974         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2975         (Vcharset_chinese_big5): New external variable declaration.
2976         (Vcharset_japanese_jisx0208_1990): Likewise.
2977
2978 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2979
2980         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2981         function.
2982         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2983
2984 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2985
2986         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2987         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2988         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2989         `mojikyo-pj-*'.
2990
2991 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2992
2993         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2994
2995 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2996
2997         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2998         to 0.17.
2999
3000 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3001
3002         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3003         for `CHARSET_BY_ATTRIBUTES'.
3004         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3005         `CHARSET_BY_ATTRIBUTES'.
3006
3007         * text-coding.c (struct decoding_stream): Rename member `CH' to
3008         `CPOS'.
3009         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3010         (decode_coding_sjis): Likewise.
3011         (decode_coding_big5): Likewise.
3012         (decode_coding_ucs4): Likewise.
3013         (decode_coding_utf8): Likewise.
3014         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3015         `CHARSET_BY_ATTRIBUTES'.
3016         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3017         `str->counter'; decode 3, 4 bytes sets.
3018         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3019         sets.
3020         (decode_coding_no_conversion): Use `str->cpos' instead of
3021         `str->ch'.
3022
3023         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3024         (Qmojikyo_2022_1): New variable.
3025         (make_charset): Don't use `CHARSET_TYPE_*'.
3026         (range_charset_code_point): Support coded-charset
3027         `mojikyo-2022-1'.
3028         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3029         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3030         `CHARSET_BY_ATTRIBUTES'.
3031         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3032         `CHARSET_BY_ATTRIBUTES'.
3033         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3034         (complex_vars_of_mule_charset): Add new coded-charset
3035         `mojikyo-2022-1'.
3036
3037         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3038         interface; changed to inline function.
3039
3040         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3041         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3042         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3043         (CHARSET_TYPE_94): Deleted.
3044         (CHARSET_TYPE_94X94): Deleted.
3045         (CHARSET_TYPE_96): Deleted.
3046         (CHARSET_TYPE_96X96): Deleted.
3047         (CHARSET_TYPE_128): Deleted.
3048         (CHARSET_TYPE_128X128): Deleted.
3049         (CHARSET_TYPE_256): Deleted.
3050         (CHARSET_TYPE_256X256): Deleted.
3051         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3052         to inline function.
3053         (DECODE_MOJIKYO_2022): New inline function.
3054         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3055         `Vcharset_mojikyo_2022_1'.
3056
3057 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3058
3059         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3060         instead of `EQ'.
3061         (put_byte_table): Likewise.
3062         (char_id_table_equal): Use `get_byte_table' [new implementation].
3063
3064 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3065
3066         * mule-charset.c: Include <limits.h> in UTF-2000.
3067         (BT_UINT8_MIN): New macro in UTF-2000.
3068         (BT_UINT8_MAX): New macro in UTF-2000.
3069         (BT_UINT8_t): New macro in UTF-2000.
3070         (BT_UINT8_nil): New macro in UTF-2000.
3071         (BT_UINT8_unbound): New macro in UTF-2000.
3072         (INT_UINT8_P): New inline function in UTF-2000.
3073         (UINT8_VALUE_P): New inline function in UTF-2000.
3074         (UINT8_ENCODE): New inline function in UTF-2000.
3075         (UINT8_DECODE): New inline function in UTF-2000.
3076         (mark_uint8_byte_table): New function in UTF-2000.
3077         (print_uint8_byte_table): New function in UTF-2000.
3078         (uint8_byte_table_equal): New function in UTF-2000.
3079         (uint8_byte_table_hash): New function in UTF-2000.
3080         (make_uint8_byte_table): New function in UTF-2000.
3081         (uint8_byte_table_same_value_p): New function in UTF-2000.
3082         (BT_UINT16_MIN): New macro in UTF-2000.
3083         (BT_UINT16_MAX): New macro in UTF-2000.
3084         (BT_UINT16_t): New macro in UTF-2000.
3085         (BT_UINT16_nil): New macro in UTF-2000.
3086         (BT_UINT16_unbound): New macro in UTF-2000.
3087         (INT_UINT16_P): New inline function in UTF-2000.
3088         (UINT16_VALUE_P): New inline function in UTF-2000.
3089         (UINT16_ENCODE): New inline function in UTF-2000.
3090         (UINT16_DECODE): New inline function in UTF-2000.
3091         (UINT8_TO_UINT16): New inline function in UTF-2000.
3092         (mark_uint16_byte_table): New function in UTF-2000.
3093         (print_uint16_byte_table): New function in UTF-2000.
3094         (uint16_byte_table_equal): New function in UTF-2000.
3095         (uint16_byte_table_hash): New function in UTF-2000.
3096         (make_uint16_byte_table): New function in UTF-2000.
3097         (uint16_byte_table_same_value_p): New function in UTF-2000.
3098         (print_byte_table): New function in UTF-2000.
3099         (byte-table): Use `print_byte_table' as printer.
3100         (make_byte_table): Delete second argument `older'.
3101         (byte_table_same_value_p): New function in UTF-2000.
3102         (copy_byte_table): Deleted.
3103         (get_byte_table): New function in UTF-2000.
3104         (put_byte_table): New function in UTF-2000.
3105         (print_char_id_table): New function in UTF-2000.
3106         (char-id-table): Use `print_char_id_table' as printer.
3107         (make_char_id_table): Delete second argument `older'.
3108         (get_char_id_table): Use `get_byte_table [new implementation].
3109         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3110         implementation].
3111         (Ffind_char_attribute_table): New function in UTF-2000.
3112         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3113         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3114         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3115         (syms_of_mule_charset): Add new function
3116         `find-char-attribute-table' in UTF-2000.
3117
3118         * lrecord.h (enum lrecord_type): Add
3119         `lrecord_type_uint16_byte_table' and
3120         `lrecord_type_uint8_byte_table'.
3121
3122         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3123         (Lisp_Uint8_Byte_Table): New type.
3124         (XUINT8_BYTE_TABLE): New macro.
3125         (XSETUINT8_BYTE_TABLE): New macro.
3126         (UINT8_BYTE_TABLE_P): New macro.
3127         (GC_UINT8_BYTE_TABLE_P): New macro.
3128         (struct Lisp_Uint16_Byte_Table): New structure.
3129         (Lisp_Uint16_Byte_Table): New type.
3130         (XUINT16_BYTE_TABLE): New macro.
3131         (XSETUINT16_BYTE_TABLE): New macro.
3132         (UINT16_BYTE_TABLE_P): New macro.
3133         (GC_UINT16_BYTE_TABLE_P): New macro.
3134
3135 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3136
3137         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3138         (Vcharacter_ideographic_strokes_table): Deleted.
3139         (Vcharacter_total_strokes_table): Deleted.
3140         (Vcharacter_morohashi_daikanwa_table): Deleted.
3141         (Vcharacter_decomposition_table): Deleted.
3142         (Qname): Deleted because it is duplicated.
3143         (Qideographic_radical): Deleted.
3144         (Qideographic_strokes): Deleted.
3145         (Qtotal_strokes): Deleted.
3146         (Qmorohashi_daikanwa): Deleted.
3147         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3148         `ideographic-radical', `ideographic-strokes', `total-strokes',
3149         `morohashi-daikanwa' and `->decomposition'.
3150         (Fget_char_attribute): Likewise.
3151         (Fput_char_attribute): Likewise; use `make-vector' instead of
3152         `make_older_vector' for `->decomposition' value.
3153         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3154         `ideograph-daikanwa'.
3155         (syms_of_mule_charset): Delete builtin symbols `name',
3156         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3157         `morohashi-daikanwa'.
3158         (vars_of_mule_charset): Don't setup
3159         `Vcharacter_ideographic_radical_table',
3160         `Vcharacter_ideographic_strokes_table',
3161         `Vcharacter_total_strokes_table',
3162         `Vcharacter_morohashi_daikanwa_table' and
3163         `Vcharacter_decomposition_table'.
3164
3165 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3166
3167         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3168         `make_older_vector', `make_vector_newer_1' and
3169         `make_vector_newer'.
3170
3171         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3172         `make_older_vector' and `make_vector_newer'.
3173
3174         * config.h.in (HAVE_GGC): New macro.
3175
3176 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3177
3178         * mule-charset.c (struct char_attribute_list_closure): New
3179         structure in UTF-2000.
3180         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3181         (Fchar_attribute_list): Likewise.
3182         (Fset_charset_mapping_table): Use `make_vector_newer'.
3183         (Fdecode_builtin_char): New function in UTF-2000.
3184         (syms_of_mule_charset): Add new function `char-attribute-list' and
3185         `decode-builtin-char' in UTF-2000.
3186
3187         * lisp.h (make_vector_newer): New prototype.
3188
3189         * alloc.c (make_vector_newer_1): New function.
3190         (make_vector_newer): New function.
3191
3192 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3193
3194         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3195         50100)'.
3196
3197 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3198
3199         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3200         (Vcharacter_attribute_table): Deleted.
3201         (Vcharacter_name_table): Deleted.
3202         (put_char_attribute): Deleted.
3203         (remove_char_attribute): Deleted.
3204         (struct char_attribute_alist_closure): New structure.
3205         (add_char_attribute_alist_mapper): New function.
3206         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3207         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3208         (Fget_char_attribute): Likewise.
3209         (Fput_char_attribute): Likewise.
3210         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3211         of `remove_char_attribute'.
3212         (Fdefine_char): Return character.
3213         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3214         and `Vcharacter_name_table'.
3215         (complex_vars_of_mule_charset): Likewise
3216         `Vchar_attribute_hash_table'.
3217
3218 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3219
3220         * character.h (CHARC_CHARSET): New macro.
3221         (CHARC_CHARSET_ID): New macro.
3222         (CHARC_CODE_POINT): New macro.
3223         (CHARC_COLUMNS): New macro.
3224         (CHARC_TO_CHAR): New inline function.
3225         (CHARC_EQ): New inline function.
3226         (CHARC_ASCII_EQ): New inline function.
3227         (CHARC_IS_SPACE): New inline function.
3228         (ASCII_TO_CHARC): New inline function.
3229
3230         * char-ucs.h (encode_char_2): Deleted.
3231         (ENCODE_CHAR): Use `encode_char_1' again.
3232         (breakup_char_1): Likewise.
3233         (CHAR_TO_CHARC): New inline function.
3234
3235         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3236
3237 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3238
3239         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3240         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3241         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3242         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3243         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3244         `CHARC_IS_SPACE'.
3245         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3246
3247         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3248         `CHARC_CODE_POINT'.
3249         (x_output_display_block): Use `CHARC_CHARSET' and
3250         `CHARC_ASCII_EQ'.
3251
3252         * redisplay-tty.c (tty_output_display_block): Use
3253         `CHARC_ASCII_EQ'.
3254         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3255
3256         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3257
3258         * insdel.c (find_charsets_in_charc_string): Use
3259         `CHARC_CHARSET_ID'.
3260         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3261         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3262         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3263         (convert_charc_string_into_malloced_string): Likewise.
3264
3265 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3266
3267         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3268         instead of <Emchar_dynarr *> for buf; use
3269         `convert_bufbyte_string_into_charc_dynarr' instead of
3270         `convert_bufbyte_string_into_emchar_dynarr'; use
3271         `find_charsets_in_charc_string' instead of
3272         `find_charsets_in_emchar_string'.
3273
3274         * redisplay.h:
3275         - Include "character.h".
3276         (struct rune): New member `cglyph'; delete member `chr'.
3277
3278         * redisplay.c (redisplay_text_width_charc_string): New function;
3279         delete `redisplay_text_width_emchar_string'.
3280         (rtw_charc_dynarr): New variable; renamed from
3281         `rtw_emchar_dynarr'.
3282         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3283         `rtw_emchar_dynarr'; use
3284         `convert_bufbyte_string_into_charc_dynarr' instead of
3285         `convert_bufbyte_string_into_emchar_dynarr'; use
3286         `redisplay_text_width_charc_string' instead of
3287         `redisplay_text_width_emchar_string'.
3288         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3289         instead of `rtw_emchar_dynarr'; use
3290         `convert_bufbyte_string_into_charc_dynarr' instead of
3291         `convert_bufbyte_string_into_emchar_dynarr'.
3292         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3293         `redisplay_text_width_charc_string' instead of
3294         `redisplay_text_width_emchar_string'.
3295         (create_text_block): Modify for <struct rune> change.
3296         (generate_formatted_string_db): Likewise.
3297         (create_string_text_block): Likewise.
3298         (pixel_to_glyph_translation): Likewise.
3299
3300         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3301         instead of <const Emchar *>.
3302         (x_text_width): Likewise.
3303         (x_output_display_block): Use <Charc_dynarr *> instead
3304         <Emchar_dynarr *>; modify for <structure rune> change.
3305         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3306         *>.
3307
3308         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3309         <const Emchar *>; use `charc_string_displayed_columns' instead of
3310         `emchar_string_displayed_columns'.
3311         (tty_output_display_block): Use <Charc_dynarr *> instead of
3312         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3313         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3314         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3315         `tty_output_emchar_dynarr_dynarr'.
3316         (tty_output_charc_dynarr): New function; delete
3317         `tty_output_charc_dynarr'.
3318
3319         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3320         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3321         <Emchar_dynarr *> for buf; use
3322         `convert_bufbyte_string_into_charc_dynarr' instead of
3323         `convert_bufbyte_string_into_emchar_dynarr'.
3324
3325         * frame.c (title_string_charc_dynarr): New variable; renamed from
3326         `title_string_emchar_dynarr'.
3327         (generate_title_string): Use `title_string_charc_dynarr' instead
3328         of `title_string_emchar_dynarr'; use
3329         `convert_charc_string_into_malloced_string' instead of
3330         `convert_emchar_string_into_malloced_string'.
3331         (init_frame): Use `title_string_charc_dynarr' instead of
3332         `title_string_emchar_dynarr'.
3333
3334         * console.h:
3335         - Include "character.h".
3336         (struct console_methods): Use <const Charc *> instead of <const
3337         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3338         <Emchar_dynarr *> in output_string_method.
3339
3340         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3341         <Emchar_dynarr *>.
3342
3343         * console-stream.c (stream_text_width): Use <const Charc *>
3344         instead of <const Emchar *>.
3345
3346         * character.h (Charc_dynarr): New type.
3347
3348         * char-ucs.h (structure Charc): New structure; define new type
3349         `Charc'.
3350
3351         * char-lb.h (DECODE_CHAR): New inline function.
3352         (encode_char_1): New inline function.
3353         (ENCODE_CHAR): New macro.
3354         (structure Charc): New structure; define new type `Charc'.
3355
3356         * char-1byte.h (Vcharset_control_1): New macro.
3357         (Vcharset_latin_iso8859_1): New macro.
3358         (DECODE_CHAR): New inline function.
3359         (encode_char_1): New inline function.
3360         (ENCODE_CHAR): New macro.
3361         (structure Charc): New structure; define new type `Charc'.
3362
3363         * insdel.c (find_charsets_in_charc_string): New function; delete
3364         `find_charsets_in_emchar_string'.
3365         (charc_string_displayed_columns): New function; delete
3366         `emchar_string_displayed_columns'.
3367         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3368         `convert_bufbyte_string_into_emchar_dynarr'.
3369         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3370         `convert_charc_string_into_bufbyte_dynarr'.
3371         (convert_charc_string_into_malloced_string): New function; delete
3372         `convert_charc_string_into_malloced_string'.
3373
3374         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3375         `find_charsets_in_emchar_string'.
3376         (charc_string_displayed_columns): New prototype; delete
3377         `emchar_string_displayed_columns'.
3378         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3379         `convert_charc_string_into_bufbyte_dynarr'.
3380         (convert_charc_string_into_malloced_string): New prototype; delete
3381         `convert_charc_string_into_malloced_string'.
3382
3383 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3384
3385         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3386
3387 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3388
3389         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3390
3391         * char-ucs.h: Use <short> for <Charset_ID>.
3392
3393         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3394         <Charset_ID>.
3395
3396 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3397
3398         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3399         to 0.16.
3400
3401 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3402
3403         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3404         variable.
3405         (Qmorohashi_daikanwa): New variable.
3406         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3407         for `morohashi-daikanwa' attribute.
3408         (Fget_char_attribute): Likewise.
3409         (Fput_char_attribute): Likewise.
3410         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3411         has the same value of `ideograph-daikanwa'.
3412         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3413         (vars_of_mule_charset): Setup
3414         `Vcharacter_morohashi_daikanwa_table'.
3415
3416 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3417
3418         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3419         attributes.
3420         (add_charset_to_list_mapper): Add `key' instead of
3421         `XCHARSET_NAME (value)' to return aliases.
3422
3423 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3424
3425         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3426         variable.
3427         (Vcharacter_ideographic_strokes_table): New variable.
3428         (Qideographic_radical): New variable.
3429         (Qideographic_strokes): New variable.
3430         (Fchar_attribute_alist): Use
3431         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3432         attribute; use `Vcharacter_ideographic_strokes_table' for
3433         `ideographic-strokes' attribute.
3434         (Fget_char_attribute): Likewise.
3435         (Fput_char_attribute): Likewise.
3436         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3437         `ideographic-strokes'.
3438         (vars_of_mule_charset): Setup
3439         `Vcharacter_ideographic_radical_table' and
3440         `Vcharacter_ideographic_strokes_table'.
3441
3442 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3443
3444         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3445         (Qtotal_strokes): New variable.
3446         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3447         `total-strokes' attribute.
3448         (Fget_char_attribute): Likewise.
3449         (Fput_char_attribute): Likewise.
3450         (syms_of_mule_charset): Add new symbol `total-strokes'.
3451         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3452
3453 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3454
3455         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3456         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3457         are found.
3458         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3459         `->decomposition' attribute.
3460         (Fput_char_attribute): Likewise.
3461         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3462
3463 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3464
3465         * mule-charset.c (decoding_table_check_elements): New function.
3466         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3467
3468 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3469
3470         * mule-charset.c (Fset_charset_mapping_table): Use
3471         `put_char_ccs_code_point'.
3472
3473 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3474
3475         * mule-charset.c (decoding_table_put_char): New inline function.
3476         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3477
3478 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3479
3480         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3481         (XCHARSET_BYTE_SIZE): New macro.
3482         (decoding_table_remove_char): New inline function.
3483         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3484         `decoding_table_remove_char'.
3485         (remove_char_ccs): Use `decoding_table_remove_char'.
3486         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3487
3488 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3489
3490         * mule-charset.c (Vcharacter_name_table): New variable.
3491         (Qname): New variable.
3492         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3493         attribute.
3494         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3495         `Vcharacter_name_table' for `name' attribute.
3496         (Fremove_char_attribute): Use function `remove_char_ccs'.
3497         (put_char_ccs_code_point): New function.
3498         (remove_char_ccs): New function.
3499         (syms_of_mule_charset): Add new symbol `name'.
3500         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3501
3502 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3503
3504         * mule-charset.c (make_byte_table): Add new argument `older'.
3505         (make_char_id_table): Likewise.
3506         (copy_char_id_table): Comment out because it is not used.
3507         (put_char_id_table): Modify for `make_byte_table'.
3508         (Fput_char_attribute): Make encoding_table as older object;
3509         inherit older bit of `Vcharacter_composition_table'.
3510         (mark_charset): Don't mark `cs->encoding_table'.
3511         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3512         normal object; make `Vcharacter_composition_table' as an older
3513         object; delete staticpro for `Vcharacter_composition_table'; make
3514         `Vcharacter_variant_table' as a normal object.
3515
3516         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3517         (mark_object): Don't check older object in UTF-2000.
3518
3519         * lrecord.h (struct lrecord_header): Add new member `older' in
3520         UTF-2000.
3521         (set_lheader_implementation): Setup `SLI_header->older' in
3522         UTF-2000.
3523         (set_lheader_older_implementation): New macro in UTF-2000.
3524         (OLDER_RECORD_P): New macro in UTF-2000.
3525         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3526         (alloc_older_lcrecord): New prototype in UTF-2000.
3527         (alloc_older_lcrecord_type): New macro in UTF-2000.
3528
3529 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3530
3531         * mule-charset.c (byte_table_description): Use
3532         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3533         (char_id_table_description): Delete bogus `, 1'.
3534         (Fget_char_attribute): Refer encoding_table of each coded-charset
3535         to get value of coded-charset attribute of a character.
3536         (Fput_char_attribute): Use `make_older_vector' instead of
3537         `make_vector'; use encoding_table of each coded-charset to store
3538         value of coded-charset attribute of a character.
3539         (Fremove_char_attribute): Use encoding_table of each coded-charset
3540         to store value of coded-charset attribute of a character.
3541         (mark_charset): Mark `cs->encoding_table'; don't mark
3542         `cs->decoding_table'.
3543         (charset_description): Add description of new member
3544         `encoding_table'.
3545         (make_charset): Initialize `encoding_table'.
3546
3547         * char-ucs.h (struct Lisp_Charset): Add new member
3548         `encoding_table'.
3549         (CHARSET_ENCODING_TABLE): New macro.
3550         (XCHARSET_ENCODING_TABLE): New macro.
3551         (charset_code_point): New implementation.
3552         (encode_char_1): Likewise.
3553
3554         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3555         (disksave_object_finalization_1): Call finalizers of
3556         `all_older_lcrecords' in UTF-2000.
3557         (make_older_vector): New function in UTF-2000.
3558         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3559         UTF-2000.
3560
3561         * lisp.h (make_older_vector): New prototype in UTF-2000.
3562
3563 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3564
3565         * lrecord.h (enum lrecord_type): Rename
3566         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3567
3568         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3569         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3570         `get_char_code_table'.
3571
3572         * mule-charset.c (mark_char_id_table): Renamed from
3573         `mark_char_code_table'.
3574         (char_id_table_equal): Renamed from `char_code_table_equal'.
3575         (char_id_table_hash): Renamed from `char_code_table_hash'.
3576         (make_char_id_table): Renamed from `make_char_code_table'.
3577         (copy_char_id_table): Renamed from `copy_char_code_table'.
3578         (get_char_id_table): Renamed from `get_char_code_table'.
3579         (put_char_id_table): Renamed from `put_char_code_table'.
3580         (to_char_id): Renamed from `to_char_code'.
3581
3582         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3583         `Lisp_Char_Code_Table'.
3584         (char_id_table): Renamed from `char_code_table'.
3585         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3586         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3587         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3588         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3589         (get_char_id_table): Renamed from `get_char_code_table'.
3590
3591 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3592
3593         * lrecord.h (enum lrecord_type): Rename
3594         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3595
3596         * mule-charset.c (mark_byte_table): Renamed from
3597         `mark_char_byte_table'.
3598         (byte_table_equal): Renamed from `char_byte_table_equal'.
3599         (byte_table_hash): Renamed from `byte_table_hash'.
3600         (make_byte_table): Renamed from `make_byte_table'.
3601         (copy_byte_table): Renamed from `copy_char_byte_table'.
3602
3603         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3604         `Lisp_Char_Byte_Table'.
3605         (byte_table): Renamed from `char_byte_table'.
3606         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3607         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3608         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3609         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3610
3611 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3612
3613         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3614         (dfc_convert_to_internal_format): Likewise.
3615         
3616         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3617         * text-coding.c (Fcoding_system_alias_p): New function.
3618         * text-coding.c (Fcoding_system_aliasee): New function.
3619         * text-coding.c (append_suffix_to_symbol): New function.
3620         * text-coding.c (dangling_coding_system_alias_p): New function.
3621         * text-coding.c (Ffind_coding_system):
3622         * text-coding.c (Fcopy_coding_system):
3623         * text-coding.c (encode_coding_no_conversion):
3624         * text-coding.c (syms_of_file_coding):
3625         * text-coding.c (vars_of_file_coding):
3626         Rewrite coding system alias code.
3627         Allow nested aliases, like symbolic links.
3628         Allow redefinition of coding system aliases.
3629         Prevent existence of dangling coding system aliases.
3630         Eliminate convert_to_external_format.
3631         Eliminate convert_to_internal_format.
3632         
3633         * text-coding.c: Change enum eol_type to eol_type_t.
3634
3635 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3636
3637         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3638         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3639
3640         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3641         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3642
3643 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3644
3645         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3646         `ideograph-daikanwa'.
3647
3648         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3649         (Vcharset_ucs_bmp): Likewise.
3650         (Vcharset_mojikyo): Add new extern variable definition.
3651         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3652         (Vcharset_latin_iso8859_3): Likewise.
3653         (Vcharset_latin_iso8859_4): Likewise.
3654         (Vcharset_latin_iso8859_9): Likewise.
3655         (Vcharset_latin_viscii_lower): Likewise.
3656         (Vcharset_latin_viscii_upper): Likewise.
3657         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3658         `mojikyo' code-point is used to decode.
3659         (encode_char_2): New function [to convert `mojikyo' code-point to
3660         Mojikyo font encoding].
3661         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3662         (breakup_char_1): Likewise.
3663         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3664
3665 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3666
3667         * text-coding.c (Fmake_coding_system): Add document about
3668         `disable-composition' property.
3669
3670 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3671
3672         * text-coding.c (Qdisable_composition): New variable; delete
3673         `Qcomposite'.
3674         (Fmake_coding_system): Add new property `disable-composite';
3675         delete property `composite'.
3676         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3677         instead of `!CODING_SYSTEM_COMPOSITE'.
3678         (syms_of_file_coding): Add new symbol `disable-composition';
3679         delete symbol `composite'.
3680
3681         * file-coding.h (struct Lisp_Coding_System): Add
3682         `disable_composition'; delete `enable_composition'.
3683         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3684         `CODING_SYSTEM_COMPOSITE'.
3685         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3686         `XCODING_SYSTEM_COMPOSITE'.
3687
3688 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3689
3690         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3691         to 0.15.
3692
3693 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3694
3695         * text-coding.c (Qcomposite): New variable.
3696         (Fmake_coding_system): Add new property `composite'.
3697         (struct decoding_stream): Add `combined_char_count',
3698         `combined_chars' and `combining_table' in UTF-2000.
3699         (COMPOSE_FLUSH_CHARS): New macro.
3700         (COMPOSE_ADD_CHAR): New macro.
3701         (reset_decoding_stream): Reset `str->combined_char_count' and
3702         `str->combining_table' in UTF-2000.
3703         (decode_coding_iso2022): Modify for character-decomposition.
3704         (syms_of_file_coding): Add new symbol `composite'.
3705
3706 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3707
3708         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3709         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3710         of `Vcharacter_composition_table' if `->decomposition' property
3711         has only 1 element.
3712         (Qlatin_tcvn5712): New variable.
3713         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3714         (complex_vars_of_mule_charset): Add new coded-charset
3715         `latin-tcvn5712'.
3716
3717         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3718
3719 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3720
3721         * file-coding.h (struct Lisp_Coding_System): Add
3722         `enable_composition'.
3723         (CODING_SYSTEM_COMPOSITE): New macro.
3724         (XCODING_SYSTEM_COMPOSITE): New macro.
3725
3726 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3727
3728         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3729
3730 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3731
3732         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3733         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3734
3735 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3736
3737         * mule-charset.c (Vcharset_mojikyo): New variable.
3738         (Fdefine_char): Don't use coded-charset which does not have
3739         non-builtin character range to allocate character-id.
3740         (Qmojikyo): New variable.
3741         (syms_of_mule_charset): Add new symbol `mojikyo'.
3742         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3743
3744         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3745         (LEADING_BYTE_MOJIKYO): New macro.
3746         (MIN_CHAR_MOJIKYO): New macro.
3747         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3748         (MAX_CHAR_MOJIKYO): New macro.
3749
3750 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3751
3752         * mule-charset.c (remove_char_attribute): Fixed.
3753
3754 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3755
3756         * mule-charset.c (remove_char_attribute): New function.
3757         (Fremove_char_attribute): New function.
3758         (encode_builtin_char_1): Comment out builtin-support for
3759         greek-iso8859-7 and cyrillic-iso8859-5.
3760         (Fdecode_char): Check `code' is an integer.
3761         (syms_of_mule_charset): Add `remove-char-attribute'.
3762         (MIN_CHAR_GREEK): Deleted.
3763         (MAX_CHAR_GREEK): Likewise.
3764         (MIN_CHAR_CYRILLIC): Likewise.
3765         (MAX_CHAR_CYRILLIC): Likewise.
3766         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3767         MAX_CHAR_GREEK for `greek-iso8859-7'.
3768
3769         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3770         (MAX_CHAR_GREEK): Likewise.
3771         (MIN_CHAR_CYRILLIC): Likewise.
3772         (MAX_CHAR_CYRILLIC): Likewise.
3773
3774 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3775
3776         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3777         format is used without `ucs' property.
3778         (Fdecode_char): Fix problem with GR representation.
3779         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3780         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3781
3782 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3783
3784         * mule-charset.c (make_builtin_char): New function.
3785         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3786         (Fset_charset_mapping_table): Modify for new representation of
3787         code-point.
3788         (Fdecode_char): New function.
3789         (syms_of_mule_charset): Add new builtin function `decode-char' in
3790         UTF-2000.
3791
3792         * char-ucs.h (make_builtin_char): New prototype.
3793         (DECODE_CHAR): New inline function.
3794         (MAKE_CHAR): Use `DECODE_CHAR'.
3795
3796 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3797
3798         * text-coding.c (parse_charset_conversion_specs): Use
3799         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3800         `XCHARSET_TYPE'.
3801         (iso2022_designate): Likewise.
3802
3803         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3804         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3805
3806         * mule-charset.c (Vcharset_ucs): New variable.
3807         (print_charset): Change design; use `CHARSET_CHARS' and
3808         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3809         (make_charset): Change signature to specify `chars' and
3810         `dimension' instead of `type'.
3811         (range_charset_code_point): Modify for 256^n-set.
3812         (encode_builtin_char_1): Encode as `ucs' in default.
3813         (Fmake_charset): Modify for `make_charset'.
3814         (Fmake_reverse_direction_charset): Likewise.
3815         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3816         UTF-2000.
3817         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3818         for `make_charset'.
3819
3820         * char-ucs.h (Vcharset_ucs): New variable.
3821         (LEADING_BYTE_UCS): New macro.
3822         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3823         and `chars' to `unsigned short' from `unsigned int'.
3824         (CHARSET_TYPE): Deleted.
3825         (XCHARSET_TYPE): Deleted.
3826
3827 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3828
3829         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3830
3831         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3832         (ENCODE_CHAR): New macro.
3833
3834 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3835
3836         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3837         to 0.14 (Kawachi-Katakami).
3838
3839 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3840
3841         * text-coding.c (char_encode_shift_jis): Modify for
3842         `charset_code_point'.
3843         (char_encode_iso2022): Likewise.
3844
3845         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3846         (integer) instead of list of <Lisp_Object>s (integers) as the
3847         format of code-point of a coded-charset.
3848         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3849         (encode_builtin_char_1): New function; delete
3850         `split_builtin_char'.
3851         (charset_code_point): Return <int> instead of <Lisp_Object>.
3852         (Fsplit_char): Don't use `SPLIT_CHAR'.
3853
3854         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3855         prototype for `split_builtin_char'.
3856         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3857         (charset_code_point): Likewise.
3858         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3859         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3860
3861 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3862
3863         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3864         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3865
3866 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3867
3868         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3869
3870         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3871         (MAX_CHAR_OBS_94x94): Deleted.
3872
3873 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3874
3875         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3876
3877         * char-ucs.h (MAX_CHAR_BMP): New macro.
3878
3879 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3880
3881         * text-coding.c: Sync with r21-2-24.
3882
3883 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3884
3885         * file-coding.c: Modify for UTF-2000.
3886
3887 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3888
3889         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3890         to 0.13 (Takaida).
3891
3892 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3893
3894         * mule-charset.c (split_builtin_char): Delete builtin support for
3895         `katakana-jisx0201'.
3896         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3897         BMP area in builtin representation.
3898
3899         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3900         `Vcharset_katakana_jisx0201'.
3901
3902 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3903
3904         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3905         (Qisolated): New variable.
3906         (Qinitial): New variable.
3907         (Qmedial): New variable.
3908         (Qfinal): New variable.
3909         (Qvertical): New variable.
3910         (Qsmall): New variable.
3911         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3912         `Qvertical' and `Qsmall'.
3913         (Qmojikyo_pj_[1 .. 21]): New variable.
3914         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3915         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3916         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3917         .. 21]'.
3918
3919 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3920
3921         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3922         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3923         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3924
3925 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3926
3927         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3928         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3929         BMP.
3930         (Qjapanese_jisx0208_1990): New variable.
3931         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3932         (complex_vars_of_mule_charset): Add new coded-charset
3933         `japanese-jisx0208-1990'.
3934
3935         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3936         (MIN_CHAR_JIS_X0208_1990): New macro.
3937         (MAX_CHAR_JIS_X0208_1990): New macro.
3938
3939 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3940
3941         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3942         coded-charset is not found.
3943
3944 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3945
3946         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3947         (Fdefine_char): Use `Fmake_char'.
3948
3949 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3950
3951         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3952         (Vcharset_hiragana_jisx0208): Deleted.
3953         (Vcharset_katakana_jisx0208): Deleted.
3954         (Qideograph_daikanwa): New variable.
3955         (Qhiragana_jisx0208): Deleted.
3956         (Qkatakana_jisx0208): Deleted.
3957         (split_builtin_char): Split `ideograph-daikanwa'.
3958         (Fsplit_char): New implementation for UTF-2000.
3959         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3960         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3961         (complex_vars_of_mule_charset): Add new coded-charset
3962         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3963         `katakana-jisx0208'.
3964
3965         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3966         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3967         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3968         (MIN_CHAR_DAIKANWA): New macro.
3969         (MAX_CHAR_DAIKANWA): New macro.
3970
3971 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3972
3973         * data.c (Fstring_to_number): Don't recognize floating point if
3974         base is not 10.
3975
3976 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3977
3978         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3979
3980 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3981
3982         * mule-charset.c (Qsquare): New variable.
3983         (to_char_code): Add `Qsquare'.
3984         (syms_of_mule_charset): Add new symbol `square'.
3985
3986 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3987
3988         * mule-charset.c (Qcircle): New variable.
3989         (to_char_code): Add `Qcircle'.
3990         (syms_of_mule_charset): Add new symbol `circle'.
3991
3992 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3993
3994         * mule-charset.c (Qfont): New variable.
3995         (to_char_code): Add `Qfont'.
3996         (syms_of_mule_charset): Add new symbol `font'.
3997
3998 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3999
4000         * mule-charset.c (Qsub): New variable.
4001         (to_char_code): Add `Qsub'.
4002         (syms_of_mule_charset): Add new symbol `sub'.
4003
4004 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4005
4006         * mule-charset.c (Fput_char_attribute): Convert each element of
4007         VALUE to GL position if ATTRIBUTE is a GR-set,
4008
4009 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4010
4011         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4012         coded-charset is a GR-set.
4013
4014 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4015
4016         * mule-charset.c (Fput_char_attribute): Check each element of
4017         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4018
4019 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4020
4021         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4022         UTF-2000.
4023         (Qethiopic_ucs): New variable in UTF-2000.
4024         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4025         (complex_vars_of_mule_charset): Add new coded-charset
4026         `ethiopic-ucs' in UTF-2000.
4027
4028         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4029         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4030         9)'.
4031         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4032         10)'.
4033         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4034
4035 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4036
4037         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4038         `ascii'.
4039
4040 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4041
4042         * mule-charset.c (Vcharacter_variant_table): New variable.
4043         (Q_ucs): New variable.
4044         (Fchar_variants): New function.
4045         (Fput_char_attribute): Register `->ucs' value to
4046         `Vcharacter_variant_table'.
4047         (syms_of_mule_charset): Add new function `char-variants' and new
4048         symbol `->ucs'.
4049         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4050
4051 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4052
4053         * mule-charset.c (get_char_code_table): Allow negative character
4054         code.
4055         (put_char_code_table): Likewise.
4056         (Vcharacter_composition_table): New variable.
4057         (Q_decomposition): New variable.
4058         (Qwide): New variable.
4059         (Qnarrow): New variable.
4060         (Qcompat): New variable.
4061         (QnoBreak): New variable.
4062         (Qsuper): New variable.
4063         (Qfraction): New variable.
4064         (to_char_code): New function.
4065         (Fget_composite_char): New function.
4066         (Fput_char_attribute): Register `->decomposition' value to
4067         `Vcharacter_composition_table'.
4068         (syms_of_mule_charset): Add new function `get-composite-char', new
4069         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4070         `super' and `fraction'.
4071         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4072
4073 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4074
4075         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4076         character; copy the return value.
4077
4078 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4079
4080         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4081
4082         * mule-charset.c (range_charset_code_point): Must use make_int.
4083         (split_builtin_char): New function.
4084
4085 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4086
4087         * mule-charset.c (char_byte_table): Change name from
4088         "char-code-table" to "char-byte-table".
4089         (mark_char_code_table): New function.
4090         (char_code_table_equal): New function.
4091         (char_code_table_hash): New function.
4092         (char_code_table_description): New constant.
4093         (char_code_table): New type.
4094         (make_char_code_table): New function.
4095         (copy_char_code_table): New function.
4096         (get_char_code_table): Modify for `char_code_table' type.
4097         (put_char_code_table): Likewise.
4098         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4099         (Kashiwara).
4100
4101         * char-ucs.h (char_code_table): New type.
4102         (XCHAR_CODE_TABLE): New macro.
4103         (XSETCHAR_CODE_TABLE): New macro.
4104         (CHAR_CODE_TABLE_P): New macro.
4105         (GC_CHAR_CODE_TABLE_P): New macro.
4106         (struct Lisp_Char_Code_Table): New structure.
4107
4108 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4109
4110         * mule-charset.c (Fmake_charset): Setup byte_offset for
4111         {94|96}^n-set.
4112
4113 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4114
4115         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4116         character.
4117
4118 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4119
4120         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4121         is found.
4122
4123 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4124
4125         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4126         charset, it is regarded as a charset.
4127         (put_char_attribute): New function in UTF-2000.
4128         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4129         charset, mapping-table of the charset is modified.
4130         (Fdefine_char): New function in UTF-2000.
4131         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4132         `Fput_char_attribute'.
4133         (syms_of_mule_charset): Add new function `define-char' and new
4134         symbol `ucs' in UTF-2000.
4135         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4136
4137 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4138
4139         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4140         non-UTF-2000 configuration.
4141
4142 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4143
4144         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4145         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4146
4147         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4148         deleted.
4149         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4150         (Fset_charset_mapping_table): Likewise.
4151
4152         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4153         (CHARSET_ENCODING_TABLE): Delete.
4154         (XCHARSET_ENCODING_TABLE): Delete.
4155         (charset_code_point): New interface.
4156
4157 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4158
4159         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4160         instead of `charset_get_byte1' and `charset_get_byte2'.
4161
4162         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4163         (charset_get_byte2): Deleted.
4164
4165 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4166
4167         * char-ucs.h (SPLIT_CHAR): New inline function.
4168         (breakup_char_1): Use `SPLIT_CHAR'.
4169
4170         * mule-charset.c (range_charset_code_point): New function.
4171         (charset_code_point): New function.
4172
4173         * char-ucs.h (range_charset_code_point): New interface.
4174         (breakup_char_1): Use `range_charset_code_point'.
4175
4176 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4177
4178         * mule-charset.c (Fmake_charset): Delete unused local variable
4179         `code_offset'.
4180
4181         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4182         (breakup_char_1): Find a charset and code-point in
4183         `Vcharacter_attribute_table'.
4184
4185 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4186
4187         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4188         to 0.10 (Yao).
4189
4190 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4191
4192         * mule-charset.c (Vcharacter_attribute_table): New variable.
4193         (Fchar_attribute_alist): New function.
4194         (Fget_char_attribute): New function.
4195         (Fput_char_attribute): New function.
4196         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4197         too.
4198         (syms_of_mule_charset): Add new function `char-attribute-alist',
4199         `get-char-attribute' and `put-char-attribute'.
4200         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4201
4202 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4203
4204         * mule-charset.c (Fmake_charset): Just use
4205         `get_unallocated_leading_byte'.
4206
4207         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4208         sets; don't use final-byte based number for private sets.
4209
4210 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4211
4212         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4213         integer.
4214
4215 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4216
4217         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4218         to 0.9.
4219
4220 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4221
4222         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4223         of `CHAR_LEADING_BYTE' in UTF-2000.
4224
4225         * insdel.c (find_charsets_in_bufbyte_string): Use
4226         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4227         (find_charsets_in_emchar_string): Likewise.
4228
4229         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4230         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4231
4232         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4233         (CHAR_CHARSET_ID): New macro.
4234
4235 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4236
4237         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4238         charset-id - MIN_LEADING_BYTE.
4239         (put_char_table): Likewise.
4240
4241 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4242
4243         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4244         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4245         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4246         (CHARSET_ID_OFFSET): New macro.
4247         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4248         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4249         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4250         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4251         4).
4252         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4253         5).
4254         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4255         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4256         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4257         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4258         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4259
4260 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4261
4262         * mule-charset.c (next_allocated_leading_byte): New variable in
4263         UTF-2000.
4264         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4265         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4266         (get_unallocated_leading_byte): Simply use
4267         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4268         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4269         UTF-2000.
4270
4271         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4272         (MAX_LEADING_BYTE_PRIVATE): New macro.
4273         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4274         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4275
4276 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4277
4278         * mule-charset.c (Fmake_charset): Allocate final-byte based
4279         charset-id for 94-set, 96-set and 94x94-set.
4280
4281 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4282
4283         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4284         ambiguous `else'.
4285         (Fmake_charset): Likewise.
4286         (complex_vars_of_mule_charset): Modify the font registry of
4287         `ucs-bmp' not to match `Ethiopic-Unicode'.
4288
4289 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4290
4291         * mule-charset.c (complex_vars_of_mule_charset): Add font
4292         registory of `ucs-bmp'.
4293
4294 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4295
4296         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4297         coded-charsets in `default-coded-charset-priority-list' when
4298         breaking up a character.
4299
4300         * mule-charset.c (Vcharset_latin_viscii): New variable.
4301         (Qlatin_viscii): New variable.
4302         (make_charset): Don't use `decoding_table'.
4303         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4304         byte_offset.
4305         (Fset_charset_mapping_table): New implementation.
4306         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4307         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4308         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4309         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4310         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4311         charset `latin_viscii'.
4312
4313         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4314         (CHARSET_TYPE_94X94): Change to 1 from 2.
4315         (CHARSET_TYPE_96): Change to 2 from 1.
4316         (CHARSET_TYPE_128): New macro.
4317         (CHARSET_TYPE_128X128): Change to 5 from 4.
4318         (CHARSET_TYPE_256): New macro.
4319         (CHARSET_TYPE_256X256): Change to 7 from 5.
4320         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4321
4322 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4323
4324         * text-coding.c (char_encode_shift_jis): Refer
4325         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4326         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4327
4328         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4329         (char_byte_table_equal): New function in UTF-2000.
4330         (char_byte_table_hash): New function in UTF-2000.
4331         (char_byte_table_description): New constant in UTF-2000.
4332         (char_byte_table): New type in UTF-2000.
4333         (make_char_byte_table): New function in UTF-2000.
4334         (copy_char_byte_table): New function in UTF-2000.
4335         (make_char_code_table): New macro in UTF-2000.
4336         (get_char_code_table): New function in UTF-2000.
4337         (put_char_code_table): New function in UTF-2000.
4338         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4339         (charset_description): Add setting in UTF-2000.
4340         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4341         `CHARSET_TO_BYTE1_TABLE(cs)'.
4342         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4343         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4344         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4345         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4346         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4347         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4348         `CHARSET_TO_BYTE2_TABLE(cs)'.
4349
4350         * char-ucs.h (char_byte_table): New type.
4351         (XCHAR_BYTE_TABLE): New macro.
4352         (XSETCHAR_BYTE_TABLE): New macro.
4353         (CHAR_BYTE_TABLE_P): New macro.
4354         (GC_CHAR_BYTE_TABLE_P): New macro.
4355         (struct Lisp_Char_Byte_Table): New structure.
4356         (get_char_code_table): New interface.
4357         (Emchar_to_byte_table): Deleted.
4358         (get_byte_from_character_table): Deleted.
4359         (struct Lisp_Charset): Add `encoding_table'; delete
4360         `to_byte1_table' and `to_byte2_table'.
4361         (CHARSET_ENCODING_TABLE): New macro.
4362         (CHARSET_TO_BYTE1_TABLE): Deleted.
4363         (CHARSET_TO_BYTE2_TABLE): Deleted.
4364         (XCHARSET_ENCODING_TABLE): New macro.
4365         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4366         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4367
4368 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4369
4370         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4371         `vietnamese-viscii-*'.
4372
4373 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4374
4375         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4376         (Qvietnamese_viscii_upper): New variable.
4377         (Fdefine_charset_alias): New function.
4378         (syms_of_mule_charset): Add new function `define-charset-alias'.
4379         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4380         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4381         `latin-viscii-*'.
4382
4383 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4384
4385         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4386         (MAX_CHAR_OBS_94x94): New macro.
4387         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4388         for 94x94 sets.
4389
4390         * mule-charset.c (put_byte_from_character_table): Change unit size
4391         from 128 to 256.
4392         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4393         not defined.
4394         (Fmake_reverse_direction_charset): Modify dummy argument of
4395         `make_charset' for non-UTF-2000 environment.
4396
4397 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4398
4399         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4400
4401         * mule-charset.c (destroy_byte_from_character_table): New macro.
4402         (latin_jisx0201_to_ucs): Deleted.
4403         (latin_iso8859_2_to_ucs): Deleted.
4404         (latin_iso8859_3_to_ucs): Deleted.
4405         (latin_iso8859_4_to_ucs): Deleted.
4406         (latin_iso8859_9_to_ucs): Deleted.
4407         (latin_viscii_lower_to_ucs): Deleted.
4408         (latin_viscii_upper_to_ucs): Deleted.
4409         (mark_charset): Mark `cs->decoding_table'.
4410         (Fcharset_mapping_table): Fix DOC-string.
4411         (Fset_charset_mapping_table): New function.
4412         (syms_of_mule_charset): Add nwe function
4413         `set-charset-mapping-table'.
4414         (complex_vars_of_mule_charset): Don't setup and use
4415         `latin_*_to_ucs'.
4416
4417 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4418
4419         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4420         charset.
4421
4422 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4423
4424         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4425         (Vcharset_katakana_jisx0208): New variable.
4426         (Qhiragana_jisx0208): New variable.
4427         (Qkatakana_jisx0208): New variable.
4428         (make_charset): Add new argument `byte_offset'.
4429         (charset_get_byte1): Modify for new coded-charset definition; use
4430         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4431         `XCHARSET_BYTE_OFFSET'.
4432         (Fmake_charset): Modify for `make_charset'.
4433         (Fmake_reverse_direction_charset): Likewise.
4434         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4435         `katakana-jisx0208'.
4436         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4437         `.'  in font registry of charset `katakana-jisx0201',
4438         `latin-jisx0201', `vietnamese-viscii-lower' and
4439         `vietnamese-viscii-upper'; modify DOC-string of charset
4440         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4441         registry of charset `japanese-jisx0208' not to use font for JIS
4442         X0208:1990; add new charset `hiragana-jisx0208' and
4443         `katakana-jisx0208'.
4444
4445         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4446         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4447         (struct Lisp_Charset): Add `byte_offset'.
4448         (CHARSET_BYTE_OFFSET): New macro.
4449         (XCHARSET_UCS_MIN): New macro.
4450         (XCHARSET_UCS_MAX): New macro.
4451         (XCHARSET_CODE_OFFSET): New macro.
4452         (XCHARSET_BYTE_OFFSET): New macro.
4453         (MIN_CHAR_HIRAGANA): New macro.
4454         (MAX_CHAR_HIRAGANA): New macro.
4455         (MIN_CHAR_KATAKANA): New macro.
4456         (MAX_CHAR_KATAKANA): New macro.
4457         (MAKE_CHAR): Modify for new coded-charset definition; use
4458         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4459         `XCHARSET_BYTE_OFFSET'.
4460
4461 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4462
4463         * mule-charset.c (CHAR96): Deleted.
4464         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4465         <Lisp_Object>.
4466         (latin_iso8859_2_to_ucs): Likewise.
4467         (latin_iso8859_3_to_ucs): Likewise.
4468         (latin_iso8859_4_to_ucs): Likewise.
4469         (latin_iso8859_9_to_ucs): Likewise.
4470         (latin_viscii_lower_to_ucs): Likewise.
4471         (latin_viscii_upper_to_ucs): Likewise.
4472         (latin_tcvn5712_to_ucs): Commented out.
4473         (make_charset): Change type of argument `decoding_table' from
4474         <Emchar*> to <Lisp_Object> [vector of characters].
4475         (Fmake_charset): Modify for `make_charset'.
4476         (Fmake_reverse_direction_charset): Likewise.
4477         (Fcharset_mapping_table): New function in UTF-2000.
4478         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4479         UTF-2000.
4480         (complex_vars_of_mule_charset): Modify for type change of
4481         `*_to_ucs'; modify for `make_charset'.
4482
4483         * char-ucs.h (struct Lisp_Charset): Change type of
4484         `decoding_table' from <Emchar*> to <Lisp_Object>.
4485         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4486
4487 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4488
4489         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4490         error with non-UTF-2000-Mule.
4491
4492 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4493
4494         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4495         in lisp again].
4496         (Vcharset_chinese_cns11643_4): Likewise.
4497         (Vcharset_chinese_cns11643_5): Likewise.
4498         (Vcharset_chinese_cns11643_6): Likewise.
4499         (Vcharset_chinese_cns11643_7): Likewise.
4500         (Qchinese_cns11643_3): Likewise.
4501         (Qchinese_cns11643_4): Likewise.
4502         (Qchinese_cns11643_5): Likewise.
4503         (Qchinese_cns11643_6): Likewise.
4504         (Qchinese_cns11643_7): Likewise.
4505         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4506         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4507         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4508         (complex_vars_of_mule_charset): Likewise.
4509
4510 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4511
4512         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4513         96-set.
4514         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4515         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4516
4517 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4518
4519         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4520         0xFF60.
4521         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4522         (breakup_char_1): Likewise.
4523
4524         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4525         one of them includes the specified character.
4526
4527 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4528
4529         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4530
4531 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4532
4533         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4534
4535 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4536
4537         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4538         definition for non-UTF-2000 Mule.
4539         (latin_iso8859_3_to_ucs): Likewise.
4540         (latin_iso8859_4_to_ucs): Likewise.
4541         (latin_iso8859_9_to_ucs): Likewise.
4542         (latin_jisx0201_to_ucs): Likewise.
4543         (MIN_CHAR_THAI): Likewise.
4544         (MAX_CHAR_THAI): Likewise.
4545         (MIN_CHAR_GREEK): Likewise.
4546         (MAX_CHAR_GREEK): Likewise.
4547         (MIN_CHAR_HEBREW): Likewise.
4548         (MAX_CHAR_HEBREW): Likewise.
4549         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4550         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4551         (MIN_CHAR_CYRILLIC): Likewise.
4552         (MAX_CHAR_CYRILLIC): Likewise.
4553
4554 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4555
4556         * char-ucs.h (breakup_char_1): Use
4557         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4558         thai-tis620 and katakana-jisx0201 area.
4559
4560 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4561
4562         * char-ucs.h (breakup_char_1): Use
4563         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4564         area.
4565
4566         * text-coding.c (reset_encoding_stream): Fixed.
4567         (char_encode_ucs4): Delete `& 255'.
4568
4569         * char-ucs.h (breakup_char_1): Use
4570         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4571
4572 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4573
4574         * file-coding.c (Fmake_coding_system): Don't set up
4575         `codesys->fixed.size'.
4576         (encode_coding_no_conversion): Don't refer
4577         `str->codesys->fixed.size'.
4578
4579 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4580
4581         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4582         (latin_a_char_to_byte1): Deleted.
4583         (latin_a_char_to_byte2): Deleted.
4584
4585 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4586
4587         * mule-charset.c (make_charset): Add new argument `ucs_min',
4588         `ucs_max' and `code_offset'.
4589         (charset_get_byte1): New implementation [delete specific charset
4590         depended implementations].
4591         (Fmake_charset): Modify for `make_charset'.
4592         (Fmake_reverse_direction_charset): Likewise.
4593         (complex_vars_of_mule_charset): Likewise.
4594
4595         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4596         `code_offset'.
4597         (CHARSET_UCS_MIN): New macro.
4598         (CHARSET_UCS_MAX): New macro.
4599         (CHARSET_CODE_OFFSET): New macro.
4600         (MAKE_CHAR): Delete charset depended definitions [except
4601         katakana-jisx0201].
4602
4603 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4604
4605         * char-ucs.h (breakup_char_1): Use
4606         `Vdefault_coded_charset_priority_list' for C0-Controls,
4607         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4608
4609 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4610
4611         * char-ucs.h (charset_get_byte1): New function.
4612         (XCHARSET_GET_BYTE1): Deleted.
4613         (charset_get_byte2): New function.
4614         (XCHARSET_GET_BYTE2): Deleted.
4615         (Vdefault_coded_charset_priority_list): New external variable.
4616         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4617         `Vdefault_preferred_coded_charset_list'.
4618
4619         * mule-charset.c (charset_get_byte1): New function.
4620         (charset_get_byte2): New function.
4621         (Vdefault_coded_charset_priority_list): New variable.
4622         (vars_of_mule_charset): Add new variable
4623         `default-coded-charset-priority-list'.
4624
4625 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4626
4627         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4628         (XCHARSET_GET_BYTE2): New inline function.
4629         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4630         `XCHARSET_GET_BYTE2'.
4631
4632 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4633
4634         * mule-charset.c (make_charset): Initialize
4635         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4636         NULL if table is not defined.
4637
4638 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4639
4640         * text-coding.c (char_encode_shift_jis): Use
4641         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4642         `ucs_to_latin_jisx0201'.
4643
4644         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4645         (ucs_to_latin_iso8859_2): Deleted.
4646         (ucs_to_latin_iso8859_3): Deleted.
4647         (ucs_to_latin_iso8859_4): Deleted.
4648         (ucs_to_latin_iso8859_9): Deleted.
4649         (ucs_to_latin_viscii_lower): Deleted.
4650         (ucs_to_latin_viscii_upper): Deleted.
4651         (ucs_to_latin_tcvn5712): Deleted.
4652         (make_charset): Add new argument `decoding_table'; set up
4653         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4654         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4655         `decoding_table' is defined in UTF-2000.
4656         (Fmake_charset): Modify for `make_charset'.
4657         (Fmake_reverse_direction_charset): Likewise.
4658         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4659         and `GENERATE_96_SET'.
4660
4661         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4662         (ucs_to_latin_jisx0201): Deleted.
4663         (latin_iso8859_2_to_ucs): Deleted.
4664         (ucs_to_latin_iso8859_2): Deleted.
4665         (latin_iso8859_3_to_ucs): Deleted.
4666         (ucs_to_latin_iso8859_3): Deleted.
4667         (latin_iso8859_4_to_ucs): Deleted.
4668         (ucs_to_latin_iso8859_4): Deleted.
4669         (latin_iso8859_9_to_ucs): Deleted.
4670         (ucs_to_latin_iso8859_9): Deleted.
4671         (latin_viscii_lower_to_ucs): Deleted.
4672         (ucs_to_latin_viscii_lower): Deleted.
4673         (latin_viscii_upper_to_ucs): Deleted.
4674         (ucs_to_latin_viscii_upper): Deleted.
4675         (struct Lisp_Charset): Renamed `encoding_table' to
4676         `to_byte1_table'; add `to_byte2_table'.
4677         (CHARSET_DECODING_TABLE): New macro.
4678         (CHARSET_TO_BYTE1_TABLE): New macro.
4679         (CHARSET_TO_BYTE2_TABLE): New macro.
4680         (XCHARSET_DECODING_TABLE): New macro.
4681         (XCHARSET_TO_BYTE1_TABLE): New macro.
4682         (XCHARSET_TO_BYTE2_TABLE): New macro.
4683         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4684         tables.
4685         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4686         don't use `ucs_to_*' tables.
4687
4688 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4689
4690         * text-coding.c (Fmake_coding_system): Don't set up
4691         `codesys->fixed.size'.
4692         (encode_coding_no_conversion): Use `if' instead of `switch'.
4693
4694         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4695
4696 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4697
4698         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4699         (Fmake_charset): Modify for `make_charset'.
4700         (Fmake_reverse_direction_charset): Likewise.
4701         (complex_vars_of_mule_charset): Likewise.
4702
4703 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4704
4705         * text-coding.c (char_encode_shift_jis): Use table
4706         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4707
4708 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4709
4710         * text-coding.c (text_encode_generic): Use `if' instead of
4711         `switch'.
4712         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4713         decode JIS-Latin.
4714
4715 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4716
4717         * text-coding.c (encode_coding_sjis): Deleted.
4718         (char_encode_shift_jis): New function.
4719         (char_finish_shift_jis): New function.
4720         (reset_encoding_stream): Set up `encode_char' and `finish' for
4721         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4722         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4723         (char_encode_utf8): Treat `eol_type'.
4724
4725 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4726
4727         * file-coding.c (decode_coding_iso2022): Use
4728         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4729
4730 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4731
4732         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4733         to 0.7 (Hirano).
4734
4735 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4736
4737         * char-lb.h (CHAR_COLUMNS): New macro.
4738
4739 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4740
4741         * text-coding.c (char_encode_ucs4): New function.
4742         (char_finish_ucs4): New function.
4743         (encode_coding_ucs4): Deleted.
4744         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4745         (text_encode_generic): Delete local variable `charset' and `half'.
4746         (ucs_to_mule_table): Deleted.
4747         (mule_to_ucs_table): Deleted.
4748         (Fset_ucs_char): Deleted.
4749         (ucs_to_char): Deleted.
4750         (Fucs_char): Deleted.
4751         (Fset_char_ucs): Deleted.
4752         (Fchar_ucs): Deleted.
4753         (decode_ucs4): Deleted.
4754         (mule_char_to_ucs4): Deleted.
4755         (encode_ucs4): Deleted.
4756         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4757         (decode_coding_utf8): Likewise.
4758         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4759         (char_encode_iso2022): Fixed.
4760         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4761         `Fset_char_ucs' and `Fchar_ucs'.
4762         (complex_vars_of_file_coding): Don't initialize
4763         `ucs_to_mule_table'.
4764
4765         * objects-tty.c (tty_initialize_font_instance): Don't use
4766         `XCHARSET_COLUMNS'.
4767
4768         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4769         UTF-2000.
4770
4771         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4772         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4773
4774         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4775         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4776         (emchar_string_displayed_columns): Likewise.
4777
4778         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4779         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4780         (string_column_at_point): Likewise.
4781         (Fmove_to_column): Likewise.
4782
4783         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4784         `encoding_table' and `decoding_table'.
4785         (CHARSET_REP_BYTES): Deleted.
4786         (XCHARSET_REP_BYTES): Deleted.
4787         (XCHARSET_COLUMNS): Deleted.
4788         (CHAR_COLUMNS): New macro.
4789         (lookup_composite_char): Deleted unconditionally.
4790         (composite_char_string): Likewise.
4791
4792 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4793
4794         * char-ucs.h (Emchar_to_byte_table): New type.
4795         (get_byte_from_character_table): New function interface.
4796         (Vcharset_latin_jisx0201): New variable.
4797         (latin_jisx0201_to_ucs): New variable.
4798         (ucs_to_latin_jisx0201): New variable.
4799         (Vcharset_latin_iso8859_2): New variable.
4800         (latin_iso8859_2_to_ucs): New variable.
4801         (ucs_to_latin_iso8859_2): New variable.
4802         (Vcharset_latin_iso8859_3): New variable.
4803         (latin_iso8859_3_to_ucs): New variable.
4804         (ucs_to_latin_iso8859_3): New variable.
4805         (Vcharset_latin_iso8859_4): New variable.
4806         (latin_iso8859_4_to_ucs): New variable.
4807         (ucs_to_latin_iso8859_4): New variable.
4808         (Vcharset_latin_iso8859_9): New variable.
4809         (latin_iso8859_9_to_ucs): New variable.
4810         (ucs_to_latin_iso8859_9): New variable.
4811         (Vcharset_latin_viscii_lower): New variable.
4812         (latin_viscii_lower_to_ucs): New variable.
4813         (ucs_to_latin_viscii_lower): New variable.
4814         (Vcharset_latin_viscii_upper): New variable.
4815         (latin_viscii_upper_to_ucs): New variable.
4816         (ucs_to_latin_viscii_upper): New variable.
4817         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4818         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4819         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4820         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4821         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4822         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4823         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4824         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4825         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4826         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4827
4828         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4829         (Vcharset_latin_viscii_upper): New variable.
4830         (make_byte_from_character_table): New function.
4831         (put_byte_from_character_table): New function.
4832         (get_byte_from_character_table): New function.
4833         (CHAR96): New macro.
4834         (ucs_to_latin_jisx0201): New variable.
4835         (latin_jisx0201_to_ucs): New variable.
4836         (ucs_to_latin_iso8859_2): New variable.
4837         (latin_iso8859_2_to_ucs): New variable.
4838         (ucs_to_latin_iso8859_3): New variable.
4839         (latin_iso8859_3_to_ucs): New variable.
4840         (ucs_to_latin_iso8859_4): New variable.
4841         (latin_iso8859_4_to_ucs): New variable.
4842         (ucs_to_latin_iso8859_9): New variable.
4843         (latin_iso8859_9_to_ucs): New variable.
4844         (ucs_to_latin_viscii_lower): New variable.
4845         (latin_viscii_lower_to_ucs): New variable.
4846         (ucs_to_latin_viscii_upper): New variable.
4847         (latin_viscii_upper_to_ucs): New variable.
4848         (ucs_to_latin_tcvn5712): New variable.
4849         (latin_tcvn5712_to_ucs): New variable.
4850         (Qlatin_viscii_lower): New variable.
4851         (Qlatin_viscii_upper): New variable.
4852         (syms_of_mule_charset): Set up new symbol
4853         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4854         (complex_vars_of_mule_charset): Set up new charset
4855         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4856         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4857         `ucs_to_<CHARSET>' tables.
4858
4859 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4860
4861         * text-coding.c: New file.
4862
4863 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4864
4865         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4866
4867         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4868         (MAKE_CHAR): Modify for `ucs-bmp'.
4869         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4870         non-MULE characters of BMP.
4871
4872 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4873
4874         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4875         to 0.6.
4876
4877 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4878
4879         * lstream.h:
4880         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4881         - Include character.h for `CHAR_ASCII_P'.
4882
4883         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4884
4885         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4886         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4887
4888         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4889         (BYTE_C0_P): Likewise.
4890         (BYTE_C1_P): Likewise.
4891         (Lstream_get_emchar_1): Likewise.
4892         (Lstream_fput_emchar): Likewise.
4893         (Lstream_funget_emchar): Likewise.
4894         (copy_internal_to_external): Likewise.
4895         (copy_external_to_internal): Likewise.
4896
4897         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4898         (BYTE_C0_P): Likewise.
4899         (BYTE_C1_P): Likewise.
4900         (Lstream_get_emchar_1): Likewise.
4901         (Lstream_fput_emchar): Likewise.
4902         (Lstream_funget_emchar): Likewise.
4903         (copy_internal_to_external): Likewise.
4904         (copy_external_to_internal): Likewise.
4905
4906         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4907         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4908
4909         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4910         (BYTE_ASCII_P): Moved to mb-1byte.h.
4911
4912 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4913
4914         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4915
4916         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4917         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4918         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4919         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4920         (VALIDATE_CHARPTR_FORWARD): Likewise.
4921         (simple_charptr_emchar): Moved to mb-multibyte.h.
4922         (simple_set_charptr_emchar): Likewise.
4923         (simple_charptr_copy_char): Likewise.
4924         (non_ascii_charptr_emchar): Likewise.
4925         (non_ascii_set_charptr_emchar): Likewise.
4926         (non_ascii_charptr_copy_char): Likewise.
4927         (charptr_emchar): Moved to mb-*byte.h.
4928         (set_charptr_emchar): Likewise.
4929         (charptr_copy_char): Likewise.
4930
4931         * mb-1byte.h, mb-multibyte.h: New files.
4932
4933 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4934
4935         * mb-utf-8.h (MULTIBYTE): New macro.
4936         (MAX_EMCHAR_LEN): Moved from buffer.h.
4937         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4938
4939         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4940
4941         * mb-lb.h, multibyte.h: New files.
4942
4943         * char-1byte.h (Charset_ID): Moved from buffer.h.
4944         (MIN_LEADING_BYTE): Likewise.
4945         (LEADING_BYTE_ASCII): Likewise.
4946         (NUM_LEADING_BYTES): Likewise.
4947         (CHARSETP): Likewise.
4948         (CHARSET_BY_LEADING_BYTE): Likewise.
4949         (XCHARSET_LEADING_BYTE): Likewise.
4950         (XCHARSET_GRAPHIC): Likewise.
4951         (XCHARSET_COLUMNS): Likewise.
4952         (XCHARSET_DIMENSION): Likewise.
4953         (CHAR_CHARSET): Likewise.
4954         (CHAR_LEADING_BYTE): Likewise.
4955         (BREAKUP_CHAR): Likewise.
4956         (Vcharset_ascii): Likewise.
4957
4958         * buffer.h: Include multibyte.h unconditionally.
4959         (VALID_CHARPTR_P): Moved to multibyte.h.
4960         (ASSERT_VALID_CHARPTR): Likewise.
4961         (REAL_INC_CHARPTR): Likewise.
4962         (REAL_INC_CHARBYTIND): Likewise.
4963         (REAL_DEC_CHARPTR): Likewise.
4964         (INC_CHARPTR): Likewise.
4965         (INC_CHARBYTIND): Likewise.
4966         (DEC_CHARPTR): Likewise.
4967         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4968         (VALIDATE_CHARPTR_FORWARD): Likewise.
4969         (charptr_n_addr): Likewise.
4970         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4971         (simple_charptr_emchar): Moved to multibyte.h.
4972         (simple_set_charptr_emchar): Likewise.
4973         (simple_charptr_copy_char): Likewise.
4974         (non_ascii_charptr_emchar): Likewise.
4975         (non_ascii_set_charptr_emchar): Likewise.
4976         (non_ascii_charptr_copy_char): Likewise.
4977         (charptr_emchar): Likewise.
4978         (set_charptr_emchar): Likewise.
4979         (charptr_copy_char): Likewise.
4980         (charptr_emchar_n): Likewise.
4981         (Charset_ID): Moved to char-1byte.h.
4982         (Vcharset_ascii): Likewise.
4983         (CHAR_CHARSET): Likewise.
4984         (CHAR_LEADING_BYTE): Likewise.
4985         (LEADING_BYTE_ASCII): Likewise.
4986         (NUM_LEADING_BYTES): Likewise.
4987         (MIN_LEADING_BYTE): Likewise.
4988         (CHARSETP): Likewise.
4989         (CHARSET_BY_LEADING_BYTE): Likewise.
4990         (XCHARSET_LEADING_BYTE): Likewise.
4991         (XCHARSET_GRAPHIC): Likewise.
4992         (XCHARSET_COLUMNS): Likewise.
4993         (XCHARSET_DIMENSION): Likewise.
4994         (BREAKUP_CHAR): Likewise.
4995
4996 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4997
4998         * character.h: Add document about interface for characters.
4999
5000         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5001         (MAKE_CHAR): Delete comment about
5002         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5003         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5004         (BREAKUP_CHAR): Modify name of arguments.
5005         (CHAR_CHARSET): Modify name of argument.
5006
5007         * buffer.h: Delete document about Emchar accessors.
5008
5009 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5010
5011         * character.h (CHAR_INTP): Moved from buffer.h
5012         (CHAR_OR_CHAR_INTP): Likewise.
5013         (XCHAR_OR_CHAR_INT): Likewise.
5014         (CHECK_CHAR_COERCE_INT): Likewise.
5015
5016         * buffer.h (CHAR_INTP): Moved to character.h
5017         (CHAR_OR_CHAR_INTP): Likewise.
5018         (XCHAR_OR_CHAR_INT): Likewise.
5019         (CHECK_CHAR_COERCE_INT): Likewise.
5020
5021 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5022
5023         * character.h:
5024         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5025         - Include char-1byte.h, char-lb.h or char-ucs.h.
5026
5027         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5028
5029         * buffer.h: Include character unconditionally.
5030         (valid_char_p): Moved to char-*.h.
5031         (non_ascii_valid_char_p): Moved to char-lb.h.
5032
5033         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5034
5035 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5036
5037         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5038         in UTF-2000 because it is not ported yet and not to use
5039         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5040         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5041         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5042
5043         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5044         (CHAR_ASCII_P): Moved from character.h.
5045
5046         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5047         (CHAR_ASCII_P): Likewise.
5048         (CHAR_FIELD1_MASK): Deleted.
5049         (CHAR_FIELD2_MASK): Deleted.
5050         (CHAR_FIELD3_MASK): Deleted.
5051         (MAX_CHAR_BASIC_LATIN): New macro.
5052         (CHAR_FIELD1): Deleted.
5053         (CHAR_FIELD2_INTERNAL): Deleted.
5054         (CHAR_FIELD3_INTERNAL): Deleted.
5055         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5056         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5057         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5058         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5059         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5060         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5061         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5062         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5063         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5064         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5065         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5066         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5067         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5068         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5069         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5070         (MIN_CHAR_COMPOSITION): Deleted.
5071         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5072         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5073
5074 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5075
5076         * buffer.h: Include mb-utf-8.h in UTF-2000.
5077
5078         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5079
5080         * mb-utf-8.h: New file.
5081
5082 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5083
5084         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5085         instead of `int'.
5086
5087         * mule-charset.h, buffer.h (Charset_ID): New type.
5088
5089 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5090
5091         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5092         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5093         instead of `MULE_CHAR_PRIVATE_OFFSET',
5094         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5095         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5096         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5097
5098         * character.h (Vcharset_japanese_jisx0212): New variable
5099         definition.
5100
5101 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5102
5103         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5104         (charset_by_attributes): Delete array about direction.
5105         (latin_a_char_to_charset): New variable in UTF-2000.
5106         (latin_a_char_to_byte1): New variable in UTF-2000.
5107         (latin_a_char_to_byte2): New variable in UTF-2000.
5108         (Qucs_bmp): New variable.
5109         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5110         `Bufbyte'.
5111         (next_allocated_2_byte_leading_byte): Likewise.
5112         (non_ascii_set_charptr_emchar): Likewise.
5113         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5114         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5115         `charset_by_attributes'.
5116         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5117         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5118         and `CHARSET_BY_LEADING_BYTE'.
5119         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5120         `utf-2000-version' to `vars_of_mule_charset'.
5121         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5122         define `leading-code-private-11' in UTF-2000; move setting of
5123         `utf-2000-version' from `syms_of_mule_charset'.
5124         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5125         UTF-2000.
5126
5127         * character.h (Charset_ID): New type.
5128         (LEADING_BYTE_UCS_BMP): New macro.
5129         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5130         (CHARSET_ID_OFFSET_94): New macro.
5131         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5132         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5133         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5134         final-byte.
5135         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5136         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5137         (CHARSET_ID_OFFSET_96): New macro.
5138         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5139         CHARSET_ID_OFFSET_96 and final-byte.
5140         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5141         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5142         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5143         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5144         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5145         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5146         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5147         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5148         (LEADING_BYTE_THAI_TIS620): Likewise.
5149         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5150         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5151         (CHARSET_ID_OFFSET_94x94): New macro.
5152         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5153         CHARSET_ID_OFFSET_94x94 and final-byte.
5154         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5155         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5156         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5157         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5158         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5159         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5160         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5161         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5162         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5163         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5164         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5165         (CHARSET_TYPE_128X128): New macro.
5166         (CHARSET_TYPE_256X256): New macro.
5167         (XCHARSET_PRIVATE_P): Delete unconditionally.
5168         (charset_by_attributes): Delete array about direction.
5169         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5170         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5171         (MIN_CHAR_94): New macro.
5172         (MAX_CHAR_94): New macro.
5173         (MIN_CHAR_96): New macro.
5174         (MAX_CHAR_96): New macro.
5175         (MIN_CHAR_94x94): New macro.
5176         (MAX_CHAR_94x94): New macro.
5177         (MIN_CHAR_96x96): New macro.
5178         (MAX_CHAR_96x96): New macro.
5179         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5180         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5181         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5182         - 32)'.
5183         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5184         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5185         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5186         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5187         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5188         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5189         `XCHARSET_LEADING_BYTE' to make code-point.
5190         (latin_a_char_to_charset): New variable.
5191         (latin_a_char_to_byte1): New variable.
5192         (latin_a_char_to_byte2): New variable.
5193         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5194         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5195         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5196
5197         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5198         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5199         (find_charsets_in_emchar_string): Likewise.
5200         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5201
5202         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5203         `int'.
5204         (decode_coding_iso2022): Likewise.
5205
5206         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5207         of `unsigned char'.
5208
5209         * redisplay.c (redisplay_text_width_emchar_string): Use
5210         `Charset_ID' instead of `unsigned char'.
5211         (redisplay_frame_text_width_string): Likewise.
5212
5213         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5214         `unsigned char'.
5215
5216         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5217         instead of `unsigned char'.
5218         (face_cachel_charset_font_metric_info): Likewise.
5219
5220         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5221         (get_non_ascii_char_table_value): Likewise.
5222         (get_char_table): Likewise.
5223         (put_char_table): Likewise.
5224         (map_over_other_charset): Likewise.
5225         (map_char_table): Likewise.
5226
5227         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5228         instead of `unsigned char'.
5229
5230 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5231
5232         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5233         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5234
5235         * mule-charset.c (leading_code_private_11): Don't define in
5236         UTF-2000.
5237
5238         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5239         in UTF-2000 because it is not ported yet and not to use
5240         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5241
5242 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5243
5244         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5245
5246 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5247
5248         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5249         in UTF-2000.
5250
5251         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5252         of unsigned char to store leading-byte.
5253
5254         * chartab.c (get_non_ascii_char_table_value): Don't use
5255         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5256
5257         * file-coding.c (encode_coding_big5): Delete bogus implementation
5258         in UTF2000.
5259
5260         * character.h (LEADING_BYTE_*): Delete definition for
5261         non-UTF-2000.
5262         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5263         (LEADING_BYTE_PREFIX_P): Deleted.
5264         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5265         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5266         (BUFBYTE_LEADING_BYTE_P): Deleted.
5267         (CHARSET_PRIVATE_P): Deleted unconditionally.
5268         (rep_bytes_by_first_byte): Deleted unconditionally.
5269         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5270         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5271         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5272         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5273         (CHAR_FIELD2): Deleted.
5274         (CHAR_FIELD3): Deleted.
5275         (MAKE_CHAR): Delete definition for non-UTF-2000.
5276         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5277         (breakup_char_1): New implementation.
5278         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5279         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5280
5281 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5282
5283         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5284         condition.
5285
5286 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5287
5288         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5289         (CHARSET_PRIVATE_P): Likewise.
5290         (XCHARSET_PRIVATE_P): Likewise.
5291         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5292
5293         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5294         UTF2000.
5295         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5296
5297 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5298
5299         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5300         (NUM_LEADING_BYTES): Changed from 128 to 256.
5301         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5302         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5303         UTF2000.
5304         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5305
5306         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5307         UTF2000.
5308         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5309         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5310         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5311         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5312         (Qchinese_cns11643_3): New variable in UTF2000.
5313         (Qchinese_cns11643_4): New variable in UTF2000.
5314         (Qchinese_cns11643_5): New variable in UTF2000.
5315         (Qchinese_cns11643_6): New variable in UTF2000.
5316         (Qchinese_cns11643_7): New variable in UTF2000.
5317         (syms_of_mule_charset): Define `chinese-cns11643-3',
5318         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5319         and `chinese-cns11643-7' in UTF2000.
5320         (vars_of_mule_charset): Initialize
5321         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5322         + 1 in UTF2000.
5323         (complex_vars_of_mule_charset): Setup charset
5324         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5325         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5326
5327 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5328
5329         * mule-charset.c: Move setting for `leading-code-private-11' from
5330         `syms_of_mule_charset' to `vars_of_mule_charset'.
5331
5332 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5333
5334         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5335         and `NUM_LEADING_BYTES' in assert.
5336
5337 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5338
5339         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5340         instead of 128.
5341         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5342         `NUM_LEADING_BYTES' instead of 128.
5343
5344 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5345
5346         * mule-charset.h (charset_by_leading_byte): Use
5347         `NUM_LEADING_BYTES' instead of 128.
5348         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5349
5350         * mule-charset.c (charset_by_leading_byte): Use
5351         `NUM_LEADING_BYTES' instead of 128.
5352         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5353
5354         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5355         128.
5356
5357 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5358
5359         * mule-charset.c (syms_of_mule_charset): Update to
5360         0.4 (Shin-Imamiya).
5361
5362 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5363
5364         * file-coding.c (encode_coding_sjis): New implementation for
5365         UTF2000.  (decode_coding_sjis): Ditto.
5366
5367 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5368
5369         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5370         Don't define in UTF2000.
5371
5372         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5373         defined.
5374
5375         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5376         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5377         MULE.
5378
5379 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5380
5381         * config.h.in (CHAR_IS_UCS4): New macro.
5382
5383         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5384         conventional MULE representation.
5385         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5386
5387         * mule-charset.h: Reverted to original.
5388
5389         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5390         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5391         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5392
5393         * character.h: New file.
5394
5395         * file-coding.c (Fmake_coding_system): Set 1 to
5396         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5397         defined.
5398         (encode_coding_no_conversion): New implementation for UTF2000.
5399
5400         * file-coding.h (struct Lisp_Coding_System): Add new member
5401         `fixed.size'.
5402
5403 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5404
5405         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5406         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5407         (encode_coding_iso2022): New implementation for UTF2000.
5408
5409 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5410
5411         * mule-canna.c (c2mu): New implementation for UTF2000.
5412         (m2c): Likewise.
5413
5414 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5415
5416         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5417
5418 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5419
5420         * file-coding.c (reset_encoding_stream): Set 0 to
5421         `str->iso2022.current_char_boundary' in UTF2000.
5422         (encode_utf8): Don't define in UTF2000.
5423         (encode_coding_utf8): New implementation for UTF-8 representation
5424         of UTF2000.
5425         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5426
5427 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5428
5429         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5430
5431         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5432         UTF2000.
5433         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5434
5435         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5436
5437         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5438         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5439         as UTF-8 in UTF2000.
5440         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5441         (non_ascii_valid_char_p): Don't define in UTF2000.
5442         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5443         (Lstream_get_emchar_1): Likewise.
5444         (utf-2000-version): New variable in UTF2000.
5445
5446         * lread.c (read_escape): Add new reader `u'.
5447
5448         * insdel.c (three_to_one_table): Don't define in UTF2000.
5449         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5450         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5451         UTF2000.
5452         (bytind_to_bufpos_func): Likewise.
5453         (buffer_mule_signal_inserted_region): Likewise.
5454         (vars_of_insdel): Don't initialize `three_to_one_table'.
5455         (init_buffer_text): Use `buf->text->mule_size' instead of
5456         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5457         UTF2000.
5458
5459         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5460         UTF-8 representation in UTF2000.
5461         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5462         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5463         (decode_coding_iso2022): Don't define local variable `lb' in
5464         UTF2000; don't use LEADING_BYTE in UTF2000; use
5465         `DECODE_ADD_UCS_CHAR' in UTF2000.
5466         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5467
5468         * config.h.in (UTF2000): New macro.
5469
5470         * buffer.h (struct buffer_text): Add new member `mule_size' and
5471         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5472         (valid_char_p): Return always 1 in UTF2000.
5473         (MAX_EMCHAR_LEN): 6 in UTF2000.
5474         (three_to_one_table): Don't define in UTF2000.
5475         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5476         UTF2000.
5477         (real_bytind_to_bufpos): Likewise.
5478
5479         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5480
5481 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5482
5483         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5484         representation change.
5485         (Vutf_2000_version): New variable.
5486         (leading_code_private_11): New variable.
5487         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5488         `leading-code-private-11'.
5489
5490         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5491         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5492         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5493         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5494         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5495         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5496         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5497         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5498         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5499         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5500         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5501         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5502         (MIN_CHAR_GREEK): New macro.
5503         (MAX_CHAR_GREEK): New macro.
5504         (MIN_CHAR_CYRILLIC): New macro.
5505         (MAX_CHAR_CYRILLIC): New macro.
5506         (MIN_CHAR_HEBREW): New macro.
5507         (MAX_CHAR_HEBREW): New macro.
5508         (MIN_CHAR_THAI): New macro.
5509         (MAX_CHAR_THAI): New macro.
5510         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5511         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5512         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5513         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5514         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5515         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5516         (CHAR_FIELD2): New inline function.
5517         (CHAR_FIELD3): New inline function.
5518         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5519         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5520         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5521         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5522         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5523         (MIN_CHAR_COMPOSITION): Likewise.
5524         (CHAR_LEADING_BYTE): Modified for character representation change.
5525         (MAKE_CHAR): Likewise.
5526
5527         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5528         (Vcharset_greek_iso8859_7): Likewise.
5529         (Vcharset_cyrillic_iso8859_5): Likewise.
5530         (Vcharset_hebrew_iso8859_8): Likewise.
5531         (Vcharset_thai_tis620): Likewise.
5532         (Vcharset_katakana_jisx0201): Likewise.
5533
5534 2004-02-02  Vin Shelton <acs@xemacs.org>
5535
5536         * XEmacs 21.4.15 is released
5537
5538 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
5539
5540         * device-x.c (x_error_handler): Don't call stderr_out
5541
5542 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
5543
5544         * buffer.c (other-buffer): Clarify documentation of order of
5545         arguments for FSF Emacs.
5546
5547 2003-10-11  Olivier Galibert  <galibert@pobox.com>
5548
5549         * window.c (Fdelete_window): Dirty the mirror structure _before_
5550         marking the window deleted.
5551
5552 2003-09-15  Jerry James  <james@xemacs.org>
5553
5554         * event-msw.c (debug_mswin_messages): Conditionally compile
5555         messages missing from the Cygwin headers.
5556
5557 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
5558
5559         * data.c (eq_with_ebola_notice): Fix typo in comment.
5560         (Ftrue_list_p): Improve docstring.
5561
5562 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
5563
5564         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
5565
5566 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
5567
5568         * search.c (trivial_regexp_p): Regexps containing "\{" are
5569         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
5570         Stefan Monnier for suggesting a diagnosis.
5571
5572 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
5573
5574         * elhash.c (make-hash-table): Clarify use of :test #'equal.
5575
5576 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
5577
5578         * search.c (Fsearch_forward):
5579         (Fsearch_backward):
5580         Document negative count.
5581
5582 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
5583
5584         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
5585
5586 2003-09-13  Martin Buchholz  <martin@xemacs.org>
5587
5588         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
5589
5590 2003-09-15  Vin Shelton  <acs@xemacs.org>
5591
5592         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
5593         21.5.
5594
5595 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
5596
5597         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
5598         (re_search_2): Match the first byte of Bufbyte, not Emchar.
5599         (re_match_2_internal): Use TRANSLATE instead of
5600         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
5601         non-ASCII char case conversion.
5602
5603 2003-09-08  Mike Sperber  <mike@xemacs.org>
5604
5605         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
5606         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
5607
5608 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
5609
5610        * .gdbinit (pobj): fix printing of symbol name.
5611
5612 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
5613
5614         * frame-x.c (x_layout_widgets): When resizing is about to cause
5615         frame size slip, mark it for redisplay.
5616
5617 2003-08-18  Jerry James  <james@xemacs.org>
5618
5619         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
5620
5621 2003-09-03  Vin Shelton <acs@xemacs.org>
5622
5623         * XEmacs 21.4.14 is released
5624
5625 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5626
5627         * config.h.in (REGEX_MALLOC): Make it configure'able.
5628
5629 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5630
5631         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5632         linking.
5633         * sysdll.c (dll_init):
5634         * sysdll.c (dll_open):
5635         * sysdll.c (dll_close):
5636         * sysdll.c (dll_function):
5637         * sysdll.c (dll_variable):
5638         * sysdll.c (dll_error):
5639         Add support for loading bundles using Darwin/MacOSX
5640         native API.
5641
5642 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5643
5644         * process.c (start-process-internal): Document coding systems.
5645
5646 2003-07-30  Jerry James  <james@xemacs.org>
5647
5648         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5649
5650 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5651
5652         * event-msw.c (mswindows_enqueue_mouse_button_event):
5653         * event-msw.c (mswindows_wnd_proc):
5654           enqueue button event when scrollwheel event isn't handled by 
5655           mswindows_handle_mousewheel_event, such as when the scrollbars
5656           are not showing.
5657
5658 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5659
5660         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5661
5662 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5663
5664         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5665
5666 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5667
5668         * regex.c (re_match_2_internal): Fix matching degenerate word
5669         boundaries.
5670
5671 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5672
5673         * XEmacs 21.4.13 is released
5674
5675 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5676
5677         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5678         * lisp.h (<inttypes.h>):
5679         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5680         the definition.
5681
5682 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5683
5684         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5685         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5686         Result: "temacs can only be run in -batch mode."
5687         Fix: Check xemacs executable candidate for directory-ness.
5688
5689 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5690
5691         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5692           they conflict with <sys/types.h>.
5693
5694 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5695
5696         * database.c: Berkeley DB wants __STDC__ to be defined.
5697
5698 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5699
5700         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5701
5702 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5703
5704         * process-unix.c (unix_send_process): Fix C++ compile error.
5705
5706 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5707
5708         * Added .dylib as an acceptable shared library file extension
5709         * to support MacOSX.
5710
5711 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5712
5713         * EmacsFrameP.h (EmacsFramePart):
5714         Kludge to allow compiling with Motif1, but linking with Motif2.
5715
5716 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5717
5718         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5719
5720
5721 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5722
5723         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5724
5725 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5726
5727         * sysdll.c: Included lisp.h to define needed alloca_array.
5728
5729 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5730
5731         Make XEmacs redisplay 10 times faster.
5732         If, that is, you're using a slow X connection and MoveOpaque.
5733         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5734         Use compress_motion = TRUE.
5735         * EmacsFrame.c (emacsFrameClassRec): 
5736         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5737         * EmacsManager.c (emacsManagerClassRec):
5738         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5739
5740 2003-01-30  Vin Shelton  <acs@xemacs.org>
5741
5742         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5743
5744 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5745
5746         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5747         Patch by Martin Buchholz.
5748
5749 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5750
5751         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5752         Thanks to icc for warning and Martin Buchholz for reporting.
5753
5754 2003-01-29  Vin Shelton <acs@xemacs.org>
5755
5756         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5757
5758         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5759         remember to multiply by the element size.
5760
5761 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5762
5763         * XEmacs 21.4.12 "Portable Code" is released.
5764
5765 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5766
5767         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5768         * s/cygwin.sc: new linker file.
5769
5770 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5771
5772         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5773
5774         * redisplay-x.c (x_output_string): Use X11-specified types.
5775         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5776         * emacs.c (__free_hook): Use typeof with Intel compiler.
5777         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5778
5779 2003-01-08  Andy Piper  <andy@xemacs.org>
5780
5781         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5782         reserve size during unexec().
5783
5784 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5785
5786         * process-unix.c (unix_create_process): Don't let outchannel block.
5787
5788 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5789
5790         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5791         Needed for IsBadReadPtr().
5792
5793 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5794
5795         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5796
5797 2002-12-14  Ben Wing  <ben@xemacs.org>
5798
5799         * callint.c: Declaration error.
5800         * dumper.c (pdump):
5801         * dumper.c (pdump_load): Warning fix.
5802         * process.c: GCPRO error.
5803         * glyphs.c (unmap_subwindow):
5804         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5805         * event-stream.c (maybe_kbd_translate): Wrong argument to
5806         character_to_event().
5807
5808         * alloc.c (garbage_collect_1):
5809         * emacs.c:
5810         * emacs.c (debug_can_access_memory):
5811         * emacs.c (fatal_error_signal):
5812         * emacs.c (mswindows_handle_hardware_exceptions):
5813         * emacs.c (main_1):
5814         * emacs.c (main):
5815         * emacs.c (assert_failed):
5816         * emacs.c (syms_of_emacs):
5817         * lisp.h:
5818         * print.c:
5819         * print.c (std_handle_out_va):
5820         * print.c (write_string_to_stdio_stream):
5821         * print.c (write_fmt_string):
5822         * print.c (printing_badness):
5823         * print.c (printing_major_badness):
5824         * print.c (print_internal):
5825         * print.c (debug_print_no_newline):
5826         * print.c (debug_backtrace):
5827         Be more defensive in handling bad values when printing.  Add code
5828         from trunk involving inhibit_non_essential_printing_operations.
5829         When going down or in debug_print(), don't do external conversion
5830         and such and try really, really hard when printing to avoid core
5831         dumping.  Add force-debugging-signal, debug_break().
5832
5833 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5834
5835         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5836         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5837
5838 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5839
5840         * database.c: Fix open_database. Berkeley DB API has changed in
5841         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5842
5843 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5844
5845         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5846
5847 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5848
5849         * event-Xt.c (Xt_timeout):
5850         (Xt_timeout_callback):
5851         (emacs_Xt_add_timeout):
5852         (emacs_Xt_remove_timeout):
5853         (Xt_timeout_to_emacs_event):
5854         Turn completed_timeouts from a stack into a queue.  Fixes
5855         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5856
5857 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5858
5859         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5860         * emacs.c (main): Assert that mmap'd allocation is disabled.
5861
5862 2002-10-14  Andy Piper  <andy@xemacs.org>
5863
5864         * glyphs-widget.c (layout_query_geometry): add in fiddle
5865         factor. Include border text in width layout calculation.
5866         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5867
5868 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5869
5870         * XEmacs 21.4.10 "Military Intelligence" is released.
5871
5872 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5873
5874         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5875         using the NAS private array SoundFileInfo that no longer exists in
5876         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5877         and earlier.  This is broken for some versions between 1.5a and
5878         1.5f.
5879
5880 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5881
5882         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5883
5884         * emacs.c (shut_down_emacs): Improve crash message.
5885
5886 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5887
5888         * file-coding.c (determine_real_coding_system): Check for coding
5889         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5890         shebangs and Python PEP 263.
5891
5892 2002-10-08  Andy Piper  <andy@xemacs.org>
5893
5894         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5895         if static sizes haven't been set.
5896
5897 2002-08-30  Mike Alexander  <mta@arbortext.com>
5898
5899         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5900         to close a socket.
5901
5902 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5903
5904         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5905
5906 2002-09-20  Mike Sperber <mike@xemacs.org>
5907
5908         (This partially gets back my patch from 2002-07-20 without the
5909         bug.)
5910         * callproc.c (child_setup): Remove Ben's comment noting confusion
5911         over the file descriptors >= 3: close_process_descs() doesn't
5912         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5913         * process-unix.c (unix_create_process): Call
5914         begin_dont_check_for_quit to inhibit unwanted interaction (and
5915         thus breaking of X event synchronicity) in the child.
5916
5917 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5918
5919         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5920         widget.
5921
5922 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5923
5924         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5925         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5926         the xemacs process did not exit, but looped infinitely here.  This
5927         fixes that problem.
5928
5929 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5930
5931         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5932         (find_context): Improve comments.
5933
5934         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5935         (re_match_2): An XCHAR_TABLE operation was missing.
5936
5937         Many of the following changes were inspired by Andy Piper's (now
5938         obsolete) patch to make syntax-table text property lookup optional.
5939
5940         [Documentation]
5941
5942         * syntax.h (top level): Document semantics of syntax flags.
5943         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5944         * syntax.c, syntax.h (top level): Document syntax cache better in
5945         comments.
5946
5947         [Instrument syntax caching (temporary change)]
5948
5949         * syntax.h (enum syntax_cache_statistics_functions, struct
5950         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5951         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5952         * syntax.c (scan_words, Fforward_comment, scan_lists,
5953         Fbackward_prefix_characters):
5954         * font-lock.c (find_context):
5955         Use them to instrument syntax caching. 
5956         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5957         syntax_cache_statistics_function_names): New type and variables.
5958         * syntax.c (update_syntax_cache): Update and report statistics.
5959
5960         [Major syntax cache optimizations]
5961
5962         syntax.c (lookup_syntax_properties): Default off.
5963
5964         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5965         * syntax.c (update_syntax_cache):
5966         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5967
5968         [Minor syntax cache optimizations and code clarifications]
5969
5970         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5971         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5972         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5973         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5974         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5975         (Code clarification.)
5976
5977         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5978         scan_lists): Compute code from syncode, use Boolean macros instead
5979         of redundant masking operations.  (Code clarification; any decent
5980         compiler can do this optimization.)
5981
5982         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5983         for clarity.
5984
5985         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5986         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5987         use F*_single_property_change instead of F*_extent_change.
5988         Currently F*_single_property_change is _much_ less efficient.
5989
5990         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5991         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5992         syntax_cache.object properly, don't leave Qt or Qnil.
5993         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5994         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5995         tests for Qt or Qnil.
5996
5997 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5998
5999         * redisplay.c (point_in_line_start_cache): 
6000         * extents.c (print_extent_1):
6001         Fix warnings.
6002
6003         * extents.c (Fset_extent_property): Document `syntax-table' property.
6004
6005         * extents.h (Fnext_single_property_change): EXFUN it.
6006
6007 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6008
6009         * search.c (clear_unused_search_regs): New static function.
6010         (search_buffer): 
6011         (simple_search): 
6012         (boyer_moore):
6013         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
6014         Minor clarifications in comments.
6015
6016         * regex.c (re_match_2_internal): Ensure no stale submatches.
6017
6018 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6019
6020         * event-Xt.c (enqueue_focus_event): Add missing prototype.
6021
6022 2002-08-29  Jerry James  <james@xemacs.org>
6023
6024         * lisp.h: structrures -> structures.
6025
6026 2002-06-03  Andy Piper  <andy@xemacs.org>
6027
6028         * frame.c (frame_conversion_internal): add conversion appropriate
6029         for setting frame dimensions in pixels.
6030
6031         * console.h (struct console_methods): add device-specific widget
6032         layout functions.
6033
6034         * emacs.c (main_1): initialize glyph vars.
6035
6036         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
6037         (handle_focus_event_2): new function. Allow focus to
6038         be set to a particular window and widget.
6039         (enqueue_focus_event): new function. Create a
6040         synthetic focus event.
6041         (emacs_Xt_handle_magic_event): call
6042         handle_focus_event_2.
6043
6044         * frame.c (Fset_frame_pixel_height): new function. Allow
6045         pixel-based sizing. Does the right thing on character-oriented
6046         displays.
6047         (Fset_frame_pixel_width): ditto.
6048         (Fset_frame_pixel_size): ditto.
6049         (syms_of_frame): declare.
6050
6051         * general-slots.h: add :vertically-justify and
6052         :horizontally-justify.
6053
6054         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
6055         (mswindows_widget_border_width): new function.
6056         (mswindows_combo_box_instantiate): set border widths.
6057         (console_type_create_glyphs_mswindows): declare.
6058
6059         * glyphs-widget.c:
6060         (check_valid_justification): allow vertical and horizontal
6061         justification.
6062         (widget_border_width): new function. Call device methods.
6063         (widget_instance_border_width): ditto.
6064         (logical_unit_height): new function. Determine the height of a
6065         logical-unit. Logical units are intended to provide grid-like
6066         layout for subcontrols in a layout. If the layout is
6067         :vertically-justify top then subcontrols will be positioned on
6068         logical-unit boundaries, thus allowing adjacent subcontrols to
6069         line up.
6070         (widget_logical_unit_height): ditto for widgets.
6071         (redisplay_widget): misc cleanup.
6072         (widget_spacing): new function. Call device specific
6073         methods. Intended to be the default gap between adjacent widgets.
6074         (widget_query_geometry): use new spacing functions to determine
6075         appropriate geometry.
6076         (initialize_widget_image_instance): initialize horizontal and
6077         vertical justification.
6078         (widget_instantiate): use logica-units where appropriate for
6079         sizing large widgets.
6080         (button_query_geometry): use widget_instance_border_width.
6081         (tree_view_query_geometry): ditto.
6082         (tab_control_query_geometry): ditto.
6083         (edit_field_query_geometry): new function.
6084         (layout_update): pick up :justify, :horizontally-justify and
6085         :vertically-justify none of which worked previously. :justify is
6086         used as a fallback for both horizontal and vertical justification.
6087         (layout_query_geometry): use logical units to size appropriately.
6088         (layout_layout): ditto.
6089         (Fwidget_logical_to_character_width): new function. Allow users to
6090         convert from logical units to characters so that frame sizes can
6091         be set appropriately.
6092         (Fwidget_logical_to_character_height): ditto.
6093         (syms_of_glyphs_widget): declare.
6094         (image_instantiator_edit_fields): add edit_field_query_geometry.
6095         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
6096         :horizontally-justify.
6097         (specifier_vars_of_glyphs_widget): new function. Declare
6098         Vwidget_border_width which is not yet used.
6099
6100         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
6101         (x_widget_border_width): new function.
6102         (x_widget_instantiate): create a sensible name for widgets.
6103         (console_type_create_glyphs_x): declare x_widget_border_width.
6104
6105         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
6106         (struct Lisp_Image_Instance): add :vertically-justify and
6107         :horizontally-justify.
6108         (LAYOUT_JUSTIFY_TOP): new.
6109         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
6110         (ROUND_UP): new macro. Round argument up to next integral
6111         interval.
6112
6113         * redisplay-output.c (redisplay_output_layout): misc formatting.
6114
6115         * symsinit.h: declare specifier_vars_of_glyphs_widget.
6116
6117 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
6118
6119         * XEmacs 21.4.9 "Informed Management" is released.
6120
6121 2002-08-19  Andy Piper  <andy@xemacs.org>
6122
6123         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
6124         win32 format.
6125
6126         * realpath.c (xrealpath): normalize drive spec also so that dir
6127         sep chars are not mixed on cygwin.
6128
6129 2002-08-06  Jerry James  <james@xemacs.org>
6130
6131         * window.c (Fsplit_window): Count only half of the divider width
6132         against the left window when splitting horizontally. 
6133
6134 2002-06-24  Andy Piper  <andy@xemacs.org>
6135
6136         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
6137         toolbar was cleared.
6138
6139         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
6140         function. Split out from mswindows_output_frame_toolbars.
6141         (mswindows_output_frame_toolbars): move clear pieces to
6142         mswindows_output_frame_toolbars.
6143
6144         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
6145         out from gtk_output_frame_toolbars.
6146         (gtk_output_frame_toolbars): move clear pieces to
6147         gtk_clear_frame_toolbars.
6148
6149         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
6150         the frame is cleared. How this ever worked before is a mystery.
6151         (x_output_frame_toolbars): Only output toolbars.
6152         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
6153
6154         * gutter.c (update_gutter_geometry):
6155         Mark frame layout changed.
6156         (update_frame_gutter_geometry, update_frame_gutters):
6157         Respect frame_layout_changed.
6158
6159         * console.h (struct console_methods): add
6160         clear_frame_toolbars_method.
6161
6162         * redisplay.c (redisplay_frame): call
6163         update_frame_toolbars_geometry and re-order update_frame_toolbars.
6164
6165         * toolbar.h: declare update_frame_toolbars_geometry.
6166
6167         * toolbar.c (update_frame_toolbars_geometry): new function. Split
6168         out from update_frame_toolbars.  Call clear_frame_toolbars.
6169         (update_frame_toolbars): only output, do not change geometry.
6170
6171         * redisplay.c: add frame_layout_changed.
6172
6173         * redisplay.h: add frame_layout_changed.
6174         (CLASS_RESET_CHANGED_FLAGS): set it.
6175         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
6176         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
6177         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
6178
6179         * device.h (struct device): add frame_layout_changed.
6180         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
6181
6182         * frame.h (struct frame): add frame_layout_changed.
6183         (MARK_FRAME_LAYOUT_CHANGED): new.
6184
6185 2002-06-30  Mike Alexander  <mta@arbortext.com>
6186
6187         * event-msw.c (mswindows_need_event): Don't wait for a new message
6188         if the queue is not empty.  Suggested by Paul Moore.
6189
6190 2002-06-12  Andy Piper  <andy@xemacs.org>
6191
6192         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
6193         for printing on accurately.
6194
6195 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
6196
6197         * event-msw.c (mswindows_wnd_proc): Add a handler for the
6198         WM_ACTIVATE message. Make sure that the frame is visible if the
6199         window is visible. This seemss to fix the problem where XEmacs
6200         appears to freeze after switching desktops with certain virtual
6201         window managers.
6202         (debug_output_mswin_message): Added code to output message
6203         parameters for WM_WINDOWPOSCHANGED, 
6204         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
6205
6206 2002-05-25  Andy Piper  <andy@xemacs.org>
6207
6208         * select-x.c (vars_of_select_x): Fix docstring of
6209         x-selection-strict-motif-ownership
6210
6211 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6212
6213         * keymap.c (get_keymap):
6214         Add comment about do_autoload GCPROs own args.
6215
6216 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6217
6218         * bytecode.c (execute_optimized_program): check_opcode ifdef
6219         ERROR_CHECK_BYTE_CODE.
6220
6221 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6222
6223         Thanks to Ben Wing and Michael Sperber.
6224
6225         * eval.c (Fcommand_execute):
6226         (Feval):
6227         (Ffuncall):
6228         (Fmacroexpand_internal):
6229         (function_argcount):
6230         callint.c (Fcall_interactively):
6231         Add comment about do_autoload GCPROs own args.
6232
6233         * (do_autoload): GCPRO both args as well as local Lisp_Object.
6234
6235         * eval.c (Ffuncall): Extra braces to placate GCC.
6236
6237 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
6238
6239         * backtrace.h (grow_specpdl):
6240         (SPECPDL_RESERVE):
6241         * EmacsFrame.c (EmacsFrameSetValues):
6242         * eval.c (grow_specpdl):
6243         * ExternalShell.c (hack_event_masks_1):
6244         * glyphs-x.c (convert_EImage_to_XImage): 
6245         (x_finalize_image_instance):
6246         * ralloc.c (page_size):
6247         (r_alloc_sbrk):
6248         * xgccache.c (gc_cache_hash):
6249         Fix unsigned comparison warnings.
6250
6251 2002-07-29  Jerry James  <james@xemacs.org>
6252
6253         * lread.c (locate_file): Any nonnegative return value indicates
6254         success if MODE is nonnegative.
6255
6256 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
6257
6258         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
6259         argument. 
6260
6261 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
6262
6263         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
6264
6265         * dumper.c (pdump_get_indirect_count):
6266         (pdump_scan_by_alignment):
6267         (pdump_dump_root_struct_ptrs):
6268         (pdump_dump_rtables):
6269         (pdump_dump_root_objects):
6270         (pdump):
6271         * nas.c (WaveOpenDataForReading):
6272         * fns.c (print_bit_vector):
6273         * font-lock.c (SINGLE_SYNTAX_STYLE):
6274         * glyphs.c (check_for_ignored_expose):
6275         (find_matching_subwindow):
6276         * glyphs-eimage.c:
6277         * imgproc.c (get_histogram):
6278         * redisplay.c (point_in_line_start_cache):
6279         * redisplay-output.c (redisplay_unmap_subwindows):
6280         * symbols.c (defsymbol_massage_name_1):
6281         (defkeyword_massage_name):
6282         (deferror_massage_name_and_message):
6283         * redisplay-x.c (x_output_string): 
6284         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
6285         * frame.h (struct frame):
6286         * filelock.c (current_lock_owner):
6287         * doprnt.c (emacs_doprnt_1):
6288         * lisp.h (struct Lisp_Bit_Vector):
6289         (DO_REALLOC):
6290         Fix warnings.
6291
6292 2002-02-13  Ben Wing  <ben@xemacs.org>
6293
6294         * event-stream.c (reset_key_echo):
6295         * event-stream.c (reset_this_command_keys):
6296         * event-stream.c (execute_command_event):
6297         If console is dead as a result of C-x 5 0, then post-command stuff
6298         needs to be careful and do only non-console-specific stuff.
6299
6300 2002-07-01  Mike Sperber <mike@xemacs.org>
6301
6302         * process-unix.c (unix_send_process): Mark coding_outstream as
6303         non-open upon SIGPIPE.
6304
6305         * event-stream.c (Fnext_event): Reorder switch cases to something
6306         that makes sense.
6307
6308 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
6309
6310         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
6311         Don't bogusly reinitialize ascii_character property.
6312
6313 2002-07-08  Mike Sperber <mike@xemacs.org>
6314
6315         * process.c (Fstart_process_internal): Do error checking before we
6316         fork off the child, so the child can't muck with the state of the
6317         parent.
6318
6319 2002-07-08  Mike Sperber <mike@xemacs.org>
6320
6321         * ralloc.c (init_ralloc): Allocate properly for pdump.
6322
6323 2002-06-12  Andy Piper  <andy@xemacs.org>
6324
6325         * glyphs.c (query_string_geometry): check the string.
6326
6327         * glyphs-widget.c (widget_logical_unit_height): cope with nil
6328         widget names.
6329
6330 2002-06-17  Jerry James  <james@xemacs.org>
6331
6332         * sysdll.c: Remove RTLD_GLOBAL initialization.
6333         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
6334
6335 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
6336
6337         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
6338
6339 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
6340
6341         * sysdep.c (sys_rename): Make sys_rename work for the case where
6342         Windows rename sets errno to EACCES if target file exists.
6343
6344 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
6345
6346         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6347         Fix detection of metric units to work on Win95
6348
6349 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
6350
6351         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
6352
6353 2002-04-25  Andy Piper  <andy@xemacs.org>
6354
6355         * redisplay.c (create_text_block): Remove extra comment trailer.
6356
6357 2002-04-24  Andy Piper  <andy@xemacs.org>
6358
6359         * redisplay.c (create_text_block): Don't actually add propagation
6360         data if the line ends after we have added a glyph.
6361
6362 2002-04-22  Andy Piper  <andy@xemacs.org>
6363
6364         * extents.c (extent_fragment_update): check for glyphs we have
6365         previously displayed.
6366         * extents.c (print_extent_1): warning removal.
6367         * extents.h: change prototype.
6368         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
6369         widths correctly for wide glyphs.
6370         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
6371         * redisplay.c (prop_type): add PROP_GLYPH.
6372         * redisplay.c (struct prop_block): add glyph type
6373         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
6374         to the propagation data.
6375         * redisplay.c (create_text_block): if there is a glyph in the
6376         propagation data use it to salt extent_fragment_update.
6377         * redisplay.c (create_string_text_block): ditto.
6378
6379 2002-04-13  Nix  <nix@esperi.demon.co.uk>
6380
6381         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
6382         * redisplay-output.c (compare_runes): Compare them.
6383         * redisplay.c: Update copyright date.
6384         * redisplay.c (pos_data): Add need_baseline_computation field.
6385         * redisplay.c (add_glyph_rune): Update ascent, descent, and
6386         need_baseline_computation; zero yoffset. Set max_pixmap_height
6387         for all pixmaps, not just automatically positioned ones.
6388         * redisplay.c (calculate_yoffset): New, compute yoffset values.
6389         * redisplay.c (calculate_baseline): New, compute textual baseline.
6390         * redisplay.c (add_glyph_rune): Call them.
6391         * redisplay.c (create_text_block): Likewise.
6392         * redisplay.c (create_overlay_glyph_block): Likewise.
6393         * redisplay.c (add_margin_runes): Likewise.
6394         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
6395
6396         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
6397         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
6398         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
6399         * redisplay-msw.c (mswindows_output_string): Likewise.
6400         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
6401         * redisplay-gtk.c (gtk_output_display_block): Likewise.
6402         * redisplay-x.c (x_output_display_block): Likewise.
6403
6404 2002-03-28  Ben Wing  <ben@xemacs.org>
6405
6406         * redisplay.c: Fixed bug in redisplay
6407         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
6408         and down of the lines, since they're bigger than the line
6409         size. (It was seen most obviously when there's a horizontal scroll
6410         bar, e.g. do C-h a glyph or something like that.) The problem was
6411         that the glyph-contrib-p setting on glyphs was ignored even if it
6412         was set properly, which it wasn't until now.
6413
6414 2002-04-24  Andy Piper  <andy@xemacs.org>
6415
6416         * lisp.h (Dynarr_end): Fix definition.
6417
6418 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
6419
6420         * redisplay.c (mark_redisplay): Remove call to
6421         update_frame_window_mirror.
6422
6423 2001-11-15  Andy Piper  <andy@xemacs.org>
6424
6425         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
6426         cygwin (again).
6427
6428 2002-02-13  Andy Piper  <andy@xemacs.org>
6429
6430         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
6431         we did in fact enqueue the XM_MAPFRAME event.
6432
6433 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
6434
6435         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
6436         to fix problem switching between virtual desktops under virtuawin
6437         virtual window manager.
6438
6439 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
6440
6441         * event-msw.c: Typo fix.
6442         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
6443         magic XM_MAPFRAME event has been sent.
6444
6445 2001-11-23  Andy Piper  <andy@xemacs.org>
6446
6447         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
6448
6449 2001-11-21  Andy Piper  <andy@xemacs.org>
6450
6451         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
6452         mouse events outside the frame.
6453
6454 2002-03-20  Andy Piper  <andy@xemacs.org>
6455
6456         * menubar-msw.c (mswindows_popup_menu): warning removal.
6457         * dialog-msw.c (dialog_popped_down): ditto.
6458
6459 2001-12-11  Andy Piper  <andy@xemacs.org>
6460
6461         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6462         * dialog-msw.c (mswindows_make_dialog_box_internal): set
6463         popup_up_p.
6464         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6465         * menubar-msw.c (mswindows_handle_wm_command): ditto.
6466         * menubar-msw.c (mswindows_popup_menu): ditto.
6467
6468 2001-10-29  Andy Piper  <andy@xemacs.org>
6469
6470         * dialog-msw.c (handle_directory_dialog_box): quit if the user
6471         cancels.
6472
6473 2002-01-03  Andy Piper  <andy@xemacs.org>
6474
6475         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6476         letters.
6477         (xrealpath): ditto.
6478
6479 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6480
6481         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6482         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6483         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6484         Detect and handle case where machine is set up for metric units
6485
6486 2002-04-02  Andy Piper  <andy@xemacs.org>
6487
6488         * dired-msw.c (mswindows_get_files): 
6489         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6490         completely handled by XEmacs. Suggested by Thomas Vogler
6491         <mail@thomas-vogler.de>.
6492
6493 2001-11-14  Andy Piper  <andy@xemacs.org>
6494
6495         * nt.c (REG_ROOT): change registry key to XEmacs.
6496
6497 2002-04-27  Andy Piper  <andy@xemacs.org>
6498
6499         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6500
6501 2002-04-26  Andy Piper  <andy@xemacs.org>
6502
6503         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6504         behavior.
6505
6506 2002-03-14  Mike Alexander  <mta@arbortext.com>
6507
6508         * event-msw.c (mswindows_unwait_process): New, remove process from
6509         wait list
6510         * process-nt.c (nt_finalize_process_data): Call
6511         mswindows_unwait_process
6512         * console-msw.h: Declare mswindows_unwait_process
6513
6514 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6515
6516         * editfns.c (Fdecode_time):
6517         (Fformat_time_string):
6518         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6519         (make_time): Warning elimination (change arg name).
6520
6521 2001-11-24  Andy Piper  <andy@xemacs.org>
6522
6523         * window.c (Fsplit_window): Doc return type.
6524
6525 2002-04-01  Andy Piper  <andy@xemacs.org>
6526
6527         * emacs.c (Fkill_emacs): Only output message box in interactive
6528         mode.
6529
6530 2002-04-26  Andy Piper  <andy@xemacs.org>
6531  
6532         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6533         cygwin.
6534
6535 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6536
6537         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6538         bit platform.
6539
6540 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6541
6542         * XEmacs 21.4.8 "Honest Recruiter" is released.
6543
6544 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6545
6546         Supersedes 2002-04-17 patch.
6547
6548         * process.h (PROCESS_LIVE_P): Use the process status as
6549         evidence of health, not the state of the input stream.
6550         (PROCESS_READABLE_P): Say if the process is readable
6551         from. (It may be dead nonetheless.)
6552         (CHECK_READABLE_PROCESS): Test for that condition.
6553
6554         * process.c (create_process): Use PROCESS_READABLE_P.
6555         (read_process_output, set_process_filter): Likewise.
6556
6557         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6558         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6559
6560         This code is #if 0'd, this is not the time to add new functions:
6561
6562         * process.c (Fprocess_readable_p): Report readability status.
6563         * process.c (Qprocess_readable_p): New, associated symbol...
6564         * process.c (syms_of_process): ... initialize it.
6565
6566 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6567
6568         * XEmacs 21.4.7 "Economic Science" is released.
6569
6570 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6571
6572         * process.h (PROCESS_LIVE_P): Use the process status as
6573         evidence of health, not the state of the input stream.
6574
6575 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6576
6577         * sysdep.c (sys_siglist): change "signum" to "signal"
6578
6579 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6580
6581         * s/darwin.h: New file.
6582         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6583         
6584 2002-04-23  Andreas Jaeger  <aj@suse.de>
6585
6586         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6587         which use lib64 for 64-bit libs.
6588         (START_FILES): Likewise.
6589
6590 2002-02-11  Mike Sperber  <mike@xemacs.org>
6591
6592         * device-x.c: 
6593         (x_IO_error_handler):
6594         (x_init_device): Temporarily keep device in static variable
6595         `device_being_initialized' so we can recover gracefully from
6596         internal XOpenDevice failure.  (XOpenDevice is documented to
6597         return NULL on failure, but sometimes calls the IO error handler
6598         instead.)
6599
6600 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6601
6602         * dired.c (Ffile_name_all_completions): Change documentation --
6603         remove reference to completion-ignored-extensions.
6604         * dired.c (vars_of_dired): Change documentation for
6605         completion-ignored-extensions -- remove reference to
6606         file-name-all-completions.
6607
6608 2002-03-06  Jerry James  <james@xemacs.org>
6609
6610         * emodules.c (emodules_load): Fix multiple loading of same module.
6611
6612 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6613         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6614         RTLD_LAZY to avoid incorrect symbol binding when using nested
6615         shared libraries on Solaris.
6616
6617 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6618
6619         * fileio.c (Ffind_file_name_handler): Improve docstring.
6620
6621 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6622
6623         * fns.c (Fmapconcat): Improve docstring.
6624
6625 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6626
6627         * device-gtk.c: Add prototype for
6628         emacs_gtk_selection_clear_event_handle.
6629         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6630         selection.  Setup signal handler for "selection_clear_event"
6631         (emacs_gtk_selection_clear_event_handle).
6632
6633         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6634         other applications owning the clipboard (based on
6635         x_handle_selection_clear).
6636
6637 2001-12-23  William M. Perry  <wmperry@gnu.org>
6638
6639         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6640         
6641 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6642
6643         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6644
6645 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6646
6647         * XEmacs 21.4.6 "Common Lisp" is released.
6648
6649 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6650
6651         * search.c (Freplace_match): Add missing sub-expression functionality.
6652
6653         * buffer.c (decode_buffer): Add a check for pointer type to
6654         decode_buffer, before gcc's CSE optimization reorders a
6655         dereference in front of the allow_string test.
6656
6657 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6658
6659         * window.c (window_loop): Fix bug that sometimes prevented
6660         window_loop() from iterating across multiple devices.  Also, at
6661         Ben's request, changed infloop-detecting code to abort() instead
6662         of silently terminating window_loop().
6663
6664 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6665
6666         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6667         * editfns.c (make_time): New function.
6668         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6669         * lisp.h (make_time): Prototype and comment it.
6670         * dired.c (wasteful_word_to_lisp): Deprecate.
6671         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6672
6673 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6674
6675         * fileio.c (auto_save_1): Use current coding system, not
6676         escape-quoted.
6677
6678 2001-11-13  Ben Wing  <ben@xemacs.org>
6679
6680         * window.c:
6681         * window.c (window_truncation_on):
6682         * window.c (syms_of_window):
6683         truncate-partial-width-windows should respect the buffer being
6684         displayed, like other redisplay vars.
6685
6686 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6687
6688         * event-stream.c (Fread_key_sequence): save current buffer.
6689
6690 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6691
6692         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6693
6694 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6695
6696         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6697
6698 2001-10-26  Mike Alexander  <mta@arbortext.com>
6699
6700         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6701
6702 2001-10-25  Andy Piper  <andy@xemacs.org>
6703
6704         * ChangeLog:
6705         * dialog-msw.c (handle_directory_proc): new function.
6706          (handle_directory_dialog_box): new fucntion.
6707          (handle_file_dialog_box): use new directory dialog support.
6708          (mswindows_make_dialog_box_internal): ditto.
6709         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6710         handling.
6711         (mswindows_find_frame): make global.
6712         * fileio.c (Fexpand_file_name): build fix.
6713         * general-slots.h: add Qdirectory.
6714         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6715         handling.
6716         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6717         cygwin not leaving win32 paths unchanged.
6718         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6719         cygwin runtime to do path conversion.
6720         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6721         (syms_of_win32): add new function.
6722         * window.c (window_loop): build fix.
6723
6724 2001-10-15  Andy Piper  <andy@xemacs.org>
6725
6726         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6727
6728 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6729
6730         * XEmacs 21.4.5 "Civil Service" is released.
6731
6732 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6733
6734         * glyphs-x.c: Force buffer-tab highlight update when moving the
6735         buffer, avoiding an ugly black border, used for keyboard focus
6736         indication, on a widget that can never have keyboard focus, the
6737         buffer tab.
6738
6739 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6740
6741         * process-unix.c (unix_open_multicast_group): Remove too much
6742         conversion between host and network byte order.
6743
6744 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6745
6746         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6747         before replacing them.
6748
6749         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6750         operation.
6751
6752         * src/window.c (undedicate_windows): Use it.
6753         * src/window.h: Add prototype.
6754
6755 2001-09-17  Ben Wing  <ben@xemacs.org>
6756
6757         * fileio.c (normalize_filename):
6758         * fileio.c (Fexpand_file_name):
6759         Fix various C++ compile errors in Andy's recent code.
6760         
6761         * callint.c (Fcall_interactively):
6762         * editfns.c (Ftemp_directory):
6763         * editfns.c (Fuser_full_name):
6764         * emacs.c (argmatch):
6765         * lread.c (locate_file_map_suffixes):
6766         * redisplay-x.c (x_ring_bell):
6767         Fix sign-compare warnings.
6768         
6769 2001-09-08  Andy Piper  <andy@xemacs.org>
6770
6771         * fileio.c (normalize_filename): copied from nt.c
6772         * (Ffile_name_directory): enable win32 paths under cygwin.
6773         * (Ffile_name_nondirectory): ditto.
6774         * (directory_file_name): ditto.
6775         * (Fexpand_file_name): ditto.
6776         * (Ffile_truename): ditto.
6777         * (Fsubstitute_in_file_name): ditto.
6778         * (Ffile_name_absolute_p): ditto.
6779         * (Ffile_readable_p): ditto.
6780
6781 2001-09-08  Andy Piper  <andy@xemacs.org>
6782
6783         * device-msw.c (mswindows_finish_init_device): remove dde
6784         initialization.
6785         * device-msw.c (mswindows_init_dde): factor out from
6786         mswindows_finish_init_device()
6787         * device-msw.c (init_mswindows_very_early): new function
6788         initialize but don't enable dde.
6789         * emacs.c (main_1): call init_mswindows_very_early.
6790         * event-msw.c:
6791         * event-msw.c (mswindows_dde_callback): only execute when we are
6792         ready.
6793         * symsinit.h: declare init_mswindows_very_early.
6794
6795 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6796
6797         [sjt: This has been in 21.5 for months with no complaints.]
6798
6799         * console.h (struct console_methods): Added flags member.
6800         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6801         (CONMETH_IMPL_FLAG):
6802         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6803         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6804
6805         * device.c (window_system_pixelated_geometry): Use the above macros.
6806
6807         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6808         implememntation flag.
6809         * device.h (DEVICE_DISPLAY_P): Use it.
6810
6811         * frame.c (delete_frame_internal): Use the above macro.
6812
6813         * redisplay.c (redisplay_device): Use it.
6814         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6815         (redisplay_frame): Ditto.
6816
6817         * device-msw.c (mswindows_device_implementation_flags): Removed.
6818         (msprinter_device_implementation_flags): Removed.
6819         (console_type_create_device_mswindows): Removed references to
6820         implementation_flags methods, set implementation flags here.
6821         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6822
6823         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6824         (console_type_create_device_gtk): Removed method declaration.
6825         Added commented out statement which semantically matches the
6826         commented out statement in the above removed method.
6827
6828 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6829
6830         The attached patch fixes a few warnings. 
6831
6832         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6833         * src/frame-gtk.c: guard against GNOME calls in GTK only
6834         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6835         * src/select-gtk.c: prototype lisp_to_time
6836
6837 2001-06-08  Ben Wing  <ben@xemacs.org>
6838
6839         ------ gc-in-window-procedure fixes ------
6840         
6841         * alloc.c:
6842         * alloc.c (struct post_gc_action):
6843         * alloc.c (register_post_gc_action):
6844         * alloc.c (run_post_gc_actions):
6845         * alloc.c (garbage_collect_1):
6846         Create "post-gc actions", to avoid those dreaded "GC during window
6847         procedure" problems.
6848
6849         * event-msw.c:
6850         Abort, clean and simple, when GC in window procedure.  We want
6851         to flush these puppies out.
6852
6853         * glyphs-msw.c:
6854         * glyphs-msw.c (finalize_destroy_window):
6855         * glyphs-msw.c (mswindows_finalize_image_instance):
6856         Use a post-gc action when destroying subwindows.
6857
6858         * lisp.h:
6859         Declare register_post_gc_action().
6860
6861         * scrollbar-msw.c:
6862         * scrollbar-msw.c (unshow_that_mofo):
6863         Use a post-gc action when unshowing scrollbar windows, if in gc.
6864
6865         * redisplay.c (mark_redisplay):
6866         Add comment about the utter evilness of what's going down here.
6867
6868         ------ cygwin setitimer fixes ------
6869         
6870         * Makefile.in.in (sheap_objs):
6871         * Makefile.in.in (profile_objs):
6872         * Makefile.in.in (objs):
6873         Compile profile.c only when HAVE_SETITIMER.
6874         
6875         * nt.c (mswindows_sigset):
6876         * nt.c (mswindows_sighold):
6877         * nt.c (mswindows_sigrelse):
6878         * nt.c (mswindows_sigpause):
6879         * nt.c (mswindows_raise):
6880         * nt.c (close_file_data):
6881         Style fixes.
6882         
6883         * nt.c:
6884         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6885         
6886         * profile.c:
6887         * profile.c (Fstart_profiling):
6888         * profile.c (Fstop_profiling):
6889         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6890         instead of just plain setitimer().
6891         
6892         * signal.c:
6893         * signal.c (set_one_shot_timer):
6894         * signal.c (alarm):
6895         Define qxe_setitimer() as an encapsulation around setitimer() --
6896         call setitimer() directly unless Cygwin or MS Win, in which case
6897         we use our simulated version in win32.c.
6898         
6899         * systime.h:
6900         * systime.h (struct itimerval):
6901         * systime.h (ITIMER_REAL):
6902         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6903         comment about "qxe" and the policy regarding encapsulation.
6904
6905         * win32.c:
6906         * win32.c (setitimer_helper_proc):
6907         * win32.c (setitimer_helper_period):
6908         * win32.c (setitimer_helper):
6909         * win32.c (mswindows_setitimer):
6910         Move setitimer() emulation here, so Cygwin can use it.
6911         Rename a couple of functions and variables to be longer and more
6912         descriptive.  In setitimer_helper_proc(), send the signal
6913         using either mswindows_raise() or (on Cygwin) kill().  If for
6914         some reason we are still getting lockups, we'll change the kill()
6915         to directly invoke the signal handlers.
6916
6917         ------ windows shell fixes ------
6918         
6919         * callproc.c:
6920         * ntproc.c:
6921         Comments about how these two files must die.
6922
6923         * callproc.c (init_callproc):
6924         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6925         not just COMSPEC. (more correct and closer to FSF.) Don't
6926         force a value for SHELL into the environment. (Comments added
6927         to explain why not.)
6928         
6929         * nt.c (init_user_info):
6930         Don't shove a fabricated SHELL into the environment.  See above.
6931
6932 2001-06-01  Ben Wing  <ben@xemacs.org>
6933
6934         * Makefile.in.in (ldflags):
6935         eliminate that pesky "defaulting to 00401000" warning.
6936         * nt.h:
6937         eliminate warnings.
6938
6939 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6940
6941         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6942         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6943
6944 2001-04-24  Jerry James <james@xemacs.org>
6945
6946         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6947         correct order.
6948
6949 2001-06-01  Ben Wing  <ben@xemacs.org>
6950
6951         * event-msw.c (debug_mswin_messages):
6952         conditionalize the messages that were causing compile errors.
6953         (if only macros could generate #ifdef statements ...)
6954
6955 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6956
6957         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6958
6959 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6960
6961         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6962
6963 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6964
6965         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6966         * process-unix.c (unix_canonicalize_host_name):
6967         sysdep.c (init_system_name):
6968         Use it to conditionally support IPv6 canonicalization.
6969
6970 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6971
6972         * event-msw.c:
6973         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6974
6975 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6976
6977         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6978         attempt is made to scroll when no scroll bar is available.
6979
6980 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6981
6982         * input-method-motif.c (XIM_delete_frame): New callback.
6983         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6984         got deleted from 21.4.3.)
6985
6986 2001-06-01  Ben Wing  <ben@xemacs.org>
6987
6988         * nt.c (mswindows_utime):
6989         * nt.c (close_file_data):
6990         fix off-by-one-indirection error.
6991
6992 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6993
6994         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6995         because set_file_times() now takes Lisp_Object path, instead of
6996         char*.
6997         * nt.c: Include buffer.h.
6998         * nt.c (convert_from_time_t): New.
6999         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
7000         not set mtime correctly.
7001         * nt.h: Declare mswindows_utime().
7002         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
7003         path, instead of char*.
7004         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
7005
7006 2001-05-30  Ben Wing  <ben@xemacs.org>
7007
7008         For 21.4:
7009
7010         (Stephen, just take all event-msw.c patches.  This includes
7011         the "iconify" fix below.)
7012
7013         * event-msw.c:
7014         * event-msw.c (mswindows_dequeue_dispatch_event):
7015         * event-msw.c (assert):
7016         * event-msw.c (emacs_mswindows_quit_p):
7017         * event-msw.c (debug_mswin_messages):
7018         * event-msw.c (debug_output_mswin_message):
7019         * event-msw.c (vars_of_event_mswindows):
7020         Fix yet more problems with C-g handling.
7021         Implement debug-mswindows-events.
7022         
7023 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7024
7025         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
7026         
7027 2001-05-23  Ben Wing  <ben@xemacs.org>
7028
7029         * event-msw.c (winsock_writer):
7030         * event-msw.c (winsock_closer):
7031         prior kludgy code was clobbering the buffer, thinking it was
7032         "unused" space to store an unneeded return value; instead, use
7033         the variable we've already got staring us in the face.
7034
7035 2001-05-17  Andy Piper  <andy@xemacs.org>
7036
7037         * sysfile.h: don't assume that file attributes are boolean
7038
7039 2001-05-23  Ben Wing  <ben@xemacs.org>
7040
7041         * device-msw.c (msprinter_init_device):
7042         signal an error rather than crash with an unavailable network
7043         printer (from Mike Alexander).
7044         
7045         * event-msw.c:
7046         * event-msw.c (struct winsock_stream):
7047         * event-msw.c (winsock_writer):
7048         * event-msw.c (winsock_closer):
7049         * event-msw.c (make_winsock_stream_1):
7050         cleanup headers.  fix (hopefully) an error with data corruption
7051         when sending to a network connection.
7052
7053         * fileio.c (Fexpand_file_name): Fix evil code that attempts
7054         to handle the ~user prefix by (a) always assuming we're referencing
7055         ourselves and not even verifying the user -- hence any file with
7056         a tilde as its first char is invalid! (b) if there wasn't a slash
7057         following the filename, the pointer was set *past* the end of
7058         file and we started reading from uninitialized memory.  Now we
7059         simply treat these as files, always.
7060
7061         * buffer.c (common_init_complex_vars_of_buffer): comment change.
7062         
7063 2001-05-19  Ben Wing  <ben@xemacs.org>
7064
7065         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
7066
7067         * process-nt.c:
7068         * process-nt.c (vars_of_process_nt):
7069         remove unused mswindows-quote-process-args.  rec for 21.4.
7070         
7071 2001-05-12  Ben Wing  <ben@xemacs.org>
7072
7073         * event-msw.c (mswindows_dde_callback):
7074         * event-msw.c (mswindows_wnd_proc):
7075         eliminate cygwin warnings.
7076
7077 2001-05-06  Ben Wing  <ben@xemacs.org>
7078
7079         * console-msw.h:
7080         * device-msw.c:
7081         * device-msw.c (print_dialog_worker):
7082         * device-msw.c (mswindows_handle_print_dialog_box):
7083         * device-msw.c (syms_of_device_mswindows):
7084         * dialog-msw.c (mswindows_make_dialog_box_internal):
7085         * general-slots.h:
7086         implement printing the selection when it's selected.
7087
7088 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
7089
7090         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
7091
7092 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7093
7094         * lisp.h (EMACS_INT_MAX): This should be one bit less since
7095         EMACS_INT is signed.
7096
7097 2001-04-15  Michael Lausch  <mla@1012surf.net>
7098
7099         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
7100         gtk_widget_request_size() to give scrollbar >0 width for
7101         GTK >1.2.8.
7102
7103 2001-05-30  William M. Perry  <wmperry@gnu.org>
7104
7105         * event-gtk.c: Check for buttons as modifier keys.
7106
7107 2001-05-25  Craig Lanning  <CraigL@Knology.net>
7108
7109         * s\mingw32.h:
7110         Properly find MinGW's <process.h> inside Cygwin's restructured
7111         include directories.  Don't try to include <cygwin/version.h>
7112         since we are dropping support for MinGW in versions of Cygwin
7113         earlier than b21.
7114         * nt.c:
7115         Drop support for MinGW in versions of Cygwin before b21.
7116         * sysdep.c:
7117         Properly find MinGW's <process.h> inside Cygwin's restructured
7118         include directories.
7119         * syswindows.h:
7120         Drop support for MinGW in versions of Cygwin before b21.
7121         * unexcw.c:
7122         Even though a.out.h is no longer detected by configure, allow
7123         MinGW to use it until we figure out how to do the job with Win32.
7124
7125 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
7126
7127         * syntax.c (find_start_of_comment):
7128         Fix `unbalanced parentheses' bug when dealing with mixed comment
7129         styles in c++/java/etc. mode
7130
7131 2001-05-29  Mike Alexander  <mta@arbortext.com>
7132
7133         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
7134         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
7135
7136 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
7137
7138         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
7139
7140 2001-03-31  Mike Sperber <mike@xemacs.org>
7141
7142         * search.c (Freplace_match): Support FSF-style specification of
7143         match subexpression when applied to a buffer.
7144
7145 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7146
7147         * event-stream.c (is_scrollbar_event): add missing semicolon
7148
7149 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
7150
7151         * Makefile.in.in: Use TAR macro instead of hardcoding
7152           tar.  Allows use of GNU tar instead of system tar
7153
7154 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7155
7156         * event-stream.c (is_scrollbar_event): add missing semicolon
7157
7158 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7159
7160         * XEmacs 21.4.3 "Academic Rigor" is released.
7161
7162 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7163
7164         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
7165
7166 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7167
7168         * buffer.c (Vcase_fold_search): Remove obsolete
7169           comment about non ASCII case-fold-search.  This
7170           bug has been fixed by case-table changes.
7171
7172 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
7173
7174         * event-msw.c: Restore include of events-mod.h.
7175
7176 2001-04-22   zhaoway  <zw@debian.org>
7177
7178         * event-stream.c (is_scrollbar_event): Noop returning 0 if
7179         !HAVE_SCROLLBARS.
7180
7181 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
7182
7183         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
7184
7185 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
7186
7187         * mule-charset.c (Fmake_charset): Add missing else.
7188
7189 2001-04-23  Ben Wing  <ben@xemacs.org>
7190
7191         * event-msw.c (FAKE_MOD_QUIT):
7192         * event-msw.c (mswindows_dequeue_dispatch_event):
7193         * event-msw.c (mswindows_wnd_proc):
7194         * event-msw.c (emacs_mswindows_quit_p):
7195         Get critical quit working.
7196
7197 2001-05-05  Ben Wing  <ben@xemacs.org>
7198
7199         * console-msw.h:
7200         * device-msw.c:
7201         * device-msw.c (mswindows_get_default_margin):
7202         * frame-msw.c (mswindows_size_frame_internal):
7203         * frame-msw.c (msprinter_init_frame_1):
7204         * frame-msw.c (vars_of_frame_mswindows):
7205         Change top/bottom margin defaults to 0.5 inches.
7206
7207 2001-05-01  Martin Buchholz  <martin@xemacs.org>
7208
7209         Fix link error with gcc 3.0 on Linux.
7210         * terminfo.c (UP): Remove.
7211         * terminfo.c (BC): Remove.
7212         * terminfo.c (PC): Remove.
7213         They weren't used, and in any case, these symbols should be
7214         defined in the *library*.
7215
7216 2001-05-03  Martin Buchholz  <martin@xemacs.org>
7217
7218         * s/aix4.h: Fix crash with xlc -O3.
7219         Improve comment explaining how -O3 works.
7220
7221 2001-04-15  Ben Wing  <ben@xemacs.org>
7222
7223         * event-stream.c:
7224         * event-stream.c (Fnext_event):
7225         * event-stream.c (is_scrollbar_event):
7226         * event-stream.c (execute_command_event):
7227         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
7228         crash' problem.  His fix introduces other problems.  We filter
7229         out scrollbar events specifically, making them somewhat invisible
7230         to command-building, and not appearing in `this-command-keys'.
7231         More work is still needed (see comments in event-stream.c), but
7232         this fixes all the major problems.
7233
7234 2001-04-20  Ben Wing  <ben@xemacs.org>
7235
7236         * .cvsignore: Added stuff for Windows.
7237
7238 2001-04-28  Ben Wing  <ben@xemacs.org>
7239
7240         * buffer.c (Ferase_buffer):
7241         * editfns.c (buffer_insert1):
7242         * editfns.c (Finsert_before_markers):
7243         * editfns.c (Finsert_string):
7244         * editfns.c (Finsert_char):
7245         * editfns.c (Fdelete_region):
7246         * editfns.c (Fwiden):
7247         * editfns.c (Fnarrow_to_region):
7248         remove bogus lines setting zmacs_region_stays to 0.
7249         
7250 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7251
7252         * process-unix.c (unix_open_network_stream): If connect() fails
7253         invalidate file descriptor after closing it.
7254
7255 2001-03-08  Mike Alexander  <mta@arbortext.com>
7256
7257         * event-msw.c (mswindows_need_event_in_modal_loop):
7258         Don't dispatch a message if we didn't get one.
7259         (mswindows_need_event):
7260         Terminate the correct process when one exits instead of the first
7261         one on Vprocess_list and look for process termination when in
7262         mswindows_protect_modal_loop.
7263
7264 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
7265
7266         * XEmacs 21.4.1 "Copyleft" is released.
7267
7268 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7269
7270         * input-method-motif.c (XIM_delete_frame): New callback.
7271         (XIM_init_frame): Register it.
7272
7273 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7274
7275         * XEmacs 21.4.0 "Solid Vapor" is released.
7276
7277 2001-04-15  Ben Wing  <ben@xemacs.org>
7278
7279         * cmdloop.c (call_command_loop):
7280         Fix braino in bit-rotting code.
7281         
7282 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
7283
7284         * extents.c (Fset_extent_endpoints): Force creation of extent info
7285         in buffer_or_string.
7286
7287         * extents.c (process_extents_for_insertion_mapper): Correctly
7288         check for open-open zero-length extents.
7289
7290 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7291
7292         * lisp.h: New typedefs Memory_count, Element_count.
7293         * regex.c:
7294         * regex.h:
7295         Sign-compare warning elimination: several unsigned -> signed.
7296         Based on work by Ben Wing <ben@xemacs.org>.
7297
7298 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
7299
7300         * XEmacs 21.2.47 "Zephir" is released.
7301
7302 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
7303
7304         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
7305
7306 2001-04-03  Mike Sperber <mike@xemacs.org>
7307
7308         * search.c: Revert previous patch due because of release.
7309
7310 2001-03-30  Ben Wing  <ben@xemacs.org>
7311
7312         * s\cygwin32.h:
7313         Add missing killpg prototype.
7314
7315         * elhash.c:
7316         Add a comment about fixing problems when a new entry is added
7317         while mapping.
7318
7319         * frame-msw.c (mswindows_init_frame_1):
7320         Fix compile warnings.
7321
7322         * menubar.c (vars_of_menubar):
7323         Provide `menu-accelerator-support' to indicate that we properly
7324         support %_ in menu specifications, so that package code can
7325         conditionalize on this (and remove %_ from menu specifications
7326         on older versions).
7327
7328         * event-msw.c:
7329         * scrollbar-msw.c:
7330         * scrollbar-msw.c (can_scroll):
7331         * scrollbar-msw.h:
7332         Fix handling of mouse wheel under Windows to follow standards --
7333         now scrolls window under pointer, not selected window.
7334
7335 2001-03-31  Mike Sperber <mike@xemacs.org>
7336
7337         * search.c (Freplace_match): Support FSF-style specification of
7338         match subexpression when applied to a buffer.
7339
7340 2001-03-15  Martin Buchholz  <martin@xemacs.org>
7341
7342         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
7343         function to modify KEYMAP, so map over a copy of the hash table.
7344
7345 2001-03-21  Martin Buchholz <martin@xemacs.org>
7346
7347         * XEmacs 21.2.46 "Urania" is released.
7348
7349 2001-03-20  Dan Holmsand  <dan@eyebee.com>
7350
7351         * realpath.c (xrealpath): Make file-truename work with symlinks to
7352         /cygdrive paths on cygwin. Always lowercase drive-letters on
7353         native windows.
7354         (cygwin_readlink): Don't try to find canonical filename unless
7355         file exists.
7356
7357 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
7358
7359         * ChangeLog: Log GTK merge.
7360
7361         * dumper.c:
7362         * select-x.c:
7363         * specifier.c:
7364         * symeval.h:
7365         Revert gratuitous whitespace changes from GTK merge.
7366
7367         * emacs.c: Document end of complex #ifdef @ l. 1495.
7368
7369
7370 2001-03-12  Andy Piper  <andy@xemacs.org>
7371
7372         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
7373         have to do likewise.
7374
7375 2001-03-12  Andy Piper  <andy@xemacs.org>
7376
7377         * sysdep.c: we only support mingw now.
7378
7379 2001-03-09  Andy Piper  <andy@xemacs.org>
7380
7381         * unexcw.c (copy_executable_and_dump_data_section): making approx
7382         overrun a warning only.
7383
7384 2001-03-10  William M. Perry  <wmperry@aventail.com>
7385
7386         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
7387         satisfy Stephen's identical-after-cpp plea.
7388
7389 2001-03-02  Ben Wing  <ben@xemacs.org>
7390
7391         * cmds.c:
7392         * cmds.c (Fforward_char):
7393         * syntax.c:
7394         * window.c:
7395
7396         Augment documentation of the most common motion commands to make
7397         note of the shifted-motion support.
7398         
7399 2001-03-02  Ben Wing  <ben@xemacs.org>
7400
7401         * nt.c (mswindows_fstat):
7402         * nt.c (mswindows_stat):
7403         * search.c (boyer_moore):
7404         Fix compile warnings under Windows.
7405         
7406         * sysdep.c (sys_readdir):
7407         Fix buggy filename-conversion code under Mule.
7408
7409 2001-03-09  William M. Perry  <wmperry@aventail.com>
7410
7411         * Makefile.in.in:
7412         * config.h.in:
7413         * console.c:
7414         * console.h:
7415         * device.c:
7416         * device.h:
7417         * dragdrop.c:
7418         * emacs.c:
7419         * event-stream.c:
7420         * events.c:
7421         * events.h:
7422         * faces.c:
7423         * frame.h:
7424         * general-slots.h:
7425         * glyphs.c:
7426         * gutter.c:
7427         * inline.c:
7428         * lisp.h:
7429         * lrecord.h:
7430         * make-src-depend:
7431         * redisplay-output.c:
7432         * redisplay.c:
7433         * symsinit.h:
7434         * sysfile.h:
7435         * toolbar.c:
7436         * window.c:
7437         The Great GTK Merge.
7438
7439         * ChangeLog.GTK:
7440         * console-gtk.c:
7441         * console-gtk.h:
7442         * device-gtk.c:
7443         * emacs-marshals.c:
7444         * emacs-widget-accessors.c:
7445         * event-gtk.c:
7446         * frame-gtk.c:
7447         * gccache-gtk.c:
7448         * gccache-gtk.h:
7449         * glade.c:
7450         * glyphs-gtk.c:
7451         * glyphs-gtk.h:
7452         * gtk-glue.c:
7453         * gtk-xemacs.c:
7454         * gtk-xemacs.h:
7455         * gui-gtk.c:
7456         * gui-gtk.h:
7457         * menubar-gtk.c:
7458         * native-gtk-toolbar.c:
7459         * objects-gtk.c:
7460         * objects-gtk.h:
7461         * redisplay-gtk.c:
7462         * scrollbar-gtk.c:
7463         * scrollbar-gtk.h:
7464         * select-gtk.c:
7465         * toolbar-gtk.c:
7466         * ui-byhand.c:
7467         * ui-gtk.c:
7468         * ui-gtk.h:
7469         The Great GTK Merge: new files.
7470
7471 2001-02-26  Ben Wing  <ben@xemacs.org>
7472
7473         Reapplied Lstream change.
7474
7475 2001-02-26  Ben Wing  <ben@xemacs.org>
7476
7477         Undid the last change, since it is more controversial than I
7478         thought.  It should be back in at some point soon.
7479         
7480 2001-02-25  Ben Wing  <ben@xemacs.org>
7481
7482         * buffer.c:
7483         * callproc.c (Fold_call_process_internal):
7484         * event-msw.c (ntpipe_slurp_reader):
7485         * event-msw.c (ntpipe_shove_writer):
7486         * event-msw.c (winsock_reader):
7487         * event-msw.c (winsock_writer):
7488         * file-coding.c:
7489         * file-coding.c (detect_eol_type):
7490         * file-coding.c (detect_coding_type):
7491         * file-coding.c (determine_real_coding_system):
7492         * file-coding.c (Fdetect_coding_region):
7493         * file-coding.c (decoding_reader):
7494         * file-coding.c (decoding_writer):
7495         * file-coding.c (mule_decode):
7496         * file-coding.c (Fdecode_coding_region):
7497         * file-coding.c (encoding_reader):
7498         * file-coding.c (encoding_writer):
7499         * file-coding.c (mule_encode):
7500         * file-coding.c (Fencode_coding_region):
7501         * file-coding.c (detect_coding_sjis):
7502         * file-coding.c (decode_coding_sjis):
7503         * file-coding.c (encode_coding_sjis):
7504         * file-coding.c (detect_coding_big5):
7505         * file-coding.c (decode_coding_big5):
7506         * file-coding.c (encode_coding_big5):
7507         * file-coding.c (detect_coding_ucs4):
7508         * file-coding.c (decode_coding_ucs4):
7509         * file-coding.c (encode_coding_ucs4):
7510         * file-coding.c (detect_coding_utf8):
7511         * file-coding.c (decode_coding_utf8):
7512         * file-coding.c (encode_coding_utf8):
7513         * file-coding.c (detect_coding_iso2022):
7514         * file-coding.c (decode_coding_iso2022):
7515         * file-coding.c (encode_coding_iso2022):
7516         * file-coding.c (decode_coding_no_conversion):
7517         * file-coding.c (encode_coding_no_conversion):
7518         * glyphs-x.c (write_lisp_string_to_temp_file):
7519         * gpmevent.c (tty_get_foreign_selection):
7520         * lisp.h:
7521         * lstream.c:
7522         * lstream.c (Lstream_flush_out):
7523         * lstream.c (Lstream_adding):
7524         * lstream.c (Lstream_write_1):
7525         * lstream.c (Lstream_write):
7526         * lstream.c (Lstream_raw_read):
7527         * lstream.c (Lstream_read_more):
7528         * lstream.c (Lstream_read):
7529         * lstream.c (Lstream_unread):
7530         * lstream.c (Lstream_fputc):
7531         * lstream.c (stdio_reader):
7532         * lstream.c (stdio_writer):
7533         * lstream.c (filedesc_reader):
7534         * lstream.c (filedesc_writer):
7535         * lstream.c (lisp_string_reader):
7536         * lstream.c (struct fixed_buffer_stream):
7537         * lstream.c (make_fixed_buffer_input_stream):
7538         * lstream.c (make_fixed_buffer_output_stream):
7539         * lstream.c (fixed_buffer_reader):
7540         * lstream.c (fixed_buffer_writer):
7541         * lstream.c (struct resizing_buffer_stream):
7542         * lstream.c (resizing_buffer_writer):
7543         * lstream.c (dynarr_writer):
7544         * lstream.c (lisp_buffer_reader):
7545         * lstream.c (lisp_buffer_writer):
7546         * lstream.h:
7547         * lstream.h (lstream_implementation):
7548         * lstream.h (struct lstream):
7549         * md5.c (Fmd5):
7550         * process-nt.c (nt_send_process):
7551         * process-unix.c (unix_send_process):
7552         
7553         Correct Lstream lossage due to mixing of signed and unsigned
7554         quantities.  All Lstream uses of size_t and ssize_t are now a
7555         single signed data type Lstream_data_count.  This fixes problems
7556         under Windows with sending large quantities of data to a process,
7557         and may well fix other subtle bugs.
7558
7559 2001-02-23  Martin Buchholz <martin@xemacs.org>
7560
7561         * XEmacs 21.2.45 "Thelxepeia" is released.
7562
7563 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7564
7565         * lisp-union.h (XSETINT): 
7566         (XSETCHAR):
7567         (XSETOBJ): 
7568         Reverse previous change of 2001-02-06.
7569
7570 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7571
7572         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7573         buffers.
7574         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7575         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7576         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7577         * regex.c (POS_AS_IN_BUFFER): removed
7578         * regex.c (re_search_2):
7579         * regex.c (re_match_2):
7580         Don't use an offset of 1 when calculating buffer positions, since
7581         `BI_BUF_BEGV' does it already.
7582
7583 2001-02-18  Wim Dumon  <wim@easics.be>
7584
7585         * insdel.c (prepare_to_modify_buffer): Also check for
7586         supersession when clash-detection is enabled. 
7587
7588 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7589
7590         * regex.c (re_match_2_internal):
7591         Convert temp characters from 'const unsigned char' to 're_char'.
7592         Fix crashing bug with extended characters under mule.
7593         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7594         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7595         font-lock, pdump, and new syntax-table code.
7596         * syntax.c (find_start_of_comment):
7597         (find_end_of_comment):
7598         (forward-comment):
7599         Fix crashing bugs involving moving beyond end of buffer.
7600         * syntax.c (find_start_of_comment):
7601         Fixed logic to allow proper detection of cases where the same
7602         character is used to end both a two-char comment start and a
7603         two-char comment end sequence. Fixes `(forward-comment -1)'.
7604         * syntax.c (find_start_of_comment):
7605         Return position just past last comment-end character for all cases
7606         (previously was only done for two-char comment-end sequences).
7607         * syntax.c (forward-comment):
7608         Take value returned from `find_end_of_comment', rather than
7609         incrementing it.
7610         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7611         Properly deal with BUFFERP (syntax_cache.object)
7612
7613 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7614
7615         * alloc.c (Fgarbage_collect): 
7616         * alloc.c (make_bit_vector_from_byte_vector):
7617         -Wsign-compare-correctness.
7618
7619 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7620
7621         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7622         (XSETCHAR): Likewise.
7623         (XSETOBJ): Likewise.
7624
7625 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7626
7627         * mule-canna.c (canna-func-delete_previous): 
7628         Rename to canna-func-delete-previous.
7629
7630 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7631
7632         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7633
7634 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7635
7636         * font-lock.c (find_context): Fix C++ compile errors introduced by
7637         recent patch
7638
7639 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7640
7641         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7642         pragma, but earlier ones barf on the same pragma.
7643
7644 2001-02-06  Mike Sperber <mike@xemacs.org>
7645
7646         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7647         `configure-mule-lisp-directory'.
7648
7649 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7650
7651         Make sure dump-id.c is compiled in the same way as other .c's.
7652         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7653         * dump-id.h: Remove.
7654         * emacs.c: Move dump-id.h into dumper.h.
7655         * dumper.h: Move dump-id.h into dumper.h.
7656         * Makefile.in.in:
7657         Use standard .c.o rule for building dump-id.o.
7658         Remove preprocessor flags from link command.
7659         Add dump-id.o to ${otherobjs} if PDUMP.
7660
7661 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7662
7663         Port FSF 20.7 syntax table improvements.
7664         * syntax.c.
7665         * syntax.h.
7666
7667         Fixups for new syntax table stuff.
7668         * dired.c: Include syntax.c.
7669         (Fdirectory_files): Initialize regex_match_object and
7670         regex_emacs_buffer.
7671         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7672         and Fget_char_property.
7673
7674         Use ported FSF 20.7 syntax table improvements.
7675         * font-lock.c.
7676         * regex.c.
7677         * search.c.
7678         
7679 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7680
7681         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7682         Unixware's enum boolean from sys/types.h.
7683
7684 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7685
7686         Fix support for building with latest Purify.
7687         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7688         (PURIFY_FLAGS): Likewise.
7689
7690 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7691
7692         * fileio.c (lisp_string_set_file_times): New.
7693         * fileio.c (Fcopy_file): Use it.
7694         Fixes bug:
7695         (copy-file filename non-ascii-filename t t)
7696         ==> No such file or directory, non-ascii-filename
7697
7698 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7699
7700         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7701         USHRT_MAX seems clearer than ~0 anyways.
7702
7703 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7704
7705         dumper improvements.  Inspired by Olivier.
7706         * dumper.c (pdump_max_align): New.
7707         * dumper.c (pdump_add_entry): Use pdump_max_align.
7708         * dumper.c (pdump_get_entry_list): Likewise.
7709         * dumper.c (pdump_scan_by_alignment): Likewise.
7710         Don't iterate through unnecessary alignments.
7711         * dumper.c (pdump_file_get): No need to align result of malloc().
7712         * dumper.c (pdump_mallocadr): Remove.  
7713         The result of malloc() is guaranteed to be maximally aligned.
7714         * dumper.c: s/elmt/elt/g;
7715         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7716         * dumper.c (pdump_alert_undump_object): Likewise.
7717         * dumper.c (pdump_align_table): 
7718         Don't support alignments > 64.
7719         Store ALIGNOF's, not shift counts, in table.
7720
7721 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7722
7723         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7724         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7725         * systime.h: Use HAVE_UTIME.
7726         * sysdep.c (struct utimbuf): Remove.
7727         * sysdep.c (set_file_times): Prefer utime() to utimes().
7728         * config.h.in (HAVE_UTIME): New.
7729         * config.h.in (HAVE_UTIME_H): Remove.
7730         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7731
7732 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7733
7734         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7735
7736 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7737
7738         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7739
7740 2001-02-08  Martin Buchholz <martin@xemacs.org>
7741
7742         * XEmacs 21.2.44 "Thalia" is released.
7743
7744 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7745
7746         Fixes crashes in kill-emacs on some systems.
7747         * process-unix.c (unix_kill_child_process):
7748         It's OK for kill() to fail with ESRCH.
7749
7750 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7751
7752         Contortions to make .gdbinit tricks work on most systems.
7753         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7754         * alloc.c (dbg_valmask): Make non-const.
7755         * alloc.c (dbg_typemask): Make non-const.
7756         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7757         * alloc.c (dbg_valbits): Make non-const.
7758         * alloc.c (dbg_gctypebits): Make non-const.
7759         * .gdbinit (decode_object): Make it work with AIX cc.
7760
7761 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7762
7763         * elhash.c (make_general_lisp_hash_table):
7764         Use simpler and more efficient calloc to clear entries.
7765
7766 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7767
7768         * window.c (window_scroll): Work around an AIX C compiler bug.
7769         Fixes 'scroll-up' does nothing problem with xlC.
7770
7771 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7772
7773         * .gdbinit: Remove obsolete comment.
7774
7775 2001-01-31  Mike Alexander  <mta@arbortext.com>
7776
7777         * select.c (Fown_selection_internal): Set owned_p for device
7778         method correctly.
7779
7780 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7781
7782         Port to g++ 2.97.
7783         "not" cannot be used as a macro name as it is an operator in C++
7784         * config.h.in: Stop #defining `not'.
7785         * chartab.c (check_category_char): not ==> not_p
7786         * chartab.h: Likewise.
7787         * regex.c (re_match_2_internal): Likewise.
7788
7789 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7790
7791         * lisp-disunion.h: Fix up comments.
7792
7793 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7794
7795         * keymap.c (define_key_check_and_coerce_keysym):
7796         (syms_of_keymap):
7797         Support mouse-6 and mouse-7 bindings in the obvious way.
7798
7799 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7800
7801         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7802
7803 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7804
7805         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7806         Previous patch missed DEFVAR_INT_MAGIC.
7807         Make sure future DEFVAR_foo use correct types.
7808         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7809         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7810         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7811         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7812         * (DEFVAR_INT): Likewise.
7813         * redisplay.c (vertical_clip): Should be of type Fixnum.
7814         * redisplay.c (horizontal_clip): Likewise.
7815         * lisp.h (dump_add_opaque_int): New.
7816         (dump_add_opaque_fixnum): New.
7817
7818 2001-01-29  Andy Piper  <andy@xemacs.org>
7819
7820         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7821         since they can be eval'ed
7822
7823 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7824
7825         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7826         Oops, XEmacs redefines `class'.  Use `typename' instead.
7827
7828 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7829
7830         * dumper.c: Fix C++ compile errors.
7831
7832 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7833
7834         * tparam.c: Use correct prototypes.
7835
7836 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7837
7838         * sysproc.h: #include util.h for NetBSD's openpty.
7839
7840 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7841
7842         More 64-bit correctness.
7843         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7844         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7845         Fix up comments.
7846         This finally finishes the 64-bit SGI port.
7847         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7848         * symbols.c: Fix up comments and type casts.
7849         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7850         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7851         * symeval.h (Fixnum): New type.
7852         * symeval.h (symbol_value_type): Fix up comment.
7853
7854         * commands.h:
7855         * nt.c:
7856         * emacs.c:
7857         * data.c:
7858         * redisplay.c:
7859         * abbrev.c:
7860         * dired-msw.c:
7861         * event-Xt.c:
7862         * eldap.c:
7863         * window.c:
7864         * sound.c:
7865         * event-stream.c:
7866         * eval.c:
7867         * buffer.c:
7868         * mule-canna.c: A million DEFVAR_INTs here...
7869         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7870         * extents.c:
7871         * cmdloop.c:
7872         * lisp.h:
7873         * select-x.c:
7874         * console-x.h:
7875         * event-msw.c:
7876         * mule-wnnfns.c:
7877         * hpplay.c:
7878         * ralloc.c:
7879         * alloc.c:
7880         * keymap.c:
7881         * profile.c:
7882         s/int/Fixnum/g in DEFVAR_INT declarations.
7883
7884 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7885
7886         Port pdump to SGI alignment-sensitive environment.
7887         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7888         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7889         properly aligned.
7890         Define and use aligned reading and writing macros.
7891         Use buffered stdio instead of posix i/o for faster dumping.
7892         Eliminate kludgy 256 byte space for header.
7893         Read and write from dump file using structs for alignment safety.
7894         * dumper.c (pdump_align_stream): New.
7895         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7896         * dumper.c (PDUMP_READ_ALIGNED): New.
7897         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7898         * dumper.c (pdump_static_Lisp_Object): New struct.
7899         * dumper.c (pdump_static_pointer): New struct.
7900         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7901         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7902         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7903         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7904
7905         * dumper.c (pdump_backtrace):
7906         * dumper.c (pdump_get_indirect_count):
7907         * dumper.c (pdump_register_object):
7908         * dumper.c (pdump_register_struct):
7909         * dumper.c (pdump_reloc_one):
7910         * dumper.c (pdump_scan_by_alignment):
7911         * dumper.c (pdump_dump_from_root_struct_ptrs):
7912         * dumper.c (pdump_dump_opaques):
7913         * dumper.c (pdump_dump_rtables):
7914         * dumper.c (pdump_dump_from_root_objects):
7915         * dumper.c (pdump):
7916         * dumper.c (pdump_load_finish):
7917         Use aligned reading and writing.
7918
7919         * dumper.c (pdump_free): Make static.
7920         * dumper.c (pdump_hFile): Likewise.
7921         * dumper.c (pdump_hMap): Likewise.
7922
7923 2001-01-26  Martin Buchholz <martin@xemacs.org>
7924
7925         * XEmacs 21.2.43 "Terspichore" is released.
7926
7927 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7928
7929         Type fiddling for window_config.saved_windows_count
7930         * window.c (struct window_config): 
7931         Make saved_windows_count member unsigned.
7932         * window.c (sizeof_window_config_for_n_windows): 
7933         Make parameter unsigned.
7934         * window.c (mark_window_config):
7935         * window.c (window_config_equal):
7936         * window.c (free_window_configuration):
7937         * window.c (Fset_window_configuration):
7938         * window.c (count_windows):
7939         * window.c (Fcurrent_window_configuration):
7940         * window.c (reinit_vars_of_window):
7941         Update all callers and users.
7942
7943 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7944
7945         Alignment correctness for flexible arrays.
7946         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7947         Make alignment-correct. Add interesting comments.
7948         * alloc.c (size_vector):
7949         * alloc.c (make_vector_internal):
7950         * alloc.c (make_bit_vector_internal):
7951         * alloc.c (sweep_bit_vectors_1):
7952         * fns.c (size_bit_vector):
7953         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7954         * window.c (sizeof_window_config_for_n_windows): 
7955         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7956
7957 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7958
7959         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7960
7961 2001-01-23  Andy Piper  <andy@xemacs.org>
7962
7963         * select.c (Fown_selection_internal): pass owned_p
7964
7965         * select-msw.c (mswindows_own_selection): New Signature.
7966
7967         * console.h (struct console_methods): add owned_p to
7968         _own_selection.
7969
7970         * select-x.c (x_own_selection): pass owned_p
7971         (hack_motif_clipboard_selection): use owned_p
7972         (vars_of_select_x): new variable -
7973         x_selection_strict_motif_ownership.
7974
7975 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7976
7977         * specifier.h (specifier_data_offset): Remove pointless parens.
7978         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7979
7980 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7981
7982         Make Lisp_Object sizeof methods be alignment-correct.
7983         pdump must restore objects to the same alignment as the C compiler
7984         assumes.  It really matters on SGIs.
7985         * lstream.c (aligned_sizeof_lstream): New.
7986         (sizeof_lstream): Use aligned_sizeof_lstream.
7987         (Lstream_new): Likewise.
7988         * opaque.c (aligned_sizeof_opaque): New.
7989         (sizeof_opaque): Use aligned_sizeof_opaque.
7990         (make_opaque): Likewise.
7991         * specifier.c (aligned_sizeof_specifier): New.
7992         (sizeof_specifier): Use aligned_sizeof_specifier.
7993         (make_specifier_internal): Likewise.
7994
7995 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7996
7997         * lstream.h (struct lstream): Use max_align_t for trailing data.
7998         * specifier.h (struct Lisp_Specifier): Likewise.
7999
8000 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8001
8002         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
8003         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
8004         (CCL_SUSPEND): Likewise.
8005         (CCL_INVALID_CMD): Likewise.
8006         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
8007         (ccl_driver): Likewise.
8008         (CCL_WRITE_CHAR): Macro hygiene.
8009         (CCL_WRITE_STRING): Macro hygiene.
8010
8011 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8012
8013         Port "portable" dumper to SunOS 4 and HP-UX.
8014         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
8015         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
8016         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
8017
8018 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8019
8020         * lisp.h (ALIGNOF): A better definition for C++.
8021
8022 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8023
8024         Macro hygiene.
8025         Fix printf warnings: int format, long int arg.
8026         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
8027         (PUSH_FAILURE_POINT): Use correct printf formats.
8028         (POP_FAILURE_POINT): Use correct printf formats.  
8029         Use do {...} while (0)
8030
8031 2001-01-20  Martin Buchholz <martin@xemacs.org>
8032
8033         * XEmacs 21.2.42 "Poseidon" is released.
8034
8035 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8036
8037         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
8038
8039 2001-01-19  Martin Buchholz  <martin@xemacs.org>
8040
8041         De-kludgify FIXED_TYPE free list frobbing.
8042         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
8043         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
8044         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
8045         * alloc.c (Lisp_Free): New pseudo lisp object definition.
8046         * alloc.c (LRECORD_FREE_P): New.
8047         * alloc.c (MARK_LRECORD_AS_FREE): New.
8048         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
8049         * alloc.c (STRUCT_FREE_P): Deleted.
8050         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
8051         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
8052         * alloc.c (STRING_CHARS_FREE_P): New.
8053         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
8054         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
8055         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
8056         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
8057         * alloc.c (resize_string): Use new definitions.
8058         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
8059         * alloc.c (verify_string_chars_integrity): Use new definitions.
8060         * alloc.c (compact_string_chars): Use new definitions.
8061         * alloc.c: Update monster comments.
8062         * lrecord.h (lrecord_type): Add some new lrecord types for
8063         alloc.c's use.
8064
8065 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8066
8067         Improve alignment hackery.
8068         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
8069         (max_align_t): Moved from opaque.h - general purpose.
8070         (ALIGN_PTR): Use size_t, not long.
8071         * opaque.h (max_align_t): Move to lisp.h.
8072
8073 2001-01-18  Norbert Koch  <nk@LF.net>
8074
8075         * gui.h: Fix and add prototypes to fix build problems.
8076
8077 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8078
8079         temacs is going away, so `dump-temacs' is now a bad name.
8080         * .dbxrc (dump-temacs): Rename to `dmp'.
8081         * .gdbinit (dump-temacs): Rename to `dmp'.
8082
8083 2001-01-17  Andy Piper  <andy@xemacs.org>
8084
8085         * glyphs.c (print_image_instance): comment to make martin happy.
8086
8087         * glyphs-x.c (x_redisplay_widget): update faces after a frame
8088         change.
8089
8090         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
8091         activation.
8092         (mswindows_tab_control_redisplay): warning suppression.
8093
8094         * glyphs-widget.c (widget_update): re-write to cope with updated
8095         items.
8096         (widget_instantiate): use new gui_item functions.
8097         (tab_control_update): deleted.
8098         (progress_gauge_update): deleted.
8099         (image_instantiator_progress_guage): take out update reference.
8100         (image_instantiator_tree_view): ditto.
8101         (image_instantiator_tab_control): ditto.
8102
8103         * gui.c (widget_gui_parse_item_keywords): new function. Do things
8104         Right the new way.
8105         (gui_item_add_keyval_pair): re-write to cope with descriptors and
8106         return whether anything was changed.
8107         (update_gui_item_keywords): as it sounds.
8108
8109         * gui.h: declare widget_gui_parse_item_keywords.
8110
8111         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
8112         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
8113
8114 2001-01-17  Martin Buchholz <martin@xemacs.org>
8115
8116         * XEmacs 21.2.41 "Polyhymnia" is released.
8117
8118 2001-01-16  Didier Verna  <didier@xemacs.org>
8119
8120         * glyphs.c (image_instantiate): don't use fallbacks when
8121         instantiating a face's background pixmap by inheritance.
8122
8123 2001-01-14  Mike Sperber <mike@xemacs.org>
8124
8125         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
8126         Conditionalize accordingly.
8127
8128 2001-01-16  Martin Buchholz  <martin@xemacs.org>
8129
8130         * dumper.c (pdump_file_get): Fix a compiler warning.
8131
8132 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8133
8134         Make Purify happy when pdumping.
8135         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
8136         iniitalizing all bits of new lisp object memory.
8137         * symbols.c (Fmake_local_variable): Likewise.
8138         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
8139         * symbols.c (Fdefvaralias): Likewise.
8140         * mule-charset.c (vars_of_mule_charset): Likewise.
8141
8142 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8143         Add the `-nd' flag when running pre-dump operations under the debugger.
8144         * .dbxrc (run-temacs): Add `-nd'.
8145         * .dbxrc (update-elc): Likewise.
8146         * .dbxrc (dump-temacs): Likewise.
8147         * .gdbinit (run-temacs): Likewise.
8148         * .gdbinit (check-temacs): Likewise.
8149         * .gdbinit (update-elc): Likewise.
8150         * .gdbinit (dump-temacs): Likewise.
8151
8152 2001-01-14  Martin Buchholz  <martin@xemacs.org>
8153
8154         Allow building 64-bit executables on AIX with GNU malloc, e.g.
8155         export OBJECT_MODE=64
8156         configure --pdump --use-union-type=no
8157         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
8158         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
8159
8160         * miscplay.c (sndcnv8U_2mono):
8161         Avoid two uses of `++' in the same expression.
8162         Suppresses a GCC warning.
8163
8164 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8165
8166         Make sure future compilers don't miscompile alloc.c.
8167         * alloc.c:
8168         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
8169         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
8170
8171 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8172
8173         * dumper.c: A little post-pdump-rename comment fixup.
8174
8175 2001-01-09  Jerry James  <james@eecs.ku.edu>
8176
8177         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
8178
8179 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8180
8181         * *.[ch]: Globally rename symbols using the following `pdump-rename'
8182         script:
8183         #!/bin/sh
8184         replace_symbol () {
8185           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
8186         }
8187
8188         replace_symbol pdump_wire_lists pdump_weak_object_chains
8189         replace_symbol pdump_wire_list dump_add_weak_object_chain
8190
8191         replace_symbol pdump_wires pdump_root_objects
8192         replace_symbol pdump_wire dump_add_root_object
8193
8194         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
8195         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
8196
8197         replace_symbol dumpstructinfos pdump_root_struct_ptrs
8198         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
8199         replace_symbol dumpstructinfo pdump_root_struct_ptr
8200         replace_symbol dumpstruct dump_add_root_struct_ptr
8201
8202         replace_symbol dumpopaque dump_add_opaque
8203         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
8204         replace_symbol dumpopaqueinfos pdump_opaques
8205         replace_symbol dumpopaqueinfo pdump_opaque
8206
8207         replace_symbol nb_structdump nb_root_struct_ptrs
8208         replace_symbol nb_opaquedump nb_opaques
8209
8210         replace_symbol align_table pdump_align_table
8211         replace_symbol dump_header pdump_header
8212
8213         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
8214         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
8215
8216
8217 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8218
8219         * s/aix4.h: Keep the C for AIX compiler from overaggressively
8220         optimizing bytecount_to_charcount().
8221
8222 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8223
8224         * config.h.in:
8225         (HAVE_DLFCN_H): Removed.
8226         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
8227
8228 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8229
8230         Portable dumper maintainability improvements.
8231         * alloc.c (staticpro):
8232         * alloc.c (staticpro_nodump):
8233         * alloc.c (garbage_collect_1):
8234         * alloc.c (reinit_alloc_once_early):
8235         * alloc.c (init_alloc_once_early):
8236         * alloc.c: Move dumper functions to alloc.c.
8237         * dumper.c (pdump_backtrace):
8238         * dumper.c (pdump_dump_structs):
8239         * dumper.c (pdump_dump_opaques):
8240         * dumper.c (pdump_dump_rtables):
8241         * dumper.c (pdump_dump_wired):
8242         * dumper.c (pdump):
8243         * dumper.c (pdump_load_check):
8244         * dumper.c (pdump_load_finish):
8245         * dumper.c (pdump_file_unmap):
8246         * dumper.c (pdump_file_get):
8247         * dumper.c (pdump_resource_free):
8248         * dumper.c (pdump_resource_get):
8249         * dumper.c (pdump_file_free):
8250         * dumper.c (pdump_file_try):
8251         * dumper.c (pdump_load):
8252         Remove fixed size limits on staticpro(), staticpro_nodump(),
8253         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
8254         Remove custom code for dumping lrecord_implementations_table - use
8255         dumpopaque instead.
8256         Remove (most of the) custom code for dumping staticpros - dump it
8257         like any other dynarr.
8258
8259         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
8260         * dumper.c: Moved functions from alloc.c.
8261         * alloc.c (dumpstruct): Moved to dumper.c.
8262         * alloc.c (dumpopaque): Likewise.
8263         * alloc.c (pdump_wire): Likewise.
8264         * alloc.c (pdump_wire_list): Likewise.
8265
8266         * lisp.h (Dynarr_sizeof): New.
8267         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
8268         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
8269         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
8270
8271         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
8272         * lisp.h (dumpopaque): ditto.
8273         * lisp.h (pdump_wire): ditto.
8274         * lisp.h (pdump_wire_list): ditto.
8275
8276 2001-01-09  Martin Buchholz  <martin@xemacs.org>
8277
8278         * make-src-depend (PrintPatternDeps):
8279         Use `sort' to make output independent of perl version.
8280
8281 2001-01-08  Martin Buchholz  <martin@xemacs.org>
8282
8283         Port to Netbsd 1.5.
8284         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
8285         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
8286
8287 2001-01-03  Didier Verna  <didier@xemacs.org>
8288
8289         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
8290         that `focus_frame' is alive before thinking of calling
8291         `redisplay_redraw_cursor' on it.
8292
8293 2001-01-08  Martin Buchholz <martin@xemacs.org>
8294
8295         * XEmacs 21.2.40 is released.
8296
8297 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8298
8299         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
8300
8301 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8302
8303         * alloc.c (dbg_valmask): Make const.
8304         * alloc.c (dbg_typemask): Make const.
8305         * alloc.c (dbg_USE_UNION_TYPE): Make const.
8306         * alloc.c (dbg_valbits): Make const.
8307         * alloc.c (dbg_gctypebits): Make const.
8308
8309 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
8310
8311         * redisplay-x.c (x_bevel_area):
8312         redisplay.h (struct rune):
8313         Typo fixes in comments.
8314
8315 2001-01-05  Andy Piper  <andy@xemacs.org>
8316
8317         * glyphs-x.c (x_redisplay_widget): use size changed for offset
8318         adjustment.
8319
8320         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
8321
8322 2001-01-05  Martin Buchholz  <martin@xemacs.org>
8323
8324         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
8325
8326         * mule-ccl.c (stack_idx_of_map_multiple):
8327         Non const global data must not be initialized!
8328         Found by MIYASHITA Hisashi.
8329
8330 2001-01-02  Andy Piper  <andy@xemacs.org>
8331
8332         * frame.c (change_frame_size): make sure frame size is always
8333         marked as changed.
8334
8335         * glyphs.c (image_instance_layout): minor code reuse.
8336
8337         * window.c (Fcurrent_window_configuration): revert previous
8338         change.
8339
8340 2001-01-02  Martin Buchholz  <martin@xemacs.org>
8341
8342         * glyphs.h:
8343         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
8344
8345 2000-12-31  Andy Piper  <andy@xemacs.org>
8346
8347         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
8348         when widget gets unmapped.
8349
8350         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
8351         function. Make sure widgets losing focus don't just drop it.
8352         (handle_focus_event_1): record the widget with focus.
8353
8354 2000-12-31  Andy Piper  <andy@xemacs.org>
8355
8356         * window.c (allocate_window): use
8357         make_image_instance_cache_hash_table.
8358         (make_dummy_parent): ditto.
8359         (Fset_window_configuration): ditto.
8360
8361         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
8362
8363         * glyphs.c (process_image_string_instantiator): use
8364         INSTANTIATOR_TYPE.
8365         (get_image_instantiator_governing_domain): ditto.
8366         (normalize_image_instantiator): ditto.
8367         (instantiate_image_instantiator): ditto.
8368         (make_image_instance_1): ditto.
8369         (image_instantiate): ditto. Key on glyph *and* instantiator type.
8370         (instantiator_eq_equal): new function for use with instance hash
8371         tables.
8372         (instantiator_eq_hash): ditto.
8373         (make_image_instance_cache_hash_table): create a suitable hash
8374         table for storing image instances.
8375
8376         * elhash.h (hash_table_weakness): new internal weakness type
8377         HASH_TABLE_KEY_CAR_VALUE_WEAK.
8378         declare new functions.
8379
8380         * elhash.c (finish_marking_weak_hash_tables): introduce yet
8381         another weakness type for glyphs.
8382         (make_standard_lisp_hash_table): new function split out from
8383         make_general_lisp_hash_table.
8384         (make_lisp_hash_table): call make_standard_lisp_hash_table.
8385         (hash_table_instantiate): ditto.
8386         (Fmake_hash_table): ditto.
8387
8388 2000-12-31  Martin Buchholz <martin@xemacs.org>
8389
8390         * XEmacs 21.2.39 is released.
8391
8392 2000-12-29  Andy Piper  <andy@xemacs.org>
8393
8394         * menubar.c (menubar_visible_p_changed): signal the frame changed.
8395
8396         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
8397         the frame has changed so that we pick up geometry changes such as
8398         menubar visibility.
8399
8400 2000-12-28  Andy Piper  <andy@xemacs.org>
8401
8402         * lastfile.c (my_ebss): make a char array so we can pad the
8403         bss. Fixes cygwin unexec.
8404
8405         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
8406
8407 2000-12-26  Andy Piper  <andy@xemacs.org>
8408
8409         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
8410         comments and try and be more precise about a non-/SIGIO world.
8411         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
8412         SIGIO.
8413
8414         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
8415         we don't normalize to zero width or height.
8416
8417 2000-12-24  Andy Piper  <andy@xemacs.org>
8418
8419         * Makefile.in.in (ldflags): add -mwindows when appropriate.
8420
8421 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
8422
8423         * s/sco5.h: SCO 5 has pty support.
8424
8425 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
8426
8427         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
8428         input-method-xlib.c contains whole contents of input-method-xfs.c,
8429         so we can use input-method-xlib.c's code for USE_XFONTSET
8430         using #ifdefs.
8431         * input-method-xfs.c: removed.
8432
8433 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
8434
8435         * file-coding.h (enum coding_category_type): reorder enumerators to
8436         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
8437         (now one greater than largest real coding_category_type enumerator).
8438         * file-coding.c (coding_category_symbol, coding_category_by_priority,
8439         coding_category_system, fcd_descriptihon_1, decode_coding_category,
8440         Fcoding_category_list, Fset_coding_priority_list,
8441         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
8442         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
8443
8444 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8445
8446         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
8447         * redisplay-output.c (redisplay_output_window): Clear top of window
8448         when face is changed.
8449         * redisplay-x.c (x_redraw_exposed_window): Call
8450         redisplay_clear_top_of_window.
8451         * redisplay.h: Publish redisplay_clear_top_of_window.
8452
8453 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8454
8455         * buffer.c (Fkill_buffer): Map over all devices.
8456         * window.c (window_loop): Remove UNSHOW_BUFFER code.
8457         (list_windows): New function.
8458         (list_all_windows): Ditto.
8459         (Freplace_buffer_in_windows): Use them.
8460
8461 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8462
8463         * database.c (berkdb_subtype): Recognize new subtype `queue'.
8464         (Fopen_database): Use `db_create' instead of `db_open'.
8465         (syms_of_database): Initialize Qqueue.
8466
8467 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8468
8469         * buffer.c (common_init_complex_vars_of_buffer): Initialize
8470         buffer_local_face_property.
8471         * buffer.h (struct buffer): New member buffer_local_face_property.
8472         * window.c (Fset_window_buffer):  Mark window's face as changed
8473         when buffer has buffer local face.
8474         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8475         * objects.c (color_after_change): Set buffer_local_face_property
8476         when locale of face specifier is buffer.
8477         * objects.c (font_after_change): Ditto.
8478         * objects.c (face_boolean_after_change): Ditto.
8479         * glyphs.c (image_after_change): Ditto.
8480
8481 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8482
8483         * nt.c (mswindows_fstat): Report file permissions, volume serial
8484         number, etc. Code adapted from FSF Emacs 20.7.
8485
8486 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8487
8488         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8489         of stat when we don't have symbolic links, to make sure
8490         mswindows_stat is called on mswindows.
8491
8492 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8493
8494         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8495
8496 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8497
8498         * doprnt.c (emacs_doprnt_1): More printing fixes.
8499         Make printing of numbers compatible with libc and FSF Emacs.
8500         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8501         Use the system printf to do most of the hard work of formatting,
8502         instead of doprnt_1().
8503         Calculate memory to allocate for format string.
8504         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8505         (doprnt_1): Cleaner code and documentation.
8506
8507 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8508
8509         * Makefile.in.in: Use the loop variable to install headers.
8510
8511 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8512
8513         * window.c (Fsplit_window): Don't invalidate face cache.
8514
8515 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8516
8517         * minibuf.c (Fall_completions): Undo the previous change
8518         which removed checking elements start with space.
8519
8520 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8521
8522         * mule-canna.c: Didier suppression.
8523
8524 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8525
8526         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8527         (warning suppression).  Add English comment translations.
8528
8529 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8530
8531         * unexelfsgi.c (unexec): Better test for mmap failure.
8532
8533 2000-12-05  Martin Buchholz <martin@xemacs.org>
8534
8535         * XEmacs 21.2.38 is released.
8536
8537 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8538
8539         * redisplay.c (bar-cursor): Make a user variable.
8540
8541         * symsinit.h: Add init_postgresql_from_environment.
8542
8543 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8544
8545         * regex.c: Convert to clean C.
8546
8547 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8548
8549         * realpath.c:
8550         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8551         initialization.
8552         (sys_readlink): renamed to system_readlink to avoid conflict with
8553         the other sys_readlink.
8554
8555 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8556
8557         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8558
8559 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8560
8561         * postgresql.c (init_postgresql_from_environment): new function.
8562         (vars_of_postgresql): Move code initializing Lisp variables out and
8563         into init_postgresql_from_environment.
8564         emacs.c (main_1): Call init_postgresql_from_environment if and only
8565         if running a dumped XEmacs.
8566
8567 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8568
8569         * buffer.c: Make find-file-compare-truenames default to true on
8570         windows.
8571
8572         * realpath.c (win32_abs_start):
8573         (cygwin_readlink):
8574         (win32_readlink): New functions.
8575         (xrealpath): Return really real filenames on windows.
8576
8577         * fileio.c (Ffile_truename): Make file-truename work on windows.
8578
8579 2000-11-29  Didier Verna  <didier@xemacs.org>
8580
8581         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8582         * faces.c (update_face_cachel_data): use it.
8583         * faces.c (add_face_cachel): use it. Complete background pixmap
8584         frobbing in face cache if `update_face_cachel_data' has not done so.
8585
8586 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8587
8588         * search.c (string_match_1): Don't set last_thing_searched
8589         when search failed.
8590
8591 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8592
8593         * buffer.c: Include casetab.h
8594         (common_init_complex_vars_of_buffer): Use new case-table object.
8595         * buffer.h: Include casetab.h
8596         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8597         (DOWNCASE_TABLE_OF): Ditto.
8598         * bufslots.h: Remove char-tables and add case-table.
8599         * casetab.c: Include casetab.h
8600         (CASE_TABLE_P): Removed.
8601         (mark_case_table): New function.
8602         (allocate_case_table): New function.
8603         (Fcase_table_p): Use new case-table.
8604         (case_table_char): New function.
8605         (Fget_case_table): Ditto.
8606         (Fput_case_table): Ditto.
8607         (Fput_case_table_pair): Ditto.
8608         (Fcopy_case_table): Ditto.
8609         (Fcurrent_case_table): Return case-table.
8610         (Fstandard_case_table): Return case-table.
8611         (Fset_case_table): Fix doc-string.
8612         (set_case_table): Use case-table
8613         (syms_of_casetab): DEFSUBR new functions.
8614         (complex_vars_of_casetab): Set up standard case-table.
8615         * casetab.h: New file.
8616         * editfns.c: Include casetab.h
8617         (Fcompare_buffer_substrings): Use case-table.
8618         * inline.c: Include casetab.h
8619         * lisp.h: Remove bogus extern.
8620         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8621         * search.c: Include casetab.h
8622         (TRANSLATE_ASCII): Removed.
8623         (TRANSLATE): Unconditionally translate character.
8624         (looking_at_1): Use case-table.
8625         (string_match_1): Ditto.
8626         (fast_string_match): Ditto.
8627         (search_command): Ditto.
8628         (search_buffer): Separate boyer_moore.  Check whether
8629         boyer_moore is possible.
8630         (simple_search): New function.
8631         (boyer_moore): Separated from search_buffer. Translate char.
8632
8633 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8634
8635         * regex.c (RE_TR_ASCII): Removed.
8636         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8637         (PATFETCH): Call PATFETCH_RAW.
8638         (PATFETCH_RAW): Fetch Emchar.
8639         (PATUNFETCH): Decrement charptr.
8640         (GET_BUFFER_SPACE): Rename b to buf_end.
8641         (BUF_PUSH): Ditto.
8642         (BUF_PUSH_2): Ditto.
8643         (BUF_PUSH_3): Ditto.
8644         (EXTEND_BUFFER): Ditto.
8645         (SET_LIST_BIT): Ditto.
8646         (regex_compile): Ditto.  Translate non ASCII char.
8647         (compile_range): Ditto.
8648         (re_search_2): Ditto.
8649         (re_match_2_internal): Compare Emchar.
8650         (bcmp_translate): Ditto.
8651
8652 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8653
8654         * lisp.h (basic char/int typedefs):  comment improvement.
8655
8656 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8657
8658         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8659         unstomp inhibit_site_lisp.  Improve comments.
8660
8661 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8662
8663         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8664
8665 2000-11-28  Andy Piper  <andy@xemacs.org>
8666
8667         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8668         clipped display for windows in the gutter also.
8669         (redisplay_display_boxes_in_window_p): change semantics of return
8670         codes to be more intuitive.
8671
8672         * gutter.h: declare display_boxes_in_gutter_p.
8673
8674         * gutter.c (display_boxes_in_gutter_p): new function for
8675         redisplay.
8676
8677 2000-11-22  Andy Piper  <andy@xemacs.org>
8678
8679         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8680         autodetect domain.
8681
8682 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8683
8684         * callproc.c (Fold_call_process_internal):
8685         * gpm.c (Freceive_gpm_event):
8686         (tty_get_foreign_selection): Might be just warning supression.
8687         * fileio.c (Fwrite_region_internal):
8688         (Fset_visited_file_modtime):
8689         * keymap.c (event_matches_key_specifier_p):
8690         Initialize GCPROed variable.
8691
8692         * menubar-x.c (command_builder_find_menu_accelerator):
8693         Initialize before use.
8694
8695 2000-11-23  Andy Piper  <andy@xemacs.org>
8696
8697         * unexcw.c (unexec): make the resulting executable executable.
8698
8699 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8700
8701         * doc.c (get_doc_string):
8702         Use size_t, not int, for result of XSTRING_LENGTH.
8703
8704         * cmds.c (Fdelete_char):
8705         * cmds.c (Fpoint_at_eol):
8706         * cmds.c (Fself_insert_command):
8707         Use EMACS_INT, not int, for result of XINT.
8708         Someday, someone will want to insert more than 2**31 identical characters.
8709
8710         * cmds.c (Fdelete_char):
8711         * cmds.c (Fdelete_backward_char):
8712         * syntax.c (Fforward_word):
8713         * syntax.c (Fforward_comment):
8714         Make COUNT argument optional, for consistency with forward-char et al.
8715
8716 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8717
8718         * lisp.h:
8719         * print.c (long_to_string):
8720         Return a useful value: the pointer at end of data written.
8721
8722         * doprnt.c:
8723         Use `static const char * const' for constant strings.
8724         (union printf_arg): Delete `i', `ui' members.
8725         (get_doprnt_args):
8726         (emacs_doprnt_1):
8727         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8728         Do all printf-ing via the `l' specifier.
8729         Use EMACS_INT instead of int.
8730         Optimize.
8731
8732 2000-11-20  Didier Verna  <didier@xemacs.org>
8733
8734         * faces.c (update_face_cachel_data): don't frob the background
8735         pixmap when the window is being created. The face is needed but
8736         does not exist yet.
8737
8738 2000-11-20  Andy Piper  <andy@xemacs.org>
8739
8740         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8741         messing with a debug environment.
8742
8743 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8744
8745         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8746
8747 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8748
8749         * casetab.c (Fcase_table_p): Fix compile error and crash.
8750
8751 2000-11-18  Philip Aston  <philipa@mail.com>
8752
8753         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8754
8755 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8756
8757         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8758         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8759
8760 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8761
8762         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8763         * unexelf.c: Use HAVE_ELF_H.
8764         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8765         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8766         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8767         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8768         for testing.
8769         So this is an unexelfsgi.c from a different line of development.
8770
8771 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8772
8773         * regex.c (RE_TR_ASCII): New function.
8774         (RE_TRANSLATE): Call it.
8775
8776 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8777
8778         * buffer.h (TRT_TABLE_OF): Remove assert.
8779         (IN_TRT_TABLE_DOMAIN): Removed.
8780
8781 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8782
8783         * free-hook.c (log_gcpro):
8784         (show_gcprohist): Add support for GCPRO5.
8785
8786 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8787
8788         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8789
8790 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8791
8792         * symeval.h: Declare flush_all_buffer_local_cache.
8793
8794         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8795         (flush_buffer_local_cache): Added.
8796         (flush_all_buffer_local_cache): Added.
8797
8798         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8799
8800         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8801         (pdump_dump_data): Ditto.
8802         (pdump_reloc_one): Ditto.
8803         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8804         before dumping.
8805
8806
8807 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8808
8809         * buffer.c: Remove if 0'ed entry.
8810         * buffer.h: Rewrite TRT to use char-table.
8811         * bufslots.h: Remove mirror tables.
8812         * casetab.c: Remove mirror tables.
8813         (CASE_TABLE_P): New macro.
8814         (Fcase_table_p): Element of a case table is string or char-table.
8815         (make_mirror_trt_table): Removed.
8816         (set_case_table): Setup char-table from strings for backward
8817         compatibility.
8818         * dired.c (Fdirectory_files):
8819         * dired-msw.c: (mswindows_get_files):
8820         * lisp.h: Change prototype of re_pattern_buffer.
8821         * regex.c: (RE_TRANSLATE): New macro.
8822         (TRANSLATE_P): Ditto.
8823         Change translate to type RE_TRANSLATE_TYPE.
8824         * regex.h: Define RE_TRANSLATE_TYPE
8825         * search.c (TRANSLATE): New macro.
8826         (TRANSLATE_ASCII): New macro.
8827         Translate table is changed to Lisp_Object.
8828         (signal_failure): Inhibit return.
8829
8830 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8831
8832         * device-msw.c:
8833         * eldap.c:
8834         * event-Xt.c:
8835         * event-stream.c:
8836         * print.c:
8837         Do UNGCPRO before return.
8838
8839 2000-11-14  Martin Buchholz <martin@xemacs.org>
8840
8841         * XEmacs 21.2.37 is released.
8842
8843 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8844
8845         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8846         Add comments about discarded return value.
8847
8848 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8849
8850         * callint.c:
8851         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8852
8853 2000-10-27  Andy Piper  <andy@xemacs.org>
8854
8855         * gutter.c (Fset_default_gutter_position): default left and right
8856         gutters to visible.
8857         (calculate_gutter_size): calculate resonable heuristic for left
8858         and right gutter sizes.
8859         (specifier_vars_of_gutter): change left and right gutter sizes to
8860         autodetect.
8861         (calculate_gutter_size_from_display_lines): new function.
8862         (output_gutter): check for resizing on left and right gutters.
8863         (clear_gutter): don't special case top and left gutters.
8864         (specifier_vars_of_gutter): use new signature for
8865         set_specifier_caching.
8866
8867         * glyphs-x.c (x_redisplay_widget): spelling fix.
8868         * glyphs.c (specifier_vars_of_glyphs):
8869         * menubar.c (specifier_vars_of_menubar):
8870         * redisplay.c (specifier_vars_of_redisplay):
8871         * toolbar.c (specifier_vars_of_toolbar):
8872         * window.c (specifier_vars_of_window):
8873         * scrollbar.c (specifier_vars_of_scrollbar):
8874         (complex_vars_of_scrollbar): use new signature for
8875         set_specifier_caching.
8876
8877         * specifier.c (set_specifier_caching): include recompute flag.
8878         (recompute_one_cached_specifier_in_window): always recompute if
8879         flag set.
8880         (recompute_one_cached_specifier_in_frame): ditto.
8881
8882         * specifier.h (struct specifier_caching): add recompute flag.
8883
8884 2000-10-24  Andy Piper  <andy@xemacs.org>
8885
8886         * unexcw.c (copy_executable_and_dump_data_section): add new
8887         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8888         5.0 happy.
8889
8890 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8891
8892         * console-x.h (x_device): New member modifier_release_time.
8893         * event-Xt.c (x_handle_sticky_modifiers):
8894         Bound interval modifier keys are sticky.
8895         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8896         * events.h: extern it.
8897
8898 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8899
8900         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8901
8902 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8903
8904         * event-stream.c (execute_command_event): Preserve current_events
8905         and the like when event is misc-user-event.
8906         Inhibit quit during the call to maybe_echo_keys.
8907
8908 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8909
8910         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8911         symlink when buffer is killed.
8912         (inhibit_clash_detection): New variable.
8913
8914 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8915
8916         * console.c (Fset_input_method): Trigger redisplay on tty.
8917
8918 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8919
8920         * process.c (Fprocess_status): Revert to previous behavior:
8921         (process-status "nosuchprocess") ==> nil
8922
8923 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8924
8925         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8926         Work around another GCC 2.95.2 optimizer bug.
8927
8928 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8929
8930         * process.c (Fget_process): Use LIST_LOOP_2.
8931         (kill_buffer_processes): Use LIST_LOOP_2.
8932
8933         * minibuf.c (Fall_completions):
8934         Delete old non-functional code for FSF fourth argument.
8935
8936         * frame.c (frame_matches_frame_spec):
8937         Renamed from `frame_matches_frametype'.  Update all callers.
8938         (device_matches_device_spec):
8939         Renamed from 'device_matches_console_spec'.  Update all callers.
8940
8941         * doc.c (Fsubstitute_command_keys):
8942         Remove buffer overflow crash.  Small code cleanups.
8943
8944         * casetab.c (check_case_table): Simpler code.
8945
8946         * window.c (Freplace_buffer_in_windows):
8947         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8948         (and similar implementation) as Fdelete_windows_on.
8949         Update all callers.
8950
8951         * alloc.c (Fmake_list):
8952         * alloc.c (make_vector):
8953         * alloc.c (Fmake_vector):
8954         * alloc.c (make_bit_vector):
8955         * alloc.c (Fmake_bit_vector):
8956         * alloc.c (Fbit_vector):
8957         * alloc.c (Fmake_string):
8958         * alloc.c (Fpurecopy):
8959         * alloc.c (Fmemory_limit):
8960         * buffer.c:
8961         * buffer.c (Fget_buffer):
8962         * buffer.c (Fkill_buffer):
8963         * buffer.c (complex_vars_of_buffer):
8964         * bytecode.c (Fcompiled_function_stack_depth):
8965         * callint.c (Fprefix_numeric_value):
8966         * event-stream.c:
8967         * event-stream.c (Fread_key_sequence):
8968         * casetab.c:
8969         * casetab.c (Fcase_table_p):
8970         * casetab.c (check_case_table):
8971         * casetab.c (Fset_case_table):
8972         * casetab.c (Fset_standard_case_table):
8973         * chartab.c:
8974         * chartab.c (Fchar_table_type):
8975         * chartab.c (Freset_char_table):
8976         * chartab.c (Fget_char_table):
8977         * chartab.c (Fget_range_char_table):
8978         * chartab.c (Fput_char_table):
8979         * chartab.c (Fmap_char_table):
8980         * chartab.c (Fcategory_table_p):
8981         * chartab.c (Fcheck_category_at):
8982         * chartab.c (Fchar_in_category_p):
8983         * chartab.c (Fcategory_table):
8984         * chartab.c (Fcopy_category_table):
8985         * chartab.c (Fset_category_table):
8986         * chartab.c (Fcategory_designator_p):
8987         * chartab.c (Fcategory_table_value_p):
8988         * cmds.c (Fdelete_char):
8989         * cmds.c (Fdelete_backward_char):
8990         * cmds.c (Fself_insert_command):
8991         * cmds.c (Fself_insert_internal):
8992         * console.c (Fvalid_console_type_p):
8993         * console.c (Fcdfw_console):
8994         * console.c (Fconsole_type):
8995         * console.c (Fconsole_name):
8996         * console.c (Fconsole_device_list):
8997         * console.c (Fconsole_on_window_system_p):
8998         * data.c:
8999         * data.c (Feq):
9000         * data.c (Fold_eq):
9001         * data.c (Fsubr_interactive):
9002         * data.c (Fchar_to_int):
9003         * data.c (Fint_to_char):
9004         * data.c (Fsetcar):
9005         * data.c (Fsetcdr):
9006         * data.c (Fnumber_to_string):
9007         * data.c (Fstring_to_number):
9008         * data.c (Frem):
9009         * database.c (mark_database):
9010         * database.c (finalize_database):
9011         * database.c (Fdatabase_live_p):
9012         * database.c (Fdatabasep):
9013         * device-x.c (Fx_get_resource):
9014         * device.c (Fdfw_device):
9015         * dired.c:
9016         * dired.c (Ffile_name_completion):
9017         * dired.c (Ffile_name_all_completions):
9018         * dired.c (Fuser_name_completion):
9019         * dired.c (Fuser_name_completion_1):
9020         * dired.c (Fuser_name_all_completions):
9021         * doc.c (Fdocumentation):
9022         * doc.c (Fdocumentation_property):
9023         * doc.c (Fsubstitute_command_keys):
9024         * editfns.c:
9025         * editfns.c (Fchar_to_string):
9026         * editfns.c (Fstring_to_char):
9027         * editfns.c (Ftemp_directory):
9028         * editfns.c (Finsert_char):
9029         * editfns.c (Fbuffer_substring_no_properties):
9030         * editfns.c (Fnarrow_to_region):
9031         * editfns.c (Fchar_equal):
9032         * editfns.c (Fchar_Equal):
9033         * editfns.c (Ftranspose_regions):
9034         * emacs.c (Fdump_emacs):
9035         * eval.c (Fthrow):
9036         * eval.c (Fcommand_execute):
9037         * eval.c (Fautoload):
9038         * eval.c (Fbacktrace):
9039         * eval.c (Fbacktrace_frame):
9040         * events.c:
9041         * events.c (Fcopy_event):
9042         * events.c (Fcharacter_to_event):
9043         * events.c (Fevent_button):
9044         * events.c (Fevent_process):
9045         * extents.c:
9046         * extents.c (Fnext_extent_change):
9047         * extents.c (Fextent_property):
9048         * faces.c (Ffacep):
9049         * faces.c (Fmake_face):
9050         * file-coding.c:
9051         * file-coding.c (Fencode_shift_jis_char):
9052         * file-coding.c (Fencode_big5_char):
9053         * fileio.c (Ffile_name_directory):
9054         * fileio.c (Ffile_name_nondirectory):
9055         * fileio.c (Ffile_name_as_directory):
9056         * fileio.c (Fdirectory_file_name):
9057         * fileio.c (Ffile_truename):
9058         * fileio.c (Fsubstitute_in_file_name):
9059         * fileio.c (Ffile_modes):
9060         * fileio.c (Fset_file_modes):
9061         * fileio.c (Fset_default_file_modes):
9062         * fileio.c (Fverify_visited_file_modtime):
9063         * floatfns.c (Facos):
9064         * floatfns.c (Fasin):
9065         * floatfns.c (Fatan):
9066         * floatfns.c (Fcos):
9067         * floatfns.c (Fsin):
9068         * floatfns.c (Ftan):
9069         * floatfns.c (Fbessel_j0):
9070         * floatfns.c (Fbessel_j1):
9071         * floatfns.c (Fbessel_jn):
9072         * floatfns.c (Fbessel_y0):
9073         * floatfns.c (Fbessel_y1):
9074         * floatfns.c (Fbessel_yn):
9075         * floatfns.c (Ferf):
9076         * floatfns.c (Ferfc):
9077         * floatfns.c (Flog_gamma):
9078         * floatfns.c (Fexp):
9079         * floatfns.c (Fexpt):
9080         * floatfns.c (Flog):
9081         * floatfns.c (Flog10):
9082         * floatfns.c (Fsqrt):
9083         * floatfns.c (Fcube_root):
9084         * floatfns.c (Facosh):
9085         * floatfns.c (Fasinh):
9086         * floatfns.c (Fatanh):
9087         * floatfns.c (Fcosh):
9088         * floatfns.c (Fsinh):
9089         * floatfns.c (Ftanh):
9090         * floatfns.c (Fabs):
9091         * floatfns.c (Ffloat):
9092         * floatfns.c (Flogb):
9093         * floatfns.c (Fceiling):
9094         * floatfns.c (Ffloor):
9095         * floatfns.c (Fround):
9096         * floatfns.c (Ftruncate):
9097         * floatfns.c (Ffceiling):
9098         * floatfns.c (Fffloor):
9099         * floatfns.c (Ffround):
9100         * floatfns.c (Fftruncate):
9101         * fns.c (Fstring_equal):
9102         * fns.c (Fstring_lessp):
9103         * fns.c (concat2):
9104         * fns.c (concat3):
9105         * fns.c (vconcat2):
9106         * fns.c (vconcat3):
9107         * fns.c (Fsubstring):
9108         * fns.c (Fassoc):
9109         * fns.c (Fold_assoc):
9110         * fns.c (assoc_no_quit):
9111         * fns.c (Fassq):
9112         * fns.c (Fold_assq):
9113         * fns.c (assq_no_quit):
9114         * fns.c (Frassoc):
9115         * fns.c (Fold_rassoc):
9116         * fns.c (Frassq):
9117         * fns.c (Fold_rassq):
9118         * fns.c (rassq_no_quit):
9119         * fns.c (Fremassoc):
9120         * fns.c (remassoc_no_quit):
9121         * fns.c (Fremassq):
9122         * fns.c (remassq_no_quit):
9123         * fns.c (Fremrassoc):
9124         * fns.c (Fremrassq):
9125         * fns.c (remrassq_no_quit):
9126         * fns.c (Fsort):
9127         * fns.c (Fplist_get):
9128         * fns.c (Fplist_put):
9129         * fns.c (Fplist_remprop):
9130         * fns.c (Fplist_member):
9131         * fns.c (Flax_plist_get):
9132         * fns.c (Flax_plist_put):
9133         * fns.c (Flax_plist_remprop):
9134         * fns.c (Flax_plist_member):
9135         * fns.c (Fequal):
9136         * fns.c (Fold_equal):
9137         * fns.c (Frequire):
9138         * fns.c (Fbase64_encode_region):
9139         * fns.c (Fbase64_encode_string):
9140         * fns.c (Fbase64_decode_region):
9141         * frame.c:
9142         * frame.c (frame_matches_frame_spec):
9143         * frame.c (device_matches_device_spec):
9144         * frame.c (next_frame):
9145         * frame.c (previous_frame):
9146         * frame.c (Fnext_frame):
9147         * frame.c (Fprevious_frame):
9148         * frame.c (Fframe_property):
9149         * frame.c (Fset_frame_height):
9150         * frame.c (Fset_frame_size):
9151         * frame.h:
9152         * glyphs.c:
9153         * glyphs.c (if):
9154         * glyphs.c (decode_error_behavior_flag):
9155         * glyphs.c (Fmake_image_instance):
9156         * indent.c (Findent_to):
9157         * intl.c (Fignore_defer_gettext):
9158         * keymap.c (Fkeymapp):
9159         * keymap.c (Flookup_key):
9160         * lread.c:
9161         * lread.c (Fload_internal):
9162         * lread.c (Feval_buffer):
9163         * lread.c (Feval_region):
9164         * macros.c (Fexecute_kbd_macro):
9165         * marker.c (set_marker_internal):
9166         * marker.c (Fset_marker):
9167         * marker.c (set_marker_restricted):
9168         * marker.c (Fcopy_marker):
9169         * marker.c (noseeum_copy_marker):
9170         * menubar.c:
9171         * menubar.c (Fpopup_menu):
9172         * minibuf.c:
9173         * mule-charset.c (Fcharset_name):
9174         * mule-charset.c (Fchar_charset):
9175         * mule-charset.c (Fchar_octet):
9176         * mule-charset.c (Fsplit_char):
9177         * mule-wnnfns.c (Fwnn_open):
9178         * mule-wnnfns.c (Fwnn_dict_comment):
9179         * mule-wnnfns.c (Fwnn_quit_henkan):
9180         * mule-wnnfns.c (Fwnn_word_toroku):
9181         * mule-wnnfns.c (Fwnn_word_sakujo):
9182         * mule-wnnfns.c (Fwnn_word_use):
9183         * mule-wnnfns.c (Fwnn_hindo_set):
9184         * objects.c:
9185         * objects.c (Fmake_color_instance):
9186         * objects.c (Fmake_font_instance):
9187         * print.c (Fwrite_char):
9188         * process.c:
9189         * process.c (mark_process):
9190         * process.c (print_process):
9191         * process.c (get_process_from_usid):
9192         * process.c (Fprocessp):
9193         * process.c (Fprocess_live_p):
9194         * process.c (Fget_process):
9195         * process.c (Fget_buffer_process):
9196         * process.c (get_process):
9197         * process.c (Fprocess_id):
9198         * process.c (Fprocess_name):
9199         * process.c (Fprocess_command):
9200         * process.c (init_process_io_handles):
9201         * process.c (start_process_unwind):
9202         * process.c (Fstart_process_internal):
9203         * process.c (Fopen_multicast_group_internal):
9204         * process.c (Fset_process_window_size):
9205         * process.c (read_process_output):
9206         * process.c (send_process):
9207         * process.c (Fprocess_tty_name):
9208         * process.c (Fset_process_buffer):
9209         * process.c (Fprocess_buffer):
9210         * process.c (Fprocess_mark):
9211         * process.c (set_process_filter):
9212         * process.c (Fset_process_filter):
9213         * process.c (Fprocess_filter):
9214         * process.c (Fprocess_send_region):
9215         * process.c (Fprocess_send_string):
9216         * process.c (exec_sentinel):
9217         * process.c (Fset_process_sentinel):
9218         * process.c (Fprocess_sentinel):
9219         * process.c (status_notify):
9220         * process.c (Fprocess_status):
9221         * process.c (Fprocess_exit_status):
9222         * process.c (process_send_signal):
9223         * process.c (Fprocess_send_eof):
9224         * process.c (deactivate_process):
9225         * process.c (remove_process):
9226         * process.c (Fdelete_process):
9227         * process.c (kill_buffer_processes):
9228         * process.c (Fprocess_kill_without_query):
9229         * process.c (Fprocess_kill_without_query_p):
9230         * rangetab.c:
9231         * rangetab.c (Fget_range_table):
9232         * rangetab.c (Fput_range_table):
9233         * rangetab.c (Fremove_range_table):
9234         * rangetab.c (Fclear_range_table):
9235         * search.c:
9236         * search.c (Fskip_chars_forward):
9237         * search.c (Fskip_chars_backward):
9238         * search.c (Fskip_syntax_forward):
9239         * search.c (Fskip_syntax_backward):
9240         * search.c (search_command):
9241         * search.c (Freplace_match):
9242         * search.c (Fregexp_quote):
9243         * select.c (Fown_selection_internal):
9244         * select.c (Fselection_owner_p):
9245         * select.c (Fselection_exists_p):
9246         * select.c (Fget_selection_internal):
9247         * specifier.c:
9248         * symbols.c:
9249         * symbols.c (Fintern):
9250         * symbols.c (Fintern_soft):
9251         * symbols.c (Funintern):
9252         * symbols.c (Fapropos_internal):
9253         * symbols.c (Fset_default):
9254         * syntax.c:
9255         * syntax.c (Fsyntax_table_p):
9256         * syntax.c (Fcopy_syntax_table):
9257         * syntax.c (Fset_syntax_table):
9258         * syntax.c (Fchar_syntax):
9259         * syntax.c (syntax_match):
9260         * syntax.c (Fmatching_paren):
9261         * syntax.c (Fforward_word):
9262         * syntax.c (scan_lists):
9263         * syntax.c (Fscan_lists):
9264         * syntax.c (Fscan_sexps):
9265         * syntax.c (Fparse_partial_sexp):
9266         * toolbar.c (Fcheck_toolbar_button_syntax):
9267         * tooltalk.doc:
9268         * window.c:
9269         * window.c (Fwindowp):
9270         * window.c (Fwindow_live_p):
9271         * window.c (Fwindow_point):
9272         * window.c (Fdelete_window):
9273         * window.c (Fnext_window):
9274         * window.c (Fprevious_window):
9275         * window.c (Fother_window):
9276         * window.c (window_loop):
9277         * window.c (Fget_lru_window):
9278         * window.c (Fsplit_window):
9279         * window.c (Fenlarge_window):
9280         * window.c (Fenlarge_window_pixels):
9281         * window.c (Fshrink_window):
9282         * window.c (Fshrink_window_pixels):
9283         * window.c (change_window_height):
9284         * window.c (Fwindow_configuration_p):
9285         * window.c (Fcurrent_window_configuration):
9286         * window.h:
9287         * casefiddle.c (casify_object):
9288         * casefiddle.c (Fupcase):
9289         * casefiddle.c (Fdowncase):
9290         * casefiddle.c (Fcapitalize):
9291         * casefiddle.c (Fupcase_initials):
9292         * casefiddle.c (casify_region_internal):
9293         * casefiddle.c (casify_region):
9294         * casefiddle.c (Fupcase_region):
9295         * casefiddle.c (Fdowncase_region):
9296         * casefiddle.c (Fcapitalize_region):
9297         * casefiddle.c (Fupcase_initials_region):
9298         * casefiddle.c (Fupcase_word):
9299         * casefiddle.c (Fdowncase_word):
9300         * casefiddle.c (Fcapitalize_word):
9301         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
9302         Replace 0 with '\0' when working with bytes.
9303         Replace initial "(" with "\(" in docstrings.
9304
9305 2000-11-01  Martin Buchholz  <martin@xemacs.org>
9306
9307         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
9308
9309         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
9310
9311 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9312
9313         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
9314
9315 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9316
9317         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
9318         correctly.
9319
9320 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9321
9322         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
9323         (inhibit_auto_save_session): New variable.
9324         (vars_of_fileio): Declare and initialize them.
9325         * fileio.c (Fdo_auto_save): Don't create session file if
9326         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
9327
9328 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9329
9330         * sgiplay.c (play_internal): C++ compilability.
9331         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
9332         * callproc.c (Fold_call_process_internal):
9333         Remove unused vars `env', `first'.
9334         * scrollbar.c (update_scrollbar_instance):
9335         #### unused var `current_window'.
9336         * redisplay-tty.c: Put currently unused vars insert_mode_on,
9337         etc. within #ifdef NOT_YET.
9338         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
9339         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
9340         * specifier.c (specifier_instance):
9341         #### unused var `tag'.
9342         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
9343
9344 2000-10-27  Martin Buchholz  <martin@xemacs.org>
9345
9346         * fns.c (Fbutlast):
9347         * fns.c (list_sort):
9348         * fns.c (Ffillarray):
9349         * fns.c (bytecode_nconc2):
9350         * fns.c (Fnconc):
9351         * fns.c (mapcar1):
9352         * fns.c (Fmapconcat):
9353         Be pedantically 64-bit correct.  For the time when someone will
9354         want to have a list with length > 2**32.
9355
9356         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9357         Work around MIPSpro compiler bug.
9358
9359         * process-unix.c (unix_kill_child_process): Add snarky comment.
9360         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
9361
9362         * config.h.in: Oops, _getpt ==> _getpty
9363
9364 2000-10-26  Martin Buchholz  <martin@xemacs.org>
9365
9366         * config.h.in:
9367         * regex.c:
9368         Use void*, not char*, as return type of alloca().
9369
9370         * alloc.c (free_marker): Side effect inside assert expression!
9371
9372 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
9373
9374         * mule-charset.c (Fset_charset_ccl_program): To check
9375         if the given ccl program is valid, use setup_ccl_program()
9376         instead of CHECK_VECTOR().
9377         (Fmake_charset): Likewise.
9378
9379 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
9380
9381         * faces.c (get_extent_fragment_face_cache_index):
9382         Fix cachel.merged_faces memory leak.
9383
9384 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
9385
9386         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
9387         Reset MSB of octets obtained by DECODE_SJIS
9388         because of the incompatibility with Emacs.
9389         (ccl_driver)<CCL_ENCODE_SJIS>:
9390         Set MSB of octets before passing them to
9391         ENCODE_SJIS because of the incompatibility
9392         with Emacs.
9393
9394 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
9395
9396         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
9397         (DECLARE_LRECORD): Undo the last change.
9398         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
9399
9400 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
9401
9402         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
9403         the implementation to lrecord_implementations_table.
9404
9405 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
9406
9407         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
9408         initial value of `lrecord_type_##c_name' and
9409         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
9410         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
9411         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
9412         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
9413         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
9414
9415 2000-10-17  Martin Buchholz  <martin@xemacs.org>
9416
9417         * miscplay.c (sndcnv8S_2mono):
9418         (sndcnv2monounsigned):
9419         (sndcnvULaw_2linear):
9420         (sndcnv16swap):
9421         Remove implementation-defined behavior.
9422
9423 2000-10-12  Martin Buchholz  <martin@xemacs.org>
9424
9425         * input-method-xlib.c: Warning suppression.
9426
9427 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
9428
9429         * mule-ccl.c: Sync up with Emacs 21.0.90.
9430         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
9431         Do nothing.
9432         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
9433         Likewise.
9434         (ccl_driver[WriteMultibyteChar2]): Bug fix.
9435         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
9436         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
9437         leading char belongs to official 2-dimensional charset.
9438         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
9439         write the given character as is.  Otherwise,
9440         if it is a multibyte char, convert it by
9441         non_ascii_set_charptr_emchar, then write it.
9442         (CCL_WRITE_STRING): Likewise.
9443         (ccl_get_compiled_code): New function.
9444         (setup_ccl_program): When ccl_prog is invalid,
9445         return -1.
9446         (Fregister_code_conversion_map): New function.
9447         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
9448
9449         * mule-ccl.h: Sync up with Emacs 21.0.90.
9450         (Fregister_ccl_program): export it.
9451
9452         * redisplay-msw.c (separate_textual_runs):
9453         If ccl program is not valid, don't do ccl conversion.
9454
9455         * redisplay-x.c (separate_textual_runs): Ditto.
9456
9457         * file-coding.c (Fmake_coding_system):
9458         When type is ccl and value is vector, register it
9459         with a proper symbol.  And checks whether the
9460         given ccl program is valid.
9461         (mule_decode): When calling ccl_driver, if src indicates
9462         NULL pointer, set an empty string instead.
9463         (mule_encode): Likewise.
9464
9465 2000-10-11  Martin Buchholz  <martin@xemacs.org>
9466
9467         The following large batch of changes gets us back to a state of
9468         C++ compilability.  Extbyte is now a char, which means that
9469         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9470
9471         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9472
9473         * sound.c (Fplay_sound): Type correctness.
9474
9475         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9476         (x_get_window_property): Type correctness.
9477         (receive_incremental_selection): unsigned char ==> Extbyte
9478         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9479         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9480         (Fx_store_cutbuffer_internal): Type correctness.
9481
9482         * process-unix.c (try_to_initialize_subtty): Type correctness.
9483
9484         * objects-x.c (x_print_color_instance): Type correctness.
9485         (x_print_font_instance): Type correctness.
9486         (x_list_fonts): SExtbyte ==> Extbyte.
9487         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9488         (x_find_charset_font): SExtbyte ==> Extbyte.
9489         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9490         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9491         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9492         Use bufbyte_strcmp.
9493
9494         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9495         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9496         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9497         (BYTE_C0_P): Use bit ops for char-signedness safety.
9498         (BYTE_C1_P): Use bit ops for char-signedness safety.
9499         (CHARSET_BY_LEADING_BYTE):
9500         (CHARSET_BY_ATTRIBUTES):
9501         Always use inline function.
9502         Use type_checking_assert.
9503         Hide chlook.
9504
9505         * mule-charset.c (non_ascii_charptr_copy_char):
9506         Modify to work with both ASCII and non-ASCII characters.
9507         Improve docs and variable names.
9508         Replace over-clever fall-through switch with a simple loop.
9509         (Lstream_get_emchar_1):
9510         Replace over-clever fall-through switch with a simple loop.
9511
9512         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9513         Warning suppression.
9514
9515         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9516         the return value of Lstream_getc, which could be EOF as well.
9517
9518         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9519
9520         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9521         APIs can be used on Extbytes without casts.  Risky!
9522         (SExtbyte): Remove.
9523         (UExtbyte): Remove.
9524
9525         * input-method-xlib.c (XIM_init_device):
9526         Use Xlib.h instead of IntrinsicP.h.
9527         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9528         which will break in X11R7.
9529         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9530         to call XRegisterIMInstantiateCallback with correct types.
9531
9532         * gui-x.c (button_item_to_widget_value): Type correctness.
9533
9534         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9535
9536         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9537         (xbm_instantiate_1): Type correctness.
9538         (BUILD_GLYPH_INST):  Type correctness.
9539
9540         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9541
9542         * file-coding.c:
9543         (decode_coding_sjis):
9544         (decode_coding_big5):
9545         (decode_coding_ucs4):
9546         (decode_coding_utf8):
9547         (decode_coding_iso2022):
9548         (decode_coding_no_conversion):
9549         Make all decoding functions take an Extbyte * arg.
9550         (encode_coding_sjis):
9551         (encode_coding_big5):
9552         (encode_coding_ucs4):
9553         (encode_coding_utf8):
9554         (encode_coding_iso2022):
9555         (encode_coding_no_conversion):
9556         Make all encoding functions take a Bufbyte * arg.
9557         Use size_t instead of unsigned int for memory sizes.
9558         Only cast to unsigned char whenever dereferencing Extbyte *.
9559
9560         * doc.c (unparesseuxify_doc_string): Type correctness.
9561
9562         * console-x.c (split_up_display_spec):
9563         Rewrite without using details of internal string representation.
9564         (x_semi_canonicalize_device_connection): Type correctness.
9565
9566         * config.h.in:
9567         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9568         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9569         (HAVE_XFREE386): Removed.
9570
9571         * buffer.h (DEC_CHARPTR): `const' correctness.
9572         (bufbyte_strcmp): New.
9573         (bufbyte_memcmp): New.
9574
9575         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9576
9577         * buffer.h (XCHAR_OR_CHAR_INT):
9578         Always use inline function.
9579         Remove redundant type checking assert() - XINT will abort quite nicely.
9580
9581 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9582
9583         * search.c (Freplace_match): Set newtext to an empty string.
9584
9585 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9586
9587         * s/decosf1-3.h: Remove #include of stropts.h
9588         * s/ptx.h: Remove #include of stropts.h
9589         * s/usg5-4.h: Remove #include of stropts.h
9590         * sysproc.h:
9591         * config.h.in:
9592         Use stropts.h, not sys/stropts.h.
9593         Use strtio.h, not sys/strtio.h.
9594
9595 2000-10-04  Martin Buchholz <martin@xemacs.org>
9596
9597         * XEmacs 21.2.36 is released.
9598
9599 2000-09-21  Andy Piper  <andy@xemacs.org>
9600
9601         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9602         changes still involve copying the widget tree.
9603         (update_widget_face): make sure a change is register in the widget
9604         tree. Call update_tab_widget_face appropriately.
9605         (update_tab_widget_face): ditto.
9606         (x_tab_control_redisplay): make sure non-structural changes still
9607         involve copying the widget tree.
9608
9609 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9610
9611         * lread.c (locate_file): Check the path element is non-nil.
9612
9613 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9614
9615         * lisp.h: Warning suppression for SCO compilers.
9616
9617         * redisplay-tty.c (reset_tty_modes): Fix crash.
9618         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9619
9620 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9621
9622         Big signal/process handling overhaul.  Bugs fixed:
9623         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9624         M-x comint-kill-subjob should work for both values nil and t of
9625         process-connection-type. It was broken on most platforms.
9626         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9627         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9628         * process-unix.c: Signal/Process handling overhaul.
9629         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9630         (allocate_pty): Use all available modern methods of allocating
9631         ptys, falling back to old style BSD allocation as a last resort.
9632         Use allegedly more secure Unix98 pty allocation by default.
9633         (allocate_pty_the_old_fashioned_way): New. the last resort.
9634         (unix_create_process): Push ptem, ldterm, ttcompat where
9635         available.  Autoconfiscate.
9636         (try_to_initialize_subtty): New.
9637         (unix_kill_child_process): Proper signal handling for ptys on most
9638         platforms, using special knowledge of AIX, BSD, etc...
9639         (unix_create_process): Always disconnect_controlling_terminal() for
9640         subprocesses, whether using ptys or not.
9641         * process.h: Remove old getpt-dependent PTY code.
9642         * process.c (Fprocess_send_signal): New, obvious generic function.
9643         (decode_signal): New.
9644         (Finterrupt_process):
9645         (Fkill_process):
9646         (Fquit_process):
9647         (Fstop_process):
9648         (Fcontinue_process):
9649         (Fsignal_process): Use decode_signal.
9650         (process_send_signal):
9651         Many docstring corrections.
9652         Allow any signal to be sent to a process object.
9653         * config.h.in: Add symbols for big signal/process overhaul.
9654         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9655         * sysproc.h: Include process-related headers, where available:
9656         sys/stropts.h sys/strtio.h pty.h libutil.h
9657         * s/irix4-0.h:
9658         * s/irix5-0.h:
9659         * s/cygwin32.h:
9660         * s/gnu.h:
9661         * s/linux.h:
9662         * s/hpux.h:
9663         * s/aix3-1.h:
9664         Remove old S&M pty stuff.
9665         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9666         * systty.h: Simplify cpp hackery, improve comments.
9667         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9668
9669         * editfns.c (Fformat_time_string):
9670         Be a little more paranoid with the return value of ctime.
9671
9672         * fileio.c (check_executable):
9673         (check_writable):
9674         Use symbolic constants X_OK, W_OK.
9675
9676         * console-x.c (split_up_display_spec): Fix a warning.
9677
9678 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9679
9680         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9681         * ntproc.c (sys_spawnve): make_string ==> build_string
9682         Small clarity improvements.
9683
9684 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9685
9686         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9687
9688         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9689
9690         * config.h.in (HAVE_STRCASECMP): Remove.
9691
9692 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9693
9694         * redisplay-output.c (redisplay_output_pixmap):
9695         Cleaner and possibly more 64-bit correct code.
9696
9697 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9698
9699         * dumper.c (pdump_load_finish): move restoration of
9700         `noninteractive1' to emacs.c (main_1).
9701         * emacs.c (main_1): protect LISP-visible command-line flags
9702         from pdump_load().
9703
9704 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9705
9706         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9707         DUMP_TARGET instead of literal program names.
9708
9709 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9710
9711         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9712
9713 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9714
9715         * *: Spelling mega-patch
9716
9717 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9718
9719         * fns.c (bad_bad_turtle):
9720         Delete "Eek!" comment, since we fixed the bug to which it refers.
9721
9722 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9723
9724         * alloca.c: Replace REGISTER with register.
9725
9726 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9727
9728         * file-coding.c (ucs_to_char): Use countof.
9729
9730 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9731
9732         * file-coding.c: (ucs_to_char):
9733         (complex_vars_of_file_coding):
9734         Use countof instead of sizeof.
9735         Use CHECK_NATNUM instead of CHECK_INT.
9736
9737         * sysdep.c (strcasecmp): Remove.
9738         * device-x.c (ascii_strcasecmp): New.
9739         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9740         Avoid using non-standard non-portable strcasecmp.
9741
9742 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9743
9744         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9745         * font-lock.c: remove reference to emacsfns.h.
9746         * search.c: small doc improvement.
9747         * event-Xt.c: correct file names in comments.
9748         * console-x.h Correct file names in comments.
9749         * frame.c: Correct file names in comments.
9750         * event-stream.c: remove Energize from comments.
9751
9752 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9753
9754         * symeval.h (DEFERROR_STANDARD):
9755         (DEFERROR):
9756         (DEFSYMBOL):
9757         (DEFSYMBOL_NO_DUMP):
9758         (DEFSYMBOL_MULTIWORD_PREDICATE):
9759         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9760         (DEFKEYWORD):
9761         The construct &##name is not sensible C.
9762         Fixes compilation errors with Unixware native compiler.
9763
9764 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9765
9766         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9767         (next_frame_internal): Removed.  We now just have next_frame.
9768         (next_frame):
9769         Write a simpler and cleaner one-pass algorithm.
9770         Remove called_from_delete_device arg and #ifdefed-out code.
9771         (previous_frame):
9772         Renamed from prev_frame.  Update callers.
9773         Cleaned up to have an analogous implementation to next_frame.
9774         (other_visible_frames_internal): Remove the
9775         called_from_delete_device bogus arg, and hence, remove this
9776         function.  Just use other_visible_frames().
9777
9778         * window.c (Fnext_window):
9779         Prettify docstring.
9780         Since next_frame() is guaranteed to return a frame, remove check
9781         for nil inserted in previous patch.
9782         (Fprevious_window):
9783         Prettify docstring.
9784         Make code look more like Fnext_window.
9785         (window_loop):
9786         Respect the `console' arg when iterating through windows.
9787         Fixes bug: (get-buffer-window buffer t device) not respecting
9788         the `device' arg.
9789         This function needs more work, as others have pointed out.
9790
9791         * frame.h: Rename prev_frame to previous_frame.
9792         device_matches_console_spec no longer takes a `frame' arg.
9793
9794         * s/gnu.h:
9795         * s/linux.h:
9796         * s/hpux.h:
9797         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9798         From "Golubev I. N." <gin@mo.msk.ru>.
9799
9800         * make-src-depend: Fix typo.
9801
9802 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9803
9804         * window.c (Fnext_window):
9805         next_frame() might return nil, not a frame.
9806         Fixes this crash:
9807         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9808
9809         * frame.c (next_frame_internal):
9810         We've passed a frame if we've passed its device.
9811         Fixes this crash:
9812         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9813 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9814
9815 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9816
9817         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9818         Allow option to suppress accelerators in menu/dialog items.
9819         (populate_or_checksum_helper): Pass dialog title through above.
9820
9821 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9822
9823         * event-msw.c (mswindows_key_to_emacs_keysym):
9824         Add "pause" key, fix "menu" key.
9825
9826 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9827
9828         * eval.c (reinit_vars_of_eval):
9829         Increase max_lisp_eval_depth to 1000,
9830         required for thai-xtis.el to byte-compile under some circumstances.
9831
9832 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9833
9834         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9835         From Kenichi Handa.
9836
9837 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9838
9839         * make-src-depend: Make the generated Makefiles smaller.
9840
9841         * s/hpux.h (SETUP_SLAVE_PTY):
9842         Provide a %d in the format string for the errno argument.
9843
9844         * editfns.c (Ftemp_directory):
9845         Warning fix.
9846         Avoid buffer overrun on very long file name.
9847
9848         * input-method-xlib.c (XIM_init_device):
9849         6th parameter of XRegisterIMInstantiateCallback has different
9850         pointer types on different OSes, so simply cast to (void *).
9851
9852         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9853
9854         * sysdll.c (dll_open):
9855         shl_load will hang hard if passed a NULL filename.
9856         Simply return NULL for compatibility with dlopen.
9857         * sysdll.c: Conform to XEmacs coding standards.
9858
9859         * sysdep.c (get_pty_max_bytes):
9860         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9861
9862 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9863
9864         * tooltalk.c: Add #include <syssignal.h>
9865
9866 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9867
9868         * s/hpux.h: Don't use undefined function sigunblock().
9869
9870 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9871
9872         * config.h.in: Add HAVE_BALLOON_HELP.
9873         * emacs.c: Use HAVE_BALLOON_HELP.
9874         * Makefile.in.in (x_objs):
9875         Make Balloon Help conditional on finding shape.h.
9876
9877 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9878
9879         * syntax.c (regex_emacs_buffer_p): New variable.
9880         * syntax.h (regex_emacs_buffer_p): extern.
9881         * search.c (looking_at_1):
9882         (string_match_1):
9883         (fast_string_match):
9884         (search_buffer): Set regex_emacs_buffer_p.
9885         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9886         when before_dot, at_dot, after_dot.
9887
9888 2000-08-23  Andy Piper  <andy@xemacs.org>
9889
9890         * gui-x.c (popup_selection_callback): Only set action_occurred
9891         when we really have an image instance.
9892         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9893
9894 2000-08-23  Andy Piper  <andy@xemacs.org>
9895
9896         * gui-msw.c (mswindows_handle_gui_wm_command): set
9897         action_occurred.
9898         * gui-x.c (popup_selection_callback): ditto.
9899
9900         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9901         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9902         (struct Lisp_Image_Instance): add action_occurred flag.
9903
9904         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9905         (image_instance_changed): ditto.
9906         (reset_frame_subwindow_instance_cache): only unmap windows - do
9907         not remove them from the cache also.
9908
9909         * glyphs-widget.c (tab_control_update): better debug.
9910         (progress_gauge_update): ditto.
9911         (layout_update): ditto.
9912         (layout_instantiate): ditto.
9913         (tab_control_order_only_changed): cope with null pending items.
9914
9915         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9916         debug. Force selection of an item when an action occurred. Cope
9917         with null pending_items.
9918         (mswindows_progress_gauge_redisplay): better debug.
9919         * glyphs-x.c (x_tab_control_redisplay): ditto.
9920
9921         * redisplay.c (redisplay_frame): reset the frame cache if the
9922         frame is garbaged.
9923
9924         * window.c (Fset_window_configuration): potentially re-enable
9925         frame cache reset.
9926         (window_unmap_subwindows): need to finalize instances here since
9927         it is only used in mark_window_as_deleted.
9928
9929 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9930
9931         * nas.c (SndOpenDataForReading):
9932         nas.c (WaveOpenDataForReading):
9933         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9934         Somehow escaped from the 2000-08-14 patch.
9935
9936 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9937
9938         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9939         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9940
9941 2000-08-21  Andy Piper  <andy@xemacs.org>
9942
9943         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9944         window if it is not already displayed.
9945
9946         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9947         it is not already displayed.
9948
9949         * window.c (Fset_window_configuration): don't reset the frame
9950         cache.
9951
9952         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9953         instances from the frame cache if we are actually finalizing them.
9954         (reset_frame_subwindow_instance_cache): reset frame cache only
9955         after unmapping everything.
9956         (map_subwindow): set displayed flag after mapping.
9957
9958 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9959
9960         * data.c (indirect_function):
9961         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9962
9963         * eval.c (function_argcount):
9964         Use original function when signaling errors.
9965
9966 2000-08-18  Andy Piper  <andy@xemacs.org>
9967
9968         * frame.c (delete_frame_internal): use new
9969         free_frame_subwindow_instances name.
9970
9971         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9972         (add_tab_item): make return type correct.
9973         (mswindows_tab_control_instantiate): assert index of tab.
9974         (mswindows_tab_control_redisplay): Re-code to use
9975         gui_item_equal_sans_selected and gui_item_list_find_selected.
9976
9977         * glyphs-widget.c (tab_control_update): Correct comment.
9978
9979         * window.c (window_unmap_subwindows): use new
9980         unmap_subwindow_instance_cache_mapper.
9981         (window_unmap_subwindows_cache_mapper): deleted.
9982         (Fset_window_configuration): comparisons should now be with
9983         EQ. Preserve the subwindow instance cache across configuration
9984         changes.
9985         (allocate_window): ditto.
9986         (make_dummy_parent): ditto.
9987
9988         * glyphs.c (free_frame_subwindow_instances): rename from
9989         free_frame_subwindow_instance_cache. finalize all instances rather
9990         than just those in the display cache.
9991         (finalize_all_subwindow_instances): walk windows unmapping and
9992         finalizing subwindows.
9993         (unmap_subwindow_instance_cache_mapper): moved from
9994         window.c. Allow finalization as well as unmapping.
9995
9996         * gui.c (gui_item_list_find_selected): new function.
9997
9998         * gui.h (gui_item_list_find_selected): declare.
9999
10000         * glyphs-x.c (x_tab_control_redisplay): pick tab
10001         explicitly. Re-code to use gui_item_equal_sans_selected and
10002         gui_item_list_find_selected.
10003
10004         * glyphs-x.h: add lwlib-utils.h
10005
10006         * buffer.c (Frecord_buffer): undo previous change.
10007
10008 2000-08-09  Vin Shelton  <acs@xemacs.org>
10009
10010         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
10011         possible.  Create temporary files more securely.  The patch was
10012         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
10013         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
10014         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
10015         for details.
10016
10017 2000-08-07  Ben Wing  <ben@xemacs.org>
10018
10019         * getloadavg.c: remove duplicate (and windows-breaking)
10020         includes of fcntl.h and sys/file.h.
10021
10022         * nt.c: remove duplicate getloadavg() definition.
10023
10024         * sysdll.h (Qdll_filename_encoding): add missing stand-in
10025         encodings.
10026
10027 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10028
10029         * eval.c (function_argcount): If function needs to be autoloaded
10030         actually use the loaded definition.
10031         GCPRO function.
10032
10033 2000-08-05  Ben Wing  <ben@xemacs.org>
10034
10035         * getloadavg.c: add prototype for getloadavg().  remove
10036         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
10037         of the code).  remove duplicate header includes.
10038
10039         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
10040
10041         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
10042         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
10043         useful load average.
10044
10045         * alloc.c (reinit_alloc_once_early): removed references to
10046         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
10047         the lisp vars are the only things referencing the malloc_sbrk_*
10048         vars, and they were already if 0'd out.  these vars only exist
10049         in the older malloc.c, which is basically unused, and they're
10050         only for informational purposes.
10051
10052         * m\*.h: removed useless VIRT_ADDR_VARIES.
10053
10054         * m\powerpc.h: removed stray NO_ARG_ARRAY.
10055
10056 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10057
10058         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
10059         color if the image is a mono pixmap.
10060
10061 2000-07-30  Ben Wing  <ben@xemacs.org>
10062
10063         * Makefile.in.in (release):
10064         Remove stray @.
10065
10066         * buffer.c (directory_is_current_directory):
10067         * dired-msw.c (mswindows_get_files):
10068         * dired.c:
10069         * dired.c (Fdirectory_files):
10070         * dired.c (file_name_completion_stat):
10071         * dired.c (Ffile_attributes):
10072         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
10073         preprocessor tricks, to avoid problems on some machines
10074         (e.g. SCO).
10075
10076         * callproc.c (egetenv): GC docs.
10077
10078         * console-msw.h:
10079         * console-msw.h (struct mswindows_dialog_id):
10080         * lrecord.h (lrecord_type):
10081         New object for use with MSW dialogs.
10082
10083         * console.h (struct console_methods):
10084         New enable/disable frame methods, for proper modal dialogs.
10085
10086         * device-msw.c (msprinter_default_printer): Fix to follow
10087         proper Mule conventions.
10088
10089         * device-msw.c:
10090         * device-msw.c (signal_open_printer_error):
10091         * device-msw.c (msprinter_init_device):
10092         * device-msw.c (ensure_not_printing):
10093         * device-msw.c (plist_get_margin):
10094         * device-msw.c (Fmsprinter_select_settings):
10095         * device-msw.c (finalize_devmode):
10096         * device-msw.c (Fmsprinter_settings_despecialize):
10097         * device-msw.c (signal_enum_priner_error):
10098         * extents.c (decode_extent):
10099         * extents.c (decode_map_extents_flags):
10100         * extents.c (decode_extent_at_flag):
10101         * extents.c (Fextent_at):
10102         * extents.c (Fextents_at):
10103         * extents.c (symbol_to_glyph_layout):
10104         [[[[2]]]] Use structured errors.
10105
10106         * dialog-msw.c:
10107         * dialog-msw.c (mswindows_is_dialog_msg):
10108         * dialog-msw.c (mark_mswindows_dialog_id):
10109         * dialog-msw.c (dialog_proc):
10110         * dialog-msw.c (handle_question_dialog_box):
10111         * dialog-msw.c (syms_of_dialog_mswindows):
10112         Define new object to clean up marking; use it as a dialog identifier.
10113         Call new delete-dialog-box-hook.
10114
10115         * dialog-x.c (dbox_selection_callback):
10116         * dialog-x.c (dbox_descriptor_to_widget_value):
10117         * dialog-x.c (x_make_dialog_box_internal):
10118         Call new delete-dialog-box-hook.
10119         Return an id.
10120
10121         * dialog.c:
10122         * dialog.c (syms_of_dialog):
10123         * dialog.c (vars_of_dialog):
10124         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
10125
10126         * eval.c:
10127         * eval.c (signal_call_debugger):
10128         when noninteractive, output stack traces on the console instead
10129         of in a (never-seen) buffer.
10130
10131         * eval.c (signal_type_error):
10132         * eval.c (invalid_argument_2):
10133         * lisp.h:
10134         new funs for use w/structured errors.
10135
10136         * event-Xt.c:
10137         * event-Xt.c (x_to_emacs_keysym):
10138         * event-Xt.c (describe_event):
10139         * event-Xt.c (emacs_Xt_event_handler):
10140         * event-Xt.c (vars_of_event_Xt):
10141         * event-msw.c:
10142         * event-msw.c (mswindows_wnd_proc):
10143         * event-msw.c (vars_of_event_mswindows):
10144         rename {x,mswindows}-debug-events to debug-{}-events for
10145         consistency with other debug-foo variables.
10146
10147         * event-stream.c:
10148         document next-event more clearly.
10149
10150         * fileio.c (Ffile_name_directory):
10151         * fileio.c (Ffile_name_nondirectory):
10152         * fileio.c (Funhandled_file_name_directory):
10153         * fileio.c (file_name_as_directory):
10154         * fileio.c (Ffile_name_as_directory):
10155         * fileio.c (directory_file_name):
10156         * fileio.c (Fdirectory_file_name):
10157         * fileio.c (Fmake_temp_name):
10158         * fileio.c (Ffile_truename):
10159         * fileio.c (Fsubstitute_in_file_name):
10160         * fileio.c (expand_and_dir_to_file):
10161         * fileio.c (barf_or_query_if_file_exists):
10162         * fileio.c (check_executable):
10163         * fileio.c (Ffile_exists_p):
10164         * fileio.c (Ffile_writable_p):
10165         * fileio.c (Ffile_directory_p):
10166         * fileio.c (Ffile_regular_p):
10167         * fileio.c (Ffile_modes):
10168         * fileio.c (Ffile_newer_than_file_p):
10169         * fileio.c (Fverify_visited_file_modtime):
10170         * fileio.c (Fset_visited_file_modtime):
10171         * fileio.c (auto_save_1):
10172         (1). (2).
10173         fix up gcpro's.
10174
10175         * frame-msw.c:
10176         * frame-msw.c (mswindows_init_frame_1):
10177         * frame-msw.c (mswindows_enable_frame):
10178         * frame-msw.c (error_frame_unsizable):
10179         * frame-msw.c (msprinter_init_frame_1):
10180         * frame-msw.c (msprinter_init_frame_3):
10181         * frame-msw.c (console_type_create_frame_mswindows):
10182         (2).
10183         implement new enable/disable frame methods.
10184
10185         * frame-x.c:
10186         * frame-x.c (x_enable_frame):
10187         * frame-x.c (console_type_create_frame_x):
10188         implement new enable/disable frame methods.
10189
10190         * frame.c:
10191         * frame.c (Fdisable_frame):
10192         * frame.c (syms_of_frame):
10193         * frame.h (struct frame):
10194         implement new enable/disable frame methods/functions.
10195
10196         * general-slots.h:
10197         add initial-focus.
10198
10199         * glyphs-msw.c (mswindows_widget_instantiate):
10200         comment that initial-focus should be implemented.
10201
10202         * glyphs-widget.c:
10203         * glyphs-widget.c (check_valid_instantiator):
10204         * glyphs-widget.c (check_valid_orientation):
10205         * glyphs-widget.c (check_valid_tab_orientation):
10206         * glyphs-widget.c (check_valid_justification):
10207         * glyphs-widget.c (check_valid_border):
10208         * glyphs-widget.c (check_valid_callback):
10209         * glyphs-widget.c (check_valid_int_or_function):
10210         * glyphs-widget.c (check_valid_string_or_vector):
10211         * glyphs-widget.c (check_valid_item_list_1):
10212         * glyphs-widget.c (widget_validate):
10213         * glyphs-widget.c (combo_box_validate):
10214         * glyphs-widget.c (widget_instantiate):
10215         * glyphs-widget.c (syms_of_glyphs_widget):
10216         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
10217         * glyphs-widget.c (image_instantiator_combo_box):
10218         * glyphs-widget.c (image_instantiator_scrollbar):
10219         * glyphs-widget.c (image_instantiator_tab_control):
10220         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
10221         (2).
10222         support (unimplemented) keyword initial-focus.
10223         reindent long macros.
10224
10225         * glyphs-x.c (x_redisplay_widget):
10226         * glyphs-x.c (x_button_instantiate):
10227         * glyphs-x.c (x_button_redisplay):
10228         * glyphs-x.c (x_progress_gauge_instantiate):
10229         * glyphs-x.c (x_edit_field_instantiate):
10230         * glyphs-x.c (x_combo_box_instantiate):
10231         * glyphs-x.c (x_tab_control_instantiate):
10232         * glyphs-x.c (x_label_instantiate):
10233         * gui-x.c:
10234         * gui-x.c (button_item_to_widget_value):
10235         * gui-x.c (gui_items_to_widget_values_1):
10236         * gui-x.c (gui_item_children_to_widget_values):
10237         * gui-x.c (gui_items_to_widget_values):
10238         * gui-x.h:
10239         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10240         add new flag to gui-parsing routines to indicate whether
10241         accelerator specs should be supported.
10242
10243         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
10244
10245         * glyphs.h (struct Lisp_Image_Instance):
10246         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
10247         add initial-focus flag.
10248
10249         * gui.c:
10250         * gui.c (syms_of_gui):
10251         * gui.c (vars_of_gui):
10252         clean up menu-no-selection-hook.
10253
10254         * gui.h:
10255         support delete-dialog-box-hook.
10256
10257         * lread.c (Fload_internal):
10258         * lread.c (locate_file_in_directory_mapper):
10259         (1).
10260
10261         * lrecord.h:
10262         * lrecord.h (struct toolbar_button):
10263         * lrecord.h (syms_of_toolbar):
10264         document how to create a new object.
10265
10266         * menubar-msw.c (mswindows_char_is_accelerator):
10267         may be called on frames w/o menus.
10268
10269         * menubar.c (vars_of_menubar):
10270         clean up :filter docs.
10271
10272         * nt.c (readdir):
10273         * ntproc.c:
10274         (1).
10275
10276         * process-nt.c:
10277         * process-nt.c (validate_signal_number):
10278         * process-nt.c (signal_cannot_launch):
10279         * process-nt.c (nt_create_process):
10280         * process-nt.c (nt_send_process):
10281         * process-nt.c (nt_kill_child_process):
10282         * process-nt.c (nt_open_network_stream):
10283         * process-nt.c (syms_of_process_nt):
10284         (2).
10285         delete quote-handling.  call new lisp code that does it better.
10286
10287         * process-unix.c (connect_to_file_descriptor):
10288         * process-unix.c (allocate_pty):
10289         * process-unix.c (unix_send_process):
10290         * process-unix.c (unix_kill_child_process):
10291         * process-unix.c (unix_open_network_stream):
10292         * process-unix.c (unix_open_multicast_group):
10293         (1). (2).
10294
10295         * process.c:
10296         * process.c (Fstart_process_internal):
10297         (2).  need to canonicalize process path even if absolute.
10298
10299         * select-msw.c (symbol_to_ms_cf):
10300         * select-msw.c (ms_cf_to_symbol):
10301         * select-msw.c (cf_is_autofreed):
10302         * select-msw.c (mswindows_destroy_selection):
10303         * select.c:
10304         * select.c (syms_of_select):
10305         * select.h:
10306         support dibv5, fix bugs. (from Mike Alexander)
10307
10308         * select.c (Fget_selection_internal):
10309         * select.c (select_convert_out):
10310
10311         * sysdep.c:
10312         * sysdep.c (xemacs_stat):
10313         renamed.
10314
10315         * sysdep.c (mkdir):
10316         * sysdep.c (rmdir):
10317         but keep original stat() here because we provide encapsulation
10318         around these funs.
10319
10320         * sysfile.h:
10321         * sysfile.h (fstat):
10322         remove stat garbage.
10323
10324         * syswindows.h:
10325         fix X/MSW conflict.
10326         don't include tchar.h.  it's inappropriate because it makes
10327         compile-time distinctions when we want runtime distinctions.
10328         (we provide our own tchar replacements)
10329
10330         * toolbar.c:
10331         use default object printer for toolbar-button.
10332
10333         * unexcw.c:
10334         make sure we don't encapsulate.
10335
10336         * window.c (vars_of_window):
10337         emphasize that temp-buffer-show-hook is obsolete.
10338
10339 2000-08-05  Martin Buchholz  <martin@xemacs.org>
10340
10341         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
10342         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
10343
10344         * events.c (Fevent_timestamp_lessp):
10345         Not 64-bit clean.  Use EMACS_INT, not int.
10346
10347 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
10348
10349         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
10350         unsigned int and changed the last enum to
10351         lrecord_type_last_built_in_type.
10352         (lrecord_implementations_table): changed prototype to know how
10353         long the array is supposed to be.
10354         (lrecord_type_count): new unsigned int to keep track of the
10355         current number of lisp lrecord types.
10356         (DEFINE_EXTERNAL_LRECORD):
10357         (DECLARE_EXTERNAL_LRECORD): Added these two for external
10358         dynamic-modules to declare new lisp types. They are the same
10359         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
10360         int for each new type, and increment lrecord_type_count by 1.
10361
10362         * alloc.c (lrecord_implementations_table): Changed to reference
10363         lrecord_type_last_built_in_type for the size of the array.
10364         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
10365
10366 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10367
10368         * glyphs.h (check_valid_item_list): Renamed from
10369         check_valid_item_list_1.
10370
10371 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
10372
10373         * select.c (Qselect_coerce): New.
10374         * select.c (Vselection_coercion_alist): New.
10375         * select.c (syms_of_select): Declare.
10376         * select.c (get-selection-internal): Use it.
10377         Use the new select-coerce functionality.
10378
10379         * select.c (select_coerce): New.
10380         * select.h (select_coerce): Declare.
10381         New function to coerce one type of data into another.
10382
10383 2000-08-03  Martin Buchholz  <martin@xemacs.org>
10384
10385         * callproc.c (Fcall_process_internal):
10386         (Fcall_process_internal):
10387         * process-unix.c (unix_create_process):
10388         Save and restore the value of errno, so that error messages are accurate.
10389
10390 2000-08-01  Martin Buchholz  <martin@xemacs.org>
10391
10392         * elhash.c (print_hash_table):
10393         Fix printing of hash tables to also use `key-and-value' instead of `t'.
10394         Prettify docstrings and indentation.
10395
10396 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10397
10398         * window.c (Fwindow_pixel_edges): Subtract frame border and
10399         gutter size.
10400
10401 2000-07-31  Andy Piper  <andy@xemacs.org>
10402
10403         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
10404         will acknowledge the change.
10405
10406         * glyphs.h: declare tab_control_order_only_changed.
10407
10408         * glyphs-x.c (x_tab_control_redisplay): use
10409         tab_control_order_only_changed.
10410
10411         * glyphs-widget.c (tab_control_order_only_changed): new function.
10412
10413         * glyphs-msw.c (mswindows_tab_control_redisplay): use
10414         tab_control_order_only_changed.
10415
10416         * gui.c (gui_item_equal_sans_selected): new function.
10417         (gui_item_equal): use it.
10418
10419         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
10420         :properties in favor of :items..
10421
10422         * glyphs-widget.c (check_valid_item_list): rename from
10423         check_valid_item_list_1.
10424         (check_valid_item_list_1): renamed.
10425         (combo_box_validate): deprecate :properties in favor of :items.
10426         (widget_instantiate): ditto.
10427         (tab_control_update): ditto.
10428         (image_instantiator_combo_box): ditto.
10429         (image_instantiator_tree_view): ditto.
10430         (image_instantiator_tab_control): ditto.
10431         (layout_post_instantiate): remove dead code.
10432
10433         * print.c (debug_print_no_newline): only write to debugger if in
10434         WIN32_NATIVE.
10435
10436         * elhash.c (Fmake_hash_table): update doc string.
10437
10438         * event-msw.c (mswindows_wnd_proc): don't allow processing of
10439         messages whilst in GC. This at least stops XEmacs crashing but has
10440         the potential for wierd behaviour.
10441
10442 2000-07-31  Martin Buchholz  <martin@xemacs.org>
10443
10444         * config.h.in:
10445         Make existence of s&m files optional.
10446
10447         * s/bsd386.h: Remove HAVE_GETLOADAVG.
10448         * s/freebsd.h: Remove HAVE_GETLOADAVG.
10449         * s/gnu.h: Remove HAVE_GETLOADAVG.
10450         * s/netbsd.h: Remove HAVE_GETLOADAVG.
10451         * s/sol2.h: Remove HAVE_GETLOADAVG.
10452         * lisp.h: Remove getloadavg() declaration.
10453         * fns.c:
10454         Include <sys/loadavg.h> if available.
10455         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
10456         * config.h.in:  Group together getloadavg()-related macros.
10457         Use only configure-time tests to detect getloadavg().
10458
10459 2000-07-30  Martin Buchholz  <martin@xemacs.org>
10460
10461         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10462
10463 2000-07-25  Andy Piper  <andy@xemacs.org>
10464
10465         * syswindows.h: add tchar.h for native builds.
10466
10467         * frame.c (syms_of_frame): remove set-glyph-image.
10468
10469         * general-slots.h: add Qset_glyph_image.
10470
10471         * glyphs-widget.c (layout_update): add domain arg to
10472         set-glyph-image.
10473         (syms_of_glyphs_widget): remove set-glyph-image.
10474
10475 2000-07-23  Ben Wing  <ben@xemacs.org>
10476
10477         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10478         Vpopup_frame_list.
10479
10480 2000-07-22  Andy Piper  <andy@xemacs.org>
10481
10482         * symsinit.h: add syms_of_win32().
10483
10484         * gui-msw.c (syms_of_gui_mswindows): remove
10485         Fmswindows_shell_execute.
10486         (Fmswindows_shell_execute): moved to win32.c.
10487
10488         * emacs.c (main_1): add syms_of_win32 ().
10489
10490         * win32.c (init_potentially_nonexistent_functions): rewrite in
10491         compiler-friendly terms.
10492         (Fmswindows_shell_execute): move here from gui-msw.c.
10493         (syms_of_win32): new.
10494
10495         * device-msw.c (Fmswindows_printer_list): clean up args to
10496         EnumPrinters.
10497         Don't include tchar under cygwin or mingw.
10498         (msprinter_default_printer): make cygwin-friendly.
10499
10500 2000-07-21  Andy Piper  <andy@xemacs.org>
10501
10502         * glyphs-widget.c (image_instantiator_tree_view): use tab
10503         control's update function.
10504         (layout_property): new function. Retrieve items.
10505
10506         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10507         function. Re-populate the tree view from the pending items.
10508
10509         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10510         is designated the parent if the domain is an image instance. This
10511         is needed so that dirtiness can be cascade up the hierarchy and
10512         thus for layout children to be redisplayed correctly.
10513         (allocate_image_instance): rename glyph -> parent.
10514
10515         * redisplay.h: change redisplay_output_layout signature.
10516
10517         * redisplay-msw.c (mswindows_output_display_block): use domain
10518         arg.
10519
10520         * redisplay-x.c (x_output_display_block): use domain arg.
10521
10522 2000-07-10  Andy Piper  <andy@xemacs.org>
10523
10524         * window.c (Fset_window_configuration): add comment.
10525
10526         * redisplay-output.c (compare_runes):
10527         (redisplay_output_subwindow): redisplay rather than update subwindow.
10528         (redisplay_output_layout): ditto.
10529
10530         * redisplay-msw.c (mswindows_frame_output_end):
10531         (mswindows_frame_output_end): make defer window pos optional.
10532
10533         * lisp.h: add Flast.
10534
10535         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10536         normalize method. Change update method to be for changed
10537         instantiators. Add redisplay method. Change signature of layout
10538         method.
10539         (struct Lisp_Image_Instance): add instantiator.
10540         (IMAGE_INSTANCE_INSTANTIATOR): new.
10541         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10542         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10543         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10544
10545         * glyphs.c:
10546         (find_instantiator_differences): new function.
10547         (Fset_instantiator_property): new convenience function.
10548         (check_image_instance_structure): strictly check for vector
10549         instantiators.
10550         (normalize_image_instantiator): make non-static.
10551         (instantiate_image_instantiator): pass on dest_mask and use new
10552         signatures for image_instance_layout and friends.
10553         (mark_image_instance): mark the instantiator. Mark the subwindow
10554         face not the widget face.
10555         (image_instance_equal): add instantiator.
10556         (image_instance_hash): ditto.
10557         (allocate_image_instance): ditto.
10558         (Fset_image_instance_property): removed.
10559         (Fimage_instance_file_name): ditto.
10560         (Fcolorize_image_instance): ditto.
10561         (image_instance_layout): add offsets to be set.
10562         (update_image_instance): new function. update an image instance
10563         from its changed instantiator.
10564         (inherit_normalize): add dest_mask.
10565         (xbm_normalize): ditto.
10566         (xface_normalize): ditto.
10567         (xpm_normalize): ditto.
10568         (text_update): set_property -> update.
10569         (image_instantiate): use the glyph identity as a hash key, not the
10570         instantiator.
10571         (glyph_width): use new image_instance_layout signature.
10572         (glyph_ascent): ditto.
10573         (glyph_descent): ditto.
10574         (glyph_height): ditto.
10575         (glyph_query_geometry): ressurrect.
10576         (glyph_layout): ditto.
10577         (redisplay_subwindow): update -> redisplay.
10578         (syms_of_glyphs): add Fset_instantiator_property.
10579         (image_instantiator_format_create): set_property -> update.
10580
10581         * glyphs-x.c:
10582         (autodetect_normalize): add dest_maks to signature.
10583         (x_redisplay_subwindow): update -> redisplay.
10584         (x_redisplay_widget): ditto.
10585         (x_button_redisplay): ditto.
10586         (x_progress_gauge_redisplay): ditto.
10587         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10588         stacking order.
10589         (console_type_create_glyphs_x): update -> redisplay.
10590         (image_instantiator_format_create_glyphs_x): ditto.
10591
10592         * glyphs-widget.c:
10593         (check_valid_instantiator): disallow glyphs in the instantiator,
10594         they must now be vectors.
10595         (check_valid_instantiator_list): ditto.
10596         (glyph_instantiator_to_glyph): use internal symbol rather than
10597         intern.
10598         (widget_update): renamed from widget_set_property. Call cascaded
10599         update methods.
10600         (redisplay_widget): renamed from update_widget.
10601         (widget_layout): image_instance_layout now takes position as well
10602         as size.
10603         (widget_normalize): ditto.
10604         (widget_instantiate): ditto.
10605         (tab_control_query_geometry) ditto.:
10606         (tab_control_update): renamed from tab_control_set_property.
10607         (progress_gauge_update): set_property -> update.
10608         (layout_normalize): rewrite so that child instantiators are
10609         normalized also.
10610         (layout_update): new function. Create glyphs from the normalized
10611         children and cope with any other layout keywords. We do not
10612         instantiate children here that will be take care of by
10613         redisplay_output_layout.
10614         (layout_instantiate): call layout_update and not much else.
10615         (layout_post_instantiate): not sure whether this is needed
10616         anymore.
10617         (layout_query_geometry): query glyph geometry rather than
10618         image_instance geometry.
10619         (layout_layout): set offsets from pass in parameters. Use glyph
10620         geometry and layout functions rather than image instance ones.
10621         (native_layout_layout): ditto.
10622         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10623         (image_instantiator_widget): set_property -> update.
10624         (image_instantiator_buttons): ditto.
10625         (image_instantiator_progress_guage): ditto.
10626         (image_instantiator_tab_control): ditto.
10627         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10628         (image_instantiator_layout): add update method.
10629
10630         * glyphs-msw.c (bmp_normalize):
10631         (mswindows_resource_normalize): add dest_mask so that it can be
10632         proprogated by layout_normalize.
10633         (begin_defer_window_pos): make optional because it may not be the
10634         right thing to do and it introduces differences with X.
10635         (mswindows_unmap_subwindow): ditto.
10636         (mswindows_map_subwindow): ditto.
10637         (mswindows_redisplay_subwindow): renamed from
10638         mswindows_update_subwindow.
10639         (mswindows_redisplay_widget): ditto.
10640         (mswindows_button_redisplay): renamed from
10641         mswindows_button_update. Update is now what the instantiation
10642         function does for a changed instantiator.
10643         (mswindows_progress_gauge_instantiate): set the progress value
10644         here if appropriate.
10645         (mswindows_tab_control_redisplay): cope with re-ordering of the
10646         members of the tab widget by simply selecting the new top
10647         widget. This makes things appear ok if you click on a tab.
10648         (mswindows_combo_box_instantiate): image_instance_layout now takes
10649         position as well as size.
10650         (mswindows_progress_gauge_redisplay): renamed from
10651         mswindows_progress_gauge_update.
10652         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10653         (image_instantiator_format_create_glyphs_mswindows): ditto.
10654
10655         * glyphs-eimage.c (jpeg_normalize):
10656         (gif_normalize):
10657         (png_normalize):
10658         (tiff_normalize): add dest_mask so that it can be proprogated by
10659         layout_normalize.
10660
10661         * elhash.c:
10662         (print_hash_table):
10663         (hash_table_weakness_validate):
10664         (decode_hash_table_weakness):
10665         (Fhash_table_weakness):
10666         (Fhash_table_type):
10667         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10668
10669         * console.h (struct console_methods): move update_* to
10670         redisplay_*.
10671
10672 2000-07-20  Ben Wing  <ben@xemacs.org>
10673
10674         * *.[ch] (XSETOBJ): remove unused middle argument.
10675         lisp-disunion.h: correct wrap_object() to one argument.
10676
10677 2000-07-15  Ben Wing  <ben@xemacs.org>
10678
10679         * s/cygwin32.h:
10680         * s/cygwin32.h (CYGWIN_CONV_PATH):
10681         Add missing logb prototype for v1.1.
10682         Use post-b20 names and alias to pre-b20 names when pre-b20.
10683
10684         * s/windowsnt.h: [5].
10685
10686 2000-07-15  Ben Wing  <ben@xemacs.org>
10687
10688         * Makefile.in.in (x_objs):
10689         * Makefile.in.in (sheap_objs):
10690         * Makefile.in.in (objs):
10691         added win32.o, cosmetic cleanups.
10692
10693         * alloc.c (Fmake_byte_code):
10694         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10695         etc. macros which declare their own args now.
10696
10697         * alloc.c (syms_of_alloc):
10698         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10699
10700         * buffer.c:
10701         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10702
10703         * buffer.c (Fget_file_buffer):
10704         Fixed GCPRO problem.
10705
10706         * buffer.c (get_truename_buffer):
10707         Fixed comment about GC checking.
10708
10709         * buffer.c (syms_of_buffer):
10710         Undeclared those dedicated frame funs.
10711         [2].
10712
10713         * buffer.h:
10714         Define convenience macros for internal/external conversions.
10715         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10716         and Qenvironment_variable_encoding for cleaner code.
10717
10718         * bufslots.h:
10719         Remove dedicated-frame; in lisp.
10720
10721         * bytecode.c (funcall_compiled_function):
10722         [1].
10723
10724         * bytecode.c (syms_of_bytecode):
10725         [2].
10726
10727         * console-msw.c:
10728         * console-msw.c (mswindows_show_console): Rewrote.
10729
10730         * console-msw.c (Fmswindows_debugging_output): New.
10731         Sends to OutputDebugString (special MSWin debugger interface).
10732
10733         * console-msw.c (Fmswindows_message_box):
10734         Fixed stupid bugs so it works when called from kill-emacs.
10735
10736         * console-msw.c (syms_of_console_mswindows):
10737         Declare Fmswindows_debugging_output.
10738
10739         * console-msw.h:
10740         New MSWin prototypes.
10741
10742         * console-msw.h (struct mswindows_frame):
10743         New entry last-click-mods for improved button-modifier support.
10744
10745         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10746         New struct entry `popup' with corresponding accessor.
10747
10748         * console-x.c:
10749         * console-x.c (split_up_display_spec):
10750         * console-x.c (get_display_arg_connection):
10751         * console-x.c (x_semi_canonicalize_console_connection):
10752         * console-x.c (x_canonicalize_device_connection):
10753         [[[6]]]: Change char to more specific type.
10754         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10755
10756         * console-x.c (x_semi_canonicalize_console_connection):
10757         * console-x.c (x_canonicalize_device_connection):
10758         [[[9]]]: Fix up error signalling to use new structured error system.
10759
10760         * console-x.h:
10761         [[[4]]]: Define codesys aliases:
10762         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10763         Qx_color_name_encoding, Qx_display_name_encoding.
10764
10765         * console.h (struct console_methods):
10766         New method make_dialog_box_internal supersedes older
10767         popup_dialog_box method.
10768
10769         * data.c:
10770         Define many new errors, part of new structured errors.
10771
10772         * data.c (init_errors_once_early):
10773         * data.c (syms_of_data):
10774         [2].
10775
10776         * device-msw.c (mswindows_init_device):
10777         [[[5]]]: Cleanup to support NT 3.51.
10778
10779         * device-msw.c (decode_devmode): Cleanup.
10780
10781         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10782         * device-msw.c (mswindows_handle_print_dialog_box):
10783         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10784         * device-msw.c (syms_of_device_mswindows):
10785         Delete the dialog box primitives recently introduced by Kirill and
10786         instead interface to general dialog box interface.
10787
10788         * device-x.c:
10789         * device-x.c (compute_x_app_name):
10790         * device-x.c (x_init_device):
10791         * device-x.c (Fx_valid_keysym_name_p):
10792         * device-x.c (Fx_set_font_path):
10793         [6].
10794         [7].
10795
10796         * device.h (wrap_device): New.
10797         First of its kind; meant to replace XSETDEVICE.
10798
10799         * dialog-msw.c: Many file-dialog symbols.
10800
10801         * dialog-msw.c (mswindows_register_popup_frame): New.
10802         * dialog-msw.c (mswindows_is_dialog_msg): New.
10803         For supporting kbd traversal in dialog boxes.
10804
10805         * dialog-msw.c (dialog_proc):
10806         Support hitting ESC in dialogs.
10807
10808         * dialog-msw.c (struct):
10809         Common dialog box errors.
10810
10811         * dialog-msw.c (handle_file_dialog_box): New.
10812         Add file dialog code.
10813
10814         * dialog-msw.c (handle_question_dialog_box):
10815         Redo existing code to support new question dialog syntax.
10816
10817         * dialog-msw.c (console_type_create_dialog_mswindows):
10818         We support new dialog console method.
10819
10820         * dialog-msw.c (syms_of_dialog_mswindows):
10821         * dialog-msw.c (vars_of_dialog_mswindows):
10822         New file dialog symbols, vars.
10823
10824         * dialog-x.c:
10825         * dialog-x.c (maybe_run_dbox_text_callback):
10826         * dialog-x.c (dbox_descriptor_to_widget_value):
10827         * dialog-x.c (x_make_dialog_box_internal):
10828         * dialog-x.c (console_type_create_dialog_x):
10829         Mule-ize entire file.
10830         Redo to support question dialog syntax.
10831         [6].
10832
10833         * dialog.c:
10834         * dialog.c (Fmake_dialog_box_internal):
10835         * dialog.c (syms_of_dialog):
10836         Kill old popup-dialog-box, replace with new primitive.
10837         Just call device method or signal error.
10838
10839         * eldap.c (Fldap_open):
10840         * eldap.c (Fldap_search_basic):
10841         * eldap.c (Fldap_add):
10842         * eldap.c (Fldap_modify):
10843         [1].
10844         [7].
10845
10846         * emacs.c:
10847         * emacs.c (make_arg_list_1):
10848         * emacs.c (make_arg_list):
10849         Mule-ize call to dll_init().
10850         [6].
10851         [8].
10852
10853         * emacs.c (make_argc_argv):
10854         * emacs.c (free_argc_argv):
10855         * emacs.c (init_cmdargs):
10856         * emacs.c (main_1):
10857         * emacs.c (Fkill_emacs):
10858         * emacs.c (Fdump_emacs):
10859         Update comments about what can be used in syms_* etc.
10860         Call init_win32() when necessary.
10861         Fix up MS Win dialog box in kill-buffer to actually work right.
10862         [7].
10863
10864         * eval.c:
10865         * eval.c (For):
10866         * eval.c (Fand):
10867         * eval.c (Fprogn):
10868         * eval.c (Fprog1):
10869         * eval.c (Fprog2):
10870         * eval.c (FletX):
10871         * eval.c (Flet):
10872         * eval.c (condition_case_3):
10873         * eval.c (Feval):
10874         * eval.c (function_argcount):
10875         * eval.c (funcall_lambda):
10876         [1].
10877
10878         * eval.c (type_error): New.
10879         * eval.c (maybe_type_error): New.
10880         * eval.c (continuable_type_error): New.
10881         * eval.c (maybe_continuable_type_error): New.
10882         * eval.c (type_error_with_frob): New.
10883         * eval.c (maybe_type_error_with_frob): New.
10884         * eval.c (continuable_type_error_with_frob): New.
10885         * eval.c (maybe_continuable_type_error_with_frob): New.
10886         New functions for use with structured errors.
10887
10888         * event-Xt.c:
10889         * event-Xt.c (x_event_to_emacs_event):
10890         Buttons are now modifiers too.
10891
10892         * event-Xt.c (emacs_Xt_current_event_timestamp):
10893         Implement new event method.
10894         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10895
10896         * event-msw.c:
10897         * event-msw.c (ntpipe_shove_writer): [5].
10898         * event-msw.c (mswindows_enqueue_mouse_button_event):
10899         * event-msw.c (mswindows_drain_windows_queue):
10900         * event-msw.c (mswindows_wnd_proc): [7].
10901         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10902         * event-msw.c (mswindows_modifier_state):
10903         Throughout: support new button modifiers.
10904
10905         * event-msw.c (emacs_mswindows_current_event_timestamp):
10906         Implement new event method.
10907         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10908
10909         * event-stream.c:
10910         * event-stream.c (event_stream_current_event_timestamp): New.
10911         * event-stream.c (maybe_kbd_translate): New functionality.
10912         * event-stream.c (vars_of_event_stream):
10913         Document new kbd-translate-table functionality.
10914
10915         * event-stream.c (Fcurrent_event_timestamp): New.
10916         New primitive for use in fabricated events.
10917         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10918
10919         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10920
10921         * events.c:
10922         * events.c (Fmake_event):
10923         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10924         [1].
10925         [9].
10926
10927         * events.c (format_event_object): fix gcc warnings.
10928
10929         * events.c (Fevent_timestamp): Document new primitives.
10930
10931         * events.c (TIMESTAMP_HALFSPACE): New.
10932
10933         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10934         comparing timestamps correctly (half-space algorithm).
10935
10936         * events.c (Fevent_modifier_bits): Doc fix.
10937
10938         * events.c (Fevent_modifiers): Major doc addition.
10939         * events.c (event_x_y_pixel_internal): Typo fix.
10940         * events.c (syms_of_events): Declare new primitives.
10941
10942         * events.h:
10943         Update long comment for button modifiers, timestamps.
10944
10945         * events.h (struct event_stream):
10946         New current_event_timestamp method.
10947
10948         * extents.c:
10949         * extents.c (extent_in_region_p):
10950         * extents.c (decode_extent):
10951         * extents.c (Fset_extent_parent):
10952         * extents.c (decode_map_extents_flags):
10953         Fix gcc warnings.
10954         [9].
10955
10956         * extents.c (struct extent_at_arg):
10957         * extents.c (decode_extent_at_flag):
10958         * extents.c (extent_at_mapper):
10959         * extents.c (extent_at_bytind):
10960         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10961         * extents.c (Fextents_at): New primitive. [9].
10962         * extents.c (symbol_to_glyph_layout): [9].
10963         Support new primitive `extents-at'.
10964
10965
10966         * extents.c (get_text_property_bytind):
10967         extent_at_bytind has another arg.
10968         [9].
10969
10970         * extents.c (syms_of_extents): New primitive.
10971
10972         * file-coding.c (Fmake_coding_system): [1].
10973         * file-coding.c (subsidiary_coding_system): fix gcc warning
10974         * file-coding.c (syms_of_file_coding): [2].
10975
10976         * fileio.c (Fexpand_file_name):
10977         * fileio.c (Fsysnetunam):
10978         * fileio.c (Ffile_exists_p):
10979         * fileio.c (Ffile_executable_p):
10980         * fileio.c (Fverify_visited_file_modtime):
10981         Clean up GCPROing.
10982
10983         * fileio.c (syms_of_fileio): [2].
10984
10985         * filelock.c (lock_file_1):
10986         * filelock.c (current_lock_owner):
10987         * filelock.c (lock_if_free):
10988         * filelock.c (lock_file):
10989         * filelock.c (unlock_file):
10990         Clean up GCPROing.
10991
10992         * fns.c (concat): Fix gcc warning.
10993
10994         * fns.c (Fmember):
10995         * fns.c (Fold_member):
10996         * fns.c (Fmemq):
10997         * fns.c (Fold_memq):
10998         * fns.c (memq_no_quit):
10999         * fns.c (Fassoc):
11000         * fns.c (Fold_assoc):
11001         * fns.c (Fassq):
11002         * fns.c (Fold_assq):
11003         * fns.c (assq_no_quit):
11004         * fns.c (Frassoc):
11005         * fns.c (Fold_rassoc):
11006         * fns.c (Frassq):
11007         * fns.c (Fold_rassq):
11008         * fns.c (rassq_no_quit):
11009         * fns.c (Fdelete):
11010         * fns.c (Fold_delete):
11011         * fns.c (Fdelq):
11012         * fns.c (Fold_delq):
11013         * fns.c (delq_no_quit):
11014         * fns.c (Fremassoc):
11015         * fns.c (Fremassq):
11016         * fns.c (remassq_no_quit):
11017         * fns.c (Fremrassoc):
11018         * fns.c (Fremrassq):
11019         * fns.c (remrassq_no_quit):
11020         * fns.c (Freverse):
11021         * fns.c (mapcar1):
11022         [1].
11023
11024         * frame-msw.c (mswindows_init_frame_1):
11025         * frame-msw.c (mswindows_delete_frame):
11026         Register popups with dialog code so keyboard traversing works.
11027
11028         * frame-tty.c (tty_raise_frame_no_select): [1].
11029
11030         * frame-x.c:
11031         * frame-x.c (x_set_frame_text_value):
11032         * frame-x.c (x_set_frame_properties):
11033         * frame-x.c (x_create_widgets):
11034         [7].
11035
11036         * frame.c:
11037         * frame.c (Fmouse_pixel_position): Minor doc fixes.
11038
11039         * frame.h (wrap_frame): New.
11040         Macro like wrap_device.
11041
11042         * general.c:
11043         * general.c (SYMBOL):
11044         * general.c (syms_of_general):
11045         Major reorg.  This is now just a wrapper and symbols themselves
11046         are listed in general-slots.h.
11047
11048         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
11049         * glyphs-msw.c (mswindows_resource_instantiate): [5].
11050
11051         * glyphs-msw.c (mswindows_native_layout_instantiate):
11052         Add DS_CONTROL so keyboard traversal will work.
11053
11054         * glyphs-widget.c:
11055         * glyphs-widget.c (syms_of_glyphs_widget):
11056         Move some symbols to general-slots.h.
11057
11058         * glyphs-x.c:
11059         * glyphs-x.c (xbm_instantiate_1):
11060         * glyphs-x.c (x_xbm_instantiate):
11061         * glyphs-x.c (x_xface_instantiate):
11062         * glyphs-x.c (autodetect_instantiate):
11063         * glyphs-x.c (cursor_font_instantiate):
11064         * glyphs-x.c (x_update_widget):
11065         * glyphs-x.c (x_widget_instantiate):
11066         * glyphs.c (bitmap_to_lisp_data):
11067         * glyphs.c (pixmap_to_lisp_data):
11068         [7].
11069
11070         * glyphs.c (syms_of_glyphs):
11071         [2].
11072
11073         * gui-x.c:
11074         * gui-x.c (print_widget_value):
11075         * gui-x.c (menu_separator_style_and_to_external):
11076         * gui-x.c (add_accel_and_to_external):
11077         * gui-x.c (button_item_to_widget_value):
11078         * gui-x.c (gui_items_to_widget_values_1):
11079         * gui-x.c (gui_items_to_widget_values):
11080         * gui-x.c (syms_of_gui_x):
11081         * gui-x.c (vars_of_gui_x):
11082         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
11083         [9].
11084
11085         * gui-x.h:
11086         Muleize, prototype changes matching gui-x.c.
11087
11088         * gui.c:
11089         * gui.c (separator_string_p):
11090         * gui.c (gui_item_add_keyval_pair):
11091         * gui.c (make_gui_item_from_keywords_internal):
11092         * gui.c (signal_too_long_error):
11093         * gui.c (parse_gui_item_tree_item):
11094         * gui.c (syms_of_gui):
11095         * gui.c (vars_of_gui):
11096         * gui.h:
11097         menu-no-selection-hook moved here (used by MSWin).
11098         Move some symbols to general-slots.h.
11099         [6].
11100         [9].
11101
11102         * insdel.c (get_buffer_pos_char):
11103         * insdel.c (get_buffer_range_char):
11104         Add GC comments.
11105
11106         * keymap.c (keymap_lookup_directly):
11107         * keymap.c (keymap_store):
11108         * keymap.c (ensure_meta_prefix_char_keymapp):
11109         * keymap.c (describe_map):
11110         * keymap.h:
11111         Support new button modifiers.
11112
11113         * lisp-disunion.h (wrap_object):
11114         * lisp-disunion.h (XSETOBJ):
11115         Rename make_obj to wrap_object.
11116
11117         * lisp-union.h:
11118         * lisp-union.h (make_int):
11119         * lisp-union.h (make_char):
11120         Support wrap_object.
11121
11122         * lisp.h:
11123         * lisp.h (LIST_LOOP):
11124         * lisp.h (EXTERNAL_LIST_LOOP):
11125         * lisp.h (LIST_LOOP_2):
11126         * lisp.h (EXTERNAL_LIST_LOOP_1):
11127         * lisp.h (EXTERNAL_LIST_LOOP_2):
11128         * lisp.h (EXTERNAL_LIST_LOOP_3):
11129         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
11130         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11131         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
11132         * lisp.h (EXTERNAL_ALIST_LOOP_5):
11133         * lisp.h (EXTERNAL_ALIST_LOOP_6):
11134         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
11135         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
11136         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
11137         * lisp.h (struct Lisp_Symbol):
11138         * lisp.h (maybe_continuable_error_with_frob):
11139         Fix up section comments.
11140         Add new types for char to indicate usage.
11141         Delete symbols auto-generated from general-slots.h.
11142         Add prototypes for structured error functions.
11143         Add long comments describing looping macros and change interface
11144         so that lvalues are automatically declared.
11145         Add NO_DECLARE macro in case callers want to declare lvalues
11146         themselves.
11147
11148         * lread.c (read_syntax_error):
11149         * lread.c (continuable_read_syntax_error):
11150         * lread.c (read_structure):
11151         * lread.c (sequence_reader):
11152         * lread.c (read_list_conser):
11153         * lread.c (read_compiled_function):
11154         Rename syntax_error and continuable_syntax_error to avoid clash
11155         with same-named structured error functions.
11156
11157         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11158         * menubar-msw.c (populate_menu_add_item):
11159         * menubar-msw.c (populate_or_checksum_helper):
11160         [5].
11161         [9].
11162
11163         * menubar-x.c:
11164         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11165         Mule-ize whole file.
11166
11167         * menubar.c (Fnormalize_menu_item_name): Add optimization.
11168
11169         * mule-charset.c (Fmake_charset):
11170         * mule-wnnfns.c (Fwnn_set_param):
11171         [1].
11172
11173         * ntproc.c (create_child):
11174         * ntproc.c (Fwin32_set_current_locale):
11175         Add comments portending doom.
11176
11177         * objects-msw.c:
11178         * objects-msw.c (old_font_enum_callback_2):
11179         * objects-msw.c (font_enum_callback_1):
11180         * objects-msw.c (mswindows_enumerate_fonts):
11181         [5].
11182
11183         * objects-x.c:
11184         * objects-x.c (allocate_nearest_color):
11185         * objects-x.c (x_parse_nearest_color):
11186         * objects-x.c (x_initialize_color_instance):
11187         * objects-x.c (x_print_color_instance):
11188         * objects-x.c (x_finalize_color_instance):
11189         * objects-x.c (x_valid_color_name_p):
11190         * objects-x.c (x_initialize_font_instance):
11191         * objects-x.c (x_print_font_instance):
11192         * objects-x.c (valid_x_font_name_p):
11193         * objects-x.c (truename_via_FONT_prop):
11194         * objects-x.c (truename_via_random_props):
11195         * objects-x.c (truename_via_XListFonts):
11196         * objects-x.c (x_font_truename):
11197         * objects-x.c (x_font_instance_truename):
11198         * objects-x.c (x_font_instance_properties):
11199         * objects-x.c (x_list_fonts):
11200         * objects-x.c (x_find_charset_font):
11201         Mule-ize entire file.
11202         [7].
11203
11204         * objects-x.h:
11205         Mule-verify.
11206
11207         * print.c:
11208         * print.c (std_handle_out_external):
11209         * print.c (debug_print_no_newline):
11210         * print.c (syms_of_print):
11211         Output to all debugger kinds in debug-print.
11212         Fix console-output code under MSWin to actually work.
11213
11214         * process-nt.c (send_signal):
11215         * process-nt.c (nt_create_process):
11216         Use newer Unicode macros.
11217
11218         * process-unix.c (unix_create_process):
11219         * process-unix.c (unix_canonicalize_host_name):
11220         * process-unix.c (unix_open_network_stream):
11221         [7].
11222
11223         * scrollbar-x.c:
11224         Mule-verify.
11225
11226         * search.c (syms_of_search):
11227         [2].
11228
11229         * select-msw.c (mswindows_destroy_selection):
11230         Use LIST_LOOP_2.
11231
11232         * select-x.c (symbol_to_x_atom):
11233         [7].
11234
11235         * select.c (syms_of_select):
11236         [2].
11237
11238         * sound.c (Fplay_sound_file):
11239         [7].
11240
11241         * specifier.c:
11242         * specifier.c (decode_specifier_type):
11243         * specifier.c (Fvalid_specifier_locale_type_p):
11244         * specifier.c (check_valid_locale_or_locale_type):
11245         * specifier.c (decode_locale):
11246         * specifier.c (decode_locale_type):
11247         * specifier.c (decode_locale_list):
11248         * specifier.c (check_valid_domain):
11249         * specifier.c (decode_specifier_tag_set):
11250         * specifier.c (Fcanonicalize_tag_set):
11251         * specifier.c (Fdefine_specifier_tag):
11252         * specifier.c (Fspecifier_tag_predicate):
11253         * specifier.c (check_valid_inst_list):
11254         * specifier.c (check_valid_spec_list):
11255         * specifier.c (decode_how_to_add_specification):
11256         * specifier.c (check_modifiable_specifier):
11257         * specifier.c (specifier_add_spec):
11258         * specifier.c (boolean_validate):
11259         * specifier.c (display_table_validate):
11260         [9].
11261
11262         * specifier.c (syms_of_specifier):
11263         Move some symbols to general-slots.h.
11264         [2].
11265
11266         * symbols.c:
11267         * symbols.c (Fmapatoms):
11268         * symbols.c (Fapropos_internal):
11269         Add GCPROs.
11270
11271         * symbols.c (set_default_buffer_slot_variable):
11272         * symbols.c (set_default_console_slot_variable):
11273         [1].
11274
11275         * symbols.c (defsymbol_massage_name_1):
11276         * symbols.c (defkeyword_massage_name):
11277         * symbols.c (deferror_1):
11278         * symbols.c (deferror):
11279         * symbols.c (deferror_massage_name_and_message):
11280         * symeval.h:
11281         * symeval.h (DEFSYMBOL):
11282         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
11283
11284         * symbols.c (syms_of_symbols):
11285         [2].
11286
11287         * symsinit.h:
11288         * symsinit.h (init_win32): New.
11289         Also new is syms_of_dialog_mswindows.
11290
11291         * syswindows.h:
11292         Add new Unicode macros, missing Cygwin wide-char functions,
11293         convenience conversion macros for Qmswindows_tstr, macros for
11294         encapsulating required MSWin <-> Cygwin filename conversions,
11295         prototype for dynamically-extracted (not in NT 3.51) functions.
11296
11297         * toolbar-x.c:
11298         Mule-verify.
11299
11300         * tooltalk.c (Fadd_tooltalk_message_arg):
11301         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11302         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11303         [7].
11304
11305         * tooltalk.c (syms_of_tooltalk):
11306         [2].
11307
11308         * unexnt.c:
11309         * unexnt.c (unexec):
11310         Fix up headers, declaration of unexec() to be more standard.
11311
11312 2000-07-20  Martin Buchholz  <martin@xemacs.org>
11313
11314         * offix.h: Revert change to guard macros - they're used in offix.c!
11315
11316 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11317
11318         * lisp.h: Defsubred Fdelete.
11319
11320         * console-msw.h:  (msprinter_default_printer): Added.
11321
11322         * console-msw.c (msprinter_canonicalize_console_connection):
11323         (msprinter_canonicalize_device_connection): Added.
11324
11325         * device-msw.c (msprinter_default_printer):
11326         (Fmswingows_get_default_printer):
11327         (signal_enum_priner_error):
11328         (Fmswingows_printer_list): Added.
11329
11330 2000-07-19  Martin Buchholz <martin@xemacs.org>
11331
11332         * XEmacs 21.2.35 is released.
11333
11334 2000-07-19  Martin Buchholz  <martin@xemacs.org>
11335
11336         * select-x.c (x_handle_selection_request):
11337         Text selected in xemacs and pasted into xterm failed to appear.
11338         Spelling fixes and cosmetic changes.
11339
11340 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11341
11342         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
11343         XEmacs frame (fix for doubling chars in dialog boxes).
11344
11345 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11346
11347         * select.c (select_convert_in, select_convert_out):
11348         Don't call intern() every time.
11349
11350         * select.c (Qselect_convert_in, Qselect_convert_out): New.
11351         * select.c (vars_of_select): Initialise them.
11352
11353 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11354
11355         * select.c (selection-coercible-types): New.
11356
11357         * select.c (own-selection-internal):
11358         * select.c (get-selection-internal):
11359         MULE bug fix - these should default to COMPOUND_TEXT and not
11360         STRING for MULE. I think.
11361
11362         * select.c (select_convert_out): Use selection-coercible-types
11363         to find types that we can attempt to perform coercions on.
11364
11365 2000-07-18  Martin Buchholz  <martin@xemacs.org>
11366
11367         * mule-wnnfns.c:
11368         * mule-canna.c:
11369         Add coding: cookie to identify encoding.
11370
11371         * mule-canna.c (CANNA_mode_keys): make static.
11372         Use proper prototypes, even for functions of no arguments.
11373         Remove external prototype for Fding().
11374
11375         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
11376
11377         * select.c (syms_of_select): Add missing DEFSUBR.
11378
11379 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11380
11381         * select.c (get_selection_internal, own_selection_internal):
11382         Make the type default to STRING, rather than placing a nil type
11383         into Vselection_alist.
11384
11385 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11386
11387         * gpmevent.c (tty_selection_exists_p):
11388         * gpmevent.c (tty_own_selection):
11389         Updated parameter lists.
11390
11391 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
11392
11393         * select.h (selection-alist): Removed declaration.
11394
11395         * select.h (get_local_selection):
11396         * select.c (get_local_selection):
11397         Made static.
11398
11399         * select.h (convert_selection): Removed declaration.
11400         * select.c (convert_selection): Removed.
11401         This function belongs in Lisp.
11402
11403         * select.h (select_convert_in): Declare.
11404         * select.h (select_convert_out): Declare.
11405         * select.c (select_convert_in): New.
11406         * select.c (select_convert_out): New.
11407         New conversion functions for other files to call.
11408
11409         * select.h (select_notify_buffer_kill): Declare.
11410         * select.c (select_notify_buffer_kill): New.
11411         New functions that get called from kill-buffer.
11412
11413         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
11414         X-specific lisp code.
11415
11416         * select.h: Declare some of the lisp-visible functions for
11417         external use.
11418
11419         * select.c (clean_local_selection_data): Removed. This was
11420         a disgusting function, and previously should have been in
11421         select-x.c in any case. The functionality is now provided
11422         in select-convert-from-integer (select.el).
11423
11424         * select.c (available-selection-types): Fixed stupidity where
11425         INTEGER and ATOM got added twice. Also add STRING when we see an
11426         extent.
11427
11428         * select.c (get-selection-internal): Removed symbol stripping. No
11429         longer causes conversion when data comes from the internal cache.
11430
11431         * select.c (syms_of_select): Added new functions.
11432
11433         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
11434         error checking - previously this called abort!
11435
11436         * select-x.c (x_own_selection): Changed comment.
11437
11438         * select-x.c (x_handle_selection_request): Use select_convert_out.
11439         Don't mess with selection-alist; it's an internal variable of select.c.
11440
11441         * select-x.c (x_get_foreign_selection): Use select_convert_in.
11442
11443         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
11444         rather than messing with selection-alist.
11445
11446         * select-msw.c (mswindows_get_foreign_selection):
11447         Use TO_INTERNAL_FORMAT rather than hacking.
11448
11449 2000-07-14  Martin Buchholz  <martin@xemacs.org>
11450
11451         * process-unix.c (unix_open_multicast_group):
11452         (unix_open_multicast_group): Remove useless casts.
11453
11454 2000-07-13  Martin Buchholz  <martin@xemacs.org>
11455
11456         * sound.c (Fplay_sound): Fix `unused variable' warning.
11457
11458         * emacs.c (main): Use correct type for _environ on SCO5.
11459
11460 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
11461
11462         * console.h (own_selection_method):
11463         * console.h (selection_exists_p_method):
11464         * console.h (available_selection_types_method): New.
11465         * console.h (register_selection_data_type_method): New.
11466         * console.h (selection_data_type_name): New.
11467
11468         * console-msw.h (mswindows_destroy_selection): Declare it.  New
11469         function & alist to track GlobalAlloc()'d handles that need
11470         releasing when the clipboard data gets replaced or emptied.
11471
11472         * event-msw.c (mswindows_wnd_proc): Call it.
11473
11474         * lisp.h, general.c (Qappend): New symbol representing a
11475         `how-to-add' mode.
11476
11477         * select.c (own-selection-internal):
11478         * select.c (selection-exists-p):
11479         * select.c (available-selection-types): New.
11480         * select.c (register-selection-data-type): New.
11481         * select.c (selection-data-type-name): New.  New functions to deal
11482         with device-specific selection data formats.
11483         * select.c (selection-converter-out-alist): Renamed.
11484         * select.c (selection-converter-in-alist): New.
11485         * select.c (selection-appender-alist): New.  Added new alists.
11486         * select.c (syms_of_select, vars_of_select): Added new symbols &
11487         variables.
11488         * select.c (get_local_selection): Split.
11489         * select.c: Removed spurious type checking - selections may now be
11490         of any type, not just strings.
11491         * select.c (own-selection-internal):
11492
11493         * select.h, select.c (convert_selection): New. Created
11494         convert_selection() function based on get_local_selection().
11495         * select.h, select.c (QCF_*): New symbols representing mswindows
11496         clipboard formats.
11497         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11498         symbols representing `how-to-add' modes.
11499
11500         * select-msw.c (x_sym_p): New.
11501         * select-msw.c (symbol_to_ms_cf): New.
11502         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11503         symbols & clipboard formats. Can also handle string names.
11504         * select-msw.c (mswindows_own_selection):
11505         * select-msw.c (mswindows_selection_exists_p):
11506         Added `data-type' parameter. Use it.
11507         * select-msw.c (mswindows_available_selection_types): New.
11508         * select-msw.c (mswindows_register_selection_data_type): New.
11509         * select-msw.c (mswindows_selection_data_type_name): New.
11510         * select-msw.c (mswindows_own_selection):
11511         * select-msw.c (mswindows_get_foreign_selection):
11512         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11513         * select-msw.c (console_create_select_mswindows): Added new methods.
11514         * select-msw.c (mswindows_destroy_selection): New.
11515         * select-msw.c (Vhandle_alist): New list.
11516         * select-msw.c (mswindows_own_selection):
11517
11518         * select-x.c (x_own_selection):
11519         * select-x.c (x_selection_exists_p):
11520         * select-x.c: Added some comments about maybe using new
11521         functionality.
11522         * select-x.c (x_own_selection):
11523
11524         * specifier.c: Remove definition of Qappend (now in general.c)
11525         * specifier.c (syms_of_specifier): Remove Qappend.
11526
11527 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11528
11529         * config.h.in: Add socklen_t.
11530
11531         * s/decosf4-0.h: No special compiler flags needed or desired.
11532         In particular, undefine _BSD for DEC OSF 4.0.
11533
11534 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11535
11536         * redisplay-msw.c (msprinter_frame_output_end): Added.
11537         (console_type_create_redisplay_mswindows): Referred the above.
11538
11539         * frame.c (setup_frame_without_minibuffer): Do not create a
11540         default minibuffer frame on a printer device.
11541
11542         * frame-msw.c (apply_dc_geometry): Added.
11543         (msprinter_start_page):
11544         (msprinter_init_frame_3):
11545         (msprinter_eject_page): Use it.
11546
11547         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11548         and removed residual duplex and orientation properties.
11549
11550 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11551
11552         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11553
11554         * unexalpha.c: Remove system prototypes from C sources!
11555
11556 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11557
11558         * eval.c: Remove references to M-x edit-options in DEFUNs for
11559         `defvar' and `defconst'.
11560
11561 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11562
11563         * config.h.in: Remove SMART_INCLUDE hackery.
11564
11565         PostgreSQL hacking:
11566         * config.h.in: Don't use SMART_INCLUDE.
11567
11568         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11569         * inline.c: Simply #include "postgresql.h"
11570         * postgresql.c:
11571         - Don't use SMART_INCLUDE
11572         - Use simply "const".
11573         - Use standard doc string conventions.
11574         - Use correct type for result of PQstatus.
11575
11576 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11577
11578         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11579
11580         C++ compilation changes.
11581         * config.h.in (EXTERN_C): Define.
11582         * config.h.in (not): This is also a C++ keyword.
11583         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11584         * cm.c: Use EXTERN_C.
11585         * redisplay-tty.c: Use EXTERN_C.
11586         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11587
11588 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11589
11590         * general.c: Remove duplicate definition for Qfunction.
11591
11592 2000-07-08  Ben Wing  <ben@xemacs.org>
11593
11594         * device-msw.c (msprinter_init_device):
11595         * device-msw.c (sync_printer_with_devmode):
11596         * device-msw.c (handle_devmode_changes):
11597         * device-msw.c (print_dialog_worker):
11598         * device-msw.c (Fmsprinter_apply_settings):
11599         * device-msw.c (hash_devmode):
11600         * device-msw.c (Fmsprinter_settings_despecialize):
11601         use Qmswindows_tstr, not Qctext.
11602
11603         * vm-limit.c (check_memory_limits):
11604         avoid infinite loop printing warning messages.
11605
11606 2000-07-05  Craig Lanning  <lanning@scra.org>
11607
11608         * Makefile.in.in: Add support for including the Windows resources
11609         when building with the cygwin and mingw targets.
11610
11611         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11612         not set or not correct.
11613         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11614         (init_initial_directory): Don't try to use $PWD on the
11615         WIN32_NATIVE target.
11616
11617         * s\cygwin32.h:
11618         [[Add -mwindows to eliminate console window.]] not required --ben
11619         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11620         (MAIL_USE_POP): removed; now handled by configure.
11621
11622         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11623         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11624         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11625         (MAIL_USE_POP): removed; now handled by configure.
11626         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11627         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11628         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11629         constant string.
11630         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11631         up from <winsock.h> via systime.h.
11632         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11633         (getpagesize): from Dan Holmsand, added.
11634         Added #endif which was left dangling by Ben's mega patch; added
11635         comment to help prevent this in the future.
11636
11637         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11638
11639 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11640
11641         * console-msw.h (struct mswindows_device): Removed unnecessary
11642         cached device geometry values.
11643         Added update_tick and an accessor macro.
11644         (Lisp_Devmode): Added lrecord declaration.
11645         (struct msprinter_device): Contain devmode as a Lisp object.
11646         Added mswindows_get_selected_frame_hwnd();
11647
11648         * console.h (struct console_methods): Indentation nitpicking.
11649
11650         * device-msw.c (mswindows_init_device): Do not initialize geometry
11651         cache. Initialize update tick.
11652         (mswindows_device_system_metrics): Ask the device for its geometry.
11653         (global_free_2_maybe):
11654         (devmode_to_hglobal):
11655         (handle_printer_changes):
11656         (ensure_not_printing):
11657         (print_dialog_worker):
11658         (Fmsprinter_print_setup_dialog):
11659         (Fmsprinter_print_dialog):
11660         (plist_get_margin):
11661         (plist_set_margin):
11662         (Fmsprinter_page_setup_dialog): Added functions.
11663         (sync_printer_with_devmode):
11664         (handle_devmode_changes):
11665         (Fmsprinter_get_settings):
11666         (Fmsprinter_select_settings):
11667         (Fmsprinter_apply_settings):
11668         (allocate_devmode):
11669         (Fmsprinter_settings_copy):
11670         (Fmsprinter_settings_despecialize):
11671         (print_devmode):
11672         (finalize_devmode):
11673         (equal_devmode):
11674         (hash_devmode): Added functions
11675         (syms_of_device_mswindows): Init devmode lrecord class.
11676
11677         * device.h: Added an exfun for find-device.
11678
11679         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11680         geometry; although, recreate the device compatible DC.
11681
11682         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11683         (msprinter_init_frame_3):
11684         (msprinter_frame_property):
11685         (msprinter_internal_frame_property_p):
11686         (msprinter_frame_properties):
11687         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11688         print job properties (will move to device settings).
11689
11690         * lisp.h: Added symbols.
11691
11692         * general.c (syms_of_general): Declared them.
11693
11694         * hash.c (string_hash): Added.
11695
11696         * lrecord.h (lrecord_type): Added devmode lrecord type.
11697
11698 2000-07-02  Mike Sperber <mike@xemacs.org>
11699
11700         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11701         FreeBSD 4.0.
11702
11703 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11704
11705         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11706         integer.
11707
11708 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11709
11710         * data.c (Fstring_to_number): Don't recognize floating point if
11711         base is not 10.
11712
11713 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11714
11715         * glyphs-widget.c (tab_control_query_geometry):
11716         (widget_query_geometry):
11717         (button_query_geometry):
11718         * glyphs.c (text_query_geometry):
11719         Enforce type correctness.
11720
11721 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11722
11723         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11724         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11725
11726 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11727
11728         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11729         conflicts with gcc's fixincluded version of FOO.h.
11730
11731         * glyphs.h (image_instance_geometry): Remove trailing `,'
11732
11733 2000-06-08  Mike Alexander  <mta@arbortext.com>
11734
11735         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11736         (shove_thread): Don't write the same output twice
11737         (make_ntpipe_output_stream): Increase priority of shove thread
11738         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11739         chance to run
11740         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11741         it.
11742
11743 2000-06-12  Ben Wing  <ben@xemacs.org>
11744
11745         * s\mingw32.h (sigset):
11746         * s\windowsnt.h (sigset):
11747         rename msw_ to mswindows_ for consistency with general convention.
11748
11749 2000-06-12  Ben Wing  <ben@xemacs.org>
11750
11751         * console-msw.c:
11752         * console-msw.c (mswindows_get_console_hwnd):
11753         * console-msw.c (mswindows_ensure_console_allocated):
11754         * console-msw.c (mswindows_hide_console):
11755         * console-msw.c (mswindows_show_console):
11756         * console-msw.c (mswindows_ensure_console_buffered):
11757         * console-msw.c (mswindows_output_console_string):
11758         * console-msw.c (mswindows_windows9x_p):
11759         * console-msw.h:
11760         * device-msw.c (mswindows_get_workspace_coords):
11761         * device-msw.c (mswindows_device_system_metrics):
11762         * dialog-msw.c (mswindows_popup_dialog_box):
11763         * event-msw.c (mswindows_wnd_proc):
11764         * frame-msw.c (mswindows_size_frame_internal):
11765         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11766         * menubar-msw.c (displayable_menu_item):
11767         * menubar-msw.c (mswindows_char_is_accelerator):
11768         * nt.c:
11769         * nt.c (mswindows_sigset):
11770         * nt.c (mswindows_sigrelse):
11771         * nt.c (mswindows_sigpause):
11772         * nt.c (mswindows_raise):
11773         * nt.c (timer_proc):
11774         * ntproc.c:
11775         * ntproc.c (find_child_console):
11776         * ntproc.c (sys_kill):
11777         * print.c:
11778         * print.c (std_handle_out_external):
11779         * process-nt.c (find_child_console):
11780         * process-nt.c (send_signal_the_95_way):
11781         * process-nt.c (ensure_console_window_exists):
11782         * process-nt.c (nt_create_process):
11783         * syssignal.h:
11784         rename msw_ to mswindows_ for consistency with general convention.
11785
11786         * emacs.c:
11787         * dumper.c:
11788         include nt.h, not syswindows.h.
11789
11790         * nt.c (mswindows_fstat):
11791         * nt.c (mswindows_stat):
11792         prefix mswindows_ instead of attempting to directly override the
11793         library functions.  fix declarations.
11794
11795         * nt.h:
11796         include syswindows.h.  move some sysdep.h stuff here.
11797
11798         * ntheap.h:
11799         include syswindows.h, not <windows.h>.
11800
11801         * ntplay.c:
11802         clean up headers.
11803
11804         * sysdep.c:
11805         clean up headers.
11806
11807         * sysdep.c (sys_fstat):
11808         * sysdep.c (sys_stat):
11809         call mswindows versions when appropriate.
11810
11811         * sysdep.h:
11812         move mswin decls to nt.h.
11813
11814         * syswindows.h:
11815         add long comment describing appropriate use of the various windows
11816         headers.
11817
11818 2000-06-11  Ben Wing  <ben@xemacs.org>
11819
11820         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11821
11822 2000-06-10  Ben Wing  <ben@xemacs.org>
11823
11824         * Makefile.in.in (release):
11825         Correction to make sure xemacs.exe always dumped when correct.
11826
11827         * alloca.c:
11828         * balloon_help.c:
11829         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11830
11831         * buffer.c (set_buffer_internal):
11832         [[[[2]]]]: Remove HAVE_FEP code.
11833
11834         * buffer.c (init_initial_directory):
11835         [3].
11836
11837         * bytecode.c:
11838         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11839         individual files.
11840
11841         * callproc.c:
11842         * callproc.c (call_process_cleanup):
11843         * callproc.c (Fold_call_process_internal):
11844         * callproc.c (child_setup):
11845         * callproc.c (getenv_internal):
11846         * callproc.c (init_callproc):
11847         * callproc.c (vars_of_callproc):
11848         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11849         __CYGWIN32__ -> CYGWIN.
11850         DOS_NT -> WIN32_NATIVE.
11851         Remove MSDOS support/references, converting to WIN32_NATIVE
11852           where correct.
11853         __MINGW32__ -> MINGW.
11854         Fix windows.h includes.
11855         Remove bogus HAVE_NTGUI.
11856
11857         * config.h.in:
11858         [2].
11859
11860         * console-msw.c:
11861         mswindows_message_outputted added for use in allowing startup
11862         errors on the console to be seen.
11863
11864         * console-msw.c (msw_ensure_console_allocated):
11865         * console-msw.c (msw_output_console_string):
11866         * console-msw.c (DHEADER):
11867         * console-msw.c (DOPAQUE_DATA):
11868         * console-msw.c (DEVENT):
11869         * console-msw.c (DCONS):
11870         * console-msw.c (DCONSCDR):
11871         * console-msw.c (DSTRING):
11872         * console-msw.c (DVECTOR):
11873         * console-msw.c (DSYMBOL):
11874         * console-msw.c (DSYMNAME):
11875         Fix warnings.
11876
11877         * console-stream.c (stream_init_console):
11878         Fix text/binary problems.
11879
11880         * device-msw.c:
11881         * device-msw.c (mswindows_finish_init_device):
11882         * device-msw.c (mswindows_delete_device):
11883         [1].
11884
11885         * device.c (handle_asynch_device_change):
11886         [3].
11887
11888         * dgif_lib.c:
11889         * dgif_lib.c (DGifOpenFileName):
11890         * dgif_lib.c (DGifOpenFileHandle):
11891         * dgif_lib.c (DGifGetLine):
11892         * dgif_lib.c (DGifGetPixel):
11893         Added config.h/lisp.h, fix up includes.
11894         [1].
11895
11896         * dired-msw.c:
11897         [4].
11898
11899         * dired.c:
11900         * dired.c (file_name_completion):
11901         * dired.c (Ffile_attributes):
11902         * dired.c (syms_of_dired):
11903         [1].
11904
11905         * dumper.c:
11906         * dumper.c (pdump_file_unmap):
11907         * dumper.c (pdump_load):
11908         [1].
11909
11910         * editfns.c:
11911         * editfns.c (Ftemp_directory):
11912         * editfns.c (user_login_name):
11913         * editfns.c (Fuser_real_login_name):
11914         * editfns.c (get_home_directory):
11915         [1].
11916
11917         * elhash.c (finish_marking_weak_hash_tables):
11918         [[[[5]]]]: Fix GCC warnings.
11919
11920         * emacs.c:
11921         * emacs.c (mswindows_handle_hardware_exceptions):
11922         * emacs.c (make_arg_list_1):
11923         * emacs.c (main_1):
11924         * emacs.c (Fkill_emacs):
11925         * emacs.c (Fdump_emacs):
11926         [1].
11927         Fix problems with nested crashes, add long comment.
11928
11929         * event-Xt.c (init_event_Xt_late):
11930         [1].
11931
11932         * event-msw.c:
11933         * event-msw.c (mswindows_dde_callback):
11934         * event-msw.c (mswindows_handle_sticky_modifiers):
11935         * event-msw.c (mswindows_wnd_proc):
11936         [1].
11937         [5].
11938
11939         * events.c (character_to_event):
11940         [1].
11941
11942         * fileio.c:
11943         * fileio.c (Ffile_name_directory):
11944         * fileio.c (Ffile_name_nondirectory):
11945         * fileio.c (directory_file_name):
11946         * fileio.c (Fexpand_file_name):
11947         * fileio.c (Fsubstitute_in_file_name):
11948         * fileio.c (Ffile_name_absolute_p):
11949         * fileio.c (check_executable):
11950         * fileio.c (Ffile_readable_p):
11951         * fileio.c (Ffile_accessible_directory_p):
11952         * fileio.c (Ffile_modes):
11953         * fileio.c (Funix_sync):
11954         * fileio.c (vars_of_fileio):
11955         [1]. [4].
11956
11957         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11958
11959         Expand getdefdir defn.
11960         Fix bogus rename() comment.
11961
11962         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11963         to use standard XEmacs include files, e.g. sysfile.h, rather
11964         than system-specific includes.
11965
11966         * fns.c:
11967         * fns.c (Fsubseq):
11968         [5]. [6].
11969
11970         * frame.c (vars_of_frame):
11971         [1].
11972
11973         * getloadavg.c:
11974         * getloadavg.c (getloadavg):
11975         [1]. [6].
11976         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11977         (We don't use it elsewhere in the code; just add a comment.)
11978
11979         * gif_io.c:
11980         [6].
11981         Add config.h.
11982
11983         * glyphs-msw.c:
11984         * glyphs-msw.c (mswindows_resource_instantiate):
11985         [1].
11986
11987         * glyphs-x.c (x_native_layout_instantiate):
11988         [5].
11989
11990         * gui-msw.c (Fmswindows_shell_execute):
11991         [1].
11992
11993         * insdel.c:
11994         [4].
11995
11996         * lisp.h:
11997         [4]. [5].
11998
11999         * lread.c (locate_file_in_directory_mapper):
12000         [1].
12001
12002         * lstream.c:
12003         [4].
12004
12005         * mem-limits.h:
12006         * mem-limits.h (get_lim_data):
12007         [1].
12008
12009         * menubar-msw.c:
12010         [4].
12011
12012         * ndir.h:
12013         [1].
12014
12015         * nt.c:
12016         * nt.c (getwd):
12017         * nt.c (closedir):
12018         * nt.c (rva_to_section):
12019         * nt.c (mswindows_executable_type):
12020         [1]. [6].
12021         Fix closedir() defn.
12022
12023         * nt.h:
12024         [[[[8]]]]: *_OK defs moved to sysfile.h.
12025
12026         * ntproc.c:
12027         [6]. [7].
12028
12029         * objects-x.c:
12030         [4].
12031
12032         * print.c:
12033         * print.c (std_handle_out_external):
12034         [1]. [4].
12035
12036         * process-nt.c:
12037         * process-nt.c (nt_create_process):
12038         [6].
12039         try to fix process quoting somewhat.
12040
12041         * process-unix.c (unix_create_process):
12042         [1].
12043
12044         * process.c:
12045         * process.c (vars_of_process):
12046         Add Vnull_device.
12047
12048         * process.h:
12049         [1].
12050
12051         * realpath.c:
12052         * realpath.c (xrealpath):
12053         [1].
12054
12055         * redisplay-tty.c (init_tty_for_redisplay):
12056         [3].
12057
12058         * redisplay.c:
12059         [4]. [6].
12060
12061         * scrollbar-msw.c:
12062         [4].
12063
12064         * sheap.c:
12065         * sheap.c (more_static_core):
12066         * sheap.c (report_sheap_usage):
12067         [5]. [6].
12068
12069         * signal.c:
12070         * signal.c (alarm_signal):
12071         [1]. [6].
12072
12073         * sound.c:
12074         [6].
12075
12076         * strftime.c:
12077         * strftime.c (zone_name):
12078         [1]. [5].
12079
12080         * symsinit.h (init_sunpro):
12081         [1].
12082
12083         * syscommctrl.h:
12084         commctrl.h not in Cygwin b20.1.
12085
12086         * sysdep.c:
12087         * sysdep.c (endif):
12088         * sysdep.c (sys_subshell):
12089         * sysdep.c (init_baud_rate):
12090         * sysdep.c (emacs_get_tty):
12091         * sysdep.c (emacs_set_tty):
12092         * sysdep.c (tty_init_sys_modes_on_device):
12093         * sysdep.c (init_system_name):
12094         * sysdep.c (sys_open):
12095         * sysdep.c (interruptible_open):
12096         * sysdep.c (sys_fopen):
12097         * sysdep.c (sys_mkdir):
12098         * sysdep.c (sys_rename):
12099         * sysdep.c (get_process_times_1):
12100         [1]. [6].
12101
12102         * sysdep.h:
12103         [1].
12104
12105         * sysdir.h:
12106         * sysdir.h (DIRENTRY_NONEMPTY):
12107         [1]. [6].
12108
12109         * sysdll.c (dll_init):
12110         * sysdll.h:
12111         [1].
12112
12113         * sysfile.h:
12114         [1]. [6]. [8].
12115         added text/binary defs.
12116
12117         * sysfloat.h:
12118         [1].
12119
12120         * sysproc.h:
12121         * sysproc.h (EDESTADDRREQ):
12122         * sysproc.h (poll_fds_for_input):
12123         [1]. [6].
12124
12125         * syspwd.h:
12126         [6].
12127
12128         * syssignal.h:
12129         [1].
12130
12131         * systime.h:
12132         [1]. [6].
12133
12134         * systty.h:
12135         [1].
12136
12137         * syswindows.h:
12138         [1].
12139         Always define WIN32_LEAN_AND_MEAN.
12140
12141         * unexcw.c (unexec):
12142         [5].
12143
12144         * unexec.c:
12145         * unexec.c (copy_text_and_data):
12146         * unexec.c (adjust_lnnoptrs):
12147         [1].
12148
12149         * unexnt.c:
12150         * unexnt.c (_start):
12151         [1].
12152
12153 2000-06-07  Ben Wing  <ben@xemacs.org>
12154
12155         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
12156         was used only as a model.  We've long since extracted any useful
12157         logic or code out of this. (I just did an exhaustive search.)
12158
12159         * s\msdos.h: Removed.
12160
12161         * s\windows95.h: Removed.
12162
12163 2000-06-10  Ben Wing  <ben@xemacs.org>
12164
12165         * s\cygwin32.h:
12166         [1]. [5].
12167         Don't use extern with fun defs.
12168
12169         * s\mingw32.h:
12170         [1]. [7].
12171         Remove nt\inc include.
12172         Remove getdisk, getdefdir. (The former is unused, the latter
12173         expanded in fileio.h.)
12174
12175         * s\windowsnt.h:
12176         * s\windowsnt.h (WIN32_NATIVE):
12177         * s\windowsnt.h (HAVE_STRCASECMP):
12178         [1]. [7].
12179         Add long comment about preprocessor changes.
12180         Remove getdisk, getdefdir. (The former is unused, the latter
12181         expanded in fileio.h.)
12182
12183 2000-06-10  Ben Wing  <ben@xemacs.org>
12184
12185         * m\arm.h:
12186         * m\delta.h:
12187         * m\intel386.h:
12188         * m\sequent.h:
12189         * m\template.h:
12190         * m\windowsnt.h:
12191         [1].
12192         Remove bogus/unused NO_SOCK_SIGIO.
12193
12194 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
12195
12196         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
12197         not an Emchar.
12198
12199 2000-06-04  Mike Sperber <mike@xemacs.org>
12200
12201         * casetab.c (set_case_table): For `set-standard-case-table',
12202         actually deposit the new case tables where the rest of XEmacs can
12203         see them.
12204
12205 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
12206
12207         * data.c (Faset): Don't cast XCHAR() to unsigned char.
12208
12209 2000-06-05  Ben Wing  <ben@xemacs.org>
12210
12211         * callproc.c (child_setup): Don't do close_load_descs() under
12212         MS Windows.  Put in a comment explaining why.
12213
12214 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
12215
12216         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
12217         Toolkit shell" which breaks `kill-compilation' on Windows NT
12218         native, retaining STDERR handling improvements.
12219
12220 2000-06-01  Andreas Jaeger  <aj@suse.de>
12221
12222         * s/s390.h: Support for S390, based on a patch by Martin
12223         Schwidefsky <schwidefsky@de.ibm.com>.
12224
12225 2000-05-30  Andy Piper  <andy@xemacs.org>
12226
12227         * window.c (allocate_window):
12228         (make_dummy_parent):
12229         (Fset_window_configuration): use new hashtable type.
12230
12231         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
12232         (struct image_instantiator_methods):
12233         (struct Lisp_Image_Instance): make instance geometry signed.
12234
12235         * glyphs.c (instantiate_image_instantiator):
12236         (image_instance_query_geometry):
12237         (image_instance_layout):
12238         (image_instance_layout):
12239         (query_string_geometry):
12240         (text_query_geometry):
12241         (image_instantiate):
12242         (image_instantiate):
12243         (cache_subwindow_instance_in_frame_maybe):
12244         (subwindow_query_geometry): make instance geometry signed.
12245
12246         * glyphs-widget.c (widget_query_geometry):
12247         (widget_layout):
12248         (button_query_geometry):
12249         (tree_view_query_geometry):
12250         (tab_control_query_geometry):
12251         (layout_query_geometry):
12252         (layout_layout):
12253         (native_layout_layout): make instance geometry signed.
12254
12255 2000-05-29  Olivier Galibert  <galibert@pobox.com>
12256
12257         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
12258         constant.
12259
12260         * general.c (syms_of_general): Add Qfull_assoc symbol.
12261
12262         * data.c (finish_marking_weak_lists): Mark full-assoc lists
12263         correctly.
12264         (decode_weak_list_type): Decode full-assoc type.
12265         (encode_weak_list_type): Encode full-assoc type.
12266         (Fmake_weak_list): Update doc string.
12267
12268 2000-05-30  Andy Piper  <andy@xemacs.org>
12269
12270         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
12271
12272         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
12273         (decode_hash_table_weakness): ditto.
12274         (Fhash_table_weakness): ditto.
12275         (Fhash_table_type): ditto.
12276         (finish_marking_weak_hash_tables): ditto.
12277         (hash_table_weakness_validate): ditto.
12278         (syms_of_elhash): ditto.
12279
12280 2000-05-28  Martin Buchholz <martin@xemacs.org>
12281
12282         * XEmacs 21.2.34 is released.
12283
12284 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12285
12286         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
12287         start cache.
12288         (updating_line_start_cache): Gone.
12289         (regenerate_window): Replace resetting of VERTICAL_CLIP by
12290         generic code to force a minimum of 1 line laid out in the
12291         CMOTION_DISP case.
12292
12293 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12294
12295         * glyphs.c (instantiate_image_instantiator): Check for initialized
12296         height & width no longer special cases IMAGE_NOTHING.
12297         (nothing_instantiate): Set height and width of instance.
12298
12299 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12300
12301         * unexelf.c (unexec): Search for ".data" section.
12302         Initialize new_data2_offset from old_data_index.
12303         Remove redundant check for ElfW.
12304
12305 2000-05-23  Andy Piper  <andy@xemacs.org>
12306
12307         * glyphs.c (get_image_instantiator_governing_domain): allow more
12308         specific domains as the governing domain rather than expecting an
12309         exact match. This fixes problems with layouts.
12310
12311 2000-05-22  Andy Piper  <andy@xemacs.org>
12312
12313         * redisplay-output.c (compare_runes): check for non-images
12314
12315         * glyphs.c (set_glyph_dirty_p): ditto.
12316         (update_glyph_cachel_data): ditto.
12317
12318         * glyphs-widget.c (layout_post_instantiate): ditto.
12319         (layout_post_instantiate): ditto.
12320
12321         * event-msw.c (mswindows_wnd_proc): warning removal.
12322
12323 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
12324
12325         * s\mingw32.h: Added #undef for CLASH_DETECTION.
12326
12327         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
12328
12329         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
12330
12331         * nt.c (rva_to_section): mingw32 needs rva_to_section.
12332         (mswindows_executable_type): mingw32 now has enough headers for
12333         this to work.
12334
12335 2000-05-20  Andy Piper  <andy@xemacs.org>
12336
12337         * console-msw.c (mswindows_output_last_error): ; -> ,
12338
12339 2000-05-12  Andy Piper  <andy@xemacs.org>
12340
12341         * console-msw.c (FROB): compare ints with ints.
12342
12343 2000-05-11  Andy Piper  <andy@xemacs.org>
12344
12345         * glyphs-x.c (x_finalize_image_instance): make minimal build
12346         happy.
12347
12348 2000-05-20  Ben Wing  <ben@xemacs.org>
12349
12350         * event-Xt.c:
12351         * event-Xt.c (vars_of_event_Xt):
12352         move modifier-keys-are-sticky to event-stream.c.
12353
12354         * event-msw.c:
12355         * event-msw.c (mswindows_enqueue_mouse_button_event):
12356         * event-msw.c (key_needs_default_processing_p):
12357         * event-msw.c (XEMSW_LCONTROL):
12358         * event-msw.c (mswindows_handle_sticky_modifiers):
12359         * event-msw.c (FROB):
12360         * event-msw.c (clear_sticky_modifiers):
12361         * event-msw.c (output_modifier_keyboard_state):
12362         * event-msw.c (output_alt_keyboard_state):
12363         * event-msw.c (mswindows_wnd_proc):
12364         * event-msw.c (mswindows_modifier_state):
12365         * event-msw.c (emacs_mswindows_handle_magic_event):
12366         implement sticky modifiers.
12367
12368         * event-stream.c:
12369         * event-stream.c (vars_of_event_stream):
12370         move modifier-keys-are-sticky here.
12371
12372         * lisp.h:
12373         add CHECK_FUNCTION.
12374
12375         * rangetab.c:
12376         implement map-range-table.
12377
12378
12379 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
12380
12381         * redisplay-tty.c (reset_tty_modes):
12382         (tty_redisplay_shutdown): Adjust argument type to
12383         tty_frame_output_end.
12384
12385 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12386
12387         * eval.c (Fbacktrace): Don't output a line with only right
12388         parenthesis.
12389
12390 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
12391
12392         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
12393         (Fpq_reset_poll): Ditto.
12394
12395 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
12396
12397         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
12398
12399 2000-05-16  Ben Wing  <ben@xemacs.org>
12400
12401         * buffer.c:
12402         * buffer.c (dfc_convert_to/from_internal_format):
12403         * buffer.c (reinit_vars_of_buffer):
12404         Fix conversion functions to allow reentrancy.
12405
12406         * console-msw.c:
12407         * console-msw.c (mswindows_output_last_error):
12408         New fun, generally useful -- output a human-readable
12409         version of GetLastError() on the console.
12410
12411         * console-msw.h:
12412         * console-msw.h (struct mswindows_frame):
12413         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
12414
12415         * console-stream.c (stream_output_begin):
12416         * console-stream.c (stream_output_end):
12417         * console-stream.c (stream_output_vertical_divider):
12418         * console-stream.c (stream_clear_region):
12419         * console-stream.c (stream_flash):
12420         * console-stream.c (console_type_create_stream):
12421         Delete blank stream methods, not needed.
12422
12423         * console.h (struct console_methods):
12424         Split begin/end methods into window and frame.
12425
12426         * event-msw.c:
12427         * event-msw.c (mswindows_handle_paint):
12428         * event-msw.c (output_alt_keyboard_state):
12429         * event-msw.c (mswindows_wnd_proc):
12430         * event-msw.c (vars_of_event_mswindows):
12431         Comment about problems with ignored-expose.
12432         Define mswindows-debug-events; not really implemented.
12433
12434         * frame-msw.c (mswindows_init_frame_1):
12435         random cleanups.
12436
12437         * glyphs-msw.c:
12438         * glyphs-msw.c (begin_defer_window_pos):
12439         * glyphs-msw.c (mswindows_unmap_subwindow):
12440         * glyphs-msw.c (mswindows_map_subwindow):
12441         * glyphs-msw.c (mswindows_resize_subwindow):
12442         Use DeferWindowPos to reduce flashing when mapping/unmapping.
12443
12444         * glyphs.c (make_image_instance_1):
12445         Fix crash.
12446
12447         * gutter.c (Fredisplay_gutter_area):
12448         Use new begin/end methods.
12449
12450         * lisp.h (Dynarr_new2):
12451         New creation fun.
12452
12453         * redisplay-msw.c:
12454         * redisplay-msw.c (mswindows_frame_output_begin):
12455         * redisplay-msw.c (mswindows_frame_output_end):
12456         * redisplay-msw.c (console_type_create_redisplay_mswindows):
12457         New begin/end methods -- handle DeferWindowPos.
12458
12459         * redisplay-output.c (redisplay_move_cursor):
12460         * redisplay-output.c (redraw_cursor_in_window):
12461         * redisplay-output.c (redisplay_update_line):
12462         * redisplay-output.c (redisplay_output_window):
12463         New begin/end methods.
12464
12465         * redisplay-tty.c:
12466         * redisplay-tty.c (tty_frame_output_begin):
12467         * redisplay-tty.c (tty_frame_output_end):
12468         * redisplay-tty.c (console_type_create_redisplay_tty):
12469         New begin/end methods.
12470
12471         * redisplay-x.c:
12472         * redisplay-x.c (x_window_output_begin):
12473         * redisplay-x.c (x_window_output_end):
12474         * redisplay-x.c (console_type_create_redisplay_x):
12475         New begin/end methods.
12476
12477         * redisplay.c (redisplay_frame):
12478         * redisplay.c (Fredisplay_echo_area):
12479         New begin/end methods.
12480         use MAYBE_DEVMETH for clear_frame; it may not exist.
12481
12482         * window.h (WINDOW_XFRAME):
12483         WINDOW_XFOO macros -- get locale and decode struct pointer.
12484
12485
12486 2000-05-12  Ben Wing  <ben@xemacs.org>
12487
12488         * emacs.c:
12489         * emacs.c (ensure_no_quitting_from_now_on):
12490         * emacs.c (fatal_error_signal):
12491         * emacs.c (mswindows_handle_hardware_exceptions):
12492         * emacs.c (main):
12493         * emacs.c (Fkill_emacs):
12494         * emacs.c (shut_down_emacs):
12495         * emacs.c (assert_failed):
12496         various improvements in fatal error handling.
12497
12498         * eval.c:
12499         move preparing_for_armageddon to emacs.c.
12500
12501         * lisp.h:
12502         declare fatal_error_in_progress.
12503
12504         * print.c:
12505         * print.c (std_handle_out_external):
12506         * print.c (std_handle_out_va):
12507         * print.c (stderr_out):
12508         * print.c (stdout_out):
12509         use console under mswin when no standard output.
12510         don't do code conversion during fatal error.
12511
12512         * scrollbar.c (Fscrollbar_page_up):
12513         * scrollbar.c (Fscrollbar_page_down):
12514         fix missing else.  reindent.
12515
12516 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12517
12518         Emergency fix.
12519
12520         * glyphs.h (GLYPH_CACHEL_DESCENT):
12521         (GLYPH_CACHEL_DESCENT):
12522         (GLYPH_CACHEL_DESCENT):
12523         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12524         used in case these are inline functions.
12525         Use more absurd values to error check.
12526
12527         include window.h for error check functions.
12528
12529 2000-05-11  Ben Wing  <ben@xemacs.org>
12530
12531         * cmdloop.c (Freally_early_error_handler):
12532         Display message box under windows; otherwise, message will disappear
12533         before it can be viewed.
12534
12535         * console-msw.c:
12536         * console-msw.c (Fmswindows_message_box):
12537         * console-msw.c (FROB):
12538         * console-msw.c (syms_of_console_mswindows):
12539         Define new fun `mswindows-message-box'.
12540         #### I will merge this into `popup-dialog-box'; just give me
12541         a bit of time.
12542
12543         * general.c:
12544         * general.c (syms_of_general):
12545         Some new symbols used in `mswindows-message-box'.
12546
12547         * glyphs.c:
12548         * glyphs.c (Fset_image_instance_property):
12549         put warning in this fun.
12550
12551         * glyphs.h:
12552         * glyphs.h (GLYPH_CACHEL_WIDTH):
12553         * glyphs.h (GLYPH_CACHEL_ASCENT):
12554         * glyphs.h (GLYPH_CACHEL):
12555         * glyphs.h (GLYPH_CACHEL_GLYPH):
12556         define error-checking versions to try to catch a bug i've seen --
12557         redisplay gets in an infinite loop because the glyph width of the
12558         continuation glyph is 65535.
12559
12560         * lisp.h:
12561         Extern message-box stuff.
12562
12563         * window.c (allocate_window):
12564         * window.c (make_dummy_parent):
12565         * window.c (Fset_window_configuration):
12566         Use EQUAL not EQ for subwindow caches to make them work a bit
12567         better. (Something is still very broken.)
12568
12569
12570 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12571
12572         * glyphs.c (image_instantiate): Suppress gcc warnings.
12573         (Fmake_image_instance): Fix doc string.
12574         * specifier.c (Fmake_specifier): Ditto.
12575
12576 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12577
12578         * paths.h.in (PATH_LOCK): Removed.
12579         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12580         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12581
12582 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12583
12584         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12585         Document (featurep '(and xemacs 21.02)).
12586
12587 2000-05-09  Ben Wing  <ben@xemacs.org>
12588
12589         * buffer.c (complex_vars_of_buffer):
12590         update modeline-format doc.
12591
12592         * device.h:
12593         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12594
12595         * emacs.c:
12596         timeline of all released versions of Emacs, for use in creating
12597         authorship comments and in synching up.
12598
12599         * glyphs-widget.c (image_instantiator_buttons):
12600         * glyphs-widget.c (image_instantiator_edit_fields):
12601         * glyphs-widget.c (image_instantiator_combo_box):
12602         * glyphs-widget.c (image_instantiator_scrollbar):
12603         * glyphs-widget.c (image_instantiator_progress_guage):
12604         * glyphs-widget.c (image_instantiator_tree_view):
12605         * glyphs-widget.c (image_instantiator_tab_control):
12606         * glyphs-widget.c (image_instantiator_labels):
12607         * glyphs-widget.c (image_instantiator_layout):
12608         * glyphs-widget.c (image_instantiator_native_layout):
12609         rename decode_domain method to governing_domain.
12610
12611         * glyphs.c:
12612         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12613         * glyphs.c (add_entry_to_device_ii_format_list):
12614         make sure we don't put an entry more than once into the list.
12615         * glyphs.c (check_instance_cache_mapper):
12616         *************************************************************
12617         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12618         HAVE BEEN GETTING.
12619         *************************************************************
12620         * glyphs.c (get_image_instantiator_governing_domain):
12621         clean up, expand on new concept of governing domain.
12622         * glyphs.c (instantiate_image_instantiator):
12623         * glyphs.c (allocate_image_instance):
12624         use governing_domain instead of cache_domain in naming.
12625         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12626         * glyphs.c (make_image_instance_1):
12627         * glyphs.c (Fmake_image_instance):
12628         allow for any domain (not just device), and process the
12629         governing domain correctly.  very big doc fix.
12630         * glyphs.c (Fimage_instance_domain):
12631         new primitive, to retrieve the governing domain of an image instance.
12632         * glyphs.c (image_instantiate):
12633         use new governing_domain stuff.  this fixes a crash you could get
12634         by instantiating certain widget glyphs in frame locales. (should
12635         signal an error instead of crashing.)
12636         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12637         * glyphs.c (Fglyphp): clean up doc.
12638         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12639         * glyphs.c (syms_of_glyphs):
12640         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12641         * glyphs.c (image_instantiator_format_create): add some comments about
12642         bogus code.
12643         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12644         for current-display-table. (Apparently Hrjove implemented in 1998 a
12645         design I wrote up in 1996, but didn't update the doc string.)
12646
12647         * glyphs.h: clean up a doc string.
12648         * glyphs.h (governing_domain):
12649         * glyphs.h (struct image_instantiator_methods):
12650         changes for governing_domain stuff.
12651
12652         * gutter.c:
12653         * gutter.c (Fgutter_specifier_p):
12654         * gutter.c (Fgutter_size_specifier_p):
12655         * gutter.c (Fgutter_visible_specifier_p):
12656         * objects.c:
12657         * objects.c (Fcolor_specifier_p):
12658         * objects.c (Ffont_specifier_p):
12659         * objects.c (Fface_boolean_specifier_p):
12660         doc strings moved to make-*-specifier.
12661
12662         * redisplay.c (add_disp_table_entry_runes_1):
12663         * redisplay.c (generate_fstring_runes):
12664         * redisplay.c (screen):
12665         add random comments and doc strings.
12666
12667         * specifier.c:
12668         * specifier.c (Fmake_specifier):
12669         major overhaul of this doc string.
12670
12671         * specifier.c (Fvalid_specifier_domain_p):
12672         comment about the bogosity of image instances being domains.
12673         * specifier.c (decode_domain):
12674         now non-static, used in glyphs.c.
12675         * specifier.c (specifier_instance):
12676         comment about the bogosity of image instances being domains.
12677         * specifier.c (Fgeneric_specifier_p):
12678         move doc string to make-generic-specifier.
12679         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12680         rebackslashify.
12681
12682         * specifier.h:
12683         * specifier.h (DOMAIN_FRAME):
12684         * specifier.h (DOMAIN_LIVE_P):
12685         * specifier.h (DOMAIN_XDEVICE):
12686         rebackslashify.
12687         add comments about problems with these macros.
12688         prototype for decode_domain.
12689
12690         * toolbar.c:
12691         * toolbar.c (Ftoolbar_specifier_p):
12692         move doc string to `make-toolbar-specifier'.
12693
12694         * window.c (window_unmap_subwindows_cache_mapper):
12695         *************************************************************
12696         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12697         HAVE BEEN GETTING.
12698         *************************************************************
12699
12700 2000-05-09  Andy Piper  <andy@xemacs.org>
12701
12702         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12703
12704         * window.c (Fset_window_configuration): reset the frame subwindow
12705         cache and re-initialize the window subwindow caches.
12706
12707         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12708
12709 2000-05-09  Ben Wing  <ben@xemacs.org>
12710
12711         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12712         DWORD.
12713
12714 2000-04-26  Mike Woolley  <mike@bulsara.com>
12715
12716         * ntheap.c: Changed recreate_heap to limit the amount reserved
12717         for the heap to that which is actually available. Also now
12718         displays a message box (with some dignostics) in the event that
12719         it still can't start.
12720
12721 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12722
12723         * callproc.c (Fold_call_process_internal): GCPRO path
12724
12725 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12726
12727         Patch by Bill Perry.
12728
12729         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12730         back data instead of #ifdef.
12731         (Fscrollbar_page_down): ditto.
12732
12733 2000-05-07  Ben Wing  <ben@xemacs.org>
12734
12735         * buffer.h:
12736         Kludge for defining Qmswindows_tstr.
12737
12738         * nt.c:
12739         * nt.c (open_input_file):
12740         * nt.c (open_output_file):
12741         * nt.c (rva_to_section):
12742         * nt.c (mswindows_executable_type):
12743         Move all memory-mapped-file routines here (some were in unexnt.c,
12744         which is bad because they are used by process-nt.c, and unexnt
12745         won't be around when portable dumping).  Synched the above routines
12746         with FSF 20.6.
12747
12748         * nt.h:
12749         Removed ifdef'd out bogus code.
12750         Fixed some prototypes.
12751
12752         * nt.h (file_data):
12753         * nt.h (OFFSET_TO_RVA):
12754         * nt.h (RVA_TO_OFFSET):
12755         * nt.h (RVA_TO_PTR):
12756         Moved the memory-mapped-file structures, macros and prototypes
12757         here, to parallel nt.c.  ntheap.h should really be removed
12758         entirely, and it's a non-portable-dumper specific file.
12759
12760         * ntheap.h (round_to_next):
12761         Moved the memory-mapped-file structures, macros and prototypes
12762         to nt.h.
12763
12764         * ntproc.c (compare_env):
12765         Moved rva_to_section and mswindows_executable_type to nt.c.
12766         Moved compare_env to process-nt.c.
12767         ntproc.c will die, one day.
12768
12769         * ntproc.c (sys_spawnve):
12770         Account for win32_ -> mswindows_.
12771
12772         * process-nt.c:
12773         * process-nt.c (struct nt_process_data):
12774         * process-nt.c (ensure_console_window_exists):
12775         * process-nt.c (compare_env):
12776         * process-nt.c (nt_create_process):
12777         * process-nt.c (nt_kill_process_by_pid):
12778         * process-nt.c (syms_of_process_nt):
12779         * process-nt.c (vars_of_process_nt):
12780         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12781         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12782         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12783         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12784         Move compare_env here from ntproc.c.
12785
12786         * process.c (Fprocess_send_region):
12787         Takes an optional fourth argument, BUFFER, which should fix some
12788         problems with call-process.
12789
12790         * syscommctrl.h:
12791         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12792
12793         * syswindows.h:
12794         Move ICC_BAR_CLASSES to syscommctrl.h.
12795         Add preliminary macros for MSWindows/Mule.  More to come.
12796
12797         * unexnt.c:
12798         * unexnt.c (unexec):
12799         open_output_file moved to nt.c.
12800
12801
12802 2000-05-05  Andy Piper  <andy@xemacs.org>
12803
12804         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12805         instance from the frame cache also since GC may catch up too late
12806         to make frame deletion sane.
12807
12808 2000-05-04  Andy Piper  <andy@xemacs.org>
12809
12810         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12811         (x_finalize_image_instance): ungcpro on deletion.
12812
12813         * glyphs.c (image_instantiator_format_create): give pointers a
12814         query geometry method so that the geometry is at least set.
12815
12816         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12817         initialize layouts if using widgets.
12818
12819 2000-05-03  Andy Piper  <andy@xemacs.org>
12820
12821         * nt.c: remove bogus reference to sysmmsystem.h
12822
12823         * gui-x.c (popup_selection_callback): fix no selection abort.
12824
12825 2000-05-02  Andy Piper  <andy@xemacs.org>
12826
12827         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12828         (mswindows_widget_instantiate): ditto.
12829
12830         * glyphs-widget.c (initialize_widget_image_instance): initialize
12831         children correctly.
12832         (widget_instantiate): cope with children and items in the same
12833         instance.
12834
12835         * glyphs.c (mark_image_instance): cope with children as a first
12836         class member.
12837         (image_instance_equal): ditto.
12838         (image_instance_hash): ditto.
12839         (image_instance_changed): ditto.
12840
12841 2000-04-30  Andy Piper  <andy@xemacs.org>
12842
12843         * glyphs.c (subwindow_query_geometry): new function. Return some
12844         defaults.
12845         (subwindow_instantiate): don't assign dimensions if none have been
12846         given.
12847         (image_instantiator_format_create): add subwindow_query_geometry.
12848         (print_image_instance): cope with layouts as widgets.
12849
12850 2000-04-29  Andy Piper  <andy@xemacs.org>
12851
12852         * frame.c (delete_frame_internal): call
12853         free_frame_subwindow_instance_cache so that all subwindows are
12854         finalized before their parent.
12855         (mark_frame): remove subwindow_cachels.
12856         (Fmake_frame): remove subwindow_cachel manipulation.
12857         (allocate_frame_core): subwindow_instance_cache is a weak list.
12858         (delete_frame_internal): set subwindow_instance_cache to nil.
12859
12860         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12861         finalization safe.
12862         (mswindows_finalize_image_instance): use the device
12863         not the domain as the domain may have died already.
12864
12865         * glyphs-x.c (x_finalize_image_instance): ditto.
12866         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12867         HEIGHT.
12868
12869         * redisplay-output.c (redisplay_unmap_subwindows): update for
12870         subwindow instance cache as a weak list.
12871         (redisplay_unmap_subwindows_maybe): ditto.
12872         (redisplay_unmap_subwindows_except_us): ditto.
12873
12874         * glyphs.c (unmap_subwindow): error checking will check the domain
12875         so don't deal with it here. Don't use cachels anymore.
12876         (map_subwindow): ditto.
12877         (update_subwindow_cachel_data): remove old accessor names.
12878         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12879         (Fresize_subwindow): don't update cachel.
12880         (mark_subwindow_cachels):
12881         (update_subwindow_cachel_data):
12882         (add_subwindow_cachel):
12883         (get_subwindow_cachel_index):
12884         (update_subwindow_cachel):
12885         (reset_subwindow_cachels):
12886         (mark_subwindow_cachels_as_not_updated): deleted.
12887         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12888         subwindow instance to the frame cache.
12889         (find_matching_subwindow): update for subwindow instance cache as
12890         a weak list.
12891         (update_widget_instances): ditto.
12892         (image_instance_type_to_mask):inlined.
12893         (free_frame_subwindow_instance_cache): new function. finalize all
12894         subwindows that are instantiated.
12895
12896         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12897         of cachel information.
12898         (IMAGE_INSTANCE_DISPLAY_X):
12899         (IMAGE_INSTANCE_DISPLAY_Y):
12900         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12901         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12902         (XIMAGE_INSTANCE_DISPLAY_X):
12903         (XIMAGE_INSTANCE_DISPLAY_Y):
12904         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12905         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12906         remove subwindow_cachel structure and function references.
12907         (image_instance_type_to_mask): inline from glyphs.c
12908
12909         * redisplay.c (redisplay_frame): remove subwindow_cachel
12910         references.
12911
12912         * frame.h (struct frame): remove subwindow_cachels.
12913         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12914
12915         * frameslots.h: add subwindow_instance_cache.
12916
12917         * window.c (replace_window): check subwindow cache of replacement.
12918         (window_unmap_subwindows_cache_mapper):
12919         (window_unmap_subwindows): new functions. Unmap all subwindows
12920         cached on this window.
12921         (mark_window_as_deleted): unmap all subwindows.
12922
12923 2000-04-27  Andy Piper  <andy@xemacs.org>
12924
12925         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12926
12927         * glyphs-widget.c (widget_layout): return something.
12928         (layout_layout): return something. Fail if not initialized.
12929         (layout_query_geometry): ditto.
12930         (image_instantiator_native_layout): new function. Initialized the
12931         native layout type.
12932         (widget_instantiate): don't do layout stuff here.
12933
12934         * glyphs.c (instantiate_image_instantiator): reorded calling or
12935         instantiate and post_instantiate with layout in between.
12936         (image_instance_layout): be more selective about deciding whether
12937         the layout has been done or not.
12938
12939         * glyphs.h (struct image_instantiator_methods): return a value
12940         from layout_method.
12941
12942 2000-04-26  Andy Piper  <andy@xemacs.org>
12943
12944         * glyphs.c (allocate_image_instance): make initial width and
12945         height unspecified. Set initialized to 0.
12946
12947         * syscommctrl.h new file. Encapsulates commctrl.h.
12948
12949         * syswindows.h new file. Encapsulates windows.h.
12950
12951         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12952         * nt.c: ditto.
12953         * console-msw.h: ditto.
12954
12955         * redisplay-tty.c (tty_output_display_block): remove layout references.
12956
12957         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12958         window handle rather than just the frame.
12959
12960         * glyphs.c (mark_image_instance): remove layout references.
12961         (print_image_instance): ditto.
12962         (image_instance_equal): ditto.
12963         (image_instance_hash): ditto.
12964         (decode_image_instance_type): ditto.
12965         (encode_image_instance_type): ditto.
12966         (image_instantiate): ditto.
12967         (allocate_glyph): ditto.
12968         (Fimage_instance_height): ditto.
12969         (Fimage_instance_width): ditto.
12970         (update_subwindow): ditto.
12971
12972         * redisplay-x.c (x_output_display_block): recode for layouts as
12973         widgets.
12974
12975         * redisplay-output.c (redisplay_output_layout): recode for layouts
12976         as widgets.
12977         (compare_runes): remove layout references.
12978
12979         * redisplay-msw.c (mswindows_output_display_block): recode for
12980         layouts as widgets.
12981
12982         * glyphs-widget.c (image_instantiator_layout): remove
12983         layout_possible_dest_types.
12984         (layout_possible_dest_types): deleted.
12985
12986         * glyphs.h (image_instance_type): remove layout references.
12987         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12988         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12989         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12990
12991 2000-04-25  Andy Piper  <andy@xemacs.org>
12992
12993         * glyphs-widget.c (image_instantiator_buttons):
12994         (image_instantiator_edit_fields):
12995         (image_instantiator_combo_box):
12996         (image_instantiator_scrollbar):
12997         (image_instantiator_progress_guage):
12998         (image_instantiator_tree_view):
12999         (image_instantiator_tab_control):
13000         (image_instantiator_labels):
13001         (image_instantiator_layout): call default post_instantiate method.
13002         (widget_post_instantiate): new function. Simply lays out the
13003         widgets.
13004
13005         * glyphs.h (struct image_instantiator_methods): add
13006         post_instantiate method.
13007
13008         * glyphs.c (instantiate_image_instantiator): add post_instantiate
13009         method calls.
13010
13011 2000-04-23  Andy Piper  <andy@xemacs.org>
13012
13013         * glyphs.h (struct image_instantiator_methods): add
13014         decode_domain_method.
13015         (struct Lisp_Image_Instance): remove subwindow frame - it can be
13016         derived from the domain.
13017         (IMAGE_INSTANCE_FRAME): new accessor.
13018         (XIMAGE_INSTANCE_FRAME): ditto.
13019
13020         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
13021         instead of _SUBWINDOW_FRAME.
13022         (finalize_image_instance): ditto.
13023         (Fimage_instance_foreground): ditto.
13024         (Fimage_instance_background): ditto.
13025         (image_instantiate): ditto.
13026         (update_subwindow_cachel): ditto.
13027         (update_subwindow): ditto.
13028         (unmap_subwindow): ditto.
13029         (map_subwindow): ditto
13030         (subwindow_instantiate): ditto.
13031         * glyphs-msw.c (mswindows_update_widget): ditto.
13032         (mswindows_progress_gauge_instantiate): ditto.
13033         (mswindows_tab_control_update): ditto.
13034         * glyphs-x.c (x_update_widget): ditto.
13035         (x_widget_instantiate): ditto.
13036         (x_tab_control_instantiate): ditto.
13037         (x_tab_control_update): ditto.
13038         * event-msw.c (mswindows_wnd_proc): ditto
13039
13040         * glyphs-widget.c (image_instantiator_layout): use
13041         subwindow_decode_domain.
13042         (image_instantiator_buttons): ditto.
13043         (image_instantiator_edit_fields): ditto.
13044         (image_instantiator_combo_box): ditto.
13045         (image_instantiator_scrollbar): ditto.
13046         (image_instantiator_progress_guage): ditto.
13047         (image_instantiator_tree_view): ditto.
13048         (image_instantiator_tab_control): ditto.
13049         (image_instantiator_labels): ditto.
13050         (image_instantiator_layout): ditto.
13051
13052         * glyphs.c: add instance error checking to many functions.
13053         (instantiate_image_instantiator): decode device from cache_domain.
13054         (image_instantiate): partially rewrite by using
13055         decode_image_instantiator_domain to determine what domain the
13056         instance needs to be cached in.
13057         (decode_image_instantiator_domain): new function. Determine what
13058         domain the image needs to be cached in.
13059         (check_window_subwindow_cache): new error checking function.
13060         (check_instance_cache_mapper): ditto.
13061         (check_image_instance_structure): ditto.
13062         (subwindow_decode_domain): new function. Encodes a window as a
13063         subwindow's cache domain.
13064         (image_instantiator_format_create): use it for text and
13065         subwindows.
13066
13067 2000-04-21  Andy Piper  <andy@xemacs.org>
13068
13069         * glyphs.c (image_instance_device): new function.
13070         (image_instance_frame): new function.
13071         (image_instance_window): new function.
13072         (image_instance_live_p): new function.
13073
13074         * window.c (mark_window_as_deleted): reset the subwindow_instance_
13075         cache to nil.
13076
13077         * glyphs.h (struct Lisp_Image_Instance): device->domain.
13078         (IMAGE_INSTANCE_DOMAIN): new accessor.
13079         (XIMAGE_INSTANCE_DOMAIN): ditto.
13080
13081         * glyphs-x.c (x_finalize_image_instance): device->domain.
13082
13083         * glyphs-msw.c (init_image_instance_geometry): device->domain.
13084         (mswindows_finalize_image_instance): ditto.
13085
13086         * glyphs-eimage.c (jpeg_instantiate): device->domain.
13087         (gif_instantiate): ditto.
13088         (png_instantiate): ditto.
13089         (tiff_instantiate): ditto.
13090
13091         * glyphs.c (instantiate_image_instantiator): use domain rather
13092         than device.
13093         (mark_image_instance): device -> domain.
13094         (print_image_instance): ditto.
13095         (finalize_image_instance): ditto.
13096         (image_instance_equal): ditto.
13097         (allocate_image_instance): ditto.
13098         (Fcolorize_image_instance): ditto.
13099         (query_string_geometry): ditto.
13100         (image_instantiate): ditto
13101         (query_string_font): ditto.
13102         (image_instantiate): ditto.
13103         (update_subwindow): ditto.
13104         (unmap_subwindow): ditto.
13105         (map_subwindow): ditto.
13106         (subwindow_instantiate): ditto.
13107
13108         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
13109         (DOMAIN_FRAME): ditto.
13110         (DOMAIN_WINDOW): ditto.
13111         (DOMAIN_LIVE_P): ditto.
13112         (XDOMAIN_DEVICE): ditto.
13113         (XDOMAIN_FRAME): ditto.
13114         (XDOMAIN_WINDOW): ditto.
13115
13116         * specifier.c (Fvalid_specifier_domain_p): add image instances as
13117         a valid specifier domain.
13118
13119 2000-04-19  Andy Piper  <andy@xemacs.org>
13120
13121         * glyphs-widget.c (syms_of_glyphs_widget): remove
13122         widget-callback-current-channel.
13123         (vars_of_glyphs_widget): ditto.
13124         * glyphs.h: ditto
13125
13126         * gui.c (get_gui_callback): revert to previous behaviour.
13127
13128 2000-04-18  Andy Piper  <andy@xemacs.org>
13129
13130         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
13131         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
13132         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
13133
13134         * glyphs.c (image_instance_equal): add margin_width.
13135         (image_instance_hash): ditto.
13136
13137         * glyphs-widget.c (widget_instantiate): deal with margin-width.
13138         (layout_query_geometry): ditto.
13139         (layout_layout): ditto.
13140         (syms_of_glyphs_widget): add margin-width.
13141         (image_instantiator_layout): allow margin-width.
13142
13143         * glyphs.c (update_widget_instances): make a normal function.
13144         (syms_of_glyphs): remove Qupdate_widget_instances.
13145         * glyphs.h: ditto.
13146
13147         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
13148         so that we don't corrupt ideas about the last event or
13149         command. Remove widget-callback-current-channel fiddling.
13150         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
13151
13152 2000-05-01  Martin Buchholz <martin@xemacs.org>
13153
13154         * XEmacs 21.2.33 is released.
13155
13156 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
13157
13158         * make-src-depend: Allow dots in header file name.
13159
13160 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
13161
13162         * mule-charset.h (struct charset_lookup): Add
13163         next_allocated_1_byte_leading_byte and
13164         next_allocated_2_byte_leading_byte.
13165         * mule-charset.c: Move above two variables so that those values
13166         will be dumped.
13167
13168 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
13169
13170         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
13171         when string length is zero.
13172         (find_charsets_in_emchar_string): Ditto.
13173
13174 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
13175
13176         * lisp.h: extern Qdialog and Qmenubar.
13177
13178         * gui-x.c: added events.h.
13179                 also fixed typo which made the file uncompilable.
13180
13181         * general.c: Added Qmenubar and Qdialog
13182
13183 2000-04-28  Ben Wing  <ben@xemacs.org>
13184
13185         * frame-msw.c (mswindows_init_frame_1):
13186         * frame-msw.c (mswindows_mark_frame):
13187         * event-msw.c (mswindows_enqueue_dispatch_event):
13188         * console-msw.h:
13189         * console-msw.h (struct mswindows_frame):
13190         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
13191         there are now three hash tables for callbacks.
13192         mswindows_enqueue_dispatch_event is no longer static.
13193
13194         * dialog-x.c (maybe_run_dbox_text_callback):
13195         * dialog-x.c (dbox_descriptor_to_widget_value):
13196         switch to new cons3 form for callbacks.
13197
13198         * glyphs-msw.c (mswindows_register_gui_item):
13199         * glyphs-msw.c (mswindows_widget_instantiate):
13200         * glyphs-msw.c (add_tree_item):
13201         * glyphs-msw.c (add_tab_item):
13202         new image instance parameter, so it can be passed to callback-ex.
13203         respect :callback-ex as well as :callback.
13204
13205         * glyphs-widget.c (VALID_GUI_KEYWORDS):
13206         add :callback-ex.
13207
13208         * glyphs.c (print_image_instance):
13209         prettify, e.g. now prints widget type.
13210
13211         * gui-x.h:
13212         certain funs have new image instance parameter.
13213
13214         * gui.c:
13215         * gui.c (get_gui_callback):
13216         * gui.c (gui_item_add_keyval_pair):
13217         * gui.c (gui_item_init):
13218         * gui.c (gui_add_item_keywords_to_plist):
13219         * gui.c (mark_gui_item):
13220         * gui.c (gui_item_hash):
13221         * gui.c (gui_item_equal):
13222         * gui.c (copy_gui_item):
13223         * gui.c (syms_of_gui):
13224         recognize callback-ex in a number of places.
13225         also, fix the annoying "can't get out of yes-no dialog" bug.
13226
13227         * gui.h:
13228         * gui.h (struct Lisp_Gui_Item):
13229         recognize callback-ex in a number of places.
13230
13231         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13232         new parameter in button_item_to_widget_value.
13233
13234         * glyphs-x.c (x_update_widget):
13235         * glyphs-x.c (x_button_instantiate):
13236         * glyphs-x.c (x_button_update):
13237         * glyphs-x.c (x_progress_gauge_instantiate):
13238         * glyphs-x.c (x_edit_field_instantiate):
13239         * glyphs-x.c (x_combo_box_instantiate):
13240         * glyphs-x.c (x_tab_control_instantiate):
13241         * glyphs-x.c (x_label_instantiate):
13242         new image instance parameter in various places.
13243
13244         * event-Xt.c:
13245         * event-Xt.c (enqueue_Xt_dispatch_event):
13246         this fun gets exported.
13247
13248         * gui-msw.c:
13249         * gui-msw.c (mswindows_handle_gui_wm_command):
13250         handle both :callback and :callback-ex, and generate our own
13251         event because it's one of the callback-ex arguments.
13252
13253         * gui-x.c:
13254         * gui-x.c (popup_selection_callback):
13255         handle both :callback and :callback-ex, and generate our own
13256         event because it's one of the callback-ex arguments.
13257         * gui-x.c (button_item_to_widget_value):
13258         * gui-x.c (gui_items_to_widget_values_1):
13259         * gui-x.c (gui_item_children_to_widget_values):
13260         * gui-x.c (gui_items_to_widget_values):
13261         new image instance parameter in various places.
13262
13263         * fns.c (Freplace_list):
13264         fix small typo in doc string.
13265
13266         * lisp.h:
13267         declare enqueue_Xt_dispatch_event.
13268
13269 2000-04-28  Ben Wing  <ben@xemacs.org>
13270
13271         * buffer.c:
13272         * buffer.c (Frecord_buffer):
13273         * buffer.c (syms_of_buffer):
13274         delete record-buffer-hook.
13275
13276         * fns.c:
13277         * fns.c (Freplace_list):
13278         * fns.c (syms_of_fns):
13279         new primitive replace-list.
13280
13281         * frameslots.h:
13282         slot for old buffer-alist.
13283
13284         * lisp.h:
13285         exfun replace-list.
13286
13287         * redisplay.c:
13288         * redisplay.c (redisplay_frame):
13289         * redisplay.c (syms_of_redisplay):
13290         * redisplay.c (vars_of_redisplay):
13291         new hook buffer-list-changed-hook.
13292         call it.
13293
13294 2000-04-27  Ben Wing  <ben@xemacs.org>
13295
13296         * extents.h: extern in_modeline_generation.
13297
13298         * redisplay.c (generate_formatted_string_db): set
13299         in_modeline_generation.
13300
13301         * extents.c (extent_changed_for_redisplay): don't mark redisplay
13302         flags if in modeline generation.  otherwise frame-modified-tick
13303         is ticked far too often.
13304         Declare in_modeline_generation.
13305
13306 2000-04-26  Ben Wing  <ben@xemacs.org>
13307
13308         * emacs.c (vars_of_emacs): document quick-build "error-checking"
13309         option.
13310         (vars_of_emacs): add quick-build as an error-checking option.
13311         A bit kludgy, but there doesn't seem much point in creating
13312         a real var for this.
13313
13314         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
13315
13316 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13317
13318         * redisplay.h (struct display_line): Add a new variable,
13319         line_continuation.
13320
13321         * redisplay.c (create_text_block): Set dl->line_continuation if
13322         the line continues.
13323         (create_string_text_block): Ditto.
13324         (regenerate_window_incrementally): Use line_continuation instead
13325         of searching continuation glyph.
13326         (add_margin_runes): Call add_glyph_rune.
13327         (add_glyph_rune): Handle margin glyph.
13328
13329 2000-04-20  Martin Buchholz  <martin@xemacs.org>
13330
13331         * filelock.c (fill_in_lock_file_name):
13332         ANSIfy.
13333         Check for IS_ANY_SEP instead of '/'.
13334         (lock_file_1):
13335         Avoid generating gratuitous garbage.  Call user_login_name() directly.
13336         Never check errno without first seeing that system call failed.
13337         (unlock_file): Add GCPRO.
13338         (Flock_buffer): Fix docstring.
13339         (Ffile_locked_p): Fix docstring.  Add GCPRO.
13340
13341 2000-04-19  Martin Buchholz  <martin@xemacs.org>
13342
13343         * sysdep.c (get_pty_max_bytes):
13344         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
13345         strings longer than 252 bytes.
13346
13347         * md5.c: Unconditionally include ANSI header <limits.h>
13348
13349         * glyphs-x.c (convert_EImage_to_XImage):
13350         * lisp-union.h (union Lisp_Object):
13351         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
13352
13353 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
13354
13355         * filelock.c (current_lock_owner): Remove unused variable o, p.
13356
13357 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
13358
13359         * callint.c: Remove multiply defined symbol Qlet
13360         (syms_of_callint): ditto.
13361
13362 2000-04-14  Andy Piper  <andy@xemacs.org>
13363
13364         * general.c (syms_of_general): add last-command, this-command, let
13365         and funcall.
13366
13367         * lisp.h: declare various symbols.
13368
13369         * glyphs.h: declare Qwidget_callback_current_channel;
13370
13371         * glyphs-widget.c (syms_of_glyphs_widget): add
13372         Qgui_callback_current_channel.
13373         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
13374
13375         * gui-msw.c (mswindows_handle_gui_wm_command): bind
13376         widget-callback-current-channel when invoking the interactive
13377         arg. Also bind last-command and next-command when invoking the
13378         widget updates.
13379         * gui-x.c (popup_selection_callback): ditto.
13380
13381         * gui.c (get_gui_callback): massage args so that we are always
13382         calling eval. This allows us to add our own variable bindings
13383         outside.
13384
13385         * glyphs-x.c (x_button_instantiate): use
13386         gui_items_to_widget_values since this is GC safe.
13387         (x_progress_gauge_instantiate): ditto.
13388         (x_edit_field_instantiate): ditto.
13389         (x_label_instantiate): ditto.
13390
13391         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
13392         (emacs_Xt_event_widget_focus_out): new function
13393         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
13394         focus.
13395         (emacs_Xt_event_add_widget_actions): new function. add focus
13396         functions as actions.
13397         (init_event_Xt_late): use it.
13398
13399 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
13400
13401         * event-stream.c (Fdispatch_event): Doc fix.
13402
13403 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
13404
13405         * postgresql.c: Remove all references to PQsetenv*.
13406
13407         * postgresql.h: Remove references to PGsetenvHandler object.
13408         * lrecord.h (lrecord_type): Ditto.
13409
13410 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13411
13412         * glyphs-msw.h (struct mswindows_image_instance_data): Added
13413         real_heigh and real_width members, and accessor macros for these.
13414
13415         * glyphs-msw.c (init_image_instance_geometry): New function.
13416         (init_image_instance_from_dibitmap): Use it.
13417         (mswindows_resource_instantiate): Use it.
13418         (init_image_instance_from_xbm_inline): Use it.
13419         (mswindows_initialize_image_instance_mask): Use real bitmap
13420         geometry.
13421         (mswindows_create_resized_bitmap): Ditto.
13422         (mswindows_create_resized_mask): Ditto.
13423
13424         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
13425         and bitmap to their surface size.
13426
13427 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
13428
13429         * process-unix.c (unix_send_process): Guard against process MIA
13430         after Faccept_process_output.
13431
13432 2000-04-11  Ben Wing  <ben@xemacs.org>
13433
13434         * eval.c (unbind_to_hairy): fix brokenness introduced by
13435         nanosecond speed improvements.
13436
13437 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
13438
13439         * sunplay.c (init_device): To play sounds correctly, the device
13440         apparently needs to be initialized at least once by XEmacs.  Make
13441         it so.
13442
13443 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13444
13445         * redisplay.c (add_margin_runes): Add text image glyph
13446           handling.
13447
13448 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
13449
13450         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
13451         gcc is newer than 2.5.
13452
13453 2000-04-06  Colin Rafferty  <colin@xemacs.org>
13454
13455         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
13456
13457         * fns.c (size_bit_vector):
13458         * alloc.c (size_vector):
13459         (make_vector_internal):
13460         (make_bit_vector_internal):
13461         (sweep_bit_vectors_1):
13462         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13463
13464 2000-04-06  Andy Piper  <andy@xemacs.org>
13465
13466         * gmalloc.c (malloc): undo previous change.
13467         (malloc): ditto.
13468         (free): ditto.
13469         (realloc): ditto.
13470
13471 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
13472
13473         * line-number.c (buffer_line_number): Revert to former version.
13474
13475 2000-04-06  Andy Piper  <andy@xemacs.org>
13476
13477         * gmalloc.c (malloc): add error checking.
13478         (malloc): ditto.
13479         (free): ditto.
13480         (realloc): ditto.
13481
13482         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13483         button_item_to_widget_value arg.
13484
13485         * glyphs-x.c (x_button_instantiate): add extra
13486         button_item_to_widget_value arg.
13487         (x_progress_gauge_instantiate): ditto.
13488         (x_edit_field_instantiate): ditto.
13489         (x_label_instantiate): ditto.
13490
13491         * gui-x.c (gui_items_to_widget_values_1): add extra
13492         button_item_to_widget_value arg.
13493         (button_item_to_widget_value): add extra menu_item_p arg.
13494
13495         * gui-x.h: change signature of button_item_to_widget_value.
13496
13497         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13498         button_item_to_widget_value arg.
13499
13500 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13501
13502         * buffer.h (struct buffer): auto_save_modified should be long.
13503
13504 2000-04-05  Andy Piper  <andy@xemacs.org>
13505
13506         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13507         type.
13508         (button_query_geometry): give a little more room so that athena
13509         buttons fit.
13510
13511 2000-04-05  Andy Piper  <andy@xemacs.org>
13512
13513         * faces.c (complex_vars_of_faces): The widget face should inherit
13514         the font of the gui-element face.
13515
13516 2000-04-04  Andy Piper  <andy@xemacs.org>
13517
13518         * glyphs-x.c (x_button_update): new function. unconditionally
13519         update a button's state when the instance is dirty.
13520         (image_instantiator_format_create_glyphs_x): add x_button_update.
13521         (x_widget_instantiate): remove old resize cruft.
13522
13523 2000-04-02  Andy Piper  <andy@xemacs.org>
13524
13525         * frame.c (change_frame_size_1): The introduction of gutters means
13526         that we need to allow 0 as a potential frame dimension.
13527
13528 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13529
13530         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13531         image glyph if allow_cursor.
13532         (add_hscroll_rune): Don't allow cursor to border glyph.
13533         (create_text_block): Ditto.
13534
13535         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13536         text not in buffer.
13537         (redisplay_output_layout): Call ensure_face_cachel_complete for
13538         text image glyph.
13539
13540
13541 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13542
13543         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13544
13545         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13546         not in buffer
13547
13548         * redisplay-tty.c (tty_output_display_block): Delete the routine
13549         for text image glyph
13550         * redisplay-x.c (x_output_display_block): ditto
13551         * redisplay-msw.c (mswindows_output_display_block): ditto
13552
13553 2000-02-02  Mike Alexander  <mta@arbortext.com>
13554
13555         Note: Some of these were committed by accident as part of other
13556         patches.
13557
13558         * regex.c (regex_compile): Avoid compiler warnings.
13559
13560         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13561
13562         * nt.h: Declare term_ntproc correctly.
13563
13564         * nt.c: Remove incorrect declaration of get_home_directory which
13565         is declared correctly in lisp.h.
13566
13567         * keymap.c (get_keyelt): Avoid compiler warnings.
13568         (raw_lookup_key_mapper): Avoid compiler warnings.
13569
13570         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13571
13572         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13573
13574         * filemode.c (mode_string): Avoid compiler warnings.
13575
13576         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13577         avoid warning.
13578
13579         * events-mod.h: Undef some things that winuser.h defines differently.
13580
13581         * data.c (Faset): Avoid compiler warnings.
13582
13583         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13584
13585 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13586
13587         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13588         Fall through to simple beep on error.
13589         Replace "extern" by real header file.
13590
13591         * linuxplay.c: Use nativesound.h
13592         (play_sound_data): Return error code. Be less verbose on error.
13593
13594         * sunplay.c: Use nativesound.h
13595         (play_sound_data): Return error code. Be less verbose on error.
13596
13597         * ntplay.c: Use nativesound.h
13598         (play_sound_data): Return fake error code
13599
13600         * sgiplay.c: Use nativesound.h
13601         (play_sound_data): Return error code
13602
13603         * hpplay.c: Use nativesound.h, partially implement
13604         new error code. Break compilation until finished.
13605         (play_sound_data): error code.
13606
13607         * nativesound.h (play_sound_file):
13608           (play_sound_data): Prototype in new header.
13609
13610 2000-03-31  Andy Piper  <andy@xemacs.org>
13611
13612         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13613         for toggle and radio buttons.
13614         (image_instantiator_buttons): use it.
13615
13616 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13617
13618         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13619         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13620         found. Scrollbar event probably belonged to some old config.
13621
13622 2000-03-31  Andy Piper  <andy@xemacs.org>
13623
13624         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13625         than 1.
13626         (initialize_widget_image_instance): default layout to
13627         LAYOUT_HORIZONTAL rather than 0.
13628         (widget_instantiate): reverse the item list at the end rather than
13629         every iteration.
13630         (layout_layout): re-code for the border text at the front of the
13631         item list rather than at the end.
13632         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13633         provided by the user.
13634         (widget_query_geometry): comment.
13635
13636 2000-03-30  Andy Piper  <andy@xemacs.org>
13637
13638         * glyphs-widget.c (image_instantiator_layout): allow standard
13639         widget keywords in layouts.
13640
13641         * gutter.c (output_gutter): cope with nil gutter contents.
13642
13643         * frame.c (Fset_frame_properties): add gutter docs.
13644
13645 2000-03-29  Andy Piper  <andy@xemacs.org>
13646
13647         * toolbar-msw.c (TBSTYLE_FLAT): add.
13648         (mswindows_output_toolbar): minor fiddling.
13649
13650 2000-03-29  Andy Piper  <andy@xemacs.org>
13651
13652         * gutter.c (output_gutter): force gutter size recalculation if
13653         what we are trying to display won't fit.
13654         (update_gutter_geometry): new function. A per-gutter version of
13655         update_frame_gutter_geometry.
13656         (update_frame_gutter_geometry): use it.
13657         (redraw_exposed_gutter): add extra debugging output.
13658
13659 2000-03-28  Mike Alexander  <mta@arbortext.com>
13660
13661         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13662         (pdump_file_unmap): Implement it on Windows
13663         (pdump_file_get): Save alocated handles for pdump_file_unmap
13664
13665 2000-03-28  Andy Piper  <andy@xemacs.org>
13666
13667         * gui.c (get_gui_callback): treat Quit specially.
13668
13669 2000-03-27  Andy Piper  <andy@xemacs.org>
13670
13671         * glyphs.c (image_instantiate): be careful to check in the same
13672         way we assigned.
13673
13674 2000-03-27  Didier Verna  <didier@xemacs.org>
13675
13676         * config.h.in: define the proper SMART_INCLUDE macro.
13677         handle renaming of `foo_h_path' to `foo_h_file'.
13678
13679         * database.c: ditto.
13680
13681         * emacs.c: ditto.
13682
13683         * linuxplay.c: ditto.
13684
13685         * terminfo.c: ditto.
13686
13687         * tooltalk.h: ditto.
13688
13689 2000-03-27  Andy Piper  <andy@xemacs.org>
13690
13691         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13692         gets updated whenever the face might have changed.
13693
13694 2000-03-26  Mike Alexander  <mta@arbortext.com>
13695
13696         * dumper.c (pdump_resource_free): Fix the comment.
13697
13698 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13699
13700         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13701
13702 2000-03-22  Mike Alexander  <mta@arbortext.com>
13703
13704         * dumper.c: Include Windows headers on Windows
13705         (pdump_resource_free): Add a body to the function
13706         (pdump_load): exe_name -> exe_path and add some comments.
13707
13708 2000-03-25  Mike Alexander  <mta@arbortext.com>
13709
13710         * gui.c (copy_gui_item_tree): Return a value in all cases
13711
13712 2000-03-21  Didier Verna  <didier@xemacs.org>
13713
13714         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13715         lwlib/config.h.in.
13716         (SMART_INCLUDE): new macro.
13717         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13718         the proper location.
13719
13720         * postgresql.c: use it.
13721
13722         * inline.c: ditto.
13723
13724 2000-03-24  Andy Piper  <andy@xemacs.org>
13725
13726         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13727         do this.
13728
13729 2000-03-24  Andy Piper  <andy@xemacs.org>
13730
13731         * redisplay-output.c (compare_runes): use image_instance_changed
13732         to detect changes. Do not depend on glyphs_changed, only depend on
13733         dirtiness.
13734          (redisplay_output_layout): add debug messages.
13735         (compare_runes): ditto.
13736
13737         * glyphs.h: declare new functions.
13738         (struct Lisp_Image_Instance): remove percent and associated
13739         accessors.
13740
13741         * gui.h: declare new copying functions.
13742
13743         * gui.c (copy_gui_item_tree): new function.
13744         (copy_gui_item): new function.
13745         (gui_item_id_hash): revert to standard hash.
13746         (gui_item_hash): ditto.
13747         (gui_item_hash_internal): deleted.
13748         (mark_gui_item): mark value.
13749         (gui_item_add_keyval_pair): add value.
13750         (gui_item_init): ditto.
13751         (gui_add_item_keywords_to_plist): ditto.
13752         (gui_item_equal): ditto.
13753         (syms_of_gui): add Q_value.
13754
13755         * glyphs-x.c (x_progress_gauge_update): use pending items and
13756         value for setting the state.
13757         (x_update_widget): don't set items from pending here.
13758
13759         * glyphs-widget.c (update_widget): update items here.
13760         (progress_gauge_set_property): use items for storing value. Put
13761         new value in pending items.
13762
13763         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13764         items for new value. Convert percent -> value.
13765         (mswindows_tab_control_update): don't update items here.
13766
13767         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13768         (update_subwindow): ditto.
13769         (image_instance_changed): new function. Compare hash values and
13770         past and present widget items.
13771         (image_instantiate): We more careful about where we instantiate
13772         things.
13773         (image_instantiate): add error checking.
13774
13775         * gutter.c (syms_of_gutter): use -hook.
13776
13777 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13778
13779         * console-tty.c (Fset_console_tty_input_coding_system): Use
13780         Qkeyboard.
13781         (Fset_console_tty_output_coding_system): Use Qterminal.
13782         (tty_init_console): Use Qkeyboard and Qterminal.
13783
13784 2000-03-21  Ben Wing  <ben@xemacs.org>
13785
13786         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13787         From Mike Alexander <mta@arbortext.com>.
13788
13789 2000-03-21  Ben Wing  <ben@xemacs.org>
13790
13791         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13792         process brokenness.  Proper implementation to come.
13793         * callproc.c:
13794         Rename call-process-internal to old-call-process-internal.
13795         New impl. in process.el.
13796
13797 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13798
13799         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13800
13801 2000-03-20  Andy Piper  <andy@xemacs.org>
13802
13803         * glyphs.c (full_list_hash): make hashes of the same elements in
13804         different orders return different values.
13805
13806 2000-03-20  Martin Buchholz <martin@xemacs.org>
13807
13808         * XEmacs 21.2.32 is released.
13809
13810 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13811
13812         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13813         (DFC_MALLOC_USE_CONVERTED_DATA):
13814         Add aliasing-safe casts to allow use with char* or unsigned char*
13815         lvalues.
13816
13817         * eldap.c (Fldap_open):
13818         (Fldap_search_basic):
13819         (Fldap_add):
13820         (Fldap_modify):
13821         Make C++-compilable.
13822         Make sure GCPRO'ed variables are initialized.
13823         Use temp variables to avoid repeated calls to Flength.
13824
13825 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13826
13827         * sysfile.h:
13828         Make sure PATH_MAX is always defined.
13829         Include limits.h for PATH_MAX.
13830         Deprecate use of MAXPATHLEN.
13831
13832 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13833
13834         * emacs.c: Add reinit_vars_of_fileio.
13835         * symsinit.h: Add reinit_vars_of_fileio.
13836         * fileio.c (reinit_vars_of_fileio): New.
13837         * fileio.c (Fmake_temp_name):
13838         Initialize temp_name random number from microseconds to make
13839         collisions even less likely.  Initialize always at process startup
13840         time.  (make-temp-name) used to return the same file name twice in
13841         a row when PDUMP.
13842         Random stylistic fiddling.
13843         Comment fixes.
13844
13845 2000-03-20  Andy Piper  <andy@xemacs.org>
13846
13847         * glyphs.c (image_instantiate): allow text glyphs to be
13848         instantiated in the minibuffer window.
13849
13850 2000-03-19  Andy Piper  <andy@xemacs.org>
13851
13852         * glyphs.c (image_instance_hash): be careful about which items we
13853         hash on.
13854
13855         * glyphs-widget.c (tab_control_set_property): record into pending
13856         items rather than the actual items.
13857
13858         * glyphs-x.c (x_update_widget): use pending items to update with.
13859
13860         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13861         to update with.
13862
13863         * glyphs.c (mark_image_instance): mark pending items.
13864
13865         * window.c (Fset_window_configuration): record the buffer.
13866         (Fselect_window): totally revert previous change which breaks many
13867         things.
13868
13869 2000-03-18  Andy Piper  <andy@xemacs.org>
13870
13871         * glyphs-msw.c (mswindows_tab_control_update): force selected
13872         item.
13873
13874         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13875         window domain cache, otherwise we get inconsistencies at
13876         startup. There is something fishy at startup which can lead to the
13877         minibuffer being the selected window when the gutter content is
13878         instantiated.
13879
13880         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13881         gcpros.
13882         (parse_gui_item_tree_children): ditto.
13883         (parse_gui_item_tree_item): ditto.
13884
13885         * glyphs.c (Fupdate_widget_instances): return something.
13886
13887 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13888
13889         * window.c (Fselect_window): Undo 2000-03-17 change.
13890
13891 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13892
13893         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13894         against v7.0 libraries.  Insta-coredump city until the postgres
13895         folks fix it.
13896
13897 2000-03-17  Andy Piper  <andy@xemacs.org>
13898
13899         * faces.c (complex_vars_of_faces): don't give the widget face an
13900         inherited background pixmap.
13901
13902         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13903         selected item.
13904
13905         * event-stream.c (Fdispatch_non_command_events): return something.
13906
13907         * gutter.c (output_gutter): use widget face.
13908         (clear_gutter): ditto.
13909
13910         * NEWS: adjust again.
13911
13912         * window.c (Fselect_window): make sure this runs to completion to
13913         avoid oddities with Fset_window_configuration.
13914         (Fcurrent_window_configuration): in general do not save the
13915         minibuffer as the selected window.
13916
13917         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13918
13919 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13920
13921         * emacs.c (Frunning_temacs_p): Revert previous patch.
13922         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13923
13924 2000-03-16  Andy Piper  <andy@xemacs.org>
13925
13926         * glyphs-x.c (x_tab_control_update): if no widget values then
13927         return.
13928
13929         * NEWS: update for new features.
13930
13931         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13932         synthetic event to the native system.
13933         (reinit_vars_of_event_Xt): set force_event_pending to
13934         emacs_Xt_force_event_pending.
13935
13936         * events.h (struct event_stream): add force_event_pending.
13937
13938         * specifier.c (recompute_one_cached_specifier_in_window): add
13939         comment.
13940
13941         * redisplay.c (redisplay_frame): don't call
13942         update_frame_subwindows. Reset subwindow cachels when
13943         subwindows_changed, removing this was an optimization too far.
13944
13945         * redisplay-output.c (compare_runes): reorganize so that we catch
13946         glyph changes when we want them. Set optimize_output when this
13947         would help layouts.
13948         (redisplay_output_layout): remove frame_really_changed, use
13949         optimize_output instead.
13950
13951         * redisplay-msw.c (mswindows_output_display_block): reset
13952         optimize_output after outputting a glyph.
13953         * redisplay-x.c (x_output_display_block): ditto.
13954         * redisplay-tty.c (tty_output_display_block): ditto.
13955
13956         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13957         functions.
13958         (gutter_specs_changed): do specific gutter positions.
13959         (top_gutter_specs_changed): new function. Only update the
13960         specified gutter specs.
13961         (bottom_gutter_specs_changed): ditto.
13962         (left_gutter_specs_changed): ditto.
13963         (right_gutter_specs_changed): ditto.
13964
13965         * gui.c (gui_item_hash_internal): new function, does a real hash.
13966         (gui_item_id_hash): use it.
13967         (gui_item_hash): hash the eval'ed gui_item.
13968
13969         * gui-x.c (popup_selection_callback): send an eval event to call
13970         Fupdate_widget_instances.
13971
13972         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13973         to call Fupdate_widget_instances.
13974
13975         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13976         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13977
13978         * glyphs.c: (update_frame_subwindows): deleted.
13979         (Fupdate_widget_instances): new function for updating the dirty
13980         state of widgets that might have changed.
13981         (syms_of_glyphs): add Qupdate_widget_instances.
13982         (full_list_hash): hash a list completely.
13983         (image_instance_hash): use it for items and properties.
13984
13985         * frame-msw.c (mswindows_size_frame_internal): remove unused
13986         variable.
13987
13988         * faces.h (struct face_cachel): fix comment.
13989
13990         * event-stream.c (Fdispatch_non_command_events): new
13991         function. Process non-command events, forcing an event cycle
13992         beforehand.
13993         (syms_of_event_stream): declare.
13994         (event_stream_force_event_pending): new function. Force an event
13995         on the native event queue so that an event cycle will occur next
13996         time we check.
13997
13998         * event-msw.c:
13999         (struct ntpipe_shove_stream):
14000         (mswindows_enqueue_dispatch_event):
14001         (mswindows_dequeue_dispatch_event):
14002         (mswindows_cancel_dispatch_event):
14003         (mswindows_pump_outstanding_events):
14004         (mswindows_drain_windows_queue):
14005         (mswindows_handle_paint):
14006         (mswindows_wnd_proc):
14007         (mswindows_key_to_emacs_keysym):
14008         (get_process_input_waitable):
14009         (emacs_mswindows_delete_stream_pair): re-indent file.
14010         (mswindows_need_event): do not process further fds if the windows
14011         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
14012         fixes the 100% cpu problem.
14013         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
14014
14015 2000-03-15  Olivier Galibert  <galibert@pobox.com>
14016
14017         * alloc.h: New.
14018         * dumper.h: New.
14019         * dumper.c: New.
14020
14021         * emacs.c: Moved dump file searching to dumper.c.
14022         (Frunning_temacs_p): Fixed.
14023
14024         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
14025         last_lrecord_type_index_assigned.
14026
14027 2000-02-20  Olivier Galibert  <galibert@pobox.com>
14028
14029         * symsinit.h: Added reinit parameter to init_console_stream
14030         declaration.
14031
14032         * lisp.h: Added file parameter to pdump_load declaration.
14033
14034         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
14035         support.  Added dump file searching.
14036
14037         * config.h.in: Added EMACS_PROGNAME.
14038
14039         * console-stream.c (init_console_stream): Fix reinitialisation
14040         when running from temacs.
14041
14042         * alloc.c (pdump): Add id support.
14043         (pdump_load): Add file parameter and signature/id support.
14044
14045         * Makefile.in.in: Add full pdump support.
14046
14047 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
14048
14049         * postgresql.c: Update documentation to reflect latest code
14050         status.
14051         (print_result): Show tuple counts in printed representation when
14052         appropriate.
14053         (Fpq_put_nbytes): MULE-ize.
14054         (Fpq_get_line_async): Ditto.
14055
14056 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14057
14058         * postgresql.c (Fpq_lo_import): Fix return value.
14059         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
14060
14061 2000-03-13  Ben Wing  <ben@xemacs.org>
14062
14063         * alloc.c (pdump_load):
14064         Fix compile warning under mswin.
14065
14066 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14067
14068         * postgresql.c: Mule-ization, bug fixes.
14069         Use PG_CODING to encapsulate coding system name changes.
14070         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
14071         (pg-coding-system): Create.
14072
14073         (Fpq_conn_defaults): Mule-ize.
14074         (Fpq_connectdb): Mule-ize & bug fix.
14075         (Fpq_connect_start): Mule-ize.
14076         (Fpq_set_client_encoding): Mule-ize.
14077         (Fpq_finish): Document `DEAD' connection status.
14078         (Fpq_clear): Ditto.
14079         (Fpq_pgconn): Mule-ize.
14080         (Fpq_exec): Mule-ize & bug fix.
14081         (Fpq_send_query): Ditto.
14082         (Fpq_get_result): Ditto.
14083         (Fpq_res_status): Mule-ize.
14084         (Fpq_result_error_message): Mule-ize.
14085         (Fpq_ntuples): fix comments.
14086         (Fpq_fname): Mule-ize.
14087         (Fpq_fnumber): Mule-ize.
14088         (Fpq_ftype): fix comments.
14089         (Fpq_get_value): Mule-ize.
14090         (Fpq_cmd_status): Ditto.
14091         (Fpq_cmd_tuples): Ditto.
14092         (Fpq_oid_value): Ditto.
14093         (Fpq_notifies): Ditto.
14094         (Fpq_lo_import): Ditto.
14095         (Fpq_lo_export): Ditto.
14096         (Fpq_get_line): Ditto.
14097         (Fpq_put_line): Mule-ize and bug fix.
14098         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
14099
14100 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14101
14102         * postgresql.c (vars_of_postgresql): Mule-ize.
14103         (Fpq_conn_defaults): Ditto.
14104
14105 2000-03-12  Ben Wing  <ben@xemacs.org>
14106
14107         * alloc.c (Fmake_byte_code):
14108         * alloc.c (debug_string_purity_print):
14109         * alloc.c (pdump_backtrace):
14110         * alloc.c (pdump_get_indirect_count):
14111         * alloc.c (pdump_register_sub):
14112         * alloc.c (pdump_register_object):
14113         * alloc.c (pdump_register_struct):
14114         * alloc.c (pdump_dump_data):
14115         * alloc.c (pdump_reloc_one):
14116         Minor cleanups.
14117
14118         * console-msw.c:
14119         * console-msw.c (GetConsoleHwnd):
14120         * console-msw.c (msw_hide_console):
14121         * console-msw.c (msw_show_console):
14122         * console-msw.c (msw_ensure_console_buffered):
14123         * console-msw.c (msw_output_console_string):
14124         * console-msw.c (console_type_create_mswindows):
14125
14126         a) Added functions to manipulate the console window for use with
14127         shell support.
14128
14129         b) Added support for writing text to the console, which is now
14130         used under Windows when xemacs is not being run non-interactively,
14131         to write text that would otherwise be destined for stdout because
14132         under these circumstances, text written to stdout tends to
14133         disappear and not be seen.
14134
14135         * console-msw.h:
14136         * event-Xt.c:
14137         * event-Xt.c (x_event_to_emacs_event):
14138         * event-Xt.c (describe_event_window):
14139         * events-mod.h (XEMACS_MOD_CONTROL):
14140         * events.c:
14141         * events.c (Fmake_event):
14142         * events.c (character_to_event):
14143         * events.c (event_to_character):
14144         * events.c (format_event_object):
14145         * events.c (Fevent_modifiers):
14146         * events.h:
14147         * events.h (struct key_data):
14148         * events.h (struct button_data):
14149         * events.h (struct misc_user_data):
14150         * frame-x.c (Fcde_start_drag_internal):
14151         * frame-x.c (Foffix_start_drag_internal):
14152         * gpmevent.c (Freceive_gpm_event):
14153         * keymap.c:
14154         * keymap.c (bucky_sym_to_bucky_bit):
14155         * keymap.c (control_meta_superify):
14156         * keymap.c (make_key_description):
14157         * keymap.c (keymap_lookup_directly):
14158         * keymap.c (create_bucky_submap):
14159         * keymap.c (keymap_store):
14160         * keymap.c (define_key_check_and_coerce_keysym):
14161         * keymap.c (define_key_parser):
14162         * keymap.c (define_key_alternate_name):
14163         * keymap.c (Fdefine_key):
14164         * keymap.c (raw_lookup_key_mapper):
14165         * keymap.c (struct map_keymap_unsorted_closure):
14166         * keymap.c (map_keymap_unsorted_mapper):
14167         * keymap.c (map_keymap_sort_predicate):
14168         * keymap.c (map_keymap_sorted):
14169         * keymap.c (accessible_keymaps_mapper_1):
14170         * keymap.c (where_is_recursive_mapper):
14171         * keymap.c (describe_map_mapper):
14172         * keymap.c (describe_map_sort_predicate):
14173         * keymap.c (describe_map):
14174         * keymap.c (complex_vars_of_keymap):
14175         And a number of other files, the key modifier preprocessor
14176         constants that xemacs uses have names that conflict with constants
14177         defined under MS Windows for other purposes, so they were renamed
14178         to begin with the prefix XEMACS_. The variables that hold such
14179         modifiers were changed to consistently be of type int to fix
14180         various compile warnings.
14181
14182         * console.c (complex_vars_of_console):
14183         * device.c:
14184         * device-msw.c:
14185         * device-msw.c (mswindows_finish_init_device):
14186         * device-msw.c (msw_get_workspace_coords):
14187         * device-msw.c (mswindows_device_system_metrics):
14188         and various other files, added support for a new
14189         device property called offset-workspace which returns the position
14190         of the upper left corner of the workspace area and goes along with
14191         the existing size-workspace property.
14192
14193         * dialog-msw.c:
14194         * dialog-msw.c (push_bufbyte_string_as_unicode):
14195         * dialog-msw.c (mswindows_popup_dialog_box):
14196         Added support for XEmacs-style accelerator specifications in
14197         button text.  Note: I didn't add support for this under X Windows,
14198         and somebody needs to do this.
14199
14200         * dialog.c:
14201         * dialog.c (Fpopup_dialog_box):
14202         Documented the support for accelerators that was just mentioned.
14203
14204         editfns.c (get_home_directory): Changed behavior under Windows
14205         when HOME not defined; former behavior was irretrievably broken.
14206
14207         * emacs.c:
14208         * emacs.c (main_1):
14209         * emacs.c (main):
14210         * minibuf.c (clear_echo_area_internal):
14211         * minibuf.c (echo_area_append):
14212         * print.c:
14213         * print.c (std_handle_out_external):
14214         * print.c (std_handle_out_va):
14215         * print.c (fatal):
14216         * print.c (write_string_to_stdio_stream):
14217         * print.c (output_string):
14218         * print.c (debug_print):
14219         * print.c (debug_backtrace):
14220         * print.c (debug_short_backtrace):
14221         Cleaned up the code that prints text to stdout so that this can be
14222         changed to output into a console window instead under MS Windows,
14223         as described above.
14224
14225         * eval.c:
14226         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
14227         * eval.c (internal_catch):
14228         * eval.c (unwind_to_catch):
14229         * eval.c (throw_or_bomb_out):
14230         * eval.c (condition_case_1):
14231         * eval.c (signal_1):
14232         * eval.c (check_error_state_sanity):
14233         * eval.c (call_with_suspended_errors_1):
14234         * eval.c (call_with_suspended_errors):
14235         * eval.c (reinit_vars_of_eval):
14236         Added code to catch throw loops and check for a pesky bug that may
14237         be gone now.
14238
14239         * event-msw.c:
14240         * event-msw.c (key_needs_default_processing_p):
14241         * event-msw.c (mswindows_wnd_proc):
14242         * event-msw.c (mswindows_modifier_state):
14243         * event-msw.c (emacs_mswindows_quit_p):
14244         * event-msw.c (vars_of_event_mswindows):
14245         a) Added support for using the alt key to select menu items as is
14246         standard under MS Windows.  This is controlled using the variable
14247         menu-accelerator-enabled, just like under X Windows.  There is an
14248         option on the options menu to turn this support on.  I really
14249         think that it should be on by default under Windows, but I'm not
14250         going to make this change yet.
14251
14252         b)  Added support for dynamic display size changes under Windows.
14253
14254         * event-stream.c:
14255         * event-stream.c (maybe_echo_keys):
14256         * event-stream.c (Fnext_event):
14257         * event-stream.c (command_builder_find_leaf):
14258         * event-stream.c (lookup_command_event):
14259         * event-stream.c (execute_command_event):
14260         * event-stream.c (pre_command_hook):
14261         * event-stream.c (post_command_hook):
14262         * event-stream.c (syms_of_event_stream):
14263         * event-stream.c (vars_of_event_stream):
14264         * event-stream.c (complex_vars_of_event_stream):
14265         * events.h (struct command_builder):
14266
14267         a) Tried to clean up a little bit the horribly written x-specific
14268         accelerator code that crept into this file.  I moved this code
14269         into menubar-x.c where it belongs. I also needed to move the
14270         command builder structure into the file events.h because it is
14271         accessed directly by this accelerator code.  What I didn't do, but
14272         which should be done at some point, is to properly abstract this
14273         code using device methods instead of the kludgy way that it
14274         currently hooks into the event code.
14275
14276         b) Added the lisp variables this-command-properties and
14277         last-command- properties, which should be used to synchronize two
14278         adjacent commands in preference to playing games with the variable
14279         this-command, which is typically what happens.
14280
14281         c) Added some slightly nasty code to hook into the lisp support
14282         for shifted- motion-key selection.  This is actually necessary for
14283         somewhat complicated reasons, which are described in
14284         simple.el. (NB: I think the proper thing would be to have the code
14285         that calls the pre and post command hooks also call out to generic
14286         lisp functions in simple.el, where all built-in stuff could be
14287         added.  I will think about this more.)
14288
14289         * event-unixoid.c (poll_fds_for_input):
14290         * lread.c (readchar):
14291         * redisplay-tty.c (tty_clear_frame):
14292         * redisplay-x.c (x_get_gc):
14293         * signal.c (interrupt_signal):
14294         And a whole bunch of other files: fixed up places that printed
14295         directly to stderr to instead call the function stderr_out so that
14296         the changes I made under Windows work correctly.
14297
14298         * filemode.c (mode_string):
14299         Warning fixes.
14300
14301         * frame-msw.c:
14302         * frame-msw.c (mswindows_size_frame_internal):
14303         Fixed the computation of frame size and position to keep the frame
14304         within the workspace area, rather than within the physical
14305         dimensions of the screen, so that the frame doesn't overlap window
14306         manager decorations, such as the start menu and toolbar, typically
14307         at the bottom of the screen.
14308
14309         * frame.c (vars_of_frame):
14310         Changed the default frame title format under MS Windows to consist
14311         of buffername-XEmacs, which is standard under MS Windows.  I think
14312         it might be a good idea to change this everywhere because I think
14313         it is superior to the current frame title format, but this is the
14314         kind of change that is likely to cause some people to get annoyed,
14315         so I'm not making it.
14316
14317         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
14318
14319         * gui-msw.c (mswindows_handle_gui_wm_command):
14320         Fixed compile warnings.
14321
14322         * gui-x.c:
14323         * gui-x.c (strdup_and_add_accel):
14324         * gui-x.c (button_item_to_widget_value):
14325         * gui-x.h:
14326         Added code to automatically put an accelerator onto the beginning
14327         of menu items that don't have one as is now the standard, and is
14328         described more later.  Also fixed things so that the menu item
14329         name can be an evaluated expression, again a new standard.
14330
14331         * gui.c:
14332         * gui.c (gui_item_add_keyval_pair):
14333         * gui.c (make_gui_item_from_keywords_internal):
14334         * gui.c (gui_add_item_keywords_to_plist):
14335         * gui.c (gui_item_accelerator):
14336         * gui.c (gui_name_accelerator):
14337         * gui.c (gui_item_included_p):
14338         * gui.c (gui_item_display_flush_left):
14339         * gui.c (gui_item_display_flush_right):
14340         * gui.c (parse_gui_item_tree_item):
14341         * gui.c (parse_gui_item_tree_children):
14342         * gui.c (parse_gui_item_tree_list):
14343         Mule-ized.  Cleanup.  GCPRO addition.
14344
14345         * line-number.c (buffer_line_number):
14346         * lisp.h:
14347         * lisp.h (EMACS_INT_MAX):
14348         Added the manifest constant EMACS_INT_MIN corresponding to the
14349         existing constant EMACS_INT_MAX.  This is partially to fix compile
14350         warnings under Windows, and partly for cleanliness.
14351
14352         * menubar-msw.c:
14353         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
14354         * menubar-msw.c (msw_translate_menu_or_dialog_item):
14355         * menubar-msw.c (displayable_menu_item):
14356         * menubar-msw.c (populate_menu_add_item):
14357         * menubar-msw.c (populate_or_checksum_helper):
14358         * menubar-msw.c (populate_menu):
14359         * menubar-msw.c (update_frame_menubar_maybe):
14360         * menubar-msw.c (prune_menubar):
14361         * menubar-msw.c (msw_char_is_accelerator):
14362         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
14363         * menubar-msw.c (mswindows_handle_wm_command):
14364         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
14365         * menubar-msw.c (mswindows_handle_wm_initmenu):
14366         * menubar-msw.c (mswindows_update_frame_menubars):
14367         * menubar-msw.c (mswindows_free_frame_menubars):
14368         * menubar-msw.c (mswindows_popup_menu):
14369         Fixed a bug in handling accelerators where an extra character
14370         would be displayed in the menu item.  Also generalized the
14371         function displayable_menu_item because it is now used by the
14372         dialog box code as well.  And finally, added code in the functions
14373         that create the menubar to extract a list of accelerators for the
14374         top level menubar, which is used in the event code to determine
14375         whether a particular alt-key combination should be used to invoke
14376         a menu item, or should be passed through to access the standard
14377         XEmacs keymap binding for this key combination.
14378
14379         Much needed GCPROing.
14380
14381         * menubar-x.c:
14382         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14383         * menubar-x.c (menu_item_descriptor_to_widget_value):
14384         * menubar-x.c (restore_in_menu_callback):
14385         * menubar-x.c (x_popup_menu):
14386         * menubar-x.c (menu_move_up):
14387         * menubar-x.c (menu_move_down):
14388         * menubar-x.c (menu_move_left):
14389         * menubar-x.c (menu_move_right):
14390         * menubar-x.c (menu_select_item):
14391         * menubar-x.c (command_builder_operate_menu_accelerator):
14392         * menubar-x.c (menu_accelerator_junk_on_error):
14393         * menubar-x.c (command_builder_find_menu_accelerator):
14394         * menubar-x.c (Faccelerate_menu):
14395         * menubar.h:
14396         Moved a whole bunch of code here that was previously in
14397         event-stream.c as described above.  There is also code connected
14398         to the new standard of adding an accelerator to the beginning of
14399         menu items that don't have one as described above and below.
14400
14401         * menubar.c:
14402         * menubar.c (menu_parse_submenu_keywords):
14403         * menubar.c (Fmenu_find_real_submenu):
14404         * menubar.c (Fnormalize_menu_item_name):
14405         * menubar.c (syms_of_menubar):
14406         * menubar.c (vars_of_menubar):
14407         * menubar.c (complex_vars_of_menubar):
14408
14409         a) Cleaned up a bunch of documentation and improved it.
14410
14411         b) XEmacs now automatically adds an accelerator onto the beginning
14412         of any menu items that don't have one.  I did this because there
14413         will inevitably be some menu items on the main menubar that don't
14414         have accelerators on them because the package that adds that
14415         particular menu item hasn't yet been fixed up to have accelerators
14416         in them and it looked rather strange to have some items with and
14417         some items without accelerators, especially since even in items
14418         without accelerators, you can, at least under windows, still
14419         access the item through an accelerator corresponding to the first
14420         character in the item's name.  If people don't like this behavior,
14421         I can add a variable to turn it off optionally, but I'm not sure
14422         this is a good idea because we really do need to have accelerators
14423         on all of the menu items, and if a package doesn't like the
14424         accelerators being put on the first character, then it should put
14425         the accelerators where they belong.
14426
14427         c) I made a behavior change, which is that the descriptor that
14428         specifies the text of the menu item, which formerly was just a
14429         string, can now also be an evaluated expression.  This makes this
14430         descriptor parallel with all of the others, which could also be
14431         evaluated expressions.  This also obviates the need for the
14432         keyword :label, which was previously listed in the documentation
14433         as unimplemented, and which was for the same purpose.
14434
14435         d) GCPROing.
14436
14437         * ntproc.c:
14438         * ntproc.c (new_child):
14439         * ntproc.c (sys_spawnve):
14440         * ntproc.c (find_child_console):
14441         * ntproc.c (sys_kill):
14442         Fixed compile warnings.  By the way, this file should really go
14443         away entirely, and this will happen as soon as Kirill makes his
14444         final round of process cleanups, which affect the function
14445         call-process.
14446
14447         * process-nt.c:
14448         * process-nt.c (struct nt_process_data):
14449         * process-nt.c (find_process_from_pid):
14450         * process-nt.c (send_signal_the_nt_way):
14451         * process-nt.c (enable_child_signals):
14452         * process-nt.c (find_child_console):
14453         * process-nt.c (send_signal_the_95_way):
14454         * process-nt.c (nt_finalize_process_data):
14455         * process-nt.c (ensure_console_window_exists):
14456         * process-nt.c (nt_create_process):
14457         * process-nt.c (nt_kill_child_process):
14458         * process-nt.c (nt_kill_process_by_pid):
14459         * process-nt.c (nt_open_network_stream):
14460         * process-nt.c (vars_of_process_nt):
14461         Copied over code from Emacs 20.5 to correctly send signals to sub-
14462         processes under Windows 95.  Also added code to automatically
14463         create and hide console window when a sub-process is created under
14464         Windows 95, which obviates the need for the separate runemacs.exe
14465         executable, and finally implemented some variables that were
14466         implemented in Emacs 20.5, but previously not in XEmacs.  These
14467         include mswindows- start-process-share-console and
14468         mswindows-start-process-inherit-error-mode. (Both of these only
14469         apply to Windows 95.)
14470
14471         * regex.c (regex_compile): Fixed a compile warning.
14472
14473         * select-msw.c:
14474         * select-msw.c (mswindows_own_selection):
14475         * select-msw.c (mswindows_get_foreign_selection):
14476         * select-msw.c (mswindows_disown_selection):
14477         * select-msw.c (console_type_create_select_mswindows):
14478         * select-msw.c (syms_of_select_mswindows):
14479         Cleaned up the file and implemented the device method
14480         selection_exists_p, which had accidentally been left out.  Also
14481         removed four lisp functions that were remnants from before the
14482         time when the selection code was properly device abstracted.
14483         These functions are no longer needed because there are generic
14484         equivalents, and because they were added recently and don't exist
14485         in FSF Emacs, I don't think there's any problem with just deleting
14486         them.
14487
14488         * sysdep.c:
14489         * sysdep.c (sys_subshell):
14490         Fixed a compile warning, although in this case there's probably
14491         something wrong with this code, and it ought to be looked into
14492         more thoroughly by somebody who understands it.
14493
14494         * window.c:
14495         * window.c (Fwindow_text_area_height):
14496         * window.c (Fwindow_width):
14497         * window.c (Fwindow_full_width):
14498         * window.c (Fwindow_pixel_width):
14499         * window.c (debug_print_window):
14500         * window.c (syms_of_window):
14501         Added functions window-text-area-height and window-full-width,
14502         which are functions for returning various width and height
14503         characteristics of a window. (One of these functions is necessary
14504         for making the file dialog box work correctly, and the other one
14505         was added for completeness.)  Also added a table to the
14506         documentation for window-height which describes the entire scheme
14507         for accessing width and height characteristics of a window.
14508
14509 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14510
14511         * nt.c (fstat): Added a comment for another problem with
14512         non-encapsulated [f]stat(), reported by Adrian Aichner
14513         <aichner@ecf.teradyne.com>.
14514
14515 2000-03-11  Andy Piper  <andy@xemacs.org>
14516
14517         * window.c (make_dummy_parent): initialize subwindow instance
14518         cache.
14519         (Fset_window_configuration): zero extent_modiff.
14520
14521 2000-03-10  Andy Piper  <andy@xemacs.org>
14522
14523         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14524         more changes can be triggered.
14525         (Fredisplay_frame): ditto.
14526         (Fredraw_device): ditto.
14527         (Fredisplay_device): ditto.
14528         (redisplay_frame): make non-static.
14529         (redisplay_frame): call update_frame_gutter_geometry outside of
14530         display proper.
14531
14532         * gutter.h: declare update_frame_gutter_geometry.
14533
14534         * redisplay.h: declare redisplay_frame.
14535
14536         * gutter.c (update_frame_gutter_geometry): move geometry changes
14537         in update_frame_gutters here. Geometry changes can only occur
14538         outside of redisplay.
14539         (update_frame_gutters): remove geometry change code.
14540         (Fredisplay_gutter_area): make sure that we are in display when we
14541         update and that we have flushed any size changes.
14542
14543 2000-03-11  Andy Piper  <andy@xemacs.org>
14544
14545         * alloc.c (pdump_dump_data): remove i & count shadows.
14546
14547 2000-02-27  Mike Alexander  <mta@arbortext.com>
14548
14549         * sysdep.h: Declare pdump_read_file
14550
14551         * sysdep.c (pdump_read_file): New function
14552
14553         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14554         dump data
14555
14556 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14557
14558         * lrecord.h: add `lrecord_type_pgsetenv'.
14559
14560 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14561
14562         * symsinit.h: declare (vars|syms)_of* functions.
14563         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14564
14565 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14566
14567         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14568
14569         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14570         GCCs.
14571
14572         * emacs.c (main_1): Call postgres initialization code.
14573
14574         * postgresql.h: New file.  PostgreSQL RDBMS support.
14575         * postgresql.c: New file.
14576
14577 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14578
14579         * redisplay-output.c (redisplay_output_display_block): Disable
14580         redundant code.
14581
14582 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14583
14584         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14585         (Fcanna_henkan_next): Ditto.
14586         (Fcanna_bunsetu_henkou): Ditto.
14587         (Fcanna_henkan_kakutei): Ditto.
14588         (Fcanna_henkan_end): Ditto.
14589         (Fcanna_henkan_quit): Ditto.
14590         (Fcanna_henkan_next): Set retun value correctly.
14591         (c2mu): Use unsigned char instead of signed char.
14592
14593 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14594
14595         * emacs.c (main_1): Always call syms_of_gui.
14596         * inline.c: include gui.h
14597
14598 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14599
14600         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14601         converted to Lisp_Object.
14602         (Qtop_bottom): New variable.
14603         (syms_of_redisplay): Initialize it.
14604         * redisplay.h (Vvisible_bell): Ditto.
14605         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14606         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14607         only flash top and bottom.
14608
14609 2000-03-08  Andy Piper  <andy@xemacs.org>
14610
14611         * buffer.c (Frename_buffer): record new buffer name the right way.
14612
14613 2000-03-08  Andy Piper  <andy@xemacs.org>
14614
14615         * glyphs.c (update_subwindow): increase hash depth so that widget
14616         items get picked up properly.
14617
14618         * redisplay-output.c (compare_runes): increase hash depth so that
14619         widget items get picked up properly.
14620
14621 2000-03-08  Andy Piper  <andy@xemacs.org>
14622
14623         * gutter.c (output_gutter): add some debug.
14624
14625         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14626         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14627         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14628
14629         * redisplay-output.c (compare_runes): use display_hash to
14630         determine if glyphs really are not the same.
14631
14632         * glyphs.c (update_subwindow): check display_hash to see if
14633         anything really needs to be updated. If not then do
14634         nothing. Record the display_hash after updating.
14635         (image_instance_equal): compare the image_instance face also.
14636
14637 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14638
14639         * redisplay.h: Fix comment style.
14640
14641 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14642
14643         * consle-msw.h (struct mswindows_frame):
14644         Added new member paint_pending to indicate whether a WM_PAINT
14645         magic event has been queued for this frame.
14646
14647         * event-msw.c (mswindows_drain_windows_queue):
14648         Don't queue a WM_PAINT magic event if one is already queued.
14649         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14650
14651         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14652
14653 2000-03-07  Didier Verna  <didier@xemacs.org>
14654
14655         * dired.c: #include `regex.h' after `sysfile.h'.
14656
14657 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14658
14659         * sound.c (init_nas_sound): Fix compiler warning.
14660
14661         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14662         (FREE_STRUCT_P):
14663         (MARK_STRUCT_AS_FREE):
14664         (MARK_STRUCT_AS_NOT_FREE):
14665         Make `gcc -fstrict-aliasing' work properly.
14666
14667 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14668
14669         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14670         (mswindows_delete_device): Call CoUnnitialize().
14671
14672         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14673
14674 2000-02-25    <CraigL@DyCon.com>
14675
14676         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14677         <errno.h>.
14678
14679         * sysdep.c: This extern declaration for environ prevents MinGW
14680         from finding the variable in CRTDLL.DLL.
14681
14682         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14683         windows headers.
14684         (SHGFI_EXETYPE): ..
14685         (WM_MOUSEWHEEL): ..
14686         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14687         definitions.
14688         (MMRESULT): Removed, now defined in cygwin's windows headers.
14689         (TIMECAPS): ..
14690         (uid_t,gid_t,pid_t,ssize_t): ..
14691         (_timeb): Removed, MinGW defines both _timeb and timeb.
14692         (HAVE_H_ERRNO): Added.
14693         (HAVE_TZNAME): Added, configure is not detecting this.
14694
14695 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14696
14697         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14698         * syntax.c (syntax_match): Use it.
14699
14700         * cmds.c: Import auto-fill-chars from FSF Emacs.
14701         (Vauto_fill_chars): New variables.
14702         (internal_self_insert): Check Vauto_fill_chars.
14703         (vars_of_cmds):
14704         Declare auto-fill-chars as a Lisp variable and initialize it.
14705
14706 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14707
14708         * fileio.c (Fmake_symbolic_link):
14709         (Ffile_symlink_p):
14710         Run handlers even if local machine doesn't have symlinks.
14711
14712 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14713
14714         * event-msw.c (mswindows_drain_windows_queue):
14715         Don't generate paint magic events for non-XEmacs frames.
14716
14717 2000-03-05  Andy Piper  <andy@xemacs.org>
14718
14719         * redisplay.c (redisplay_frame): generate_displayable_area and
14720         friends assumes that we are not in GC, we therefore have to make
14721         sure that this doesn't happen.
14722
14723         * gutter.c (calculate_gutter_size): generate_displayable_area
14724         assumes that we are not in GC, we therefore have to make sure that
14725         this doesn't happen.
14726
14727 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14728
14729         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14730
14731 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14732
14733         * redisplay.c (regenerate_window): Make sure we set a sane value
14734         for end_pos even if we jump out of the loop.
14735         (regenerate_window): Answer Ben's question :-).
14736         (start_end_of_last_line): Add may_error argument.
14737         (start_of_last_line):
14738         (end_of_last_line): Pass may_error = 0.
14739         (end_of_last_line_may_error): New function.
14740         (pixel_to_glyph_translation): Use it, so we don't crash in
14741         event_to_glyph.
14742
14743 2000-03-04  Andy Piper  <andy@xemacs.org>
14744
14745         * window.h (struct window): add gutter_extent_modiff.
14746
14747         * window.c (allocate_window): zero out gutter_extent_modiff.
14748
14749         * redisplay.h: declare sync_display_line_structs.
14750
14751         * redisplay.c (add_glyph_rune): add a better comment.
14752
14753         * redisplay-output.c (sync_display_line_structs): made non-static.
14754         (compare_runes): remove unneccesary glyph cachel access.
14755
14756         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14757
14758         * gutter.c (output_gutter): don't output the gutter if extent
14759         changes only involve extents in buffers. use 4 sets of display
14760         lines.
14761         (gutter_extent_signal_changed_region_maybe): new function. Mark
14762         extents in gutters as changed.
14763         (update_frame_gutters): use 4 sets of display lines.
14764         (reset_gutter_display_lines): ditto.
14765         (free_frame_gutters): ditto.
14766         (redraw_exposed_gutter): force output of gutters.
14767
14768         * frame.h (struct frame): add 4 sets of gutter display lines.
14769
14770         * extents.c: (extent_changed_for_redisplay): signal changes to
14771         extents in strings in the gutter as well as extents in buffers.
14772
14773 2000-03-02  Andy Piper  <andy@xemacs.org>
14774
14775         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14776
14777         * frame.c (Fmake_frame): make sure the gutters get initialized
14778         after the frame is visible.
14779         (set_frame_selected_window): re-arrange compilation macros a
14780         little.
14781         (change_frame_size_1): mark gutters changed.
14782
14783         * device.c (Fset_device_class): mark gutters changed.
14784
14785 2000-03-01  Andy Piper  <andy@xemacs.org>
14786
14787         * window.c (window_top_frame_gutter_height): deleted.
14788         (window_bottom_frame_gutter_height): ditto.
14789         (window_left_frame_gutter_height): ditto.
14790         (window_right_frame_gutter_height): ditto.
14791         (window_top_gutter_height): don't use them.
14792         (window_bottom_gutter_height): ditto.
14793         (window_left_gutter_width): ditto.
14794         (window_right_gutter_width): ditto.
14795         (Fsplit_window): ditto.
14796         (Fwindow_pixel_edges): don't use border dimensions here.
14797
14798         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14799         (update_scrollbar_instance): ditto.
14800
14801         * redisplay.c (generate_modeline): don't take gutters into account.
14802         (generate_modeline): ditto.
14803         (redisplay_frame): small gutter display optimization.
14804
14805         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14806
14807         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14808         gutters into account.
14809
14810         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14811         for window position and type.
14812
14813         * gutter.c (get_gutter_coords): fix for frame gutters.
14814         (update_frame_gutters): update frame geometry if the gutters have
14815         changed.
14816         (init_frame_gutters): record current gutter geometries.
14817
14818         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14819         var.
14820         (mswindows_widget_instantiate): ditto.
14821
14822         * frame.h (struct frame): add current_gutter_bounds.
14823
14824         * frame.c (change_frame_size_1): position window and minibuffer
14825         appropriately taking into account the frame gutters.
14826
14827         * frame-x.c: (x_initialize_frame_size): take into account the
14828         frame gutters.
14829
14830 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14831
14832         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14833
14834 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14835
14836         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14837
14838 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14839
14840         * file-coding.c (reset_decoding_stream): Clear previous
14841         detection state when autodetect.
14842
14843 2000-02-29  Didier Verna  <didier@xemacs.org>
14844
14845         * extents.c (set_extent_glyph_1): don't require extents to be
14846         attached.
14847
14848 2000-02-27  Andy Piper  <andy@xemacs.org>
14849
14850         * gutter.c (Fset_default_gutter_position): don't default left and
14851         right gutter visibility to t.
14852         (Fset_default_gutter_position): run
14853         default-gutter-position-changed-hook.
14854         (syms_of_gutter): add default-gutter-position-changed-hook.
14855
14856 2000-02-26  Andy Piper  <andy@xemacs.org>
14857
14858         * specifier.c (Fmake_specifier): add gutter references.
14859
14860         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14861
14862         * lisp.h: declare Fvalid_plist_p.
14863
14864         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14865         as changed.
14866         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14867         well as its visibility so that it gets reconstructed.
14868         (construct_window_gutter_spec): new function. Construct a string
14869         to be displayed in the gutter from a plist of strings. Take care
14870         to only use elements that are declared as visible.
14871         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14872         WINDOW_GUTTER.
14873         (gutter_validate): allow plists of strings in the specifier.
14874         (gutter_specs_changed): construct the real_gutter from the gutter
14875         specs using construct_window_gutter_spec.
14876         (gutter_visible_validate): gutter-visible is a new specifier type.
14877         (Fgutter_visible_specifier_p): new function for the new specifier.
14878         (syms_of_gutter): declare gutter-visible and
14879         Fgutter_visible_specifier_p.
14880         (specifier_type_create_gutter): intitalize new gutter-visible
14881         specifier.
14882         (reinit_specifier_type_create_gutter): ditto.
14883         (specifier_vars_of_gutter): use new specifier type for gutter
14884         visibility.
14885         (init_frame_gutters): construct real_gutter correctly.
14886         (Fgutter_specifier_p): beef up documentation.
14887         (Fgutter_size_specifier_p): ditto.
14888
14889         * winslots.h: add real_gutter slots.
14890
14891 2000-02-25  Andy Piper  <andy@xemacs.org>
14892
14893         * device-msw.c: Be kind to older cygwin versions. From Raymond
14894         Toy <toy@rtp.ericsson.se>.
14895
14896         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14897         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14898
14899 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14900
14901         * elhash.c (MARK_OBJ): Practice macro hygiene.
14902
14903 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14904
14905         * miscplay.c: s/__inline__/inline/g;
14906         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14907         (get_device_compdc): INLINE ==> static inline
14908         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14909         find -name '*.h' | \
14910         xargs global-replace \
14911         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14912
14913 2000-02-25  Andy Piper  <andy@xemacs.org>
14914
14915         * window.c (window_top_frame_gutter_height): new function.
14916         (window_top_window_gutter_height): ditto.
14917         (window_top_gutter_height): use them.
14918         (window_bottom_frame_gutter_height): new function.
14919         (window_bottom_window_gutter_height): ditto.
14920         (window_bottom_gutter_height): use them.
14921         (window_left_window_gutter_width): new function.
14922         (window_left_frame_gutter_width): ditto.
14923         (window_left_gutter_width): use them.
14924         (window_right_window_gutter_width): new function.
14925         (window_right_frame_gutter_width): ditto.
14926         (window_right_gutter_width): use them.
14927         (window_pixel_height): new function. calulate window pixel height
14928         with frame gutter involvement.
14929         (Fsplit_window): calculate new sizes taking frame gutters into
14930         account.
14931         (window_char_height_to_pixel_height): don't include frame gutters.
14932         (window_char_height): use window_pixel_height.
14933         (window_pixheight): rename from window_pixel_height.
14934         (change_window_height): use it.
14935         (window_pixel_height_to_char_height): don't include frame gutters.
14936         (window_char_width_to_pixel_width): ditto.
14937
14938 2000-02-25  Andy Piper  <andy@xemacs.org>
14939
14940         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14941         if it is.
14942
14943 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14944
14945         * alloc.c (staticpro):
14946         (staticpro_nodump):
14947         (dumpstruct):
14948         (dumpopaque):
14949         (pdump_wire):
14950         (pdump_wire_list):
14951         (compact_string_chars):
14952         (pdump_dump_wired):
14953         Convert:  if (foo) abort();  ==>  assert (! foo);
14954
14955         * eldap.c (Fldap_search_basic):
14956         (Fldap_add):
14957         (Fldap_modify):
14958         (Fldap_delete):
14959         Fix compiler warnings, and possible crashes if (random) return
14960         value were to be used.
14961
14962 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14963
14964         * device-msw.c: Workaround ResetDC failure.
14965
14966         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14967         applying a devmode.
14968
14969         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14970         (mswindows_text_width): Do not start printer page.
14971
14972         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14973
14974         * glyphs-msw.c: Added image methods to msprinter console and
14975         msprinter-specific image instantiation.
14976
14977 2000-02-20  Mike Alexander  <mta@arbortext.com>
14978
14979         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14980         to avoid crashes when selection-sets-clipboard is on
14981         (mswindows_own_selection): ditto
14982
14983 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14984
14985         * glyphs-msw.c:
14986         * redisplay-msw.c (get_frame_dc):
14987         (get_frame_compdc):
14988         * console-msw.h:
14989         * device-msw.c (mswindows_init_device):
14990         (mswindows_delete_device):
14991         (msprinter_init_device):
14992         (msprinter_delete_device):
14993         * frame-msw.c (mswindows_init_frame_1):
14994         (mswindows_delete_frame):
14995         (msprinter_init_frame_3):
14996         (msprinter_delete_frame): Move compatible DC to device object from
14997         frame object, for both mswindows and msprinter. Only one at a time
14998         is needed, it is a real waste to have one per frame!
14999
15000 2000-02-23  Andy Piper  <andy@xemacs.org>
15001
15002         * glyphs.c: add dynamic width and height elements.
15003         (image_instance_equal): ditto.
15004
15005         * glyphs-widget.c (widget_query_geometry): calculate width and
15006         height dynamically if required.
15007         (initialize_widget_image_instance): initialize dynamic dimensions.
15008         (widget_instantiate): pick-up dynamic dimensions.
15009
15010         * glyphs.h (struct Lisp_Image_Instance): add width and height for
15011         dynamic determination. Add appropriate macros.
15012
15013         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
15014         dimensions safe.
15015         (WINDOW_GUTTER_SIZE): ditto.
15016         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
15017
15018         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
15019         inline.
15020         (get_frame_dc): ditto.
15021
15022         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
15023         here.
15024
15025 2000-02-23  Martin Buchholz <martin@xemacs.org>
15026
15027         * XEmacs 21.2.31 is released.
15028
15029 2000-02-22  Ben Wing <ben@xemacs.org>
15030
15031         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
15032
15033 2000-02-22  Andy Piper  <andy@xemacs.org>
15034
15035         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
15036
15037 2000-02-21  Mike Sperber <mike@xemacs.org>
15038
15039         * .dbxrc:
15040         * .gdbinit:
15041         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
15042         variables.
15043
15044 2000-02-21  Mike Sperber <mike@xemacs.org>
15045
15046         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
15047
15048 2000-02-21  Martin Buchholz <martin@xemacs.org>
15049
15050         * XEmacs 21.2.30 is released.
15051
15052 2000-02-20  Martin Buchholz  <martin@xemacs.org>
15053
15054         Performance hacking.
15055         * *.c (syms_of_*):
15056         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
15057         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
15058         * emacs.c (main_1):
15059         * lisp.h (DEFUN):
15060         * console.c (DEFVAR_CONSOLE_LOCAL_1):
15061         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
15062         * symeval.h (DEFVAR_SYMVAL_FWD):
15063         * symbols.c (guts_of_unbound_marker):
15064         Make all c_readonly objects also lisp_readonly and marked for life.
15065         * lrecord.h (struct lrecord_implementation):
15066         Document flags better.
15067         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
15068         * lrecord.h (DECLARE_LRECORD):
15069         * lrecord.h (XSETRECORD):
15070         * lrecord.h (RECORDP):
15071         * lrecord.h (RECORD_TYPEP):
15072         * lrecord.h (RECORD_MARKER): New.
15073         * lrecord.h (error_check_*):
15074         * lrecord.h (CONCHECK_NONRECORD):
15075         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
15076         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
15077         * lrecord.h (set_lheader_implementation):
15078         * lrecord.h (enum lrecord_type): New.
15079         * symeval.h (SYMBOL_VALUE_MAGIC_P):
15080         * alloc.c (disksave_object_finalization_1):
15081         * alloc.c (mark_object):
15082         * alloc.c (lrecord_type_index):
15083         * alloc.c (tick_lcrecord_stats):
15084         * alloc.c (Fgarbage_collect):
15085         * alloc.c (init_alloc_once_early):
15086         * alloc.c (pdump_load):
15087         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
15088         * alloc.c (lrecord_type_index): Delete.
15089         Make lisp object type indexes be constant.
15090           Makes (byte-compile) 5% faster.
15091         Put all marker functions into their own array.
15092           Makes (garbage-collect) 5% faster.
15093         Optimize SYMBOL_VALUE_MAGIC_P.
15094           Makes (byte-compile) 2-3% faster.
15095         * config.h.in (gc_checking_assert): New.
15096         * alloc.c: Use gc_checking_assert().
15097         * .dbxrc: Make compatible with new object type implementation.
15098         * .gdbinit: Make compatible with new object type implementation.
15099         * alloc.c: Delete all symbols defined only for debugging, such as
15100         Lisp_Type_Vector and lrecord_charset.
15101
15102 2000-02-21  Andy Piper  <andy@xemacs.org>
15103
15104         * gui-msw.c (Fmswindows_shell_execute): fix file location
15105         problems.
15106
15107         * buffer.c (Fkill_buffer): remove buffer from alist buffer
15108         unshowing so that set_window_buffer doesn't undo
15109         kill_buffer_hook's hard work.
15110
15111         * glyphs-widget.c (tab_control_query_geometry): don't count the
15112         first item when calculating geometry.
15113
15114         * glyphs.c (map_subwindow): remove redundant code.
15115         (update_frame_subwindows): be more circumspect about when to
15116         update subwindows.
15117
15118         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
15119         when items haven't changed. Update faces if faces have changed as
15120         well as just the widget face.
15121         (x_tab_control_update): Update faces if faces have changed as well
15122         as just the widget face.
15123
15124 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15125
15126         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
15127         registration.
15128         (build_syscolor_string): Use mswindows_color_to_string to try to
15129         get a named color.
15130         (mswindows_device_system_metrics): Reverse the foreground and
15131         background colors so that they match the documentation.
15132
15133         * objects-msw.c: (mswindows_X_color_map): tweak some values so
15134         they match the default Windows palette.
15135         (mswindows_color_to_string): New function.
15136
15137 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15138
15139         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
15140
15141 2000-02-18  Olivier Galibert  <galibert@pobox.com>
15142
15143         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
15144         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
15145
15146         * symbols.c (init_symbols_once_early): Removed obsolete
15147         DATA_SEG_BITS related kludge.
15148         (defvar_magic): Ditto.
15149
15150         * malloc.c: Removed obsolete DATA_SEG_BITS
15151         * ralloc.c: Ditto.
15152         * mem-limits.h: Ditto.
15153
15154         * Makefile.in.in: Removed obsolete HAVE_SHM
15155         * emacs.c: Ditto.
15156
15157 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15158
15159         *  device-msw.c (mswindows_delete_device): Free DDE string
15160         handles.
15161
15162 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15163
15164         * keymap.c (get_keyelt):
15165         * unexnt.c (unexec):
15166         * vm-limit.c (memory_warnings):
15167         * ntheap.c (recreate_heap):
15168         * ntheap.h (UNINIT_PTR):
15169         * select-msw.c (Fmswindows_get_clipboard):
15170         (Fmswindows_set_clipboard):
15171         * objects-msw.h (MSWINDOWS_BAD_HFONT):
15172         * objects-msw.c:
15173         * menubar-msw.c (displayable_menu_item):
15174         * glyphs-msw.c:
15175         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
15176         * sysdep.c (sys_subshell):
15177         * process-nt.c (nt_create_process):
15178         * nt.c (normalize_filename):
15179         (dostounix_filename):
15180         (unixtodos_filename):
15181         * ntproc.c (win32_executable_type):
15182         * ntplay.c (play_sound_data_1):
15183         (play_sound_file):
15184         * editfns.c (get_home_directory):
15185         * event-msw.c (struct winsock_stream):
15186         (mswindows_dde_callback):
15187         * device-msw.c (msprinter_init_device):
15188         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
15189
15190         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
15191         mswindows_clear_toolbar were swapped!
15192
15193         * objects-msw.c:(colormap_t):
15194         (fontmap_t):
15195         * emacs.c (struct standard_args): Fixed const jumble.
15196
15197         * glyphs-widget.c (update_widget): Fixed comparison notation.
15198
15199         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
15200
15201         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
15202         __declspec(noreturn) syntax.
15203
15204 2000-02-19  Martin Buchholz  <martin@xemacs.org>
15205
15206         * eldap.c (Fldap_open):
15207         (Fldap_search_basic):
15208         (Fldap_add):
15209         (Fldap_modify):
15210         Use new coding system conversion macros.
15211
15212 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15213
15214         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
15215
15216 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
15217
15218         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
15219         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15220
15221         * eldap.c (Qadd, Qreplace): New constant symbols
15222         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
15223         interruptions by XEmacs signals
15224         Remove unnecessary calls to slow_down_interrupts and
15225         speed_up_interrupts
15226         (Fldap_search_basic): Renamed from Fldap_search_internal
15227         Added new optional parameter VERBOSE that triggers the
15228         display of progress messages
15229         Remove unnecessary calls to slow_down_interrupts and
15230         speed_up_interrupts
15231         LDAP result code analysis rewritten
15232         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15233         (syms_of_eldap): Define the new symbols and functions
15234
15235
15236 2000-02-17  Martin Buchholz  <martin@xemacs.org>
15237
15238         * realpath.c: Determine PATH_MAX maximally portably.
15239
15240         * insdel.c (bytecount_to_charcount): Optimize.
15241         The function used to be optimized for entirely ASCII sequences.
15242         Now it is optimized for successive characters from the same
15243         charset.  This also wins big for _mostly_ ASCII sequences.
15244
15245         * fileio.c (Ffile_truename): convert return from realpath() using
15246         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
15247         - Rewrite GCPROing slightly.
15248
15249         * sysdep.c (sys_open): Do filename conversion, like all other
15250         sys_* functions.  Fixes bug:
15251         (let ((file-name-coding-system 'iso-8859-2))
15252            (write-region x y latin2-name))
15253         ==> writes filename using internal encoding.
15254
15255 2000-02-18  Martin Buchholz  <martin@xemacs.org>
15256
15257         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
15258         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
15259         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
15260         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
15261         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
15262         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
15263         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
15264         (CONST_IF_NOT_DEBUG): Delete.
15265         * alloc.c (this_one_is_unmarkable): Delete.
15266         (mark_object): Don't check for this_one_is_unmarkable. Use the
15267         c_readonly flag instead.
15268         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
15269
15270 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15271
15272         * event-msw.c (mswindows_drain_windows_queue):
15273         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
15274         away redundant repaint events.
15275
15276 2000-02-17  Andy Piper  <andy@xemacs.org>
15277
15278         * redisplay.h: declare mark_redisplay_structs.
15279
15280         * redisplay.c (redisplay_window):
15281         (redisplay_frame): don't check subwindows_state_changed.
15282         (mark_redisplay): mark gutters here.
15283
15284         * glyphs.c: (instantiate_image_instantiator): always layout if we
15285         haven't done so already.
15286         (allocate_image_instance): don't mark as dirty.
15287         (update_subwindow): bind inhibit_quit.
15288
15289         * gutter.c (mark_gutters): new function.
15290
15291         * glyphs-x.c (x_update_widget): Always resize to get round a
15292         widget bug.
15293
15294         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
15295         breaking absolutely everything.
15296
15297         * gutter.h: declare mark_gutters.
15298
15299 2000-02-16  Martin Buchholz <martin@xemacs.org>
15300
15301         * XEmacs 21.2.29 is released.
15302
15303 2000-02-15  Olivier Galibert  <galibert@pobox.com>
15304
15305         * fns.c (size_bit_vector): Fix computation of the size.
15306
15307 2000-02-15  Martin Buchholz  <martin@xemacs.org>
15308
15309         * *.[ch]: Change CONST to const globally.
15310         find -name '*.[ch]' | \
15311         xargs global-replace \
15312         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
15313         - Remove vestigial references to CONST_IS_LOSING
15314
15315 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15316
15317         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
15318         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
15319         events instead of dispatching them directly.
15320         (mswindows_handle_paint): New function to do repainting.
15321         (mswindows_wnd_proc):
15322         (emacs_mswindows_handle_magic_event): Call above function.
15323
15324 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15325
15326         * objects-msw.c (mswindows_create_font_variant): Return the new
15327         font handle.
15328         (initialize_font_instance): Get font metrics from the underlined
15329         variant of the font to cope with the case where the underlined
15330         font has a bigger descent.
15331
15332 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15333
15334         * gui.c (gui_item_accelerator): Return the first underlined
15335         character in item name.
15336
15337 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15338
15339         * lisp.h: Added Qprinter.
15340
15341         * general.c (syms_of_general): Initialized it.
15342
15343         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
15344         (get_frame_dc):
15345         (get_frame_compdc): Made inline.
15346
15347         * console.h (struct console_methods): Added eject_page method.
15348
15349         * frame.h: Added FRAME_DISPLAY_P and friends.
15350         Aligned backslahes in many macros in more readable fashion.
15351         Added page_number to struct frame, and an accessor macro
15352         for it.
15353
15354         * defice.h: Added DEVICE_DISPLAY_P and friends.
15355
15356         * device.c (Fdevice_printer_p): Used these.
15357
15358         * frame.c (allocate_frame_core): Initialize page number.
15359         (Fprint_job_page_number):
15360         (Fprint_job_eject_page): Implemented.
15361
15362         * frame-msw.c (msprinter_eject_page): Added method.
15363         (msprinter_start_page): Added.
15364
15365         * window.c (Fwindow_truncated_p): Fixed docstring.
15366         (Fwindow_last_line_visible_height): Implemented.
15367
15368 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15369
15370         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
15371
15372 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15373
15374         * syntax.c (scan_words): Always advance at least one character.
15375
15376 2000-02-13  Andy Piper  <andy@xemacs.org>
15377
15378         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
15379         to make sure the glyph is in the cachels.
15380
15381         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
15382         global image instance flag.
15383         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
15384         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
15385
15386         * glyphs.c (allocate_image_instance): set dirty bits correctly.
15387         (Fset_image_instance_property): mark layout as changed.
15388         (invalidate_glyph_geometry_maybe): mark layout as changed.
15389         (glyph_width): use new NEEDS_LAYOUT macro.
15390         (glyph_ascent): ditto.
15391         (glyph_descent): ditto.
15392         (glyph_height): ditto.
15393         (image_instance_layout): mark layout as clean after laying out.
15394         (update_subwindow): don't mark layout as clean here.
15395
15396         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
15397         should no longer be needed.
15398
15399         * glyphs-x.c (x_update_widget): sanitize asserts.
15400         (x_finalize_image_instance): sanitize assignment to widgets.
15401
15402         * glyphs-widget.c (widget_instantiate): don't need to clear the
15403         layout flag here.
15404
15405 2000-02-13  Martin Buchholz  <martin@xemacs.org>
15406
15407         * sysdep.c (getcwd): Use standard prototype.
15408         * sysdep.h (getcwd): Use standard prototype.
15409
15410         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
15411         (sequence, start, end).
15412         Remove redundant type checking.
15413         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
15414         view of `caller-protects') to avoid a crash where the real fix was
15415         found elsewhere.
15416
15417 2000-02-12  Martin Buchholz  <martin@xemacs.org>
15418
15419         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
15420
15421         * s/sol2.h: Remove feature macro initialization.
15422
15423         * alloc.c (alloc_lcrecord): Add more type checking assertions.
15424         (vector_hash): New.  Code from internal_hash.
15425         * lrecord.h:
15426         Fix up allocation subsystem comments.
15427
15428         * config.h.in: Add __EXTENSIONS__ for Solaris.
15429
15430         * systime.h (EMACS_GETTIMEOFDAY): New.
15431         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
15432         Remove Solaris-specific code.
15433         Use void* for the (ignored) second arg for gettimeofday().
15434
15435         * elhash.c (hash_table_hash): Implement it, finally.
15436         * elhash.c:  Use hashcode_t.
15437
15438         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
15439         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
15440
15441         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
15442         * fns.c (size_bit_vector):
15443         * alloc.c (size_vector):
15444         (make_vector_internal):
15445         (make_bit_vector_internal):
15446         (sweep_bit_vectors_1):
15447         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
15448
15449 2000-02-10  Martin Buchholz  <martin@xemacs.org>
15450
15451         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
15452         Include strings.h to avoid warnings for bzero and strcasecmp.
15453
15454 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15455
15456         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
15457         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
15458
15459         * fns.c (size_bit_vector): New.  Declare bit vectors as a
15460         sequence.
15461
15462 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15463
15464         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15465         use a value field instead.
15466         (symbol_value_forward_forward): Use value field.
15467         (DEFVAR_SYMVAL_FWD): Use value field.
15468         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
15469         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15470         (DEFVAR_CONST_INT): Ditto.
15471         (DEFVAR_BOOL): Ditto.
15472         (DEFVAR_CONST_BOOL): Ditto.
15473         (DEFVAR_INT_MAGIC): Ditto.
15474         (DEFVAR_BOOL_MAGIC): Ditto.
15475
15476         * symbols.c (guts_of_unbound_marker): Use value field.
15477         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15478         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15479
15480         * lisp.h: Declare dumpopaque and noninteractive1.
15481
15482         * alloc.c (dumpopaque): Added.
15483         (pdump_dump_opaquevec): Added.
15484         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15485         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15486         noninteractive.
15487
15488 2000-02-10  Andy Piper  <andy@xemacs.org>
15489
15490         * glyphs.c (image_instance_layout): if the size changes, mark it
15491         as such.
15492
15493         * redisplay-output.c (redisplay_output_layout): Update the
15494         subwindow here.
15495         (redisplay_output_subwindow): ditto.
15496
15497         * glyphs.c (update_subwindow): make sure we reset flags for
15498         layouts as well as everything else.
15499
15500         * glyphs-widget.c (layout_layout): don't need to set the instances
15501         dimensions here.
15502
15503 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15504
15505         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15506         not HAVE_DLOPEN, which is a lower-level thing.
15507
15508         * .cvsignore: Ignore gmon.out
15509
15510 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15511
15512         * .cvsignore: Ignore portable dumper xemacs.dmp file
15513
15514 2000-02-09  Andy Piper  <andy@xemacs.org>
15515
15516         * redisplay-output.c (redisplay_output_layout): be more clever
15517         about when we output based on the changed flags.
15518
15519         * glyphs.h (struct image_instantiator_methods): add update_method.
15520         (struct Lisp_Image_Instance): add changed flags. Declare new
15521         macros for manipulating them.
15522
15523         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15524         (image_instance_parent_glyph): find an image_instance's parent
15525         glyph or image_instance.
15526         (image_instance_layout): mark the size as changed.
15527         (set_image_instance_dirty_p): new function. mark an image
15528         instance, plus all of its parents, as dirty.
15529         (Fset_image_instance_property): use it.
15530         (Fglyph_animated_timeout_handler): use it.
15531         (update_subwindow): call update_widget and device methods for
15532         update_subwindow. Mark all changed flags as clean.
15533         (Fresize_subwindow): mark size as changed.
15534
15535         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15536         failures.
15537         (x_update_subwindow): only resize subwindows here.
15538         (x_update_widget): new function. Update all changed properties of
15539         a widget.
15540         (x_resize_subwindow): deleted.
15541         (x_widget_set_property): deleted.
15542         (x_progress_gauge_set_property): deleted.
15543         (x_progress_gauge_update): new function. Implement recorded
15544         changes.
15545         (x_tab_control_update): ditto.
15546         (x_tab_control_set_property): deleted.
15547         (console_type_create_glyphs_x): declare new functions.
15548         (image_instantiator_format_create_glyphs_x): ditto.
15549
15550         * glyphs-widget.c (widget_set_property): mark text changed.
15551         (update_widget): new function. Update properties of a widget.
15552         (widget_instantiate): for layouts make sure we set their
15553         children's parent correctly.
15554         (tab_control_set_property): new function. Record changes that will
15555         take place under redisplay's control.
15556         (progress_gauge_set_property): ditto.
15557         (image_instantiator_progress_guage): declare new functions.
15558         (image_instantiator_tab_control): ditto.
15559
15560         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15561         now.
15562         (mswindows_update_widget): new function. Update all properties on
15563         a widget that have changed.
15564         (mswindows_button_update): new function. Update a button's set
15565         state.
15566         (mswindows_tab_control_update): new function. Update the items in
15567         a tab.
15568         (mswindows_tab_control_set_property): deleted.
15569         (mswindows_progress_gauge_update): new function. Update the
15570         progress gauge's progress.
15571         (mswindows_widget_set_property): deleted. This is all done
15572         asynchronously now.
15573         (mswindows_progress_gauge_set_property): ditto.
15574         (console_type_create_glyphs_mswindows): declare new methods.
15575         (image_instantiator_format_create_glyphs_mswindows): ditto.
15576
15577         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15578         (msprinter_set_frame_properties): ditto.
15579
15580         * console.h (struct console_methods): Add update_widget_method.
15581
15582 2000-02-09  Andy Piper  <andy@xemacs.org>
15583
15584         * gui-msw.c (Fmswindows_shell_execute): Make
15585         mswindows-shell-execute industrial strength.
15586
15587 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15588
15589         * lrecord.h: Make macro argument `props' match member function `plist'.
15590         * fns.c (Fget):
15591         * fns.c (Fput):
15592         * fns.c (Fremprop):
15593         * fns.c (Fobject_plist):
15594         * alloc.c:
15595         * symbols.c:
15596         Object property list frobbing cleanup.
15597         - Allow any lisp object (compared with `eq'), not just symbols, as
15598           keys in object plists.
15599         - Move symbol plist frobbing into symbols.c, where it belongs.
15600         - Move string plist frobbing into alloc.c, where it belongs.
15601         - Everything's an lrecord now, so no need to test for symbolp, etc.
15602         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15603
15604         * extents.c: Reorder code to remove declarations.
15605
15606         * frame.h (store_in_alist): Remove useless declaration.
15607
15608 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15609
15610         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15611         * config.h.in: Add HAVE_XCONVERTCASE.
15612
15613 2000-02-07  Andy Piper  <andy@xemacs.org>
15614
15615         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15616         it breaks many things.
15617
15618 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15619
15620         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15621         actually can start a common comment type.
15622         * src/syntax.h (SYNTAX_END_P): ditto for end.
15623
15624 2000-02-07  Martin Buchholz <martin@xemacs.org>
15625
15626         * XEmacs 21.2.28 is released.
15627
15628 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15629
15630         * event-Xt.c (x_keysym_to_character): New.
15631         (maybe_define_x_key_as_self_inserting_character): New.
15632         (x_has_keysym): New.
15633         Auto-define all keys on the keyboard as self-insert-key.
15634
15635 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15636
15637         * menubar.c (vars_of_menubar): A small code simplification.
15638
15639         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15640
15641         * ExternalShell.c:
15642         * ExternalClient.c:
15643         * EmacsShell-sub.c:
15644         * EmacsManager.c:
15645         * EmacsFrame.c:
15646         Use consistent style for specifying X resources.
15647
15648         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15649         This makes (dontusethis-set-symbol-value-handler) actually usable.
15650
15651         * lrecord.h (lrecord_decription_type):
15652         * alloc.c (pdump_register_sub):
15653         (pdump_dump_data):
15654         (pdump_reloc_one):
15655         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15656         Comply with XEmacs coding style.
15657         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15658         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15659
15660         * keymap.c (Faccessible_keymaps):
15661         Make (accessible-keymaps map "\C-h") do the Right Thing.
15662         Make (accessible-keymaps map []) do the Right Thing.
15663         Make (accessible-keymaps map "") do the Right Thing.
15664         (check_keymap_definition_loop): New function.
15665         (keymap_store_internal): Keep luser from shooting self in foot,
15666           via (define-key ctl-x-4-map "p" global-map).
15667         Remove fullness slot from struct Lisp_Keymap, since hash tables
15668         are now reliable.
15669         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15670
15671 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15672
15673         * redisplay.c (init_redisplay): Fix small memory leak.
15674         * elhash.h:
15675         * elhash.c (pdump_reorganize_hash_table):
15676         Rename from reorganize_hash_table. Change prototype.
15677         Reuse the original memory for hentries.  Save 100k.
15678         * alloc.c (PDUMP_READ): new macro.
15679         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15680         * alloc.c: No need to #ifndef before #undef.
15681
15682         * print.c: Allow debug_print() to print readably by modifying
15683         debug_print_readably.  Use consistent variable names.
15684
15685         * .dbxrc: Try to get things to work even if stopped in a function
15686         without source available by explicitly specifying source files.
15687 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15688
15689         * unexnt.c (_start): Removed bogus code which caused loading heap
15690         from differrent executable file.
15691         Removed bogus assignment to _fmode, which caused inconsistencies.
15692
15693 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15694
15695         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15696         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15697         Do not preliminary `#define signal sigset'.
15698
15699         * systime.h: Do not prototype environ on windows nt and cygwin,
15700         this conflicts with system header.
15701
15702         * syssignal.h: Use correct define for WINDOWSNT
15703
15704         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15705         with system header.
15706
15707         * sysdep.c (near start of file): Fixed commentary and rearranged
15708         ifdefs in readable order.
15709         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15710         (start_of_text):
15711         (end_of_text):
15712         (end_of_data): Do not compile in if using PDUMP.
15713
15714         * symsinit.h: Prototyped vars_of_nt().
15715
15716         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15717         (find_child_console): Use it.
15718         (sys_kill): Use it.
15719
15720         * ntheap.h: Do not extern os_subtype.
15721
15722         * ntheap.c (cache_system_info): Do not cache unneeded:
15723         nt_major_version, nt_minor_version and os_subtype.
15724         (recreate_heap): Do not compile in when PDUMPing.
15725
15726         * nt.c (geteuid and friends): Use the new varibale
15727         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15728         (init_user_info): Removed the above mentioned hackery.
15729         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15730         stat has been fixed in the C runtime.
15731         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15732
15733         * file-coding.c (struct file_coding_dump): Do not define
15734         ucs_to_mule_table in the struct if not MULE.
15735         (struct struct lrecord_description fcd_description_1): Do not dump
15736         the above.
15737
15738         * emacs.c (main_1): Call vars_of_nt().
15739         (right before Fdump_emacs_data): Don't need lastfile if using both
15740         portabe dumper and system malloc.
15741
15742         * alloc.c (Fmemory_limit): Conditionalized out.
15743         (pdump): Use OPEN_BINARY for the portable dump file.
15744         (pdump_load): Ditto.
15745
15746 2000-02-02  Mike Alexander  <mta@arbortext.com>
15747
15748         * nt.c (convert_time): Set tm_isdst before calling mktime and
15749         avoid calling it at all if the compiler supports 64 bit integers.
15750         Also initialize utc_base_ft before using it.
15751
15752 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15753
15754         * frame.c (change_frame_size_1): Take f->internal_border_width
15755         into consideration when calculating the width of the frame.
15756
15757 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15758
15759         * window.c (frame_min_height):
15760         (frame_size_valid_p):
15761         (frame_pixsize_valid_p): Added.
15762         (check_frame_size): Generalized.
15763
15764         * window.h: Prototyped the above.
15765
15766         * lisp.h:
15767         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15768         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15769         Deleted Vwin32_* and Vbinary_process_* unused variables.
15770
15771         * device-msw.c (msprinter_init_device): Do not get printer font
15772         list; Added DEVMODE functions.
15773
15774         * frame-msw.c: Added lots of printer code.
15775
15776         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15777         general.c.
15778
15779         * console-msw.h: Added more msprinter device private slots.
15780
15781 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15782
15783         * event-msw.c (key_needs_default_processing_p): Added.
15784         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15785
15786 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15787
15788         * glyphs.c (image_instance_layout): Mark image instance as clean
15789         after layout.
15790         (glyph_dirty_p): Removed redundant function.
15791         (invalidate_glyph_geometry_maybe): Added.
15792         (update_glyph_cachel_data): Call it.
15793
15794         * glyphs.h: Prototyped it.
15795
15796         * redisplay.c (add_glyph_rune): Call it.
15797         (redisplay_window): Reset glyphs cachels when frame faces have
15798         changed, thus forcing recomputation of built-in border glyphs.
15799
15800 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15801
15802         * Makefile.in.in: Make portable dumper and purify play well together.
15803         Add imperfect, but better than nothing, support for pdump.
15804         Remove xemacs.dmp when temacs is re-generated.
15805         Don't ignore errors when dumping xemacs.
15806
15807         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15808
15809 2000-01-28  Andy Piper  <andy@xemacs.org>
15810
15811         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15812         (setup_normal_frame): ditto.
15813         (setup_frame_without_minibuffer): ditto.
15814         (setup_minibuffer_frame): ditto.
15815         (delete_frame_internal): ditto.
15816         (Fmake_frame_invisible): ditto.
15817         (Ficonify_frame): ditto.
15818
15819         * window.h: change Fset_window_buffer signature.
15820
15821         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15822         (Fset_window_buffer): allow recording of buffer if the window is
15823         the selected window.
15824         (window_loop): Use new Fset_window signature.
15825
15826 2000-01-23  Daniel Pittman  <daniel@danann.net>
15827
15828         * config.h.in: Added template for `HAVE_ATHENA_3D'
15829
15830 2000-01-29  Andy Piper  <andy@xemacs.org>
15831
15832         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15833
15834         * gutter.c (output_gutter): Don't output if the window isn't live.
15835
15836 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15837
15838         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15839         of 01/12/00: Moved SetFocus back here where it belongs.
15840
15841 2000-01-23  Andy Piper  <andy@xemacs.org>
15842
15843         * s/cygwin32.h: declare printer things.
15844
15845 2000-01-26  Andy Piper  <andy@xemacs.org>
15846
15847         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15848         Alexander.
15849
15850 2000-01-24  Andy Piper  <andy@xemacs.org>
15851
15852         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15853         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15854
15855         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15856
15857         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15858
15859         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15860
15861         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15862         (mswindows_output_display_block): Avoid local shadows.
15863
15864         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15865         (mswindows_enqueue_mouse_button_event): ditto.
15866         (mswindows_handle_gui_wm_command): remove declaration.
15867
15868         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15869         warnings.
15870
15871         * console-msw.h: Avoid shadows.
15872         (mswindows_get_toolbar_button_text):
15873         (emacs_mswindows_create_stream_pair):
15874         (emacs_mswindows_delete_stream_pair):
15875         (mswindows_handle_toolbar_wm_command): declare.
15876
15877         * device-msw.c (build_syscolor_string): Avoid shadows.
15878
15879 2000-01-23  Andy Piper  <andy@xemacs.org>
15880
15881         * glyphs-widget.c (widget_instantiate): reverse the items for
15882         layouts so that children are in the expected order.
15883
15884 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15885
15886         * ralloc.c: safe_bcopy ==> memmove
15887         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15888         * s/msdos.h: Remove BCOPY macros.
15889         * insdel.c (gap_right): Remove BCOPY conditional code.
15890         * insdel.c (gap_left): Remove BCOPY conditional code.
15891         XEmacs demands a working ANSI C compiler - hence memmove.
15892
15893         * regex.c (regex_compile): Remove accidental use of trigraphs.
15894
15895 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15896
15897         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15898         event timestamp.
15899
15900 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15901
15902         * event-msw.c (mswindows_drain_windows_queue): Added the
15903         parameter.
15904         (mswindows_need_event): Commented the call to
15905         mswindows_drain_windows_queue().
15906         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15907         only.
15908
15909         * console-msw.h: Moved a few function prototypes here from
15910         event-msw.c.
15911
15912         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15913         parameter from unsigned short to unsigned long.
15914         (Fmswindows_shell_execute): Added return value.
15915
15916 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15917
15918         * sysdep.c (init_system_name):
15919           process-unix.c (unix_canonicalized_host_name):
15920         Don't call freeaddrinfo() if getaddrinfo() fails.
15921
15922         * process-unix.c (unix_open_unix_network_stream):
15923         Moved the code to get a port # into address loop.
15924
15925 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15926
15927         * buffer.c (reinit_vars_of_buffer):
15928         The right place to initialize conversion_in_dynarr and
15929         conversion_out_dynarr.
15930
15931         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15932
15933         * process-unix.c (unix_canonicalize_host_name): Muleize.
15934         (unix_open_network_stream): Muleize.
15935
15936         * buffer.h: Fix up prototypes for ralloc.c functions.
15937
15938 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15939         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15940         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15941                 instead of gethostbyname()
15942         * process-unix.c: In unix_canonicalize_host_name() and
15943                 unix_open_network_stream(), add code to use getaddrinfo()
15944                 instead of gethostbyname().
15945
15946 2000-01-27  Daniel Pittman <daniel@danann.net>
15947
15948         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15949         libs when built with flat Athena.
15950
15951 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15952
15953         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15954         Use coding standards for function prototypes.
15955
15956 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15957
15958         * dialog-msw.c (push_lisp_string_as_unicode):
15959         * doc.c (unparesseuxify_doc_string):
15960         * dired.c (Fuser_name_completion_1):
15961         * dired.c (Fuser_name_all_completions):
15962         * dired.c (free_user_cache):
15963         * dired.c (user_name_completion):
15964         * console-x.c (get_display_arg_connection):
15965         * minibuf.c (clear_echo_area_internal):
15966         * minibuf.c (echo_area_append):
15967         * eldap.c (Fldap_open):
15968         * eldap.c (Fldap_search_internal):
15969         * frame-x.c (x_set_frame_text_value):
15970         * frame-x.c (x_set_frame_properties):
15971         * frame-x.c (x_create_widgets):
15972         * redisplay-tty.c (term_get_fkeys_1):
15973         * objects-x.c (x_parse_nearest_color):
15974         * objects-x.c (x_valid_color_name_p):
15975         * objects-x.c (x_initialize_font_instance):
15976         * objects-x.c (x_list_fonts):
15977         * objects-x.c (x_find_charset_font):
15978         * tooltalk.c (Fadd_tooltalk_message_arg):
15979         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15980         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15981         * process-unix.c (unix_create_process):
15982         * ntproc.c (sys_spawnve):
15983         * sound.c (Fplay_sound_file):
15984         * sound.c (Fplay_sound):
15985         * buffer.c (init_initial_directory):
15986         * buffer.c (init_buffer):
15987         * editfns.c (init_editfns):
15988         * editfns.c (Ftemp_directory):
15989         * editfns.c (Fuser_full_name):
15990         * editfns.c (uncache_home_directory):
15991         * editfns.c (get_home_directory):
15992         * editfns.c (Fuser_home_directory):
15993         * editfns.c (Fformat_time_string):
15994         * editfns.c (Fcurrent_time_string):
15995         * gui-x.c (button_item_to_widget_value):
15996         * database.c (Fopen_database):
15997         * event-Xt.c (x_to_emacs_keysym):
15998         * event-Xt.c (x_event_to_emacs_event):
15999         * event-Xt.c (describe_event_window):
16000         * event-msw.c (mswindows_wnd_proc):
16001         * glyphs-eimage.c (jpeg_instantiate):
16002         * glyphs-eimage.c (gif_instantiate):
16003         * glyphs-eimage.c (png_instantiate):
16004         * glyphs-eimage.c (tiff_instantiate):
16005         * glyphs-x.c (xbm_instantiate_1):
16006         * glyphs-x.c (x_xbm_instantiate):
16007         * glyphs-x.c (x_xface_instantiate):
16008         * glyphs-x.c (autodetect_instantiate):
16009         * glyphs-x.c (cursor_font_instantiate):
16010         * glyphs-x.c (x_widget_instantiate):
16011         * glyphs-x.c (x_widget_set_property):
16012         * glyphs-x.c (x_widget_property):
16013         * glyphs-x.c (BUILD_GLYPH_INST):
16014         * print.c (write_string_to_stdio_stream):
16015         * print.c (output_string):
16016         * print.c (Falternate_debugging_output):
16017         * print.c (Fexternal_debugging_output):
16018         * glyphs-msw.c (extract_xpm_color_names):
16019         * glyphs-msw.c (mswindows_xpm_instantiate):
16020         * glyphs-msw.c (bmp_instantiate):
16021         * glyphs-msw.c (resource_name_to_resource):
16022         * glyphs-msw.c (mswindows_resource_instantiate):
16023         * glyphs-msw.c (xbm_instantiate_1):
16024         * glyphs-msw.c (mswindows_xbm_instantiate):
16025         * glyphs-msw.c (mswindows_xface_instantiate):
16026         * glyphs-msw.c (mswindows_widget_instantiate):
16027         * glyphs-msw.c (add_tree_item):
16028         * glyphs-msw.c (add_tab_item):
16029         * glyphs-msw.c (mswindows_combo_box_instantiate):
16030         * glyphs-msw.c (mswindows_widget_property):
16031         * glyphs-msw.c (mswindows_combo_box_property):
16032         * glyphs-msw.c (mswindows_widget_set_property):
16033         * console.c (stuff_buffered_input):
16034         * objects-msw.c (mswindows_initialize_color_instance):
16035         * objects-msw.c (mswindows_valid_color_name_p):
16036         * objects-msw.c (mswindows_list_fonts):
16037         * objects-msw.c (mswindows_font_instance_truename):
16038         * bytecode.c (optimize_compiled_function):
16039         * select-x.c (symbol_to_x_atom):
16040         * select-x.c (x_atom_to_symbol):
16041         * select-x.c (hack_motif_clipboard_selection):
16042         * select-x.c (selection_data_to_lisp_data):
16043         * select-x.c (lisp_data_to_selection_data):
16044         * select-x.c (Fx_get_cutbuffer_internal):
16045         * select-x.c (Fx_store_cutbuffer_internal):
16046         * buffer.h (TO_EXTERNAL_FORMAT): New function.
16047         * buffer.h (TO_INTERNAL_FORMAT): New function.
16048         * emacs.c (make_arg_list_1):
16049         * emacs.c (make_argc_argv):
16050         * emacs.c (main_1):
16051         * emacs.c (Fdump_emacs):
16052         * emacs.c (split_string_by_emchar_1):
16053         * file-coding.h:
16054         * lisp.h:
16055         * lstream.h:
16056         * symsinit.h:
16057         * device-x.c (x_init_device):
16058         * device-x.c (Fx_valid_keysym_name_p):
16059         * device-x.c (Fx_get_font_path):
16060         * device-x.c (Fx_set_font_path):
16061         * glyphs.c (bitmap_to_lisp_data):
16062         * glyphs.c (pixmap_to_lisp_data):
16063         * alloc.c (make_ext_string): Use coding system arguments.  Update
16064         all callers.
16065         * alloc.c (build_string):
16066         * callproc.c (child_setup):
16067         * callproc.c (init_callproc):
16068         * fileio.c (lisp_strerror):
16069         * fileio.c (directory_file_name):
16070         * fileio.c (Fexpand_file_name):
16071         * fileio.c (Ffile_truename):
16072         * fileio.c (Fsysnetunam):
16073         * fileio.c (Fdo_auto_save):
16074         * sysdep.c (sys_readdir):
16075         * tests.c: New file.  Allow adding C tests.
16076         Replace GET_* macros with a more comprehensible and flexible
16077         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
16078         Modify all calls.
16079         Any coding system can be used to do format conversion.
16080         Eliminate enum external_data_format.
16081         Eliminate convert_to_external_format.
16082         Eliminate convert_to_internal_format.
16083         Make sure file-name, keyboard, terminal, and ctext are always
16084         defined as coding systems or aliases.  Make
16085         file-name-coding-system, terminal-coding-system, and
16086         keyboard-coding-system magical variables that are equivalent to
16087         defining the corresponding coding system aliases.
16088
16089         * file-coding.c (Fcoding_system_canonical_name_p): New function.
16090         * file-coding.c (Fcoding_system_alias_p): New function.
16091         * file-coding.c (Fcoding_system_aliasee): New function.
16092         * file-coding.c (append_suffix_to_symbol): New function.
16093         * file-coding.c (dangling_coding_system_alias_p): New function.
16094         * file-coding.c (Ffind_coding_system):
16095         * file-coding.c (Fcopy_coding_system):
16096         * file-coding.c (encode_coding_no_conversion):
16097         * file-coding.c (syms_of_file_coding):
16098         * file-coding.c (vars_of_file_coding):
16099         Rewrite coding system alias code.
16100         Allow nested aliases, like symbolic links.
16101         Allow redefinition of coding system aliases.
16102         Prevent existence of dangling coding system aliases.
16103
16104         * dired.c (Fuser_name_completion_1):
16105         * dired.c (Fuser_name_all_completions):
16106         A crash would happen if user did QUIT in the middle of building
16107         user_name_cache.  Remove redundant code in mainline and unwind_protect.
16108
16109         * lisp.h:
16110         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
16111
16112         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
16113         an unsigned char *.  Update all callers.
16114
16115 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16116
16117         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
16118
16119 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16120
16121         * elhash.c (hentry_description): Use more portable definition.
16122         (resize_hash_table): Initialize new hentries using
16123         xnew_array_and_zero, thereby simplifying the code.
16124
16125         * mule-charset.c (make_charset): Make sure entire object is
16126         initialized, to avoid Purify warnings.
16127
16128         * alloc.c (resize_string): Fix unlikely crash with big strings.
16129
16130 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16131
16132         * realpath.c (xrealpath):
16133         Don't call getwd().
16134
16135 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16136
16137         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
16138
16139 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
16140
16141         * unexelfsgi.c (unexec): Change the way we decide which segment
16142         should be extended.
16143
16144         Assumption that .bss section should be outside the PT_LOADable
16145         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
16146         it's present) is inside the 'data' segment. This would fail the
16147         test which was used to find a segment to grow and cover new
16148         heap. Instead of this assumption, I created another one - on IRIX
16149         the segment to grow should start below .bss and it's address
16150         should extent above the end of .bss. Once this segment is
16151         identified, it's grown to accommodate the new heap and new
16152         zero-length .bss section is added at the end of .data2.
16153
16154 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16155
16156         * eval.c (Feval): Wrong number of arguments should use original
16157         function, not the indirect_function version of it.
16158
16159 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
16160
16161         * glyphs-x.c (x_button_instantiate): Don't add image if
16162         it is not a pixmap.
16163         (x_locate_pixmap_file): Call Fexpand_file_name when file name
16164         is relative.
16165
16166 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
16167
16168         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
16169         declaration.
16170         (DEFVAR_INT_MAGIC): Ditto.
16171         (DEFVAR_BOOL_MAGIC): Ditto.
16172         * glyphs.h: Reindent backslash.
16173
16174 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16175
16176         * glyphs-widget.c (layout_query_geometry):
16177         (layout_layout): Use correct types for gheight, gwidth.
16178
16179 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16180
16181         * EmacsManager.c (QueryGeometry): Purified.
16182
16183 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16184
16185         * alloc.c (make_float): Make sure entire object is initialized, to
16186         avoid Purify warnings.
16187         (pdump_register_sub): Remove useless assignment.
16188         (pdump): Use xmalloc, not malloc.
16189         (pdump_load): Use xmalloc, not malloc.
16190
16191 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16192
16193         * callproc.c:
16194         * dired-msw.c:
16195         * fileio.c:
16196         * process-nt.c:
16197         * redisplay-msw.c:
16198         * sysdep.c: Removed redundant #include <windows.h>
16199
16200 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16201
16202         * frame.c (delete_frame_internal): Do not delete device when its
16203         implementation so declares.
16204         (delete_frame_internal): Set device selected frame to nil when
16205         last frame goes away.
16206
16207         * device-msw.c (msprinter_device_system_metrics): Implemented.
16208         (mswindows_device_system_metrics): Added 'device-dpi property.
16209
16210         * device.c: (Fdevice_printer_p): Added.
16211         Added 'offset-workspace device metric.
16212
16213         * console.h (device_metrics): Declared DM_offset_workspace.
16214
16215 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16216
16217         * fileio.c (Ffile_truename): Remove pointless and confusing
16218         initialization of elen.
16219
16220         * glyphs-widget.c: Compiler warning fixes.
16221
16222 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
16223
16224         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
16225         instead of a Lisp_Object as argument to make it consistent with
16226         the other LIVE_P macros.
16227         (CHECK_LIVE_PROCESS): New macro.
16228
16229         * process.c: Declare Qprocess_live_p.
16230         (Fprocess_live_p): New function.
16231         (create_process): Use PROCESS_LIVE_P.
16232         (read_process_output): Ditto.
16233         (set_process_filter): Ditto.
16234         (Fdelete_process): Ditto.
16235         (kill_buffer_processes): Ditto
16236         (process_send_signal): Use CHECK_LIVE_PROCESS.
16237         (Fprocess_input_coding_system): Check whether process is still
16238         alive (fix PR#1061).
16239         (Fprocess_output_coding_system): Ditto.
16240         (Fprocess_coding_system): Ditto.
16241         (Fset_process_input_coding_system): Ditto.
16242         (Fset_process_output_coding_system): Ditto.
16243
16244 2000-01-23  Andy Piper  <andy@xemacs.org>
16245
16246         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
16247         layout and widget.
16248
16249         * glyphs.c (mark_image_instance): take into account changed
16250         image_instance format.
16251         (image_instance_equal): ditto.
16252         (image_instance_hash): ditto.
16253
16254         * glyphs-widget.c (widget_instantiate): Incorporate layout
16255         instantiation here. Delay layout of the layout until later.
16256         (layout_instantiate): deleted.
16257         (layout_query_geometry): new function. get the geometry of a
16258         layout.
16259         (layout_layout): layout a layout dynamically.
16260         (image_instantiator_widget): New function - splitting up
16261         image_instantiator_format_create_glyphs_widget for netwinder
16262         compilation.
16263         (image_instantiator_buttons):
16264         (image_instantiator_edit_fields):
16265         (image_instantiator_combo_box):
16266         (image_instantiator_scrollbar):
16267         (image_instantiator_progress_guage):
16268         (image_instantiator_tree_view):
16269         (image_instantiator_tab_control):
16270         (image_instantiator_labels):
16271         (image_instantiator_layout): ditto.
16272         (image_instantiator_format_create_glyphs_widget): Call preceding
16273         functions.
16274
16275 2000-01-22  Martin Buchholz  <martin@xemacs.org>
16276
16277         * process.c (Fset_process_coding_system):
16278         * device-x.c (Fx_keysym_hash_table):
16279         Docstring fixes.
16280
16281         * lstream.c (Lstream_write): Return documented value, not 0.
16282
16283         * fileio.c (directory_file_name):
16284         (Fsubstitute_in_file_name):
16285         (Fsubstitute_insert_file_contents_internal):
16286         (Fwrite_region_internal):
16287         * emacs.c:
16288         * sysdep.c:
16289         * getloadavg.c:
16290         * systty.h:
16291         Remove vestigial APOLLO-conditional code.
16292
16293 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16294
16295         * getpagesize.h: Add guard macros.
16296         * libsst.h: Add guard macros.
16297         * libst.h: Add guard macros.
16298         * line-number.h: Add guard macros.
16299         * ndir.h: Add guard macros.
16300         * sysfloat.h: Add guard macros.
16301         * sysfile.h: Add guard macros.
16302         * sysproc.h: Add guard macros.
16303         * syswait.h: Add guard macros.
16304         * xintrinsic.h: Add guard macros.
16305         * xintrinsicp.h: Add guard macros.
16306         * xmmanager.h: Add guard macros.
16307         * xmmanagerp.h: Add guard macros.
16308         * xmprimitive.h: Add guard macros.
16309         * xmu.h: Add guard macros.
16310         * gpmevent.h: Add copyright statement. Add guard macros.
16311         * miscplay.h: Add guard macros.
16312         * *.h: Use consistent C-standards-approved guard macro names.
16313
16314         * opaque.c (make_opaque): Switch parameter order.
16315         * opaque.h (make_opaque): Switch parameter order.
16316         Update all callers.
16317         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
16318
16319         * config.h.in (type_checking_assert): Added.
16320         (bufpos_checking_assert): Added.
16321
16322 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16323
16324         * alloc.c: Harmless pdump changes.
16325         - Use countof().
16326         - spell alignment correctly.
16327         * sysdep.c: Use countof()
16328
16329 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16330
16331         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
16332         initially_selected_for_input() console method, default to 0.
16333         (semi_canonicalize_console_connection): Try to delegate to
16334         canonicalize_console_connection if no such console method.
16335         (canonicalize_console_connection): Vice versa.
16336         (print_console): Do not print nil connection.
16337
16338         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
16339         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
16340         (XDEVIMPF_FRAMELESS_OK): Added.
16341         (CONSOLE_INHERITS_METHOD): Added.
16342
16343         * console-msw.c (mswindows_canonicalize_console_connection):
16344         Added.
16345         (mswindows_canonicalize_device_connection): Added.
16346
16347         * console-msw.h (struct msprinter_device): Added this struct and
16348         accessor macros.
16349         (mswindows_device): Made fontlist a lisp object.
16350
16351         * device.c (semi_canonicalize_device_connection):  Try to delegate
16352         to canonicalize_device_connection if no such console method.
16353         (canonicalize_device_connection): Vice versa.
16354         (print_device): Do not print nil connection.
16355
16356         * device-msw.c (mswindows_init_device): Call InitCommonControls
16357         when have widgets.
16358         (mswindows_delete_device): Removed fontlist deallocation.
16359         (mswindows_mark_device): Added.
16360
16361         * events.c (event_equal): Added abort() at unreached code.
16362         (event_hash): Ditto.
16363
16364         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
16365         fallback tags of Windows devices.
16366
16367         * general.c (syms_of_general): Initialized Qmsprinter.
16368
16369         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
16370         of fallback tags of Windows devices.
16371
16372         * lisp.h: Declared Qmsprinter.
16373
16374         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
16375         of strings.
16376         (mswindows_list_fonts): Ditto.
16377         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
16378         that it can be used by both mswindows and msprinter devices.
16379         (initialize_font_instance): Added.
16380         (mswindows_initialize_font_instance): Use it.
16381         (msprinter_initialize_font_instance): Added.
16382
16383         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
16384         and implementation flags check.
16385         (redisplay_without_hooks): Changed the call to the above.
16386         (Fredraw_device): Ditto.
16387         (Fredisplay_device): Ditto.
16388
16389         * redisplay-msw.c (get_frame_dc): Implemented.
16390         (get_frame_compdc): Implemented.
16391         (many functions): Use the two functions above to get device
16392         contexts, ether for a window or a printer.
16393
16394 2000-01-21  Olivier Galibert  <galibert@pobox.com>
16395
16396         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
16397         initialization here.
16398         (init_symbols_once_early): Call it.
16399         * emacs.c (main_1): Call it.
16400         * symsinit.h: Declare it.
16401
16402 2000-01-19  Olivier Galibert  <galibert@pobox.com>
16403
16404         * alloc.c: Use a lrecord_header * in the backtrace instead of a
16405         Lisp_Object.
16406         (pdump_backtrace): Ditto.
16407         (pdump_register_object): Ditto.  Cleanup use of the pointers.
16408         (pdump_get_entry): Abort if trying to register a null pointer.
16409         (pdump_dump_data): Cleanup types when relocating.
16410         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
16411         (pdump_dump_rtables): Remove bad casts.
16412         (pdump_load): Cleanup relocation w.r.t union type.  Use a
16413         Lisp_Object instead of a EMACS_INT for the hashtable
16414         reorganization.
16415
16416 2000-01-20  Martin Buchholz  <martin@xemacs.org>
16417
16418         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
16419
16420         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
16421
16422         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
16423
16424         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
16425
16426 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16427
16428         * faces.h (FACE_STRIKETHRU_P): Added.
16429
16430         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
16431         of font variants.
16432
16433         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
16434         (mswindows_set_dc_font): New function, aware of font variants,
16435         separated from mswindows_update_dc.
16436
16437         * objects-msw.h (struct mswindows_font_instance_data): Added
16438         definition.
16439
16440         * objects-msw.c (mswindows_finalize_font_instance): Delete all
16441         cached fonts and the data structure.
16442         (mswindows_initialize_font_instance): Added creation of font data
16443         structure.
16444         (mswindows_print_font_instance): Print at least something.
16445         (mswindows_create_font_variant): Implemented.
16446         (mswindows_get_hfont): Implemented.
16447
16448 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
16449
16450         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
16451         prototyping problem with msvc.
16452
16453         * emacs.c (main_1): added syms_of_gui_mswindows() call
16454
16455         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
16456         syms_of_gui_mswindows() function
16457
16458         * symsinit.h: added the prototype for syms_of_gui_mswindows()
16459
16460 2000-01-18  Martin Buchholz <martin@xemacs.org>
16461
16462         * XEmacs 21.2.27 is released.
16463
16464 2000-01-18  Martin Buchholz  <martin@xemacs.org>
16465
16466         * glyphs-eimage.c (struct tiff_error_struct):
16467         (tiff_error_func):
16468         (tiff_warning_func):
16469         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16470
16471         * unexmips.c:
16472         * unexhp9k3.c:
16473         * unexfreebsd.c:
16474         * unexec.c: Remove vestigial Lucid C code.
16475         * unexalpha.c:
16476         * unexaix.c:
16477         * termcap.c:
16478         * libsst.c: Ansify.
16479         Remove declarations of errno and strerror().
16480
16481         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16482
16483         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16484
16485 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16486
16487         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16488         Optimize.
16489
16490 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16491
16492         * md5.c:
16493         * file-coding.c:
16494         * file-coding.h:
16495         Change enum eol_type to eol_type_t.
16496
16497 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16498
16499         * gui.c (get_gui_callback): Check cons before accessing car.
16500
16501 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16502
16503         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16504         (XSETSPECIFIER_TYPE): Ditto.
16505
16506 2000-01-17  Didier Verna  <didier@xemacs.org>
16507
16508         * redisplay.c (generate_fstring_runes): compute string size in
16509         characters, not bytes.
16510
16511 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16512
16513         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16514
16515 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16516
16517         * print.c (print_error_message): Call print_prepare().
16518
16519 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16520
16521         * .dbxrc: Renamed from dbxrc.
16522
16523         * events.c (event_to_character):
16524         Use `assert (foo)' instead of `if (!foo) abort()'
16525
16526         * .gdbinit (xtype): Add documentation.
16527         * .gdbinit (check-temacs): New function.
16528         * .gdbinit (check-xemacs): New function.
16529         * dbxrc (check-xemacs): New function.
16530         * dbxrc (check-xemacs): New function.
16531
16532 2000-01-14  Andy Piper  <andy@xemacs.org>
16533
16534         * glyphs-widget.c (widget_query_geometry): Make sure that we
16535         calculate default dimensions correctly.
16536
16537 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16538
16539         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16540
16541         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16542         pdump_wire'd variable.
16543
16544         * emacs.c: (main_1): Conditionalized calls to
16545         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16546
16547 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16548
16549         * window.c (Fset_window_configuration):
16550         * sysdep.c (_start):
16551         * input-method-motif.c (res):
16552         * event-Xt.c (Xt_process_to_emacs_event):
16553         Simple compiler warning fixes.
16554
16555         * bytecode.c (funcall_compiled_function): Use the original
16556         function symbol on the backtrace list in preference to the
16557         compiled_function object in error messages.
16558
16559 2000-01-13  Andy Piper  <andy@xemacs.org>
16560
16561         * glyphs-x.c (update_widget_face): Make sure we update the widget
16562         background as well as foreground.
16563
16564 2000-01-13  Andy Piper  <andy@xemacs.org>
16565
16566         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16567         fields to subwindow.
16568         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16569         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16570         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16571         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16572
16573         * glyphs-widget.c (check_valid_tab_orientation): new function.
16574         (initialize_widget_image_instance): zero orientation and
16575         justification.
16576         (widget_instantiate): pick up orientation.
16577         (tab_control_query_geometry): return appropriate values for
16578         vertical tabs.
16579
16580         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16581         appropriate creation flags for left, right and bottom tabs.
16582
16583         * s/cygwin32.h: add tab definitions.
16584
16585 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16586
16587         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16588         frame upon hiding a subwindow.
16589         (mswindows_button_instantiate): Changed the push button style to
16590         BS_PUSHBUTTON.
16591         (mswindows_button_instantiate): Removed button BS_NOTIFY
16592         style.
16593         (mswindows_button_instantiate): Removed redundant check for
16594         a disabled gui item.
16595         (mswindows_button_instantiate): Made use of WS_TABSTOP
16596         consistent: "operable" controls (edit, button, tree, scroll) have
16597         this style, "display-only" ones (static, progress gauge) do
16598         not. This style is currently ignored by XEmacs though. Also,
16599         removed the WS_EX_CONTROLPARENT style - it is not for children,
16600         it is for their parents!
16601         (mswindows_edit_field_instantiate): Ditto.
16602         (mswindows_progress_gauge_instantiate): Ditto.
16603         (mswindows_tree_view_instantiate): Ditto.
16604         (mswindows_tab_control_instantiate): Ditto.
16605         (mswindows_scrollbar_instantiate): Ditto.
16606         (mswindows_combo_box_instantiate): Ditto.
16607         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16608         style to the "clip" window.
16609         (mswindows_button_instantiate): Removed compilation warning by
16610         equally typing terms of the ?: operator.
16611
16612 2000-01-12  Didier Verna  <didier@xemacs.org>
16613
16614         * redisplay.c (generate_fstring_runes): new parameter holding the
16615         last modeline-format extent.
16616         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16617         extent, fill the glyph block with it.
16618         (generate_fstring_runes): handle these parameters.
16619         (generate_formatted_string_db): ditto.
16620
16621         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16622         glyphs'extents in the modeline.
16623
16624 1999-01-11  Mike Woolley  <mike@bulsara.com>
16625
16626         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16627         256Mb, as a workaround for the non-starting problem many people
16628         have experienced.
16629
16630 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16631
16632         * console-tty.c (Fset_console_tty_output_coding_system):
16633         Force redrawing tty frame.
16634
16635 2000-01-10  Didier Verna  <didier@xemacs.org>
16636
16637         * redisplay.c (generate_fstring_runes): fix size computation bug.
16638
16639 2000-01-09  William M. Perry <wmperry@aventail.com>
16640
16641         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16642
16643 2000-01-09  Andy Piper  <andy@xemacs.org>
16644
16645         * glyphs-msw.c: index -> i to avoid shadows.
16646         (xbm_create_bitmap_from_data): make static.
16647         (check_valid_string_or_int): deleted.
16648         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16649
16650         * glyphs-x.c (x_update_subwindow): remove unused args.
16651
16652         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16653         back pointer - this is done in allocate_image_instance.
16654         (query_string_font): return Qnil to make the compiler happy.
16655         (unmap_subwindow): set to ~0 to make the compiler happy.
16656         (glyph_query_geometry): comment out until used.
16657         (glyph_layout): ditto.
16658
16659 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16660
16661         * insdel.c (signal_after_change): Remove extraneous unbind_to().