update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (Fput_char_attribute): Convert char-specs in value of
4         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
5         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
6         for `{<-|->}Oracle-Bones[^*]*'.
7
8 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
9
10         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
11         (Kizu).
12
13 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
14
15         * text-coding.c (Qccs_priority_list): New variable in XEmacs
16         CHISE.
17         (Fmake_coding_system): Support new property `ccs-priority-list' in
18         XEmacs CHISE.
19         (Fcoding_system_property): Likewise.
20         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
21         Vdefault_coded_charset_priority_list in XEmacs CHISE.
22         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
23         XEmacs CHISE.
24         (complex_vars_of_file_coding): Define new coding-system-property
25         `ccs-priority-list' in XEmacs CHISE.
26
27         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
28
29 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
30
31         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
32         changed to normal function.
33         (encode_char_2): Likewise.
34
35         * mule-charset.c (decoding_table_put_char): Copied from
36         char-ucs.h; changed to normal function.
37         (encode_char_2): Likewise.
38
39 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
40
41         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
42         New extern.
43         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
44         (encode_char_2_search_children): New inline function.
45         (encode_char_2): Refer
46         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
47         and use `encode_char_2_search_children'.
48
49 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
50
51         * mule-charset.c
52         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
53         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
54         (vars_of_mule_charset): Add new variable
55         `display-coded-charset-priority-use-inheritance' and
56         `display-coded-charset-priority-use-hierarchy-order'.
57
58 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
59
60         * char-ucs.h (Q_subsumptive): New extern.
61         (Q_denotational): Likewise.
62         (encode_char_2): Search children specified by `->subsumptive' and
63         `->denotational'.
64
65 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
66
67         * mule-charset.c (complex_vars_of_mule_charset): Modify the
68         X-registry of `ucs-bmp'.
69
70 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
71
72         * chartab.c (char-variants): Refer `->subsumptive',
73         `->denotational' and `->identical' as same as `->ucs-unified'.
74
75 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
76
77         * chartab.c (Fput_char_attribute): Convert char-specs in value of
78         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
79         links.
80
81 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
82
83         * text-coding.c: Add EXFUN for `Fregexp_quote'.
84         (decode_add_er_char): Fix problem about infinite loop when a CCS
85         specified in `coded-charset-entity-reference-alist' is not
86         existed.
87
88 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
89
90         * mule-charset.c (syms_of_mule_charset): Rename
91         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
92
93 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
94
95         * fns.c (simplify_char_spec): Don't allocate new character-object
96         if specified char_spec does not have any CCS-features.
97
98         * chartab.h: Add EXFUN for Fdefine_char.
99
100         * chartab.c: Delete EXFUN for Fdefine_char.
101
102 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
103
104         * fns.c (simplify_char_spec): Use Fdefine_char instead of
105         Ffind_char for char-spec.
106
107 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
108
109         * lisp-disunion.h (XCHARVAL): Fix condition about
110         SIZEOF_EMACS_INT.
111
112 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
113
114         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
115         <int> for `code'.
116         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
117         point; use <Emchar> instead of <int> for character-id.
118
119 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
120
121         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
122         (make_char): Likewise.
123         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
124         environment.
125         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
126         instead of <int> as the type of return value; use <Lisp_Object>
127         instead of <Emchar> as the type of argument.
128         (XCHARVAL[macro version]): Cast the result into <Emchar>.
129
130         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
131         syntaxcode> instead of <int>.
132
133 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
134
135         * chartab.c (put_char_composition): Use DECODE_CHAR to get
136         character corresponding with UCS code point.
137         (Fput_char_attribute): Likewise.
138
139         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
140         character in the UCS decoding-table if the char-id is not equal to
141         the UCS code point.
142
143 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
144
145         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
146         for aliases; write `description'; write
147         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
148         not 0.
149
150 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
151
152         * chartab.c (Fsave_char_attribute_table): Don't use
153         `save_charset_properties'.
154
155         * mule-charset.c (Fsave_charset_properties): Renamed from
156         `save_charset_properties' and changed to Lisp function again;
157         write property `type' as `CCS'; write properties `final-byte' and
158         `mother' if they exists.
159         (syms_of_mule_charset): Revive builtin function
160         `save-charset-properties' when HAVE_LIBCHISE is defined.
161
162 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
163
164         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
165         instead of Vexec_directory.
166         (char_attribute_system_db_file): Likewise.
167
168 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
169
170         * chartab.c (Fsave_char_attribute_table): Use
171         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
172         defined.
173
174         * mule-charset.c (save_charset_properties): Renamed from
175         `Fsave_charset_properties'; changed to non-Lisp function.
176         (syms_of_mule_charset): Abolish builtin function
177         `save-charset-properties'.
178
179 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
180
181         * mule-charset.c (Fsave_charset_properties): New function when
182         HAVE_LIBCHISE is defined.
183         (syms_of_mule_charset): Add new builtin function
184         `save-charset-properties' when HAVE_LIBCHISE is defined.
185
186 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
187
188         * chartab.c (Fput_char_attribute): Convert char-specs in value of
189         `{<-|->}ancient[^*]*' to characters and put reverse links.
190         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
191         for `{<-|->}ancient[^*]*'.
192
193 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
194
195         * chartab.c (Fput_char_attribute): Convert char-specs in value of
196         `{<-|->}original[^*]*' to characters and put reverse links.
197         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
198         for `{<-|->}original[^*]*'.
199
200 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
201
202         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
203
204 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
205
206         * mule-charset.c (Qsystem_char_id): New variable.
207
208         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
209         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
210
211 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
212
213         * chartab.c (Fput_char_attribute): When processing a reference of
214         a character, put into the end of the reversed reference of each
215         target character.
216
217 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
218
219         * chartab.c (Q_same): Deleted.
220         (Q_same_of): Deleted.
221         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
222         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
223         for `{<-|->}same'.
224         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
225
226 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
227
228         * chartab.c (Q_vulgar): Deleted.
229         (Q_vulgar_of): Deleted.
230         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
231         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
232         for `{<-|->}vulgar'.
233         (syms_of_chartab): Don't define `{<-|->}vulgar'.
234
235 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
236
237         * chartab.c (Fput_char_attribute): Convert char-specs in value of
238         `{<-|->}wrong[^*]*' to characters and put reverse links.
239         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
240         for `{<-|->}wrong[^*]*'.
241
242 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
243
244         * chartab.c (Q_vulgar): New variable.
245         (Q_vulgar_of): New variable.
246         (Fput_char_attribute): Convert char-specs in value of
247         `{->|<-}vulgar' to characters and put reverse links.
248         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
249         for `{->|<-}vulgar'.
250         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
251
252 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
253
254         * text-coding.c (decode_add_er_char): Must to quote prefix string
255         as regexp.
256
257 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
258
259         * mule-charset.c (put_char_ccs_code_point): Store characters of
260         =ucs whose code_points >= 0xF0000.
261
262 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
263
264         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
265         CHISE.
266         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
267         CHISE.
268         (complex_vars_of_mule_charset): Add new coded-charset
269         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
270         builtin characters over 0xEFFFF.
271
272         * chartab.c (syms_of_chartab): Don't define symbol
273         `system-char-id' in every case.
274
275         * char-ucs.h (Qsystem_char_id): New extern variable.
276         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
277
278 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
279
280         * text-coding.c (char_encode_utf8): Try to use entity-references
281         for U-000F0000 ...  U-0010FFFF.
282
283 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
284
285         * text-coding.c (ER_BUF_SIZE): New macro.
286         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
287         `er_buf'.
288         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
289         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
290
291 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
292
293         * chartab.c (find_char_feature_in_family): New function.
294         (Fchar_feature): Use `find_char_feature_in_family' with
295         `->identical', `<-subsumptive' and `<-denotational'.
296
297 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
298
299         * text-coding.c (char_encode_as_entity_reference): Allow prefix
300         within 8 characters; fix infinite loop.
301
302 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
303
304         * chartab.c (Q_same): New variable.
305         (Q_same_of): New variable.
306         (Fput_char_attribute): Convert char-specs in value of
307         `{->|<-}same' to characters and put reverse links.
308         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
309         for `{->|<-}same'.
310         (syms_of_chartab): Add new symbols `{->|<-}same'.
311
312 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
313
314         * chartab.c (Q_component): New variable.
315         (Q_component_of): Likewise.
316         (Fput_char_attribute): Convert char-specs in value of
317         `{->|<-}ideographic-component-forms' to characters and put reverse
318         links.
319         (syms_of_chartab): Add new symbols
320         `{->|<-}ideographic-component-forms'.
321
322 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
323
324         * chartab.c (Q_identical): New variable.
325         (Q_identical_from): New variable.
326         (Fchar_feature): Regard `->identical' as a feature to find
327         ancestors.
328         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
329         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
330         for `{->|<-}identical'.
331         (syms_of_chartab): Add new symbols `{->|<-}identical'.
332
333 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
334
335         * char-ucs.h (encode_char_2): New inline function.
336         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
337
338 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
339
340         * chartab.c (Fput_char_attribute): Convert char-specs to
341         characters in value of `ideographic-structure'.
342         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
343         for `{<-|->}simplified(@...)'.
344         (Fdefine_char): Try to use predefined character's id.
345
346 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
347
348         * fns.c (simplify_char_spec): Try to convert builtin chars to
349         defined chars.
350
351 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
352
353         * chartab.c (Fput_char_attribute): Convert char-specs in value of
354         `<-simplified[^*]*' to characters and put reverse links.
355
356 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
357
358         * chartab.c (Q_subsumptive): Renamed from Q_unified.
359         (Q_subsumptive_from): Renamed from Q_unified_from.
360         (Fchar_feature): Use `Q_subsumptive_from' instead of
361         `Q_unified_from'.
362         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
363         `Q_unified'.
364         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
365         `<-unified' to `<-subsumptive'.
366
367 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
368
369         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
370         inheritance itself; fix typo; stop recursive search if cyclic
371         inheritance is found.
372
373 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
374
375         * chartab.c (Q_denotational): New variable.
376         (Q_denotational_from): New variable.
377         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
378         (put_char_attribute): New function.
379         (Fput_char_attribute): Use `put_char_attribute'; regard
380         `->denotational' and `<-denotational' as same as `->unified' and
381         `<-unified'.
382         (syms_of_chartab): Add new symbols `->denotational' and
383         `<-denotational'.
384
385 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
386
387         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
388         `Fget_char_attribute'.
389         (Fchar_variants): Likewise.
390         (get_char_table): Likewise.
391         (Fchar_feature): New function.
392         (put_char_composition): Use `Fchar_feature' instead of
393         `Fget_char_attribute'.
394         (Fput_char_attribute): Likewise; don't put the target character
395         into its `->unified' value.
396         (syms_of_chartab): Add new builtin function `char-feature'.
397
398 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
399
400         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
401         `Fget_char_attribute'.
402         (char_encode_utf8): Likewise.
403
404         * chartab.h: Add an EXFUN for `Fchar_feature'.
405
406 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
407
408         * chartab.c (Vnext_defined_char_id): New variable.
409         (Fput_char_attribute): Accept characters in `->unified'.
410         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
411         new characters which are not related with builtin char-id ranges.
412         (vars_of_chartab): Add new variable `next-defined-char-id'.
413
414 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
415
416         * chartab.c (Q_unified): New variable.
417         (Q_unified_from): New variable.
418         (Fput_char_attribute): Add code for `->unified'.
419         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
420         XEmacs CHISE.
421
422 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
423
424         * mule-charset.c (decode_ccs_conversion): New function.
425         (decode_defined_char): Use `decode_ccs_conversion'.
426         (decode_builtin_char): Likewise.
427
428 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
429
430         * char-ucs.h: Change some charset-ids of private coded-charsets.
431
432 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
433
434         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
435         (char_encode_as_entity_reference): Likewise.
436         (decode_coding_big5): Modify for `decode_defined_char' and
437         `DECODE_CHAR'.
438         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
439         avoid compiler warning.
440         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
441
442         * mule-charset.c (decode_defined_char): Add new argument
443         `without_inheritance'.
444         (Fdecode_char): Add new optional argument `without_inheritance'.
445         (Fdecode_builtin_char): Modify for `Fdecode_char'.
446
447         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
448         (simplify_char_spec): Likewise.
449
450         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
451         setting.
452
453         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
454         (map_char_table): Likewise.
455         (Fdefine_char): Use `Fdecode_char' without inheritance.
456         (Ffind_char): Modify for `Fdecode_char'.
457
458         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
459
460         * char-ucs.h (decode_defined_char): Add new argument
461         `without_inheritance'.
462         (DECODE_CHAR): Likewise.
463         (MAKE_CHAR): Modify for `DECODE_CHAR'.
464
465 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
466
467         * chartab.c (Vchise_system_db_directory): New variable.
468         (vars_of_chartab): Add new variable `chise-system-db-directory'.
469
470 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
471
472         * chartab.c: EXFUN `Fmount_char_attribute_table'.
473         (print_chartab_range): Don't define when `UTF2000' is defined.
474         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
475         `CHISE_DS_open'.
476
477 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
478
479         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
480         and optional argument `rehash' is specified, call
481         `open_chise_data_source_maybe' before
482         `chise_ds_foreach_char_feature_name' is called.
483
484 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
485
486         * chartab.c (char_attribute_list_reset_map_func): New function
487         when HAVE_LIBCHISE is defined.
488         (Fchar_attribute_list): Add new optional argument `rehash' when
489         HAVE_LIBCHISE is defined.
490         (open_chise_data_source_maybe): Use "chise-db" instead of
491         "char-db".
492         (char_attribute_system_db_file): Likewise.
493         (Fload_char_attribute_table): Use
494         `chise_feature_foreach_char_with_value' instead of
495         `chise_char_feature_value_iterate'.
496
497 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
498
499         * chartab.c (Vchise_db_directory): New variable.
500         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
501
502 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
503
504         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
505         instead of HAVE_CHISE to specify using with libchise.
506
507         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
508
509         * chartab.h: Don't use HAVE_CHISE_CLIENT.
510
511         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
512         defined or HAVE_LIBCHISE_LIBCHISE is defined.
513         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
514         is defined.
515         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
516         HAVE_CHISE to specify using with libchise.
517         (syms_of_chartab): Don't define symbol `system-char-id' when
518         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
519
520 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
521
522         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
523         specify CHISE DB support.
524         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
525         of `char_attribute_system_db_file' to check feature DB file.
526
527         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
528         HAVE_CHISE_CLIENT to specify CHISE DB support.
529
530         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
531         specify CHISE DB support.
532         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
533         not defined.
534         (Freset_char_attribute_table): Use `chise_feature_setup_db'
535         instead of `char_attribute_system_db_file' to check feature DB
536         file.
537
538 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
539
540         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
541         `HAVE_CHISE_CLIENT'.
542
543 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
544
545         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
546         (Fsave_charset_mapping_table): Don't use
547         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
548
549         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
550         (HAVE_LIBCHISE): New macro.
551
552         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
553
554         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
555         (Fsave_char_attribute_table): Don't use
556         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
557
558 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
559
560         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
561         defined.
562         (save_uint16_byte_table): Likewise.
563         (save_byte_table): Likewise.
564         (char_table_get_db): Use `chise_ds_load_char_feature_value'
565         instead of `chise_char_load_feature_value'.
566         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
567
568 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
569
570         * chartab.h (struct Lisp_Char_Table): Delete member
571         `feature_table' if CHISE is defined.
572
573         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
574         (Fcopy_char_table): Likewise.
575         (char_table_open_db_maybe): Likewise.
576         (char_table_close_db_maybe): Likewise.
577         (char_table_get_db): Likewise.
578         (Fmount_char_attribute_table): Likewise.
579         (Fload_char_attribute_table): Likewise.
580
581 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
582
583         * mule-charset.c (load_char_decoding_entry_maybe): Use
584         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
585         `chise_ccs_decode'.
586
587 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
588
589         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
590         instead of `chise_open_data_source'.
591         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
592         `chise_ds_close'.
593
594 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
595
596         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
597         instead of `chise_ds_open_feature_table'.
598         (char_table_close_db_maybe): Don't use `chise_ft_close'.
599
600 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
601
602         * mule-charset.c (Fsave_charset_mapping_table): Use
603         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
604         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
605         `chise_ccs_sync' instead of `chise_ccst_close'.
606         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
607
608         * chartab.c (open_chise_data_source_maybe): Modify for
609         `chise_open_data_source'.
610         (char_table_open_db_maybe): Modify for
611         `chise_ds_open_feature_table'.
612
613 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
614
615         * mule-charset.c (load_char_decoding_entry_maybe): Use
616         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
617         `chise_ccst_close'.
618
619 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
620
621         * mule-charset.c (Fsave_charset_mapping_table): Use
622         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
623         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
624         `chise_dt_put_char' and `chise_dt_close'.
625         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
626         `chise_ccs_decode' and `chise_ccst_close' instead of
627         `chise_ds_open_decoding_table', `chise_dt_get_char' and
628         `chise_dt_close'.
629
630         * chartab.c (char_table_get_db): Use
631         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
632         (load_char_attribute_table_map_func): Modify for
633         `chise_char_feature_value_iterate'.
634         (Fload_char_attribute_table): Use
635         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
636
637 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
638
639         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
640
641 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
642
643         * chartab.c (put_char_table): Modify for inherited coded-charsets
644         in XEmacs CHISE.
645
646 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
647
648         * chartab.c (Fput_char_table_map_function): Fixed.
649         (word_boundary_p): Don't check charset in XEmacs CHISE.
650
651 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
652
653         * mule-charset.c (Fsave_charset_mapping_table): Use
654         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
655         instead of `chise_open_decoding_table'; refer
656         `default_chise_data_source'; use `chise_dt_close' instead of
657         `chise_close_decoding_table'.
658         (load_char_decoding_entry_maybe): Likewise.
659
660         * chartab.c (default_chise_data_source): New variable when `CHISE'
661         is defined.
662         (Fcopy_char_table): `ct->ds' is deleted.
663         (open_chise_data_source_maybe): New function.
664         (Fclose_char_data_source): New function.
665         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
666         use `chise_ds_open_feature_table' instead of
667         `chise_open_feature_table'.
668         (char_table_close_db_maybe): Use `chise_ft_close' instead of
669         `chise_close_feature_table'; `cit->ds' is deleted.
670         (syms_of_chartab): Add new builtin function
671         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
672
673         * chartab.h (default_chise_data_source): New extern variable.
674         (open_chise_data_source_maybe): New prototype.
675         (struct Lisp_Char_Table): Delete `ds'.
676
677 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
678
679         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
680         `CHISE' is defined.
681
682 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
683
684         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
685         not defined; add code for non-libchise setting.
686         (char_table_close_db_maybe): Likewise.
687         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
688         defined.
689         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
690         even if `CHISE' is not defined.
691         (Freset_char_attribute_table): Likewise.
692         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
693         `char_table_close_db_maybe' even if `CHISE' is not defined; use
694         `char_table_get_db'.
695         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
696         `char_table_close_db_maybe' even if `CHISE' is not defined.
697
698 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
699
700         * chartab.c (char_table_open_db_maybe): New function.
701         (char_table_close_db_maybe): New function.
702         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
703         (Freset_char_attribute_table): Likewise.
704         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
705         `char_table_close_db_maybe'.
706         (Fload_char_attribute_table): Likewise.
707
708 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
709
710         * chartab.c: Don't include <chise.h> because it is included in
711         chartab.h.
712         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
713         defined.
714         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
715         `CHISE' is defined.
716         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
717         `CHISE' is defined.
718         (Fclose_char_attribute_table): Close `ct->feature_table' and
719         `ct->ds' when `CHISE' is defined.
720         (Freset_char_attribute_table): Likewise.
721         (load_char_attribute_maybe): Use `cit->ds' and
722         `cit->feature_table' when `CHISE' is defined.
723         (Fload_char_attribute_table): Likewise.
724
725         * chartab.h: Include <chise.h> when `CHISE' is defined.
726         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
727         when `CHISE' is defined.
728
729 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
730
731         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
732         is defined.
733         (char_table_description): Likewise.
734         (Fmake_char_table): Likewise.
735         (Fcopy_char_table): Likewise.
736         (Fmount_char_attribute_table): Likewise.
737         (Fclose_char_attribute_table): Likewise.
738         (Freset_char_attribute_table): Likewise.
739         (load_char_attribute_maybe): Likewise.
740         (Fload_char_attribute_table): Likewise.
741
742         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
743         defined.
744
745 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
746
747         * chartab.c (load_char_attribute_table_map_func): New function
748         when CHISE is defined.
749         (Qload_char_attribute_table_map_function): Don't define when CHISE
750         is defined.
751         (Fload_char_attribute_table_map_function): Likewise.
752         (Fload_char_attribute_table): Use libchise when `CHISE' is
753         defined.
754         (syms_of_chartab): Don't define
755         `load-char-attribute-table-map-function' when CHISE is defined.
756
757 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
758
759         * chartab.c: Include <chise.h> when `CHISE' is defined.
760         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
761
762 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
763
764         * mule-charset.c (charset_code_point): Fix problem when searching
765         in mother CCS fails with `defined_only' mode.
766
767 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
768
769         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
770         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
771         (put_char_composition): Likewise.
772         (Fput_char_attribute): Likewise.
773         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
774
775 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
776
777         * chartab.c (Q_ucs): Deleted.
778         (Fput_char_attribute): Don't refer `->ucs'.
779         (Fdefine_char): Likewise.
780         (Ffind_char): Likewise.
781         (syms_of_chartab): Delete `->ucs'.
782
783 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
784
785         * mule-charset.c (Qmap_cns11643_2): Renamed from
786         `Qchinese_cns11643_2'.
787         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
788         `chinese-cns11643-2'.
789         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
790         `=cns11643-2'.
791
792 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
793
794         * mule-charset.c (Qmap_cns11643_1): Renamed from
795         `Qchinese_cns11643_1'.
796         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
797         `chinese-cns11643-1'.
798         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
799         `=cns11643-1'.
800
801 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
802
803         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
804         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
805         `chinese-gb12345'.
806         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
807         `=gb12345'.
808
809 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
810
811         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
812         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
813         `chinese-gb2312'.
814         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
815         `=gb2312'.
816
817 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
818
819         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
820         (syms_of_mule_charset): Add new symbol `=big5' instead of
821         `chinese-big5'.
822         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
823
824 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
825
826         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
827         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
828         `korean-ksc5601'.
829         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
830         `=ks-x1001'.
831
832 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
833
834         * mule-charset.c (Qmap_jis_x0212): Renamed from
835         `Qjapanese_jisx0212'.
836         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
837         `japanese-jisx0212'.
838         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
839         `=jis-x0212'.
840
841 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
842
843         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
844         `Qjapanese_jisx0208'.
845         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
846         of `japanese-jisx0208'.
847         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
848         `=jis-x0208-1983'.
849
850 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
851
852         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
853         `Qjapanese_jisx0208_1978'.
854         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
855         of `japanese-jisx0208-1978'.
856         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
857         `=jis-x0208-1978'.
858
859 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
860
861         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
862         only for XEmacs CHISE.
863
864 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
865
866         * char-ucs.h: Compact non-ISO-IR charset-ids.
867         (LEADING_BYTE_UCS): Changed to -177.
868         (LEADING_BYTE_CONTROL_1): Changed to -77.
869         (LEADING_BYTE_UCS_BMP): Changed to -176.
870         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
871
872 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
873
874         * mule-charset.c (Qiso_ir): New variable.
875         (Fmake_charset): Recognise new property `iso-ir'.
876         (syms_of_mule_charset): Add new symbol `iso-ir'.
877
878 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
879
880         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
881         n to -n; charset-id of non ISO-IR sets are changed to positive
882         numbers.
883
884 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
885
886         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
887         for &MCS-XXXXXXXX; values.
888
889 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
890
891         * mule.c (Vxemacs_chise_version): Renamed from
892         `Vutf_2000_version'.
893         (vars_of_mule): Add new variable `xemacs-chise-version'; define
894         `utf-2000-version' as an alias for `xemacs-chise-version'.
895
896 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
897
898         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
899         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
900         defined.
901
902         * config.h.in (CHISE): New macro.
903
904 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
905
906         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
907         of `ucs'.
908         (Qmap_ucs): New variable.
909         (syms_of_mule_charset): Add new symbol `=ucs'.
910         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
911
912         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
913         (simplify_char_spec): Likewise.
914
915         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
916
917         * char-ucs.h (Qmap_ucs): New extern variable.
918
919 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
920
921         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
922         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
923         don't define it when UTF2000 is not defined.
924         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
925         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
926         when UTF2000 is not defined.
927         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
928         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
929
930 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
931
932         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
933
934         * mule-charset.c (Vcharset_ucs_gb): Deleted.
935         (Qucs_gb): Deleted.
936         (syms_of_mule_charset): Delete `ucs-gb'.
937         (complex_vars_of_mule_charset): Likewise.
938
939 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
940
941         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
942
943         * mule-charset.c (Vcharset_ucs_cns): Deleted.
944         (Qucs_cns): Deleted.
945         (syms_of_mule_charset): Delete `ucs-cns'.
946         (complex_vars_of_mule_charset): Likewise.
947
948 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
949
950         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
951
952         * mule-charset.c (Vcharset_ucs_jis): Deleted.
953         (Qucs_jis): Deleted.
954         (syms_of_mule_charset): Delete `ucs-jis'.
955         (complex_vars_of_mule_charset): Likewise.
956
957 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
958
959         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
960
961         * mule-charset.c (Vcharset_ucs_ks): Deleted.
962         (Qucs_ks): Deleted.
963         (syms_of_mule_charset): Delete `ucs-ks'.
964         (complex_vars_of_mule_charset): Likewise.
965
966 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
967
968         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
969         (Qideograph_daikanwa_2): Deleted.
970         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
971         (complex_vars_of_mule_charset): Likewise.
972
973         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
974         (LEADING_BYTE_DAIKANWA_1): Deleted.
975         (LEADING_BYTE_DAIKANWA_2): Deleted.
976         (MIN_CHAR_DAIKANWA): Deleted.
977         (MAX_CHAR_DAIKANWA): Deleted.
978
979 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
980
981         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
982         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
983         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
984
985         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
986         (Vcharset_ideograph_daikanwa): Deleted.
987         (Qideograph_hanziku_{1..12}): Deleted.
988         (Qideograph_daikanwa): Deleted.
989         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
990         Vcharset_ideograph_daikanwa.
991         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
992         `ideograph-hanziku-{1..12}'.
993         (complex_vars_of_mule_charset): Likewise.
994
995 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
996
997         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
998
999         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1000         (Qideograph_gt_pj_{1..11}): Deleted.
1001         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1002         (complex_vars_of_mule_charset): Likewise.
1003
1004 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1005
1006         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1007         (Vcharset_ideograph_gt): Deleted.
1008         (Qucs_big5): Deleted.
1009         (Qideograph_gt): Deleted.
1010         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1011         `ideograph-gt'.
1012         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1013         and `ideograph-gt'.
1014
1015         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1016         (LEADING_BYTE_GT): Deleted.
1017         (MIN_CHAR_GT): Deleted.
1018         (MAX_CHAR_GT): Deleted.
1019
1020 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1021
1022         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1023
1024 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1025
1026         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1027         (save_uint16_byte_table): Likewise.
1028         (save_byte_table): Likewise; convert values by it.
1029         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1030         for `ideographic-structure'.
1031         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1032         as the filter for `ideographic-structure'.
1033
1034 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1035
1036         * chartab.c (put_char_composition): New function.
1037         (Fput_char_attribute): Use `put_char_composition'; use
1038         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1039
1040         * fns.c (simplify_char_spec): New function.
1041         (char_ref_simplify_spec): New function.
1042         (Fchar_refs_simplify_char_specs): New function.
1043         (syms_of_fns): Add new builtin function
1044         `char-refs-simplify-char-specs'.
1045
1046 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1047
1048         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1049         (Qideograph_cbeta): Deleted.
1050         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1051         (complex_vars_of_mule_charset): Likewise.
1052
1053         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1054         (MIN_CHAR_CBETA): Comment out.
1055         (MAX_CHAR_CBETA): Likewise.
1056
1057 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1058
1059         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1060         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1061         CHISE client feature.
1062
1063 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1064
1065         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1066
1067 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1068
1069         * mule-charset.c (charset_lookup_description_1): Use
1070         `NUM_LEADING_BYTES' in UTF-2000.
1071
1072 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1073
1074         * char-ucs.h (GC_CHARSETP): Deleted.
1075
1076 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1077
1078         * char-ucs.h (MAX_CHAR_GT): Updated.
1079
1080 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1081
1082         * text-coding.c: Sync with XEmacs 21.4.10.
1083
1084 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1085
1086         * mule-charset.c (Vcharset_china3_jef): Deleted.
1087         (Qchina3_jef): Deleted.
1088         (syms_of_mule_charset): Don't define `china3-jef'.
1089         (complex_vars_of_mule_charset): Likewise.
1090
1091         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1092         (MIN_CHAR_CHINA3_JEF): Comment out.
1093         (MAX_CHAR_CHINA3_JEF): Comment out.
1094
1095 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1096
1097         * mule-charset.c (Vcharset_ucs_gb): New variable.
1098         (Qucs_gb): New variable.
1099         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1100         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1101
1102         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1103
1104 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1105
1106         * mule-charset.c (charset_code_point): if a coded-charset has a
1107         final-byte, don't inherit the builtin range of the mother CCS.
1108
1109 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1110
1111         * mule-charset.c (charset_code_point): Fix problem about
1112         inheritance.
1113
1114 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1115
1116         * mule-charset.c (decode_builtin_char): Reorganized.
1117
1118 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1119
1120         * text-coding.c (char_encode_as_entity_reference): Modify for
1121         `charset_code_point'.
1122         (char_encode_shift_jis): Likewise.
1123         (char_encode_big5): Likewise.
1124         (char_encode_utf8): Likewise.
1125         (char_encode_iso2022): Likewise.
1126
1127         * mule-charset.c (charset_code_point): Add new argument
1128         `defined_only'.
1129         (Fencode_char): Add new optional argument `defined_only'.
1130
1131         * chartab.c (put_char_table): Modify for `charset_code_point'.
1132
1133         * char-ucs.h (charset_code_point): Add new argument
1134         `defined_only'.
1135         (encode_char_1): Modify for `charset_code_point'.
1136
1137 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1138
1139         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1140         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1141
1142 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1143
1144         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1145         (Qjis_x0208): Likewise.
1146         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1147         XCHARSET_FINAL(charset).
1148         (charset_code_point): Modify condition for final-byte based
1149         builtin-chars.
1150         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1151         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1152         in UTF-2000; specify `=jis-x0208' as the mother of
1153         `japanese-jisx0208-1978', `japanese-jisx0208' and
1154         `japanese-jisx0208-1990' in UTF-2000.
1155
1156 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1157
1158         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1159
1160 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1161
1162         * text-coding.c (decode_coding_utf16): Support UTF-16.
1163         (char_encode_utf16): Fixed.
1164
1165 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1166
1167         * text-coding.c (Qutf16): New variable in MULE.
1168         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1169         (Fcoding_system_type): Add `utf-16' in MULE.
1170         (struct detection_state): Add a structure for utf16 in MULE.
1171         (detect_coding_type): Setup st->utf16.mask in MULE.
1172         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1173         MULE.
1174         (reset_encoding_stream): Use `char_encode_utf16' and
1175         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1176         (detect_coding_utf16): New function [incomplete].
1177         (decode_coding_utf16): New function [support only UCS-2].
1178         (char_encode_utf16): New function.
1179         (char_finish_utf16): New function.
1180         (syms_of_file_coding): Add new symbol `utf-16'; setup
1181         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1182
1183         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1184         UTF-2000.
1185         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1186         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1187
1188 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1189
1190         * chartab.c (put_char_table): When a charset is specified as a
1191         range in UTF-2000, don't support builtin characters.
1192
1193 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1194
1195         * mule-charset.c (decode_defined_char): Don't refer external
1196         database if Qunbound or Qnil are found.
1197         (Fsave_charset_mapping_table): Don't define it if
1198         HAVE_CHISE_CLIENT is not defined.
1199         (Freset_charset_mapping_table): New function.
1200         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1201         found in external database.
1202         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1203         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1204         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1205
1206 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1207
1208         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1209         not.
1210
1211 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1212
1213         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1214         Q_lowercase, Q_uppercase in UTF-2000.
1215
1216         * chartab.c (get_char_table): Add special code for the standard
1217         case table to use character attribute `->downcase' and
1218         `->uppercase' for case operations in UTF-2000.
1219
1220         * casetab.c (Qflippedcase): New variable in UTF-2000.
1221         (Q_lowercase): Likewise.
1222         (Q_uppercase): Likewise.
1223         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1224         and `->uppercase' in UTF-2000.
1225         (complex_vars_of_casetab): Assign attribute name `downcase' to
1226         downcase and CANON table of Vstandard_case_table in UTF-2000;
1227         assign attribute name `flippedcase' to upcase and EQV table of
1228         Vstandard_case_table in UTF-2000.
1229
1230 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1231
1232         * text-coding.c (decode_add_er_char): Support isolated-chars.
1233         (char_encode_as_entity_reference): Likewise.
1234
1235 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1236
1237         * emacs.c (Vutf_2000_lisp_directory): New variable.
1238         (Vconfigure_utf_2000_lisp_directory): Likewise.
1239         (complex_vars_of_emacs): Add new variable
1240         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1241
1242 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1243
1244         * char-ucs.h (DECODE_CHAR): Delete special code for
1245         `chinese-big5-1' and `chinese-big5-2'.
1246
1247         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1248         (Qbig5_2): Likewise.
1249         (decode_defined_char): Support CONVERSION_BIG5_1 and
1250         CONVERSION_BIG5_2.
1251         (decode_builtin_char): Likewise.
1252         (charset_code_point): Likewise.
1253         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1254         'conversion in UTF-2000.
1255         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1256         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1257         `chinese-big5-2' as children of `chinese-big5'.
1258
1259         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1260         (CONVERSION_BIG5_2): New macro.
1261
1262 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1263
1264         * text-coding.c (char_encode_big5): Support entity-reference.
1265
1266 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1267
1268         * text-coding.c (char_encode_as_entity_reference): New function.
1269         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1270
1271 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1272
1273         * text-coding.c (decode_coding_big5): Support entity-reference
1274         decoding feature.
1275
1276 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1277
1278         * text-coding.c (allocate_coding_system): Initialize initial
1279         charsets for CODESYS_UTF8.
1280         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1281         charset-g2 for CODESYS_UTF8.
1282         (decode_coding_utf8): Use charset-g0.
1283         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1284         to force variants to map to UCS.
1285
1286 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1287
1288         * text-coding.c (Qutf_8_mcs): New variable.
1289         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1290         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1291         instead of `utf-8' in UTF-2000.
1292
1293 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1294
1295         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1296         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1297         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1298         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1299         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1300         CONVERSION_96x96x96x96 are introduced.
1301         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1302         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1303         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1304
1305         * char-ucs.h (CONVERSION_94): New macro.
1306         (CONVERSION_96): New macro.
1307         (CONVERSION_94x94): New macro.
1308         (CONVERSION_96x96): New macro.
1309         (CONVERSION_94x94x94): New macro.
1310         (CONVERSION_96x96x96): New macro.
1311         (CONVERSION_94x94x94x60): New macro.
1312         (CONVERSION_94x94x94x94): New macro.
1313         (CONVERSION_96x96x96x96): New macro.
1314
1315 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1316
1317         * chartab.c (Vcharacter_variant_table): Deleted.
1318         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1319         of `Vcharacter_variant_table'.
1320         (Fput_char_attribute): Likewise.
1321         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1322         (complex_vars_of_chartab): Likewise.
1323
1324 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1325
1326         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1327
1328         * fns.c (Qideographic_structure): New variable.
1329         (Qkeyword_char): New variable.
1330         (ids_format_unit): New function.
1331         (Fideographic_structure_to_ids): New function.
1332         (syms_of_fns): Add new symbols `ideographic-structure' and
1333         `:char'; add new builtin function `ideographic-structure-to-ids'.
1334
1335         * data.c (Fchar_ref_p): New function.
1336         (syms_of_data): Add new builtin function `char-ref-p'.
1337
1338         * chartab.h: Add an EXFUN for `Ffind_char'.
1339
1340 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1341
1342         * text-coding.c (Vcharacter_composition_table): Deleted.
1343         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1344         in every UTF-2000.
1345
1346         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1347         UTF-2000.
1348         (Vcharacter_composition_table): Deleted.
1349         (Fget_composite_char): Use the implementation for external-DB
1350         support in every UTF-2000.
1351         (Fput_char_attribute): Likewise.
1352         (char_attribute_system_db_file): Don't define if external-DB
1353         feature is not available.
1354         (Fsave_char_attribute_table): Likewise.
1355         (Fmount_char_attribute_table): Likewise.
1356         (Fclose_char_attribute_table): Likewise.
1357         (Freset_char_attribute_table): Likewise.
1358         (Fload_char_attribute_table): Likewise.
1359         (syms_of_chartab): Don't define `save-char-attribute-table',
1360         `mount-char-attribute-table', `reset-char-attribute-table',
1361         `close-char-attribute-table' and `load-char-attribute-table' if
1362         external-DB feature is not available.
1363         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1364
1365 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1366
1367         * text-coding.c (Qcomposition): Add extern if external-DB feature
1368         is supported.
1369         (Vcharacter_composition_table): Don't add extern if external-DB
1370         feature is supported.
1371         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1372         character composition rule if external-DB feature is supported.
1373
1374         * chartab.c (Vcharacter_composition_table): Don't define if
1375         external-DB feature is supported.
1376         (Qcomposition): New variable.
1377         (Fget_composite_char): New implementation for external-DB support.
1378         (Fput_char_attribute): Use `composition' property of each
1379         character instead of `Vcharacter_composition_table' to store
1380         character-composition rules if external-DB feature is supported.
1381         (syms_of_chartab): Add new symbol `composition'.
1382         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1383         external-DB feature is supported.
1384
1385 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1386
1387         * chartab.c (Vchar_db_stingy_mode): New variable.
1388         (load_char_attribute_maybe): Close database if
1389         Vchar_db_stingy_mode is not NIL.
1390         (Fload_char_attribute_table_map_function): Use
1391         `get_char_id_table_0' instead of `get_char_id_table'.
1392         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1393
1394         * chartab.h (get_char_id_table_0): New inline function.
1395         (get_char_id_table): Use `get_char_id_table_0'.
1396
1397 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1398
1399         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1400         and `COMPOSE_ADD_CHAR'.
1401         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1402
1403 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1404
1405         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1406         instead of `DECODE_ADD_UCS_CHAR'.
1407         (COMPOSE_ADD_CHAR): Likewise.
1408
1409 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1410
1411         * text-coding.c (decode_flush_er_chars): New inline function.
1412         (decode_add_er_char): New function.
1413         (decode_coding_utf8): Use `decode_flush_er_chars' and
1414         `decode_add_er_char'.
1415
1416 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1417
1418         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1419         done before `decode_output_utf8_partial_char'.
1420
1421         * mule-charset.c (complex_vars_of_mule_charset): Specify
1422         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1423         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1424
1425 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1426
1427         * mule-charset.c (decode_defined_char): New function; search
1428         mother.
1429         (decode_builtin_char): Don't search mother if
1430         XCHARSET_MAX_CODE(charset) == 0.
1431         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1432         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1433         (Fdecode_char): Use `decode_defined_char' instead of
1434         `DECODE_DEFINED_CHAR'.
1435         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1436         mother of `Vcharset_ucs_jis'.
1437
1438         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1439         instead of `DECODE_DEFINED_CHAR'.
1440
1441         * char-ucs.h (decode_defined_char): Renamed from
1442         `DECODE_DEFINED_CHAR'; changed to normal function.
1443         (DECODE_CHAR): Use `decode_defined_char' instead of
1444         `DECODE_DEFINED_CHAR'.
1445
1446         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1447
1448 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1449
1450         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1451
1452         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1453         variable.
1454         (Quse_entity_reference): New variable.
1455         (Qd): New variable.
1456         (Qx): New variable.
1457         (QX): New variable.
1458         (coding_system_description): Add description for
1459         `ccs_priority_list'.
1460         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1461         (allocate_coding_system): Initialize `ccs_priority_list' in
1462         UTF-2000.
1463         (Fmake_coding_system): Add description about
1464         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1465         (codesys).
1466         (Fcoding_system_property): Accept `disable-composition' and
1467         `use-entity-reference' in UTF-2000.
1468         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1469         in UTF-2000.
1470         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1471         (decode_coding_utf8): Decode entity-reference if
1472         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1473         (char_encode_utf8): Encode non-Unicode characters as
1474         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1475         (str->codesys).
1476         (syms_of_file_coding): Add new symbols `use-entity-reference',
1477         `d', `x', `X'.
1478         (vars_of_file_coding): Add new variable
1479         `coded-charset-entity-reference-alist'.
1480         (complex_vars_of_file_coding): Declare `disable-composition' and
1481         `use-entity-reference' to be coding-system-properties in UTF-2000.
1482
1483         * file-coding.h (struct Lisp_Coding_System): Add new member
1484         `use_entity_reference' and `ccs_priority_list'.
1485         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1486         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1487         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1488
1489 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1490
1491         * chartab.c (save_uint8_byte_table): Don't clear the table.
1492         (save_uint16_byte_table): Likewise.
1493         (save_byte_table): Likewise.
1494         (Fmount_char_attribute_table): New function.
1495         (syms_of_chartab): Add new builtin function
1496         `mount-char-attribute-table'.
1497
1498 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1499
1500         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1501         "w+" mode.
1502         (load_char_decoding_entry_maybe): Open database as read-only mode.
1503
1504         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1505         open database as "w+" mode.
1506         (load_char_attribute_maybe): Open database as read-only mode.
1507         (Fload_char_attribute_table): Likewise.
1508
1509 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1510
1511         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1512         (char_table_description): Delete member `db_file'.
1513         (Fmake_char_table): Don't refer `ct->db_file'.
1514         (Fcopy_char_table): Likewise.
1515         (Fsave_char_attribute_table): Likewise.
1516         (Fclose_char_attribute_table): Likewise.
1517         (Freset_char_attribute_table): Likewise.
1518         (load_char_attribute_maybe): Likewise.
1519         (Fload_char_attribute_table): Likewise.
1520
1521         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1522
1523 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1524
1525         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1526         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1527         `ct->db' is living.
1528         (load_char_attribute_maybe): Likewise.
1529         (Fload_char_attribute_table): Likewise.
1530
1531 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1532
1533         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1534         `ct->db_file' unconditionally.
1535
1536 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1537
1538         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1539         UTF-2000.
1540         (char_table_description): Add description for `db_file' and `db'
1541         in UTF-2000.
1542         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1543         UTF-2000.
1544         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1545         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1546         (Fclose_char_attribute_table): New function.
1547         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1548         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1549         and `cit->db'.
1550         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1551         (syms_of_chartab): Add new builtin function
1552         `Fclose_char_attribute_table'.
1553
1554 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1555
1556         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1557         `db' in UTF-2000.
1558         (load_char_attribute_maybe): Change interface.
1559         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1560
1561 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1562
1563         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1564
1565 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1566
1567         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1568         instead of `DECODE_CHAR' for mother; don't use special code for
1569         chinese-big5 to use code space of chinese-big5-1 and
1570         chinese-big5-2.
1571         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1572         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1573
1574         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1575         (MAX_CHAR_BIG5_CDP): Revival.
1576
1577 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1578
1579         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1580         the XLFD registry-encoding name of `chinese-big5'.
1581
1582 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1583
1584         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1585         (Qchinese_big5_cdp): Deleted.
1586         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1587         (complex_vars_of_mule_charset): Delete coded-charset
1588         `chinese-big5-cdp'.
1589
1590         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1591         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1592         `CHARSET_ID_OFFSET - n' for private CCS.
1593         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1594         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1595         of `MIN_LEADING_BYTE'.
1596         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1597         `(CHARSET_ID_OFFSET - 97)'.
1598         (MIN_CHAR_BIG5_CDP): Deleted.
1599         (MAX_CHAR_BIG5_CDP): Deleted.
1600
1601 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1602
1603         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1604
1605 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1606
1607         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1608         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1609         chartab.c].
1610
1611         * chartab.c (Vutf_2000_version): Moved to mule.c.
1612         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1613
1614 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1615
1616         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1617         when HAVE_CHISE_CLIENT is not defined.
1618
1619         * mule.c (vars_of_mule): Provide feature `chise' when
1620         HAVE_CHISE_CLIENT is defined.
1621
1622 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1623
1624         * config.h.in (UTF2000): Add comment.
1625         (HAVE_CHISE_CLIENT): New macro.
1626
1627 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1628
1629         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1630         CONSP.
1631         (Fput_char_attribute): Likewise.
1632         (char_attribute_system_db_file): Encode file-name of attribute.
1633         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1634         the initial value.
1635
1636 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1637
1638         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1639         (Fsave_charset_mapping_table): Use
1640         `char_attribute_system_db_file'.
1641         (load_char_decoding_entry_maybe): Likewise.
1642
1643         * chartab.h (Qsystem_char_id): New external variable.
1644         (char_attribute_system_db_file): New prototype.
1645
1646         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1647         (char_attribute_system_db_file): New function.
1648         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1649         (Freset_char_attribute_table): Likewise.
1650         (load_char_attribute_maybe): Likewise.
1651         (Fload_char_attribute_table): Likewise.
1652         (syms_of_chartab): Add new symbol `system-char-id'.
1653
1654 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1655
1656         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1657         `XCHARSET_GRAPHIC(ccs)'.
1658
1659 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1660
1661         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1662
1663 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1664
1665         * chartab.c (Q_ucs_variants): New variable.
1666         (syms_of_chartab): Add new symbol `->ucs-variants'.
1667         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1668         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1669         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1670
1671         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1672
1673         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1674         `HAVE_DATABASE' is defined.
1675         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1676         `HAVE_DATABASE' is defined.
1677
1678 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1679
1680         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1681         attribute-table.
1682         (Freset_char_attribute_table): New function.
1683         (syms_of_chartab): Add new builtin function
1684         `reset-char-attribute-table'.
1685
1686 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1687
1688         * chartab.c (load_char_attribute_maybe): Don't make directories.
1689
1690 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1691
1692         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1693
1694         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1695         for decoding-table.
1696
1697 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1698
1699         * mule-charset.c (Fsave_charset_mapping_table): Use
1700         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1701
1702         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1703         instead of `XCHARSET_CHARS'.
1704
1705 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1706
1707         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1708         (XCHARSET_BYTE_SIZE): Likewise.
1709
1710         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1711         mule-charset.c].
1712         (XCHARSET_BYTE_SIZE): Likewise.
1713
1714 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1715
1716         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1717         data-directory to store database.
1718         (Fsave_char_attribute_table): Likewise.
1719         (load_char_attribute_maybe): Likewise.
1720         (Fload_char_attribute_table): Likewise.
1721
1722 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1723
1724         * mule-charset.c (Fsave_charset_mapping_table): New function.
1725         (syms_of_mule_charset): Add new builtin function
1726         `save-charset-mapping-table'.
1727
1728 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1729
1730         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1731         (get_ccs_octet_table): New inline function.
1732         (put_ccs_octet_table): Likewise.
1733         (decoding_table_put_char): Use `get_ccs_octet_table' and
1734         `put_ccs_octet_table'.
1735         (decoding_table_remove_char): Use `decoding_table_put_char'.
1736         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1737
1738         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1739         into encoding_table.
1740         (make_charset): Use Qunbound instead Qnil as initial value of
1741         decoding_table.
1742
1743 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1744
1745         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1746         element is Qunloaded.
1747         (map_over_uint16_byte_table): Likewise.
1748         (map_over_byte_table): Likewise.
1749         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1750         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1751         database support, load encoding-table of the specified
1752         coded-charset if it is not loaded yet.
1753         (save_uint8_byte_table): New function of UTF-2000 with external
1754         database support.
1755         (save_uint16_byte_table): Likewise.
1756         (save_byte_table): Likewise.
1757         (Fput_char_attribute): Don't store value into external database
1758         even if the external database feature is supported in UTF-2000;
1759         set `attribute' as name of char-table if the external database
1760         feature is supported.
1761         (Fsave_char_attribute_table): New function in UTF-2000.
1762         (syms_of_chartab): Add new builtin function
1763         `save-char-attribute-table' in UTF-2000.
1764
1765 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1766
1767         * chartab.c (char_attribute_table_to_put): New variable in
1768         UTF-2000.
1769         (Qput_char_table_map_function): Likewise.
1770         (value_to_put): Likewise.
1771         (Fput_char_table_map_function): New function in UTF-2000.
1772         (put_char_table): Use `Fmap_char_attribute' for
1773         CHARTAB_RANGE_CHARSET in UTF-2000.
1774         (Fput_char_attribute): Store symbol instead of string in
1775         `XCHAR_TABLE_NAME (table)'.
1776         (load_char_attribute_maybe): Likewise.
1777         (syms_of_chartab): Add new symbol/function
1778         `put-char-table-map-function'.
1779
1780 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1781
1782         * database.h: Add new EXFUN for `Fmap_database'.
1783
1784         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1785         (syms_of_database): Likewise.
1786
1787         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1788         UTF-2000.
1789         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1790         (XCHAR_TABLE_UNLOADED): Likewise.
1791
1792         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1793         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1794         HAVE_DATABASE is defined.
1795         (char_attribute_table_to_load): New variable of UTF-2000 with
1796         external database support.
1797         (Qload_char_attribute_table_map_function): Likewise.
1798         (Fload_char_attribute_table_map_function): New function of
1799         UTF-2000 with external database support.
1800         (Fload_char_attribute_table): New function of UTF-2000.
1801         (Fmap_char_attribute): Call Fload_char_attribute_table if
1802         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1803         (syms_of_chartab): Add new symbol and function
1804         `load-char-attribute-table-map-function' in UTF-2000 with external
1805         database support; add new function `load-char-attribute-table' in
1806         UTF-2000.
1807
1808 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1809
1810         * chartab.h (load_char_attribute_maybe): New prototype for
1811         UTF-2000 with DATABASE support.
1812         (get_char_id_table): Use `load_char_attribute_maybe' if
1813         HAVE_DATABASE is defined.
1814
1815         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1816         with DATABASE support.
1817
1818 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1819
1820         * chartab.c (Fput_char_attribute): Use S-expression as key of
1821         external database.
1822
1823         * chartab.h (get_char_id_table): Use S-expression as key of
1824         external database.
1825
1826 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1827
1828         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1829         if an element is not loaded, load the corresponding attributes
1830         from an external database.
1831         (map_over_uint16_byte_table): Likewise.
1832         (map_over_byte_table): Likewise.
1833         (map_char_table): Modify for `map_over_uint8_byte_table',
1834         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1835         element is not loaded, load the corresponding attributes from an
1836         external database.
1837         (Fput_char_attribute): Change initial values to Qunloaded.
1838
1839         * chartab.h (get_char_id_table): If a character attribute is not
1840         loaded and the attribute value is not found in an external
1841         database, store Qunbound as the attribute value.
1842
1843 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1844
1845         * chartab.c (BT_UINT8_unloaded): New macro.
1846         (UINT8_VALUE_P): Accept Qunloaded.
1847         (UINT8_ENCODE): Likewise.
1848         (UINT8_DECODE): Likewise.
1849         (BT_UINT16_unloaded): New macro.
1850         (UINT16_VALUE_P): Accept Qunloaded.
1851         (UINT16_ENCODE): Likewise.
1852         (UINT16_DECODE): Likewise.
1853         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1854         BT_UINT16_unloaded.
1855         (mark_char_table): Mark `ct->name' in UTF-2000.
1856         (char_table_description): Add `name' in UTF-2000.
1857         (Fmake_char_table): Initialize `ct->name'.
1858         (Fcopy_char_table): Copy `ct->name'.
1859         (Fput_char_attribute): Store value into an external database if
1860         HAVE_DATABASE is defined.
1861
1862         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1863         UTF-2000.
1864         (CHAR_TABLE_NAME): New macro in UTF-2000.
1865         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1866         (get_char_id_table): Try to read an external database if Qunloaded
1867         is stored in a table.
1868
1869         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1870         Qunloaded.
1871
1872 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1873
1874         * database.h: Add EXFUN definitions for Fopen_database,
1875         Fput_database, Fget_database and Fclose_database.
1876
1877         * data.c (Qunloaded): New variable in UTF-2000.
1878
1879         * lisp.h (Qunloaded): New variable in UTF-2000.
1880
1881 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1882
1883         * mule-charset.c (put_char_ccs_code_point): Modify for
1884         `decoding_table_remove_char' and `decoding_table_put_char'.
1885         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1886
1887         * char-ucs.h (decoding_table_remove_char): Change arguments to
1888         hide decoding_table vector.
1889         (decoding_table_put_char): Likewise.
1890
1891 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1892
1893         * mule-charset.c (decoding_table_remove_char): Moved to
1894         char-ucs.h.
1895         (decoding_table_put_char): Likewise.
1896
1897         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1898         from mule-charset.c].
1899         (decoding_table_remove_char): New inline function [moved from
1900         mule-charset.c].
1901         (decoding_table_put_char): Likewise.
1902
1903 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1904
1905         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1906         extension.
1907
1908 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1909
1910         * mule-charset.c (decode_builtin_char): Support mother charsets.
1911
1912 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1913
1914         * mule-charset.c (Q94x94x60): New variable.
1915         (charset_code_point): Support conversion `94x94x60'.
1916         (Fmake_charset): Likewise.
1917         (syms_of_mule_charset): Add new symbol `94x94x60'.
1918
1919         * char-ucs.h (CONVERSION_94x94x60): New macro.
1920
1921 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1922
1923         * mule-charset.c (charset_code_point): Unify code about
1924         `code-offset'.
1925
1926 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1927
1928         * mule-charset.c (charset_code_point): Merge code about builtin
1929         characters into code about mother charsets; don't use
1930         `range_charset_code_point'.
1931         (range_charset_code_point): Deleted.
1932
1933 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1934
1935         * mule-charset.c (Qcode_offset): New variable.
1936         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1937         `max-code'; accept new property `code-offset'.
1938         (syms_of_mule_charset): Add new symbol `code-offset'.
1939
1940 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1941
1942         * mule-charset.c (range_charset_code_point): Fixed.
1943
1944 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1945
1946         * mule-charset.c (decode_builtin_char): Change semantics of
1947         code-offset of coded-charset.
1948         (charset_code_point): Likewise.
1949         (range_charset_code_point): Likewise.
1950         (complex_vars_of_mule_charset): Modify for the change.
1951
1952 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1953
1954         * mule-charset.c (Fencode_char): Reverse arguments.
1955
1956         * mule-charset.c (charset_code_point): Fixed.
1957
1958 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1959
1960         * mule-charset.c (Vcharset_mojikyo): Deleted.
1961         (Vcharset_mojikyo_2022_1): Deleted.
1962         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1963         (Qmin_code): New variable in UTF-2000.
1964         (Qmax_code): Likewise.
1965         (Qmother): Likewise.
1966         (Qconversion): Likewise.
1967         (Q94x60): Likewise.
1968         (Qmojikyo): Deleted.
1969         (Qmojikyo_2022_1): Deleted.
1970         (Qmojikyo_pj_{1..22}): Deleted.
1971         (mark_charset): Mark `cs->mother'.
1972         (charset_description): Add description for `mother'.
1973         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1974         new arguments `mother' and `conversion'; use
1975         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1976         (charset_code_point): Moved from char-ucs.h; support `mother'
1977         charset feature.
1978         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1979         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1980         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1981         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1982         allow 2 as the value of `graphic' in UTF-2000; add new properties
1983         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1984         require `final' in UTF-2000; modify for `make_charset'.
1985         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1986         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1987         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1988         (Fencode_char): New function.
1989         (syms_of_mule_charset): Add new builtin function `encode-char' in
1990         UTF-2000; add new symbols `min-code', `max-code', `mother',
1991         `conversion' and `94x60'; delete symbols `mojikyo',
1992         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1993         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1994         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1995         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1996
1997         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1998         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1999
2000         * char-ucs.h (Vcharset_mojikyo): Deleted.
2001         (Vcharset_mojikyo_2022_1): Deleted.
2002         (LEADING_BYTE_MOJIKYO): Deleted.
2003         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2004         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2005         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2006         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2007         add new member `mother'; add new member `conversion'.
2008         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2009         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2010         (CHARSET_MOTHER): New macro.
2011         (CHARSET_CONVERSION): New macro.
2012         (CONVERSION_IDENTICAL): New macro.
2013         (CONVERSION_94x60): New macro.
2014         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2015         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2016         (XCHARSET_MOTHER): New macro.
2017         (XCHARSET_CONVERSION): New macro.
2018         (MIN_CHAR_MOJIKYO): Deleted.
2019         (MAX_CHAR_MOJIKYO): Deleted.
2020         (DECODE_MOJIKYO_2022): Deleted.
2021         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2022         (charset_code_point): Changed to non-inline function.
2023         (encode_char_1): Use `charset_code_point'.
2024         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2025
2026 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2027
2028         * lread.c (read_compiled_function): Fix prototype.
2029         (read_vector): Likewise.
2030
2031 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2032
2033         * lrecord.h (struct lrecord_header): Delete `older'.
2034         (set_lheader_implementation): Delete code for `older'.
2035         (set_lheader_older_implementation): Deleted.
2036         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2037         (OLDER_RECORD_P): Deleted.
2038         (OLDER_RECORD_HEADER_P): Deleted.
2039         (alloc_older_lcrecord): Deleted.
2040         (alloc_older_lcrecord_type): Deleted.
2041
2042         * alloc.c (all_older_lcrecords): Deleted.
2043         (alloc_older_lcrecord): Deleted.
2044         (disksave_object_finalization_1): Delete code for older objects.
2045         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2046         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2047
2048 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2049
2050         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2051         instead of `make_older_vector'.
2052         (put_char_ccs_code_point): Likewise.
2053         (mark_charset): Mark `cs->decoding_table'.
2054         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2055
2056         * lisp.h (make_older_vector): Deleted.
2057         (make_vector_newer): Deleted.
2058
2059         * config.h.in (HAVE_GGC): Deleted.
2060
2061         * alloc.c (make_older_vector): Deleted.
2062         (make_vector_newer_1): Deleted.
2063         (make_vector_newer): Deleted.
2064
2065 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2066
2067         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2068         (Qideograph_daikanwa_2): New variable.
2069         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2070         (complex_vars_of_mule_charset): Add new coded-charset
2071         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2072         `LEADING_BYTE_DAIKANWA'.
2073
2074         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2075         (LEADING_BYTE_DAIKANWA_1): New macro.
2076         (LEADING_BYTE_DAIKANWA_2): New macro.
2077         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2078
2079 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2080
2081         * mule-charset.c (complex_vars_of_mule_charset): Change
2082         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2083         the second revised version.
2084
2085 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2086
2087         * mule-charset.c (Vcharset_ucs_smp): New variable.
2088         (Vcharset_ucs_sip): New variable.
2089         (Qucs_smp): New variable.
2090         (Qucs_sip): New variable.
2091         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2092         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2093         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2094         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2095         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2096         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2097
2098         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2099         (LEADING_BYTE_UCS_SIP): New macro.
2100         (MIN_CHAR_SMP): New macro.
2101         (MAX_CHAR_SMP): New macro.
2102         (MIN_CHAR_SIP): New macro.
2103         (MAX_CHAR_SIP): New macro.
2104
2105 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2106
2107         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2108         utf-2000.
2109
2110 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2111
2112         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2113         value; don't store value into `encoding_table' of `Lisp_Charset'.
2114         (mark_charset): `encoding_table' was deleted.
2115         (charset_description): Likewise.
2116         (make_charset): Likewise.
2117         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2118         `put_char_ccs_code_point'.
2119
2120         * chartab.h (Fput_char_attribute): New EXFUN.
2121
2122         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2123         is unified with normal symbol space.
2124         (Fget_char_attribute): Likewise.
2125         (Fput_char_attribute): Likewise; behavior of
2126         `put_char_ccs_code_point' is changed.
2127
2128         * char-ucs.h: Include "elhash.h".
2129         (Vchar_attribute_hash_table): New external variable.
2130         (struct Lisp_Charset): Delete `encoding_table'.
2131         (CHARSET_ENCODING_TABLE): New implementation; refer
2132         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2133         `Lisp_Charset'.
2134
2135 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2136
2137         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2138         (cs) == 0.
2139
2140 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2141
2142         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2143         `chinese-big5'.
2144
2145 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2146
2147         * chartab.c (uint8_byte_table_description): New constant.
2148         (uint8-byte-table): Use `uint8_byte_table_description'.
2149         (uint16_byte_table_description): New constant.
2150         (uint16-byte-table): Use `uint16_byte_table_description'.
2151
2152 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2153
2154         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2155         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2156
2157 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2158
2159         * mule-charset.c (Vcharset_ucs_ks): New variable.
2160         (Qucs_ks): New variable.
2161         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2162         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2163
2164         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2165
2166 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2167
2168         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2169         (Fdecode_char): Likewise.
2170
2171         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2172         chartab.h.
2173         (Fdefine_char): Modify for Fdecode_char.
2174         (Ffind_char): Likewise.
2175
2176         * mule-charset.c (Fdecode_char): Add new optional argument
2177         `defined-only'.
2178         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2179
2180 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2181
2182         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2183         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2184         (allocate_coding_system): Initialize initial-charsets of
2185         CODESYS_BIG5 in XEmacs UTF-2000.
2186         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2187         CODESYS_BIG5 in XEmacs UTF-2000.
2188         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2189         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2190
2191         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2192         variables.
2193         (Qideograph_hanziku_{1 .. 12}): Likewise.
2194         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2195         .. 12}'.
2196         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2197         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2198         `ideograph-hanziku-{1 .. 12}'.
2199
2200         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2201         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2202         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2203         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2204         (DECODE_DEFINED_CHAR): New inline function.
2205         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2206
2207 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2208
2209         * mule-charset.c (Vcharset_china3_jef): Renamed from
2210         `Vcharset_japanese_jef_china3'.
2211         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2212         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2213         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2214         (syms_of_mule_charset): Rename `china3-jef' from
2215         `japanese-jef-china3'.
2216         (complex_vars_of_mule_charset): Likewise; rename
2217         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2218
2219         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2220         `LEADING_BYTE_JEF_CHINA3'.
2221         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2222         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2223
2224 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2225
2226         * mule-charset.c (encode_builtin_char_1): Comment out special code
2227         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2228
2229         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2230         (MAX_CHAR_MOJIKYO_0): Comment out.
2231         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2232         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2233         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2234         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2235
2236 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2237
2238         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2239         (Qideograph_cbeta): New variable.
2240         (encode_builtin_char_1): Comment out special code for
2241         coded-charset `mojikyo' and `japanese-jef-china3'.
2242         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2243         (complex_vars_of_mule_charset): Add new coded-charset
2244         `ideograph-cbeta'.
2245
2246         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2247         (MIN_CHAR_CBETA): New macro.
2248         (MAX_CHAR_CBETA): New macro.
2249
2250 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2251
2252         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2253         (LEADING_BYTE_JEF_CHINA3): New macro.
2254         (MIN_CHAR_JEF_CHINA3): New macro.
2255         (MAX_CHAR_JEF_CHINA3): Likewise.
2256         (DECODE_CHAR): Fixed.
2257
2258 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2259
2260         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2261         (Qjapanese_jef_china3): New variable.
2262         (encode_builtin_char_1): Support `japanese-jef-china3'.
2263         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2264         (complex_vars_of_mule_charset): Add new coded-charset
2265         `japanese-jef-china3'.
2266
2267 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2268
2269         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2270         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2271         94^4, 96^3, 96^4, 128^n and 256^n set.
2272         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2273         (map_char_table): Likewise.
2274
2275 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2276
2277         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2278         UTF-2000.
2279
2280 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2281
2282         * chartab.h (get_char_id_table): New inline function.
2283
2284         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2285         function.
2286
2287 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2288
2289         * chartab.h (decode_char_table_range): New prototype in XEmacs
2290         UTF-2000.
2291         (put_char_id_table): New inline function in XEmacs UTF-2000.
2292
2293         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2294         function.
2295         (decode_char_table_range): Delete static declaration in XEmacs
2296         UTF-2000.
2297
2298 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2299
2300         * chartab.c (put_char_id_table): Use `put_char_table'.
2301
2302 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2303
2304         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2305         (map_over_uint16_byte_table): Likewise.
2306         (map_over_byte_table): Likewise.
2307         (map_char_table): Modify for `map_over_uint8_byte_table',
2308         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2309         UTF-2000.
2310
2311 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2312
2313         * chartab.c (struct map_char_table_for_charset_arg): New
2314         structure.
2315         (map_char_table_for_charset_fun): New function.
2316         (map_char_table): Use `map_char_table' for encoding_table of
2317         `range->charset'.
2318
2319 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2320
2321         * chartab.c (map_char_table): Check a character is found in
2322         range->charset instead of non default value is defined in
2323         char-table when range is CHARTAB_RANGE_ROW.
2324
2325 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2326
2327         * chartab.c (map_char_id_table): Deleted.
2328         (Fmap_char_attribute): Use `map_char_table' instead of
2329         `map_char_id_table'.
2330
2331 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2332
2333         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2334         UTF-2000.
2335         (update_syntax_table): Deleted in XEmacs UTF-2000.
2336
2337         * syntax.c (find_defun_start): Use `syntax_table' instead of
2338         `mirror_syntax_table' in XEmacs UTF-2000.
2339         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2340         UTF-2000.
2341         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2342         XEmacs UTF-2000.
2343         (Fmatching_paren): Likewise.
2344         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2345         in XEmacs UTF-2000.
2346         (find_start_of_comment): Likewise.
2347         (find_end_of_comment): Likewise.
2348         (Fforward_comment): Likewise.
2349         (scan_lists): Likewise.
2350         (char_quoted): Likewise.
2351         (Fbackward_prefix_chars): Likewise.
2352         (scan_sexps_forward): Likewise.
2353         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2354         (update_syntax_table): Likewise.
2355
2356         * search.c (skip_chars): Use `syntax_table' instead of
2357         `mirror_syntax_table' in XEmacs UTF-2000.
2358         (wordify): Likewise.
2359         (Freplace_match): Likewise.
2360
2361         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2362         `mirror_syntax_table' in XEmacs UTF-2000.
2363         (WORDCHAR_P_UNSAFE): Likewise.
2364         (re_match_2_internal): Likewise.
2365
2366         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2367         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2368
2369         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2370         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2371
2372         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2373         XEmacs UTF-2000.
2374
2375         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2376         UTF-2000.
2377         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2378         (char_table_description): Delete `mirror_table' in XEmacs
2379         UTF-2000.
2380         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2381         UTF-2000.
2382         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2383         (Fcopy_char_table): Likewise.
2384         (put_char_table): Don't call `update_syntax_table' in XEmacs
2385         UTF-2000.
2386
2387         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2388         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2389         (casify_region_internal): Likewise.
2390
2391         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2392
2393         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2394         `mirror_syntax_table' in XEmacs UTF-2000.
2395
2396         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2397         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2398         (Fexpand_abbrev): Likewise.
2399
2400 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2401
2402         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2403
2404 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2405
2406         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2407         (map_over_uint16_byte_table): Likewise.
2408         (map_over_byte_table): Likewise.
2409         (get_char_id_table): Refer `cit->default_value'.
2410         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2411         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2412         of character-id ranges.
2413         (mark_char_table): Mark `ct->default_value'.
2414         (char_table_description): Add `default_value'.
2415         (fill_char_table): Use `default_value'.
2416         (decode_char_table_range): Decode `nil' as
2417         `CHARTAB_RANGE_DEFAULT'.
2418         (get_char_id_table): Refer `cit->default_value'.
2419         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2420         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2421         temporary hack; check value of char-table is bound or not.
2422         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2423
2424         * chartab.h (struct Lisp_Char_Table): Add new member
2425         `default_value' in XEmacs UTF-2000.
2426         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2427         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2428         UTF-2000.
2429
2430 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2431
2432         * chartab.h (Lisp_Char_ID_Table): Deleted.
2433
2434         * chartab.c (char_table_description): Fix typo.
2435         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2436         `Lisp_Char_ID_Table'.
2437
2438 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2439
2440         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2441         `CHAR_ID_TABLE_P'.
2442
2443         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2444         `CHAR_ID_TABLE_P'.
2445
2446         * chartab.h (XCHAR_ID_TABLE): Deleted.
2447         (XSETCHAR_ID_TABLE): Deleted.
2448         (CHAR_ID_TABLE_P): Deleted.
2449
2450         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2451         `CHAR_ID_TABLE_P'.
2452         (Fget_composite_char): Likewise.
2453         (put_char_table): Likewise.
2454         (add_char_attribute_alist_mapper): Fixed.
2455         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2456         `CHAR_ID_TABLE_P'.
2457         (Fget_char_attribute): Likewise.
2458         (Fget_char_attribute): Likewise.
2459         (Fmap_char_attribute): Likewise.
2460
2461         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2462         `CHAR_ID_TABLE_P'.
2463         (encode_char_1): Likewise.
2464
2465 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2466
2467         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2468         `XCHAR_ID_TABLE'.
2469
2470         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2471         instead of `XCHAR_ID_TABLE'.
2472         (remove_char_ccs): Likewise.
2473
2474         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2475         `XCHAR_ID_TABLE'.
2476         (Fget_composite_char): Likewise.
2477         (Fchar_variants): Likewise.
2478         (put_char_table): Likewise.
2479         (add_char_attribute_alist_mapper): Likewise.
2480         (Fchar_attribute_alist): Likewise.
2481         (Fget_char_attribute): Likewise.
2482         (Fput_char_attribute): Likewise.
2483         (Fmap_char_attribute): Likewise.
2484         (Fmap_char_attribute): Likewise.
2485
2486         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2487         `XCHAR_ID_TABLE'.
2488         (encode_char_1): Likewise.
2489
2490 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2491
2492         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2493         `Lisp_Char_ID_Table'.
2494         (mark_char_id_table): Deleted.
2495         (print_char_id_table): Likewise.
2496         (char_id_table_equal): Likewise.
2497         (char_id_table_hash): Likewise.
2498         (char_id_table_description): Likewise.
2499         (char_id_table): Likewise.
2500         (make_char_id_table): Use `Fmake_char_table' and
2501         `fill_char_table'.
2502         (get_char_id_table): Use `Lisp_Char_Table' instead of
2503         `Lisp_Char_ID_Table'.
2504         (put_char_id_table): Likewise.
2505         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2506         `XCHAR_ID_TABLE'.
2507         (Fremove_char_attribute): Likewise.
2508         (syms_of_chartab): Don't define type `char-id-table'.
2509
2510         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2511         (char_id_table): Likewise.
2512         (GC_CHAR_ID_TABLE_P): Likewise.
2513         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2514         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2515         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2516         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2517         (get_char_id_table): Use `Lisp_Char_Table' instead of
2518         `Lisp_Char_ID_Table'.
2519         (put_char_id_table_0): Likewise.
2520         (put_char_id_table): Likewise.
2521
2522 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2523
2524         * chartab.h: Lisp_Byte_Table related codes are moved from
2525         chartab.h.
2526
2527         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2528
2529 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2530
2531         * chartab.h: Don't include "chartab.h".
2532         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2533         (Lisp_Char_ID_Table): Likewise.
2534         (char_id_table): Likewise.
2535         (XCHAR_ID_TABLE): Likewise.
2536         (XSETCHAR_ID_TABLE): Likewise.
2537         (CHAR_ID_TABLE_P): Likewise.
2538         (GC_CHAR_ID_TABLE_P): Likewise.
2539         (get_char_id_table): Likewise.
2540
2541         * char-ucs.h: Include "chartab.h".
2542         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2543         (Lisp_Char_ID_Table): Likewise.
2544         (char_id_table): Likewise.
2545         (XCHAR_ID_TABLE): Likewise.
2546         (XSETCHAR_ID_TABLE): Likewise.
2547         (CHAR_ID_TABLE_P): Likewise.
2548         (GC_CHAR_ID_TABLE_P): Likewise.
2549         (get_char_id_table): Likewise.
2550
2551 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2552
2553         * chartab.c (copy_uint8_byte_table): New function.
2554         (copy_uint16_byte_table): New function.
2555         (copy_byte_table): New function.
2556         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2557         characters to call.
2558         (map_over_uint16_byte_table): Likewise.
2559         (map_over_byte_table): Likewise.
2560         (get_byte_table): Move prototype to chartab.h.
2561         (put_byte_table): Likewise.
2562         (put_char_id_table_0): Moved to chartab.h.
2563         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2564         (char_table_entry_equal): Likewise.
2565         (char_table_entry_hash): Likewise.
2566         (char_table_entry_description): Likewise.
2567         (char_table_entry): Likewise.
2568         (make_char_table_entry): Likewise.
2569         (copy_char_table_entry): Likewise.
2570         (get_non_ascii_char_table_value): Likewise.
2571         (map_over_charset_ascii): Likewise.
2572         (map_over_charset_control_1): Likewise.
2573         (map_over_charset_row): Likewise.
2574         (map_over_other_charset): Likewise.
2575         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2576         (print_char_table): Likewise.
2577         (char_table_equal): Likewise.
2578         (char_table_hash): Likewise.
2579         (char_table_description): Likewise.
2580         (fill_char_table): Likewise.
2581         (Fcopy_char_table): Likewise.
2582         (get_char_table): Likewise.
2583         (Fget_range_char_table): Likewise.
2584         (put_char_table): Likewise.
2585         (map_char_table): Likewise.
2586         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2587         UTF-2000.
2588
2589 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2590
2591         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2592         `Vauto_fill_chars' in XEmacs UTF-2000.
2593
2594         * chartab.h (get_byte_table): New prototype [moved from
2595         chartab.c].
2596         (put_byte_table): Likewise [moved from chartab.c].
2597         (put_char_id_table_0): New inline function [moved from chartab.c].
2598         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2599         (Lisp_Char_Table_Entry): Likewise.
2600         (char_table_entry): Likewise.
2601         (XCHAR_TABLE_ENTRY): Likewise.
2602         (XSETCHAR_TABLE_ENTRY): Likewise.
2603         (CHAR_TABLE_ENTRYP): Likewise.
2604         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2605         (NUM_ASCII_CHARS): Likewise.
2606         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2607         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2608
2609 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2610
2611         * chartab.c (get_char_id_table): Change interface.
2612         (put_char_id_table_0): New function.
2613         (put_char_id_table): Change interface; new implementation.
2614         (Fget_composite_char): Modify for interface change of
2615         `get_char_id_table'.
2616         (Fchar_variants): Likewise.
2617         (add_char_attribute_alist_mapper): Likewise.
2618         (Fchar_attribute_alist): Likewise.
2619         (Fget_char_attribute): Likewise.
2620         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2621         as same as character as the first argument like `put-char-table';
2622         modify for interface change of `put_char_id_table'.
2623         (Fremove_char_attribute): Modify for interface change of
2624         `put_char_id_table'.
2625
2626 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2627
2628         * text-coding.c: Sync up with XEmacs 21.2.41.
2629         (COMPOSE_ADD_CHAR): Modify for interface change of
2630         `get_char_id_table'.
2631
2632         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2633         change of `put_char_id_table'.
2634         (remove_char_ccs): Likewise.
2635
2636         * chartab.h (put_char_id_table): Change interface.
2637
2638         * char-ucs.h (get_char_id_table): Change interface.
2639         (charset_code_point): Modify for interface change of
2640         `get_char_id_table'.
2641         (encode_char_1): Likewise.
2642
2643 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2644
2645         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2646         argument `ccs'.
2647         (map_over_uint16_byte_table): Likewise.
2648         (map_over_byte_table): Likewise.
2649         (map_char_id_table): Add new argument `range' like
2650         `map_char_table'.
2651         (Fmap_char_attribute): Add new argument `range' like
2652         `Fmap_char_table'.
2653
2654 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2655
2656         * chartab.c (map_over_uint8_byte_table): Change interface of
2657         mapping function to use struct chartab_range instead of Emchar.
2658         (map_over_uint16_byte_table): Likewise.
2659         (map_over_byte_table): Likewise.
2660         (map_char_id_table): Likewise.
2661         (struct slow_map_char_id_table_arg): Deleted.
2662         (slow_map_char_id_table_fun): Deleted.
2663         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2664         function `slow_map_char_table_fun' instead of struct
2665         `slow_map_char_id_table_arg' and function
2666         `slow_map_char_id_table_fun'.
2667
2668 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2669
2670         * mule-charset.c: Move char-it-table related codes to chartab.c.
2671         (Vutf_2000_version): Moved to chartab.c.
2672         (Fdefine_char): Likewise.
2673         (Ffind_char): Likewise.
2674         (syms_of_mule_charset): Move types `uint8-byte-table',
2675         `uint16-byte-table', `byte-table' and `char-id-table' to
2676         chartab.c; move functions `char_attribute_list,
2677         `find_char_attribute_table, `char_attribute_alist,
2678         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2679         `map_char_attribute, `define_char, `find_char, `char_variants and
2680         `get_composite_char to chartab.c; move symbols `=>ucs',
2681         `->decomposition', `compat', `isolated', `initial', `medial',
2682         `final', `vertical', `noBreak', `fraction', `super', `sub',
2683         `circle', `square', `wide', `narrow', `small' and `font' to
2684         chartab.c.
2685         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2686         setting codes for `Vcharacter_composition_table' and
2687         `Vcharacter_variant_table' to chartab.c.
2688         (complex_vars_of_mule_charset): Move setting code for
2689         `Vchar_attribute_hash_table' to chartab.c.
2690
2691         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2692         (make_char_id_table): New prototype.
2693         (put_char_id_table): Likewise.
2694         (Fget_char_attribute): Likewise.
2695
2696         * chartab.c: Move char-id-table related code from mule-charset.c.
2697         (Vutf_2000_version): Moved from mule-charset.c.
2698
2699         * char-ucs.h (Qucs): New external variable.
2700         (put_char_ccs_code_point): New prototype.
2701         (remove_char_ccs): Likewise.
2702
2703 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2704
2705         * mule-charset.c (Vcharset_ucs_jis): New variable.
2706         (Qucs_jis): Likewise.
2707         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2708         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2709
2710         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2711
2712 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2713
2714         * mule-charset.c (map_over_uint8_byte_table): New function.
2715         (map_over_uint16_byte_table): Likewise.
2716         (map_over_byte_table): Likewise.
2717         (map_char_id_table): Likewise.
2718         (slow_map_char_id_table_fun): Likewise.
2719         (Fmap_char_attribute): Likewise.
2720         (syms_of_mule_charset): Add new function `map-char-attribute'.
2721
2722 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2723
2724         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2725         (syms_of_mule_charset): Add new function `find-char'.
2726
2727 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2728
2729         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2730         XEmacs UTF-2000.
2731         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2732         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2733         XEmacs UTF-2000.
2734         (complex_vars_of_mule_charset): Add new coded-charset
2735         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2736         `ideograph-gt-pj-*'.
2737
2738         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2739
2740 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2741
2742         * mule-charset.c (encode_builtin_char_1): Purge codes about
2743         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2744         {MIN|MAX}_CHAR_HEBREW.
2745         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2746         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2747
2748         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2749         (MAX_CHAR_GREEK): Purged.
2750         (MIN_CHAR_CYRILLIC): Purged.
2751         (MAX_CHAR_CYRILLIC): Purged.
2752         (MIN_CHAR_HEBREW): Commented out.
2753         (MAX_CHAR_HEBREW): Likewise.
2754
2755 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2756
2757         * mule-charset.c (Qto_ucs): New variable.
2758         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2759         (Fdefine_char): Likewise.
2760         (syms_of_mule_charset): Add new symbol `=>ucs'.
2761
2762 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2763
2764         * mule-charset.c (Fdecode_char): Fixed.
2765
2766 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2767
2768         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2769         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2770         "tcvn5712-1".
2771
2772 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2773
2774         * mule-charset.c (Vcharset_ucs_big5): New variable.
2775         (Qucs_big5): Likewise.
2776         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2777         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2778
2779         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2780
2781 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2782
2783         * mule-charset.c (decode_builtin_char): Check Big5 code range
2784         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2785
2786 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2787
2788         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2789         (Qchinese_gb12345): Likewise.
2790         (Fdecode_builtin_char): Fixed.
2791         (syms_of_mule_charset): Add `chinese-gb12345'.
2792         (complex_vars_of_mule_charset): Add coded-charset
2793         `chinese-gb12345'.
2794
2795         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2796         (LEADING_BYTE_CHINESE_GB12345): New macro.
2797
2798 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2799
2800         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2801         and `latin-viscii-upper' for `latin-viscii'.
2802
2803 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2804
2805         * mule-charset.c (Fdecode_builtin_char): Comment out
2806         regularization code for ISO-IR GR representation.
2807
2808 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2809
2810         * mule-charset.c (decode_builtin_char): New function; renamed from
2811         `make_builtin_char'; return -1 instead of signal.
2812         (Fdecode_builtin_char): Use `decode_builtin_char'.
2813
2814         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2815         `make_builtin_char'.
2816         (DECODE_CHAR): Use `decode_builtin_char' instead of
2817         `make_builtin_char'; use mapping table of `chinese-big5' for
2818         `chinese-big5-{1,2}'.
2819
2820 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2821
2822         * text-coding.c (char_encode_big5): New function.
2823         (char_finish_big5): Likewise.
2824         (reset_encoding_stream): Use `char_encode_big5' and
2825         `char_finish_big5' for CODESYS_BIG5.
2826         (mule_encode): Don't use `encode_coding_big5'.
2827         (encode_coding_big5): Deleted.
2828
2829 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2830
2831         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2832         0x81- in XEmacs UTF-2000.
2833         (detect_coding_big5): Likewise.
2834
2835 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2836
2837         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2838         generate character-id if the CCS property does not have
2839         corresponding predefined character.
2840         (make_builtin_char): Return -1 if corresponding predefined
2841         character is not found.
2842         (Fdecode_char): Return nil if corresponding character is not
2843         found.
2844         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2845         don't map to builtin ucs space.
2846
2847 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2848
2849         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2850         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2851
2852 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2853
2854         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2855         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2856         (Qideograph_gt): Likewise.
2857         (Qideograph_gt_pj_{1..11}): Likewise.
2858         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2859         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2860         `ideograph-gt-pj-11'.
2861         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2862         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2863         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2864
2865         * char-ucs.h (LEADING_BYTE_GT): New macro.
2866         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2867         (MIN_CHAR_GT): Likewise.
2868         (MAX_CHAR_GT): Likewise.
2869
2870 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2871
2872         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2873         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2874
2875         * doprnt.c (unsigned_int_converters): Add `c'.
2876         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2877
2878         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2879         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2880         `MIN_CHAR_MOJIKYO'.
2881         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2882         (MAX_CHAR_MOJIKYO_0): New macro.
2883         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2884
2885 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2886
2887         * mule-charset.c (Fdefine_char): Delete cemented out code.
2888         (encode_builtin_char_1): Modify for new allocation of builtin
2889         Mojikyo characters.
2890
2891         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2892
2893 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2894
2895         * mule-charset.c (Vcharset_ucs_cns): New variable.
2896         (Qucs_cns): New variable.
2897         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2898         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2899
2900 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2901
2902         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2903
2904 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2905
2906         * search.c (search_buffer): Make `charset_base_code' as
2907         character-id >> 6 to eliminate the corresponding last byte in
2908         UTF-8 representation [I'm not sure it is right thing].
2909         (boyer_moore): Likewise.
2910
2911 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2912
2913         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2914         representation in MULE.
2915
2916 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2917
2918         * text-coding.c (Fmake_coding_system): Use
2919         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2920         `EXTERNAL_PROPERTY_LIST_LOOP'.
2921
2922 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2923
2924         * text-coding.c (decode_output_utf8_partial_char): New function.
2925         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2926
2927 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2928
2929         * text-coding.c (decode_coding_utf8): Output original byte
2930         sequence if it is broken; change order of conditions.
2931
2932         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2933         of conditions.
2934
2935         * mb-multibyte.h (BYTE_ASCII_P):
2936         Use bit ops for char-signedness safety.
2937         (BYTE_C0_P): Use bit ops for char-signedness safety.
2938         (BYTE_C1_P): Use bit ops for char-signedness safety.
2939
2940         * character.h: (XCHAR_OR_CHAR_INT):
2941         Always use inline function.
2942         Remove redundant type checking assert() - XINT will abort quite
2943         nicely.
2944
2945 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2946
2947         * text-coding.c: (Fencode_shift_jis_char):
2948         (Fencode_big5_char):
2949         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2950         Replace 0 with '\0' when working with bytes.
2951         Replace initial "(" with "\(" in docstrings.
2952
2953         (Fmake_coding_system):
2954         When type is ccl and value is vector, register it with a proper
2955         symbol.  And checks whether the given ccl program is valid.
2956         (mule_decode): When calling ccl_driver, if src indicates
2957         NULL pointer, set an empty string instead.
2958         (mule_encode): Likewise.
2959
2960         (detect_eol_type):
2961         (detect_coding_sjis):
2962         (decode_coding_sjis):
2963         (detect_coding_big5):
2964         (decode_coding_big5):
2965         (detect_coding_ucs4):
2966         (decode_coding_ucs4):
2967         (detect_coding_utf8):
2968         (decode_coding_utf8):
2969         (detect_coding_iso2022):
2970         (decode_coding_iso2022):
2971         (decode_coding_no_conversion):
2972         (mule_decode):
2973         Make all detecting and decoding functions take an Extbyte * arg.
2974         (text_encode_generic):
2975         (encode_coding_big5):
2976         (encode_coding_no_conversion):
2977         (mule_encode):
2978         Make all encoding functions take a Bufbyte * arg.
2979         Use size_t instead of unsigned int for memory sizes.
2980         Only cast to unsigned char whenever dereferencing Extbyte *.
2981
2982         (struct lrecord_description fcd_description_1): Use countof.
2983         (complex_vars_of_file_coding):
2984         Use countof instead of sizeof.
2985         Use CHECK_NATNUM instead of CHECK_INT.
2986
2987 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2988
2989         * mule-charset.c (Fget_char_attribute): Add new optional argument
2990         `default-value'.
2991         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2992         (remove_char_ccs): Likewise.
2993
2994 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2995
2996         * text-coding.c (char_encode_shift_jis): New implementation in
2997         UTF-2000.
2998         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2999         ...)'.
3000
3001         * mule-charset.c (Vcharset_chinese_big5): New variable in
3002         UTF-2000.
3003         (Qchinese_big5): New variable in UTF-2000.
3004         (BIG5_SAME_ROW): New macro in UTF-2000.
3005         (make_builtin_char): Use builtin characters of
3006         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3007         characters of `Vcharset_chinese_big5'.
3008         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3009         (complex_vars_of_mule_charset): Add new coded-charset
3010         `chinese-big5' in UTF-2000.
3011
3012         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3013         (Vcharset_chinese_big5): New external variable declaration.
3014         (Vcharset_japanese_jisx0208_1990): Likewise.
3015
3016 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3017
3018         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3019         function.
3020         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3021
3022 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3023
3024         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3025         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3026         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3027         `mojikyo-pj-*'.
3028
3029 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3030
3031         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3032
3033 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3034
3035         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3036         to 0.17.
3037
3038 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3039
3040         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3041         for `CHARSET_BY_ATTRIBUTES'.
3042         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3043         `CHARSET_BY_ATTRIBUTES'.
3044
3045         * text-coding.c (struct decoding_stream): Rename member `CH' to
3046         `CPOS'.
3047         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3048         (decode_coding_sjis): Likewise.
3049         (decode_coding_big5): Likewise.
3050         (decode_coding_ucs4): Likewise.
3051         (decode_coding_utf8): Likewise.
3052         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3053         `CHARSET_BY_ATTRIBUTES'.
3054         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3055         `str->counter'; decode 3, 4 bytes sets.
3056         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3057         sets.
3058         (decode_coding_no_conversion): Use `str->cpos' instead of
3059         `str->ch'.
3060
3061         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3062         (Qmojikyo_2022_1): New variable.
3063         (make_charset): Don't use `CHARSET_TYPE_*'.
3064         (range_charset_code_point): Support coded-charset
3065         `mojikyo-2022-1'.
3066         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3067         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3068         `CHARSET_BY_ATTRIBUTES'.
3069         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3070         `CHARSET_BY_ATTRIBUTES'.
3071         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3072         (complex_vars_of_mule_charset): Add new coded-charset
3073         `mojikyo-2022-1'.
3074
3075         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3076         interface; changed to inline function.
3077
3078         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3079         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3080         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3081         (CHARSET_TYPE_94): Deleted.
3082         (CHARSET_TYPE_94X94): Deleted.
3083         (CHARSET_TYPE_96): Deleted.
3084         (CHARSET_TYPE_96X96): Deleted.
3085         (CHARSET_TYPE_128): Deleted.
3086         (CHARSET_TYPE_128X128): Deleted.
3087         (CHARSET_TYPE_256): Deleted.
3088         (CHARSET_TYPE_256X256): Deleted.
3089         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3090         to inline function.
3091         (DECODE_MOJIKYO_2022): New inline function.
3092         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3093         `Vcharset_mojikyo_2022_1'.
3094
3095 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3096
3097         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3098         instead of `EQ'.
3099         (put_byte_table): Likewise.
3100         (char_id_table_equal): Use `get_byte_table' [new implementation].
3101
3102 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3103
3104         * mule-charset.c: Include <limits.h> in UTF-2000.
3105         (BT_UINT8_MIN): New macro in UTF-2000.
3106         (BT_UINT8_MAX): New macro in UTF-2000.
3107         (BT_UINT8_t): New macro in UTF-2000.
3108         (BT_UINT8_nil): New macro in UTF-2000.
3109         (BT_UINT8_unbound): New macro in UTF-2000.
3110         (INT_UINT8_P): New inline function in UTF-2000.
3111         (UINT8_VALUE_P): New inline function in UTF-2000.
3112         (UINT8_ENCODE): New inline function in UTF-2000.
3113         (UINT8_DECODE): New inline function in UTF-2000.
3114         (mark_uint8_byte_table): New function in UTF-2000.
3115         (print_uint8_byte_table): New function in UTF-2000.
3116         (uint8_byte_table_equal): New function in UTF-2000.
3117         (uint8_byte_table_hash): New function in UTF-2000.
3118         (make_uint8_byte_table): New function in UTF-2000.
3119         (uint8_byte_table_same_value_p): New function in UTF-2000.
3120         (BT_UINT16_MIN): New macro in UTF-2000.
3121         (BT_UINT16_MAX): New macro in UTF-2000.
3122         (BT_UINT16_t): New macro in UTF-2000.
3123         (BT_UINT16_nil): New macro in UTF-2000.
3124         (BT_UINT16_unbound): New macro in UTF-2000.
3125         (INT_UINT16_P): New inline function in UTF-2000.
3126         (UINT16_VALUE_P): New inline function in UTF-2000.
3127         (UINT16_ENCODE): New inline function in UTF-2000.
3128         (UINT16_DECODE): New inline function in UTF-2000.
3129         (UINT8_TO_UINT16): New inline function in UTF-2000.
3130         (mark_uint16_byte_table): New function in UTF-2000.
3131         (print_uint16_byte_table): New function in UTF-2000.
3132         (uint16_byte_table_equal): New function in UTF-2000.
3133         (uint16_byte_table_hash): New function in UTF-2000.
3134         (make_uint16_byte_table): New function in UTF-2000.
3135         (uint16_byte_table_same_value_p): New function in UTF-2000.
3136         (print_byte_table): New function in UTF-2000.
3137         (byte-table): Use `print_byte_table' as printer.
3138         (make_byte_table): Delete second argument `older'.
3139         (byte_table_same_value_p): New function in UTF-2000.
3140         (copy_byte_table): Deleted.
3141         (get_byte_table): New function in UTF-2000.
3142         (put_byte_table): New function in UTF-2000.
3143         (print_char_id_table): New function in UTF-2000.
3144         (char-id-table): Use `print_char_id_table' as printer.
3145         (make_char_id_table): Delete second argument `older'.
3146         (get_char_id_table): Use `get_byte_table [new implementation].
3147         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3148         implementation].
3149         (Ffind_char_attribute_table): New function in UTF-2000.
3150         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3151         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3152         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3153         (syms_of_mule_charset): Add new function
3154         `find-char-attribute-table' in UTF-2000.
3155
3156         * lrecord.h (enum lrecord_type): Add
3157         `lrecord_type_uint16_byte_table' and
3158         `lrecord_type_uint8_byte_table'.
3159
3160         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3161         (Lisp_Uint8_Byte_Table): New type.
3162         (XUINT8_BYTE_TABLE): New macro.
3163         (XSETUINT8_BYTE_TABLE): New macro.
3164         (UINT8_BYTE_TABLE_P): New macro.
3165         (GC_UINT8_BYTE_TABLE_P): New macro.
3166         (struct Lisp_Uint16_Byte_Table): New structure.
3167         (Lisp_Uint16_Byte_Table): New type.
3168         (XUINT16_BYTE_TABLE): New macro.
3169         (XSETUINT16_BYTE_TABLE): New macro.
3170         (UINT16_BYTE_TABLE_P): New macro.
3171         (GC_UINT16_BYTE_TABLE_P): New macro.
3172
3173 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3174
3175         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3176         (Vcharacter_ideographic_strokes_table): Deleted.
3177         (Vcharacter_total_strokes_table): Deleted.
3178         (Vcharacter_morohashi_daikanwa_table): Deleted.
3179         (Vcharacter_decomposition_table): Deleted.
3180         (Qname): Deleted because it is duplicated.
3181         (Qideographic_radical): Deleted.
3182         (Qideographic_strokes): Deleted.
3183         (Qtotal_strokes): Deleted.
3184         (Qmorohashi_daikanwa): Deleted.
3185         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3186         `ideographic-radical', `ideographic-strokes', `total-strokes',
3187         `morohashi-daikanwa' and `->decomposition'.
3188         (Fget_char_attribute): Likewise.
3189         (Fput_char_attribute): Likewise; use `make-vector' instead of
3190         `make_older_vector' for `->decomposition' value.
3191         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3192         `ideograph-daikanwa'.
3193         (syms_of_mule_charset): Delete builtin symbols `name',
3194         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3195         `morohashi-daikanwa'.
3196         (vars_of_mule_charset): Don't setup
3197         `Vcharacter_ideographic_radical_table',
3198         `Vcharacter_ideographic_strokes_table',
3199         `Vcharacter_total_strokes_table',
3200         `Vcharacter_morohashi_daikanwa_table' and
3201         `Vcharacter_decomposition_table'.
3202
3203 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3204
3205         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3206         `make_older_vector', `make_vector_newer_1' and
3207         `make_vector_newer'.
3208
3209         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3210         `make_older_vector' and `make_vector_newer'.
3211
3212         * config.h.in (HAVE_GGC): New macro.
3213
3214 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3215
3216         * mule-charset.c (struct char_attribute_list_closure): New
3217         structure in UTF-2000.
3218         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3219         (Fchar_attribute_list): Likewise.
3220         (Fset_charset_mapping_table): Use `make_vector_newer'.
3221         (Fdecode_builtin_char): New function in UTF-2000.
3222         (syms_of_mule_charset): Add new function `char-attribute-list' and
3223         `decode-builtin-char' in UTF-2000.
3224
3225         * lisp.h (make_vector_newer): New prototype.
3226
3227         * alloc.c (make_vector_newer_1): New function.
3228         (make_vector_newer): New function.
3229
3230 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3231
3232         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3233         50100)'.
3234
3235 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3236
3237         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3238         (Vcharacter_attribute_table): Deleted.
3239         (Vcharacter_name_table): Deleted.
3240         (put_char_attribute): Deleted.
3241         (remove_char_attribute): Deleted.
3242         (struct char_attribute_alist_closure): New structure.
3243         (add_char_attribute_alist_mapper): New function.
3244         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3245         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3246         (Fget_char_attribute): Likewise.
3247         (Fput_char_attribute): Likewise.
3248         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3249         of `remove_char_attribute'.
3250         (Fdefine_char): Return character.
3251         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3252         and `Vcharacter_name_table'.
3253         (complex_vars_of_mule_charset): Likewise
3254         `Vchar_attribute_hash_table'.
3255
3256 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3257
3258         * character.h (CHARC_CHARSET): New macro.
3259         (CHARC_CHARSET_ID): New macro.
3260         (CHARC_CODE_POINT): New macro.
3261         (CHARC_COLUMNS): New macro.
3262         (CHARC_TO_CHAR): New inline function.
3263         (CHARC_EQ): New inline function.
3264         (CHARC_ASCII_EQ): New inline function.
3265         (CHARC_IS_SPACE): New inline function.
3266         (ASCII_TO_CHARC): New inline function.
3267
3268         * char-ucs.h (encode_char_2): Deleted.
3269         (ENCODE_CHAR): Use `encode_char_1' again.
3270         (breakup_char_1): Likewise.
3271         (CHAR_TO_CHARC): New inline function.
3272
3273         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3274
3275 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3276
3277         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3278         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3279         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3280         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3281         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3282         `CHARC_IS_SPACE'.
3283         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3284
3285         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3286         `CHARC_CODE_POINT'.
3287         (x_output_display_block): Use `CHARC_CHARSET' and
3288         `CHARC_ASCII_EQ'.
3289
3290         * redisplay-tty.c (tty_output_display_block): Use
3291         `CHARC_ASCII_EQ'.
3292         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3293
3294         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3295
3296         * insdel.c (find_charsets_in_charc_string): Use
3297         `CHARC_CHARSET_ID'.
3298         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3299         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3300         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3301         (convert_charc_string_into_malloced_string): Likewise.
3302
3303 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3304
3305         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3306         instead of <Emchar_dynarr *> for buf; use
3307         `convert_bufbyte_string_into_charc_dynarr' instead of
3308         `convert_bufbyte_string_into_emchar_dynarr'; use
3309         `find_charsets_in_charc_string' instead of
3310         `find_charsets_in_emchar_string'.
3311
3312         * redisplay.h:
3313         - Include "character.h".
3314         (struct rune): New member `cglyph'; delete member `chr'.
3315
3316         * redisplay.c (redisplay_text_width_charc_string): New function;
3317         delete `redisplay_text_width_emchar_string'.
3318         (rtw_charc_dynarr): New variable; renamed from
3319         `rtw_emchar_dynarr'.
3320         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3321         `rtw_emchar_dynarr'; use
3322         `convert_bufbyte_string_into_charc_dynarr' instead of
3323         `convert_bufbyte_string_into_emchar_dynarr'; use
3324         `redisplay_text_width_charc_string' instead of
3325         `redisplay_text_width_emchar_string'.
3326         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3327         instead of `rtw_emchar_dynarr'; use
3328         `convert_bufbyte_string_into_charc_dynarr' instead of
3329         `convert_bufbyte_string_into_emchar_dynarr'.
3330         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3331         `redisplay_text_width_charc_string' instead of
3332         `redisplay_text_width_emchar_string'.
3333         (create_text_block): Modify for <struct rune> change.
3334         (generate_formatted_string_db): Likewise.
3335         (create_string_text_block): Likewise.
3336         (pixel_to_glyph_translation): Likewise.
3337
3338         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3339         instead of <const Emchar *>.
3340         (x_text_width): Likewise.
3341         (x_output_display_block): Use <Charc_dynarr *> instead
3342         <Emchar_dynarr *>; modify for <structure rune> change.
3343         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3344         *>.
3345
3346         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3347         <const Emchar *>; use `charc_string_displayed_columns' instead of
3348         `emchar_string_displayed_columns'.
3349         (tty_output_display_block): Use <Charc_dynarr *> instead of
3350         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3351         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3352         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3353         `tty_output_emchar_dynarr_dynarr'.
3354         (tty_output_charc_dynarr): New function; delete
3355         `tty_output_charc_dynarr'.
3356
3357         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3358         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3359         <Emchar_dynarr *> for buf; use
3360         `convert_bufbyte_string_into_charc_dynarr' instead of
3361         `convert_bufbyte_string_into_emchar_dynarr'.
3362
3363         * frame.c (title_string_charc_dynarr): New variable; renamed from
3364         `title_string_emchar_dynarr'.
3365         (generate_title_string): Use `title_string_charc_dynarr' instead
3366         of `title_string_emchar_dynarr'; use
3367         `convert_charc_string_into_malloced_string' instead of
3368         `convert_emchar_string_into_malloced_string'.
3369         (init_frame): Use `title_string_charc_dynarr' instead of
3370         `title_string_emchar_dynarr'.
3371
3372         * console.h:
3373         - Include "character.h".
3374         (struct console_methods): Use <const Charc *> instead of <const
3375         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3376         <Emchar_dynarr *> in output_string_method.
3377
3378         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3379         <Emchar_dynarr *>.
3380
3381         * console-stream.c (stream_text_width): Use <const Charc *>
3382         instead of <const Emchar *>.
3383
3384         * character.h (Charc_dynarr): New type.
3385
3386         * char-ucs.h (structure Charc): New structure; define new type
3387         `Charc'.
3388
3389         * char-lb.h (DECODE_CHAR): New inline function.
3390         (encode_char_1): New inline function.
3391         (ENCODE_CHAR): New macro.
3392         (structure Charc): New structure; define new type `Charc'.
3393
3394         * char-1byte.h (Vcharset_control_1): New macro.
3395         (Vcharset_latin_iso8859_1): New macro.
3396         (DECODE_CHAR): New inline function.
3397         (encode_char_1): New inline function.
3398         (ENCODE_CHAR): New macro.
3399         (structure Charc): New structure; define new type `Charc'.
3400
3401         * insdel.c (find_charsets_in_charc_string): New function; delete
3402         `find_charsets_in_emchar_string'.
3403         (charc_string_displayed_columns): New function; delete
3404         `emchar_string_displayed_columns'.
3405         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3406         `convert_bufbyte_string_into_emchar_dynarr'.
3407         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3408         `convert_charc_string_into_bufbyte_dynarr'.
3409         (convert_charc_string_into_malloced_string): New function; delete
3410         `convert_charc_string_into_malloced_string'.
3411
3412         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3413         `find_charsets_in_emchar_string'.
3414         (charc_string_displayed_columns): New prototype; delete
3415         `emchar_string_displayed_columns'.
3416         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3417         `convert_charc_string_into_bufbyte_dynarr'.
3418         (convert_charc_string_into_malloced_string): New prototype; delete
3419         `convert_charc_string_into_malloced_string'.
3420
3421 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3422
3423         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3424
3425 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3426
3427         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3428
3429         * char-ucs.h: Use <short> for <Charset_ID>.
3430
3431         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3432         <Charset_ID>.
3433
3434 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3435
3436         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3437         to 0.16.
3438
3439 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3440
3441         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3442         variable.
3443         (Qmorohashi_daikanwa): New variable.
3444         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3445         for `morohashi-daikanwa' attribute.
3446         (Fget_char_attribute): Likewise.
3447         (Fput_char_attribute): Likewise.
3448         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3449         has the same value of `ideograph-daikanwa'.
3450         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3451         (vars_of_mule_charset): Setup
3452         `Vcharacter_morohashi_daikanwa_table'.
3453
3454 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3455
3456         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3457         attributes.
3458         (add_charset_to_list_mapper): Add `key' instead of
3459         `XCHARSET_NAME (value)' to return aliases.
3460
3461 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3462
3463         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3464         variable.
3465         (Vcharacter_ideographic_strokes_table): New variable.
3466         (Qideographic_radical): New variable.
3467         (Qideographic_strokes): New variable.
3468         (Fchar_attribute_alist): Use
3469         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3470         attribute; use `Vcharacter_ideographic_strokes_table' for
3471         `ideographic-strokes' attribute.
3472         (Fget_char_attribute): Likewise.
3473         (Fput_char_attribute): Likewise.
3474         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3475         `ideographic-strokes'.
3476         (vars_of_mule_charset): Setup
3477         `Vcharacter_ideographic_radical_table' and
3478         `Vcharacter_ideographic_strokes_table'.
3479
3480 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3481
3482         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3483         (Qtotal_strokes): New variable.
3484         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3485         `total-strokes' attribute.
3486         (Fget_char_attribute): Likewise.
3487         (Fput_char_attribute): Likewise.
3488         (syms_of_mule_charset): Add new symbol `total-strokes'.
3489         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3490
3491 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3492
3493         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3494         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3495         are found.
3496         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3497         `->decomposition' attribute.
3498         (Fput_char_attribute): Likewise.
3499         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3500
3501 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3502
3503         * mule-charset.c (decoding_table_check_elements): New function.
3504         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3505
3506 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3507
3508         * mule-charset.c (Fset_charset_mapping_table): Use
3509         `put_char_ccs_code_point'.
3510
3511 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3512
3513         * mule-charset.c (decoding_table_put_char): New inline function.
3514         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3515
3516 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3517
3518         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3519         (XCHARSET_BYTE_SIZE): New macro.
3520         (decoding_table_remove_char): New inline function.
3521         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3522         `decoding_table_remove_char'.
3523         (remove_char_ccs): Use `decoding_table_remove_char'.
3524         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3525
3526 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3527
3528         * mule-charset.c (Vcharacter_name_table): New variable.
3529         (Qname): New variable.
3530         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3531         attribute.
3532         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3533         `Vcharacter_name_table' for `name' attribute.
3534         (Fremove_char_attribute): Use function `remove_char_ccs'.
3535         (put_char_ccs_code_point): New function.
3536         (remove_char_ccs): New function.
3537         (syms_of_mule_charset): Add new symbol `name'.
3538         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3539
3540 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3541
3542         * mule-charset.c (make_byte_table): Add new argument `older'.
3543         (make_char_id_table): Likewise.
3544         (copy_char_id_table): Comment out because it is not used.
3545         (put_char_id_table): Modify for `make_byte_table'.
3546         (Fput_char_attribute): Make encoding_table as older object;
3547         inherit older bit of `Vcharacter_composition_table'.
3548         (mark_charset): Don't mark `cs->encoding_table'.
3549         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3550         normal object; make `Vcharacter_composition_table' as an older
3551         object; delete staticpro for `Vcharacter_composition_table'; make
3552         `Vcharacter_variant_table' as a normal object.
3553
3554         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3555         (mark_object): Don't check older object in UTF-2000.
3556
3557         * lrecord.h (struct lrecord_header): Add new member `older' in
3558         UTF-2000.
3559         (set_lheader_implementation): Setup `SLI_header->older' in
3560         UTF-2000.
3561         (set_lheader_older_implementation): New macro in UTF-2000.
3562         (OLDER_RECORD_P): New macro in UTF-2000.
3563         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3564         (alloc_older_lcrecord): New prototype in UTF-2000.
3565         (alloc_older_lcrecord_type): New macro in UTF-2000.
3566
3567 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3568
3569         * mule-charset.c (byte_table_description): Use
3570         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3571         (char_id_table_description): Delete bogus `, 1'.
3572         (Fget_char_attribute): Refer encoding_table of each coded-charset
3573         to get value of coded-charset attribute of a character.
3574         (Fput_char_attribute): Use `make_older_vector' instead of
3575         `make_vector'; use encoding_table of each coded-charset to store
3576         value of coded-charset attribute of a character.
3577         (Fremove_char_attribute): Use encoding_table of each coded-charset
3578         to store value of coded-charset attribute of a character.
3579         (mark_charset): Mark `cs->encoding_table'; don't mark
3580         `cs->decoding_table'.
3581         (charset_description): Add description of new member
3582         `encoding_table'.
3583         (make_charset): Initialize `encoding_table'.
3584
3585         * char-ucs.h (struct Lisp_Charset): Add new member
3586         `encoding_table'.
3587         (CHARSET_ENCODING_TABLE): New macro.
3588         (XCHARSET_ENCODING_TABLE): New macro.
3589         (charset_code_point): New implementation.
3590         (encode_char_1): Likewise.
3591
3592         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3593         (disksave_object_finalization_1): Call finalizers of
3594         `all_older_lcrecords' in UTF-2000.
3595         (make_older_vector): New function in UTF-2000.
3596         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3597         UTF-2000.
3598
3599         * lisp.h (make_older_vector): New prototype in UTF-2000.
3600
3601 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3602
3603         * lrecord.h (enum lrecord_type): Rename
3604         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3605
3606         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3607         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3608         `get_char_code_table'.
3609
3610         * mule-charset.c (mark_char_id_table): Renamed from
3611         `mark_char_code_table'.
3612         (char_id_table_equal): Renamed from `char_code_table_equal'.
3613         (char_id_table_hash): Renamed from `char_code_table_hash'.
3614         (make_char_id_table): Renamed from `make_char_code_table'.
3615         (copy_char_id_table): Renamed from `copy_char_code_table'.
3616         (get_char_id_table): Renamed from `get_char_code_table'.
3617         (put_char_id_table): Renamed from `put_char_code_table'.
3618         (to_char_id): Renamed from `to_char_code'.
3619
3620         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3621         `Lisp_Char_Code_Table'.
3622         (char_id_table): Renamed from `char_code_table'.
3623         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3624         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3625         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3626         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3627         (get_char_id_table): Renamed from `get_char_code_table'.
3628
3629 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3630
3631         * lrecord.h (enum lrecord_type): Rename
3632         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3633
3634         * mule-charset.c (mark_byte_table): Renamed from
3635         `mark_char_byte_table'.
3636         (byte_table_equal): Renamed from `char_byte_table_equal'.
3637         (byte_table_hash): Renamed from `byte_table_hash'.
3638         (make_byte_table): Renamed from `make_byte_table'.
3639         (copy_byte_table): Renamed from `copy_char_byte_table'.
3640
3641         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3642         `Lisp_Char_Byte_Table'.
3643         (byte_table): Renamed from `char_byte_table'.
3644         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3645         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3646         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3647         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3648
3649 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3650
3651         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3652         (dfc_convert_to_internal_format): Likewise.
3653         
3654         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3655         * text-coding.c (Fcoding_system_alias_p): New function.
3656         * text-coding.c (Fcoding_system_aliasee): New function.
3657         * text-coding.c (append_suffix_to_symbol): New function.
3658         * text-coding.c (dangling_coding_system_alias_p): New function.
3659         * text-coding.c (Ffind_coding_system):
3660         * text-coding.c (Fcopy_coding_system):
3661         * text-coding.c (encode_coding_no_conversion):
3662         * text-coding.c (syms_of_file_coding):
3663         * text-coding.c (vars_of_file_coding):
3664         Rewrite coding system alias code.
3665         Allow nested aliases, like symbolic links.
3666         Allow redefinition of coding system aliases.
3667         Prevent existence of dangling coding system aliases.
3668         Eliminate convert_to_external_format.
3669         Eliminate convert_to_internal_format.
3670         
3671         * text-coding.c: Change enum eol_type to eol_type_t.
3672
3673 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3674
3675         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3676         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3677
3678         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3679         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3680
3681 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3682
3683         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3684         `ideograph-daikanwa'.
3685
3686         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3687         (Vcharset_ucs_bmp): Likewise.
3688         (Vcharset_mojikyo): Add new extern variable definition.
3689         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3690         (Vcharset_latin_iso8859_3): Likewise.
3691         (Vcharset_latin_iso8859_4): Likewise.
3692         (Vcharset_latin_iso8859_9): Likewise.
3693         (Vcharset_latin_viscii_lower): Likewise.
3694         (Vcharset_latin_viscii_upper): Likewise.
3695         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3696         `mojikyo' code-point is used to decode.
3697         (encode_char_2): New function [to convert `mojikyo' code-point to
3698         Mojikyo font encoding].
3699         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3700         (breakup_char_1): Likewise.
3701         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3702
3703 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3704
3705         * text-coding.c (Fmake_coding_system): Add document about
3706         `disable-composition' property.
3707
3708 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3709
3710         * text-coding.c (Qdisable_composition): New variable; delete
3711         `Qcomposite'.
3712         (Fmake_coding_system): Add new property `disable-composite';
3713         delete property `composite'.
3714         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3715         instead of `!CODING_SYSTEM_COMPOSITE'.
3716         (syms_of_file_coding): Add new symbol `disable-composition';
3717         delete symbol `composite'.
3718
3719         * file-coding.h (struct Lisp_Coding_System): Add
3720         `disable_composition'; delete `enable_composition'.
3721         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3722         `CODING_SYSTEM_COMPOSITE'.
3723         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3724         `XCODING_SYSTEM_COMPOSITE'.
3725
3726 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3727
3728         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3729         to 0.15.
3730
3731 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3732
3733         * text-coding.c (Qcomposite): New variable.
3734         (Fmake_coding_system): Add new property `composite'.
3735         (struct decoding_stream): Add `combined_char_count',
3736         `combined_chars' and `combining_table' in UTF-2000.
3737         (COMPOSE_FLUSH_CHARS): New macro.
3738         (COMPOSE_ADD_CHAR): New macro.
3739         (reset_decoding_stream): Reset `str->combined_char_count' and
3740         `str->combining_table' in UTF-2000.
3741         (decode_coding_iso2022): Modify for character-decomposition.
3742         (syms_of_file_coding): Add new symbol `composite'.
3743
3744 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3745
3746         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3747         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3748         of `Vcharacter_composition_table' if `->decomposition' property
3749         has only 1 element.
3750         (Qlatin_tcvn5712): New variable.
3751         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3752         (complex_vars_of_mule_charset): Add new coded-charset
3753         `latin-tcvn5712'.
3754
3755         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3756
3757 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3758
3759         * file-coding.h (struct Lisp_Coding_System): Add
3760         `enable_composition'.
3761         (CODING_SYSTEM_COMPOSITE): New macro.
3762         (XCODING_SYSTEM_COMPOSITE): New macro.
3763
3764 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3765
3766         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3767
3768 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3769
3770         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3771         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3772
3773 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3774
3775         * mule-charset.c (Vcharset_mojikyo): New variable.
3776         (Fdefine_char): Don't use coded-charset which does not have
3777         non-builtin character range to allocate character-id.
3778         (Qmojikyo): New variable.
3779         (syms_of_mule_charset): Add new symbol `mojikyo'.
3780         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3781
3782         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3783         (LEADING_BYTE_MOJIKYO): New macro.
3784         (MIN_CHAR_MOJIKYO): New macro.
3785         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3786         (MAX_CHAR_MOJIKYO): New macro.
3787
3788 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3789
3790         * mule-charset.c (remove_char_attribute): Fixed.
3791
3792 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3793
3794         * mule-charset.c (remove_char_attribute): New function.
3795         (Fremove_char_attribute): New function.
3796         (encode_builtin_char_1): Comment out builtin-support for
3797         greek-iso8859-7 and cyrillic-iso8859-5.
3798         (Fdecode_char): Check `code' is an integer.
3799         (syms_of_mule_charset): Add `remove-char-attribute'.
3800         (MIN_CHAR_GREEK): Deleted.
3801         (MAX_CHAR_GREEK): Likewise.
3802         (MIN_CHAR_CYRILLIC): Likewise.
3803         (MAX_CHAR_CYRILLIC): Likewise.
3804         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3805         MAX_CHAR_GREEK for `greek-iso8859-7'.
3806
3807         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3808         (MAX_CHAR_GREEK): Likewise.
3809         (MIN_CHAR_CYRILLIC): Likewise.
3810         (MAX_CHAR_CYRILLIC): Likewise.
3811
3812 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3813
3814         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3815         format is used without `ucs' property.
3816         (Fdecode_char): Fix problem with GR representation.
3817         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3818         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3819
3820 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3821
3822         * mule-charset.c (make_builtin_char): New function.
3823         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3824         (Fset_charset_mapping_table): Modify for new representation of
3825         code-point.
3826         (Fdecode_char): New function.
3827         (syms_of_mule_charset): Add new builtin function `decode-char' in
3828         UTF-2000.
3829
3830         * char-ucs.h (make_builtin_char): New prototype.
3831         (DECODE_CHAR): New inline function.
3832         (MAKE_CHAR): Use `DECODE_CHAR'.
3833
3834 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3835
3836         * text-coding.c (parse_charset_conversion_specs): Use
3837         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3838         `XCHARSET_TYPE'.
3839         (iso2022_designate): Likewise.
3840
3841         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3842         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3843
3844         * mule-charset.c (Vcharset_ucs): New variable.
3845         (print_charset): Change design; use `CHARSET_CHARS' and
3846         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3847         (make_charset): Change signature to specify `chars' and
3848         `dimension' instead of `type'.
3849         (range_charset_code_point): Modify for 256^n-set.
3850         (encode_builtin_char_1): Encode as `ucs' in default.
3851         (Fmake_charset): Modify for `make_charset'.
3852         (Fmake_reverse_direction_charset): Likewise.
3853         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3854         UTF-2000.
3855         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3856         for `make_charset'.
3857
3858         * char-ucs.h (Vcharset_ucs): New variable.
3859         (LEADING_BYTE_UCS): New macro.
3860         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3861         and `chars' to `unsigned short' from `unsigned int'.
3862         (CHARSET_TYPE): Deleted.
3863         (XCHARSET_TYPE): Deleted.
3864
3865 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3866
3867         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3868
3869         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3870         (ENCODE_CHAR): New macro.
3871
3872 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3873
3874         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3875         to 0.14 (Kawachi-Katakami).
3876
3877 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3878
3879         * text-coding.c (char_encode_shift_jis): Modify for
3880         `charset_code_point'.
3881         (char_encode_iso2022): Likewise.
3882
3883         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3884         (integer) instead of list of <Lisp_Object>s (integers) as the
3885         format of code-point of a coded-charset.
3886         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3887         (encode_builtin_char_1): New function; delete
3888         `split_builtin_char'.
3889         (charset_code_point): Return <int> instead of <Lisp_Object>.
3890         (Fsplit_char): Don't use `SPLIT_CHAR'.
3891
3892         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3893         prototype for `split_builtin_char'.
3894         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3895         (charset_code_point): Likewise.
3896         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3897         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3898
3899 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3900
3901         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3902         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3903
3904 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3905
3906         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3907
3908         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3909         (MAX_CHAR_OBS_94x94): Deleted.
3910
3911 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3912
3913         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3914
3915         * char-ucs.h (MAX_CHAR_BMP): New macro.
3916
3917 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3918
3919         * text-coding.c: Sync with r21-2-24.
3920
3921 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3922
3923         * file-coding.c: Modify for UTF-2000.
3924
3925 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3926
3927         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3928         to 0.13 (Takaida).
3929
3930 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3931
3932         * mule-charset.c (split_builtin_char): Delete builtin support for
3933         `katakana-jisx0201'.
3934         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3935         BMP area in builtin representation.
3936
3937         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3938         `Vcharset_katakana_jisx0201'.
3939
3940 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3941
3942         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3943         (Qisolated): New variable.
3944         (Qinitial): New variable.
3945         (Qmedial): New variable.
3946         (Qfinal): New variable.
3947         (Qvertical): New variable.
3948         (Qsmall): New variable.
3949         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3950         `Qvertical' and `Qsmall'.
3951         (Qmojikyo_pj_[1 .. 21]): New variable.
3952         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3953         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3954         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3955         .. 21]'.
3956
3957 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3958
3959         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3960         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3961         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3962
3963 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3964
3965         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3966         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3967         BMP.
3968         (Qjapanese_jisx0208_1990): New variable.
3969         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3970         (complex_vars_of_mule_charset): Add new coded-charset
3971         `japanese-jisx0208-1990'.
3972
3973         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3974         (MIN_CHAR_JIS_X0208_1990): New macro.
3975         (MAX_CHAR_JIS_X0208_1990): New macro.
3976
3977 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3978
3979         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3980         coded-charset is not found.
3981
3982 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3983
3984         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3985         (Fdefine_char): Use `Fmake_char'.
3986
3987 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3988
3989         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3990         (Vcharset_hiragana_jisx0208): Deleted.
3991         (Vcharset_katakana_jisx0208): Deleted.
3992         (Qideograph_daikanwa): New variable.
3993         (Qhiragana_jisx0208): Deleted.
3994         (Qkatakana_jisx0208): Deleted.
3995         (split_builtin_char): Split `ideograph-daikanwa'.
3996         (Fsplit_char): New implementation for UTF-2000.
3997         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3998         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3999         (complex_vars_of_mule_charset): Add new coded-charset
4000         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4001         `katakana-jisx0208'.
4002
4003         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4004         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4005         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4006         (MIN_CHAR_DAIKANWA): New macro.
4007         (MAX_CHAR_DAIKANWA): New macro.
4008
4009 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4010
4011         * data.c (Fstring_to_number): Don't recognize floating point if
4012         base is not 10.
4013
4014 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4015
4016         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4017
4018 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4019
4020         * mule-charset.c (Qsquare): New variable.
4021         (to_char_code): Add `Qsquare'.
4022         (syms_of_mule_charset): Add new symbol `square'.
4023
4024 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4025
4026         * mule-charset.c (Qcircle): New variable.
4027         (to_char_code): Add `Qcircle'.
4028         (syms_of_mule_charset): Add new symbol `circle'.
4029
4030 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4031
4032         * mule-charset.c (Qfont): New variable.
4033         (to_char_code): Add `Qfont'.
4034         (syms_of_mule_charset): Add new symbol `font'.
4035
4036 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4037
4038         * mule-charset.c (Qsub): New variable.
4039         (to_char_code): Add `Qsub'.
4040         (syms_of_mule_charset): Add new symbol `sub'.
4041
4042 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4043
4044         * mule-charset.c (Fput_char_attribute): Convert each element of
4045         VALUE to GL position if ATTRIBUTE is a GR-set,
4046
4047 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4048
4049         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4050         coded-charset is a GR-set.
4051
4052 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4053
4054         * mule-charset.c (Fput_char_attribute): Check each element of
4055         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4056
4057 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4058
4059         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4060         UTF-2000.
4061         (Qethiopic_ucs): New variable in UTF-2000.
4062         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4063         (complex_vars_of_mule_charset): Add new coded-charset
4064         `ethiopic-ucs' in UTF-2000.
4065
4066         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4067         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4068         9)'.
4069         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4070         10)'.
4071         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4072
4073 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4074
4075         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4076         `ascii'.
4077
4078 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4079
4080         * mule-charset.c (Vcharacter_variant_table): New variable.
4081         (Q_ucs): New variable.
4082         (Fchar_variants): New function.
4083         (Fput_char_attribute): Register `->ucs' value to
4084         `Vcharacter_variant_table'.
4085         (syms_of_mule_charset): Add new function `char-variants' and new
4086         symbol `->ucs'.
4087         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4088
4089 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4090
4091         * mule-charset.c (get_char_code_table): Allow negative character
4092         code.
4093         (put_char_code_table): Likewise.
4094         (Vcharacter_composition_table): New variable.
4095         (Q_decomposition): New variable.
4096         (Qwide): New variable.
4097         (Qnarrow): New variable.
4098         (Qcompat): New variable.
4099         (QnoBreak): New variable.
4100         (Qsuper): New variable.
4101         (Qfraction): New variable.
4102         (to_char_code): New function.
4103         (Fget_composite_char): New function.
4104         (Fput_char_attribute): Register `->decomposition' value to
4105         `Vcharacter_composition_table'.
4106         (syms_of_mule_charset): Add new function `get-composite-char', new
4107         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4108         `super' and `fraction'.
4109         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4110
4111 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4112
4113         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4114         character; copy the return value.
4115
4116 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4117
4118         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4119
4120         * mule-charset.c (range_charset_code_point): Must use make_int.
4121         (split_builtin_char): New function.
4122
4123 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4124
4125         * mule-charset.c (char_byte_table): Change name from
4126         "char-code-table" to "char-byte-table".
4127         (mark_char_code_table): New function.
4128         (char_code_table_equal): New function.
4129         (char_code_table_hash): New function.
4130         (char_code_table_description): New constant.
4131         (char_code_table): New type.
4132         (make_char_code_table): New function.
4133         (copy_char_code_table): New function.
4134         (get_char_code_table): Modify for `char_code_table' type.
4135         (put_char_code_table): Likewise.
4136         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4137         (Kashiwara).
4138
4139         * char-ucs.h (char_code_table): New type.
4140         (XCHAR_CODE_TABLE): New macro.
4141         (XSETCHAR_CODE_TABLE): New macro.
4142         (CHAR_CODE_TABLE_P): New macro.
4143         (GC_CHAR_CODE_TABLE_P): New macro.
4144         (struct Lisp_Char_Code_Table): New structure.
4145
4146 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4147
4148         * mule-charset.c (Fmake_charset): Setup byte_offset for
4149         {94|96}^n-set.
4150
4151 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4152
4153         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4154         character.
4155
4156 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4157
4158         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4159         is found.
4160
4161 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4162
4163         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4164         charset, it is regarded as a charset.
4165         (put_char_attribute): New function in UTF-2000.
4166         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4167         charset, mapping-table of the charset is modified.
4168         (Fdefine_char): New function in UTF-2000.
4169         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4170         `Fput_char_attribute'.
4171         (syms_of_mule_charset): Add new function `define-char' and new
4172         symbol `ucs' in UTF-2000.
4173         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4174
4175 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4176
4177         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4178         non-UTF-2000 configuration.
4179
4180 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4181
4182         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4183         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4184
4185         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4186         deleted.
4187         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4188         (Fset_charset_mapping_table): Likewise.
4189
4190         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4191         (CHARSET_ENCODING_TABLE): Delete.
4192         (XCHARSET_ENCODING_TABLE): Delete.
4193         (charset_code_point): New interface.
4194
4195 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4196
4197         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4198         instead of `charset_get_byte1' and `charset_get_byte2'.
4199
4200         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4201         (charset_get_byte2): Deleted.
4202
4203 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4204
4205         * char-ucs.h (SPLIT_CHAR): New inline function.
4206         (breakup_char_1): Use `SPLIT_CHAR'.
4207
4208         * mule-charset.c (range_charset_code_point): New function.
4209         (charset_code_point): New function.
4210
4211         * char-ucs.h (range_charset_code_point): New interface.
4212         (breakup_char_1): Use `range_charset_code_point'.
4213
4214 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4215
4216         * mule-charset.c (Fmake_charset): Delete unused local variable
4217         `code_offset'.
4218
4219         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4220         (breakup_char_1): Find a charset and code-point in
4221         `Vcharacter_attribute_table'.
4222
4223 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4224
4225         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4226         to 0.10 (Yao).
4227
4228 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4229
4230         * mule-charset.c (Vcharacter_attribute_table): New variable.
4231         (Fchar_attribute_alist): New function.
4232         (Fget_char_attribute): New function.
4233         (Fput_char_attribute): New function.
4234         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4235         too.
4236         (syms_of_mule_charset): Add new function `char-attribute-alist',
4237         `get-char-attribute' and `put-char-attribute'.
4238         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4239
4240 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4241
4242         * mule-charset.c (Fmake_charset): Just use
4243         `get_unallocated_leading_byte'.
4244
4245         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4246         sets; don't use final-byte based number for private sets.
4247
4248 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4249
4250         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4251         integer.
4252
4253 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4254
4255         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4256         to 0.9.
4257
4258 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4259
4260         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4261         of `CHAR_LEADING_BYTE' in UTF-2000.
4262
4263         * insdel.c (find_charsets_in_bufbyte_string): Use
4264         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4265         (find_charsets_in_emchar_string): Likewise.
4266
4267         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4268         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4269
4270         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4271         (CHAR_CHARSET_ID): New macro.
4272
4273 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4274
4275         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4276         charset-id - MIN_LEADING_BYTE.
4277         (put_char_table): Likewise.
4278
4279 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4280
4281         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4282         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4283         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4284         (CHARSET_ID_OFFSET): New macro.
4285         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4286         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4287         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4288         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4289         4).
4290         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4291         5).
4292         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4293         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4294         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4295         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4296         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4297
4298 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4299
4300         * mule-charset.c (next_allocated_leading_byte): New variable in
4301         UTF-2000.
4302         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4303         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4304         (get_unallocated_leading_byte): Simply use
4305         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4306         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4307         UTF-2000.
4308
4309         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4310         (MAX_LEADING_BYTE_PRIVATE): New macro.
4311         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4312         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4313
4314 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4315
4316         * mule-charset.c (Fmake_charset): Allocate final-byte based
4317         charset-id for 94-set, 96-set and 94x94-set.
4318
4319 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4320
4321         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4322         ambiguous `else'.
4323         (Fmake_charset): Likewise.
4324         (complex_vars_of_mule_charset): Modify the font registry of
4325         `ucs-bmp' not to match `Ethiopic-Unicode'.
4326
4327 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4328
4329         * mule-charset.c (complex_vars_of_mule_charset): Add font
4330         registory of `ucs-bmp'.
4331
4332 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4333
4334         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4335         coded-charsets in `default-coded-charset-priority-list' when
4336         breaking up a character.
4337
4338         * mule-charset.c (Vcharset_latin_viscii): New variable.
4339         (Qlatin_viscii): New variable.
4340         (make_charset): Don't use `decoding_table'.
4341         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4342         byte_offset.
4343         (Fset_charset_mapping_table): New implementation.
4344         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4345         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4346         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4347         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4348         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4349         charset `latin_viscii'.
4350
4351         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4352         (CHARSET_TYPE_94X94): Change to 1 from 2.
4353         (CHARSET_TYPE_96): Change to 2 from 1.
4354         (CHARSET_TYPE_128): New macro.
4355         (CHARSET_TYPE_128X128): Change to 5 from 4.
4356         (CHARSET_TYPE_256): New macro.
4357         (CHARSET_TYPE_256X256): Change to 7 from 5.
4358         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4359
4360 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4361
4362         * text-coding.c (char_encode_shift_jis): Refer
4363         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4364         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4365
4366         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4367         (char_byte_table_equal): New function in UTF-2000.
4368         (char_byte_table_hash): New function in UTF-2000.
4369         (char_byte_table_description): New constant in UTF-2000.
4370         (char_byte_table): New type in UTF-2000.
4371         (make_char_byte_table): New function in UTF-2000.
4372         (copy_char_byte_table): New function in UTF-2000.
4373         (make_char_code_table): New macro in UTF-2000.
4374         (get_char_code_table): New function in UTF-2000.
4375         (put_char_code_table): New function in UTF-2000.
4376         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4377         (charset_description): Add setting in UTF-2000.
4378         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4379         `CHARSET_TO_BYTE1_TABLE(cs)'.
4380         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4381         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4382         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4383         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4384         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4385         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4386         `CHARSET_TO_BYTE2_TABLE(cs)'.
4387
4388         * char-ucs.h (char_byte_table): New type.
4389         (XCHAR_BYTE_TABLE): New macro.
4390         (XSETCHAR_BYTE_TABLE): New macro.
4391         (CHAR_BYTE_TABLE_P): New macro.
4392         (GC_CHAR_BYTE_TABLE_P): New macro.
4393         (struct Lisp_Char_Byte_Table): New structure.
4394         (get_char_code_table): New interface.
4395         (Emchar_to_byte_table): Deleted.
4396         (get_byte_from_character_table): Deleted.
4397         (struct Lisp_Charset): Add `encoding_table'; delete
4398         `to_byte1_table' and `to_byte2_table'.
4399         (CHARSET_ENCODING_TABLE): New macro.
4400         (CHARSET_TO_BYTE1_TABLE): Deleted.
4401         (CHARSET_TO_BYTE2_TABLE): Deleted.
4402         (XCHARSET_ENCODING_TABLE): New macro.
4403         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4404         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4405
4406 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4407
4408         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4409         `vietnamese-viscii-*'.
4410
4411 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4412
4413         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4414         (Qvietnamese_viscii_upper): New variable.
4415         (Fdefine_charset_alias): New function.
4416         (syms_of_mule_charset): Add new function `define-charset-alias'.
4417         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4418         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4419         `latin-viscii-*'.
4420
4421 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4422
4423         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4424         (MAX_CHAR_OBS_94x94): New macro.
4425         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4426         for 94x94 sets.
4427
4428         * mule-charset.c (put_byte_from_character_table): Change unit size
4429         from 128 to 256.
4430         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4431         not defined.
4432         (Fmake_reverse_direction_charset): Modify dummy argument of
4433         `make_charset' for non-UTF-2000 environment.
4434
4435 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4436
4437         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4438
4439         * mule-charset.c (destroy_byte_from_character_table): New macro.
4440         (latin_jisx0201_to_ucs): Deleted.
4441         (latin_iso8859_2_to_ucs): Deleted.
4442         (latin_iso8859_3_to_ucs): Deleted.
4443         (latin_iso8859_4_to_ucs): Deleted.
4444         (latin_iso8859_9_to_ucs): Deleted.
4445         (latin_viscii_lower_to_ucs): Deleted.
4446         (latin_viscii_upper_to_ucs): Deleted.
4447         (mark_charset): Mark `cs->decoding_table'.
4448         (Fcharset_mapping_table): Fix DOC-string.
4449         (Fset_charset_mapping_table): New function.
4450         (syms_of_mule_charset): Add nwe function
4451         `set-charset-mapping-table'.
4452         (complex_vars_of_mule_charset): Don't setup and use
4453         `latin_*_to_ucs'.
4454
4455 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4456
4457         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4458         charset.
4459
4460 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4461
4462         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4463         (Vcharset_katakana_jisx0208): New variable.
4464         (Qhiragana_jisx0208): New variable.
4465         (Qkatakana_jisx0208): New variable.
4466         (make_charset): Add new argument `byte_offset'.
4467         (charset_get_byte1): Modify for new coded-charset definition; use
4468         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4469         `XCHARSET_BYTE_OFFSET'.
4470         (Fmake_charset): Modify for `make_charset'.
4471         (Fmake_reverse_direction_charset): Likewise.
4472         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4473         `katakana-jisx0208'.
4474         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4475         `.'  in font registry of charset `katakana-jisx0201',
4476         `latin-jisx0201', `vietnamese-viscii-lower' and
4477         `vietnamese-viscii-upper'; modify DOC-string of charset
4478         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4479         registry of charset `japanese-jisx0208' not to use font for JIS
4480         X0208:1990; add new charset `hiragana-jisx0208' and
4481         `katakana-jisx0208'.
4482
4483         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4484         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4485         (struct Lisp_Charset): Add `byte_offset'.
4486         (CHARSET_BYTE_OFFSET): New macro.
4487         (XCHARSET_UCS_MIN): New macro.
4488         (XCHARSET_UCS_MAX): New macro.
4489         (XCHARSET_CODE_OFFSET): New macro.
4490         (XCHARSET_BYTE_OFFSET): New macro.
4491         (MIN_CHAR_HIRAGANA): New macro.
4492         (MAX_CHAR_HIRAGANA): New macro.
4493         (MIN_CHAR_KATAKANA): New macro.
4494         (MAX_CHAR_KATAKANA): New macro.
4495         (MAKE_CHAR): Modify for new coded-charset definition; use
4496         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4497         `XCHARSET_BYTE_OFFSET'.
4498
4499 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4500
4501         * mule-charset.c (CHAR96): Deleted.
4502         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4503         <Lisp_Object>.
4504         (latin_iso8859_2_to_ucs): Likewise.
4505         (latin_iso8859_3_to_ucs): Likewise.
4506         (latin_iso8859_4_to_ucs): Likewise.
4507         (latin_iso8859_9_to_ucs): Likewise.
4508         (latin_viscii_lower_to_ucs): Likewise.
4509         (latin_viscii_upper_to_ucs): Likewise.
4510         (latin_tcvn5712_to_ucs): Commented out.
4511         (make_charset): Change type of argument `decoding_table' from
4512         <Emchar*> to <Lisp_Object> [vector of characters].
4513         (Fmake_charset): Modify for `make_charset'.
4514         (Fmake_reverse_direction_charset): Likewise.
4515         (Fcharset_mapping_table): New function in UTF-2000.
4516         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4517         UTF-2000.
4518         (complex_vars_of_mule_charset): Modify for type change of
4519         `*_to_ucs'; modify for `make_charset'.
4520
4521         * char-ucs.h (struct Lisp_Charset): Change type of
4522         `decoding_table' from <Emchar*> to <Lisp_Object>.
4523         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4524
4525 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4526
4527         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4528         error with non-UTF-2000-Mule.
4529
4530 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4531
4532         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4533         in lisp again].
4534         (Vcharset_chinese_cns11643_4): Likewise.
4535         (Vcharset_chinese_cns11643_5): Likewise.
4536         (Vcharset_chinese_cns11643_6): Likewise.
4537         (Vcharset_chinese_cns11643_7): Likewise.
4538         (Qchinese_cns11643_3): Likewise.
4539         (Qchinese_cns11643_4): Likewise.
4540         (Qchinese_cns11643_5): Likewise.
4541         (Qchinese_cns11643_6): Likewise.
4542         (Qchinese_cns11643_7): Likewise.
4543         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4544         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4545         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4546         (complex_vars_of_mule_charset): Likewise.
4547
4548 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4549
4550         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4551         96-set.
4552         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4553         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4554
4555 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4556
4557         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4558         0xFF60.
4559         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4560         (breakup_char_1): Likewise.
4561
4562         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4563         one of them includes the specified character.
4564
4565 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4566
4567         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4568
4569 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4570
4571         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4572
4573 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4574
4575         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4576         definition for non-UTF-2000 Mule.
4577         (latin_iso8859_3_to_ucs): Likewise.
4578         (latin_iso8859_4_to_ucs): Likewise.
4579         (latin_iso8859_9_to_ucs): Likewise.
4580         (latin_jisx0201_to_ucs): Likewise.
4581         (MIN_CHAR_THAI): Likewise.
4582         (MAX_CHAR_THAI): Likewise.
4583         (MIN_CHAR_GREEK): Likewise.
4584         (MAX_CHAR_GREEK): Likewise.
4585         (MIN_CHAR_HEBREW): Likewise.
4586         (MAX_CHAR_HEBREW): Likewise.
4587         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4588         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4589         (MIN_CHAR_CYRILLIC): Likewise.
4590         (MAX_CHAR_CYRILLIC): Likewise.
4591
4592 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4593
4594         * char-ucs.h (breakup_char_1): Use
4595         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4596         thai-tis620 and katakana-jisx0201 area.
4597
4598 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4599
4600         * char-ucs.h (breakup_char_1): Use
4601         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4602         area.
4603
4604         * text-coding.c (reset_encoding_stream): Fixed.
4605         (char_encode_ucs4): Delete `& 255'.
4606
4607         * char-ucs.h (breakup_char_1): Use
4608         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4609
4610 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4611
4612         * file-coding.c (Fmake_coding_system): Don't set up
4613         `codesys->fixed.size'.
4614         (encode_coding_no_conversion): Don't refer
4615         `str->codesys->fixed.size'.
4616
4617 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4618
4619         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4620         (latin_a_char_to_byte1): Deleted.
4621         (latin_a_char_to_byte2): Deleted.
4622
4623 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4624
4625         * mule-charset.c (make_charset): Add new argument `ucs_min',
4626         `ucs_max' and `code_offset'.
4627         (charset_get_byte1): New implementation [delete specific charset
4628         depended implementations].
4629         (Fmake_charset): Modify for `make_charset'.
4630         (Fmake_reverse_direction_charset): Likewise.
4631         (complex_vars_of_mule_charset): Likewise.
4632
4633         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4634         `code_offset'.
4635         (CHARSET_UCS_MIN): New macro.
4636         (CHARSET_UCS_MAX): New macro.
4637         (CHARSET_CODE_OFFSET): New macro.
4638         (MAKE_CHAR): Delete charset depended definitions [except
4639         katakana-jisx0201].
4640
4641 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4642
4643         * char-ucs.h (breakup_char_1): Use
4644         `Vdefault_coded_charset_priority_list' for C0-Controls,
4645         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4646
4647 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4648
4649         * char-ucs.h (charset_get_byte1): New function.
4650         (XCHARSET_GET_BYTE1): Deleted.
4651         (charset_get_byte2): New function.
4652         (XCHARSET_GET_BYTE2): Deleted.
4653         (Vdefault_coded_charset_priority_list): New external variable.
4654         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4655         `Vdefault_preferred_coded_charset_list'.
4656
4657         * mule-charset.c (charset_get_byte1): New function.
4658         (charset_get_byte2): New function.
4659         (Vdefault_coded_charset_priority_list): New variable.
4660         (vars_of_mule_charset): Add new variable
4661         `default-coded-charset-priority-list'.
4662
4663 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4664
4665         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4666         (XCHARSET_GET_BYTE2): New inline function.
4667         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4668         `XCHARSET_GET_BYTE2'.
4669
4670 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4671
4672         * mule-charset.c (make_charset): Initialize
4673         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4674         NULL if table is not defined.
4675
4676 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4677
4678         * text-coding.c (char_encode_shift_jis): Use
4679         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4680         `ucs_to_latin_jisx0201'.
4681
4682         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4683         (ucs_to_latin_iso8859_2): Deleted.
4684         (ucs_to_latin_iso8859_3): Deleted.
4685         (ucs_to_latin_iso8859_4): Deleted.
4686         (ucs_to_latin_iso8859_9): Deleted.
4687         (ucs_to_latin_viscii_lower): Deleted.
4688         (ucs_to_latin_viscii_upper): Deleted.
4689         (ucs_to_latin_tcvn5712): Deleted.
4690         (make_charset): Add new argument `decoding_table'; set up
4691         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4692         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4693         `decoding_table' is defined in UTF-2000.
4694         (Fmake_charset): Modify for `make_charset'.
4695         (Fmake_reverse_direction_charset): Likewise.
4696         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4697         and `GENERATE_96_SET'.
4698
4699         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4700         (ucs_to_latin_jisx0201): Deleted.
4701         (latin_iso8859_2_to_ucs): Deleted.
4702         (ucs_to_latin_iso8859_2): Deleted.
4703         (latin_iso8859_3_to_ucs): Deleted.
4704         (ucs_to_latin_iso8859_3): Deleted.
4705         (latin_iso8859_4_to_ucs): Deleted.
4706         (ucs_to_latin_iso8859_4): Deleted.
4707         (latin_iso8859_9_to_ucs): Deleted.
4708         (ucs_to_latin_iso8859_9): Deleted.
4709         (latin_viscii_lower_to_ucs): Deleted.
4710         (ucs_to_latin_viscii_lower): Deleted.
4711         (latin_viscii_upper_to_ucs): Deleted.
4712         (ucs_to_latin_viscii_upper): Deleted.
4713         (struct Lisp_Charset): Renamed `encoding_table' to
4714         `to_byte1_table'; add `to_byte2_table'.
4715         (CHARSET_DECODING_TABLE): New macro.
4716         (CHARSET_TO_BYTE1_TABLE): New macro.
4717         (CHARSET_TO_BYTE2_TABLE): New macro.
4718         (XCHARSET_DECODING_TABLE): New macro.
4719         (XCHARSET_TO_BYTE1_TABLE): New macro.
4720         (XCHARSET_TO_BYTE2_TABLE): New macro.
4721         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4722         tables.
4723         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4724         don't use `ucs_to_*' tables.
4725
4726 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4727
4728         * text-coding.c (Fmake_coding_system): Don't set up
4729         `codesys->fixed.size'.
4730         (encode_coding_no_conversion): Use `if' instead of `switch'.
4731
4732         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4733
4734 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4735
4736         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4737         (Fmake_charset): Modify for `make_charset'.
4738         (Fmake_reverse_direction_charset): Likewise.
4739         (complex_vars_of_mule_charset): Likewise.
4740
4741 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4742
4743         * text-coding.c (char_encode_shift_jis): Use table
4744         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4745
4746 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4747
4748         * text-coding.c (text_encode_generic): Use `if' instead of
4749         `switch'.
4750         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4751         decode JIS-Latin.
4752
4753 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4754
4755         * text-coding.c (encode_coding_sjis): Deleted.
4756         (char_encode_shift_jis): New function.
4757         (char_finish_shift_jis): New function.
4758         (reset_encoding_stream): Set up `encode_char' and `finish' for
4759         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4760         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4761         (char_encode_utf8): Treat `eol_type'.
4762
4763 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4764
4765         * file-coding.c (decode_coding_iso2022): Use
4766         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4767
4768 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4769
4770         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4771         to 0.7 (Hirano).
4772
4773 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4774
4775         * char-lb.h (CHAR_COLUMNS): New macro.
4776
4777 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4778
4779         * text-coding.c (char_encode_ucs4): New function.
4780         (char_finish_ucs4): New function.
4781         (encode_coding_ucs4): Deleted.
4782         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4783         (text_encode_generic): Delete local variable `charset' and `half'.
4784         (ucs_to_mule_table): Deleted.
4785         (mule_to_ucs_table): Deleted.
4786         (Fset_ucs_char): Deleted.
4787         (ucs_to_char): Deleted.
4788         (Fucs_char): Deleted.
4789         (Fset_char_ucs): Deleted.
4790         (Fchar_ucs): Deleted.
4791         (decode_ucs4): Deleted.
4792         (mule_char_to_ucs4): Deleted.
4793         (encode_ucs4): Deleted.
4794         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4795         (decode_coding_utf8): Likewise.
4796         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4797         (char_encode_iso2022): Fixed.
4798         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4799         `Fset_char_ucs' and `Fchar_ucs'.
4800         (complex_vars_of_file_coding): Don't initialize
4801         `ucs_to_mule_table'.
4802
4803         * objects-tty.c (tty_initialize_font_instance): Don't use
4804         `XCHARSET_COLUMNS'.
4805
4806         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4807         UTF-2000.
4808
4809         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4810         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4811
4812         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4813         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4814         (emchar_string_displayed_columns): Likewise.
4815
4816         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4817         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4818         (string_column_at_point): Likewise.
4819         (Fmove_to_column): Likewise.
4820
4821         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4822         `encoding_table' and `decoding_table'.
4823         (CHARSET_REP_BYTES): Deleted.
4824         (XCHARSET_REP_BYTES): Deleted.
4825         (XCHARSET_COLUMNS): Deleted.
4826         (CHAR_COLUMNS): New macro.
4827         (lookup_composite_char): Deleted unconditionally.
4828         (composite_char_string): Likewise.
4829
4830 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4831
4832         * char-ucs.h (Emchar_to_byte_table): New type.
4833         (get_byte_from_character_table): New function interface.
4834         (Vcharset_latin_jisx0201): New variable.
4835         (latin_jisx0201_to_ucs): New variable.
4836         (ucs_to_latin_jisx0201): New variable.
4837         (Vcharset_latin_iso8859_2): New variable.
4838         (latin_iso8859_2_to_ucs): New variable.
4839         (ucs_to_latin_iso8859_2): New variable.
4840         (Vcharset_latin_iso8859_3): New variable.
4841         (latin_iso8859_3_to_ucs): New variable.
4842         (ucs_to_latin_iso8859_3): New variable.
4843         (Vcharset_latin_iso8859_4): New variable.
4844         (latin_iso8859_4_to_ucs): New variable.
4845         (ucs_to_latin_iso8859_4): New variable.
4846         (Vcharset_latin_iso8859_9): New variable.
4847         (latin_iso8859_9_to_ucs): New variable.
4848         (ucs_to_latin_iso8859_9): New variable.
4849         (Vcharset_latin_viscii_lower): New variable.
4850         (latin_viscii_lower_to_ucs): New variable.
4851         (ucs_to_latin_viscii_lower): New variable.
4852         (Vcharset_latin_viscii_upper): New variable.
4853         (latin_viscii_upper_to_ucs): New variable.
4854         (ucs_to_latin_viscii_upper): New variable.
4855         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4856         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4857         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4858         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4859         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4860         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4861         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4862         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4863         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4864         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4865
4866         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4867         (Vcharset_latin_viscii_upper): New variable.
4868         (make_byte_from_character_table): New function.
4869         (put_byte_from_character_table): New function.
4870         (get_byte_from_character_table): New function.
4871         (CHAR96): New macro.
4872         (ucs_to_latin_jisx0201): New variable.
4873         (latin_jisx0201_to_ucs): New variable.
4874         (ucs_to_latin_iso8859_2): New variable.
4875         (latin_iso8859_2_to_ucs): New variable.
4876         (ucs_to_latin_iso8859_3): New variable.
4877         (latin_iso8859_3_to_ucs): New variable.
4878         (ucs_to_latin_iso8859_4): New variable.
4879         (latin_iso8859_4_to_ucs): New variable.
4880         (ucs_to_latin_iso8859_9): New variable.
4881         (latin_iso8859_9_to_ucs): New variable.
4882         (ucs_to_latin_viscii_lower): New variable.
4883         (latin_viscii_lower_to_ucs): New variable.
4884         (ucs_to_latin_viscii_upper): New variable.
4885         (latin_viscii_upper_to_ucs): New variable.
4886         (ucs_to_latin_tcvn5712): New variable.
4887         (latin_tcvn5712_to_ucs): New variable.
4888         (Qlatin_viscii_lower): New variable.
4889         (Qlatin_viscii_upper): New variable.
4890         (syms_of_mule_charset): Set up new symbol
4891         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4892         (complex_vars_of_mule_charset): Set up new charset
4893         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4894         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4895         `ucs_to_<CHARSET>' tables.
4896
4897 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4898
4899         * text-coding.c: New file.
4900
4901 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4902
4903         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4904
4905         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4906         (MAKE_CHAR): Modify for `ucs-bmp'.
4907         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4908         non-MULE characters of BMP.
4909
4910 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4911
4912         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4913         to 0.6.
4914
4915 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4916
4917         * lstream.h:
4918         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4919         - Include character.h for `CHAR_ASCII_P'.
4920
4921         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4922
4923         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4924         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4925
4926         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4927         (BYTE_C0_P): Likewise.
4928         (BYTE_C1_P): Likewise.
4929         (Lstream_get_emchar_1): Likewise.
4930         (Lstream_fput_emchar): Likewise.
4931         (Lstream_funget_emchar): Likewise.
4932         (copy_internal_to_external): Likewise.
4933         (copy_external_to_internal): Likewise.
4934
4935         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4936         (BYTE_C0_P): Likewise.
4937         (BYTE_C1_P): Likewise.
4938         (Lstream_get_emchar_1): Likewise.
4939         (Lstream_fput_emchar): Likewise.
4940         (Lstream_funget_emchar): Likewise.
4941         (copy_internal_to_external): Likewise.
4942         (copy_external_to_internal): Likewise.
4943
4944         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4945         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4946
4947         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4948         (BYTE_ASCII_P): Moved to mb-1byte.h.
4949
4950 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4951
4952         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4953
4954         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4955         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4956         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4957         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4958         (VALIDATE_CHARPTR_FORWARD): Likewise.
4959         (simple_charptr_emchar): Moved to mb-multibyte.h.
4960         (simple_set_charptr_emchar): Likewise.
4961         (simple_charptr_copy_char): Likewise.
4962         (non_ascii_charptr_emchar): Likewise.
4963         (non_ascii_set_charptr_emchar): Likewise.
4964         (non_ascii_charptr_copy_char): Likewise.
4965         (charptr_emchar): Moved to mb-*byte.h.
4966         (set_charptr_emchar): Likewise.
4967         (charptr_copy_char): Likewise.
4968
4969         * mb-1byte.h, mb-multibyte.h: New files.
4970
4971 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4972
4973         * mb-utf-8.h (MULTIBYTE): New macro.
4974         (MAX_EMCHAR_LEN): Moved from buffer.h.
4975         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4976
4977         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4978
4979         * mb-lb.h, multibyte.h: New files.
4980
4981         * char-1byte.h (Charset_ID): Moved from buffer.h.
4982         (MIN_LEADING_BYTE): Likewise.
4983         (LEADING_BYTE_ASCII): Likewise.
4984         (NUM_LEADING_BYTES): Likewise.
4985         (CHARSETP): Likewise.
4986         (CHARSET_BY_LEADING_BYTE): Likewise.
4987         (XCHARSET_LEADING_BYTE): Likewise.
4988         (XCHARSET_GRAPHIC): Likewise.
4989         (XCHARSET_COLUMNS): Likewise.
4990         (XCHARSET_DIMENSION): Likewise.
4991         (CHAR_CHARSET): Likewise.
4992         (CHAR_LEADING_BYTE): Likewise.
4993         (BREAKUP_CHAR): Likewise.
4994         (Vcharset_ascii): Likewise.
4995
4996         * buffer.h: Include multibyte.h unconditionally.
4997         (VALID_CHARPTR_P): Moved to multibyte.h.
4998         (ASSERT_VALID_CHARPTR): Likewise.
4999         (REAL_INC_CHARPTR): Likewise.
5000         (REAL_INC_CHARBYTIND): Likewise.
5001         (REAL_DEC_CHARPTR): Likewise.
5002         (INC_CHARPTR): Likewise.
5003         (INC_CHARBYTIND): Likewise.
5004         (DEC_CHARPTR): Likewise.
5005         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5006         (VALIDATE_CHARPTR_FORWARD): Likewise.
5007         (charptr_n_addr): Likewise.
5008         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5009         (simple_charptr_emchar): Moved to multibyte.h.
5010         (simple_set_charptr_emchar): Likewise.
5011         (simple_charptr_copy_char): Likewise.
5012         (non_ascii_charptr_emchar): Likewise.
5013         (non_ascii_set_charptr_emchar): Likewise.
5014         (non_ascii_charptr_copy_char): Likewise.
5015         (charptr_emchar): Likewise.
5016         (set_charptr_emchar): Likewise.
5017         (charptr_copy_char): Likewise.
5018         (charptr_emchar_n): Likewise.
5019         (Charset_ID): Moved to char-1byte.h.
5020         (Vcharset_ascii): Likewise.
5021         (CHAR_CHARSET): Likewise.
5022         (CHAR_LEADING_BYTE): Likewise.
5023         (LEADING_BYTE_ASCII): Likewise.
5024         (NUM_LEADING_BYTES): Likewise.
5025         (MIN_LEADING_BYTE): Likewise.
5026         (CHARSETP): Likewise.
5027         (CHARSET_BY_LEADING_BYTE): Likewise.
5028         (XCHARSET_LEADING_BYTE): Likewise.
5029         (XCHARSET_GRAPHIC): Likewise.
5030         (XCHARSET_COLUMNS): Likewise.
5031         (XCHARSET_DIMENSION): Likewise.
5032         (BREAKUP_CHAR): Likewise.
5033
5034 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5035
5036         * character.h: Add document about interface for characters.
5037
5038         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5039         (MAKE_CHAR): Delete comment about
5040         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5041         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5042         (BREAKUP_CHAR): Modify name of arguments.
5043         (CHAR_CHARSET): Modify name of argument.
5044
5045         * buffer.h: Delete document about Emchar accessors.
5046
5047 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5048
5049         * character.h (CHAR_INTP): Moved from buffer.h
5050         (CHAR_OR_CHAR_INTP): Likewise.
5051         (XCHAR_OR_CHAR_INT): Likewise.
5052         (CHECK_CHAR_COERCE_INT): Likewise.
5053
5054         * buffer.h (CHAR_INTP): Moved to character.h
5055         (CHAR_OR_CHAR_INTP): Likewise.
5056         (XCHAR_OR_CHAR_INT): Likewise.
5057         (CHECK_CHAR_COERCE_INT): Likewise.
5058
5059 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5060
5061         * character.h:
5062         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5063         - Include char-1byte.h, char-lb.h or char-ucs.h.
5064
5065         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5066
5067         * buffer.h: Include character unconditionally.
5068         (valid_char_p): Moved to char-*.h.
5069         (non_ascii_valid_char_p): Moved to char-lb.h.
5070
5071         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5072
5073 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5074
5075         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5076         in UTF-2000 because it is not ported yet and not to use
5077         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5078         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5079         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5080
5081         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5082         (CHAR_ASCII_P): Moved from character.h.
5083
5084         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5085         (CHAR_ASCII_P): Likewise.
5086         (CHAR_FIELD1_MASK): Deleted.
5087         (CHAR_FIELD2_MASK): Deleted.
5088         (CHAR_FIELD3_MASK): Deleted.
5089         (MAX_CHAR_BASIC_LATIN): New macro.
5090         (CHAR_FIELD1): Deleted.
5091         (CHAR_FIELD2_INTERNAL): Deleted.
5092         (CHAR_FIELD3_INTERNAL): Deleted.
5093         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5094         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5095         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5096         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5097         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5098         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5099         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5100         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5101         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5102         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5103         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5104         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5105         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5106         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5107         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5108         (MIN_CHAR_COMPOSITION): Deleted.
5109         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5110         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5111
5112 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5113
5114         * buffer.h: Include mb-utf-8.h in UTF-2000.
5115
5116         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5117
5118         * mb-utf-8.h: New file.
5119
5120 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5121
5122         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5123         instead of `int'.
5124
5125         * mule-charset.h, buffer.h (Charset_ID): New type.
5126
5127 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5128
5129         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5130         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5131         instead of `MULE_CHAR_PRIVATE_OFFSET',
5132         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5133         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5134         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5135
5136         * character.h (Vcharset_japanese_jisx0212): New variable
5137         definition.
5138
5139 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5140
5141         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5142         (charset_by_attributes): Delete array about direction.
5143         (latin_a_char_to_charset): New variable in UTF-2000.
5144         (latin_a_char_to_byte1): New variable in UTF-2000.
5145         (latin_a_char_to_byte2): New variable in UTF-2000.
5146         (Qucs_bmp): New variable.
5147         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5148         `Bufbyte'.
5149         (next_allocated_2_byte_leading_byte): Likewise.
5150         (non_ascii_set_charptr_emchar): Likewise.
5151         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5152         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5153         `charset_by_attributes'.
5154         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5155         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5156         and `CHARSET_BY_LEADING_BYTE'.
5157         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5158         `utf-2000-version' to `vars_of_mule_charset'.
5159         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5160         define `leading-code-private-11' in UTF-2000; move setting of
5161         `utf-2000-version' from `syms_of_mule_charset'.
5162         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5163         UTF-2000.
5164
5165         * character.h (Charset_ID): New type.
5166         (LEADING_BYTE_UCS_BMP): New macro.
5167         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5168         (CHARSET_ID_OFFSET_94): New macro.
5169         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5170         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5171         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5172         final-byte.
5173         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5174         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5175         (CHARSET_ID_OFFSET_96): New macro.
5176         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5177         CHARSET_ID_OFFSET_96 and final-byte.
5178         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5179         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5180         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5181         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5182         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5183         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5184         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5185         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5186         (LEADING_BYTE_THAI_TIS620): Likewise.
5187         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5188         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5189         (CHARSET_ID_OFFSET_94x94): New macro.
5190         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5191         CHARSET_ID_OFFSET_94x94 and final-byte.
5192         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5193         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5194         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5195         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5196         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5197         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5198         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5199         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5200         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5201         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5202         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5203         (CHARSET_TYPE_128X128): New macro.
5204         (CHARSET_TYPE_256X256): New macro.
5205         (XCHARSET_PRIVATE_P): Delete unconditionally.
5206         (charset_by_attributes): Delete array about direction.
5207         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5208         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5209         (MIN_CHAR_94): New macro.
5210         (MAX_CHAR_94): New macro.
5211         (MIN_CHAR_96): New macro.
5212         (MAX_CHAR_96): New macro.
5213         (MIN_CHAR_94x94): New macro.
5214         (MAX_CHAR_94x94): New macro.
5215         (MIN_CHAR_96x96): New macro.
5216         (MAX_CHAR_96x96): New macro.
5217         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5218         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5219         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5220         - 32)'.
5221         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5222         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5223         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5224         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5225         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5226         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5227         `XCHARSET_LEADING_BYTE' to make code-point.
5228         (latin_a_char_to_charset): New variable.
5229         (latin_a_char_to_byte1): New variable.
5230         (latin_a_char_to_byte2): New variable.
5231         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5232         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5233         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5234
5235         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5236         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5237         (find_charsets_in_emchar_string): Likewise.
5238         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5239
5240         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5241         `int'.
5242         (decode_coding_iso2022): Likewise.
5243
5244         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5245         of `unsigned char'.
5246
5247         * redisplay.c (redisplay_text_width_emchar_string): Use
5248         `Charset_ID' instead of `unsigned char'.
5249         (redisplay_frame_text_width_string): Likewise.
5250
5251         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5252         `unsigned char'.
5253
5254         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5255         instead of `unsigned char'.
5256         (face_cachel_charset_font_metric_info): Likewise.
5257
5258         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5259         (get_non_ascii_char_table_value): Likewise.
5260         (get_char_table): Likewise.
5261         (put_char_table): Likewise.
5262         (map_over_other_charset): Likewise.
5263         (map_char_table): Likewise.
5264
5265         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5266         instead of `unsigned char'.
5267
5268 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5269
5270         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5271         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5272
5273         * mule-charset.c (leading_code_private_11): Don't define in
5274         UTF-2000.
5275
5276         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5277         in UTF-2000 because it is not ported yet and not to use
5278         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5279
5280 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5281
5282         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5283
5284 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5285
5286         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5287         in UTF-2000.
5288
5289         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5290         of unsigned char to store leading-byte.
5291
5292         * chartab.c (get_non_ascii_char_table_value): Don't use
5293         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5294
5295         * file-coding.c (encode_coding_big5): Delete bogus implementation
5296         in UTF2000.
5297
5298         * character.h (LEADING_BYTE_*): Delete definition for
5299         non-UTF-2000.
5300         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5301         (LEADING_BYTE_PREFIX_P): Deleted.
5302         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5303         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5304         (BUFBYTE_LEADING_BYTE_P): Deleted.
5305         (CHARSET_PRIVATE_P): Deleted unconditionally.
5306         (rep_bytes_by_first_byte): Deleted unconditionally.
5307         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5308         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5309         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5310         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5311         (CHAR_FIELD2): Deleted.
5312         (CHAR_FIELD3): Deleted.
5313         (MAKE_CHAR): Delete definition for non-UTF-2000.
5314         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5315         (breakup_char_1): New implementation.
5316         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5317         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5318
5319 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5320
5321         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5322         condition.
5323
5324 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5325
5326         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5327         (CHARSET_PRIVATE_P): Likewise.
5328         (XCHARSET_PRIVATE_P): Likewise.
5329         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5330
5331         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5332         UTF2000.
5333         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5334
5335 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5336
5337         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5338         (NUM_LEADING_BYTES): Changed from 128 to 256.
5339         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5340         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5341         UTF2000.
5342         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5343
5344         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5345         UTF2000.
5346         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5347         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5348         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5349         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5350         (Qchinese_cns11643_3): New variable in UTF2000.
5351         (Qchinese_cns11643_4): New variable in UTF2000.
5352         (Qchinese_cns11643_5): New variable in UTF2000.
5353         (Qchinese_cns11643_6): New variable in UTF2000.
5354         (Qchinese_cns11643_7): New variable in UTF2000.
5355         (syms_of_mule_charset): Define `chinese-cns11643-3',
5356         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5357         and `chinese-cns11643-7' in UTF2000.
5358         (vars_of_mule_charset): Initialize
5359         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5360         + 1 in UTF2000.
5361         (complex_vars_of_mule_charset): Setup charset
5362         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5363         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5364
5365 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5366
5367         * mule-charset.c: Move setting for `leading-code-private-11' from
5368         `syms_of_mule_charset' to `vars_of_mule_charset'.
5369
5370 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5371
5372         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5373         and `NUM_LEADING_BYTES' in assert.
5374
5375 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5376
5377         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5378         instead of 128.
5379         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5380         `NUM_LEADING_BYTES' instead of 128.
5381
5382 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5383
5384         * mule-charset.h (charset_by_leading_byte): Use
5385         `NUM_LEADING_BYTES' instead of 128.
5386         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5387
5388         * mule-charset.c (charset_by_leading_byte): Use
5389         `NUM_LEADING_BYTES' instead of 128.
5390         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5391
5392         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5393         128.
5394
5395 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5396
5397         * mule-charset.c (syms_of_mule_charset): Update to
5398         0.4 (Shin-Imamiya).
5399
5400 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5401
5402         * file-coding.c (encode_coding_sjis): New implementation for
5403         UTF2000.  (decode_coding_sjis): Ditto.
5404
5405 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5406
5407         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5408         Don't define in UTF2000.
5409
5410         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5411         defined.
5412
5413         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5414         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5415         MULE.
5416
5417 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5418
5419         * config.h.in (CHAR_IS_UCS4): New macro.
5420
5421         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5422         conventional MULE representation.
5423         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5424
5425         * mule-charset.h: Reverted to original.
5426
5427         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5428         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5429         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5430
5431         * character.h: New file.
5432
5433         * file-coding.c (Fmake_coding_system): Set 1 to
5434         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5435         defined.
5436         (encode_coding_no_conversion): New implementation for UTF2000.
5437
5438         * file-coding.h (struct Lisp_Coding_System): Add new member
5439         `fixed.size'.
5440
5441 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5442
5443         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5444         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5445         (encode_coding_iso2022): New implementation for UTF2000.
5446
5447 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5448
5449         * mule-canna.c (c2mu): New implementation for UTF2000.
5450         (m2c): Likewise.
5451
5452 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5453
5454         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5455
5456 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5457
5458         * file-coding.c (reset_encoding_stream): Set 0 to
5459         `str->iso2022.current_char_boundary' in UTF2000.
5460         (encode_utf8): Don't define in UTF2000.
5461         (encode_coding_utf8): New implementation for UTF-8 representation
5462         of UTF2000.
5463         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5464
5465 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5466
5467         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5468
5469         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5470         UTF2000.
5471         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5472
5473         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5474
5475         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5476         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5477         as UTF-8 in UTF2000.
5478         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5479         (non_ascii_valid_char_p): Don't define in UTF2000.
5480         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5481         (Lstream_get_emchar_1): Likewise.
5482         (utf-2000-version): New variable in UTF2000.
5483
5484         * lread.c (read_escape): Add new reader `u'.
5485
5486         * insdel.c (three_to_one_table): Don't define in UTF2000.
5487         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5488         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5489         UTF2000.
5490         (bytind_to_bufpos_func): Likewise.
5491         (buffer_mule_signal_inserted_region): Likewise.
5492         (vars_of_insdel): Don't initialize `three_to_one_table'.
5493         (init_buffer_text): Use `buf->text->mule_size' instead of
5494         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5495         UTF2000.
5496
5497         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5498         UTF-8 representation in UTF2000.
5499         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5500         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5501         (decode_coding_iso2022): Don't define local variable `lb' in
5502         UTF2000; don't use LEADING_BYTE in UTF2000; use
5503         `DECODE_ADD_UCS_CHAR' in UTF2000.
5504         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5505
5506         * config.h.in (UTF2000): New macro.
5507
5508         * buffer.h (struct buffer_text): Add new member `mule_size' and
5509         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5510         (valid_char_p): Return always 1 in UTF2000.
5511         (MAX_EMCHAR_LEN): 6 in UTF2000.
5512         (three_to_one_table): Don't define in UTF2000.
5513         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5514         UTF2000.
5515         (real_bytind_to_bufpos): Likewise.
5516
5517         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5518
5519 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5520
5521         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5522         representation change.
5523         (Vutf_2000_version): New variable.
5524         (leading_code_private_11): New variable.
5525         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5526         `leading-code-private-11'.
5527
5528         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5529         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5530         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5531         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5532         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5533         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5534         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5535         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5536         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5537         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5538         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5539         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5540         (MIN_CHAR_GREEK): New macro.
5541         (MAX_CHAR_GREEK): New macro.
5542         (MIN_CHAR_CYRILLIC): New macro.
5543         (MAX_CHAR_CYRILLIC): New macro.
5544         (MIN_CHAR_HEBREW): New macro.
5545         (MAX_CHAR_HEBREW): New macro.
5546         (MIN_CHAR_THAI): New macro.
5547         (MAX_CHAR_THAI): New macro.
5548         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5549         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5550         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5551         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5552         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5553         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5554         (CHAR_FIELD2): New inline function.
5555         (CHAR_FIELD3): New inline function.
5556         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5557         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5558         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5559         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5560         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5561         (MIN_CHAR_COMPOSITION): Likewise.
5562         (CHAR_LEADING_BYTE): Modified for character representation change.
5563         (MAKE_CHAR): Likewise.
5564
5565         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5566         (Vcharset_greek_iso8859_7): Likewise.
5567         (Vcharset_cyrillic_iso8859_5): Likewise.
5568         (Vcharset_hebrew_iso8859_8): Likewise.
5569         (Vcharset_thai_tis620): Likewise.
5570         (Vcharset_katakana_jisx0201): Likewise.
5571
5572 2004-02-02  Vin Shelton <acs@xemacs.org>
5573
5574         * XEmacs 21.4.15 is released
5575
5576 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
5577
5578         * device-x.c (x_error_handler): Don't call stderr_out
5579
5580 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
5581
5582         * buffer.c (other-buffer): Clarify documentation of order of
5583         arguments for FSF Emacs.
5584
5585 2003-10-11  Olivier Galibert  <galibert@pobox.com>
5586
5587         * window.c (Fdelete_window): Dirty the mirror structure _before_
5588         marking the window deleted.
5589
5590 2003-09-15  Jerry James  <james@xemacs.org>
5591
5592         * event-msw.c (debug_mswin_messages): Conditionally compile
5593         messages missing from the Cygwin headers.
5594
5595 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
5596
5597         * data.c (eq_with_ebola_notice): Fix typo in comment.
5598         (Ftrue_list_p): Improve docstring.
5599
5600 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
5601
5602         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
5603
5604 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
5605
5606         * search.c (trivial_regexp_p): Regexps containing "\{" are
5607         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
5608         Stefan Monnier for suggesting a diagnosis.
5609
5610 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
5611
5612         * elhash.c (make-hash-table): Clarify use of :test #'equal.
5613
5614 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
5615
5616         * search.c (Fsearch_forward):
5617         (Fsearch_backward):
5618         Document negative count.
5619
5620 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
5621
5622         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
5623
5624 2003-09-13  Martin Buchholz  <martin@xemacs.org>
5625
5626         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
5627
5628 2003-09-15  Vin Shelton  <acs@xemacs.org>
5629
5630         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
5631         21.5.
5632
5633 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
5634
5635         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
5636         (re_search_2): Match the first byte of Bufbyte, not Emchar.
5637         (re_match_2_internal): Use TRANSLATE instead of
5638         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
5639         non-ASCII char case conversion.
5640
5641 2003-09-08  Mike Sperber  <mike@xemacs.org>
5642
5643         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
5644         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
5645
5646 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
5647
5648        * .gdbinit (pobj): fix printing of symbol name.
5649
5650 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
5651
5652         * frame-x.c (x_layout_widgets): When resizing is about to cause
5653         frame size slip, mark it for redisplay.
5654
5655 2003-08-18  Jerry James  <james@xemacs.org>
5656
5657         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
5658
5659 2003-09-03  Vin Shelton <acs@xemacs.org>
5660
5661         * XEmacs 21.4.14 is released
5662
5663 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5664
5665         * config.h.in (REGEX_MALLOC): Make it configure'able.
5666
5667 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5668
5669         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5670         linking.
5671         * sysdll.c (dll_init):
5672         * sysdll.c (dll_open):
5673         * sysdll.c (dll_close):
5674         * sysdll.c (dll_function):
5675         * sysdll.c (dll_variable):
5676         * sysdll.c (dll_error):
5677         Add support for loading bundles using Darwin/MacOSX
5678         native API.
5679
5680 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5681
5682         * process.c (start-process-internal): Document coding systems.
5683
5684 2003-07-30  Jerry James  <james@xemacs.org>
5685
5686         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5687
5688 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5689
5690         * event-msw.c (mswindows_enqueue_mouse_button_event):
5691         * event-msw.c (mswindows_wnd_proc):
5692           enqueue button event when scrollwheel event isn't handled by 
5693           mswindows_handle_mousewheel_event, such as when the scrollbars
5694           are not showing.
5695
5696 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5697
5698         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5699
5700 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5701
5702         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5703
5704 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5705
5706         * regex.c (re_match_2_internal): Fix matching degenerate word
5707         boundaries.
5708
5709 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5710
5711         * XEmacs 21.4.13 is released
5712
5713 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5714
5715         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5716         * lisp.h (<inttypes.h>):
5717         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5718         the definition.
5719
5720 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5721
5722         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5723         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5724         Result: "temacs can only be run in -batch mode."
5725         Fix: Check xemacs executable candidate for directory-ness.
5726
5727 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5728
5729         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5730           they conflict with <sys/types.h>.
5731
5732 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5733
5734         * database.c: Berkeley DB wants __STDC__ to be defined.
5735
5736 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5737
5738         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5739
5740 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5741
5742         * process-unix.c (unix_send_process): Fix C++ compile error.
5743
5744 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5745
5746         * Added .dylib as an acceptable shared library file extension
5747         * to support MacOSX.
5748
5749 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5750
5751         * EmacsFrameP.h (EmacsFramePart):
5752         Kludge to allow compiling with Motif1, but linking with Motif2.
5753
5754 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5755
5756         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5757
5758
5759 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5760
5761         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5762
5763 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5764
5765         * sysdll.c: Included lisp.h to define needed alloca_array.
5766
5767 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5768
5769         Make XEmacs redisplay 10 times faster.
5770         If, that is, you're using a slow X connection and MoveOpaque.
5771         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5772         Use compress_motion = TRUE.
5773         * EmacsFrame.c (emacsFrameClassRec): 
5774         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5775         * EmacsManager.c (emacsManagerClassRec):
5776         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5777
5778 2003-01-30  Vin Shelton  <acs@xemacs.org>
5779
5780         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5781
5782 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5783
5784         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5785         Patch by Martin Buchholz.
5786
5787 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5788
5789         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5790         Thanks to icc for warning and Martin Buchholz for reporting.
5791
5792 2003-01-29  Vin Shelton <acs@xemacs.org>
5793
5794         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5795
5796         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5797         remember to multiply by the element size.
5798
5799 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5800
5801         * XEmacs 21.4.12 "Portable Code" is released.
5802
5803 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5804
5805         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5806         * s/cygwin.sc: new linker file.
5807
5808 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5809
5810         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5811
5812         * redisplay-x.c (x_output_string): Use X11-specified types.
5813         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5814         * emacs.c (__free_hook): Use typeof with Intel compiler.
5815         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5816
5817 2003-01-08  Andy Piper  <andy@xemacs.org>
5818
5819         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5820         reserve size during unexec().
5821
5822 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5823
5824         * process-unix.c (unix_create_process): Don't let outchannel block.
5825
5826 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5827
5828         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5829         Needed for IsBadReadPtr().
5830
5831 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5832
5833         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5834
5835 2002-12-14  Ben Wing  <ben@xemacs.org>
5836
5837         * callint.c: Declaration error.
5838         * dumper.c (pdump):
5839         * dumper.c (pdump_load): Warning fix.
5840         * process.c: GCPRO error.
5841         * glyphs.c (unmap_subwindow):
5842         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5843         * event-stream.c (maybe_kbd_translate): Wrong argument to
5844         character_to_event().
5845
5846         * alloc.c (garbage_collect_1):
5847         * emacs.c:
5848         * emacs.c (debug_can_access_memory):
5849         * emacs.c (fatal_error_signal):
5850         * emacs.c (mswindows_handle_hardware_exceptions):
5851         * emacs.c (main_1):
5852         * emacs.c (main):
5853         * emacs.c (assert_failed):
5854         * emacs.c (syms_of_emacs):
5855         * lisp.h:
5856         * print.c:
5857         * print.c (std_handle_out_va):
5858         * print.c (write_string_to_stdio_stream):
5859         * print.c (write_fmt_string):
5860         * print.c (printing_badness):
5861         * print.c (printing_major_badness):
5862         * print.c (print_internal):
5863         * print.c (debug_print_no_newline):
5864         * print.c (debug_backtrace):
5865         Be more defensive in handling bad values when printing.  Add code
5866         from trunk involving inhibit_non_essential_printing_operations.
5867         When going down or in debug_print(), don't do external conversion
5868         and such and try really, really hard when printing to avoid core
5869         dumping.  Add force-debugging-signal, debug_break().
5870
5871 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5872
5873         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5874         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5875
5876 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5877
5878         * database.c: Fix open_database. Berkeley DB API has changed in
5879         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5880
5881 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5882
5883         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5884
5885 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5886
5887         * event-Xt.c (Xt_timeout):
5888         (Xt_timeout_callback):
5889         (emacs_Xt_add_timeout):
5890         (emacs_Xt_remove_timeout):
5891         (Xt_timeout_to_emacs_event):
5892         Turn completed_timeouts from a stack into a queue.  Fixes
5893         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5894
5895 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5896
5897         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5898         * emacs.c (main): Assert that mmap'd allocation is disabled.
5899
5900 2002-10-14  Andy Piper  <andy@xemacs.org>
5901
5902         * glyphs-widget.c (layout_query_geometry): add in fiddle
5903         factor. Include border text in width layout calculation.
5904         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5905
5906 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5907
5908         * XEmacs 21.4.10 "Military Intelligence" is released.
5909
5910 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5911
5912         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5913         using the NAS private array SoundFileInfo that no longer exists in
5914         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5915         and earlier.  This is broken for some versions between 1.5a and
5916         1.5f.
5917
5918 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5919
5920         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5921
5922         * emacs.c (shut_down_emacs): Improve crash message.
5923
5924 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5925
5926         * file-coding.c (determine_real_coding_system): Check for coding
5927         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5928         shebangs and Python PEP 263.
5929
5930 2002-10-08  Andy Piper  <andy@xemacs.org>
5931
5932         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5933         if static sizes haven't been set.
5934
5935 2002-08-30  Mike Alexander  <mta@arbortext.com>
5936
5937         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5938         to close a socket.
5939
5940 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5941
5942         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5943
5944 2002-09-20  Mike Sperber <mike@xemacs.org>
5945
5946         (This partially gets back my patch from 2002-07-20 without the
5947         bug.)
5948         * callproc.c (child_setup): Remove Ben's comment noting confusion
5949         over the file descriptors >= 3: close_process_descs() doesn't
5950         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5951         * process-unix.c (unix_create_process): Call
5952         begin_dont_check_for_quit to inhibit unwanted interaction (and
5953         thus breaking of X event synchronicity) in the child.
5954
5955 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5956
5957         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5958         widget.
5959
5960 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5961
5962         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5963         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5964         the xemacs process did not exit, but looped infinitely here.  This
5965         fixes that problem.
5966
5967 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5968
5969         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5970         (find_context): Improve comments.
5971
5972         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5973         (re_match_2): An XCHAR_TABLE operation was missing.
5974
5975         Many of the following changes were inspired by Andy Piper's (now
5976         obsolete) patch to make syntax-table text property lookup optional.
5977
5978         [Documentation]
5979
5980         * syntax.h (top level): Document semantics of syntax flags.
5981         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5982         * syntax.c, syntax.h (top level): Document syntax cache better in
5983         comments.
5984
5985         [Instrument syntax caching (temporary change)]
5986
5987         * syntax.h (enum syntax_cache_statistics_functions, struct
5988         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5989         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5990         * syntax.c (scan_words, Fforward_comment, scan_lists,
5991         Fbackward_prefix_characters):
5992         * font-lock.c (find_context):
5993         Use them to instrument syntax caching. 
5994         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5995         syntax_cache_statistics_function_names): New type and variables.
5996         * syntax.c (update_syntax_cache): Update and report statistics.
5997
5998         [Major syntax cache optimizations]
5999
6000         syntax.c (lookup_syntax_properties): Default off.
6001
6002         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
6003         * syntax.c (update_syntax_cache):
6004         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
6005
6006         [Minor syntax cache optimizations and code clarifications]
6007
6008         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
6009         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
6010         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
6011         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
6012         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
6013         (Code clarification.)
6014
6015         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
6016         scan_lists): Compute code from syncode, use Boolean macros instead
6017         of redundant masking operations.  (Code clarification; any decent
6018         compiler can do this optimization.)
6019
6020         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
6021         for clarity.
6022
6023         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
6024         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
6025         use F*_single_property_change instead of F*_extent_change.
6026         Currently F*_single_property_change is _much_ less efficient.
6027
6028         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
6029         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
6030         syntax_cache.object properly, don't leave Qt or Qnil.
6031         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
6032         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
6033         tests for Qt or Qnil.
6034
6035 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
6036
6037         * redisplay.c (point_in_line_start_cache): 
6038         * extents.c (print_extent_1):
6039         Fix warnings.
6040
6041         * extents.c (Fset_extent_property): Document `syntax-table' property.
6042
6043         * extents.h (Fnext_single_property_change): EXFUN it.
6044
6045 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6046
6047         * search.c (clear_unused_search_regs): New static function.
6048         (search_buffer): 
6049         (simple_search): 
6050         (boyer_moore):
6051         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
6052         Minor clarifications in comments.
6053
6054         * regex.c (re_match_2_internal): Ensure no stale submatches.
6055
6056 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6057
6058         * event-Xt.c (enqueue_focus_event): Add missing prototype.
6059
6060 2002-08-29  Jerry James  <james@xemacs.org>
6061
6062         * lisp.h: structrures -> structures.
6063
6064 2002-06-03  Andy Piper  <andy@xemacs.org>
6065
6066         * frame.c (frame_conversion_internal): add conversion appropriate
6067         for setting frame dimensions in pixels.
6068
6069         * console.h (struct console_methods): add device-specific widget
6070         layout functions.
6071
6072         * emacs.c (main_1): initialize glyph vars.
6073
6074         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
6075         (handle_focus_event_2): new function. Allow focus to
6076         be set to a particular window and widget.
6077         (enqueue_focus_event): new function. Create a
6078         synthetic focus event.
6079         (emacs_Xt_handle_magic_event): call
6080         handle_focus_event_2.
6081
6082         * frame.c (Fset_frame_pixel_height): new function. Allow
6083         pixel-based sizing. Does the right thing on character-oriented
6084         displays.
6085         (Fset_frame_pixel_width): ditto.
6086         (Fset_frame_pixel_size): ditto.
6087         (syms_of_frame): declare.
6088
6089         * general-slots.h: add :vertically-justify and
6090         :horizontally-justify.
6091
6092         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
6093         (mswindows_widget_border_width): new function.
6094         (mswindows_combo_box_instantiate): set border widths.
6095         (console_type_create_glyphs_mswindows): declare.
6096
6097         * glyphs-widget.c:
6098         (check_valid_justification): allow vertical and horizontal
6099         justification.
6100         (widget_border_width): new function. Call device methods.
6101         (widget_instance_border_width): ditto.
6102         (logical_unit_height): new function. Determine the height of a
6103         logical-unit. Logical units are intended to provide grid-like
6104         layout for subcontrols in a layout. If the layout is
6105         :vertically-justify top then subcontrols will be positioned on
6106         logical-unit boundaries, thus allowing adjacent subcontrols to
6107         line up.
6108         (widget_logical_unit_height): ditto for widgets.
6109         (redisplay_widget): misc cleanup.
6110         (widget_spacing): new function. Call device specific
6111         methods. Intended to be the default gap between adjacent widgets.
6112         (widget_query_geometry): use new spacing functions to determine
6113         appropriate geometry.
6114         (initialize_widget_image_instance): initialize horizontal and
6115         vertical justification.
6116         (widget_instantiate): use logica-units where appropriate for
6117         sizing large widgets.
6118         (button_query_geometry): use widget_instance_border_width.
6119         (tree_view_query_geometry): ditto.
6120         (tab_control_query_geometry): ditto.
6121         (edit_field_query_geometry): new function.
6122         (layout_update): pick up :justify, :horizontally-justify and
6123         :vertically-justify none of which worked previously. :justify is
6124         used as a fallback for both horizontal and vertical justification.
6125         (layout_query_geometry): use logical units to size appropriately.
6126         (layout_layout): ditto.
6127         (Fwidget_logical_to_character_width): new function. Allow users to
6128         convert from logical units to characters so that frame sizes can
6129         be set appropriately.
6130         (Fwidget_logical_to_character_height): ditto.
6131         (syms_of_glyphs_widget): declare.
6132         (image_instantiator_edit_fields): add edit_field_query_geometry.
6133         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
6134         :horizontally-justify.
6135         (specifier_vars_of_glyphs_widget): new function. Declare
6136         Vwidget_border_width which is not yet used.
6137
6138         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
6139         (x_widget_border_width): new function.
6140         (x_widget_instantiate): create a sensible name for widgets.
6141         (console_type_create_glyphs_x): declare x_widget_border_width.
6142
6143         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
6144         (struct Lisp_Image_Instance): add :vertically-justify and
6145         :horizontally-justify.
6146         (LAYOUT_JUSTIFY_TOP): new.
6147         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
6148         (ROUND_UP): new macro. Round argument up to next integral
6149         interval.
6150
6151         * redisplay-output.c (redisplay_output_layout): misc formatting.
6152
6153         * symsinit.h: declare specifier_vars_of_glyphs_widget.
6154
6155 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
6156
6157         * XEmacs 21.4.9 "Informed Management" is released.
6158
6159 2002-08-19  Andy Piper  <andy@xemacs.org>
6160
6161         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
6162         win32 format.
6163
6164         * realpath.c (xrealpath): normalize drive spec also so that dir
6165         sep chars are not mixed on cygwin.
6166
6167 2002-08-06  Jerry James  <james@xemacs.org>
6168
6169         * window.c (Fsplit_window): Count only half of the divider width
6170         against the left window when splitting horizontally. 
6171
6172 2002-06-24  Andy Piper  <andy@xemacs.org>
6173
6174         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
6175         toolbar was cleared.
6176
6177         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
6178         function. Split out from mswindows_output_frame_toolbars.
6179         (mswindows_output_frame_toolbars): move clear pieces to
6180         mswindows_output_frame_toolbars.
6181
6182         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
6183         out from gtk_output_frame_toolbars.
6184         (gtk_output_frame_toolbars): move clear pieces to
6185         gtk_clear_frame_toolbars.
6186
6187         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
6188         the frame is cleared. How this ever worked before is a mystery.
6189         (x_output_frame_toolbars): Only output toolbars.
6190         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
6191
6192         * gutter.c (update_gutter_geometry):
6193         Mark frame layout changed.
6194         (update_frame_gutter_geometry, update_frame_gutters):
6195         Respect frame_layout_changed.
6196
6197         * console.h (struct console_methods): add
6198         clear_frame_toolbars_method.
6199
6200         * redisplay.c (redisplay_frame): call
6201         update_frame_toolbars_geometry and re-order update_frame_toolbars.
6202
6203         * toolbar.h: declare update_frame_toolbars_geometry.
6204
6205         * toolbar.c (update_frame_toolbars_geometry): new function. Split
6206         out from update_frame_toolbars.  Call clear_frame_toolbars.
6207         (update_frame_toolbars): only output, do not change geometry.
6208
6209         * redisplay.c: add frame_layout_changed.
6210
6211         * redisplay.h: add frame_layout_changed.
6212         (CLASS_RESET_CHANGED_FLAGS): set it.
6213         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
6214         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
6215         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
6216
6217         * device.h (struct device): add frame_layout_changed.
6218         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
6219
6220         * frame.h (struct frame): add frame_layout_changed.
6221         (MARK_FRAME_LAYOUT_CHANGED): new.
6222
6223 2002-06-30  Mike Alexander  <mta@arbortext.com>
6224
6225         * event-msw.c (mswindows_need_event): Don't wait for a new message
6226         if the queue is not empty.  Suggested by Paul Moore.
6227
6228 2002-06-12  Andy Piper  <andy@xemacs.org>
6229
6230         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
6231         for printing on accurately.
6232
6233 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
6234
6235         * event-msw.c (mswindows_wnd_proc): Add a handler for the
6236         WM_ACTIVATE message. Make sure that the frame is visible if the
6237         window is visible. This seemss to fix the problem where XEmacs
6238         appears to freeze after switching desktops with certain virtual
6239         window managers.
6240         (debug_output_mswin_message): Added code to output message
6241         parameters for WM_WINDOWPOSCHANGED, 
6242         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
6243
6244 2002-05-25  Andy Piper  <andy@xemacs.org>
6245
6246         * select-x.c (vars_of_select_x): Fix docstring of
6247         x-selection-strict-motif-ownership
6248
6249 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6250
6251         * keymap.c (get_keymap):
6252         Add comment about do_autoload GCPROs own args.
6253
6254 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6255
6256         * bytecode.c (execute_optimized_program): check_opcode ifdef
6257         ERROR_CHECK_BYTE_CODE.
6258
6259 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6260
6261         Thanks to Ben Wing and Michael Sperber.
6262
6263         * eval.c (Fcommand_execute):
6264         (Feval):
6265         (Ffuncall):
6266         (Fmacroexpand_internal):
6267         (function_argcount):
6268         callint.c (Fcall_interactively):
6269         Add comment about do_autoload GCPROs own args.
6270
6271         * (do_autoload): GCPRO both args as well as local Lisp_Object.
6272
6273         * eval.c (Ffuncall): Extra braces to placate GCC.
6274
6275 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
6276
6277         * backtrace.h (grow_specpdl):
6278         (SPECPDL_RESERVE):
6279         * EmacsFrame.c (EmacsFrameSetValues):
6280         * eval.c (grow_specpdl):
6281         * ExternalShell.c (hack_event_masks_1):
6282         * glyphs-x.c (convert_EImage_to_XImage): 
6283         (x_finalize_image_instance):
6284         * ralloc.c (page_size):
6285         (r_alloc_sbrk):
6286         * xgccache.c (gc_cache_hash):
6287         Fix unsigned comparison warnings.
6288
6289 2002-07-29  Jerry James  <james@xemacs.org>
6290
6291         * lread.c (locate_file): Any nonnegative return value indicates
6292         success if MODE is nonnegative.
6293
6294 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
6295
6296         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
6297         argument. 
6298
6299 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
6300
6301         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
6302
6303         * dumper.c (pdump_get_indirect_count):
6304         (pdump_scan_by_alignment):
6305         (pdump_dump_root_struct_ptrs):
6306         (pdump_dump_rtables):
6307         (pdump_dump_root_objects):
6308         (pdump):
6309         * nas.c (WaveOpenDataForReading):
6310         * fns.c (print_bit_vector):
6311         * font-lock.c (SINGLE_SYNTAX_STYLE):
6312         * glyphs.c (check_for_ignored_expose):
6313         (find_matching_subwindow):
6314         * glyphs-eimage.c:
6315         * imgproc.c (get_histogram):
6316         * redisplay.c (point_in_line_start_cache):
6317         * redisplay-output.c (redisplay_unmap_subwindows):
6318         * symbols.c (defsymbol_massage_name_1):
6319         (defkeyword_massage_name):
6320         (deferror_massage_name_and_message):
6321         * redisplay-x.c (x_output_string): 
6322         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
6323         * frame.h (struct frame):
6324         * filelock.c (current_lock_owner):
6325         * doprnt.c (emacs_doprnt_1):
6326         * lisp.h (struct Lisp_Bit_Vector):
6327         (DO_REALLOC):
6328         Fix warnings.
6329
6330 2002-02-13  Ben Wing  <ben@xemacs.org>
6331
6332         * event-stream.c (reset_key_echo):
6333         * event-stream.c (reset_this_command_keys):
6334         * event-stream.c (execute_command_event):
6335         If console is dead as a result of C-x 5 0, then post-command stuff
6336         needs to be careful and do only non-console-specific stuff.
6337
6338 2002-07-01  Mike Sperber <mike@xemacs.org>
6339
6340         * process-unix.c (unix_send_process): Mark coding_outstream as
6341         non-open upon SIGPIPE.
6342
6343         * event-stream.c (Fnext_event): Reorder switch cases to something
6344         that makes sense.
6345
6346 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
6347
6348         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
6349         Don't bogusly reinitialize ascii_character property.
6350
6351 2002-07-08  Mike Sperber <mike@xemacs.org>
6352
6353         * process.c (Fstart_process_internal): Do error checking before we
6354         fork off the child, so the child can't muck with the state of the
6355         parent.
6356
6357 2002-07-08  Mike Sperber <mike@xemacs.org>
6358
6359         * ralloc.c (init_ralloc): Allocate properly for pdump.
6360
6361 2002-06-12  Andy Piper  <andy@xemacs.org>
6362
6363         * glyphs.c (query_string_geometry): check the string.
6364
6365         * glyphs-widget.c (widget_logical_unit_height): cope with nil
6366         widget names.
6367
6368 2002-06-17  Jerry James  <james@xemacs.org>
6369
6370         * sysdll.c: Remove RTLD_GLOBAL initialization.
6371         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
6372
6373 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
6374
6375         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
6376
6377 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
6378
6379         * sysdep.c (sys_rename): Make sys_rename work for the case where
6380         Windows rename sets errno to EACCES if target file exists.
6381
6382 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
6383
6384         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6385         Fix detection of metric units to work on Win95
6386
6387 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
6388
6389         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
6390
6391 2002-04-25  Andy Piper  <andy@xemacs.org>
6392
6393         * redisplay.c (create_text_block): Remove extra comment trailer.
6394
6395 2002-04-24  Andy Piper  <andy@xemacs.org>
6396
6397         * redisplay.c (create_text_block): Don't actually add propagation
6398         data if the line ends after we have added a glyph.
6399
6400 2002-04-22  Andy Piper  <andy@xemacs.org>
6401
6402         * extents.c (extent_fragment_update): check for glyphs we have
6403         previously displayed.
6404         * extents.c (print_extent_1): warning removal.
6405         * extents.h: change prototype.
6406         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
6407         widths correctly for wide glyphs.
6408         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
6409         * redisplay.c (prop_type): add PROP_GLYPH.
6410         * redisplay.c (struct prop_block): add glyph type
6411         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
6412         to the propagation data.
6413         * redisplay.c (create_text_block): if there is a glyph in the
6414         propagation data use it to salt extent_fragment_update.
6415         * redisplay.c (create_string_text_block): ditto.
6416
6417 2002-04-13  Nix  <nix@esperi.demon.co.uk>
6418
6419         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
6420         * redisplay-output.c (compare_runes): Compare them.
6421         * redisplay.c: Update copyright date.
6422         * redisplay.c (pos_data): Add need_baseline_computation field.
6423         * redisplay.c (add_glyph_rune): Update ascent, descent, and
6424         need_baseline_computation; zero yoffset. Set max_pixmap_height
6425         for all pixmaps, not just automatically positioned ones.
6426         * redisplay.c (calculate_yoffset): New, compute yoffset values.
6427         * redisplay.c (calculate_baseline): New, compute textual baseline.
6428         * redisplay.c (add_glyph_rune): Call them.
6429         * redisplay.c (create_text_block): Likewise.
6430         * redisplay.c (create_overlay_glyph_block): Likewise.
6431         * redisplay.c (add_margin_runes): Likewise.
6432         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
6433
6434         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
6435         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
6436         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
6437         * redisplay-msw.c (mswindows_output_string): Likewise.
6438         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
6439         * redisplay-gtk.c (gtk_output_display_block): Likewise.
6440         * redisplay-x.c (x_output_display_block): Likewise.
6441
6442 2002-03-28  Ben Wing  <ben@xemacs.org>
6443
6444         * redisplay.c: Fixed bug in redisplay
6445         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
6446         and down of the lines, since they're bigger than the line
6447         size. (It was seen most obviously when there's a horizontal scroll
6448         bar, e.g. do C-h a glyph or something like that.) The problem was
6449         that the glyph-contrib-p setting on glyphs was ignored even if it
6450         was set properly, which it wasn't until now.
6451
6452 2002-04-24  Andy Piper  <andy@xemacs.org>
6453
6454         * lisp.h (Dynarr_end): Fix definition.
6455
6456 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
6457
6458         * redisplay.c (mark_redisplay): Remove call to
6459         update_frame_window_mirror.
6460
6461 2001-11-15  Andy Piper  <andy@xemacs.org>
6462
6463         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
6464         cygwin (again).
6465
6466 2002-02-13  Andy Piper  <andy@xemacs.org>
6467
6468         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
6469         we did in fact enqueue the XM_MAPFRAME event.
6470
6471 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
6472
6473         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
6474         to fix problem switching between virtual desktops under virtuawin
6475         virtual window manager.
6476
6477 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
6478
6479         * event-msw.c: Typo fix.
6480         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
6481         magic XM_MAPFRAME event has been sent.
6482
6483 2001-11-23  Andy Piper  <andy@xemacs.org>
6484
6485         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
6486
6487 2001-11-21  Andy Piper  <andy@xemacs.org>
6488
6489         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
6490         mouse events outside the frame.
6491
6492 2002-03-20  Andy Piper  <andy@xemacs.org>
6493
6494         * menubar-msw.c (mswindows_popup_menu): warning removal.
6495         * dialog-msw.c (dialog_popped_down): ditto.
6496
6497 2001-12-11  Andy Piper  <andy@xemacs.org>
6498
6499         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6500         * dialog-msw.c (mswindows_make_dialog_box_internal): set
6501         popup_up_p.
6502         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6503         * menubar-msw.c (mswindows_handle_wm_command): ditto.
6504         * menubar-msw.c (mswindows_popup_menu): ditto.
6505
6506 2001-10-29  Andy Piper  <andy@xemacs.org>
6507
6508         * dialog-msw.c (handle_directory_dialog_box): quit if the user
6509         cancels.
6510
6511 2002-01-03  Andy Piper  <andy@xemacs.org>
6512
6513         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6514         letters.
6515         (xrealpath): ditto.
6516
6517 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6518
6519         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6520         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6521         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6522         Detect and handle case where machine is set up for metric units
6523
6524 2002-04-02  Andy Piper  <andy@xemacs.org>
6525
6526         * dired-msw.c (mswindows_get_files): 
6527         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6528         completely handled by XEmacs. Suggested by Thomas Vogler
6529         <mail@thomas-vogler.de>.
6530
6531 2001-11-14  Andy Piper  <andy@xemacs.org>
6532
6533         * nt.c (REG_ROOT): change registry key to XEmacs.
6534
6535 2002-04-27  Andy Piper  <andy@xemacs.org>
6536
6537         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6538
6539 2002-04-26  Andy Piper  <andy@xemacs.org>
6540
6541         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6542         behavior.
6543
6544 2002-03-14  Mike Alexander  <mta@arbortext.com>
6545
6546         * event-msw.c (mswindows_unwait_process): New, remove process from
6547         wait list
6548         * process-nt.c (nt_finalize_process_data): Call
6549         mswindows_unwait_process
6550         * console-msw.h: Declare mswindows_unwait_process
6551
6552 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6553
6554         * editfns.c (Fdecode_time):
6555         (Fformat_time_string):
6556         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6557         (make_time): Warning elimination (change arg name).
6558
6559 2001-11-24  Andy Piper  <andy@xemacs.org>
6560
6561         * window.c (Fsplit_window): Doc return type.
6562
6563 2002-04-01  Andy Piper  <andy@xemacs.org>
6564
6565         * emacs.c (Fkill_emacs): Only output message box in interactive
6566         mode.
6567
6568 2002-04-26  Andy Piper  <andy@xemacs.org>
6569  
6570         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6571         cygwin.
6572
6573 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6574
6575         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6576         bit platform.
6577
6578 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6579
6580         * XEmacs 21.4.8 "Honest Recruiter" is released.
6581
6582 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6583
6584         Supersedes 2002-04-17 patch.
6585
6586         * process.h (PROCESS_LIVE_P): Use the process status as
6587         evidence of health, not the state of the input stream.
6588         (PROCESS_READABLE_P): Say if the process is readable
6589         from. (It may be dead nonetheless.)
6590         (CHECK_READABLE_PROCESS): Test for that condition.
6591
6592         * process.c (create_process): Use PROCESS_READABLE_P.
6593         (read_process_output, set_process_filter): Likewise.
6594
6595         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6596         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6597
6598         This code is #if 0'd, this is not the time to add new functions:
6599
6600         * process.c (Fprocess_readable_p): Report readability status.
6601         * process.c (Qprocess_readable_p): New, associated symbol...
6602         * process.c (syms_of_process): ... initialize it.
6603
6604 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6605
6606         * XEmacs 21.4.7 "Economic Science" is released.
6607
6608 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6609
6610         * process.h (PROCESS_LIVE_P): Use the process status as
6611         evidence of health, not the state of the input stream.
6612
6613 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6614
6615         * sysdep.c (sys_siglist): change "signum" to "signal"
6616
6617 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6618
6619         * s/darwin.h: New file.
6620         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6621         
6622 2002-04-23  Andreas Jaeger  <aj@suse.de>
6623
6624         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6625         which use lib64 for 64-bit libs.
6626         (START_FILES): Likewise.
6627
6628 2002-02-11  Mike Sperber  <mike@xemacs.org>
6629
6630         * device-x.c: 
6631         (x_IO_error_handler):
6632         (x_init_device): Temporarily keep device in static variable
6633         `device_being_initialized' so we can recover gracefully from
6634         internal XOpenDevice failure.  (XOpenDevice is documented to
6635         return NULL on failure, but sometimes calls the IO error handler
6636         instead.)
6637
6638 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6639
6640         * dired.c (Ffile_name_all_completions): Change documentation --
6641         remove reference to completion-ignored-extensions.
6642         * dired.c (vars_of_dired): Change documentation for
6643         completion-ignored-extensions -- remove reference to
6644         file-name-all-completions.
6645
6646 2002-03-06  Jerry James  <james@xemacs.org>
6647
6648         * emodules.c (emodules_load): Fix multiple loading of same module.
6649
6650 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6651         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6652         RTLD_LAZY to avoid incorrect symbol binding when using nested
6653         shared libraries on Solaris.
6654
6655 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6656
6657         * fileio.c (Ffind_file_name_handler): Improve docstring.
6658
6659 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6660
6661         * fns.c (Fmapconcat): Improve docstring.
6662
6663 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6664
6665         * device-gtk.c: Add prototype for
6666         emacs_gtk_selection_clear_event_handle.
6667         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6668         selection.  Setup signal handler for "selection_clear_event"
6669         (emacs_gtk_selection_clear_event_handle).
6670
6671         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6672         other applications owning the clipboard (based on
6673         x_handle_selection_clear).
6674
6675 2001-12-23  William M. Perry  <wmperry@gnu.org>
6676
6677         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6678         
6679 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6680
6681         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6682
6683 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6684
6685         * XEmacs 21.4.6 "Common Lisp" is released.
6686
6687 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6688
6689         * search.c (Freplace_match): Add missing sub-expression functionality.
6690
6691         * buffer.c (decode_buffer): Add a check for pointer type to
6692         decode_buffer, before gcc's CSE optimization reorders a
6693         dereference in front of the allow_string test.
6694
6695 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6696
6697         * window.c (window_loop): Fix bug that sometimes prevented
6698         window_loop() from iterating across multiple devices.  Also, at
6699         Ben's request, changed infloop-detecting code to abort() instead
6700         of silently terminating window_loop().
6701
6702 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6703
6704         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6705         * editfns.c (make_time): New function.
6706         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6707         * lisp.h (make_time): Prototype and comment it.
6708         * dired.c (wasteful_word_to_lisp): Deprecate.
6709         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6710
6711 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6712
6713         * fileio.c (auto_save_1): Use current coding system, not
6714         escape-quoted.
6715
6716 2001-11-13  Ben Wing  <ben@xemacs.org>
6717
6718         * window.c:
6719         * window.c (window_truncation_on):
6720         * window.c (syms_of_window):
6721         truncate-partial-width-windows should respect the buffer being
6722         displayed, like other redisplay vars.
6723
6724 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6725
6726         * event-stream.c (Fread_key_sequence): save current buffer.
6727
6728 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6729
6730         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6731
6732 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6733
6734         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6735
6736 2001-10-26  Mike Alexander  <mta@arbortext.com>
6737
6738         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6739
6740 2001-10-25  Andy Piper  <andy@xemacs.org>
6741
6742         * ChangeLog:
6743         * dialog-msw.c (handle_directory_proc): new function.
6744          (handle_directory_dialog_box): new fucntion.
6745          (handle_file_dialog_box): use new directory dialog support.
6746          (mswindows_make_dialog_box_internal): ditto.
6747         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6748         handling.
6749         (mswindows_find_frame): make global.
6750         * fileio.c (Fexpand_file_name): build fix.
6751         * general-slots.h: add Qdirectory.
6752         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6753         handling.
6754         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6755         cygwin not leaving win32 paths unchanged.
6756         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6757         cygwin runtime to do path conversion.
6758         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6759         (syms_of_win32): add new function.
6760         * window.c (window_loop): build fix.
6761
6762 2001-10-15  Andy Piper  <andy@xemacs.org>
6763
6764         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6765
6766 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6767
6768         * XEmacs 21.4.5 "Civil Service" is released.
6769
6770 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6771
6772         * glyphs-x.c: Force buffer-tab highlight update when moving the
6773         buffer, avoiding an ugly black border, used for keyboard focus
6774         indication, on a widget that can never have keyboard focus, the
6775         buffer tab.
6776
6777 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6778
6779         * process-unix.c (unix_open_multicast_group): Remove too much
6780         conversion between host and network byte order.
6781
6782 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6783
6784         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6785         before replacing them.
6786
6787         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6788         operation.
6789
6790         * src/window.c (undedicate_windows): Use it.
6791         * src/window.h: Add prototype.
6792
6793 2001-09-17  Ben Wing  <ben@xemacs.org>
6794
6795         * fileio.c (normalize_filename):
6796         * fileio.c (Fexpand_file_name):
6797         Fix various C++ compile errors in Andy's recent code.
6798         
6799         * callint.c (Fcall_interactively):
6800         * editfns.c (Ftemp_directory):
6801         * editfns.c (Fuser_full_name):
6802         * emacs.c (argmatch):
6803         * lread.c (locate_file_map_suffixes):
6804         * redisplay-x.c (x_ring_bell):
6805         Fix sign-compare warnings.
6806         
6807 2001-09-08  Andy Piper  <andy@xemacs.org>
6808
6809         * fileio.c (normalize_filename): copied from nt.c
6810         * (Ffile_name_directory): enable win32 paths under cygwin.
6811         * (Ffile_name_nondirectory): ditto.
6812         * (directory_file_name): ditto.
6813         * (Fexpand_file_name): ditto.
6814         * (Ffile_truename): ditto.
6815         * (Fsubstitute_in_file_name): ditto.
6816         * (Ffile_name_absolute_p): ditto.
6817         * (Ffile_readable_p): ditto.
6818
6819 2001-09-08  Andy Piper  <andy@xemacs.org>
6820
6821         * device-msw.c (mswindows_finish_init_device): remove dde
6822         initialization.
6823         * device-msw.c (mswindows_init_dde): factor out from
6824         mswindows_finish_init_device()
6825         * device-msw.c (init_mswindows_very_early): new function
6826         initialize but don't enable dde.
6827         * emacs.c (main_1): call init_mswindows_very_early.
6828         * event-msw.c:
6829         * event-msw.c (mswindows_dde_callback): only execute when we are
6830         ready.
6831         * symsinit.h: declare init_mswindows_very_early.
6832
6833 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6834
6835         [sjt: This has been in 21.5 for months with no complaints.]
6836
6837         * console.h (struct console_methods): Added flags member.
6838         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6839         (CONMETH_IMPL_FLAG):
6840         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6841         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6842
6843         * device.c (window_system_pixelated_geometry): Use the above macros.
6844
6845         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6846         implememntation flag.
6847         * device.h (DEVICE_DISPLAY_P): Use it.
6848
6849         * frame.c (delete_frame_internal): Use the above macro.
6850
6851         * redisplay.c (redisplay_device): Use it.
6852         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6853         (redisplay_frame): Ditto.
6854
6855         * device-msw.c (mswindows_device_implementation_flags): Removed.
6856         (msprinter_device_implementation_flags): Removed.
6857         (console_type_create_device_mswindows): Removed references to
6858         implementation_flags methods, set implementation flags here.
6859         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6860
6861         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6862         (console_type_create_device_gtk): Removed method declaration.
6863         Added commented out statement which semantically matches the
6864         commented out statement in the above removed method.
6865
6866 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6867
6868         The attached patch fixes a few warnings. 
6869
6870         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6871         * src/frame-gtk.c: guard against GNOME calls in GTK only
6872         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6873         * src/select-gtk.c: prototype lisp_to_time
6874
6875 2001-06-08  Ben Wing  <ben@xemacs.org>
6876
6877         ------ gc-in-window-procedure fixes ------
6878         
6879         * alloc.c:
6880         * alloc.c (struct post_gc_action):
6881         * alloc.c (register_post_gc_action):
6882         * alloc.c (run_post_gc_actions):
6883         * alloc.c (garbage_collect_1):
6884         Create "post-gc actions", to avoid those dreaded "GC during window
6885         procedure" problems.
6886
6887         * event-msw.c:
6888         Abort, clean and simple, when GC in window procedure.  We want
6889         to flush these puppies out.
6890
6891         * glyphs-msw.c:
6892         * glyphs-msw.c (finalize_destroy_window):
6893         * glyphs-msw.c (mswindows_finalize_image_instance):
6894         Use a post-gc action when destroying subwindows.
6895
6896         * lisp.h:
6897         Declare register_post_gc_action().
6898
6899         * scrollbar-msw.c:
6900         * scrollbar-msw.c (unshow_that_mofo):
6901         Use a post-gc action when unshowing scrollbar windows, if in gc.
6902
6903         * redisplay.c (mark_redisplay):
6904         Add comment about the utter evilness of what's going down here.
6905
6906         ------ cygwin setitimer fixes ------
6907         
6908         * Makefile.in.in (sheap_objs):
6909         * Makefile.in.in (profile_objs):
6910         * Makefile.in.in (objs):
6911         Compile profile.c only when HAVE_SETITIMER.
6912         
6913         * nt.c (mswindows_sigset):
6914         * nt.c (mswindows_sighold):
6915         * nt.c (mswindows_sigrelse):
6916         * nt.c (mswindows_sigpause):
6917         * nt.c (mswindows_raise):
6918         * nt.c (close_file_data):
6919         Style fixes.
6920         
6921         * nt.c:
6922         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6923         
6924         * profile.c:
6925         * profile.c (Fstart_profiling):
6926         * profile.c (Fstop_profiling):
6927         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6928         instead of just plain setitimer().
6929         
6930         * signal.c:
6931         * signal.c (set_one_shot_timer):
6932         * signal.c (alarm):
6933         Define qxe_setitimer() as an encapsulation around setitimer() --
6934         call setitimer() directly unless Cygwin or MS Win, in which case
6935         we use our simulated version in win32.c.
6936         
6937         * systime.h:
6938         * systime.h (struct itimerval):
6939         * systime.h (ITIMER_REAL):
6940         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6941         comment about "qxe" and the policy regarding encapsulation.
6942
6943         * win32.c:
6944         * win32.c (setitimer_helper_proc):
6945         * win32.c (setitimer_helper_period):
6946         * win32.c (setitimer_helper):
6947         * win32.c (mswindows_setitimer):
6948         Move setitimer() emulation here, so Cygwin can use it.
6949         Rename a couple of functions and variables to be longer and more
6950         descriptive.  In setitimer_helper_proc(), send the signal
6951         using either mswindows_raise() or (on Cygwin) kill().  If for
6952         some reason we are still getting lockups, we'll change the kill()
6953         to directly invoke the signal handlers.
6954
6955         ------ windows shell fixes ------
6956         
6957         * callproc.c:
6958         * ntproc.c:
6959         Comments about how these two files must die.
6960
6961         * callproc.c (init_callproc):
6962         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6963         not just COMSPEC. (more correct and closer to FSF.) Don't
6964         force a value for SHELL into the environment. (Comments added
6965         to explain why not.)
6966         
6967         * nt.c (init_user_info):
6968         Don't shove a fabricated SHELL into the environment.  See above.
6969
6970 2001-06-01  Ben Wing  <ben@xemacs.org>
6971
6972         * Makefile.in.in (ldflags):
6973         eliminate that pesky "defaulting to 00401000" warning.
6974         * nt.h:
6975         eliminate warnings.
6976
6977 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6978
6979         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6980         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6981
6982 2001-04-24  Jerry James <james@xemacs.org>
6983
6984         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6985         correct order.
6986
6987 2001-06-01  Ben Wing  <ben@xemacs.org>
6988
6989         * event-msw.c (debug_mswin_messages):
6990         conditionalize the messages that were causing compile errors.
6991         (if only macros could generate #ifdef statements ...)
6992
6993 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6994
6995         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6996
6997 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6998
6999         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
7000
7001 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
7002
7003         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
7004         * process-unix.c (unix_canonicalize_host_name):
7005         sysdep.c (init_system_name):
7006         Use it to conditionally support IPv6 canonicalization.
7007
7008 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
7009
7010         * event-msw.c:
7011         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
7012
7013 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
7014
7015         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
7016         attempt is made to scroll when no scroll bar is available.
7017
7018 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7019
7020         * input-method-motif.c (XIM_delete_frame): New callback.
7021         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
7022         got deleted from 21.4.3.)
7023
7024 2001-06-01  Ben Wing  <ben@xemacs.org>
7025
7026         * nt.c (mswindows_utime):
7027         * nt.c (close_file_data):
7028         fix off-by-one-indirection error.
7029
7030 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
7031
7032         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
7033         because set_file_times() now takes Lisp_Object path, instead of
7034         char*.
7035         * nt.c: Include buffer.h.
7036         * nt.c (convert_from_time_t): New.
7037         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
7038         not set mtime correctly.
7039         * nt.h: Declare mswindows_utime().
7040         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
7041         path, instead of char*.
7042         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
7043
7044 2001-05-30  Ben Wing  <ben@xemacs.org>
7045
7046         For 21.4:
7047
7048         (Stephen, just take all event-msw.c patches.  This includes
7049         the "iconify" fix below.)
7050
7051         * event-msw.c:
7052         * event-msw.c (mswindows_dequeue_dispatch_event):
7053         * event-msw.c (assert):
7054         * event-msw.c (emacs_mswindows_quit_p):
7055         * event-msw.c (debug_mswin_messages):
7056         * event-msw.c (debug_output_mswin_message):
7057         * event-msw.c (vars_of_event_mswindows):
7058         Fix yet more problems with C-g handling.
7059         Implement debug-mswindows-events.
7060         
7061 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7062
7063         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
7064         
7065 2001-05-23  Ben Wing  <ben@xemacs.org>
7066
7067         * event-msw.c (winsock_writer):
7068         * event-msw.c (winsock_closer):
7069         prior kludgy code was clobbering the buffer, thinking it was
7070         "unused" space to store an unneeded return value; instead, use
7071         the variable we've already got staring us in the face.
7072
7073 2001-05-17  Andy Piper  <andy@xemacs.org>
7074
7075         * sysfile.h: don't assume that file attributes are boolean
7076
7077 2001-05-23  Ben Wing  <ben@xemacs.org>
7078
7079         * device-msw.c (msprinter_init_device):
7080         signal an error rather than crash with an unavailable network
7081         printer (from Mike Alexander).
7082         
7083         * event-msw.c:
7084         * event-msw.c (struct winsock_stream):
7085         * event-msw.c (winsock_writer):
7086         * event-msw.c (winsock_closer):
7087         * event-msw.c (make_winsock_stream_1):
7088         cleanup headers.  fix (hopefully) an error with data corruption
7089         when sending to a network connection.
7090
7091         * fileio.c (Fexpand_file_name): Fix evil code that attempts
7092         to handle the ~user prefix by (a) always assuming we're referencing
7093         ourselves and not even verifying the user -- hence any file with
7094         a tilde as its first char is invalid! (b) if there wasn't a slash
7095         following the filename, the pointer was set *past* the end of
7096         file and we started reading from uninitialized memory.  Now we
7097         simply treat these as files, always.
7098
7099         * buffer.c (common_init_complex_vars_of_buffer): comment change.
7100         
7101 2001-05-19  Ben Wing  <ben@xemacs.org>
7102
7103         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
7104
7105         * process-nt.c:
7106         * process-nt.c (vars_of_process_nt):
7107         remove unused mswindows-quote-process-args.  rec for 21.4.
7108         
7109 2001-05-12  Ben Wing  <ben@xemacs.org>
7110
7111         * event-msw.c (mswindows_dde_callback):
7112         * event-msw.c (mswindows_wnd_proc):
7113         eliminate cygwin warnings.
7114
7115 2001-05-06  Ben Wing  <ben@xemacs.org>
7116
7117         * console-msw.h:
7118         * device-msw.c:
7119         * device-msw.c (print_dialog_worker):
7120         * device-msw.c (mswindows_handle_print_dialog_box):
7121         * device-msw.c (syms_of_device_mswindows):
7122         * dialog-msw.c (mswindows_make_dialog_box_internal):
7123         * general-slots.h:
7124         implement printing the selection when it's selected.
7125
7126 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
7127
7128         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
7129
7130 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7131
7132         * lisp.h (EMACS_INT_MAX): This should be one bit less since
7133         EMACS_INT is signed.
7134
7135 2001-04-15  Michael Lausch  <mla@1012surf.net>
7136
7137         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
7138         gtk_widget_request_size() to give scrollbar >0 width for
7139         GTK >1.2.8.
7140
7141 2001-05-30  William M. Perry  <wmperry@gnu.org>
7142
7143         * event-gtk.c: Check for buttons as modifier keys.
7144
7145 2001-05-25  Craig Lanning  <CraigL@Knology.net>
7146
7147         * s\mingw32.h:
7148         Properly find MinGW's <process.h> inside Cygwin's restructured
7149         include directories.  Don't try to include <cygwin/version.h>
7150         since we are dropping support for MinGW in versions of Cygwin
7151         earlier than b21.
7152         * nt.c:
7153         Drop support for MinGW in versions of Cygwin before b21.
7154         * sysdep.c:
7155         Properly find MinGW's <process.h> inside Cygwin's restructured
7156         include directories.
7157         * syswindows.h:
7158         Drop support for MinGW in versions of Cygwin before b21.
7159         * unexcw.c:
7160         Even though a.out.h is no longer detected by configure, allow
7161         MinGW to use it until we figure out how to do the job with Win32.
7162
7163 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
7164
7165         * syntax.c (find_start_of_comment):
7166         Fix `unbalanced parentheses' bug when dealing with mixed comment
7167         styles in c++/java/etc. mode
7168
7169 2001-05-29  Mike Alexander  <mta@arbortext.com>
7170
7171         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
7172         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
7173
7174 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
7175
7176         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
7177
7178 2001-03-31  Mike Sperber <mike@xemacs.org>
7179
7180         * search.c (Freplace_match): Support FSF-style specification of
7181         match subexpression when applied to a buffer.
7182
7183 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7184
7185         * event-stream.c (is_scrollbar_event): add missing semicolon
7186
7187 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
7188
7189         * Makefile.in.in: Use TAR macro instead of hardcoding
7190           tar.  Allows use of GNU tar instead of system tar
7191
7192 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7193
7194         * event-stream.c (is_scrollbar_event): add missing semicolon
7195
7196 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7197
7198         * XEmacs 21.4.3 "Academic Rigor" is released.
7199
7200 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7201
7202         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
7203
7204 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7205
7206         * buffer.c (Vcase_fold_search): Remove obsolete
7207           comment about non ASCII case-fold-search.  This
7208           bug has been fixed by case-table changes.
7209
7210 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
7211
7212         * event-msw.c: Restore include of events-mod.h.
7213
7214 2001-04-22   zhaoway  <zw@debian.org>
7215
7216         * event-stream.c (is_scrollbar_event): Noop returning 0 if
7217         !HAVE_SCROLLBARS.
7218
7219 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
7220
7221         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
7222
7223 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
7224
7225         * mule-charset.c (Fmake_charset): Add missing else.
7226
7227 2001-04-23  Ben Wing  <ben@xemacs.org>
7228
7229         * event-msw.c (FAKE_MOD_QUIT):
7230         * event-msw.c (mswindows_dequeue_dispatch_event):
7231         * event-msw.c (mswindows_wnd_proc):
7232         * event-msw.c (emacs_mswindows_quit_p):
7233         Get critical quit working.
7234
7235 2001-05-05  Ben Wing  <ben@xemacs.org>
7236
7237         * console-msw.h:
7238         * device-msw.c:
7239         * device-msw.c (mswindows_get_default_margin):
7240         * frame-msw.c (mswindows_size_frame_internal):
7241         * frame-msw.c (msprinter_init_frame_1):
7242         * frame-msw.c (vars_of_frame_mswindows):
7243         Change top/bottom margin defaults to 0.5 inches.
7244
7245 2001-05-01  Martin Buchholz  <martin@xemacs.org>
7246
7247         Fix link error with gcc 3.0 on Linux.
7248         * terminfo.c (UP): Remove.
7249         * terminfo.c (BC): Remove.
7250         * terminfo.c (PC): Remove.
7251         They weren't used, and in any case, these symbols should be
7252         defined in the *library*.
7253
7254 2001-05-03  Martin Buchholz  <martin@xemacs.org>
7255
7256         * s/aix4.h: Fix crash with xlc -O3.
7257         Improve comment explaining how -O3 works.
7258
7259 2001-04-15  Ben Wing  <ben@xemacs.org>
7260
7261         * event-stream.c:
7262         * event-stream.c (Fnext_event):
7263         * event-stream.c (is_scrollbar_event):
7264         * event-stream.c (execute_command_event):
7265         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
7266         crash' problem.  His fix introduces other problems.  We filter
7267         out scrollbar events specifically, making them somewhat invisible
7268         to command-building, and not appearing in `this-command-keys'.
7269         More work is still needed (see comments in event-stream.c), but
7270         this fixes all the major problems.
7271
7272 2001-04-20  Ben Wing  <ben@xemacs.org>
7273
7274         * .cvsignore: Added stuff for Windows.
7275
7276 2001-04-28  Ben Wing  <ben@xemacs.org>
7277
7278         * buffer.c (Ferase_buffer):
7279         * editfns.c (buffer_insert1):
7280         * editfns.c (Finsert_before_markers):
7281         * editfns.c (Finsert_string):
7282         * editfns.c (Finsert_char):
7283         * editfns.c (Fdelete_region):
7284         * editfns.c (Fwiden):
7285         * editfns.c (Fnarrow_to_region):
7286         remove bogus lines setting zmacs_region_stays to 0.
7287         
7288 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7289
7290         * process-unix.c (unix_open_network_stream): If connect() fails
7291         invalidate file descriptor after closing it.
7292
7293 2001-03-08  Mike Alexander  <mta@arbortext.com>
7294
7295         * event-msw.c (mswindows_need_event_in_modal_loop):
7296         Don't dispatch a message if we didn't get one.
7297         (mswindows_need_event):
7298         Terminate the correct process when one exits instead of the first
7299         one on Vprocess_list and look for process termination when in
7300         mswindows_protect_modal_loop.
7301
7302 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
7303
7304         * XEmacs 21.4.1 "Copyleft" is released.
7305
7306 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7307
7308         * input-method-motif.c (XIM_delete_frame): New callback.
7309         (XIM_init_frame): Register it.
7310
7311 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7312
7313         * XEmacs 21.4.0 "Solid Vapor" is released.
7314
7315 2001-04-15  Ben Wing  <ben@xemacs.org>
7316
7317         * cmdloop.c (call_command_loop):
7318         Fix braino in bit-rotting code.
7319         
7320 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
7321
7322         * extents.c (Fset_extent_endpoints): Force creation of extent info
7323         in buffer_or_string.
7324
7325         * extents.c (process_extents_for_insertion_mapper): Correctly
7326         check for open-open zero-length extents.
7327
7328 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7329
7330         * lisp.h: New typedefs Memory_count, Element_count.
7331         * regex.c:
7332         * regex.h:
7333         Sign-compare warning elimination: several unsigned -> signed.
7334         Based on work by Ben Wing <ben@xemacs.org>.
7335
7336 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
7337
7338         * XEmacs 21.2.47 "Zephir" is released.
7339
7340 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
7341
7342         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
7343
7344 2001-04-03  Mike Sperber <mike@xemacs.org>
7345
7346         * search.c: Revert previous patch due because of release.
7347
7348 2001-03-30  Ben Wing  <ben@xemacs.org>
7349
7350         * s\cygwin32.h:
7351         Add missing killpg prototype.
7352
7353         * elhash.c:
7354         Add a comment about fixing problems when a new entry is added
7355         while mapping.
7356
7357         * frame-msw.c (mswindows_init_frame_1):
7358         Fix compile warnings.
7359
7360         * menubar.c (vars_of_menubar):
7361         Provide `menu-accelerator-support' to indicate that we properly
7362         support %_ in menu specifications, so that package code can
7363         conditionalize on this (and remove %_ from menu specifications
7364         on older versions).
7365
7366         * event-msw.c:
7367         * scrollbar-msw.c:
7368         * scrollbar-msw.c (can_scroll):
7369         * scrollbar-msw.h:
7370         Fix handling of mouse wheel under Windows to follow standards --
7371         now scrolls window under pointer, not selected window.
7372
7373 2001-03-31  Mike Sperber <mike@xemacs.org>
7374
7375         * search.c (Freplace_match): Support FSF-style specification of
7376         match subexpression when applied to a buffer.
7377
7378 2001-03-15  Martin Buchholz  <martin@xemacs.org>
7379
7380         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
7381         function to modify KEYMAP, so map over a copy of the hash table.
7382
7383 2001-03-21  Martin Buchholz <martin@xemacs.org>
7384
7385         * XEmacs 21.2.46 "Urania" is released.
7386
7387 2001-03-20  Dan Holmsand  <dan@eyebee.com>
7388
7389         * realpath.c (xrealpath): Make file-truename work with symlinks to
7390         /cygdrive paths on cygwin. Always lowercase drive-letters on
7391         native windows.
7392         (cygwin_readlink): Don't try to find canonical filename unless
7393         file exists.
7394
7395 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
7396
7397         * ChangeLog: Log GTK merge.
7398
7399         * dumper.c:
7400         * select-x.c:
7401         * specifier.c:
7402         * symeval.h:
7403         Revert gratuitous whitespace changes from GTK merge.
7404
7405         * emacs.c: Document end of complex #ifdef @ l. 1495.
7406
7407
7408 2001-03-12  Andy Piper  <andy@xemacs.org>
7409
7410         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
7411         have to do likewise.
7412
7413 2001-03-12  Andy Piper  <andy@xemacs.org>
7414
7415         * sysdep.c: we only support mingw now.
7416
7417 2001-03-09  Andy Piper  <andy@xemacs.org>
7418
7419         * unexcw.c (copy_executable_and_dump_data_section): making approx
7420         overrun a warning only.
7421
7422 2001-03-10  William M. Perry  <wmperry@aventail.com>
7423
7424         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
7425         satisfy Stephen's identical-after-cpp plea.
7426
7427 2001-03-02  Ben Wing  <ben@xemacs.org>
7428
7429         * cmds.c:
7430         * cmds.c (Fforward_char):
7431         * syntax.c:
7432         * window.c:
7433
7434         Augment documentation of the most common motion commands to make
7435         note of the shifted-motion support.
7436         
7437 2001-03-02  Ben Wing  <ben@xemacs.org>
7438
7439         * nt.c (mswindows_fstat):
7440         * nt.c (mswindows_stat):
7441         * search.c (boyer_moore):
7442         Fix compile warnings under Windows.
7443         
7444         * sysdep.c (sys_readdir):
7445         Fix buggy filename-conversion code under Mule.
7446
7447 2001-03-09  William M. Perry  <wmperry@aventail.com>
7448
7449         * Makefile.in.in:
7450         * config.h.in:
7451         * console.c:
7452         * console.h:
7453         * device.c:
7454         * device.h:
7455         * dragdrop.c:
7456         * emacs.c:
7457         * event-stream.c:
7458         * events.c:
7459         * events.h:
7460         * faces.c:
7461         * frame.h:
7462         * general-slots.h:
7463         * glyphs.c:
7464         * gutter.c:
7465         * inline.c:
7466         * lisp.h:
7467         * lrecord.h:
7468         * make-src-depend:
7469         * redisplay-output.c:
7470         * redisplay.c:
7471         * symsinit.h:
7472         * sysfile.h:
7473         * toolbar.c:
7474         * window.c:
7475         The Great GTK Merge.
7476
7477         * ChangeLog.GTK:
7478         * console-gtk.c:
7479         * console-gtk.h:
7480         * device-gtk.c:
7481         * emacs-marshals.c:
7482         * emacs-widget-accessors.c:
7483         * event-gtk.c:
7484         * frame-gtk.c:
7485         * gccache-gtk.c:
7486         * gccache-gtk.h:
7487         * glade.c:
7488         * glyphs-gtk.c:
7489         * glyphs-gtk.h:
7490         * gtk-glue.c:
7491         * gtk-xemacs.c:
7492         * gtk-xemacs.h:
7493         * gui-gtk.c:
7494         * gui-gtk.h:
7495         * menubar-gtk.c:
7496         * native-gtk-toolbar.c:
7497         * objects-gtk.c:
7498         * objects-gtk.h:
7499         * redisplay-gtk.c:
7500         * scrollbar-gtk.c:
7501         * scrollbar-gtk.h:
7502         * select-gtk.c:
7503         * toolbar-gtk.c:
7504         * ui-byhand.c:
7505         * ui-gtk.c:
7506         * ui-gtk.h:
7507         The Great GTK Merge: new files.
7508
7509 2001-02-26  Ben Wing  <ben@xemacs.org>
7510
7511         Reapplied Lstream change.
7512
7513 2001-02-26  Ben Wing  <ben@xemacs.org>
7514
7515         Undid the last change, since it is more controversial than I
7516         thought.  It should be back in at some point soon.
7517         
7518 2001-02-25  Ben Wing  <ben@xemacs.org>
7519
7520         * buffer.c:
7521         * callproc.c (Fold_call_process_internal):
7522         * event-msw.c (ntpipe_slurp_reader):
7523         * event-msw.c (ntpipe_shove_writer):
7524         * event-msw.c (winsock_reader):
7525         * event-msw.c (winsock_writer):
7526         * file-coding.c:
7527         * file-coding.c (detect_eol_type):
7528         * file-coding.c (detect_coding_type):
7529         * file-coding.c (determine_real_coding_system):
7530         * file-coding.c (Fdetect_coding_region):
7531         * file-coding.c (decoding_reader):
7532         * file-coding.c (decoding_writer):
7533         * file-coding.c (mule_decode):
7534         * file-coding.c (Fdecode_coding_region):
7535         * file-coding.c (encoding_reader):
7536         * file-coding.c (encoding_writer):
7537         * file-coding.c (mule_encode):
7538         * file-coding.c (Fencode_coding_region):
7539         * file-coding.c (detect_coding_sjis):
7540         * file-coding.c (decode_coding_sjis):
7541         * file-coding.c (encode_coding_sjis):
7542         * file-coding.c (detect_coding_big5):
7543         * file-coding.c (decode_coding_big5):
7544         * file-coding.c (encode_coding_big5):
7545         * file-coding.c (detect_coding_ucs4):
7546         * file-coding.c (decode_coding_ucs4):
7547         * file-coding.c (encode_coding_ucs4):
7548         * file-coding.c (detect_coding_utf8):
7549         * file-coding.c (decode_coding_utf8):
7550         * file-coding.c (encode_coding_utf8):
7551         * file-coding.c (detect_coding_iso2022):
7552         * file-coding.c (decode_coding_iso2022):
7553         * file-coding.c (encode_coding_iso2022):
7554         * file-coding.c (decode_coding_no_conversion):
7555         * file-coding.c (encode_coding_no_conversion):
7556         * glyphs-x.c (write_lisp_string_to_temp_file):
7557         * gpmevent.c (tty_get_foreign_selection):
7558         * lisp.h:
7559         * lstream.c:
7560         * lstream.c (Lstream_flush_out):
7561         * lstream.c (Lstream_adding):
7562         * lstream.c (Lstream_write_1):
7563         * lstream.c (Lstream_write):
7564         * lstream.c (Lstream_raw_read):
7565         * lstream.c (Lstream_read_more):
7566         * lstream.c (Lstream_read):
7567         * lstream.c (Lstream_unread):
7568         * lstream.c (Lstream_fputc):
7569         * lstream.c (stdio_reader):
7570         * lstream.c (stdio_writer):
7571         * lstream.c (filedesc_reader):
7572         * lstream.c (filedesc_writer):
7573         * lstream.c (lisp_string_reader):
7574         * lstream.c (struct fixed_buffer_stream):
7575         * lstream.c (make_fixed_buffer_input_stream):
7576         * lstream.c (make_fixed_buffer_output_stream):
7577         * lstream.c (fixed_buffer_reader):
7578         * lstream.c (fixed_buffer_writer):
7579         * lstream.c (struct resizing_buffer_stream):
7580         * lstream.c (resizing_buffer_writer):
7581         * lstream.c (dynarr_writer):
7582         * lstream.c (lisp_buffer_reader):
7583         * lstream.c (lisp_buffer_writer):
7584         * lstream.h:
7585         * lstream.h (lstream_implementation):
7586         * lstream.h (struct lstream):
7587         * md5.c (Fmd5):
7588         * process-nt.c (nt_send_process):
7589         * process-unix.c (unix_send_process):
7590         
7591         Correct Lstream lossage due to mixing of signed and unsigned
7592         quantities.  All Lstream uses of size_t and ssize_t are now a
7593         single signed data type Lstream_data_count.  This fixes problems
7594         under Windows with sending large quantities of data to a process,
7595         and may well fix other subtle bugs.
7596
7597 2001-02-23  Martin Buchholz <martin@xemacs.org>
7598
7599         * XEmacs 21.2.45 "Thelxepeia" is released.
7600
7601 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7602
7603         * lisp-union.h (XSETINT): 
7604         (XSETCHAR):
7605         (XSETOBJ): 
7606         Reverse previous change of 2001-02-06.
7607
7608 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7609
7610         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7611         buffers.
7612         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7613         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7614         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7615         * regex.c (POS_AS_IN_BUFFER): removed
7616         * regex.c (re_search_2):
7617         * regex.c (re_match_2):
7618         Don't use an offset of 1 when calculating buffer positions, since
7619         `BI_BUF_BEGV' does it already.
7620
7621 2001-02-18  Wim Dumon  <wim@easics.be>
7622
7623         * insdel.c (prepare_to_modify_buffer): Also check for
7624         supersession when clash-detection is enabled. 
7625
7626 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7627
7628         * regex.c (re_match_2_internal):
7629         Convert temp characters from 'const unsigned char' to 're_char'.
7630         Fix crashing bug with extended characters under mule.
7631         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7632         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7633         font-lock, pdump, and new syntax-table code.
7634         * syntax.c (find_start_of_comment):
7635         (find_end_of_comment):
7636         (forward-comment):
7637         Fix crashing bugs involving moving beyond end of buffer.
7638         * syntax.c (find_start_of_comment):
7639         Fixed logic to allow proper detection of cases where the same
7640         character is used to end both a two-char comment start and a
7641         two-char comment end sequence. Fixes `(forward-comment -1)'.
7642         * syntax.c (find_start_of_comment):
7643         Return position just past last comment-end character for all cases
7644         (previously was only done for two-char comment-end sequences).
7645         * syntax.c (forward-comment):
7646         Take value returned from `find_end_of_comment', rather than
7647         incrementing it.
7648         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7649         Properly deal with BUFFERP (syntax_cache.object)
7650
7651 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7652
7653         * alloc.c (Fgarbage_collect): 
7654         * alloc.c (make_bit_vector_from_byte_vector):
7655         -Wsign-compare-correctness.
7656
7657 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7658
7659         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7660         (XSETCHAR): Likewise.
7661         (XSETOBJ): Likewise.
7662
7663 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7664
7665         * mule-canna.c (canna-func-delete_previous): 
7666         Rename to canna-func-delete-previous.
7667
7668 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7669
7670         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7671
7672 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7673
7674         * font-lock.c (find_context): Fix C++ compile errors introduced by
7675         recent patch
7676
7677 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7678
7679         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7680         pragma, but earlier ones barf on the same pragma.
7681
7682 2001-02-06  Mike Sperber <mike@xemacs.org>
7683
7684         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7685         `configure-mule-lisp-directory'.
7686
7687 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7688
7689         Make sure dump-id.c is compiled in the same way as other .c's.
7690         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7691         * dump-id.h: Remove.
7692         * emacs.c: Move dump-id.h into dumper.h.
7693         * dumper.h: Move dump-id.h into dumper.h.
7694         * Makefile.in.in:
7695         Use standard .c.o rule for building dump-id.o.
7696         Remove preprocessor flags from link command.
7697         Add dump-id.o to ${otherobjs} if PDUMP.
7698
7699 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7700
7701         Port FSF 20.7 syntax table improvements.
7702         * syntax.c.
7703         * syntax.h.
7704
7705         Fixups for new syntax table stuff.
7706         * dired.c: Include syntax.c.
7707         (Fdirectory_files): Initialize regex_match_object and
7708         regex_emacs_buffer.
7709         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7710         and Fget_char_property.
7711
7712         Use ported FSF 20.7 syntax table improvements.
7713         * font-lock.c.
7714         * regex.c.
7715         * search.c.
7716         
7717 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7718
7719         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7720         Unixware's enum boolean from sys/types.h.
7721
7722 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7723
7724         Fix support for building with latest Purify.
7725         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7726         (PURIFY_FLAGS): Likewise.
7727
7728 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7729
7730         * fileio.c (lisp_string_set_file_times): New.
7731         * fileio.c (Fcopy_file): Use it.
7732         Fixes bug:
7733         (copy-file filename non-ascii-filename t t)
7734         ==> No such file or directory, non-ascii-filename
7735
7736 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7737
7738         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7739         USHRT_MAX seems clearer than ~0 anyways.
7740
7741 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7742
7743         dumper improvements.  Inspired by Olivier.
7744         * dumper.c (pdump_max_align): New.
7745         * dumper.c (pdump_add_entry): Use pdump_max_align.
7746         * dumper.c (pdump_get_entry_list): Likewise.
7747         * dumper.c (pdump_scan_by_alignment): Likewise.
7748         Don't iterate through unnecessary alignments.
7749         * dumper.c (pdump_file_get): No need to align result of malloc().
7750         * dumper.c (pdump_mallocadr): Remove.  
7751         The result of malloc() is guaranteed to be maximally aligned.
7752         * dumper.c: s/elmt/elt/g;
7753         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7754         * dumper.c (pdump_alert_undump_object): Likewise.
7755         * dumper.c (pdump_align_table): 
7756         Don't support alignments > 64.
7757         Store ALIGNOF's, not shift counts, in table.
7758
7759 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7760
7761         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7762         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7763         * systime.h: Use HAVE_UTIME.
7764         * sysdep.c (struct utimbuf): Remove.
7765         * sysdep.c (set_file_times): Prefer utime() to utimes().
7766         * config.h.in (HAVE_UTIME): New.
7767         * config.h.in (HAVE_UTIME_H): Remove.
7768         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7769
7770 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7771
7772         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7773
7774 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7775
7776         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7777
7778 2001-02-08  Martin Buchholz <martin@xemacs.org>
7779
7780         * XEmacs 21.2.44 "Thalia" is released.
7781
7782 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7783
7784         Fixes crashes in kill-emacs on some systems.
7785         * process-unix.c (unix_kill_child_process):
7786         It's OK for kill() to fail with ESRCH.
7787
7788 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7789
7790         Contortions to make .gdbinit tricks work on most systems.
7791         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7792         * alloc.c (dbg_valmask): Make non-const.
7793         * alloc.c (dbg_typemask): Make non-const.
7794         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7795         * alloc.c (dbg_valbits): Make non-const.
7796         * alloc.c (dbg_gctypebits): Make non-const.
7797         * .gdbinit (decode_object): Make it work with AIX cc.
7798
7799 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7800
7801         * elhash.c (make_general_lisp_hash_table):
7802         Use simpler and more efficient calloc to clear entries.
7803
7804 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7805
7806         * window.c (window_scroll): Work around an AIX C compiler bug.
7807         Fixes 'scroll-up' does nothing problem with xlC.
7808
7809 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7810
7811         * .gdbinit: Remove obsolete comment.
7812
7813 2001-01-31  Mike Alexander  <mta@arbortext.com>
7814
7815         * select.c (Fown_selection_internal): Set owned_p for device
7816         method correctly.
7817
7818 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7819
7820         Port to g++ 2.97.
7821         "not" cannot be used as a macro name as it is an operator in C++
7822         * config.h.in: Stop #defining `not'.
7823         * chartab.c (check_category_char): not ==> not_p
7824         * chartab.h: Likewise.
7825         * regex.c (re_match_2_internal): Likewise.
7826
7827 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7828
7829         * lisp-disunion.h: Fix up comments.
7830
7831 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7832
7833         * keymap.c (define_key_check_and_coerce_keysym):
7834         (syms_of_keymap):
7835         Support mouse-6 and mouse-7 bindings in the obvious way.
7836
7837 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7838
7839         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7840
7841 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7842
7843         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7844         Previous patch missed DEFVAR_INT_MAGIC.
7845         Make sure future DEFVAR_foo use correct types.
7846         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7847         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7848         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7849         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7850         * (DEFVAR_INT): Likewise.
7851         * redisplay.c (vertical_clip): Should be of type Fixnum.
7852         * redisplay.c (horizontal_clip): Likewise.
7853         * lisp.h (dump_add_opaque_int): New.
7854         (dump_add_opaque_fixnum): New.
7855
7856 2001-01-29  Andy Piper  <andy@xemacs.org>
7857
7858         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7859         since they can be eval'ed
7860
7861 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7862
7863         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7864         Oops, XEmacs redefines `class'.  Use `typename' instead.
7865
7866 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7867
7868         * dumper.c: Fix C++ compile errors.
7869
7870 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7871
7872         * tparam.c: Use correct prototypes.
7873
7874 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7875
7876         * sysproc.h: #include util.h for NetBSD's openpty.
7877
7878 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7879
7880         More 64-bit correctness.
7881         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7882         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7883         Fix up comments.
7884         This finally finishes the 64-bit SGI port.
7885         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7886         * symbols.c: Fix up comments and type casts.
7887         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7888         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7889         * symeval.h (Fixnum): New type.
7890         * symeval.h (symbol_value_type): Fix up comment.
7891
7892         * commands.h:
7893         * nt.c:
7894         * emacs.c:
7895         * data.c:
7896         * redisplay.c:
7897         * abbrev.c:
7898         * dired-msw.c:
7899         * event-Xt.c:
7900         * eldap.c:
7901         * window.c:
7902         * sound.c:
7903         * event-stream.c:
7904         * eval.c:
7905         * buffer.c:
7906         * mule-canna.c: A million DEFVAR_INTs here...
7907         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7908         * extents.c:
7909         * cmdloop.c:
7910         * lisp.h:
7911         * select-x.c:
7912         * console-x.h:
7913         * event-msw.c:
7914         * mule-wnnfns.c:
7915         * hpplay.c:
7916         * ralloc.c:
7917         * alloc.c:
7918         * keymap.c:
7919         * profile.c:
7920         s/int/Fixnum/g in DEFVAR_INT declarations.
7921
7922 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7923
7924         Port pdump to SGI alignment-sensitive environment.
7925         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7926         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7927         properly aligned.
7928         Define and use aligned reading and writing macros.
7929         Use buffered stdio instead of posix i/o for faster dumping.
7930         Eliminate kludgy 256 byte space for header.
7931         Read and write from dump file using structs for alignment safety.
7932         * dumper.c (pdump_align_stream): New.
7933         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7934         * dumper.c (PDUMP_READ_ALIGNED): New.
7935         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7936         * dumper.c (pdump_static_Lisp_Object): New struct.
7937         * dumper.c (pdump_static_pointer): New struct.
7938         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7939         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7940         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7941         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7942
7943         * dumper.c (pdump_backtrace):
7944         * dumper.c (pdump_get_indirect_count):
7945         * dumper.c (pdump_register_object):
7946         * dumper.c (pdump_register_struct):
7947         * dumper.c (pdump_reloc_one):
7948         * dumper.c (pdump_scan_by_alignment):
7949         * dumper.c (pdump_dump_from_root_struct_ptrs):
7950         * dumper.c (pdump_dump_opaques):
7951         * dumper.c (pdump_dump_rtables):
7952         * dumper.c (pdump_dump_from_root_objects):
7953         * dumper.c (pdump):
7954         * dumper.c (pdump_load_finish):
7955         Use aligned reading and writing.
7956
7957         * dumper.c (pdump_free): Make static.
7958         * dumper.c (pdump_hFile): Likewise.
7959         * dumper.c (pdump_hMap): Likewise.
7960
7961 2001-01-26  Martin Buchholz <martin@xemacs.org>
7962
7963         * XEmacs 21.2.43 "Terspichore" is released.
7964
7965 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7966
7967         Type fiddling for window_config.saved_windows_count
7968         * window.c (struct window_config): 
7969         Make saved_windows_count member unsigned.
7970         * window.c (sizeof_window_config_for_n_windows): 
7971         Make parameter unsigned.
7972         * window.c (mark_window_config):
7973         * window.c (window_config_equal):
7974         * window.c (free_window_configuration):
7975         * window.c (Fset_window_configuration):
7976         * window.c (count_windows):
7977         * window.c (Fcurrent_window_configuration):
7978         * window.c (reinit_vars_of_window):
7979         Update all callers and users.
7980
7981 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7982
7983         Alignment correctness for flexible arrays.
7984         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7985         Make alignment-correct. Add interesting comments.
7986         * alloc.c (size_vector):
7987         * alloc.c (make_vector_internal):
7988         * alloc.c (make_bit_vector_internal):
7989         * alloc.c (sweep_bit_vectors_1):
7990         * fns.c (size_bit_vector):
7991         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7992         * window.c (sizeof_window_config_for_n_windows): 
7993         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7994
7995 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7996
7997         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7998
7999 2001-01-23  Andy Piper  <andy@xemacs.org>
8000
8001         * select.c (Fown_selection_internal): pass owned_p
8002
8003         * select-msw.c (mswindows_own_selection): New Signature.
8004
8005         * console.h (struct console_methods): add owned_p to
8006         _own_selection.
8007
8008         * select-x.c (x_own_selection): pass owned_p
8009         (hack_motif_clipboard_selection): use owned_p
8010         (vars_of_select_x): new variable -
8011         x_selection_strict_motif_ownership.
8012
8013 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8014
8015         * specifier.h (specifier_data_offset): Remove pointless parens.
8016         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
8017
8018 2001-01-24  Martin Buchholz  <martin@xemacs.org>
8019
8020         Make Lisp_Object sizeof methods be alignment-correct.
8021         pdump must restore objects to the same alignment as the C compiler
8022         assumes.  It really matters on SGIs.
8023         * lstream.c (aligned_sizeof_lstream): New.
8024         (sizeof_lstream): Use aligned_sizeof_lstream.
8025         (Lstream_new): Likewise.
8026         * opaque.c (aligned_sizeof_opaque): New.
8027         (sizeof_opaque): Use aligned_sizeof_opaque.
8028         (make_opaque): Likewise.
8029         * specifier.c (aligned_sizeof_specifier): New.
8030         (sizeof_specifier): Use aligned_sizeof_specifier.
8031         (make_specifier_internal): Likewise.
8032
8033 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8034
8035         * lstream.h (struct lstream): Use max_align_t for trailing data.
8036         * specifier.h (struct Lisp_Specifier): Likewise.
8037
8038 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8039
8040         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
8041         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
8042         (CCL_SUSPEND): Likewise.
8043         (CCL_INVALID_CMD): Likewise.
8044         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
8045         (ccl_driver): Likewise.
8046         (CCL_WRITE_CHAR): Macro hygiene.
8047         (CCL_WRITE_STRING): Macro hygiene.
8048
8049 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8050
8051         Port "portable" dumper to SunOS 4 and HP-UX.
8052         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
8053         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
8054         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
8055
8056 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8057
8058         * lisp.h (ALIGNOF): A better definition for C++.
8059
8060 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8061
8062         Macro hygiene.
8063         Fix printf warnings: int format, long int arg.
8064         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
8065         (PUSH_FAILURE_POINT): Use correct printf formats.
8066         (POP_FAILURE_POINT): Use correct printf formats.  
8067         Use do {...} while (0)
8068
8069 2001-01-20  Martin Buchholz <martin@xemacs.org>
8070
8071         * XEmacs 21.2.42 "Poseidon" is released.
8072
8073 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8074
8075         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
8076
8077 2001-01-19  Martin Buchholz  <martin@xemacs.org>
8078
8079         De-kludgify FIXED_TYPE free list frobbing.
8080         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
8081         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
8082         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
8083         * alloc.c (Lisp_Free): New pseudo lisp object definition.
8084         * alloc.c (LRECORD_FREE_P): New.
8085         * alloc.c (MARK_LRECORD_AS_FREE): New.
8086         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
8087         * alloc.c (STRUCT_FREE_P): Deleted.
8088         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
8089         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
8090         * alloc.c (STRING_CHARS_FREE_P): New.
8091         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
8092         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
8093         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
8094         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
8095         * alloc.c (resize_string): Use new definitions.
8096         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
8097         * alloc.c (verify_string_chars_integrity): Use new definitions.
8098         * alloc.c (compact_string_chars): Use new definitions.
8099         * alloc.c: Update monster comments.
8100         * lrecord.h (lrecord_type): Add some new lrecord types for
8101         alloc.c's use.
8102
8103 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8104
8105         Improve alignment hackery.
8106         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
8107         (max_align_t): Moved from opaque.h - general purpose.
8108         (ALIGN_PTR): Use size_t, not long.
8109         * opaque.h (max_align_t): Move to lisp.h.
8110
8111 2001-01-18  Norbert Koch  <nk@LF.net>
8112
8113         * gui.h: Fix and add prototypes to fix build problems.
8114
8115 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8116
8117         temacs is going away, so `dump-temacs' is now a bad name.
8118         * .dbxrc (dump-temacs): Rename to `dmp'.
8119         * .gdbinit (dump-temacs): Rename to `dmp'.
8120
8121 2001-01-17  Andy Piper  <andy@xemacs.org>
8122
8123         * glyphs.c (print_image_instance): comment to make martin happy.
8124
8125         * glyphs-x.c (x_redisplay_widget): update faces after a frame
8126         change.
8127
8128         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
8129         activation.
8130         (mswindows_tab_control_redisplay): warning suppression.
8131
8132         * glyphs-widget.c (widget_update): re-write to cope with updated
8133         items.
8134         (widget_instantiate): use new gui_item functions.
8135         (tab_control_update): deleted.
8136         (progress_gauge_update): deleted.
8137         (image_instantiator_progress_guage): take out update reference.
8138         (image_instantiator_tree_view): ditto.
8139         (image_instantiator_tab_control): ditto.
8140
8141         * gui.c (widget_gui_parse_item_keywords): new function. Do things
8142         Right the new way.
8143         (gui_item_add_keyval_pair): re-write to cope with descriptors and
8144         return whether anything was changed.
8145         (update_gui_item_keywords): as it sounds.
8146
8147         * gui.h: declare widget_gui_parse_item_keywords.
8148
8149         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
8150         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
8151
8152 2001-01-17  Martin Buchholz <martin@xemacs.org>
8153
8154         * XEmacs 21.2.41 "Polyhymnia" is released.
8155
8156 2001-01-16  Didier Verna  <didier@xemacs.org>
8157
8158         * glyphs.c (image_instantiate): don't use fallbacks when
8159         instantiating a face's background pixmap by inheritance.
8160
8161 2001-01-14  Mike Sperber <mike@xemacs.org>
8162
8163         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
8164         Conditionalize accordingly.
8165
8166 2001-01-16  Martin Buchholz  <martin@xemacs.org>
8167
8168         * dumper.c (pdump_file_get): Fix a compiler warning.
8169
8170 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8171
8172         Make Purify happy when pdumping.
8173         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
8174         iniitalizing all bits of new lisp object memory.
8175         * symbols.c (Fmake_local_variable): Likewise.
8176         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
8177         * symbols.c (Fdefvaralias): Likewise.
8178         * mule-charset.c (vars_of_mule_charset): Likewise.
8179
8180 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8181         Add the `-nd' flag when running pre-dump operations under the debugger.
8182         * .dbxrc (run-temacs): Add `-nd'.
8183         * .dbxrc (update-elc): Likewise.
8184         * .dbxrc (dump-temacs): Likewise.
8185         * .gdbinit (run-temacs): Likewise.
8186         * .gdbinit (check-temacs): Likewise.
8187         * .gdbinit (update-elc): Likewise.
8188         * .gdbinit (dump-temacs): Likewise.
8189
8190 2001-01-14  Martin Buchholz  <martin@xemacs.org>
8191
8192         Allow building 64-bit executables on AIX with GNU malloc, e.g.
8193         export OBJECT_MODE=64
8194         configure --pdump --use-union-type=no
8195         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
8196         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
8197
8198         * miscplay.c (sndcnv8U_2mono):
8199         Avoid two uses of `++' in the same expression.
8200         Suppresses a GCC warning.
8201
8202 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8203
8204         Make sure future compilers don't miscompile alloc.c.
8205         * alloc.c:
8206         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
8207         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
8208
8209 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8210
8211         * dumper.c: A little post-pdump-rename comment fixup.
8212
8213 2001-01-09  Jerry James  <james@eecs.ku.edu>
8214
8215         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
8216
8217 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8218
8219         * *.[ch]: Globally rename symbols using the following `pdump-rename'
8220         script:
8221         #!/bin/sh
8222         replace_symbol () {
8223           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
8224         }
8225
8226         replace_symbol pdump_wire_lists pdump_weak_object_chains
8227         replace_symbol pdump_wire_list dump_add_weak_object_chain
8228
8229         replace_symbol pdump_wires pdump_root_objects
8230         replace_symbol pdump_wire dump_add_root_object
8231
8232         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
8233         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
8234
8235         replace_symbol dumpstructinfos pdump_root_struct_ptrs
8236         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
8237         replace_symbol dumpstructinfo pdump_root_struct_ptr
8238         replace_symbol dumpstruct dump_add_root_struct_ptr
8239
8240         replace_symbol dumpopaque dump_add_opaque
8241         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
8242         replace_symbol dumpopaqueinfos pdump_opaques
8243         replace_symbol dumpopaqueinfo pdump_opaque
8244
8245         replace_symbol nb_structdump nb_root_struct_ptrs
8246         replace_symbol nb_opaquedump nb_opaques
8247
8248         replace_symbol align_table pdump_align_table
8249         replace_symbol dump_header pdump_header
8250
8251         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
8252         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
8253
8254
8255 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8256
8257         * s/aix4.h: Keep the C for AIX compiler from overaggressively
8258         optimizing bytecount_to_charcount().
8259
8260 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8261
8262         * config.h.in:
8263         (HAVE_DLFCN_H): Removed.
8264         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
8265
8266 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8267
8268         Portable dumper maintainability improvements.
8269         * alloc.c (staticpro):
8270         * alloc.c (staticpro_nodump):
8271         * alloc.c (garbage_collect_1):
8272         * alloc.c (reinit_alloc_once_early):
8273         * alloc.c (init_alloc_once_early):
8274         * alloc.c: Move dumper functions to alloc.c.
8275         * dumper.c (pdump_backtrace):
8276         * dumper.c (pdump_dump_structs):
8277         * dumper.c (pdump_dump_opaques):
8278         * dumper.c (pdump_dump_rtables):
8279         * dumper.c (pdump_dump_wired):
8280         * dumper.c (pdump):
8281         * dumper.c (pdump_load_check):
8282         * dumper.c (pdump_load_finish):
8283         * dumper.c (pdump_file_unmap):
8284         * dumper.c (pdump_file_get):
8285         * dumper.c (pdump_resource_free):
8286         * dumper.c (pdump_resource_get):
8287         * dumper.c (pdump_file_free):
8288         * dumper.c (pdump_file_try):
8289         * dumper.c (pdump_load):
8290         Remove fixed size limits on staticpro(), staticpro_nodump(),
8291         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
8292         Remove custom code for dumping lrecord_implementations_table - use
8293         dumpopaque instead.
8294         Remove (most of the) custom code for dumping staticpros - dump it
8295         like any other dynarr.
8296
8297         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
8298         * dumper.c: Moved functions from alloc.c.
8299         * alloc.c (dumpstruct): Moved to dumper.c.
8300         * alloc.c (dumpopaque): Likewise.
8301         * alloc.c (pdump_wire): Likewise.
8302         * alloc.c (pdump_wire_list): Likewise.
8303
8304         * lisp.h (Dynarr_sizeof): New.
8305         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
8306         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
8307         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
8308
8309         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
8310         * lisp.h (dumpopaque): ditto.
8311         * lisp.h (pdump_wire): ditto.
8312         * lisp.h (pdump_wire_list): ditto.
8313
8314 2001-01-09  Martin Buchholz  <martin@xemacs.org>
8315
8316         * make-src-depend (PrintPatternDeps):
8317         Use `sort' to make output independent of perl version.
8318
8319 2001-01-08  Martin Buchholz  <martin@xemacs.org>
8320
8321         Port to Netbsd 1.5.
8322         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
8323         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
8324
8325 2001-01-03  Didier Verna  <didier@xemacs.org>
8326
8327         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
8328         that `focus_frame' is alive before thinking of calling
8329         `redisplay_redraw_cursor' on it.
8330
8331 2001-01-08  Martin Buchholz <martin@xemacs.org>
8332
8333         * XEmacs 21.2.40 is released.
8334
8335 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8336
8337         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
8338
8339 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8340
8341         * alloc.c (dbg_valmask): Make const.
8342         * alloc.c (dbg_typemask): Make const.
8343         * alloc.c (dbg_USE_UNION_TYPE): Make const.
8344         * alloc.c (dbg_valbits): Make const.
8345         * alloc.c (dbg_gctypebits): Make const.
8346
8347 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
8348
8349         * redisplay-x.c (x_bevel_area):
8350         redisplay.h (struct rune):
8351         Typo fixes in comments.
8352
8353 2001-01-05  Andy Piper  <andy@xemacs.org>
8354
8355         * glyphs-x.c (x_redisplay_widget): use size changed for offset
8356         adjustment.
8357
8358         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
8359
8360 2001-01-05  Martin Buchholz  <martin@xemacs.org>
8361
8362         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
8363
8364         * mule-ccl.c (stack_idx_of_map_multiple):
8365         Non const global data must not be initialized!
8366         Found by MIYASHITA Hisashi.
8367
8368 2001-01-02  Andy Piper  <andy@xemacs.org>
8369
8370         * frame.c (change_frame_size): make sure frame size is always
8371         marked as changed.
8372
8373         * glyphs.c (image_instance_layout): minor code reuse.
8374
8375         * window.c (Fcurrent_window_configuration): revert previous
8376         change.
8377
8378 2001-01-02  Martin Buchholz  <martin@xemacs.org>
8379
8380         * glyphs.h:
8381         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
8382
8383 2000-12-31  Andy Piper  <andy@xemacs.org>
8384
8385         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
8386         when widget gets unmapped.
8387
8388         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
8389         function. Make sure widgets losing focus don't just drop it.
8390         (handle_focus_event_1): record the widget with focus.
8391
8392 2000-12-31  Andy Piper  <andy@xemacs.org>
8393
8394         * window.c (allocate_window): use
8395         make_image_instance_cache_hash_table.
8396         (make_dummy_parent): ditto.
8397         (Fset_window_configuration): ditto.
8398
8399         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
8400
8401         * glyphs.c (process_image_string_instantiator): use
8402         INSTANTIATOR_TYPE.
8403         (get_image_instantiator_governing_domain): ditto.
8404         (normalize_image_instantiator): ditto.
8405         (instantiate_image_instantiator): ditto.
8406         (make_image_instance_1): ditto.
8407         (image_instantiate): ditto. Key on glyph *and* instantiator type.
8408         (instantiator_eq_equal): new function for use with instance hash
8409         tables.
8410         (instantiator_eq_hash): ditto.
8411         (make_image_instance_cache_hash_table): create a suitable hash
8412         table for storing image instances.
8413
8414         * elhash.h (hash_table_weakness): new internal weakness type
8415         HASH_TABLE_KEY_CAR_VALUE_WEAK.
8416         declare new functions.
8417
8418         * elhash.c (finish_marking_weak_hash_tables): introduce yet
8419         another weakness type for glyphs.
8420         (make_standard_lisp_hash_table): new function split out from
8421         make_general_lisp_hash_table.
8422         (make_lisp_hash_table): call make_standard_lisp_hash_table.
8423         (hash_table_instantiate): ditto.
8424         (Fmake_hash_table): ditto.
8425
8426 2000-12-31  Martin Buchholz <martin@xemacs.org>
8427
8428         * XEmacs 21.2.39 is released.
8429
8430 2000-12-29  Andy Piper  <andy@xemacs.org>
8431
8432         * menubar.c (menubar_visible_p_changed): signal the frame changed.
8433
8434         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
8435         the frame has changed so that we pick up geometry changes such as
8436         menubar visibility.
8437
8438 2000-12-28  Andy Piper  <andy@xemacs.org>
8439
8440         * lastfile.c (my_ebss): make a char array so we can pad the
8441         bss. Fixes cygwin unexec.
8442
8443         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
8444
8445 2000-12-26  Andy Piper  <andy@xemacs.org>
8446
8447         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
8448         comments and try and be more precise about a non-/SIGIO world.
8449         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
8450         SIGIO.
8451
8452         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
8453         we don't normalize to zero width or height.
8454
8455 2000-12-24  Andy Piper  <andy@xemacs.org>
8456
8457         * Makefile.in.in (ldflags): add -mwindows when appropriate.
8458
8459 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
8460
8461         * s/sco5.h: SCO 5 has pty support.
8462
8463 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
8464
8465         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
8466         input-method-xlib.c contains whole contents of input-method-xfs.c,
8467         so we can use input-method-xlib.c's code for USE_XFONTSET
8468         using #ifdefs.
8469         * input-method-xfs.c: removed.
8470
8471 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
8472
8473         * file-coding.h (enum coding_category_type): reorder enumerators to
8474         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
8475         (now one greater than largest real coding_category_type enumerator).
8476         * file-coding.c (coding_category_symbol, coding_category_by_priority,
8477         coding_category_system, fcd_descriptihon_1, decode_coding_category,
8478         Fcoding_category_list, Fset_coding_priority_list,
8479         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
8480         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
8481
8482 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8483
8484         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
8485         * redisplay-output.c (redisplay_output_window): Clear top of window
8486         when face is changed.
8487         * redisplay-x.c (x_redraw_exposed_window): Call
8488         redisplay_clear_top_of_window.
8489         * redisplay.h: Publish redisplay_clear_top_of_window.
8490
8491 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8492
8493         * buffer.c (Fkill_buffer): Map over all devices.
8494         * window.c (window_loop): Remove UNSHOW_BUFFER code.
8495         (list_windows): New function.
8496         (list_all_windows): Ditto.
8497         (Freplace_buffer_in_windows): Use them.
8498
8499 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8500
8501         * database.c (berkdb_subtype): Recognize new subtype `queue'.
8502         (Fopen_database): Use `db_create' instead of `db_open'.
8503         (syms_of_database): Initialize Qqueue.
8504
8505 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8506
8507         * buffer.c (common_init_complex_vars_of_buffer): Initialize
8508         buffer_local_face_property.
8509         * buffer.h (struct buffer): New member buffer_local_face_property.
8510         * window.c (Fset_window_buffer):  Mark window's face as changed
8511         when buffer has buffer local face.
8512         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8513         * objects.c (color_after_change): Set buffer_local_face_property
8514         when locale of face specifier is buffer.
8515         * objects.c (font_after_change): Ditto.
8516         * objects.c (face_boolean_after_change): Ditto.
8517         * glyphs.c (image_after_change): Ditto.
8518
8519 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8520
8521         * nt.c (mswindows_fstat): Report file permissions, volume serial
8522         number, etc. Code adapted from FSF Emacs 20.7.
8523
8524 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8525
8526         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8527         of stat when we don't have symbolic links, to make sure
8528         mswindows_stat is called on mswindows.
8529
8530 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8531
8532         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8533
8534 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8535
8536         * doprnt.c (emacs_doprnt_1): More printing fixes.
8537         Make printing of numbers compatible with libc and FSF Emacs.
8538         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8539         Use the system printf to do most of the hard work of formatting,
8540         instead of doprnt_1().
8541         Calculate memory to allocate for format string.
8542         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8543         (doprnt_1): Cleaner code and documentation.
8544
8545 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8546
8547         * Makefile.in.in: Use the loop variable to install headers.
8548
8549 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8550
8551         * window.c (Fsplit_window): Don't invalidate face cache.
8552
8553 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8554
8555         * minibuf.c (Fall_completions): Undo the previous change
8556         which removed checking elements start with space.
8557
8558 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8559
8560         * mule-canna.c: Didier suppression.
8561
8562 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8563
8564         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8565         (warning suppression).  Add English comment translations.
8566
8567 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8568
8569         * unexelfsgi.c (unexec): Better test for mmap failure.
8570
8571 2000-12-05  Martin Buchholz <martin@xemacs.org>
8572
8573         * XEmacs 21.2.38 is released.
8574
8575 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8576
8577         * redisplay.c (bar-cursor): Make a user variable.
8578
8579         * symsinit.h: Add init_postgresql_from_environment.
8580
8581 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8582
8583         * regex.c: Convert to clean C.
8584
8585 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8586
8587         * realpath.c:
8588         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8589         initialization.
8590         (sys_readlink): renamed to system_readlink to avoid conflict with
8591         the other sys_readlink.
8592
8593 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8594
8595         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8596
8597 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8598
8599         * postgresql.c (init_postgresql_from_environment): new function.
8600         (vars_of_postgresql): Move code initializing Lisp variables out and
8601         into init_postgresql_from_environment.
8602         emacs.c (main_1): Call init_postgresql_from_environment if and only
8603         if running a dumped XEmacs.
8604
8605 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8606
8607         * buffer.c: Make find-file-compare-truenames default to true on
8608         windows.
8609
8610         * realpath.c (win32_abs_start):
8611         (cygwin_readlink):
8612         (win32_readlink): New functions.
8613         (xrealpath): Return really real filenames on windows.
8614
8615         * fileio.c (Ffile_truename): Make file-truename work on windows.
8616
8617 2000-11-29  Didier Verna  <didier@xemacs.org>
8618
8619         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8620         * faces.c (update_face_cachel_data): use it.
8621         * faces.c (add_face_cachel): use it. Complete background pixmap
8622         frobbing in face cache if `update_face_cachel_data' has not done so.
8623
8624 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8625
8626         * search.c (string_match_1): Don't set last_thing_searched
8627         when search failed.
8628
8629 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8630
8631         * buffer.c: Include casetab.h
8632         (common_init_complex_vars_of_buffer): Use new case-table object.
8633         * buffer.h: Include casetab.h
8634         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8635         (DOWNCASE_TABLE_OF): Ditto.
8636         * bufslots.h: Remove char-tables and add case-table.
8637         * casetab.c: Include casetab.h
8638         (CASE_TABLE_P): Removed.
8639         (mark_case_table): New function.
8640         (allocate_case_table): New function.
8641         (Fcase_table_p): Use new case-table.
8642         (case_table_char): New function.
8643         (Fget_case_table): Ditto.
8644         (Fput_case_table): Ditto.
8645         (Fput_case_table_pair): Ditto.
8646         (Fcopy_case_table): Ditto.
8647         (Fcurrent_case_table): Return case-table.
8648         (Fstandard_case_table): Return case-table.
8649         (Fset_case_table): Fix doc-string.
8650         (set_case_table): Use case-table
8651         (syms_of_casetab): DEFSUBR new functions.
8652         (complex_vars_of_casetab): Set up standard case-table.
8653         * casetab.h: New file.
8654         * editfns.c: Include casetab.h
8655         (Fcompare_buffer_substrings): Use case-table.
8656         * inline.c: Include casetab.h
8657         * lisp.h: Remove bogus extern.
8658         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8659         * search.c: Include casetab.h
8660         (TRANSLATE_ASCII): Removed.
8661         (TRANSLATE): Unconditionally translate character.
8662         (looking_at_1): Use case-table.
8663         (string_match_1): Ditto.
8664         (fast_string_match): Ditto.
8665         (search_command): Ditto.
8666         (search_buffer): Separate boyer_moore.  Check whether
8667         boyer_moore is possible.
8668         (simple_search): New function.
8669         (boyer_moore): Separated from search_buffer. Translate char.
8670
8671 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8672
8673         * regex.c (RE_TR_ASCII): Removed.
8674         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8675         (PATFETCH): Call PATFETCH_RAW.
8676         (PATFETCH_RAW): Fetch Emchar.
8677         (PATUNFETCH): Decrement charptr.
8678         (GET_BUFFER_SPACE): Rename b to buf_end.
8679         (BUF_PUSH): Ditto.
8680         (BUF_PUSH_2): Ditto.
8681         (BUF_PUSH_3): Ditto.
8682         (EXTEND_BUFFER): Ditto.
8683         (SET_LIST_BIT): Ditto.
8684         (regex_compile): Ditto.  Translate non ASCII char.
8685         (compile_range): Ditto.
8686         (re_search_2): Ditto.
8687         (re_match_2_internal): Compare Emchar.
8688         (bcmp_translate): Ditto.
8689
8690 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8691
8692         * lisp.h (basic char/int typedefs):  comment improvement.
8693
8694 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8695
8696         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8697         unstomp inhibit_site_lisp.  Improve comments.
8698
8699 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8700
8701         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8702
8703 2000-11-28  Andy Piper  <andy@xemacs.org>
8704
8705         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8706         clipped display for windows in the gutter also.
8707         (redisplay_display_boxes_in_window_p): change semantics of return
8708         codes to be more intuitive.
8709
8710         * gutter.h: declare display_boxes_in_gutter_p.
8711
8712         * gutter.c (display_boxes_in_gutter_p): new function for
8713         redisplay.
8714
8715 2000-11-22  Andy Piper  <andy@xemacs.org>
8716
8717         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8718         autodetect domain.
8719
8720 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8721
8722         * callproc.c (Fold_call_process_internal):
8723         * gpm.c (Freceive_gpm_event):
8724         (tty_get_foreign_selection): Might be just warning supression.
8725         * fileio.c (Fwrite_region_internal):
8726         (Fset_visited_file_modtime):
8727         * keymap.c (event_matches_key_specifier_p):
8728         Initialize GCPROed variable.
8729
8730         * menubar-x.c (command_builder_find_menu_accelerator):
8731         Initialize before use.
8732
8733 2000-11-23  Andy Piper  <andy@xemacs.org>
8734
8735         * unexcw.c (unexec): make the resulting executable executable.
8736
8737 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8738
8739         * doc.c (get_doc_string):
8740         Use size_t, not int, for result of XSTRING_LENGTH.
8741
8742         * cmds.c (Fdelete_char):
8743         * cmds.c (Fpoint_at_eol):
8744         * cmds.c (Fself_insert_command):
8745         Use EMACS_INT, not int, for result of XINT.
8746         Someday, someone will want to insert more than 2**31 identical characters.
8747
8748         * cmds.c (Fdelete_char):
8749         * cmds.c (Fdelete_backward_char):
8750         * syntax.c (Fforward_word):
8751         * syntax.c (Fforward_comment):
8752         Make COUNT argument optional, for consistency with forward-char et al.
8753
8754 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8755
8756         * lisp.h:
8757         * print.c (long_to_string):
8758         Return a useful value: the pointer at end of data written.
8759
8760         * doprnt.c:
8761         Use `static const char * const' for constant strings.
8762         (union printf_arg): Delete `i', `ui' members.
8763         (get_doprnt_args):
8764         (emacs_doprnt_1):
8765         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8766         Do all printf-ing via the `l' specifier.
8767         Use EMACS_INT instead of int.
8768         Optimize.
8769
8770 2000-11-20  Didier Verna  <didier@xemacs.org>
8771
8772         * faces.c (update_face_cachel_data): don't frob the background
8773         pixmap when the window is being created. The face is needed but
8774         does not exist yet.
8775
8776 2000-11-20  Andy Piper  <andy@xemacs.org>
8777
8778         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8779         messing with a debug environment.
8780
8781 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8782
8783         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8784
8785 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8786
8787         * casetab.c (Fcase_table_p): Fix compile error and crash.
8788
8789 2000-11-18  Philip Aston  <philipa@mail.com>
8790
8791         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8792
8793 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8794
8795         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8796         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8797
8798 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8799
8800         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8801         * unexelf.c: Use HAVE_ELF_H.
8802         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8803         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8804         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8805         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8806         for testing.
8807         So this is an unexelfsgi.c from a different line of development.
8808
8809 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8810
8811         * regex.c (RE_TR_ASCII): New function.
8812         (RE_TRANSLATE): Call it.
8813
8814 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8815
8816         * buffer.h (TRT_TABLE_OF): Remove assert.
8817         (IN_TRT_TABLE_DOMAIN): Removed.
8818
8819 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8820
8821         * free-hook.c (log_gcpro):
8822         (show_gcprohist): Add support for GCPRO5.
8823
8824 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8825
8826         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8827
8828 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8829
8830         * symeval.h: Declare flush_all_buffer_local_cache.
8831
8832         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8833         (flush_buffer_local_cache): Added.
8834         (flush_all_buffer_local_cache): Added.
8835
8836         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8837
8838         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8839         (pdump_dump_data): Ditto.
8840         (pdump_reloc_one): Ditto.
8841         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8842         before dumping.
8843
8844
8845 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8846
8847         * buffer.c: Remove if 0'ed entry.
8848         * buffer.h: Rewrite TRT to use char-table.
8849         * bufslots.h: Remove mirror tables.
8850         * casetab.c: Remove mirror tables.
8851         (CASE_TABLE_P): New macro.
8852         (Fcase_table_p): Element of a case table is string or char-table.
8853         (make_mirror_trt_table): Removed.
8854         (set_case_table): Setup char-table from strings for backward
8855         compatibility.
8856         * dired.c (Fdirectory_files):
8857         * dired-msw.c: (mswindows_get_files):
8858         * lisp.h: Change prototype of re_pattern_buffer.
8859         * regex.c: (RE_TRANSLATE): New macro.
8860         (TRANSLATE_P): Ditto.
8861         Change translate to type RE_TRANSLATE_TYPE.
8862         * regex.h: Define RE_TRANSLATE_TYPE
8863         * search.c (TRANSLATE): New macro.
8864         (TRANSLATE_ASCII): New macro.
8865         Translate table is changed to Lisp_Object.
8866         (signal_failure): Inhibit return.
8867
8868 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8869
8870         * device-msw.c:
8871         * eldap.c:
8872         * event-Xt.c:
8873         * event-stream.c:
8874         * print.c:
8875         Do UNGCPRO before return.
8876
8877 2000-11-14  Martin Buchholz <martin@xemacs.org>
8878
8879         * XEmacs 21.2.37 is released.
8880
8881 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8882
8883         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8884         Add comments about discarded return value.
8885
8886 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8887
8888         * callint.c:
8889         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8890
8891 2000-10-27  Andy Piper  <andy@xemacs.org>
8892
8893         * gutter.c (Fset_default_gutter_position): default left and right
8894         gutters to visible.
8895         (calculate_gutter_size): calculate resonable heuristic for left
8896         and right gutter sizes.
8897         (specifier_vars_of_gutter): change left and right gutter sizes to
8898         autodetect.
8899         (calculate_gutter_size_from_display_lines): new function.
8900         (output_gutter): check for resizing on left and right gutters.
8901         (clear_gutter): don't special case top and left gutters.
8902         (specifier_vars_of_gutter): use new signature for
8903         set_specifier_caching.
8904
8905         * glyphs-x.c (x_redisplay_widget): spelling fix.
8906         * glyphs.c (specifier_vars_of_glyphs):
8907         * menubar.c (specifier_vars_of_menubar):
8908         * redisplay.c (specifier_vars_of_redisplay):
8909         * toolbar.c (specifier_vars_of_toolbar):
8910         * window.c (specifier_vars_of_window):
8911         * scrollbar.c (specifier_vars_of_scrollbar):
8912         (complex_vars_of_scrollbar): use new signature for
8913         set_specifier_caching.
8914
8915         * specifier.c (set_specifier_caching): include recompute flag.
8916         (recompute_one_cached_specifier_in_window): always recompute if
8917         flag set.
8918         (recompute_one_cached_specifier_in_frame): ditto.
8919
8920         * specifier.h (struct specifier_caching): add recompute flag.
8921
8922 2000-10-24  Andy Piper  <andy@xemacs.org>
8923
8924         * unexcw.c (copy_executable_and_dump_data_section): add new
8925         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8926         5.0 happy.
8927
8928 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8929
8930         * console-x.h (x_device): New member modifier_release_time.
8931         * event-Xt.c (x_handle_sticky_modifiers):
8932         Bound interval modifier keys are sticky.
8933         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8934         * events.h: extern it.
8935
8936 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8937
8938         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8939
8940 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8941
8942         * event-stream.c (execute_command_event): Preserve current_events
8943         and the like when event is misc-user-event.
8944         Inhibit quit during the call to maybe_echo_keys.
8945
8946 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8947
8948         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8949         symlink when buffer is killed.
8950         (inhibit_clash_detection): New variable.
8951
8952 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8953
8954         * console.c (Fset_input_method): Trigger redisplay on tty.
8955
8956 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8957
8958         * process.c (Fprocess_status): Revert to previous behavior:
8959         (process-status "nosuchprocess") ==> nil
8960
8961 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8962
8963         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8964         Work around another GCC 2.95.2 optimizer bug.
8965
8966 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8967
8968         * process.c (Fget_process): Use LIST_LOOP_2.
8969         (kill_buffer_processes): Use LIST_LOOP_2.
8970
8971         * minibuf.c (Fall_completions):
8972         Delete old non-functional code for FSF fourth argument.
8973
8974         * frame.c (frame_matches_frame_spec):
8975         Renamed from `frame_matches_frametype'.  Update all callers.
8976         (device_matches_device_spec):
8977         Renamed from 'device_matches_console_spec'.  Update all callers.
8978
8979         * doc.c (Fsubstitute_command_keys):
8980         Remove buffer overflow crash.  Small code cleanups.
8981
8982         * casetab.c (check_case_table): Simpler code.
8983
8984         * window.c (Freplace_buffer_in_windows):
8985         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8986         (and similar implementation) as Fdelete_windows_on.
8987         Update all callers.
8988
8989         * alloc.c (Fmake_list):
8990         * alloc.c (make_vector):
8991         * alloc.c (Fmake_vector):
8992         * alloc.c (make_bit_vector):
8993         * alloc.c (Fmake_bit_vector):
8994         * alloc.c (Fbit_vector):
8995         * alloc.c (Fmake_string):
8996         * alloc.c (Fpurecopy):
8997         * alloc.c (Fmemory_limit):
8998         * buffer.c:
8999         * buffer.c (Fget_buffer):
9000         * buffer.c (Fkill_buffer):
9001         * buffer.c (complex_vars_of_buffer):
9002         * bytecode.c (Fcompiled_function_stack_depth):
9003         * callint.c (Fprefix_numeric_value):
9004         * event-stream.c:
9005         * event-stream.c (Fread_key_sequence):
9006         * casetab.c:
9007         * casetab.c (Fcase_table_p):
9008         * casetab.c (check_case_table):
9009         * casetab.c (Fset_case_table):
9010         * casetab.c (Fset_standard_case_table):
9011         * chartab.c:
9012         * chartab.c (Fchar_table_type):
9013         * chartab.c (Freset_char_table):
9014         * chartab.c (Fget_char_table):
9015         * chartab.c (Fget_range_char_table):
9016         * chartab.c (Fput_char_table):
9017         * chartab.c (Fmap_char_table):
9018         * chartab.c (Fcategory_table_p):
9019         * chartab.c (Fcheck_category_at):
9020         * chartab.c (Fchar_in_category_p):
9021         * chartab.c (Fcategory_table):
9022         * chartab.c (Fcopy_category_table):
9023         * chartab.c (Fset_category_table):
9024         * chartab.c (Fcategory_designator_p):
9025         * chartab.c (Fcategory_table_value_p):
9026         * cmds.c (Fdelete_char):
9027         * cmds.c (Fdelete_backward_char):
9028         * cmds.c (Fself_insert_command):
9029         * cmds.c (Fself_insert_internal):
9030         * console.c (Fvalid_console_type_p):
9031         * console.c (Fcdfw_console):
9032         * console.c (Fconsole_type):
9033         * console.c (Fconsole_name):
9034         * console.c (Fconsole_device_list):
9035         * console.c (Fconsole_on_window_system_p):
9036         * data.c:
9037         * data.c (Feq):
9038         * data.c (Fold_eq):
9039         * data.c (Fsubr_interactive):
9040         * data.c (Fchar_to_int):
9041         * data.c (Fint_to_char):
9042         * data.c (Fsetcar):
9043         * data.c (Fsetcdr):
9044         * data.c (Fnumber_to_string):
9045         * data.c (Fstring_to_number):
9046         * data.c (Frem):
9047         * database.c (mark_database):
9048         * database.c (finalize_database):
9049         * database.c (Fdatabase_live_p):
9050         * database.c (Fdatabasep):
9051         * device-x.c (Fx_get_resource):
9052         * device.c (Fdfw_device):
9053         * dired.c:
9054         * dired.c (Ffile_name_completion):
9055         * dired.c (Ffile_name_all_completions):
9056         * dired.c (Fuser_name_completion):
9057         * dired.c (Fuser_name_completion_1):
9058         * dired.c (Fuser_name_all_completions):
9059         * doc.c (Fdocumentation):
9060         * doc.c (Fdocumentation_property):
9061         * doc.c (Fsubstitute_command_keys):
9062         * editfns.c:
9063         * editfns.c (Fchar_to_string):
9064         * editfns.c (Fstring_to_char):
9065         * editfns.c (Ftemp_directory):
9066         * editfns.c (Finsert_char):
9067         * editfns.c (Fbuffer_substring_no_properties):
9068         * editfns.c (Fnarrow_to_region):
9069         * editfns.c (Fchar_equal):
9070         * editfns.c (Fchar_Equal):
9071         * editfns.c (Ftranspose_regions):
9072         * emacs.c (Fdump_emacs):
9073         * eval.c (Fthrow):
9074         * eval.c (Fcommand_execute):
9075         * eval.c (Fautoload):
9076         * eval.c (Fbacktrace):
9077         * eval.c (Fbacktrace_frame):
9078         * events.c:
9079         * events.c (Fcopy_event):
9080         * events.c (Fcharacter_to_event):
9081         * events.c (Fevent_button):
9082         * events.c (Fevent_process):
9083         * extents.c:
9084         * extents.c (Fnext_extent_change):
9085         * extents.c (Fextent_property):
9086         * faces.c (Ffacep):
9087         * faces.c (Fmake_face):
9088         * file-coding.c:
9089         * file-coding.c (Fencode_shift_jis_char):
9090         * file-coding.c (Fencode_big5_char):
9091         * fileio.c (Ffile_name_directory):
9092         * fileio.c (Ffile_name_nondirectory):
9093         * fileio.c (Ffile_name_as_directory):
9094         * fileio.c (Fdirectory_file_name):
9095         * fileio.c (Ffile_truename):
9096         * fileio.c (Fsubstitute_in_file_name):
9097         * fileio.c (Ffile_modes):
9098         * fileio.c (Fset_file_modes):
9099         * fileio.c (Fset_default_file_modes):
9100         * fileio.c (Fverify_visited_file_modtime):
9101         * floatfns.c (Facos):
9102         * floatfns.c (Fasin):
9103         * floatfns.c (Fatan):
9104         * floatfns.c (Fcos):
9105         * floatfns.c (Fsin):
9106         * floatfns.c (Ftan):
9107         * floatfns.c (Fbessel_j0):
9108         * floatfns.c (Fbessel_j1):
9109         * floatfns.c (Fbessel_jn):
9110         * floatfns.c (Fbessel_y0):
9111         * floatfns.c (Fbessel_y1):
9112         * floatfns.c (Fbessel_yn):
9113         * floatfns.c (Ferf):
9114         * floatfns.c (Ferfc):
9115         * floatfns.c (Flog_gamma):
9116         * floatfns.c (Fexp):
9117         * floatfns.c (Fexpt):
9118         * floatfns.c (Flog):
9119         * floatfns.c (Flog10):
9120         * floatfns.c (Fsqrt):
9121         * floatfns.c (Fcube_root):
9122         * floatfns.c (Facosh):
9123         * floatfns.c (Fasinh):
9124         * floatfns.c (Fatanh):
9125         * floatfns.c (Fcosh):
9126         * floatfns.c (Fsinh):
9127         * floatfns.c (Ftanh):
9128         * floatfns.c (Fabs):
9129         * floatfns.c (Ffloat):
9130         * floatfns.c (Flogb):
9131         * floatfns.c (Fceiling):
9132         * floatfns.c (Ffloor):
9133         * floatfns.c (Fround):
9134         * floatfns.c (Ftruncate):
9135         * floatfns.c (Ffceiling):
9136         * floatfns.c (Fffloor):
9137         * floatfns.c (Ffround):
9138         * floatfns.c (Fftruncate):
9139         * fns.c (Fstring_equal):
9140         * fns.c (Fstring_lessp):
9141         * fns.c (concat2):
9142         * fns.c (concat3):
9143         * fns.c (vconcat2):
9144         * fns.c (vconcat3):
9145         * fns.c (Fsubstring):
9146         * fns.c (Fassoc):
9147         * fns.c (Fold_assoc):
9148         * fns.c (assoc_no_quit):
9149         * fns.c (Fassq):
9150         * fns.c (Fold_assq):
9151         * fns.c (assq_no_quit):
9152         * fns.c (Frassoc):
9153         * fns.c (Fold_rassoc):
9154         * fns.c (Frassq):
9155         * fns.c (Fold_rassq):
9156         * fns.c (rassq_no_quit):
9157         * fns.c (Fremassoc):
9158         * fns.c (remassoc_no_quit):
9159         * fns.c (Fremassq):
9160         * fns.c (remassq_no_quit):
9161         * fns.c (Fremrassoc):
9162         * fns.c (Fremrassq):
9163         * fns.c (remrassq_no_quit):
9164         * fns.c (Fsort):
9165         * fns.c (Fplist_get):
9166         * fns.c (Fplist_put):
9167         * fns.c (Fplist_remprop):
9168         * fns.c (Fplist_member):
9169         * fns.c (Flax_plist_get):
9170         * fns.c (Flax_plist_put):
9171         * fns.c (Flax_plist_remprop):
9172         * fns.c (Flax_plist_member):
9173         * fns.c (Fequal):
9174         * fns.c (Fold_equal):
9175         * fns.c (Frequire):
9176         * fns.c (Fbase64_encode_region):
9177         * fns.c (Fbase64_encode_string):
9178         * fns.c (Fbase64_decode_region):
9179         * frame.c:
9180         * frame.c (frame_matches_frame_spec):
9181         * frame.c (device_matches_device_spec):
9182         * frame.c (next_frame):
9183         * frame.c (previous_frame):
9184         * frame.c (Fnext_frame):
9185         * frame.c (Fprevious_frame):
9186         * frame.c (Fframe_property):
9187         * frame.c (Fset_frame_height):
9188         * frame.c (Fset_frame_size):
9189         * frame.h:
9190         * glyphs.c:
9191         * glyphs.c (if):
9192         * glyphs.c (decode_error_behavior_flag):
9193         * glyphs.c (Fmake_image_instance):
9194         * indent.c (Findent_to):
9195         * intl.c (Fignore_defer_gettext):
9196         * keymap.c (Fkeymapp):
9197         * keymap.c (Flookup_key):
9198         * lread.c:
9199         * lread.c (Fload_internal):
9200         * lread.c (Feval_buffer):
9201         * lread.c (Feval_region):
9202         * macros.c (Fexecute_kbd_macro):
9203         * marker.c (set_marker_internal):
9204         * marker.c (Fset_marker):
9205         * marker.c (set_marker_restricted):
9206         * marker.c (Fcopy_marker):
9207         * marker.c (noseeum_copy_marker):
9208         * menubar.c:
9209         * menubar.c (Fpopup_menu):
9210         * minibuf.c:
9211         * mule-charset.c (Fcharset_name):
9212         * mule-charset.c (Fchar_charset):
9213         * mule-charset.c (Fchar_octet):
9214         * mule-charset.c (Fsplit_char):
9215         * mule-wnnfns.c (Fwnn_open):
9216         * mule-wnnfns.c (Fwnn_dict_comment):
9217         * mule-wnnfns.c (Fwnn_quit_henkan):
9218         * mule-wnnfns.c (Fwnn_word_toroku):
9219         * mule-wnnfns.c (Fwnn_word_sakujo):
9220         * mule-wnnfns.c (Fwnn_word_use):
9221         * mule-wnnfns.c (Fwnn_hindo_set):
9222         * objects.c:
9223         * objects.c (Fmake_color_instance):
9224         * objects.c (Fmake_font_instance):
9225         * print.c (Fwrite_char):
9226         * process.c:
9227         * process.c (mark_process):
9228         * process.c (print_process):
9229         * process.c (get_process_from_usid):
9230         * process.c (Fprocessp):
9231         * process.c (Fprocess_live_p):
9232         * process.c (Fget_process):
9233         * process.c (Fget_buffer_process):
9234         * process.c (get_process):
9235         * process.c (Fprocess_id):
9236         * process.c (Fprocess_name):
9237         * process.c (Fprocess_command):
9238         * process.c (init_process_io_handles):
9239         * process.c (start_process_unwind):
9240         * process.c (Fstart_process_internal):
9241         * process.c (Fopen_multicast_group_internal):
9242         * process.c (Fset_process_window_size):
9243         * process.c (read_process_output):
9244         * process.c (send_process):
9245         * process.c (Fprocess_tty_name):
9246         * process.c (Fset_process_buffer):
9247         * process.c (Fprocess_buffer):
9248         * process.c (Fprocess_mark):
9249         * process.c (set_process_filter):
9250         * process.c (Fset_process_filter):
9251         * process.c (Fprocess_filter):
9252         * process.c (Fprocess_send_region):
9253         * process.c (Fprocess_send_string):
9254         * process.c (exec_sentinel):
9255         * process.c (Fset_process_sentinel):
9256         * process.c (Fprocess_sentinel):
9257         * process.c (status_notify):
9258         * process.c (Fprocess_status):
9259         * process.c (Fprocess_exit_status):
9260         * process.c (process_send_signal):
9261         * process.c (Fprocess_send_eof):
9262         * process.c (deactivate_process):
9263         * process.c (remove_process):
9264         * process.c (Fdelete_process):
9265         * process.c (kill_buffer_processes):
9266         * process.c (Fprocess_kill_without_query):
9267         * process.c (Fprocess_kill_without_query_p):
9268         * rangetab.c:
9269         * rangetab.c (Fget_range_table):
9270         * rangetab.c (Fput_range_table):
9271         * rangetab.c (Fremove_range_table):
9272         * rangetab.c (Fclear_range_table):
9273         * search.c:
9274         * search.c (Fskip_chars_forward):
9275         * search.c (Fskip_chars_backward):
9276         * search.c (Fskip_syntax_forward):
9277         * search.c (Fskip_syntax_backward):
9278         * search.c (search_command):
9279         * search.c (Freplace_match):
9280         * search.c (Fregexp_quote):
9281         * select.c (Fown_selection_internal):
9282         * select.c (Fselection_owner_p):
9283         * select.c (Fselection_exists_p):
9284         * select.c (Fget_selection_internal):
9285         * specifier.c:
9286         * symbols.c:
9287         * symbols.c (Fintern):
9288         * symbols.c (Fintern_soft):
9289         * symbols.c (Funintern):
9290         * symbols.c (Fapropos_internal):
9291         * symbols.c (Fset_default):
9292         * syntax.c:
9293         * syntax.c (Fsyntax_table_p):
9294         * syntax.c (Fcopy_syntax_table):
9295         * syntax.c (Fset_syntax_table):
9296         * syntax.c (Fchar_syntax):
9297         * syntax.c (syntax_match):
9298         * syntax.c (Fmatching_paren):
9299         * syntax.c (Fforward_word):
9300         * syntax.c (scan_lists):
9301         * syntax.c (Fscan_lists):
9302         * syntax.c (Fscan_sexps):
9303         * syntax.c (Fparse_partial_sexp):
9304         * toolbar.c (Fcheck_toolbar_button_syntax):
9305         * tooltalk.doc:
9306         * window.c:
9307         * window.c (Fwindowp):
9308         * window.c (Fwindow_live_p):
9309         * window.c (Fwindow_point):
9310         * window.c (Fdelete_window):
9311         * window.c (Fnext_window):
9312         * window.c (Fprevious_window):
9313         * window.c (Fother_window):
9314         * window.c (window_loop):
9315         * window.c (Fget_lru_window):
9316         * window.c (Fsplit_window):
9317         * window.c (Fenlarge_window):
9318         * window.c (Fenlarge_window_pixels):
9319         * window.c (Fshrink_window):
9320         * window.c (Fshrink_window_pixels):
9321         * window.c (change_window_height):
9322         * window.c (Fwindow_configuration_p):
9323         * window.c (Fcurrent_window_configuration):
9324         * window.h:
9325         * casefiddle.c (casify_object):
9326         * casefiddle.c (Fupcase):
9327         * casefiddle.c (Fdowncase):
9328         * casefiddle.c (Fcapitalize):
9329         * casefiddle.c (Fupcase_initials):
9330         * casefiddle.c (casify_region_internal):
9331         * casefiddle.c (casify_region):
9332         * casefiddle.c (Fupcase_region):
9333         * casefiddle.c (Fdowncase_region):
9334         * casefiddle.c (Fcapitalize_region):
9335         * casefiddle.c (Fupcase_initials_region):
9336         * casefiddle.c (Fupcase_word):
9337         * casefiddle.c (Fdowncase_word):
9338         * casefiddle.c (Fcapitalize_word):
9339         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
9340         Replace 0 with '\0' when working with bytes.
9341         Replace initial "(" with "\(" in docstrings.
9342
9343 2000-11-01  Martin Buchholz  <martin@xemacs.org>
9344
9345         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
9346
9347         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
9348
9349 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9350
9351         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
9352
9353 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9354
9355         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
9356         correctly.
9357
9358 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9359
9360         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
9361         (inhibit_auto_save_session): New variable.
9362         (vars_of_fileio): Declare and initialize them.
9363         * fileio.c (Fdo_auto_save): Don't create session file if
9364         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
9365
9366 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9367
9368         * sgiplay.c (play_internal): C++ compilability.
9369         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
9370         * callproc.c (Fold_call_process_internal):
9371         Remove unused vars `env', `first'.
9372         * scrollbar.c (update_scrollbar_instance):
9373         #### unused var `current_window'.
9374         * redisplay-tty.c: Put currently unused vars insert_mode_on,
9375         etc. within #ifdef NOT_YET.
9376         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
9377         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
9378         * specifier.c (specifier_instance):
9379         #### unused var `tag'.
9380         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
9381
9382 2000-10-27  Martin Buchholz  <martin@xemacs.org>
9383
9384         * fns.c (Fbutlast):
9385         * fns.c (list_sort):
9386         * fns.c (Ffillarray):
9387         * fns.c (bytecode_nconc2):
9388         * fns.c (Fnconc):
9389         * fns.c (mapcar1):
9390         * fns.c (Fmapconcat):
9391         Be pedantically 64-bit correct.  For the time when someone will
9392         want to have a list with length > 2**32.
9393
9394         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9395         Work around MIPSpro compiler bug.
9396
9397         * process-unix.c (unix_kill_child_process): Add snarky comment.
9398         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
9399
9400         * config.h.in: Oops, _getpt ==> _getpty
9401
9402 2000-10-26  Martin Buchholz  <martin@xemacs.org>
9403
9404         * config.h.in:
9405         * regex.c:
9406         Use void*, not char*, as return type of alloca().
9407
9408         * alloc.c (free_marker): Side effect inside assert expression!
9409
9410 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
9411
9412         * mule-charset.c (Fset_charset_ccl_program): To check
9413         if the given ccl program is valid, use setup_ccl_program()
9414         instead of CHECK_VECTOR().
9415         (Fmake_charset): Likewise.
9416
9417 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
9418
9419         * faces.c (get_extent_fragment_face_cache_index):
9420         Fix cachel.merged_faces memory leak.
9421
9422 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
9423
9424         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
9425         Reset MSB of octets obtained by DECODE_SJIS
9426         because of the incompatibility with Emacs.
9427         (ccl_driver)<CCL_ENCODE_SJIS>:
9428         Set MSB of octets before passing them to
9429         ENCODE_SJIS because of the incompatibility
9430         with Emacs.
9431
9432 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
9433
9434         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
9435         (DECLARE_LRECORD): Undo the last change.
9436         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
9437
9438 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
9439
9440         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
9441         the implementation to lrecord_implementations_table.
9442
9443 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
9444
9445         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
9446         initial value of `lrecord_type_##c_name' and
9447         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
9448         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
9449         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
9450         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
9451         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
9452
9453 2000-10-17  Martin Buchholz  <martin@xemacs.org>
9454
9455         * miscplay.c (sndcnv8S_2mono):
9456         (sndcnv2monounsigned):
9457         (sndcnvULaw_2linear):
9458         (sndcnv16swap):
9459         Remove implementation-defined behavior.
9460
9461 2000-10-12  Martin Buchholz  <martin@xemacs.org>
9462
9463         * input-method-xlib.c: Warning suppression.
9464
9465 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
9466
9467         * mule-ccl.c: Sync up with Emacs 21.0.90.
9468         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
9469         Do nothing.
9470         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
9471         Likewise.
9472         (ccl_driver[WriteMultibyteChar2]): Bug fix.
9473         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
9474         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
9475         leading char belongs to official 2-dimensional charset.
9476         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
9477         write the given character as is.  Otherwise,
9478         if it is a multibyte char, convert it by
9479         non_ascii_set_charptr_emchar, then write it.
9480         (CCL_WRITE_STRING): Likewise.
9481         (ccl_get_compiled_code): New function.
9482         (setup_ccl_program): When ccl_prog is invalid,
9483         return -1.
9484         (Fregister_code_conversion_map): New function.
9485         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
9486
9487         * mule-ccl.h: Sync up with Emacs 21.0.90.
9488         (Fregister_ccl_program): export it.
9489
9490         * redisplay-msw.c (separate_textual_runs):
9491         If ccl program is not valid, don't do ccl conversion.
9492
9493         * redisplay-x.c (separate_textual_runs): Ditto.
9494
9495         * file-coding.c (Fmake_coding_system):
9496         When type is ccl and value is vector, register it
9497         with a proper symbol.  And checks whether the
9498         given ccl program is valid.
9499         (mule_decode): When calling ccl_driver, if src indicates
9500         NULL pointer, set an empty string instead.
9501         (mule_encode): Likewise.
9502
9503 2000-10-11  Martin Buchholz  <martin@xemacs.org>
9504
9505         The following large batch of changes gets us back to a state of
9506         C++ compilability.  Extbyte is now a char, which means that
9507         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9508
9509         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9510
9511         * sound.c (Fplay_sound): Type correctness.
9512
9513         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9514         (x_get_window_property): Type correctness.
9515         (receive_incremental_selection): unsigned char ==> Extbyte
9516         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9517         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9518         (Fx_store_cutbuffer_internal): Type correctness.
9519
9520         * process-unix.c (try_to_initialize_subtty): Type correctness.
9521
9522         * objects-x.c (x_print_color_instance): Type correctness.
9523         (x_print_font_instance): Type correctness.
9524         (x_list_fonts): SExtbyte ==> Extbyte.
9525         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9526         (x_find_charset_font): SExtbyte ==> Extbyte.
9527         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9528         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9529         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9530         Use bufbyte_strcmp.
9531
9532         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9533         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9534         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9535         (BYTE_C0_P): Use bit ops for char-signedness safety.
9536         (BYTE_C1_P): Use bit ops for char-signedness safety.
9537         (CHARSET_BY_LEADING_BYTE):
9538         (CHARSET_BY_ATTRIBUTES):
9539         Always use inline function.
9540         Use type_checking_assert.
9541         Hide chlook.
9542
9543         * mule-charset.c (non_ascii_charptr_copy_char):
9544         Modify to work with both ASCII and non-ASCII characters.
9545         Improve docs and variable names.
9546         Replace over-clever fall-through switch with a simple loop.
9547         (Lstream_get_emchar_1):
9548         Replace over-clever fall-through switch with a simple loop.
9549
9550         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9551         Warning suppression.
9552
9553         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9554         the return value of Lstream_getc, which could be EOF as well.
9555
9556         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9557
9558         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9559         APIs can be used on Extbytes without casts.  Risky!
9560         (SExtbyte): Remove.
9561         (UExtbyte): Remove.
9562
9563         * input-method-xlib.c (XIM_init_device):
9564         Use Xlib.h instead of IntrinsicP.h.
9565         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9566         which will break in X11R7.
9567         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9568         to call XRegisterIMInstantiateCallback with correct types.
9569
9570         * gui-x.c (button_item_to_widget_value): Type correctness.
9571
9572         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9573
9574         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9575         (xbm_instantiate_1): Type correctness.
9576         (BUILD_GLYPH_INST):  Type correctness.
9577
9578         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9579
9580         * file-coding.c:
9581         (decode_coding_sjis):
9582         (decode_coding_big5):
9583         (decode_coding_ucs4):
9584         (decode_coding_utf8):
9585         (decode_coding_iso2022):
9586         (decode_coding_no_conversion):
9587         Make all decoding functions take an Extbyte * arg.
9588         (encode_coding_sjis):
9589         (encode_coding_big5):
9590         (encode_coding_ucs4):
9591         (encode_coding_utf8):
9592         (encode_coding_iso2022):
9593         (encode_coding_no_conversion):
9594         Make all encoding functions take a Bufbyte * arg.
9595         Use size_t instead of unsigned int for memory sizes.
9596         Only cast to unsigned char whenever dereferencing Extbyte *.
9597
9598         * doc.c (unparesseuxify_doc_string): Type correctness.
9599
9600         * console-x.c (split_up_display_spec):
9601         Rewrite without using details of internal string representation.
9602         (x_semi_canonicalize_device_connection): Type correctness.
9603
9604         * config.h.in:
9605         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9606         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9607         (HAVE_XFREE386): Removed.
9608
9609         * buffer.h (DEC_CHARPTR): `const' correctness.
9610         (bufbyte_strcmp): New.
9611         (bufbyte_memcmp): New.
9612
9613         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9614
9615         * buffer.h (XCHAR_OR_CHAR_INT):
9616         Always use inline function.
9617         Remove redundant type checking assert() - XINT will abort quite nicely.
9618
9619 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9620
9621         * search.c (Freplace_match): Set newtext to an empty string.
9622
9623 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9624
9625         * s/decosf1-3.h: Remove #include of stropts.h
9626         * s/ptx.h: Remove #include of stropts.h
9627         * s/usg5-4.h: Remove #include of stropts.h
9628         * sysproc.h:
9629         * config.h.in:
9630         Use stropts.h, not sys/stropts.h.
9631         Use strtio.h, not sys/strtio.h.
9632
9633 2000-10-04  Martin Buchholz <martin@xemacs.org>
9634
9635         * XEmacs 21.2.36 is released.
9636
9637 2000-09-21  Andy Piper  <andy@xemacs.org>
9638
9639         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9640         changes still involve copying the widget tree.
9641         (update_widget_face): make sure a change is register in the widget
9642         tree. Call update_tab_widget_face appropriately.
9643         (update_tab_widget_face): ditto.
9644         (x_tab_control_redisplay): make sure non-structural changes still
9645         involve copying the widget tree.
9646
9647 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9648
9649         * lread.c (locate_file): Check the path element is non-nil.
9650
9651 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9652
9653         * lisp.h: Warning suppression for SCO compilers.
9654
9655         * redisplay-tty.c (reset_tty_modes): Fix crash.
9656         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9657
9658 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9659
9660         Big signal/process handling overhaul.  Bugs fixed:
9661         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9662         M-x comint-kill-subjob should work for both values nil and t of
9663         process-connection-type. It was broken on most platforms.
9664         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9665         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9666         * process-unix.c: Signal/Process handling overhaul.
9667         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9668         (allocate_pty): Use all available modern methods of allocating
9669         ptys, falling back to old style BSD allocation as a last resort.
9670         Use allegedly more secure Unix98 pty allocation by default.
9671         (allocate_pty_the_old_fashioned_way): New. the last resort.
9672         (unix_create_process): Push ptem, ldterm, ttcompat where
9673         available.  Autoconfiscate.
9674         (try_to_initialize_subtty): New.
9675         (unix_kill_child_process): Proper signal handling for ptys on most
9676         platforms, using special knowledge of AIX, BSD, etc...
9677         (unix_create_process): Always disconnect_controlling_terminal() for
9678         subprocesses, whether using ptys or not.
9679         * process.h: Remove old getpt-dependent PTY code.
9680         * process.c (Fprocess_send_signal): New, obvious generic function.
9681         (decode_signal): New.
9682         (Finterrupt_process):
9683         (Fkill_process):
9684         (Fquit_process):
9685         (Fstop_process):
9686         (Fcontinue_process):
9687         (Fsignal_process): Use decode_signal.
9688         (process_send_signal):
9689         Many docstring corrections.
9690         Allow any signal to be sent to a process object.
9691         * config.h.in: Add symbols for big signal/process overhaul.
9692         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9693         * sysproc.h: Include process-related headers, where available:
9694         sys/stropts.h sys/strtio.h pty.h libutil.h
9695         * s/irix4-0.h:
9696         * s/irix5-0.h:
9697         * s/cygwin32.h:
9698         * s/gnu.h:
9699         * s/linux.h:
9700         * s/hpux.h:
9701         * s/aix3-1.h:
9702         Remove old S&M pty stuff.
9703         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9704         * systty.h: Simplify cpp hackery, improve comments.
9705         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9706
9707         * editfns.c (Fformat_time_string):
9708         Be a little more paranoid with the return value of ctime.
9709
9710         * fileio.c (check_executable):
9711         (check_writable):
9712         Use symbolic constants X_OK, W_OK.
9713
9714         * console-x.c (split_up_display_spec): Fix a warning.
9715
9716 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9717
9718         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9719         * ntproc.c (sys_spawnve): make_string ==> build_string
9720         Small clarity improvements.
9721
9722 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9723
9724         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9725
9726         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9727
9728         * config.h.in (HAVE_STRCASECMP): Remove.
9729
9730 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9731
9732         * redisplay-output.c (redisplay_output_pixmap):
9733         Cleaner and possibly more 64-bit correct code.
9734
9735 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9736
9737         * dumper.c (pdump_load_finish): move restoration of
9738         `noninteractive1' to emacs.c (main_1).
9739         * emacs.c (main_1): protect LISP-visible command-line flags
9740         from pdump_load().
9741
9742 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9743
9744         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9745         DUMP_TARGET instead of literal program names.
9746
9747 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9748
9749         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9750
9751 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9752
9753         * *: Spelling mega-patch
9754
9755 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9756
9757         * fns.c (bad_bad_turtle):
9758         Delete "Eek!" comment, since we fixed the bug to which it refers.
9759
9760 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9761
9762         * alloca.c: Replace REGISTER with register.
9763
9764 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9765
9766         * file-coding.c (ucs_to_char): Use countof.
9767
9768 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9769
9770         * file-coding.c: (ucs_to_char):
9771         (complex_vars_of_file_coding):
9772         Use countof instead of sizeof.
9773         Use CHECK_NATNUM instead of CHECK_INT.
9774
9775         * sysdep.c (strcasecmp): Remove.
9776         * device-x.c (ascii_strcasecmp): New.
9777         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9778         Avoid using non-standard non-portable strcasecmp.
9779
9780 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9781
9782         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9783         * font-lock.c: remove reference to emacsfns.h.
9784         * search.c: small doc improvement.
9785         * event-Xt.c: correct file names in comments.
9786         * console-x.h Correct file names in comments.
9787         * frame.c: Correct file names in comments.
9788         * event-stream.c: remove Energize from comments.
9789
9790 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9791
9792         * symeval.h (DEFERROR_STANDARD):
9793         (DEFERROR):
9794         (DEFSYMBOL):
9795         (DEFSYMBOL_NO_DUMP):
9796         (DEFSYMBOL_MULTIWORD_PREDICATE):
9797         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9798         (DEFKEYWORD):
9799         The construct &##name is not sensible C.
9800         Fixes compilation errors with Unixware native compiler.
9801
9802 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9803
9804         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9805         (next_frame_internal): Removed.  We now just have next_frame.
9806         (next_frame):
9807         Write a simpler and cleaner one-pass algorithm.
9808         Remove called_from_delete_device arg and #ifdefed-out code.
9809         (previous_frame):
9810         Renamed from prev_frame.  Update callers.
9811         Cleaned up to have an analogous implementation to next_frame.
9812         (other_visible_frames_internal): Remove the
9813         called_from_delete_device bogus arg, and hence, remove this
9814         function.  Just use other_visible_frames().
9815
9816         * window.c (Fnext_window):
9817         Prettify docstring.
9818         Since next_frame() is guaranteed to return a frame, remove check
9819         for nil inserted in previous patch.
9820         (Fprevious_window):
9821         Prettify docstring.
9822         Make code look more like Fnext_window.
9823         (window_loop):
9824         Respect the `console' arg when iterating through windows.
9825         Fixes bug: (get-buffer-window buffer t device) not respecting
9826         the `device' arg.
9827         This function needs more work, as others have pointed out.
9828
9829         * frame.h: Rename prev_frame to previous_frame.
9830         device_matches_console_spec no longer takes a `frame' arg.
9831
9832         * s/gnu.h:
9833         * s/linux.h:
9834         * s/hpux.h:
9835         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9836         From "Golubev I. N." <gin@mo.msk.ru>.
9837
9838         * make-src-depend: Fix typo.
9839
9840 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9841
9842         * window.c (Fnext_window):
9843         next_frame() might return nil, not a frame.
9844         Fixes this crash:
9845         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9846
9847         * frame.c (next_frame_internal):
9848         We've passed a frame if we've passed its device.
9849         Fixes this crash:
9850         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9851 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9852
9853 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9854
9855         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9856         Allow option to suppress accelerators in menu/dialog items.
9857         (populate_or_checksum_helper): Pass dialog title through above.
9858
9859 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9860
9861         * event-msw.c (mswindows_key_to_emacs_keysym):
9862         Add "pause" key, fix "menu" key.
9863
9864 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9865
9866         * eval.c (reinit_vars_of_eval):
9867         Increase max_lisp_eval_depth to 1000,
9868         required for thai-xtis.el to byte-compile under some circumstances.
9869
9870 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9871
9872         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9873         From Kenichi Handa.
9874
9875 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9876
9877         * make-src-depend: Make the generated Makefiles smaller.
9878
9879         * s/hpux.h (SETUP_SLAVE_PTY):
9880         Provide a %d in the format string for the errno argument.
9881
9882         * editfns.c (Ftemp_directory):
9883         Warning fix.
9884         Avoid buffer overrun on very long file name.
9885
9886         * input-method-xlib.c (XIM_init_device):
9887         6th parameter of XRegisterIMInstantiateCallback has different
9888         pointer types on different OSes, so simply cast to (void *).
9889
9890         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9891
9892         * sysdll.c (dll_open):
9893         shl_load will hang hard if passed a NULL filename.
9894         Simply return NULL for compatibility with dlopen.
9895         * sysdll.c: Conform to XEmacs coding standards.
9896
9897         * sysdep.c (get_pty_max_bytes):
9898         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9899
9900 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9901
9902         * tooltalk.c: Add #include <syssignal.h>
9903
9904 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9905
9906         * s/hpux.h: Don't use undefined function sigunblock().
9907
9908 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9909
9910         * config.h.in: Add HAVE_BALLOON_HELP.
9911         * emacs.c: Use HAVE_BALLOON_HELP.
9912         * Makefile.in.in (x_objs):
9913         Make Balloon Help conditional on finding shape.h.
9914
9915 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9916
9917         * syntax.c (regex_emacs_buffer_p): New variable.
9918         * syntax.h (regex_emacs_buffer_p): extern.
9919         * search.c (looking_at_1):
9920         (string_match_1):
9921         (fast_string_match):
9922         (search_buffer): Set regex_emacs_buffer_p.
9923         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9924         when before_dot, at_dot, after_dot.
9925
9926 2000-08-23  Andy Piper  <andy@xemacs.org>
9927
9928         * gui-x.c (popup_selection_callback): Only set action_occurred
9929         when we really have an image instance.
9930         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9931
9932 2000-08-23  Andy Piper  <andy@xemacs.org>
9933
9934         * gui-msw.c (mswindows_handle_gui_wm_command): set
9935         action_occurred.
9936         * gui-x.c (popup_selection_callback): ditto.
9937
9938         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9939         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9940         (struct Lisp_Image_Instance): add action_occurred flag.
9941
9942         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9943         (image_instance_changed): ditto.
9944         (reset_frame_subwindow_instance_cache): only unmap windows - do
9945         not remove them from the cache also.
9946
9947         * glyphs-widget.c (tab_control_update): better debug.
9948         (progress_gauge_update): ditto.
9949         (layout_update): ditto.
9950         (layout_instantiate): ditto.
9951         (tab_control_order_only_changed): cope with null pending items.
9952
9953         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9954         debug. Force selection of an item when an action occurred. Cope
9955         with null pending_items.
9956         (mswindows_progress_gauge_redisplay): better debug.
9957         * glyphs-x.c (x_tab_control_redisplay): ditto.
9958
9959         * redisplay.c (redisplay_frame): reset the frame cache if the
9960         frame is garbaged.
9961
9962         * window.c (Fset_window_configuration): potentially re-enable
9963         frame cache reset.
9964         (window_unmap_subwindows): need to finalize instances here since
9965         it is only used in mark_window_as_deleted.
9966
9967 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9968
9969         * nas.c (SndOpenDataForReading):
9970         nas.c (WaveOpenDataForReading):
9971         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9972         Somehow escaped from the 2000-08-14 patch.
9973
9974 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9975
9976         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9977         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9978
9979 2000-08-21  Andy Piper  <andy@xemacs.org>
9980
9981         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9982         window if it is not already displayed.
9983
9984         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9985         it is not already displayed.
9986
9987         * window.c (Fset_window_configuration): don't reset the frame
9988         cache.
9989
9990         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9991         instances from the frame cache if we are actually finalizing them.
9992         (reset_frame_subwindow_instance_cache): reset frame cache only
9993         after unmapping everything.
9994         (map_subwindow): set displayed flag after mapping.
9995
9996 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9997
9998         * data.c (indirect_function):
9999         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
10000
10001         * eval.c (function_argcount):
10002         Use original function when signaling errors.
10003
10004 2000-08-18  Andy Piper  <andy@xemacs.org>
10005
10006         * frame.c (delete_frame_internal): use new
10007         free_frame_subwindow_instances name.
10008
10009         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
10010         (add_tab_item): make return type correct.
10011         (mswindows_tab_control_instantiate): assert index of tab.
10012         (mswindows_tab_control_redisplay): Re-code to use
10013         gui_item_equal_sans_selected and gui_item_list_find_selected.
10014
10015         * glyphs-widget.c (tab_control_update): Correct comment.
10016
10017         * window.c (window_unmap_subwindows): use new
10018         unmap_subwindow_instance_cache_mapper.
10019         (window_unmap_subwindows_cache_mapper): deleted.
10020         (Fset_window_configuration): comparisons should now be with
10021         EQ. Preserve the subwindow instance cache across configuration
10022         changes.
10023         (allocate_window): ditto.
10024         (make_dummy_parent): ditto.
10025
10026         * glyphs.c (free_frame_subwindow_instances): rename from
10027         free_frame_subwindow_instance_cache. finalize all instances rather
10028         than just those in the display cache.
10029         (finalize_all_subwindow_instances): walk windows unmapping and
10030         finalizing subwindows.
10031         (unmap_subwindow_instance_cache_mapper): moved from
10032         window.c. Allow finalization as well as unmapping.
10033
10034         * gui.c (gui_item_list_find_selected): new function.
10035
10036         * gui.h (gui_item_list_find_selected): declare.
10037
10038         * glyphs-x.c (x_tab_control_redisplay): pick tab
10039         explicitly. Re-code to use gui_item_equal_sans_selected and
10040         gui_item_list_find_selected.
10041
10042         * glyphs-x.h: add lwlib-utils.h
10043
10044         * buffer.c (Frecord_buffer): undo previous change.
10045
10046 2000-08-09  Vin Shelton  <acs@xemacs.org>
10047
10048         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
10049         possible.  Create temporary files more securely.  The patch was
10050         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
10051         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
10052         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
10053         for details.
10054
10055 2000-08-07  Ben Wing  <ben@xemacs.org>
10056
10057         * getloadavg.c: remove duplicate (and windows-breaking)
10058         includes of fcntl.h and sys/file.h.
10059
10060         * nt.c: remove duplicate getloadavg() definition.
10061
10062         * sysdll.h (Qdll_filename_encoding): add missing stand-in
10063         encodings.
10064
10065 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10066
10067         * eval.c (function_argcount): If function needs to be autoloaded
10068         actually use the loaded definition.
10069         GCPRO function.
10070
10071 2000-08-05  Ben Wing  <ben@xemacs.org>
10072
10073         * getloadavg.c: add prototype for getloadavg().  remove
10074         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
10075         of the code).  remove duplicate header includes.
10076
10077         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
10078
10079         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
10080         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
10081         useful load average.
10082
10083         * alloc.c (reinit_alloc_once_early): removed references to
10084         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
10085         the lisp vars are the only things referencing the malloc_sbrk_*
10086         vars, and they were already if 0'd out.  these vars only exist
10087         in the older malloc.c, which is basically unused, and they're
10088         only for informational purposes.
10089
10090         * m\*.h: removed useless VIRT_ADDR_VARIES.
10091
10092         * m\powerpc.h: removed stray NO_ARG_ARRAY.
10093
10094 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10095
10096         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
10097         color if the image is a mono pixmap.
10098
10099 2000-07-30  Ben Wing  <ben@xemacs.org>
10100
10101         * Makefile.in.in (release):
10102         Remove stray @.
10103
10104         * buffer.c (directory_is_current_directory):
10105         * dired-msw.c (mswindows_get_files):
10106         * dired.c:
10107         * dired.c (Fdirectory_files):
10108         * dired.c (file_name_completion_stat):
10109         * dired.c (Ffile_attributes):
10110         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
10111         preprocessor tricks, to avoid problems on some machines
10112         (e.g. SCO).
10113
10114         * callproc.c (egetenv): GC docs.
10115
10116         * console-msw.h:
10117         * console-msw.h (struct mswindows_dialog_id):
10118         * lrecord.h (lrecord_type):
10119         New object for use with MSW dialogs.
10120
10121         * console.h (struct console_methods):
10122         New enable/disable frame methods, for proper modal dialogs.
10123
10124         * device-msw.c (msprinter_default_printer): Fix to follow
10125         proper Mule conventions.
10126
10127         * device-msw.c:
10128         * device-msw.c (signal_open_printer_error):
10129         * device-msw.c (msprinter_init_device):
10130         * device-msw.c (ensure_not_printing):
10131         * device-msw.c (plist_get_margin):
10132         * device-msw.c (Fmsprinter_select_settings):
10133         * device-msw.c (finalize_devmode):
10134         * device-msw.c (Fmsprinter_settings_despecialize):
10135         * device-msw.c (signal_enum_priner_error):
10136         * extents.c (decode_extent):
10137         * extents.c (decode_map_extents_flags):
10138         * extents.c (decode_extent_at_flag):
10139         * extents.c (Fextent_at):
10140         * extents.c (Fextents_at):
10141         * extents.c (symbol_to_glyph_layout):
10142         [[[[2]]]] Use structured errors.
10143
10144         * dialog-msw.c:
10145         * dialog-msw.c (mswindows_is_dialog_msg):
10146         * dialog-msw.c (mark_mswindows_dialog_id):
10147         * dialog-msw.c (dialog_proc):
10148         * dialog-msw.c (handle_question_dialog_box):
10149         * dialog-msw.c (syms_of_dialog_mswindows):
10150         Define new object to clean up marking; use it as a dialog identifier.
10151         Call new delete-dialog-box-hook.
10152
10153         * dialog-x.c (dbox_selection_callback):
10154         * dialog-x.c (dbox_descriptor_to_widget_value):
10155         * dialog-x.c (x_make_dialog_box_internal):
10156         Call new delete-dialog-box-hook.
10157         Return an id.
10158
10159         * dialog.c:
10160         * dialog.c (syms_of_dialog):
10161         * dialog.c (vars_of_dialog):
10162         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
10163
10164         * eval.c:
10165         * eval.c (signal_call_debugger):
10166         when noninteractive, output stack traces on the console instead
10167         of in a (never-seen) buffer.
10168
10169         * eval.c (signal_type_error):
10170         * eval.c (invalid_argument_2):
10171         * lisp.h:
10172         new funs for use w/structured errors.
10173
10174         * event-Xt.c:
10175         * event-Xt.c (x_to_emacs_keysym):
10176         * event-Xt.c (describe_event):
10177         * event-Xt.c (emacs_Xt_event_handler):
10178         * event-Xt.c (vars_of_event_Xt):
10179         * event-msw.c:
10180         * event-msw.c (mswindows_wnd_proc):
10181         * event-msw.c (vars_of_event_mswindows):
10182         rename {x,mswindows}-debug-events to debug-{}-events for
10183         consistency with other debug-foo variables.
10184
10185         * event-stream.c:
10186         document next-event more clearly.
10187
10188         * fileio.c (Ffile_name_directory):
10189         * fileio.c (Ffile_name_nondirectory):
10190         * fileio.c (Funhandled_file_name_directory):
10191         * fileio.c (file_name_as_directory):
10192         * fileio.c (Ffile_name_as_directory):
10193         * fileio.c (directory_file_name):
10194         * fileio.c (Fdirectory_file_name):
10195         * fileio.c (Fmake_temp_name):
10196         * fileio.c (Ffile_truename):
10197         * fileio.c (Fsubstitute_in_file_name):
10198         * fileio.c (expand_and_dir_to_file):
10199         * fileio.c (barf_or_query_if_file_exists):
10200         * fileio.c (check_executable):
10201         * fileio.c (Ffile_exists_p):
10202         * fileio.c (Ffile_writable_p):
10203         * fileio.c (Ffile_directory_p):
10204         * fileio.c (Ffile_regular_p):
10205         * fileio.c (Ffile_modes):
10206         * fileio.c (Ffile_newer_than_file_p):
10207         * fileio.c (Fverify_visited_file_modtime):
10208         * fileio.c (Fset_visited_file_modtime):
10209         * fileio.c (auto_save_1):
10210         (1). (2).
10211         fix up gcpro's.
10212
10213         * frame-msw.c:
10214         * frame-msw.c (mswindows_init_frame_1):
10215         * frame-msw.c (mswindows_enable_frame):
10216         * frame-msw.c (error_frame_unsizable):
10217         * frame-msw.c (msprinter_init_frame_1):
10218         * frame-msw.c (msprinter_init_frame_3):
10219         * frame-msw.c (console_type_create_frame_mswindows):
10220         (2).
10221         implement new enable/disable frame methods.
10222
10223         * frame-x.c:
10224         * frame-x.c (x_enable_frame):
10225         * frame-x.c (console_type_create_frame_x):
10226         implement new enable/disable frame methods.
10227
10228         * frame.c:
10229         * frame.c (Fdisable_frame):
10230         * frame.c (syms_of_frame):
10231         * frame.h (struct frame):
10232         implement new enable/disable frame methods/functions.
10233
10234         * general-slots.h:
10235         add initial-focus.
10236
10237         * glyphs-msw.c (mswindows_widget_instantiate):
10238         comment that initial-focus should be implemented.
10239
10240         * glyphs-widget.c:
10241         * glyphs-widget.c (check_valid_instantiator):
10242         * glyphs-widget.c (check_valid_orientation):
10243         * glyphs-widget.c (check_valid_tab_orientation):
10244         * glyphs-widget.c (check_valid_justification):
10245         * glyphs-widget.c (check_valid_border):
10246         * glyphs-widget.c (check_valid_callback):
10247         * glyphs-widget.c (check_valid_int_or_function):
10248         * glyphs-widget.c (check_valid_string_or_vector):
10249         * glyphs-widget.c (check_valid_item_list_1):
10250         * glyphs-widget.c (widget_validate):
10251         * glyphs-widget.c (combo_box_validate):
10252         * glyphs-widget.c (widget_instantiate):
10253         * glyphs-widget.c (syms_of_glyphs_widget):
10254         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
10255         * glyphs-widget.c (image_instantiator_combo_box):
10256         * glyphs-widget.c (image_instantiator_scrollbar):
10257         * glyphs-widget.c (image_instantiator_tab_control):
10258         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
10259         (2).
10260         support (unimplemented) keyword initial-focus.
10261         reindent long macros.
10262
10263         * glyphs-x.c (x_redisplay_widget):
10264         * glyphs-x.c (x_button_instantiate):
10265         * glyphs-x.c (x_button_redisplay):
10266         * glyphs-x.c (x_progress_gauge_instantiate):
10267         * glyphs-x.c (x_edit_field_instantiate):
10268         * glyphs-x.c (x_combo_box_instantiate):
10269         * glyphs-x.c (x_tab_control_instantiate):
10270         * glyphs-x.c (x_label_instantiate):
10271         * gui-x.c:
10272         * gui-x.c (button_item_to_widget_value):
10273         * gui-x.c (gui_items_to_widget_values_1):
10274         * gui-x.c (gui_item_children_to_widget_values):
10275         * gui-x.c (gui_items_to_widget_values):
10276         * gui-x.h:
10277         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10278         add new flag to gui-parsing routines to indicate whether
10279         accelerator specs should be supported.
10280
10281         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
10282
10283         * glyphs.h (struct Lisp_Image_Instance):
10284         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
10285         add initial-focus flag.
10286
10287         * gui.c:
10288         * gui.c (syms_of_gui):
10289         * gui.c (vars_of_gui):
10290         clean up menu-no-selection-hook.
10291
10292         * gui.h:
10293         support delete-dialog-box-hook.
10294
10295         * lread.c (Fload_internal):
10296         * lread.c (locate_file_in_directory_mapper):
10297         (1).
10298
10299         * lrecord.h:
10300         * lrecord.h (struct toolbar_button):
10301         * lrecord.h (syms_of_toolbar):
10302         document how to create a new object.
10303
10304         * menubar-msw.c (mswindows_char_is_accelerator):
10305         may be called on frames w/o menus.
10306
10307         * menubar.c (vars_of_menubar):
10308         clean up :filter docs.
10309
10310         * nt.c (readdir):
10311         * ntproc.c:
10312         (1).
10313
10314         * process-nt.c:
10315         * process-nt.c (validate_signal_number):
10316         * process-nt.c (signal_cannot_launch):
10317         * process-nt.c (nt_create_process):
10318         * process-nt.c (nt_send_process):
10319         * process-nt.c (nt_kill_child_process):
10320         * process-nt.c (nt_open_network_stream):
10321         * process-nt.c (syms_of_process_nt):
10322         (2).
10323         delete quote-handling.  call new lisp code that does it better.
10324
10325         * process-unix.c (connect_to_file_descriptor):
10326         * process-unix.c (allocate_pty):
10327         * process-unix.c (unix_send_process):
10328         * process-unix.c (unix_kill_child_process):
10329         * process-unix.c (unix_open_network_stream):
10330         * process-unix.c (unix_open_multicast_group):
10331         (1). (2).
10332
10333         * process.c:
10334         * process.c (Fstart_process_internal):
10335         (2).  need to canonicalize process path even if absolute.
10336
10337         * select-msw.c (symbol_to_ms_cf):
10338         * select-msw.c (ms_cf_to_symbol):
10339         * select-msw.c (cf_is_autofreed):
10340         * select-msw.c (mswindows_destroy_selection):
10341         * select.c:
10342         * select.c (syms_of_select):
10343         * select.h:
10344         support dibv5, fix bugs. (from Mike Alexander)
10345
10346         * select.c (Fget_selection_internal):
10347         * select.c (select_convert_out):
10348
10349         * sysdep.c:
10350         * sysdep.c (xemacs_stat):
10351         renamed.
10352
10353         * sysdep.c (mkdir):
10354         * sysdep.c (rmdir):
10355         but keep original stat() here because we provide encapsulation
10356         around these funs.
10357
10358         * sysfile.h:
10359         * sysfile.h (fstat):
10360         remove stat garbage.
10361
10362         * syswindows.h:
10363         fix X/MSW conflict.
10364         don't include tchar.h.  it's inappropriate because it makes
10365         compile-time distinctions when we want runtime distinctions.
10366         (we provide our own tchar replacements)
10367
10368         * toolbar.c:
10369         use default object printer for toolbar-button.
10370
10371         * unexcw.c:
10372         make sure we don't encapsulate.
10373
10374         * window.c (vars_of_window):
10375         emphasize that temp-buffer-show-hook is obsolete.
10376
10377 2000-08-05  Martin Buchholz  <martin@xemacs.org>
10378
10379         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
10380         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
10381
10382         * events.c (Fevent_timestamp_lessp):
10383         Not 64-bit clean.  Use EMACS_INT, not int.
10384
10385 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
10386
10387         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
10388         unsigned int and changed the last enum to
10389         lrecord_type_last_built_in_type.
10390         (lrecord_implementations_table): changed prototype to know how
10391         long the array is supposed to be.
10392         (lrecord_type_count): new unsigned int to keep track of the
10393         current number of lisp lrecord types.
10394         (DEFINE_EXTERNAL_LRECORD):
10395         (DECLARE_EXTERNAL_LRECORD): Added these two for external
10396         dynamic-modules to declare new lisp types. They are the same
10397         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
10398         int for each new type, and increment lrecord_type_count by 1.
10399
10400         * alloc.c (lrecord_implementations_table): Changed to reference
10401         lrecord_type_last_built_in_type for the size of the array.
10402         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
10403
10404 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10405
10406         * glyphs.h (check_valid_item_list): Renamed from
10407         check_valid_item_list_1.
10408
10409 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
10410
10411         * select.c (Qselect_coerce): New.
10412         * select.c (Vselection_coercion_alist): New.
10413         * select.c (syms_of_select): Declare.
10414         * select.c (get-selection-internal): Use it.
10415         Use the new select-coerce functionality.
10416
10417         * select.c (select_coerce): New.
10418         * select.h (select_coerce): Declare.
10419         New function to coerce one type of data into another.
10420
10421 2000-08-03  Martin Buchholz  <martin@xemacs.org>
10422
10423         * callproc.c (Fcall_process_internal):
10424         (Fcall_process_internal):
10425         * process-unix.c (unix_create_process):
10426         Save and restore the value of errno, so that error messages are accurate.
10427
10428 2000-08-01  Martin Buchholz  <martin@xemacs.org>
10429
10430         * elhash.c (print_hash_table):
10431         Fix printing of hash tables to also use `key-and-value' instead of `t'.
10432         Prettify docstrings and indentation.
10433
10434 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10435
10436         * window.c (Fwindow_pixel_edges): Subtract frame border and
10437         gutter size.
10438
10439 2000-07-31  Andy Piper  <andy@xemacs.org>
10440
10441         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
10442         will acknowledge the change.
10443
10444         * glyphs.h: declare tab_control_order_only_changed.
10445
10446         * glyphs-x.c (x_tab_control_redisplay): use
10447         tab_control_order_only_changed.
10448
10449         * glyphs-widget.c (tab_control_order_only_changed): new function.
10450
10451         * glyphs-msw.c (mswindows_tab_control_redisplay): use
10452         tab_control_order_only_changed.
10453
10454         * gui.c (gui_item_equal_sans_selected): new function.
10455         (gui_item_equal): use it.
10456
10457         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
10458         :properties in favor of :items..
10459
10460         * glyphs-widget.c (check_valid_item_list): rename from
10461         check_valid_item_list_1.
10462         (check_valid_item_list_1): renamed.
10463         (combo_box_validate): deprecate :properties in favor of :items.
10464         (widget_instantiate): ditto.
10465         (tab_control_update): ditto.
10466         (image_instantiator_combo_box): ditto.
10467         (image_instantiator_tree_view): ditto.
10468         (image_instantiator_tab_control): ditto.
10469         (layout_post_instantiate): remove dead code.
10470
10471         * print.c (debug_print_no_newline): only write to debugger if in
10472         WIN32_NATIVE.
10473
10474         * elhash.c (Fmake_hash_table): update doc string.
10475
10476         * event-msw.c (mswindows_wnd_proc): don't allow processing of
10477         messages whilst in GC. This at least stops XEmacs crashing but has
10478         the potential for wierd behaviour.
10479
10480 2000-07-31  Martin Buchholz  <martin@xemacs.org>
10481
10482         * config.h.in:
10483         Make existence of s&m files optional.
10484
10485         * s/bsd386.h: Remove HAVE_GETLOADAVG.
10486         * s/freebsd.h: Remove HAVE_GETLOADAVG.
10487         * s/gnu.h: Remove HAVE_GETLOADAVG.
10488         * s/netbsd.h: Remove HAVE_GETLOADAVG.
10489         * s/sol2.h: Remove HAVE_GETLOADAVG.
10490         * lisp.h: Remove getloadavg() declaration.
10491         * fns.c:
10492         Include <sys/loadavg.h> if available.
10493         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
10494         * config.h.in:  Group together getloadavg()-related macros.
10495         Use only configure-time tests to detect getloadavg().
10496
10497 2000-07-30  Martin Buchholz  <martin@xemacs.org>
10498
10499         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10500
10501 2000-07-25  Andy Piper  <andy@xemacs.org>
10502
10503         * syswindows.h: add tchar.h for native builds.
10504
10505         * frame.c (syms_of_frame): remove set-glyph-image.
10506
10507         * general-slots.h: add Qset_glyph_image.
10508
10509         * glyphs-widget.c (layout_update): add domain arg to
10510         set-glyph-image.
10511         (syms_of_glyphs_widget): remove set-glyph-image.
10512
10513 2000-07-23  Ben Wing  <ben@xemacs.org>
10514
10515         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10516         Vpopup_frame_list.
10517
10518 2000-07-22  Andy Piper  <andy@xemacs.org>
10519
10520         * symsinit.h: add syms_of_win32().
10521
10522         * gui-msw.c (syms_of_gui_mswindows): remove
10523         Fmswindows_shell_execute.
10524         (Fmswindows_shell_execute): moved to win32.c.
10525
10526         * emacs.c (main_1): add syms_of_win32 ().
10527
10528         * win32.c (init_potentially_nonexistent_functions): rewrite in
10529         compiler-friendly terms.
10530         (Fmswindows_shell_execute): move here from gui-msw.c.
10531         (syms_of_win32): new.
10532
10533         * device-msw.c (Fmswindows_printer_list): clean up args to
10534         EnumPrinters.
10535         Don't include tchar under cygwin or mingw.
10536         (msprinter_default_printer): make cygwin-friendly.
10537
10538 2000-07-21  Andy Piper  <andy@xemacs.org>
10539
10540         * glyphs-widget.c (image_instantiator_tree_view): use tab
10541         control's update function.
10542         (layout_property): new function. Retrieve items.
10543
10544         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10545         function. Re-populate the tree view from the pending items.
10546
10547         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10548         is designated the parent if the domain is an image instance. This
10549         is needed so that dirtiness can be cascade up the hierarchy and
10550         thus for layout children to be redisplayed correctly.
10551         (allocate_image_instance): rename glyph -> parent.
10552
10553         * redisplay.h: change redisplay_output_layout signature.
10554
10555         * redisplay-msw.c (mswindows_output_display_block): use domain
10556         arg.
10557
10558         * redisplay-x.c (x_output_display_block): use domain arg.
10559
10560 2000-07-10  Andy Piper  <andy@xemacs.org>
10561
10562         * window.c (Fset_window_configuration): add comment.
10563
10564         * redisplay-output.c (compare_runes):
10565         (redisplay_output_subwindow): redisplay rather than update subwindow.
10566         (redisplay_output_layout): ditto.
10567
10568         * redisplay-msw.c (mswindows_frame_output_end):
10569         (mswindows_frame_output_end): make defer window pos optional.
10570
10571         * lisp.h: add Flast.
10572
10573         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10574         normalize method. Change update method to be for changed
10575         instantiators. Add redisplay method. Change signature of layout
10576         method.
10577         (struct Lisp_Image_Instance): add instantiator.
10578         (IMAGE_INSTANCE_INSTANTIATOR): new.
10579         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10580         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10581         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10582
10583         * glyphs.c:
10584         (find_instantiator_differences): new function.
10585         (Fset_instantiator_property): new convenience function.
10586         (check_image_instance_structure): strictly check for vector
10587         instantiators.
10588         (normalize_image_instantiator): make non-static.
10589         (instantiate_image_instantiator): pass on dest_mask and use new
10590         signatures for image_instance_layout and friends.
10591         (mark_image_instance): mark the instantiator. Mark the subwindow
10592         face not the widget face.
10593         (image_instance_equal): add instantiator.
10594         (image_instance_hash): ditto.
10595         (allocate_image_instance): ditto.
10596         (Fset_image_instance_property): removed.
10597         (Fimage_instance_file_name): ditto.
10598         (Fcolorize_image_instance): ditto.
10599         (image_instance_layout): add offsets to be set.
10600         (update_image_instance): new function. update an image instance
10601         from its changed instantiator.
10602         (inherit_normalize): add dest_mask.
10603         (xbm_normalize): ditto.
10604         (xface_normalize): ditto.
10605         (xpm_normalize): ditto.
10606         (text_update): set_property -> update.
10607         (image_instantiate): use the glyph identity as a hash key, not the
10608         instantiator.
10609         (glyph_width): use new image_instance_layout signature.
10610         (glyph_ascent): ditto.
10611         (glyph_descent): ditto.
10612         (glyph_height): ditto.
10613         (glyph_query_geometry): ressurrect.
10614         (glyph_layout): ditto.
10615         (redisplay_subwindow): update -> redisplay.
10616         (syms_of_glyphs): add Fset_instantiator_property.
10617         (image_instantiator_format_create): set_property -> update.
10618
10619         * glyphs-x.c:
10620         (autodetect_normalize): add dest_maks to signature.
10621         (x_redisplay_subwindow): update -> redisplay.
10622         (x_redisplay_widget): ditto.
10623         (x_button_redisplay): ditto.
10624         (x_progress_gauge_redisplay): ditto.
10625         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10626         stacking order.
10627         (console_type_create_glyphs_x): update -> redisplay.
10628         (image_instantiator_format_create_glyphs_x): ditto.
10629
10630         * glyphs-widget.c:
10631         (check_valid_instantiator): disallow glyphs in the instantiator,
10632         they must now be vectors.
10633         (check_valid_instantiator_list): ditto.
10634         (glyph_instantiator_to_glyph): use internal symbol rather than
10635         intern.
10636         (widget_update): renamed from widget_set_property. Call cascaded
10637         update methods.
10638         (redisplay_widget): renamed from update_widget.
10639         (widget_layout): image_instance_layout now takes position as well
10640         as size.
10641         (widget_normalize): ditto.
10642         (widget_instantiate): ditto.
10643         (tab_control_query_geometry) ditto.:
10644         (tab_control_update): renamed from tab_control_set_property.
10645         (progress_gauge_update): set_property -> update.
10646         (layout_normalize): rewrite so that child instantiators are
10647         normalized also.
10648         (layout_update): new function. Create glyphs from the normalized
10649         children and cope with any other layout keywords. We do not
10650         instantiate children here that will be take care of by
10651         redisplay_output_layout.
10652         (layout_instantiate): call layout_update and not much else.
10653         (layout_post_instantiate): not sure whether this is needed
10654         anymore.
10655         (layout_query_geometry): query glyph geometry rather than
10656         image_instance geometry.
10657         (layout_layout): set offsets from pass in parameters. Use glyph
10658         geometry and layout functions rather than image instance ones.
10659         (native_layout_layout): ditto.
10660         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10661         (image_instantiator_widget): set_property -> update.
10662         (image_instantiator_buttons): ditto.
10663         (image_instantiator_progress_guage): ditto.
10664         (image_instantiator_tab_control): ditto.
10665         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10666         (image_instantiator_layout): add update method.
10667
10668         * glyphs-msw.c (bmp_normalize):
10669         (mswindows_resource_normalize): add dest_mask so that it can be
10670         proprogated by layout_normalize.
10671         (begin_defer_window_pos): make optional because it may not be the
10672         right thing to do and it introduces differences with X.
10673         (mswindows_unmap_subwindow): ditto.
10674         (mswindows_map_subwindow): ditto.
10675         (mswindows_redisplay_subwindow): renamed from
10676         mswindows_update_subwindow.
10677         (mswindows_redisplay_widget): ditto.
10678         (mswindows_button_redisplay): renamed from
10679         mswindows_button_update. Update is now what the instantiation
10680         function does for a changed instantiator.
10681         (mswindows_progress_gauge_instantiate): set the progress value
10682         here if appropriate.
10683         (mswindows_tab_control_redisplay): cope with re-ordering of the
10684         members of the tab widget by simply selecting the new top
10685         widget. This makes things appear ok if you click on a tab.
10686         (mswindows_combo_box_instantiate): image_instance_layout now takes
10687         position as well as size.
10688         (mswindows_progress_gauge_redisplay): renamed from
10689         mswindows_progress_gauge_update.
10690         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10691         (image_instantiator_format_create_glyphs_mswindows): ditto.
10692
10693         * glyphs-eimage.c (jpeg_normalize):
10694         (gif_normalize):
10695         (png_normalize):
10696         (tiff_normalize): add dest_mask so that it can be proprogated by
10697         layout_normalize.
10698
10699         * elhash.c:
10700         (print_hash_table):
10701         (hash_table_weakness_validate):
10702         (decode_hash_table_weakness):
10703         (Fhash_table_weakness):
10704         (Fhash_table_type):
10705         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10706
10707         * console.h (struct console_methods): move update_* to
10708         redisplay_*.
10709
10710 2000-07-20  Ben Wing  <ben@xemacs.org>
10711
10712         * *.[ch] (XSETOBJ): remove unused middle argument.
10713         lisp-disunion.h: correct wrap_object() to one argument.
10714
10715 2000-07-15  Ben Wing  <ben@xemacs.org>
10716
10717         * s/cygwin32.h:
10718         * s/cygwin32.h (CYGWIN_CONV_PATH):
10719         Add missing logb prototype for v1.1.
10720         Use post-b20 names and alias to pre-b20 names when pre-b20.
10721
10722         * s/windowsnt.h: [5].
10723
10724 2000-07-15  Ben Wing  <ben@xemacs.org>
10725
10726         * Makefile.in.in (x_objs):
10727         * Makefile.in.in (sheap_objs):
10728         * Makefile.in.in (objs):
10729         added win32.o, cosmetic cleanups.
10730
10731         * alloc.c (Fmake_byte_code):
10732         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10733         etc. macros which declare their own args now.
10734
10735         * alloc.c (syms_of_alloc):
10736         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10737
10738         * buffer.c:
10739         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10740
10741         * buffer.c (Fget_file_buffer):
10742         Fixed GCPRO problem.
10743
10744         * buffer.c (get_truename_buffer):
10745         Fixed comment about GC checking.
10746
10747         * buffer.c (syms_of_buffer):
10748         Undeclared those dedicated frame funs.
10749         [2].
10750
10751         * buffer.h:
10752         Define convenience macros for internal/external conversions.
10753         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10754         and Qenvironment_variable_encoding for cleaner code.
10755
10756         * bufslots.h:
10757         Remove dedicated-frame; in lisp.
10758
10759         * bytecode.c (funcall_compiled_function):
10760         [1].
10761
10762         * bytecode.c (syms_of_bytecode):
10763         [2].
10764
10765         * console-msw.c:
10766         * console-msw.c (mswindows_show_console): Rewrote.
10767
10768         * console-msw.c (Fmswindows_debugging_output): New.
10769         Sends to OutputDebugString (special MSWin debugger interface).
10770
10771         * console-msw.c (Fmswindows_message_box):
10772         Fixed stupid bugs so it works when called from kill-emacs.
10773
10774         * console-msw.c (syms_of_console_mswindows):
10775         Declare Fmswindows_debugging_output.
10776
10777         * console-msw.h:
10778         New MSWin prototypes.
10779
10780         * console-msw.h (struct mswindows_frame):
10781         New entry last-click-mods for improved button-modifier support.
10782
10783         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10784         New struct entry `popup' with corresponding accessor.
10785
10786         * console-x.c:
10787         * console-x.c (split_up_display_spec):
10788         * console-x.c (get_display_arg_connection):
10789         * console-x.c (x_semi_canonicalize_console_connection):
10790         * console-x.c (x_canonicalize_device_connection):
10791         [[[6]]]: Change char to more specific type.
10792         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10793
10794         * console-x.c (x_semi_canonicalize_console_connection):
10795         * console-x.c (x_canonicalize_device_connection):
10796         [[[9]]]: Fix up error signalling to use new structured error system.
10797
10798         * console-x.h:
10799         [[[4]]]: Define codesys aliases:
10800         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10801         Qx_color_name_encoding, Qx_display_name_encoding.
10802
10803         * console.h (struct console_methods):
10804         New method make_dialog_box_internal supersedes older
10805         popup_dialog_box method.
10806
10807         * data.c:
10808         Define many new errors, part of new structured errors.
10809
10810         * data.c (init_errors_once_early):
10811         * data.c (syms_of_data):
10812         [2].
10813
10814         * device-msw.c (mswindows_init_device):
10815         [[[5]]]: Cleanup to support NT 3.51.
10816
10817         * device-msw.c (decode_devmode): Cleanup.
10818
10819         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10820         * device-msw.c (mswindows_handle_print_dialog_box):
10821         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10822         * device-msw.c (syms_of_device_mswindows):
10823         Delete the dialog box primitives recently introduced by Kirill and
10824         instead interface to general dialog box interface.
10825
10826         * device-x.c:
10827         * device-x.c (compute_x_app_name):
10828         * device-x.c (x_init_device):
10829         * device-x.c (Fx_valid_keysym_name_p):
10830         * device-x.c (Fx_set_font_path):
10831         [6].
10832         [7].
10833
10834         * device.h (wrap_device): New.
10835         First of its kind; meant to replace XSETDEVICE.
10836
10837         * dialog-msw.c: Many file-dialog symbols.
10838
10839         * dialog-msw.c (mswindows_register_popup_frame): New.
10840         * dialog-msw.c (mswindows_is_dialog_msg): New.
10841         For supporting kbd traversal in dialog boxes.
10842
10843         * dialog-msw.c (dialog_proc):
10844         Support hitting ESC in dialogs.
10845
10846         * dialog-msw.c (struct):
10847         Common dialog box errors.
10848
10849         * dialog-msw.c (handle_file_dialog_box): New.
10850         Add file dialog code.
10851
10852         * dialog-msw.c (handle_question_dialog_box):
10853         Redo existing code to support new question dialog syntax.
10854
10855         * dialog-msw.c (console_type_create_dialog_mswindows):
10856         We support new dialog console method.
10857
10858         * dialog-msw.c (syms_of_dialog_mswindows):
10859         * dialog-msw.c (vars_of_dialog_mswindows):
10860         New file dialog symbols, vars.
10861
10862         * dialog-x.c:
10863         * dialog-x.c (maybe_run_dbox_text_callback):
10864         * dialog-x.c (dbox_descriptor_to_widget_value):
10865         * dialog-x.c (x_make_dialog_box_internal):
10866         * dialog-x.c (console_type_create_dialog_x):
10867         Mule-ize entire file.
10868         Redo to support question dialog syntax.
10869         [6].
10870
10871         * dialog.c:
10872         * dialog.c (Fmake_dialog_box_internal):
10873         * dialog.c (syms_of_dialog):
10874         Kill old popup-dialog-box, replace with new primitive.
10875         Just call device method or signal error.
10876
10877         * eldap.c (Fldap_open):
10878         * eldap.c (Fldap_search_basic):
10879         * eldap.c (Fldap_add):
10880         * eldap.c (Fldap_modify):
10881         [1].
10882         [7].
10883
10884         * emacs.c:
10885         * emacs.c (make_arg_list_1):
10886         * emacs.c (make_arg_list):
10887         Mule-ize call to dll_init().
10888         [6].
10889         [8].
10890
10891         * emacs.c (make_argc_argv):
10892         * emacs.c (free_argc_argv):
10893         * emacs.c (init_cmdargs):
10894         * emacs.c (main_1):
10895         * emacs.c (Fkill_emacs):
10896         * emacs.c (Fdump_emacs):
10897         Update comments about what can be used in syms_* etc.
10898         Call init_win32() when necessary.
10899         Fix up MS Win dialog box in kill-buffer to actually work right.
10900         [7].
10901
10902         * eval.c:
10903         * eval.c (For):
10904         * eval.c (Fand):
10905         * eval.c (Fprogn):
10906         * eval.c (Fprog1):
10907         * eval.c (Fprog2):
10908         * eval.c (FletX):
10909         * eval.c (Flet):
10910         * eval.c (condition_case_3):
10911         * eval.c (Feval):
10912         * eval.c (function_argcount):
10913         * eval.c (funcall_lambda):
10914         [1].
10915
10916         * eval.c (type_error): New.
10917         * eval.c (maybe_type_error): New.
10918         * eval.c (continuable_type_error): New.
10919         * eval.c (maybe_continuable_type_error): New.
10920         * eval.c (type_error_with_frob): New.
10921         * eval.c (maybe_type_error_with_frob): New.
10922         * eval.c (continuable_type_error_with_frob): New.
10923         * eval.c (maybe_continuable_type_error_with_frob): New.
10924         New functions for use with structured errors.
10925
10926         * event-Xt.c:
10927         * event-Xt.c (x_event_to_emacs_event):
10928         Buttons are now modifiers too.
10929
10930         * event-Xt.c (emacs_Xt_current_event_timestamp):
10931         Implement new event method.
10932         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10933
10934         * event-msw.c:
10935         * event-msw.c (ntpipe_shove_writer): [5].
10936         * event-msw.c (mswindows_enqueue_mouse_button_event):
10937         * event-msw.c (mswindows_drain_windows_queue):
10938         * event-msw.c (mswindows_wnd_proc): [7].
10939         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10940         * event-msw.c (mswindows_modifier_state):
10941         Throughout: support new button modifiers.
10942
10943         * event-msw.c (emacs_mswindows_current_event_timestamp):
10944         Implement new event method.
10945         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10946
10947         * event-stream.c:
10948         * event-stream.c (event_stream_current_event_timestamp): New.
10949         * event-stream.c (maybe_kbd_translate): New functionality.
10950         * event-stream.c (vars_of_event_stream):
10951         Document new kbd-translate-table functionality.
10952
10953         * event-stream.c (Fcurrent_event_timestamp): New.
10954         New primitive for use in fabricated events.
10955         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10956
10957         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10958
10959         * events.c:
10960         * events.c (Fmake_event):
10961         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10962         [1].
10963         [9].
10964
10965         * events.c (format_event_object): fix gcc warnings.
10966
10967         * events.c (Fevent_timestamp): Document new primitives.
10968
10969         * events.c (TIMESTAMP_HALFSPACE): New.
10970
10971         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10972         comparing timestamps correctly (half-space algorithm).
10973
10974         * events.c (Fevent_modifier_bits): Doc fix.
10975
10976         * events.c (Fevent_modifiers): Major doc addition.
10977         * events.c (event_x_y_pixel_internal): Typo fix.
10978         * events.c (syms_of_events): Declare new primitives.
10979
10980         * events.h:
10981         Update long comment for button modifiers, timestamps.
10982
10983         * events.h (struct event_stream):
10984         New current_event_timestamp method.
10985
10986         * extents.c:
10987         * extents.c (extent_in_region_p):
10988         * extents.c (decode_extent):
10989         * extents.c (Fset_extent_parent):
10990         * extents.c (decode_map_extents_flags):
10991         Fix gcc warnings.
10992         [9].
10993
10994         * extents.c (struct extent_at_arg):
10995         * extents.c (decode_extent_at_flag):
10996         * extents.c (extent_at_mapper):
10997         * extents.c (extent_at_bytind):
10998         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10999         * extents.c (Fextents_at): New primitive. [9].
11000         * extents.c (symbol_to_glyph_layout): [9].
11001         Support new primitive `extents-at'.
11002
11003
11004         * extents.c (get_text_property_bytind):
11005         extent_at_bytind has another arg.
11006         [9].
11007
11008         * extents.c (syms_of_extents): New primitive.
11009
11010         * file-coding.c (Fmake_coding_system): [1].
11011         * file-coding.c (subsidiary_coding_system): fix gcc warning
11012         * file-coding.c (syms_of_file_coding): [2].
11013
11014         * fileio.c (Fexpand_file_name):
11015         * fileio.c (Fsysnetunam):
11016         * fileio.c (Ffile_exists_p):
11017         * fileio.c (Ffile_executable_p):
11018         * fileio.c (Fverify_visited_file_modtime):
11019         Clean up GCPROing.
11020
11021         * fileio.c (syms_of_fileio): [2].
11022
11023         * filelock.c (lock_file_1):
11024         * filelock.c (current_lock_owner):
11025         * filelock.c (lock_if_free):
11026         * filelock.c (lock_file):
11027         * filelock.c (unlock_file):
11028         Clean up GCPROing.
11029
11030         * fns.c (concat): Fix gcc warning.
11031
11032         * fns.c (Fmember):
11033         * fns.c (Fold_member):
11034         * fns.c (Fmemq):
11035         * fns.c (Fold_memq):
11036         * fns.c (memq_no_quit):
11037         * fns.c (Fassoc):
11038         * fns.c (Fold_assoc):
11039         * fns.c (Fassq):
11040         * fns.c (Fold_assq):
11041         * fns.c (assq_no_quit):
11042         * fns.c (Frassoc):
11043         * fns.c (Fold_rassoc):
11044         * fns.c (Frassq):
11045         * fns.c (Fold_rassq):
11046         * fns.c (rassq_no_quit):
11047         * fns.c (Fdelete):
11048         * fns.c (Fold_delete):
11049         * fns.c (Fdelq):
11050         * fns.c (Fold_delq):
11051         * fns.c (delq_no_quit):
11052         * fns.c (Fremassoc):
11053         * fns.c (Fremassq):
11054         * fns.c (remassq_no_quit):
11055         * fns.c (Fremrassoc):
11056         * fns.c (Fremrassq):
11057         * fns.c (remrassq_no_quit):
11058         * fns.c (Freverse):
11059         * fns.c (mapcar1):
11060         [1].
11061
11062         * frame-msw.c (mswindows_init_frame_1):
11063         * frame-msw.c (mswindows_delete_frame):
11064         Register popups with dialog code so keyboard traversing works.
11065
11066         * frame-tty.c (tty_raise_frame_no_select): [1].
11067
11068         * frame-x.c:
11069         * frame-x.c (x_set_frame_text_value):
11070         * frame-x.c (x_set_frame_properties):
11071         * frame-x.c (x_create_widgets):
11072         [7].
11073
11074         * frame.c:
11075         * frame.c (Fmouse_pixel_position): Minor doc fixes.
11076
11077         * frame.h (wrap_frame): New.
11078         Macro like wrap_device.
11079
11080         * general.c:
11081         * general.c (SYMBOL):
11082         * general.c (syms_of_general):
11083         Major reorg.  This is now just a wrapper and symbols themselves
11084         are listed in general-slots.h.
11085
11086         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
11087         * glyphs-msw.c (mswindows_resource_instantiate): [5].
11088
11089         * glyphs-msw.c (mswindows_native_layout_instantiate):
11090         Add DS_CONTROL so keyboard traversal will work.
11091
11092         * glyphs-widget.c:
11093         * glyphs-widget.c (syms_of_glyphs_widget):
11094         Move some symbols to general-slots.h.
11095
11096         * glyphs-x.c:
11097         * glyphs-x.c (xbm_instantiate_1):
11098         * glyphs-x.c (x_xbm_instantiate):
11099         * glyphs-x.c (x_xface_instantiate):
11100         * glyphs-x.c (autodetect_instantiate):
11101         * glyphs-x.c (cursor_font_instantiate):
11102         * glyphs-x.c (x_update_widget):
11103         * glyphs-x.c (x_widget_instantiate):
11104         * glyphs.c (bitmap_to_lisp_data):
11105         * glyphs.c (pixmap_to_lisp_data):
11106         [7].
11107
11108         * glyphs.c (syms_of_glyphs):
11109         [2].
11110
11111         * gui-x.c:
11112         * gui-x.c (print_widget_value):
11113         * gui-x.c (menu_separator_style_and_to_external):
11114         * gui-x.c (add_accel_and_to_external):
11115         * gui-x.c (button_item_to_widget_value):
11116         * gui-x.c (gui_items_to_widget_values_1):
11117         * gui-x.c (gui_items_to_widget_values):
11118         * gui-x.c (syms_of_gui_x):
11119         * gui-x.c (vars_of_gui_x):
11120         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
11121         [9].
11122
11123         * gui-x.h:
11124         Muleize, prototype changes matching gui-x.c.
11125
11126         * gui.c:
11127         * gui.c (separator_string_p):
11128         * gui.c (gui_item_add_keyval_pair):
11129         * gui.c (make_gui_item_from_keywords_internal):
11130         * gui.c (signal_too_long_error):
11131         * gui.c (parse_gui_item_tree_item):
11132         * gui.c (syms_of_gui):
11133         * gui.c (vars_of_gui):
11134         * gui.h:
11135         menu-no-selection-hook moved here (used by MSWin).
11136         Move some symbols to general-slots.h.
11137         [6].
11138         [9].
11139
11140         * insdel.c (get_buffer_pos_char):
11141         * insdel.c (get_buffer_range_char):
11142         Add GC comments.
11143
11144         * keymap.c (keymap_lookup_directly):
11145         * keymap.c (keymap_store):
11146         * keymap.c (ensure_meta_prefix_char_keymapp):
11147         * keymap.c (describe_map):
11148         * keymap.h:
11149         Support new button modifiers.
11150
11151         * lisp-disunion.h (wrap_object):
11152         * lisp-disunion.h (XSETOBJ):
11153         Rename make_obj to wrap_object.
11154
11155         * lisp-union.h:
11156         * lisp-union.h (make_int):
11157         * lisp-union.h (make_char):
11158         Support wrap_object.
11159
11160         * lisp.h:
11161         * lisp.h (LIST_LOOP):
11162         * lisp.h (EXTERNAL_LIST_LOOP):
11163         * lisp.h (LIST_LOOP_2):
11164         * lisp.h (EXTERNAL_LIST_LOOP_1):
11165         * lisp.h (EXTERNAL_LIST_LOOP_2):
11166         * lisp.h (EXTERNAL_LIST_LOOP_3):
11167         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
11168         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11169         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
11170         * lisp.h (EXTERNAL_ALIST_LOOP_5):
11171         * lisp.h (EXTERNAL_ALIST_LOOP_6):
11172         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
11173         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
11174         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
11175         * lisp.h (struct Lisp_Symbol):
11176         * lisp.h (maybe_continuable_error_with_frob):
11177         Fix up section comments.
11178         Add new types for char to indicate usage.
11179         Delete symbols auto-generated from general-slots.h.
11180         Add prototypes for structured error functions.
11181         Add long comments describing looping macros and change interface
11182         so that lvalues are automatically declared.
11183         Add NO_DECLARE macro in case callers want to declare lvalues
11184         themselves.
11185
11186         * lread.c (read_syntax_error):
11187         * lread.c (continuable_read_syntax_error):
11188         * lread.c (read_structure):
11189         * lread.c (sequence_reader):
11190         * lread.c (read_list_conser):
11191         * lread.c (read_compiled_function):
11192         Rename syntax_error and continuable_syntax_error to avoid clash
11193         with same-named structured error functions.
11194
11195         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11196         * menubar-msw.c (populate_menu_add_item):
11197         * menubar-msw.c (populate_or_checksum_helper):
11198         [5].
11199         [9].
11200
11201         * menubar-x.c:
11202         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11203         Mule-ize whole file.
11204
11205         * menubar.c (Fnormalize_menu_item_name): Add optimization.
11206
11207         * mule-charset.c (Fmake_charset):
11208         * mule-wnnfns.c (Fwnn_set_param):
11209         [1].
11210
11211         * ntproc.c (create_child):
11212         * ntproc.c (Fwin32_set_current_locale):
11213         Add comments portending doom.
11214
11215         * objects-msw.c:
11216         * objects-msw.c (old_font_enum_callback_2):
11217         * objects-msw.c (font_enum_callback_1):
11218         * objects-msw.c (mswindows_enumerate_fonts):
11219         [5].
11220
11221         * objects-x.c:
11222         * objects-x.c (allocate_nearest_color):
11223         * objects-x.c (x_parse_nearest_color):
11224         * objects-x.c (x_initialize_color_instance):
11225         * objects-x.c (x_print_color_instance):
11226         * objects-x.c (x_finalize_color_instance):
11227         * objects-x.c (x_valid_color_name_p):
11228         * objects-x.c (x_initialize_font_instance):
11229         * objects-x.c (x_print_font_instance):
11230         * objects-x.c (valid_x_font_name_p):
11231         * objects-x.c (truename_via_FONT_prop):
11232         * objects-x.c (truename_via_random_props):
11233         * objects-x.c (truename_via_XListFonts):
11234         * objects-x.c (x_font_truename):
11235         * objects-x.c (x_font_instance_truename):
11236         * objects-x.c (x_font_instance_properties):
11237         * objects-x.c (x_list_fonts):
11238         * objects-x.c (x_find_charset_font):
11239         Mule-ize entire file.
11240         [7].
11241
11242         * objects-x.h:
11243         Mule-verify.
11244
11245         * print.c:
11246         * print.c (std_handle_out_external):
11247         * print.c (debug_print_no_newline):
11248         * print.c (syms_of_print):
11249         Output to all debugger kinds in debug-print.
11250         Fix console-output code under MSWin to actually work.
11251
11252         * process-nt.c (send_signal):
11253         * process-nt.c (nt_create_process):
11254         Use newer Unicode macros.
11255
11256         * process-unix.c (unix_create_process):
11257         * process-unix.c (unix_canonicalize_host_name):
11258         * process-unix.c (unix_open_network_stream):
11259         [7].
11260
11261         * scrollbar-x.c:
11262         Mule-verify.
11263
11264         * search.c (syms_of_search):
11265         [2].
11266
11267         * select-msw.c (mswindows_destroy_selection):
11268         Use LIST_LOOP_2.
11269
11270         * select-x.c (symbol_to_x_atom):
11271         [7].
11272
11273         * select.c (syms_of_select):
11274         [2].
11275
11276         * sound.c (Fplay_sound_file):
11277         [7].
11278
11279         * specifier.c:
11280         * specifier.c (decode_specifier_type):
11281         * specifier.c (Fvalid_specifier_locale_type_p):
11282         * specifier.c (check_valid_locale_or_locale_type):
11283         * specifier.c (decode_locale):
11284         * specifier.c (decode_locale_type):
11285         * specifier.c (decode_locale_list):
11286         * specifier.c (check_valid_domain):
11287         * specifier.c (decode_specifier_tag_set):
11288         * specifier.c (Fcanonicalize_tag_set):
11289         * specifier.c (Fdefine_specifier_tag):
11290         * specifier.c (Fspecifier_tag_predicate):
11291         * specifier.c (check_valid_inst_list):
11292         * specifier.c (check_valid_spec_list):
11293         * specifier.c (decode_how_to_add_specification):
11294         * specifier.c (check_modifiable_specifier):
11295         * specifier.c (specifier_add_spec):
11296         * specifier.c (boolean_validate):
11297         * specifier.c (display_table_validate):
11298         [9].
11299
11300         * specifier.c (syms_of_specifier):
11301         Move some symbols to general-slots.h.
11302         [2].
11303
11304         * symbols.c:
11305         * symbols.c (Fmapatoms):
11306         * symbols.c (Fapropos_internal):
11307         Add GCPROs.
11308
11309         * symbols.c (set_default_buffer_slot_variable):
11310         * symbols.c (set_default_console_slot_variable):
11311         [1].
11312
11313         * symbols.c (defsymbol_massage_name_1):
11314         * symbols.c (defkeyword_massage_name):
11315         * symbols.c (deferror_1):
11316         * symbols.c (deferror):
11317         * symbols.c (deferror_massage_name_and_message):
11318         * symeval.h:
11319         * symeval.h (DEFSYMBOL):
11320         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
11321
11322         * symbols.c (syms_of_symbols):
11323         [2].
11324
11325         * symsinit.h:
11326         * symsinit.h (init_win32): New.
11327         Also new is syms_of_dialog_mswindows.
11328
11329         * syswindows.h:
11330         Add new Unicode macros, missing Cygwin wide-char functions,
11331         convenience conversion macros for Qmswindows_tstr, macros for
11332         encapsulating required MSWin <-> Cygwin filename conversions,
11333         prototype for dynamically-extracted (not in NT 3.51) functions.
11334
11335         * toolbar-x.c:
11336         Mule-verify.
11337
11338         * tooltalk.c (Fadd_tooltalk_message_arg):
11339         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11340         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11341         [7].
11342
11343         * tooltalk.c (syms_of_tooltalk):
11344         [2].
11345
11346         * unexnt.c:
11347         * unexnt.c (unexec):
11348         Fix up headers, declaration of unexec() to be more standard.
11349
11350 2000-07-20  Martin Buchholz  <martin@xemacs.org>
11351
11352         * offix.h: Revert change to guard macros - they're used in offix.c!
11353
11354 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11355
11356         * lisp.h: Defsubred Fdelete.
11357
11358         * console-msw.h:  (msprinter_default_printer): Added.
11359
11360         * console-msw.c (msprinter_canonicalize_console_connection):
11361         (msprinter_canonicalize_device_connection): Added.
11362
11363         * device-msw.c (msprinter_default_printer):
11364         (Fmswingows_get_default_printer):
11365         (signal_enum_priner_error):
11366         (Fmswingows_printer_list): Added.
11367
11368 2000-07-19  Martin Buchholz <martin@xemacs.org>
11369
11370         * XEmacs 21.2.35 is released.
11371
11372 2000-07-19  Martin Buchholz  <martin@xemacs.org>
11373
11374         * select-x.c (x_handle_selection_request):
11375         Text selected in xemacs and pasted into xterm failed to appear.
11376         Spelling fixes and cosmetic changes.
11377
11378 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11379
11380         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
11381         XEmacs frame (fix for doubling chars in dialog boxes).
11382
11383 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11384
11385         * select.c (select_convert_in, select_convert_out):
11386         Don't call intern() every time.
11387
11388         * select.c (Qselect_convert_in, Qselect_convert_out): New.
11389         * select.c (vars_of_select): Initialise them.
11390
11391 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11392
11393         * select.c (selection-coercible-types): New.
11394
11395         * select.c (own-selection-internal):
11396         * select.c (get-selection-internal):
11397         MULE bug fix - these should default to COMPOUND_TEXT and not
11398         STRING for MULE. I think.
11399
11400         * select.c (select_convert_out): Use selection-coercible-types
11401         to find types that we can attempt to perform coercions on.
11402
11403 2000-07-18  Martin Buchholz  <martin@xemacs.org>
11404
11405         * mule-wnnfns.c:
11406         * mule-canna.c:
11407         Add coding: cookie to identify encoding.
11408
11409         * mule-canna.c (CANNA_mode_keys): make static.
11410         Use proper prototypes, even for functions of no arguments.
11411         Remove external prototype for Fding().
11412
11413         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
11414
11415         * select.c (syms_of_select): Add missing DEFSUBR.
11416
11417 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11418
11419         * select.c (get_selection_internal, own_selection_internal):
11420         Make the type default to STRING, rather than placing a nil type
11421         into Vselection_alist.
11422
11423 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11424
11425         * gpmevent.c (tty_selection_exists_p):
11426         * gpmevent.c (tty_own_selection):
11427         Updated parameter lists.
11428
11429 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
11430
11431         * select.h (selection-alist): Removed declaration.
11432
11433         * select.h (get_local_selection):
11434         * select.c (get_local_selection):
11435         Made static.
11436
11437         * select.h (convert_selection): Removed declaration.
11438         * select.c (convert_selection): Removed.
11439         This function belongs in Lisp.
11440
11441         * select.h (select_convert_in): Declare.
11442         * select.h (select_convert_out): Declare.
11443         * select.c (select_convert_in): New.
11444         * select.c (select_convert_out): New.
11445         New conversion functions for other files to call.
11446
11447         * select.h (select_notify_buffer_kill): Declare.
11448         * select.c (select_notify_buffer_kill): New.
11449         New functions that get called from kill-buffer.
11450
11451         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
11452         X-specific lisp code.
11453
11454         * select.h: Declare some of the lisp-visible functions for
11455         external use.
11456
11457         * select.c (clean_local_selection_data): Removed. This was
11458         a disgusting function, and previously should have been in
11459         select-x.c in any case. The functionality is now provided
11460         in select-convert-from-integer (select.el).
11461
11462         * select.c (available-selection-types): Fixed stupidity where
11463         INTEGER and ATOM got added twice. Also add STRING when we see an
11464         extent.
11465
11466         * select.c (get-selection-internal): Removed symbol stripping. No
11467         longer causes conversion when data comes from the internal cache.
11468
11469         * select.c (syms_of_select): Added new functions.
11470
11471         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
11472         error checking - previously this called abort!
11473
11474         * select-x.c (x_own_selection): Changed comment.
11475
11476         * select-x.c (x_handle_selection_request): Use select_convert_out.
11477         Don't mess with selection-alist; it's an internal variable of select.c.
11478
11479         * select-x.c (x_get_foreign_selection): Use select_convert_in.
11480
11481         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
11482         rather than messing with selection-alist.
11483
11484         * select-msw.c (mswindows_get_foreign_selection):
11485         Use TO_INTERNAL_FORMAT rather than hacking.
11486
11487 2000-07-14  Martin Buchholz  <martin@xemacs.org>
11488
11489         * process-unix.c (unix_open_multicast_group):
11490         (unix_open_multicast_group): Remove useless casts.
11491
11492 2000-07-13  Martin Buchholz  <martin@xemacs.org>
11493
11494         * sound.c (Fplay_sound): Fix `unused variable' warning.
11495
11496         * emacs.c (main): Use correct type for _environ on SCO5.
11497
11498 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
11499
11500         * console.h (own_selection_method):
11501         * console.h (selection_exists_p_method):
11502         * console.h (available_selection_types_method): New.
11503         * console.h (register_selection_data_type_method): New.
11504         * console.h (selection_data_type_name): New.
11505
11506         * console-msw.h (mswindows_destroy_selection): Declare it.  New
11507         function & alist to track GlobalAlloc()'d handles that need
11508         releasing when the clipboard data gets replaced or emptied.
11509
11510         * event-msw.c (mswindows_wnd_proc): Call it.
11511
11512         * lisp.h, general.c (Qappend): New symbol representing a
11513         `how-to-add' mode.
11514
11515         * select.c (own-selection-internal):
11516         * select.c (selection-exists-p):
11517         * select.c (available-selection-types): New.
11518         * select.c (register-selection-data-type): New.
11519         * select.c (selection-data-type-name): New.  New functions to deal
11520         with device-specific selection data formats.
11521         * select.c (selection-converter-out-alist): Renamed.
11522         * select.c (selection-converter-in-alist): New.
11523         * select.c (selection-appender-alist): New.  Added new alists.
11524         * select.c (syms_of_select, vars_of_select): Added new symbols &
11525         variables.
11526         * select.c (get_local_selection): Split.
11527         * select.c: Removed spurious type checking - selections may now be
11528         of any type, not just strings.
11529         * select.c (own-selection-internal):
11530
11531         * select.h, select.c (convert_selection): New. Created
11532         convert_selection() function based on get_local_selection().
11533         * select.h, select.c (QCF_*): New symbols representing mswindows
11534         clipboard formats.
11535         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11536         symbols representing `how-to-add' modes.
11537
11538         * select-msw.c (x_sym_p): New.
11539         * select-msw.c (symbol_to_ms_cf): New.
11540         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11541         symbols & clipboard formats. Can also handle string names.
11542         * select-msw.c (mswindows_own_selection):
11543         * select-msw.c (mswindows_selection_exists_p):
11544         Added `data-type' parameter. Use it.
11545         * select-msw.c (mswindows_available_selection_types): New.
11546         * select-msw.c (mswindows_register_selection_data_type): New.
11547         * select-msw.c (mswindows_selection_data_type_name): New.
11548         * select-msw.c (mswindows_own_selection):
11549         * select-msw.c (mswindows_get_foreign_selection):
11550         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11551         * select-msw.c (console_create_select_mswindows): Added new methods.
11552         * select-msw.c (mswindows_destroy_selection): New.
11553         * select-msw.c (Vhandle_alist): New list.
11554         * select-msw.c (mswindows_own_selection):
11555
11556         * select-x.c (x_own_selection):
11557         * select-x.c (x_selection_exists_p):
11558         * select-x.c: Added some comments about maybe using new
11559         functionality.
11560         * select-x.c (x_own_selection):
11561
11562         * specifier.c: Remove definition of Qappend (now in general.c)
11563         * specifier.c (syms_of_specifier): Remove Qappend.
11564
11565 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11566
11567         * config.h.in: Add socklen_t.
11568
11569         * s/decosf4-0.h: No special compiler flags needed or desired.
11570         In particular, undefine _BSD for DEC OSF 4.0.
11571
11572 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11573
11574         * redisplay-msw.c (msprinter_frame_output_end): Added.
11575         (console_type_create_redisplay_mswindows): Referred the above.
11576
11577         * frame.c (setup_frame_without_minibuffer): Do not create a
11578         default minibuffer frame on a printer device.
11579
11580         * frame-msw.c (apply_dc_geometry): Added.
11581         (msprinter_start_page):
11582         (msprinter_init_frame_3):
11583         (msprinter_eject_page): Use it.
11584
11585         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11586         and removed residual duplex and orientation properties.
11587
11588 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11589
11590         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11591
11592         * unexalpha.c: Remove system prototypes from C sources!
11593
11594 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11595
11596         * eval.c: Remove references to M-x edit-options in DEFUNs for
11597         `defvar' and `defconst'.
11598
11599 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11600
11601         * config.h.in: Remove SMART_INCLUDE hackery.
11602
11603         PostgreSQL hacking:
11604         * config.h.in: Don't use SMART_INCLUDE.
11605
11606         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11607         * inline.c: Simply #include "postgresql.h"
11608         * postgresql.c:
11609         - Don't use SMART_INCLUDE
11610         - Use simply "const".
11611         - Use standard doc string conventions.
11612         - Use correct type for result of PQstatus.
11613
11614 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11615
11616         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11617
11618         C++ compilation changes.
11619         * config.h.in (EXTERN_C): Define.
11620         * config.h.in (not): This is also a C++ keyword.
11621         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11622         * cm.c: Use EXTERN_C.
11623         * redisplay-tty.c: Use EXTERN_C.
11624         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11625
11626 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11627
11628         * general.c: Remove duplicate definition for Qfunction.
11629
11630 2000-07-08  Ben Wing  <ben@xemacs.org>
11631
11632         * device-msw.c (msprinter_init_device):
11633         * device-msw.c (sync_printer_with_devmode):
11634         * device-msw.c (handle_devmode_changes):
11635         * device-msw.c (print_dialog_worker):
11636         * device-msw.c (Fmsprinter_apply_settings):
11637         * device-msw.c (hash_devmode):
11638         * device-msw.c (Fmsprinter_settings_despecialize):
11639         use Qmswindows_tstr, not Qctext.
11640
11641         * vm-limit.c (check_memory_limits):
11642         avoid infinite loop printing warning messages.
11643
11644 2000-07-05  Craig Lanning  <lanning@scra.org>
11645
11646         * Makefile.in.in: Add support for including the Windows resources
11647         when building with the cygwin and mingw targets.
11648
11649         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11650         not set or not correct.
11651         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11652         (init_initial_directory): Don't try to use $PWD on the
11653         WIN32_NATIVE target.
11654
11655         * s\cygwin32.h:
11656         [[Add -mwindows to eliminate console window.]] not required --ben
11657         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11658         (MAIL_USE_POP): removed; now handled by configure.
11659
11660         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11661         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11662         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11663         (MAIL_USE_POP): removed; now handled by configure.
11664         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11665         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11666         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11667         constant string.
11668         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11669         up from <winsock.h> via systime.h.
11670         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11671         (getpagesize): from Dan Holmsand, added.
11672         Added #endif which was left dangling by Ben's mega patch; added
11673         comment to help prevent this in the future.
11674
11675         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11676
11677 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11678
11679         * console-msw.h (struct mswindows_device): Removed unnecessary
11680         cached device geometry values.
11681         Added update_tick and an accessor macro.
11682         (Lisp_Devmode): Added lrecord declaration.
11683         (struct msprinter_device): Contain devmode as a Lisp object.
11684         Added mswindows_get_selected_frame_hwnd();
11685
11686         * console.h (struct console_methods): Indentation nitpicking.
11687
11688         * device-msw.c (mswindows_init_device): Do not initialize geometry
11689         cache. Initialize update tick.
11690         (mswindows_device_system_metrics): Ask the device for its geometry.
11691         (global_free_2_maybe):
11692         (devmode_to_hglobal):
11693         (handle_printer_changes):
11694         (ensure_not_printing):
11695         (print_dialog_worker):
11696         (Fmsprinter_print_setup_dialog):
11697         (Fmsprinter_print_dialog):
11698         (plist_get_margin):
11699         (plist_set_margin):
11700         (Fmsprinter_page_setup_dialog): Added functions.
11701         (sync_printer_with_devmode):
11702         (handle_devmode_changes):
11703         (Fmsprinter_get_settings):
11704         (Fmsprinter_select_settings):
11705         (Fmsprinter_apply_settings):
11706         (allocate_devmode):
11707         (Fmsprinter_settings_copy):
11708         (Fmsprinter_settings_despecialize):
11709         (print_devmode):
11710         (finalize_devmode):
11711         (equal_devmode):
11712         (hash_devmode): Added functions
11713         (syms_of_device_mswindows): Init devmode lrecord class.
11714
11715         * device.h: Added an exfun for find-device.
11716
11717         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11718         geometry; although, recreate the device compatible DC.
11719
11720         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11721         (msprinter_init_frame_3):
11722         (msprinter_frame_property):
11723         (msprinter_internal_frame_property_p):
11724         (msprinter_frame_properties):
11725         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11726         print job properties (will move to device settings).
11727
11728         * lisp.h: Added symbols.
11729
11730         * general.c (syms_of_general): Declared them.
11731
11732         * hash.c (string_hash): Added.
11733
11734         * lrecord.h (lrecord_type): Added devmode lrecord type.
11735
11736 2000-07-02  Mike Sperber <mike@xemacs.org>
11737
11738         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11739         FreeBSD 4.0.
11740
11741 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11742
11743         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11744         integer.
11745
11746 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11747
11748         * data.c (Fstring_to_number): Don't recognize floating point if
11749         base is not 10.
11750
11751 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11752
11753         * glyphs-widget.c (tab_control_query_geometry):
11754         (widget_query_geometry):
11755         (button_query_geometry):
11756         * glyphs.c (text_query_geometry):
11757         Enforce type correctness.
11758
11759 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11760
11761         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11762         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11763
11764 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11765
11766         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11767         conflicts with gcc's fixincluded version of FOO.h.
11768
11769         * glyphs.h (image_instance_geometry): Remove trailing `,'
11770
11771 2000-06-08  Mike Alexander  <mta@arbortext.com>
11772
11773         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11774         (shove_thread): Don't write the same output twice
11775         (make_ntpipe_output_stream): Increase priority of shove thread
11776         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11777         chance to run
11778         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11779         it.
11780
11781 2000-06-12  Ben Wing  <ben@xemacs.org>
11782
11783         * s\mingw32.h (sigset):
11784         * s\windowsnt.h (sigset):
11785         rename msw_ to mswindows_ for consistency with general convention.
11786
11787 2000-06-12  Ben Wing  <ben@xemacs.org>
11788
11789         * console-msw.c:
11790         * console-msw.c (mswindows_get_console_hwnd):
11791         * console-msw.c (mswindows_ensure_console_allocated):
11792         * console-msw.c (mswindows_hide_console):
11793         * console-msw.c (mswindows_show_console):
11794         * console-msw.c (mswindows_ensure_console_buffered):
11795         * console-msw.c (mswindows_output_console_string):
11796         * console-msw.c (mswindows_windows9x_p):
11797         * console-msw.h:
11798         * device-msw.c (mswindows_get_workspace_coords):
11799         * device-msw.c (mswindows_device_system_metrics):
11800         * dialog-msw.c (mswindows_popup_dialog_box):
11801         * event-msw.c (mswindows_wnd_proc):
11802         * frame-msw.c (mswindows_size_frame_internal):
11803         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11804         * menubar-msw.c (displayable_menu_item):
11805         * menubar-msw.c (mswindows_char_is_accelerator):
11806         * nt.c:
11807         * nt.c (mswindows_sigset):
11808         * nt.c (mswindows_sigrelse):
11809         * nt.c (mswindows_sigpause):
11810         * nt.c (mswindows_raise):
11811         * nt.c (timer_proc):
11812         * ntproc.c:
11813         * ntproc.c (find_child_console):
11814         * ntproc.c (sys_kill):
11815         * print.c:
11816         * print.c (std_handle_out_external):
11817         * process-nt.c (find_child_console):
11818         * process-nt.c (send_signal_the_95_way):
11819         * process-nt.c (ensure_console_window_exists):
11820         * process-nt.c (nt_create_process):
11821         * syssignal.h:
11822         rename msw_ to mswindows_ for consistency with general convention.
11823
11824         * emacs.c:
11825         * dumper.c:
11826         include nt.h, not syswindows.h.
11827
11828         * nt.c (mswindows_fstat):
11829         * nt.c (mswindows_stat):
11830         prefix mswindows_ instead of attempting to directly override the
11831         library functions.  fix declarations.
11832
11833         * nt.h:
11834         include syswindows.h.  move some sysdep.h stuff here.
11835
11836         * ntheap.h:
11837         include syswindows.h, not <windows.h>.
11838
11839         * ntplay.c:
11840         clean up headers.
11841
11842         * sysdep.c:
11843         clean up headers.
11844
11845         * sysdep.c (sys_fstat):
11846         * sysdep.c (sys_stat):
11847         call mswindows versions when appropriate.
11848
11849         * sysdep.h:
11850         move mswin decls to nt.h.
11851
11852         * syswindows.h:
11853         add long comment describing appropriate use of the various windows
11854         headers.
11855
11856 2000-06-11  Ben Wing  <ben@xemacs.org>
11857
11858         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11859
11860 2000-06-10  Ben Wing  <ben@xemacs.org>
11861
11862         * Makefile.in.in (release):
11863         Correction to make sure xemacs.exe always dumped when correct.
11864
11865         * alloca.c:
11866         * balloon_help.c:
11867         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11868
11869         * buffer.c (set_buffer_internal):
11870         [[[[2]]]]: Remove HAVE_FEP code.
11871
11872         * buffer.c (init_initial_directory):
11873         [3].
11874
11875         * bytecode.c:
11876         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11877         individual files.
11878
11879         * callproc.c:
11880         * callproc.c (call_process_cleanup):
11881         * callproc.c (Fold_call_process_internal):
11882         * callproc.c (child_setup):
11883         * callproc.c (getenv_internal):
11884         * callproc.c (init_callproc):
11885         * callproc.c (vars_of_callproc):
11886         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11887         __CYGWIN32__ -> CYGWIN.
11888         DOS_NT -> WIN32_NATIVE.
11889         Remove MSDOS support/references, converting to WIN32_NATIVE
11890           where correct.
11891         __MINGW32__ -> MINGW.
11892         Fix windows.h includes.
11893         Remove bogus HAVE_NTGUI.
11894
11895         * config.h.in:
11896         [2].
11897
11898         * console-msw.c:
11899         mswindows_message_outputted added for use in allowing startup
11900         errors on the console to be seen.
11901
11902         * console-msw.c (msw_ensure_console_allocated):
11903         * console-msw.c (msw_output_console_string):
11904         * console-msw.c (DHEADER):
11905         * console-msw.c (DOPAQUE_DATA):
11906         * console-msw.c (DEVENT):
11907         * console-msw.c (DCONS):
11908         * console-msw.c (DCONSCDR):
11909         * console-msw.c (DSTRING):
11910         * console-msw.c (DVECTOR):
11911         * console-msw.c (DSYMBOL):
11912         * console-msw.c (DSYMNAME):
11913         Fix warnings.
11914
11915         * console-stream.c (stream_init_console):
11916         Fix text/binary problems.
11917
11918         * device-msw.c:
11919         * device-msw.c (mswindows_finish_init_device):
11920         * device-msw.c (mswindows_delete_device):
11921         [1].
11922
11923         * device.c (handle_asynch_device_change):
11924         [3].
11925
11926         * dgif_lib.c:
11927         * dgif_lib.c (DGifOpenFileName):
11928         * dgif_lib.c (DGifOpenFileHandle):
11929         * dgif_lib.c (DGifGetLine):
11930         * dgif_lib.c (DGifGetPixel):
11931         Added config.h/lisp.h, fix up includes.
11932         [1].
11933
11934         * dired-msw.c:
11935         [4].
11936
11937         * dired.c:
11938         * dired.c (file_name_completion):
11939         * dired.c (Ffile_attributes):
11940         * dired.c (syms_of_dired):
11941         [1].
11942
11943         * dumper.c:
11944         * dumper.c (pdump_file_unmap):
11945         * dumper.c (pdump_load):
11946         [1].
11947
11948         * editfns.c:
11949         * editfns.c (Ftemp_directory):
11950         * editfns.c (user_login_name):
11951         * editfns.c (Fuser_real_login_name):
11952         * editfns.c (get_home_directory):
11953         [1].
11954
11955         * elhash.c (finish_marking_weak_hash_tables):
11956         [[[[5]]]]: Fix GCC warnings.
11957
11958         * emacs.c:
11959         * emacs.c (mswindows_handle_hardware_exceptions):
11960         * emacs.c (make_arg_list_1):
11961         * emacs.c (main_1):
11962         * emacs.c (Fkill_emacs):
11963         * emacs.c (Fdump_emacs):
11964         [1].
11965         Fix problems with nested crashes, add long comment.
11966
11967         * event-Xt.c (init_event_Xt_late):
11968         [1].
11969
11970         * event-msw.c:
11971         * event-msw.c (mswindows_dde_callback):
11972         * event-msw.c (mswindows_handle_sticky_modifiers):
11973         * event-msw.c (mswindows_wnd_proc):
11974         [1].
11975         [5].
11976
11977         * events.c (character_to_event):
11978         [1].
11979
11980         * fileio.c:
11981         * fileio.c (Ffile_name_directory):
11982         * fileio.c (Ffile_name_nondirectory):
11983         * fileio.c (directory_file_name):
11984         * fileio.c (Fexpand_file_name):
11985         * fileio.c (Fsubstitute_in_file_name):
11986         * fileio.c (Ffile_name_absolute_p):
11987         * fileio.c (check_executable):
11988         * fileio.c (Ffile_readable_p):
11989         * fileio.c (Ffile_accessible_directory_p):
11990         * fileio.c (Ffile_modes):
11991         * fileio.c (Funix_sync):
11992         * fileio.c (vars_of_fileio):
11993         [1]. [4].
11994
11995         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11996
11997         Expand getdefdir defn.
11998         Fix bogus rename() comment.
11999
12000         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
12001         to use standard XEmacs include files, e.g. sysfile.h, rather
12002         than system-specific includes.
12003
12004         * fns.c:
12005         * fns.c (Fsubseq):
12006         [5]. [6].
12007
12008         * frame.c (vars_of_frame):
12009         [1].
12010
12011         * getloadavg.c:
12012         * getloadavg.c (getloadavg):
12013         [1]. [6].
12014         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
12015         (We don't use it elsewhere in the code; just add a comment.)
12016
12017         * gif_io.c:
12018         [6].
12019         Add config.h.
12020
12021         * glyphs-msw.c:
12022         * glyphs-msw.c (mswindows_resource_instantiate):
12023         [1].
12024
12025         * glyphs-x.c (x_native_layout_instantiate):
12026         [5].
12027
12028         * gui-msw.c (Fmswindows_shell_execute):
12029         [1].
12030
12031         * insdel.c:
12032         [4].
12033
12034         * lisp.h:
12035         [4]. [5].
12036
12037         * lread.c (locate_file_in_directory_mapper):
12038         [1].
12039
12040         * lstream.c:
12041         [4].
12042
12043         * mem-limits.h:
12044         * mem-limits.h (get_lim_data):
12045         [1].
12046
12047         * menubar-msw.c:
12048         [4].
12049
12050         * ndir.h:
12051         [1].
12052
12053         * nt.c:
12054         * nt.c (getwd):
12055         * nt.c (closedir):
12056         * nt.c (rva_to_section):
12057         * nt.c (mswindows_executable_type):
12058         [1]. [6].
12059         Fix closedir() defn.
12060
12061         * nt.h:
12062         [[[[8]]]]: *_OK defs moved to sysfile.h.
12063
12064         * ntproc.c:
12065         [6]. [7].
12066
12067         * objects-x.c:
12068         [4].
12069
12070         * print.c:
12071         * print.c (std_handle_out_external):
12072         [1]. [4].
12073
12074         * process-nt.c:
12075         * process-nt.c (nt_create_process):
12076         [6].
12077         try to fix process quoting somewhat.
12078
12079         * process-unix.c (unix_create_process):
12080         [1].
12081
12082         * process.c:
12083         * process.c (vars_of_process):
12084         Add Vnull_device.
12085
12086         * process.h:
12087         [1].
12088
12089         * realpath.c:
12090         * realpath.c (xrealpath):
12091         [1].
12092
12093         * redisplay-tty.c (init_tty_for_redisplay):
12094         [3].
12095
12096         * redisplay.c:
12097         [4]. [6].
12098
12099         * scrollbar-msw.c:
12100         [4].
12101
12102         * sheap.c:
12103         * sheap.c (more_static_core):
12104         * sheap.c (report_sheap_usage):
12105         [5]. [6].
12106
12107         * signal.c:
12108         * signal.c (alarm_signal):
12109         [1]. [6].
12110
12111         * sound.c:
12112         [6].
12113
12114         * strftime.c:
12115         * strftime.c (zone_name):
12116         [1]. [5].
12117
12118         * symsinit.h (init_sunpro):
12119         [1].
12120
12121         * syscommctrl.h:
12122         commctrl.h not in Cygwin b20.1.
12123
12124         * sysdep.c:
12125         * sysdep.c (endif):
12126         * sysdep.c (sys_subshell):
12127         * sysdep.c (init_baud_rate):
12128         * sysdep.c (emacs_get_tty):
12129         * sysdep.c (emacs_set_tty):
12130         * sysdep.c (tty_init_sys_modes_on_device):
12131         * sysdep.c (init_system_name):
12132         * sysdep.c (sys_open):
12133         * sysdep.c (interruptible_open):
12134         * sysdep.c (sys_fopen):
12135         * sysdep.c (sys_mkdir):
12136         * sysdep.c (sys_rename):
12137         * sysdep.c (get_process_times_1):
12138         [1]. [6].
12139
12140         * sysdep.h:
12141         [1].
12142
12143         * sysdir.h:
12144         * sysdir.h (DIRENTRY_NONEMPTY):
12145         [1]. [6].
12146
12147         * sysdll.c (dll_init):
12148         * sysdll.h:
12149         [1].
12150
12151         * sysfile.h:
12152         [1]. [6]. [8].
12153         added text/binary defs.
12154
12155         * sysfloat.h:
12156         [1].
12157
12158         * sysproc.h:
12159         * sysproc.h (EDESTADDRREQ):
12160         * sysproc.h (poll_fds_for_input):
12161         [1]. [6].
12162
12163         * syspwd.h:
12164         [6].
12165
12166         * syssignal.h:
12167         [1].
12168
12169         * systime.h:
12170         [1]. [6].
12171
12172         * systty.h:
12173         [1].
12174
12175         * syswindows.h:
12176         [1].
12177         Always define WIN32_LEAN_AND_MEAN.
12178
12179         * unexcw.c (unexec):
12180         [5].
12181
12182         * unexec.c:
12183         * unexec.c (copy_text_and_data):
12184         * unexec.c (adjust_lnnoptrs):
12185         [1].
12186
12187         * unexnt.c:
12188         * unexnt.c (_start):
12189         [1].
12190
12191 2000-06-07  Ben Wing  <ben@xemacs.org>
12192
12193         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
12194         was used only as a model.  We've long since extracted any useful
12195         logic or code out of this. (I just did an exhaustive search.)
12196
12197         * s\msdos.h: Removed.
12198
12199         * s\windows95.h: Removed.
12200
12201 2000-06-10  Ben Wing  <ben@xemacs.org>
12202
12203         * s\cygwin32.h:
12204         [1]. [5].
12205         Don't use extern with fun defs.
12206
12207         * s\mingw32.h:
12208         [1]. [7].
12209         Remove nt\inc include.
12210         Remove getdisk, getdefdir. (The former is unused, the latter
12211         expanded in fileio.h.)
12212
12213         * s\windowsnt.h:
12214         * s\windowsnt.h (WIN32_NATIVE):
12215         * s\windowsnt.h (HAVE_STRCASECMP):
12216         [1]. [7].
12217         Add long comment about preprocessor changes.
12218         Remove getdisk, getdefdir. (The former is unused, the latter
12219         expanded in fileio.h.)
12220
12221 2000-06-10  Ben Wing  <ben@xemacs.org>
12222
12223         * m\arm.h:
12224         * m\delta.h:
12225         * m\intel386.h:
12226         * m\sequent.h:
12227         * m\template.h:
12228         * m\windowsnt.h:
12229         [1].
12230         Remove bogus/unused NO_SOCK_SIGIO.
12231
12232 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
12233
12234         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
12235         not an Emchar.
12236
12237 2000-06-04  Mike Sperber <mike@xemacs.org>
12238
12239         * casetab.c (set_case_table): For `set-standard-case-table',
12240         actually deposit the new case tables where the rest of XEmacs can
12241         see them.
12242
12243 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
12244
12245         * data.c (Faset): Don't cast XCHAR() to unsigned char.
12246
12247 2000-06-05  Ben Wing  <ben@xemacs.org>
12248
12249         * callproc.c (child_setup): Don't do close_load_descs() under
12250         MS Windows.  Put in a comment explaining why.
12251
12252 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
12253
12254         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
12255         Toolkit shell" which breaks `kill-compilation' on Windows NT
12256         native, retaining STDERR handling improvements.
12257
12258 2000-06-01  Andreas Jaeger  <aj@suse.de>
12259
12260         * s/s390.h: Support for S390, based on a patch by Martin
12261         Schwidefsky <schwidefsky@de.ibm.com>.
12262
12263 2000-05-30  Andy Piper  <andy@xemacs.org>
12264
12265         * window.c (allocate_window):
12266         (make_dummy_parent):
12267         (Fset_window_configuration): use new hashtable type.
12268
12269         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
12270         (struct image_instantiator_methods):
12271         (struct Lisp_Image_Instance): make instance geometry signed.
12272
12273         * glyphs.c (instantiate_image_instantiator):
12274         (image_instance_query_geometry):
12275         (image_instance_layout):
12276         (image_instance_layout):
12277         (query_string_geometry):
12278         (text_query_geometry):
12279         (image_instantiate):
12280         (image_instantiate):
12281         (cache_subwindow_instance_in_frame_maybe):
12282         (subwindow_query_geometry): make instance geometry signed.
12283
12284         * glyphs-widget.c (widget_query_geometry):
12285         (widget_layout):
12286         (button_query_geometry):
12287         (tree_view_query_geometry):
12288         (tab_control_query_geometry):
12289         (layout_query_geometry):
12290         (layout_layout):
12291         (native_layout_layout): make instance geometry signed.
12292
12293 2000-05-29  Olivier Galibert  <galibert@pobox.com>
12294
12295         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
12296         constant.
12297
12298         * general.c (syms_of_general): Add Qfull_assoc symbol.
12299
12300         * data.c (finish_marking_weak_lists): Mark full-assoc lists
12301         correctly.
12302         (decode_weak_list_type): Decode full-assoc type.
12303         (encode_weak_list_type): Encode full-assoc type.
12304         (Fmake_weak_list): Update doc string.
12305
12306 2000-05-30  Andy Piper  <andy@xemacs.org>
12307
12308         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
12309
12310         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
12311         (decode_hash_table_weakness): ditto.
12312         (Fhash_table_weakness): ditto.
12313         (Fhash_table_type): ditto.
12314         (finish_marking_weak_hash_tables): ditto.
12315         (hash_table_weakness_validate): ditto.
12316         (syms_of_elhash): ditto.
12317
12318 2000-05-28  Martin Buchholz <martin@xemacs.org>
12319
12320         * XEmacs 21.2.34 is released.
12321
12322 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12323
12324         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
12325         start cache.
12326         (updating_line_start_cache): Gone.
12327         (regenerate_window): Replace resetting of VERTICAL_CLIP by
12328         generic code to force a minimum of 1 line laid out in the
12329         CMOTION_DISP case.
12330
12331 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12332
12333         * glyphs.c (instantiate_image_instantiator): Check for initialized
12334         height & width no longer special cases IMAGE_NOTHING.
12335         (nothing_instantiate): Set height and width of instance.
12336
12337 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12338
12339         * unexelf.c (unexec): Search for ".data" section.
12340         Initialize new_data2_offset from old_data_index.
12341         Remove redundant check for ElfW.
12342
12343 2000-05-23  Andy Piper  <andy@xemacs.org>
12344
12345         * glyphs.c (get_image_instantiator_governing_domain): allow more
12346         specific domains as the governing domain rather than expecting an
12347         exact match. This fixes problems with layouts.
12348
12349 2000-05-22  Andy Piper  <andy@xemacs.org>
12350
12351         * redisplay-output.c (compare_runes): check for non-images
12352
12353         * glyphs.c (set_glyph_dirty_p): ditto.
12354         (update_glyph_cachel_data): ditto.
12355
12356         * glyphs-widget.c (layout_post_instantiate): ditto.
12357         (layout_post_instantiate): ditto.
12358
12359         * event-msw.c (mswindows_wnd_proc): warning removal.
12360
12361 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
12362
12363         * s\mingw32.h: Added #undef for CLASH_DETECTION.
12364
12365         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
12366
12367         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
12368
12369         * nt.c (rva_to_section): mingw32 needs rva_to_section.
12370         (mswindows_executable_type): mingw32 now has enough headers for
12371         this to work.
12372
12373 2000-05-20  Andy Piper  <andy@xemacs.org>
12374
12375         * console-msw.c (mswindows_output_last_error): ; -> ,
12376
12377 2000-05-12  Andy Piper  <andy@xemacs.org>
12378
12379         * console-msw.c (FROB): compare ints with ints.
12380
12381 2000-05-11  Andy Piper  <andy@xemacs.org>
12382
12383         * glyphs-x.c (x_finalize_image_instance): make minimal build
12384         happy.
12385
12386 2000-05-20  Ben Wing  <ben@xemacs.org>
12387
12388         * event-Xt.c:
12389         * event-Xt.c (vars_of_event_Xt):
12390         move modifier-keys-are-sticky to event-stream.c.
12391
12392         * event-msw.c:
12393         * event-msw.c (mswindows_enqueue_mouse_button_event):
12394         * event-msw.c (key_needs_default_processing_p):
12395         * event-msw.c (XEMSW_LCONTROL):
12396         * event-msw.c (mswindows_handle_sticky_modifiers):
12397         * event-msw.c (FROB):
12398         * event-msw.c (clear_sticky_modifiers):
12399         * event-msw.c (output_modifier_keyboard_state):
12400         * event-msw.c (output_alt_keyboard_state):
12401         * event-msw.c (mswindows_wnd_proc):
12402         * event-msw.c (mswindows_modifier_state):
12403         * event-msw.c (emacs_mswindows_handle_magic_event):
12404         implement sticky modifiers.
12405
12406         * event-stream.c:
12407         * event-stream.c (vars_of_event_stream):
12408         move modifier-keys-are-sticky here.
12409
12410         * lisp.h:
12411         add CHECK_FUNCTION.
12412
12413         * rangetab.c:
12414         implement map-range-table.
12415
12416
12417 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
12418
12419         * redisplay-tty.c (reset_tty_modes):
12420         (tty_redisplay_shutdown): Adjust argument type to
12421         tty_frame_output_end.
12422
12423 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12424
12425         * eval.c (Fbacktrace): Don't output a line with only right
12426         parenthesis.
12427
12428 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
12429
12430         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
12431         (Fpq_reset_poll): Ditto.
12432
12433 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
12434
12435         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
12436
12437 2000-05-16  Ben Wing  <ben@xemacs.org>
12438
12439         * buffer.c:
12440         * buffer.c (dfc_convert_to/from_internal_format):
12441         * buffer.c (reinit_vars_of_buffer):
12442         Fix conversion functions to allow reentrancy.
12443
12444         * console-msw.c:
12445         * console-msw.c (mswindows_output_last_error):
12446         New fun, generally useful -- output a human-readable
12447         version of GetLastError() on the console.
12448
12449         * console-msw.h:
12450         * console-msw.h (struct mswindows_frame):
12451         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
12452
12453         * console-stream.c (stream_output_begin):
12454         * console-stream.c (stream_output_end):
12455         * console-stream.c (stream_output_vertical_divider):
12456         * console-stream.c (stream_clear_region):
12457         * console-stream.c (stream_flash):
12458         * console-stream.c (console_type_create_stream):
12459         Delete blank stream methods, not needed.
12460
12461         * console.h (struct console_methods):
12462         Split begin/end methods into window and frame.
12463
12464         * event-msw.c:
12465         * event-msw.c (mswindows_handle_paint):
12466         * event-msw.c (output_alt_keyboard_state):
12467         * event-msw.c (mswindows_wnd_proc):
12468         * event-msw.c (vars_of_event_mswindows):
12469         Comment about problems with ignored-expose.
12470         Define mswindows-debug-events; not really implemented.
12471
12472         * frame-msw.c (mswindows_init_frame_1):
12473         random cleanups.
12474
12475         * glyphs-msw.c:
12476         * glyphs-msw.c (begin_defer_window_pos):
12477         * glyphs-msw.c (mswindows_unmap_subwindow):
12478         * glyphs-msw.c (mswindows_map_subwindow):
12479         * glyphs-msw.c (mswindows_resize_subwindow):
12480         Use DeferWindowPos to reduce flashing when mapping/unmapping.
12481
12482         * glyphs.c (make_image_instance_1):
12483         Fix crash.
12484
12485         * gutter.c (Fredisplay_gutter_area):
12486         Use new begin/end methods.
12487
12488         * lisp.h (Dynarr_new2):
12489         New creation fun.
12490
12491         * redisplay-msw.c:
12492         * redisplay-msw.c (mswindows_frame_output_begin):
12493         * redisplay-msw.c (mswindows_frame_output_end):
12494         * redisplay-msw.c (console_type_create_redisplay_mswindows):
12495         New begin/end methods -- handle DeferWindowPos.
12496
12497         * redisplay-output.c (redisplay_move_cursor):
12498         * redisplay-output.c (redraw_cursor_in_window):
12499         * redisplay-output.c (redisplay_update_line):
12500         * redisplay-output.c (redisplay_output_window):
12501         New begin/end methods.
12502
12503         * redisplay-tty.c:
12504         * redisplay-tty.c (tty_frame_output_begin):
12505         * redisplay-tty.c (tty_frame_output_end):
12506         * redisplay-tty.c (console_type_create_redisplay_tty):
12507         New begin/end methods.
12508
12509         * redisplay-x.c:
12510         * redisplay-x.c (x_window_output_begin):
12511         * redisplay-x.c (x_window_output_end):
12512         * redisplay-x.c (console_type_create_redisplay_x):
12513         New begin/end methods.
12514
12515         * redisplay.c (redisplay_frame):
12516         * redisplay.c (Fredisplay_echo_area):
12517         New begin/end methods.
12518         use MAYBE_DEVMETH for clear_frame; it may not exist.
12519
12520         * window.h (WINDOW_XFRAME):
12521         WINDOW_XFOO macros -- get locale and decode struct pointer.
12522
12523
12524 2000-05-12  Ben Wing  <ben@xemacs.org>
12525
12526         * emacs.c:
12527         * emacs.c (ensure_no_quitting_from_now_on):
12528         * emacs.c (fatal_error_signal):
12529         * emacs.c (mswindows_handle_hardware_exceptions):
12530         * emacs.c (main):
12531         * emacs.c (Fkill_emacs):
12532         * emacs.c (shut_down_emacs):
12533         * emacs.c (assert_failed):
12534         various improvements in fatal error handling.
12535
12536         * eval.c:
12537         move preparing_for_armageddon to emacs.c.
12538
12539         * lisp.h:
12540         declare fatal_error_in_progress.
12541
12542         * print.c:
12543         * print.c (std_handle_out_external):
12544         * print.c (std_handle_out_va):
12545         * print.c (stderr_out):
12546         * print.c (stdout_out):
12547         use console under mswin when no standard output.
12548         don't do code conversion during fatal error.
12549
12550         * scrollbar.c (Fscrollbar_page_up):
12551         * scrollbar.c (Fscrollbar_page_down):
12552         fix missing else.  reindent.
12553
12554 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12555
12556         Emergency fix.
12557
12558         * glyphs.h (GLYPH_CACHEL_DESCENT):
12559         (GLYPH_CACHEL_DESCENT):
12560         (GLYPH_CACHEL_DESCENT):
12561         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12562         used in case these are inline functions.
12563         Use more absurd values to error check.
12564
12565         include window.h for error check functions.
12566
12567 2000-05-11  Ben Wing  <ben@xemacs.org>
12568
12569         * cmdloop.c (Freally_early_error_handler):
12570         Display message box under windows; otherwise, message will disappear
12571         before it can be viewed.
12572
12573         * console-msw.c:
12574         * console-msw.c (Fmswindows_message_box):
12575         * console-msw.c (FROB):
12576         * console-msw.c (syms_of_console_mswindows):
12577         Define new fun `mswindows-message-box'.
12578         #### I will merge this into `popup-dialog-box'; just give me
12579         a bit of time.
12580
12581         * general.c:
12582         * general.c (syms_of_general):
12583         Some new symbols used in `mswindows-message-box'.
12584
12585         * glyphs.c:
12586         * glyphs.c (Fset_image_instance_property):
12587         put warning in this fun.
12588
12589         * glyphs.h:
12590         * glyphs.h (GLYPH_CACHEL_WIDTH):
12591         * glyphs.h (GLYPH_CACHEL_ASCENT):
12592         * glyphs.h (GLYPH_CACHEL):
12593         * glyphs.h (GLYPH_CACHEL_GLYPH):
12594         define error-checking versions to try to catch a bug i've seen --
12595         redisplay gets in an infinite loop because the glyph width of the
12596         continuation glyph is 65535.
12597
12598         * lisp.h:
12599         Extern message-box stuff.
12600
12601         * window.c (allocate_window):
12602         * window.c (make_dummy_parent):
12603         * window.c (Fset_window_configuration):
12604         Use EQUAL not EQ for subwindow caches to make them work a bit
12605         better. (Something is still very broken.)
12606
12607
12608 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12609
12610         * glyphs.c (image_instantiate): Suppress gcc warnings.
12611         (Fmake_image_instance): Fix doc string.
12612         * specifier.c (Fmake_specifier): Ditto.
12613
12614 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12615
12616         * paths.h.in (PATH_LOCK): Removed.
12617         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12618         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12619
12620 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12621
12622         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12623         Document (featurep '(and xemacs 21.02)).
12624
12625 2000-05-09  Ben Wing  <ben@xemacs.org>
12626
12627         * buffer.c (complex_vars_of_buffer):
12628         update modeline-format doc.
12629
12630         * device.h:
12631         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12632
12633         * emacs.c:
12634         timeline of all released versions of Emacs, for use in creating
12635         authorship comments and in synching up.
12636
12637         * glyphs-widget.c (image_instantiator_buttons):
12638         * glyphs-widget.c (image_instantiator_edit_fields):
12639         * glyphs-widget.c (image_instantiator_combo_box):
12640         * glyphs-widget.c (image_instantiator_scrollbar):
12641         * glyphs-widget.c (image_instantiator_progress_guage):
12642         * glyphs-widget.c (image_instantiator_tree_view):
12643         * glyphs-widget.c (image_instantiator_tab_control):
12644         * glyphs-widget.c (image_instantiator_labels):
12645         * glyphs-widget.c (image_instantiator_layout):
12646         * glyphs-widget.c (image_instantiator_native_layout):
12647         rename decode_domain method to governing_domain.
12648
12649         * glyphs.c:
12650         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12651         * glyphs.c (add_entry_to_device_ii_format_list):
12652         make sure we don't put an entry more than once into the list.
12653         * glyphs.c (check_instance_cache_mapper):
12654         *************************************************************
12655         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12656         HAVE BEEN GETTING.
12657         *************************************************************
12658         * glyphs.c (get_image_instantiator_governing_domain):
12659         clean up, expand on new concept of governing domain.
12660         * glyphs.c (instantiate_image_instantiator):
12661         * glyphs.c (allocate_image_instance):
12662         use governing_domain instead of cache_domain in naming.
12663         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12664         * glyphs.c (make_image_instance_1):
12665         * glyphs.c (Fmake_image_instance):
12666         allow for any domain (not just device), and process the
12667         governing domain correctly.  very big doc fix.
12668         * glyphs.c (Fimage_instance_domain):
12669         new primitive, to retrieve the governing domain of an image instance.
12670         * glyphs.c (image_instantiate):
12671         use new governing_domain stuff.  this fixes a crash you could get
12672         by instantiating certain widget glyphs in frame locales. (should
12673         signal an error instead of crashing.)
12674         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12675         * glyphs.c (Fglyphp): clean up doc.
12676         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12677         * glyphs.c (syms_of_glyphs):
12678         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12679         * glyphs.c (image_instantiator_format_create): add some comments about
12680         bogus code.
12681         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12682         for current-display-table. (Apparently Hrjove implemented in 1998 a
12683         design I wrote up in 1996, but didn't update the doc string.)
12684
12685         * glyphs.h: clean up a doc string.
12686         * glyphs.h (governing_domain):
12687         * glyphs.h (struct image_instantiator_methods):
12688         changes for governing_domain stuff.
12689
12690         * gutter.c:
12691         * gutter.c (Fgutter_specifier_p):
12692         * gutter.c (Fgutter_size_specifier_p):
12693         * gutter.c (Fgutter_visible_specifier_p):
12694         * objects.c:
12695         * objects.c (Fcolor_specifier_p):
12696         * objects.c (Ffont_specifier_p):
12697         * objects.c (Fface_boolean_specifier_p):
12698         doc strings moved to make-*-specifier.
12699
12700         * redisplay.c (add_disp_table_entry_runes_1):
12701         * redisplay.c (generate_fstring_runes):
12702         * redisplay.c (screen):
12703         add random comments and doc strings.
12704
12705         * specifier.c:
12706         * specifier.c (Fmake_specifier):
12707         major overhaul of this doc string.
12708
12709         * specifier.c (Fvalid_specifier_domain_p):
12710         comment about the bogosity of image instances being domains.
12711         * specifier.c (decode_domain):
12712         now non-static, used in glyphs.c.
12713         * specifier.c (specifier_instance):
12714         comment about the bogosity of image instances being domains.
12715         * specifier.c (Fgeneric_specifier_p):
12716         move doc string to make-generic-specifier.
12717         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12718         rebackslashify.
12719
12720         * specifier.h:
12721         * specifier.h (DOMAIN_FRAME):
12722         * specifier.h (DOMAIN_LIVE_P):
12723         * specifier.h (DOMAIN_XDEVICE):
12724         rebackslashify.
12725         add comments about problems with these macros.
12726         prototype for decode_domain.
12727
12728         * toolbar.c:
12729         * toolbar.c (Ftoolbar_specifier_p):
12730         move doc string to `make-toolbar-specifier'.
12731
12732         * window.c (window_unmap_subwindows_cache_mapper):
12733         *************************************************************
12734         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12735         HAVE BEEN GETTING.
12736         *************************************************************
12737
12738 2000-05-09  Andy Piper  <andy@xemacs.org>
12739
12740         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12741
12742         * window.c (Fset_window_configuration): reset the frame subwindow
12743         cache and re-initialize the window subwindow caches.
12744
12745         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12746
12747 2000-05-09  Ben Wing  <ben@xemacs.org>
12748
12749         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12750         DWORD.
12751
12752 2000-04-26  Mike Woolley  <mike@bulsara.com>
12753
12754         * ntheap.c: Changed recreate_heap to limit the amount reserved
12755         for the heap to that which is actually available. Also now
12756         displays a message box (with some dignostics) in the event that
12757         it still can't start.
12758
12759 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12760
12761         * callproc.c (Fold_call_process_internal): GCPRO path
12762
12763 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12764
12765         Patch by Bill Perry.
12766
12767         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12768         back data instead of #ifdef.
12769         (Fscrollbar_page_down): ditto.
12770
12771 2000-05-07  Ben Wing  <ben@xemacs.org>
12772
12773         * buffer.h:
12774         Kludge for defining Qmswindows_tstr.
12775
12776         * nt.c:
12777         * nt.c (open_input_file):
12778         * nt.c (open_output_file):
12779         * nt.c (rva_to_section):
12780         * nt.c (mswindows_executable_type):
12781         Move all memory-mapped-file routines here (some were in unexnt.c,
12782         which is bad because they are used by process-nt.c, and unexnt
12783         won't be around when portable dumping).  Synched the above routines
12784         with FSF 20.6.
12785
12786         * nt.h:
12787         Removed ifdef'd out bogus code.
12788         Fixed some prototypes.
12789
12790         * nt.h (file_data):
12791         * nt.h (OFFSET_TO_RVA):
12792         * nt.h (RVA_TO_OFFSET):
12793         * nt.h (RVA_TO_PTR):
12794         Moved the memory-mapped-file structures, macros and prototypes
12795         here, to parallel nt.c.  ntheap.h should really be removed
12796         entirely, and it's a non-portable-dumper specific file.
12797
12798         * ntheap.h (round_to_next):
12799         Moved the memory-mapped-file structures, macros and prototypes
12800         to nt.h.
12801
12802         * ntproc.c (compare_env):
12803         Moved rva_to_section and mswindows_executable_type to nt.c.
12804         Moved compare_env to process-nt.c.
12805         ntproc.c will die, one day.
12806
12807         * ntproc.c (sys_spawnve):
12808         Account for win32_ -> mswindows_.
12809
12810         * process-nt.c:
12811         * process-nt.c (struct nt_process_data):
12812         * process-nt.c (ensure_console_window_exists):
12813         * process-nt.c (compare_env):
12814         * process-nt.c (nt_create_process):
12815         * process-nt.c (nt_kill_process_by_pid):
12816         * process-nt.c (syms_of_process_nt):
12817         * process-nt.c (vars_of_process_nt):
12818         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12819         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12820         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12821         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12822         Move compare_env here from ntproc.c.
12823
12824         * process.c (Fprocess_send_region):
12825         Takes an optional fourth argument, BUFFER, which should fix some
12826         problems with call-process.
12827
12828         * syscommctrl.h:
12829         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12830
12831         * syswindows.h:
12832         Move ICC_BAR_CLASSES to syscommctrl.h.
12833         Add preliminary macros for MSWindows/Mule.  More to come.
12834
12835         * unexnt.c:
12836         * unexnt.c (unexec):
12837         open_output_file moved to nt.c.
12838
12839
12840 2000-05-05  Andy Piper  <andy@xemacs.org>
12841
12842         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12843         instance from the frame cache also since GC may catch up too late
12844         to make frame deletion sane.
12845
12846 2000-05-04  Andy Piper  <andy@xemacs.org>
12847
12848         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12849         (x_finalize_image_instance): ungcpro on deletion.
12850
12851         * glyphs.c (image_instantiator_format_create): give pointers a
12852         query geometry method so that the geometry is at least set.
12853
12854         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12855         initialize layouts if using widgets.
12856
12857 2000-05-03  Andy Piper  <andy@xemacs.org>
12858
12859         * nt.c: remove bogus reference to sysmmsystem.h
12860
12861         * gui-x.c (popup_selection_callback): fix no selection abort.
12862
12863 2000-05-02  Andy Piper  <andy@xemacs.org>
12864
12865         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12866         (mswindows_widget_instantiate): ditto.
12867
12868         * glyphs-widget.c (initialize_widget_image_instance): initialize
12869         children correctly.
12870         (widget_instantiate): cope with children and items in the same
12871         instance.
12872
12873         * glyphs.c (mark_image_instance): cope with children as a first
12874         class member.
12875         (image_instance_equal): ditto.
12876         (image_instance_hash): ditto.
12877         (image_instance_changed): ditto.
12878
12879 2000-04-30  Andy Piper  <andy@xemacs.org>
12880
12881         * glyphs.c (subwindow_query_geometry): new function. Return some
12882         defaults.
12883         (subwindow_instantiate): don't assign dimensions if none have been
12884         given.
12885         (image_instantiator_format_create): add subwindow_query_geometry.
12886         (print_image_instance): cope with layouts as widgets.
12887
12888 2000-04-29  Andy Piper  <andy@xemacs.org>
12889
12890         * frame.c (delete_frame_internal): call
12891         free_frame_subwindow_instance_cache so that all subwindows are
12892         finalized before their parent.
12893         (mark_frame): remove subwindow_cachels.
12894         (Fmake_frame): remove subwindow_cachel manipulation.
12895         (allocate_frame_core): subwindow_instance_cache is a weak list.
12896         (delete_frame_internal): set subwindow_instance_cache to nil.
12897
12898         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12899         finalization safe.
12900         (mswindows_finalize_image_instance): use the device
12901         not the domain as the domain may have died already.
12902
12903         * glyphs-x.c (x_finalize_image_instance): ditto.
12904         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12905         HEIGHT.
12906
12907         * redisplay-output.c (redisplay_unmap_subwindows): update for
12908         subwindow instance cache as a weak list.
12909         (redisplay_unmap_subwindows_maybe): ditto.
12910         (redisplay_unmap_subwindows_except_us): ditto.
12911
12912         * glyphs.c (unmap_subwindow): error checking will check the domain
12913         so don't deal with it here. Don't use cachels anymore.
12914         (map_subwindow): ditto.
12915         (update_subwindow_cachel_data): remove old accessor names.
12916         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12917         (Fresize_subwindow): don't update cachel.
12918         (mark_subwindow_cachels):
12919         (update_subwindow_cachel_data):
12920         (add_subwindow_cachel):
12921         (get_subwindow_cachel_index):
12922         (update_subwindow_cachel):
12923         (reset_subwindow_cachels):
12924         (mark_subwindow_cachels_as_not_updated): deleted.
12925         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12926         subwindow instance to the frame cache.
12927         (find_matching_subwindow): update for subwindow instance cache as
12928         a weak list.
12929         (update_widget_instances): ditto.
12930         (image_instance_type_to_mask):inlined.
12931         (free_frame_subwindow_instance_cache): new function. finalize all
12932         subwindows that are instantiated.
12933
12934         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12935         of cachel information.
12936         (IMAGE_INSTANCE_DISPLAY_X):
12937         (IMAGE_INSTANCE_DISPLAY_Y):
12938         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12939         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12940         (XIMAGE_INSTANCE_DISPLAY_X):
12941         (XIMAGE_INSTANCE_DISPLAY_Y):
12942         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12943         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12944         remove subwindow_cachel structure and function references.
12945         (image_instance_type_to_mask): inline from glyphs.c
12946
12947         * redisplay.c (redisplay_frame): remove subwindow_cachel
12948         references.
12949
12950         * frame.h (struct frame): remove subwindow_cachels.
12951         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12952
12953         * frameslots.h: add subwindow_instance_cache.
12954
12955         * window.c (replace_window): check subwindow cache of replacement.
12956         (window_unmap_subwindows_cache_mapper):
12957         (window_unmap_subwindows): new functions. Unmap all subwindows
12958         cached on this window.
12959         (mark_window_as_deleted): unmap all subwindows.
12960
12961 2000-04-27  Andy Piper  <andy@xemacs.org>
12962
12963         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12964
12965         * glyphs-widget.c (widget_layout): return something.
12966         (layout_layout): return something. Fail if not initialized.
12967         (layout_query_geometry): ditto.
12968         (image_instantiator_native_layout): new function. Initialized the
12969         native layout type.
12970         (widget_instantiate): don't do layout stuff here.
12971
12972         * glyphs.c (instantiate_image_instantiator): reorded calling or
12973         instantiate and post_instantiate with layout in between.
12974         (image_instance_layout): be more selective about deciding whether
12975         the layout has been done or not.
12976
12977         * glyphs.h (struct image_instantiator_methods): return a value
12978         from layout_method.
12979
12980 2000-04-26  Andy Piper  <andy@xemacs.org>
12981
12982         * glyphs.c (allocate_image_instance): make initial width and
12983         height unspecified. Set initialized to 0.
12984
12985         * syscommctrl.h new file. Encapsulates commctrl.h.
12986
12987         * syswindows.h new file. Encapsulates windows.h.
12988
12989         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12990         * nt.c: ditto.
12991         * console-msw.h: ditto.
12992
12993         * redisplay-tty.c (tty_output_display_block): remove layout references.
12994
12995         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12996         window handle rather than just the frame.
12997
12998         * glyphs.c (mark_image_instance): remove layout references.
12999         (print_image_instance): ditto.
13000         (image_instance_equal): ditto.
13001         (image_instance_hash): ditto.
13002         (decode_image_instance_type): ditto.
13003         (encode_image_instance_type): ditto.
13004         (image_instantiate): ditto.
13005         (allocate_glyph): ditto.
13006         (Fimage_instance_height): ditto.
13007         (Fimage_instance_width): ditto.
13008         (update_subwindow): ditto.
13009
13010         * redisplay-x.c (x_output_display_block): recode for layouts as
13011         widgets.
13012
13013         * redisplay-output.c (redisplay_output_layout): recode for layouts
13014         as widgets.
13015         (compare_runes): remove layout references.
13016
13017         * redisplay-msw.c (mswindows_output_display_block): recode for
13018         layouts as widgets.
13019
13020         * glyphs-widget.c (image_instantiator_layout): remove
13021         layout_possible_dest_types.
13022         (layout_possible_dest_types): deleted.
13023
13024         * glyphs.h (image_instance_type): remove layout references.
13025         (struct Lisp_Image_Instance): ditto. Add initialized flag.
13026         (IMAGE_INSTANCE_INITIALIZED): new accessor.
13027         (XIMAGE_INSTANCE_INITIALIZED): ditto.
13028
13029 2000-04-25  Andy Piper  <andy@xemacs.org>
13030
13031         * glyphs-widget.c (image_instantiator_buttons):
13032         (image_instantiator_edit_fields):
13033         (image_instantiator_combo_box):
13034         (image_instantiator_scrollbar):
13035         (image_instantiator_progress_guage):
13036         (image_instantiator_tree_view):
13037         (image_instantiator_tab_control):
13038         (image_instantiator_labels):
13039         (image_instantiator_layout): call default post_instantiate method.
13040         (widget_post_instantiate): new function. Simply lays out the
13041         widgets.
13042
13043         * glyphs.h (struct image_instantiator_methods): add
13044         post_instantiate method.
13045
13046         * glyphs.c (instantiate_image_instantiator): add post_instantiate
13047         method calls.
13048
13049 2000-04-23  Andy Piper  <andy@xemacs.org>
13050
13051         * glyphs.h (struct image_instantiator_methods): add
13052         decode_domain_method.
13053         (struct Lisp_Image_Instance): remove subwindow frame - it can be
13054         derived from the domain.
13055         (IMAGE_INSTANCE_FRAME): new accessor.
13056         (XIMAGE_INSTANCE_FRAME): ditto.
13057
13058         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
13059         instead of _SUBWINDOW_FRAME.
13060         (finalize_image_instance): ditto.
13061         (Fimage_instance_foreground): ditto.
13062         (Fimage_instance_background): ditto.
13063         (image_instantiate): ditto.
13064         (update_subwindow_cachel): ditto.
13065         (update_subwindow): ditto.
13066         (unmap_subwindow): ditto.
13067         (map_subwindow): ditto
13068         (subwindow_instantiate): ditto.
13069         * glyphs-msw.c (mswindows_update_widget): ditto.
13070         (mswindows_progress_gauge_instantiate): ditto.
13071         (mswindows_tab_control_update): ditto.
13072         * glyphs-x.c (x_update_widget): ditto.
13073         (x_widget_instantiate): ditto.
13074         (x_tab_control_instantiate): ditto.
13075         (x_tab_control_update): ditto.
13076         * event-msw.c (mswindows_wnd_proc): ditto
13077
13078         * glyphs-widget.c (image_instantiator_layout): use
13079         subwindow_decode_domain.
13080         (image_instantiator_buttons): ditto.
13081         (image_instantiator_edit_fields): ditto.
13082         (image_instantiator_combo_box): ditto.
13083         (image_instantiator_scrollbar): ditto.
13084         (image_instantiator_progress_guage): ditto.
13085         (image_instantiator_tree_view): ditto.
13086         (image_instantiator_tab_control): ditto.
13087         (image_instantiator_labels): ditto.
13088         (image_instantiator_layout): ditto.
13089
13090         * glyphs.c: add instance error checking to many functions.
13091         (instantiate_image_instantiator): decode device from cache_domain.
13092         (image_instantiate): partially rewrite by using
13093         decode_image_instantiator_domain to determine what domain the
13094         instance needs to be cached in.
13095         (decode_image_instantiator_domain): new function. Determine what
13096         domain the image needs to be cached in.
13097         (check_window_subwindow_cache): new error checking function.
13098         (check_instance_cache_mapper): ditto.
13099         (check_image_instance_structure): ditto.
13100         (subwindow_decode_domain): new function. Encodes a window as a
13101         subwindow's cache domain.
13102         (image_instantiator_format_create): use it for text and
13103         subwindows.
13104
13105 2000-04-21  Andy Piper  <andy@xemacs.org>
13106
13107         * glyphs.c (image_instance_device): new function.
13108         (image_instance_frame): new function.
13109         (image_instance_window): new function.
13110         (image_instance_live_p): new function.
13111
13112         * window.c (mark_window_as_deleted): reset the subwindow_instance_
13113         cache to nil.
13114
13115         * glyphs.h (struct Lisp_Image_Instance): device->domain.
13116         (IMAGE_INSTANCE_DOMAIN): new accessor.
13117         (XIMAGE_INSTANCE_DOMAIN): ditto.
13118
13119         * glyphs-x.c (x_finalize_image_instance): device->domain.
13120
13121         * glyphs-msw.c (init_image_instance_geometry): device->domain.
13122         (mswindows_finalize_image_instance): ditto.
13123
13124         * glyphs-eimage.c (jpeg_instantiate): device->domain.
13125         (gif_instantiate): ditto.
13126         (png_instantiate): ditto.
13127         (tiff_instantiate): ditto.
13128
13129         * glyphs.c (instantiate_image_instantiator): use domain rather
13130         than device.
13131         (mark_image_instance): device -> domain.
13132         (print_image_instance): ditto.
13133         (finalize_image_instance): ditto.
13134         (image_instance_equal): ditto.
13135         (allocate_image_instance): ditto.
13136         (Fcolorize_image_instance): ditto.
13137         (query_string_geometry): ditto.
13138         (image_instantiate): ditto
13139         (query_string_font): ditto.
13140         (image_instantiate): ditto.
13141         (update_subwindow): ditto.
13142         (unmap_subwindow): ditto.
13143         (map_subwindow): ditto.
13144         (subwindow_instantiate): ditto.
13145
13146         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
13147         (DOMAIN_FRAME): ditto.
13148         (DOMAIN_WINDOW): ditto.
13149         (DOMAIN_LIVE_P): ditto.
13150         (XDOMAIN_DEVICE): ditto.
13151         (XDOMAIN_FRAME): ditto.
13152         (XDOMAIN_WINDOW): ditto.
13153
13154         * specifier.c (Fvalid_specifier_domain_p): add image instances as
13155         a valid specifier domain.
13156
13157 2000-04-19  Andy Piper  <andy@xemacs.org>
13158
13159         * glyphs-widget.c (syms_of_glyphs_widget): remove
13160         widget-callback-current-channel.
13161         (vars_of_glyphs_widget): ditto.
13162         * glyphs.h: ditto
13163
13164         * gui.c (get_gui_callback): revert to previous behaviour.
13165
13166 2000-04-18  Andy Piper  <andy@xemacs.org>
13167
13168         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
13169         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
13170         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
13171
13172         * glyphs.c (image_instance_equal): add margin_width.
13173         (image_instance_hash): ditto.
13174
13175         * glyphs-widget.c (widget_instantiate): deal with margin-width.
13176         (layout_query_geometry): ditto.
13177         (layout_layout): ditto.
13178         (syms_of_glyphs_widget): add margin-width.
13179         (image_instantiator_layout): allow margin-width.
13180
13181         * glyphs.c (update_widget_instances): make a normal function.
13182         (syms_of_glyphs): remove Qupdate_widget_instances.
13183         * glyphs.h: ditto.
13184
13185         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
13186         so that we don't corrupt ideas about the last event or
13187         command. Remove widget-callback-current-channel fiddling.
13188         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
13189
13190 2000-05-01  Martin Buchholz <martin@xemacs.org>
13191
13192         * XEmacs 21.2.33 is released.
13193
13194 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
13195
13196         * make-src-depend: Allow dots in header file name.
13197
13198 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
13199
13200         * mule-charset.h (struct charset_lookup): Add
13201         next_allocated_1_byte_leading_byte and
13202         next_allocated_2_byte_leading_byte.
13203         * mule-charset.c: Move above two variables so that those values
13204         will be dumped.
13205
13206 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
13207
13208         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
13209         when string length is zero.
13210         (find_charsets_in_emchar_string): Ditto.
13211
13212 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
13213
13214         * lisp.h: extern Qdialog and Qmenubar.
13215
13216         * gui-x.c: added events.h.
13217                 also fixed typo which made the file uncompilable.
13218
13219         * general.c: Added Qmenubar and Qdialog
13220
13221 2000-04-28  Ben Wing  <ben@xemacs.org>
13222
13223         * frame-msw.c (mswindows_init_frame_1):
13224         * frame-msw.c (mswindows_mark_frame):
13225         * event-msw.c (mswindows_enqueue_dispatch_event):
13226         * console-msw.h:
13227         * console-msw.h (struct mswindows_frame):
13228         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
13229         there are now three hash tables for callbacks.
13230         mswindows_enqueue_dispatch_event is no longer static.
13231
13232         * dialog-x.c (maybe_run_dbox_text_callback):
13233         * dialog-x.c (dbox_descriptor_to_widget_value):
13234         switch to new cons3 form for callbacks.
13235
13236         * glyphs-msw.c (mswindows_register_gui_item):
13237         * glyphs-msw.c (mswindows_widget_instantiate):
13238         * glyphs-msw.c (add_tree_item):
13239         * glyphs-msw.c (add_tab_item):
13240         new image instance parameter, so it can be passed to callback-ex.
13241         respect :callback-ex as well as :callback.
13242
13243         * glyphs-widget.c (VALID_GUI_KEYWORDS):
13244         add :callback-ex.
13245
13246         * glyphs.c (print_image_instance):
13247         prettify, e.g. now prints widget type.
13248
13249         * gui-x.h:
13250         certain funs have new image instance parameter.
13251
13252         * gui.c:
13253         * gui.c (get_gui_callback):
13254         * gui.c (gui_item_add_keyval_pair):
13255         * gui.c (gui_item_init):
13256         * gui.c (gui_add_item_keywords_to_plist):
13257         * gui.c (mark_gui_item):
13258         * gui.c (gui_item_hash):
13259         * gui.c (gui_item_equal):
13260         * gui.c (copy_gui_item):
13261         * gui.c (syms_of_gui):
13262         recognize callback-ex in a number of places.
13263         also, fix the annoying "can't get out of yes-no dialog" bug.
13264
13265         * gui.h:
13266         * gui.h (struct Lisp_Gui_Item):
13267         recognize callback-ex in a number of places.
13268
13269         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13270         new parameter in button_item_to_widget_value.
13271
13272         * glyphs-x.c (x_update_widget):
13273         * glyphs-x.c (x_button_instantiate):
13274         * glyphs-x.c (x_button_update):
13275         * glyphs-x.c (x_progress_gauge_instantiate):
13276         * glyphs-x.c (x_edit_field_instantiate):
13277         * glyphs-x.c (x_combo_box_instantiate):
13278         * glyphs-x.c (x_tab_control_instantiate):
13279         * glyphs-x.c (x_label_instantiate):
13280         new image instance parameter in various places.
13281
13282         * event-Xt.c:
13283         * event-Xt.c (enqueue_Xt_dispatch_event):
13284         this fun gets exported.
13285
13286         * gui-msw.c:
13287         * gui-msw.c (mswindows_handle_gui_wm_command):
13288         handle both :callback and :callback-ex, and generate our own
13289         event because it's one of the callback-ex arguments.
13290
13291         * gui-x.c:
13292         * gui-x.c (popup_selection_callback):
13293         handle both :callback and :callback-ex, and generate our own
13294         event because it's one of the callback-ex arguments.
13295         * gui-x.c (button_item_to_widget_value):
13296         * gui-x.c (gui_items_to_widget_values_1):
13297         * gui-x.c (gui_item_children_to_widget_values):
13298         * gui-x.c (gui_items_to_widget_values):
13299         new image instance parameter in various places.
13300
13301         * fns.c (Freplace_list):
13302         fix small typo in doc string.
13303
13304         * lisp.h:
13305         declare enqueue_Xt_dispatch_event.
13306
13307 2000-04-28  Ben Wing  <ben@xemacs.org>
13308
13309         * buffer.c:
13310         * buffer.c (Frecord_buffer):
13311         * buffer.c (syms_of_buffer):
13312         delete record-buffer-hook.
13313
13314         * fns.c:
13315         * fns.c (Freplace_list):
13316         * fns.c (syms_of_fns):
13317         new primitive replace-list.
13318
13319         * frameslots.h:
13320         slot for old buffer-alist.
13321
13322         * lisp.h:
13323         exfun replace-list.
13324
13325         * redisplay.c:
13326         * redisplay.c (redisplay_frame):
13327         * redisplay.c (syms_of_redisplay):
13328         * redisplay.c (vars_of_redisplay):
13329         new hook buffer-list-changed-hook.
13330         call it.
13331
13332 2000-04-27  Ben Wing  <ben@xemacs.org>
13333
13334         * extents.h: extern in_modeline_generation.
13335
13336         * redisplay.c (generate_formatted_string_db): set
13337         in_modeline_generation.
13338
13339         * extents.c (extent_changed_for_redisplay): don't mark redisplay
13340         flags if in modeline generation.  otherwise frame-modified-tick
13341         is ticked far too often.
13342         Declare in_modeline_generation.
13343
13344 2000-04-26  Ben Wing  <ben@xemacs.org>
13345
13346         * emacs.c (vars_of_emacs): document quick-build "error-checking"
13347         option.
13348         (vars_of_emacs): add quick-build as an error-checking option.
13349         A bit kludgy, but there doesn't seem much point in creating
13350         a real var for this.
13351
13352         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
13353
13354 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13355
13356         * redisplay.h (struct display_line): Add a new variable,
13357         line_continuation.
13358
13359         * redisplay.c (create_text_block): Set dl->line_continuation if
13360         the line continues.
13361         (create_string_text_block): Ditto.
13362         (regenerate_window_incrementally): Use line_continuation instead
13363         of searching continuation glyph.
13364         (add_margin_runes): Call add_glyph_rune.
13365         (add_glyph_rune): Handle margin glyph.
13366
13367 2000-04-20  Martin Buchholz  <martin@xemacs.org>
13368
13369         * filelock.c (fill_in_lock_file_name):
13370         ANSIfy.
13371         Check for IS_ANY_SEP instead of '/'.
13372         (lock_file_1):
13373         Avoid generating gratuitous garbage.  Call user_login_name() directly.
13374         Never check errno without first seeing that system call failed.
13375         (unlock_file): Add GCPRO.
13376         (Flock_buffer): Fix docstring.
13377         (Ffile_locked_p): Fix docstring.  Add GCPRO.
13378
13379 2000-04-19  Martin Buchholz  <martin@xemacs.org>
13380
13381         * sysdep.c (get_pty_max_bytes):
13382         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
13383         strings longer than 252 bytes.
13384
13385         * md5.c: Unconditionally include ANSI header <limits.h>
13386
13387         * glyphs-x.c (convert_EImage_to_XImage):
13388         * lisp-union.h (union Lisp_Object):
13389         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
13390
13391 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
13392
13393         * filelock.c (current_lock_owner): Remove unused variable o, p.
13394
13395 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
13396
13397         * callint.c: Remove multiply defined symbol Qlet
13398         (syms_of_callint): ditto.
13399
13400 2000-04-14  Andy Piper  <andy@xemacs.org>
13401
13402         * general.c (syms_of_general): add last-command, this-command, let
13403         and funcall.
13404
13405         * lisp.h: declare various symbols.
13406
13407         * glyphs.h: declare Qwidget_callback_current_channel;
13408
13409         * glyphs-widget.c (syms_of_glyphs_widget): add
13410         Qgui_callback_current_channel.
13411         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
13412
13413         * gui-msw.c (mswindows_handle_gui_wm_command): bind
13414         widget-callback-current-channel when invoking the interactive
13415         arg. Also bind last-command and next-command when invoking the
13416         widget updates.
13417         * gui-x.c (popup_selection_callback): ditto.
13418
13419         * gui.c (get_gui_callback): massage args so that we are always
13420         calling eval. This allows us to add our own variable bindings
13421         outside.
13422
13423         * glyphs-x.c (x_button_instantiate): use
13424         gui_items_to_widget_values since this is GC safe.
13425         (x_progress_gauge_instantiate): ditto.
13426         (x_edit_field_instantiate): ditto.
13427         (x_label_instantiate): ditto.
13428
13429         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
13430         (emacs_Xt_event_widget_focus_out): new function
13431         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
13432         focus.
13433         (emacs_Xt_event_add_widget_actions): new function. add focus
13434         functions as actions.
13435         (init_event_Xt_late): use it.
13436
13437 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
13438
13439         * event-stream.c (Fdispatch_event): Doc fix.
13440
13441 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
13442
13443         * postgresql.c: Remove all references to PQsetenv*.
13444
13445         * postgresql.h: Remove references to PGsetenvHandler object.
13446         * lrecord.h (lrecord_type): Ditto.
13447
13448 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13449
13450         * glyphs-msw.h (struct mswindows_image_instance_data): Added
13451         real_heigh and real_width members, and accessor macros for these.
13452
13453         * glyphs-msw.c (init_image_instance_geometry): New function.
13454         (init_image_instance_from_dibitmap): Use it.
13455         (mswindows_resource_instantiate): Use it.
13456         (init_image_instance_from_xbm_inline): Use it.
13457         (mswindows_initialize_image_instance_mask): Use real bitmap
13458         geometry.
13459         (mswindows_create_resized_bitmap): Ditto.
13460         (mswindows_create_resized_mask): Ditto.
13461
13462         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
13463         and bitmap to their surface size.
13464
13465 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
13466
13467         * process-unix.c (unix_send_process): Guard against process MIA
13468         after Faccept_process_output.
13469
13470 2000-04-11  Ben Wing  <ben@xemacs.org>
13471
13472         * eval.c (unbind_to_hairy): fix brokenness introduced by
13473         nanosecond speed improvements.
13474
13475 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
13476
13477         * sunplay.c (init_device): To play sounds correctly, the device
13478         apparently needs to be initialized at least once by XEmacs.  Make
13479         it so.
13480
13481 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13482
13483         * redisplay.c (add_margin_runes): Add text image glyph
13484           handling.
13485
13486 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
13487
13488         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
13489         gcc is newer than 2.5.
13490
13491 2000-04-06  Colin Rafferty  <colin@xemacs.org>
13492
13493         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
13494
13495         * fns.c (size_bit_vector):
13496         * alloc.c (size_vector):
13497         (make_vector_internal):
13498         (make_bit_vector_internal):
13499         (sweep_bit_vectors_1):
13500         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13501
13502 2000-04-06  Andy Piper  <andy@xemacs.org>
13503
13504         * gmalloc.c (malloc): undo previous change.
13505         (malloc): ditto.
13506         (free): ditto.
13507         (realloc): ditto.
13508
13509 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
13510
13511         * line-number.c (buffer_line_number): Revert to former version.
13512
13513 2000-04-06  Andy Piper  <andy@xemacs.org>
13514
13515         * gmalloc.c (malloc): add error checking.
13516         (malloc): ditto.
13517         (free): ditto.
13518         (realloc): ditto.
13519
13520         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13521         button_item_to_widget_value arg.
13522
13523         * glyphs-x.c (x_button_instantiate): add extra
13524         button_item_to_widget_value arg.
13525         (x_progress_gauge_instantiate): ditto.
13526         (x_edit_field_instantiate): ditto.
13527         (x_label_instantiate): ditto.
13528
13529         * gui-x.c (gui_items_to_widget_values_1): add extra
13530         button_item_to_widget_value arg.
13531         (button_item_to_widget_value): add extra menu_item_p arg.
13532
13533         * gui-x.h: change signature of button_item_to_widget_value.
13534
13535         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13536         button_item_to_widget_value arg.
13537
13538 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13539
13540         * buffer.h (struct buffer): auto_save_modified should be long.
13541
13542 2000-04-05  Andy Piper  <andy@xemacs.org>
13543
13544         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13545         type.
13546         (button_query_geometry): give a little more room so that athena
13547         buttons fit.
13548
13549 2000-04-05  Andy Piper  <andy@xemacs.org>
13550
13551         * faces.c (complex_vars_of_faces): The widget face should inherit
13552         the font of the gui-element face.
13553
13554 2000-04-04  Andy Piper  <andy@xemacs.org>
13555
13556         * glyphs-x.c (x_button_update): new function. unconditionally
13557         update a button's state when the instance is dirty.
13558         (image_instantiator_format_create_glyphs_x): add x_button_update.
13559         (x_widget_instantiate): remove old resize cruft.
13560
13561 2000-04-02  Andy Piper  <andy@xemacs.org>
13562
13563         * frame.c (change_frame_size_1): The introduction of gutters means
13564         that we need to allow 0 as a potential frame dimension.
13565
13566 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13567
13568         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13569         image glyph if allow_cursor.
13570         (add_hscroll_rune): Don't allow cursor to border glyph.
13571         (create_text_block): Ditto.
13572
13573         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13574         text not in buffer.
13575         (redisplay_output_layout): Call ensure_face_cachel_complete for
13576         text image glyph.
13577
13578
13579 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13580
13581         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13582
13583         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13584         not in buffer
13585
13586         * redisplay-tty.c (tty_output_display_block): Delete the routine
13587         for text image glyph
13588         * redisplay-x.c (x_output_display_block): ditto
13589         * redisplay-msw.c (mswindows_output_display_block): ditto
13590
13591 2000-02-02  Mike Alexander  <mta@arbortext.com>
13592
13593         Note: Some of these were committed by accident as part of other
13594         patches.
13595
13596         * regex.c (regex_compile): Avoid compiler warnings.
13597
13598         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13599
13600         * nt.h: Declare term_ntproc correctly.
13601
13602         * nt.c: Remove incorrect declaration of get_home_directory which
13603         is declared correctly in lisp.h.
13604
13605         * keymap.c (get_keyelt): Avoid compiler warnings.
13606         (raw_lookup_key_mapper): Avoid compiler warnings.
13607
13608         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13609
13610         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13611
13612         * filemode.c (mode_string): Avoid compiler warnings.
13613
13614         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13615         avoid warning.
13616
13617         * events-mod.h: Undef some things that winuser.h defines differently.
13618
13619         * data.c (Faset): Avoid compiler warnings.
13620
13621         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13622
13623 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13624
13625         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13626         Fall through to simple beep on error.
13627         Replace "extern" by real header file.
13628
13629         * linuxplay.c: Use nativesound.h
13630         (play_sound_data): Return error code. Be less verbose on error.
13631
13632         * sunplay.c: Use nativesound.h
13633         (play_sound_data): Return error code. Be less verbose on error.
13634
13635         * ntplay.c: Use nativesound.h
13636         (play_sound_data): Return fake error code
13637
13638         * sgiplay.c: Use nativesound.h
13639         (play_sound_data): Return error code
13640
13641         * hpplay.c: Use nativesound.h, partially implement
13642         new error code. Break compilation until finished.
13643         (play_sound_data): error code.
13644
13645         * nativesound.h (play_sound_file):
13646           (play_sound_data): Prototype in new header.
13647
13648 2000-03-31  Andy Piper  <andy@xemacs.org>
13649
13650         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13651         for toggle and radio buttons.
13652         (image_instantiator_buttons): use it.
13653
13654 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13655
13656         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13657         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13658         found. Scrollbar event probably belonged to some old config.
13659
13660 2000-03-31  Andy Piper  <andy@xemacs.org>
13661
13662         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13663         than 1.
13664         (initialize_widget_image_instance): default layout to
13665         LAYOUT_HORIZONTAL rather than 0.
13666         (widget_instantiate): reverse the item list at the end rather than
13667         every iteration.
13668         (layout_layout): re-code for the border text at the front of the
13669         item list rather than at the end.
13670         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13671         provided by the user.
13672         (widget_query_geometry): comment.
13673
13674 2000-03-30  Andy Piper  <andy@xemacs.org>
13675
13676         * glyphs-widget.c (image_instantiator_layout): allow standard
13677         widget keywords in layouts.
13678
13679         * gutter.c (output_gutter): cope with nil gutter contents.
13680
13681         * frame.c (Fset_frame_properties): add gutter docs.
13682
13683 2000-03-29  Andy Piper  <andy@xemacs.org>
13684
13685         * toolbar-msw.c (TBSTYLE_FLAT): add.
13686         (mswindows_output_toolbar): minor fiddling.
13687
13688 2000-03-29  Andy Piper  <andy@xemacs.org>
13689
13690         * gutter.c (output_gutter): force gutter size recalculation if
13691         what we are trying to display won't fit.
13692         (update_gutter_geometry): new function. A per-gutter version of
13693         update_frame_gutter_geometry.
13694         (update_frame_gutter_geometry): use it.
13695         (redraw_exposed_gutter): add extra debugging output.
13696
13697 2000-03-28  Mike Alexander  <mta@arbortext.com>
13698
13699         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13700         (pdump_file_unmap): Implement it on Windows
13701         (pdump_file_get): Save alocated handles for pdump_file_unmap
13702
13703 2000-03-28  Andy Piper  <andy@xemacs.org>
13704
13705         * gui.c (get_gui_callback): treat Quit specially.
13706
13707 2000-03-27  Andy Piper  <andy@xemacs.org>
13708
13709         * glyphs.c (image_instantiate): be careful to check in the same
13710         way we assigned.
13711
13712 2000-03-27  Didier Verna  <didier@xemacs.org>
13713
13714         * config.h.in: define the proper SMART_INCLUDE macro.
13715         handle renaming of `foo_h_path' to `foo_h_file'.
13716
13717         * database.c: ditto.
13718
13719         * emacs.c: ditto.
13720
13721         * linuxplay.c: ditto.
13722
13723         * terminfo.c: ditto.
13724
13725         * tooltalk.h: ditto.
13726
13727 2000-03-27  Andy Piper  <andy@xemacs.org>
13728
13729         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13730         gets updated whenever the face might have changed.
13731
13732 2000-03-26  Mike Alexander  <mta@arbortext.com>
13733
13734         * dumper.c (pdump_resource_free): Fix the comment.
13735
13736 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13737
13738         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13739
13740 2000-03-22  Mike Alexander  <mta@arbortext.com>
13741
13742         * dumper.c: Include Windows headers on Windows
13743         (pdump_resource_free): Add a body to the function
13744         (pdump_load): exe_name -> exe_path and add some comments.
13745
13746 2000-03-25  Mike Alexander  <mta@arbortext.com>
13747
13748         * gui.c (copy_gui_item_tree): Return a value in all cases
13749
13750 2000-03-21  Didier Verna  <didier@xemacs.org>
13751
13752         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13753         lwlib/config.h.in.
13754         (SMART_INCLUDE): new macro.
13755         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13756         the proper location.
13757
13758         * postgresql.c: use it.
13759
13760         * inline.c: ditto.
13761
13762 2000-03-24  Andy Piper  <andy@xemacs.org>
13763
13764         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13765         do this.
13766
13767 2000-03-24  Andy Piper  <andy@xemacs.org>
13768
13769         * redisplay-output.c (compare_runes): use image_instance_changed
13770         to detect changes. Do not depend on glyphs_changed, only depend on
13771         dirtiness.
13772          (redisplay_output_layout): add debug messages.
13773         (compare_runes): ditto.
13774
13775         * glyphs.h: declare new functions.
13776         (struct Lisp_Image_Instance): remove percent and associated
13777         accessors.
13778
13779         * gui.h: declare new copying functions.
13780
13781         * gui.c (copy_gui_item_tree): new function.
13782         (copy_gui_item): new function.
13783         (gui_item_id_hash): revert to standard hash.
13784         (gui_item_hash): ditto.
13785         (gui_item_hash_internal): deleted.
13786         (mark_gui_item): mark value.
13787         (gui_item_add_keyval_pair): add value.
13788         (gui_item_init): ditto.
13789         (gui_add_item_keywords_to_plist): ditto.
13790         (gui_item_equal): ditto.
13791         (syms_of_gui): add Q_value.
13792
13793         * glyphs-x.c (x_progress_gauge_update): use pending items and
13794         value for setting the state.
13795         (x_update_widget): don't set items from pending here.
13796
13797         * glyphs-widget.c (update_widget): update items here.
13798         (progress_gauge_set_property): use items for storing value. Put
13799         new value in pending items.
13800
13801         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13802         items for new value. Convert percent -> value.
13803         (mswindows_tab_control_update): don't update items here.
13804
13805         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13806         (update_subwindow): ditto.
13807         (image_instance_changed): new function. Compare hash values and
13808         past and present widget items.
13809         (image_instantiate): We more careful about where we instantiate
13810         things.
13811         (image_instantiate): add error checking.
13812
13813         * gutter.c (syms_of_gutter): use -hook.
13814
13815 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13816
13817         * console-tty.c (Fset_console_tty_input_coding_system): Use
13818         Qkeyboard.
13819         (Fset_console_tty_output_coding_system): Use Qterminal.
13820         (tty_init_console): Use Qkeyboard and Qterminal.
13821
13822 2000-03-21  Ben Wing  <ben@xemacs.org>
13823
13824         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13825         From Mike Alexander <mta@arbortext.com>.
13826
13827 2000-03-21  Ben Wing  <ben@xemacs.org>
13828
13829         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13830         process brokenness.  Proper implementation to come.
13831         * callproc.c:
13832         Rename call-process-internal to old-call-process-internal.
13833         New impl. in process.el.
13834
13835 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13836
13837         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13838
13839 2000-03-20  Andy Piper  <andy@xemacs.org>
13840
13841         * glyphs.c (full_list_hash): make hashes of the same elements in
13842         different orders return different values.
13843
13844 2000-03-20  Martin Buchholz <martin@xemacs.org>
13845
13846         * XEmacs 21.2.32 is released.
13847
13848 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13849
13850         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13851         (DFC_MALLOC_USE_CONVERTED_DATA):
13852         Add aliasing-safe casts to allow use with char* or unsigned char*
13853         lvalues.
13854
13855         * eldap.c (Fldap_open):
13856         (Fldap_search_basic):
13857         (Fldap_add):
13858         (Fldap_modify):
13859         Make C++-compilable.
13860         Make sure GCPRO'ed variables are initialized.
13861         Use temp variables to avoid repeated calls to Flength.
13862
13863 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13864
13865         * sysfile.h:
13866         Make sure PATH_MAX is always defined.
13867         Include limits.h for PATH_MAX.
13868         Deprecate use of MAXPATHLEN.
13869
13870 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13871
13872         * emacs.c: Add reinit_vars_of_fileio.
13873         * symsinit.h: Add reinit_vars_of_fileio.
13874         * fileio.c (reinit_vars_of_fileio): New.
13875         * fileio.c (Fmake_temp_name):
13876         Initialize temp_name random number from microseconds to make
13877         collisions even less likely.  Initialize always at process startup
13878         time.  (make-temp-name) used to return the same file name twice in
13879         a row when PDUMP.
13880         Random stylistic fiddling.
13881         Comment fixes.
13882
13883 2000-03-20  Andy Piper  <andy@xemacs.org>
13884
13885         * glyphs.c (image_instantiate): allow text glyphs to be
13886         instantiated in the minibuffer window.
13887
13888 2000-03-19  Andy Piper  <andy@xemacs.org>
13889
13890         * glyphs.c (image_instance_hash): be careful about which items we
13891         hash on.
13892
13893         * glyphs-widget.c (tab_control_set_property): record into pending
13894         items rather than the actual items.
13895
13896         * glyphs-x.c (x_update_widget): use pending items to update with.
13897
13898         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13899         to update with.
13900
13901         * glyphs.c (mark_image_instance): mark pending items.
13902
13903         * window.c (Fset_window_configuration): record the buffer.
13904         (Fselect_window): totally revert previous change which breaks many
13905         things.
13906
13907 2000-03-18  Andy Piper  <andy@xemacs.org>
13908
13909         * glyphs-msw.c (mswindows_tab_control_update): force selected
13910         item.
13911
13912         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13913         window domain cache, otherwise we get inconsistencies at
13914         startup. There is something fishy at startup which can lead to the
13915         minibuffer being the selected window when the gutter content is
13916         instantiated.
13917
13918         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13919         gcpros.
13920         (parse_gui_item_tree_children): ditto.
13921         (parse_gui_item_tree_item): ditto.
13922
13923         * glyphs.c (Fupdate_widget_instances): return something.
13924
13925 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13926
13927         * window.c (Fselect_window): Undo 2000-03-17 change.
13928
13929 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13930
13931         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13932         against v7.0 libraries.  Insta-coredump city until the postgres
13933         folks fix it.
13934
13935 2000-03-17  Andy Piper  <andy@xemacs.org>
13936
13937         * faces.c (complex_vars_of_faces): don't give the widget face an
13938         inherited background pixmap.
13939
13940         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13941         selected item.
13942
13943         * event-stream.c (Fdispatch_non_command_events): return something.
13944
13945         * gutter.c (output_gutter): use widget face.
13946         (clear_gutter): ditto.
13947
13948         * NEWS: adjust again.
13949
13950         * window.c (Fselect_window): make sure this runs to completion to
13951         avoid oddities with Fset_window_configuration.
13952         (Fcurrent_window_configuration): in general do not save the
13953         minibuffer as the selected window.
13954
13955         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13956
13957 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13958
13959         * emacs.c (Frunning_temacs_p): Revert previous patch.
13960         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13961
13962 2000-03-16  Andy Piper  <andy@xemacs.org>
13963
13964         * glyphs-x.c (x_tab_control_update): if no widget values then
13965         return.
13966
13967         * NEWS: update for new features.
13968
13969         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13970         synthetic event to the native system.
13971         (reinit_vars_of_event_Xt): set force_event_pending to
13972         emacs_Xt_force_event_pending.
13973
13974         * events.h (struct event_stream): add force_event_pending.
13975
13976         * specifier.c (recompute_one_cached_specifier_in_window): add
13977         comment.
13978
13979         * redisplay.c (redisplay_frame): don't call
13980         update_frame_subwindows. Reset subwindow cachels when
13981         subwindows_changed, removing this was an optimization too far.
13982
13983         * redisplay-output.c (compare_runes): reorganize so that we catch
13984         glyph changes when we want them. Set optimize_output when this
13985         would help layouts.
13986         (redisplay_output_layout): remove frame_really_changed, use
13987         optimize_output instead.
13988
13989         * redisplay-msw.c (mswindows_output_display_block): reset
13990         optimize_output after outputting a glyph.
13991         * redisplay-x.c (x_output_display_block): ditto.
13992         * redisplay-tty.c (tty_output_display_block): ditto.
13993
13994         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13995         functions.
13996         (gutter_specs_changed): do specific gutter positions.
13997         (top_gutter_specs_changed): new function. Only update the
13998         specified gutter specs.
13999         (bottom_gutter_specs_changed): ditto.
14000         (left_gutter_specs_changed): ditto.
14001         (right_gutter_specs_changed): ditto.
14002
14003         * gui.c (gui_item_hash_internal): new function, does a real hash.
14004         (gui_item_id_hash): use it.
14005         (gui_item_hash): hash the eval'ed gui_item.
14006
14007         * gui-x.c (popup_selection_callback): send an eval event to call
14008         Fupdate_widget_instances.
14009
14010         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
14011         to call Fupdate_widget_instances.
14012
14013         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
14014         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
14015
14016         * glyphs.c: (update_frame_subwindows): deleted.
14017         (Fupdate_widget_instances): new function for updating the dirty
14018         state of widgets that might have changed.
14019         (syms_of_glyphs): add Qupdate_widget_instances.
14020         (full_list_hash): hash a list completely.
14021         (image_instance_hash): use it for items and properties.
14022
14023         * frame-msw.c (mswindows_size_frame_internal): remove unused
14024         variable.
14025
14026         * faces.h (struct face_cachel): fix comment.
14027
14028         * event-stream.c (Fdispatch_non_command_events): new
14029         function. Process non-command events, forcing an event cycle
14030         beforehand.
14031         (syms_of_event_stream): declare.
14032         (event_stream_force_event_pending): new function. Force an event
14033         on the native event queue so that an event cycle will occur next
14034         time we check.
14035
14036         * event-msw.c:
14037         (struct ntpipe_shove_stream):
14038         (mswindows_enqueue_dispatch_event):
14039         (mswindows_dequeue_dispatch_event):
14040         (mswindows_cancel_dispatch_event):
14041         (mswindows_pump_outstanding_events):
14042         (mswindows_drain_windows_queue):
14043         (mswindows_handle_paint):
14044         (mswindows_wnd_proc):
14045         (mswindows_key_to_emacs_keysym):
14046         (get_process_input_waitable):
14047         (emacs_mswindows_delete_stream_pair): re-indent file.
14048         (mswindows_need_event): do not process further fds if the windows
14049         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
14050         fixes the 100% cpu problem.
14051         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
14052
14053 2000-03-15  Olivier Galibert  <galibert@pobox.com>
14054
14055         * alloc.h: New.
14056         * dumper.h: New.
14057         * dumper.c: New.
14058
14059         * emacs.c: Moved dump file searching to dumper.c.
14060         (Frunning_temacs_p): Fixed.
14061
14062         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
14063         last_lrecord_type_index_assigned.
14064
14065 2000-02-20  Olivier Galibert  <galibert@pobox.com>
14066
14067         * symsinit.h: Added reinit parameter to init_console_stream
14068         declaration.
14069
14070         * lisp.h: Added file parameter to pdump_load declaration.
14071
14072         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
14073         support.  Added dump file searching.
14074
14075         * config.h.in: Added EMACS_PROGNAME.
14076
14077         * console-stream.c (init_console_stream): Fix reinitialisation
14078         when running from temacs.
14079
14080         * alloc.c (pdump): Add id support.
14081         (pdump_load): Add file parameter and signature/id support.
14082
14083         * Makefile.in.in: Add full pdump support.
14084
14085 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
14086
14087         * postgresql.c: Update documentation to reflect latest code
14088         status.
14089         (print_result): Show tuple counts in printed representation when
14090         appropriate.
14091         (Fpq_put_nbytes): MULE-ize.
14092         (Fpq_get_line_async): Ditto.
14093
14094 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14095
14096         * postgresql.c (Fpq_lo_import): Fix return value.
14097         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
14098
14099 2000-03-13  Ben Wing  <ben@xemacs.org>
14100
14101         * alloc.c (pdump_load):
14102         Fix compile warning under mswin.
14103
14104 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14105
14106         * postgresql.c: Mule-ization, bug fixes.
14107         Use PG_CODING to encapsulate coding system name changes.
14108         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
14109         (pg-coding-system): Create.
14110
14111         (Fpq_conn_defaults): Mule-ize.
14112         (Fpq_connectdb): Mule-ize & bug fix.
14113         (Fpq_connect_start): Mule-ize.
14114         (Fpq_set_client_encoding): Mule-ize.
14115         (Fpq_finish): Document `DEAD' connection status.
14116         (Fpq_clear): Ditto.
14117         (Fpq_pgconn): Mule-ize.
14118         (Fpq_exec): Mule-ize & bug fix.
14119         (Fpq_send_query): Ditto.
14120         (Fpq_get_result): Ditto.
14121         (Fpq_res_status): Mule-ize.
14122         (Fpq_result_error_message): Mule-ize.
14123         (Fpq_ntuples): fix comments.
14124         (Fpq_fname): Mule-ize.
14125         (Fpq_fnumber): Mule-ize.
14126         (Fpq_ftype): fix comments.
14127         (Fpq_get_value): Mule-ize.
14128         (Fpq_cmd_status): Ditto.
14129         (Fpq_cmd_tuples): Ditto.
14130         (Fpq_oid_value): Ditto.
14131         (Fpq_notifies): Ditto.
14132         (Fpq_lo_import): Ditto.
14133         (Fpq_lo_export): Ditto.
14134         (Fpq_get_line): Ditto.
14135         (Fpq_put_line): Mule-ize and bug fix.
14136         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
14137
14138 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14139
14140         * postgresql.c (vars_of_postgresql): Mule-ize.
14141         (Fpq_conn_defaults): Ditto.
14142
14143 2000-03-12  Ben Wing  <ben@xemacs.org>
14144
14145         * alloc.c (Fmake_byte_code):
14146         * alloc.c (debug_string_purity_print):
14147         * alloc.c (pdump_backtrace):
14148         * alloc.c (pdump_get_indirect_count):
14149         * alloc.c (pdump_register_sub):
14150         * alloc.c (pdump_register_object):
14151         * alloc.c (pdump_register_struct):
14152         * alloc.c (pdump_dump_data):
14153         * alloc.c (pdump_reloc_one):
14154         Minor cleanups.
14155
14156         * console-msw.c:
14157         * console-msw.c (GetConsoleHwnd):
14158         * console-msw.c (msw_hide_console):
14159         * console-msw.c (msw_show_console):
14160         * console-msw.c (msw_ensure_console_buffered):
14161         * console-msw.c (msw_output_console_string):
14162         * console-msw.c (console_type_create_mswindows):
14163
14164         a) Added functions to manipulate the console window for use with
14165         shell support.
14166
14167         b) Added support for writing text to the console, which is now
14168         used under Windows when xemacs is not being run non-interactively,
14169         to write text that would otherwise be destined for stdout because
14170         under these circumstances, text written to stdout tends to
14171         disappear and not be seen.
14172
14173         * console-msw.h:
14174         * event-Xt.c:
14175         * event-Xt.c (x_event_to_emacs_event):
14176         * event-Xt.c (describe_event_window):
14177         * events-mod.h (XEMACS_MOD_CONTROL):
14178         * events.c:
14179         * events.c (Fmake_event):
14180         * events.c (character_to_event):
14181         * events.c (event_to_character):
14182         * events.c (format_event_object):
14183         * events.c (Fevent_modifiers):
14184         * events.h:
14185         * events.h (struct key_data):
14186         * events.h (struct button_data):
14187         * events.h (struct misc_user_data):
14188         * frame-x.c (Fcde_start_drag_internal):
14189         * frame-x.c (Foffix_start_drag_internal):
14190         * gpmevent.c (Freceive_gpm_event):
14191         * keymap.c:
14192         * keymap.c (bucky_sym_to_bucky_bit):
14193         * keymap.c (control_meta_superify):
14194         * keymap.c (make_key_description):
14195         * keymap.c (keymap_lookup_directly):
14196         * keymap.c (create_bucky_submap):
14197         * keymap.c (keymap_store):
14198         * keymap.c (define_key_check_and_coerce_keysym):
14199         * keymap.c (define_key_parser):
14200         * keymap.c (define_key_alternate_name):
14201         * keymap.c (Fdefine_key):
14202         * keymap.c (raw_lookup_key_mapper):
14203         * keymap.c (struct map_keymap_unsorted_closure):
14204         * keymap.c (map_keymap_unsorted_mapper):
14205         * keymap.c (map_keymap_sort_predicate):
14206         * keymap.c (map_keymap_sorted):
14207         * keymap.c (accessible_keymaps_mapper_1):
14208         * keymap.c (where_is_recursive_mapper):
14209         * keymap.c (describe_map_mapper):
14210         * keymap.c (describe_map_sort_predicate):
14211         * keymap.c (describe_map):
14212         * keymap.c (complex_vars_of_keymap):
14213         And a number of other files, the key modifier preprocessor
14214         constants that xemacs uses have names that conflict with constants
14215         defined under MS Windows for other purposes, so they were renamed
14216         to begin with the prefix XEMACS_. The variables that hold such
14217         modifiers were changed to consistently be of type int to fix
14218         various compile warnings.
14219
14220         * console.c (complex_vars_of_console):
14221         * device.c:
14222         * device-msw.c:
14223         * device-msw.c (mswindows_finish_init_device):
14224         * device-msw.c (msw_get_workspace_coords):
14225         * device-msw.c (mswindows_device_system_metrics):
14226         and various other files, added support for a new
14227         device property called offset-workspace which returns the position
14228         of the upper left corner of the workspace area and goes along with
14229         the existing size-workspace property.
14230
14231         * dialog-msw.c:
14232         * dialog-msw.c (push_bufbyte_string_as_unicode):
14233         * dialog-msw.c (mswindows_popup_dialog_box):
14234         Added support for XEmacs-style accelerator specifications in
14235         button text.  Note: I didn't add support for this under X Windows,
14236         and somebody needs to do this.
14237
14238         * dialog.c:
14239         * dialog.c (Fpopup_dialog_box):
14240         Documented the support for accelerators that was just mentioned.
14241
14242         editfns.c (get_home_directory): Changed behavior under Windows
14243         when HOME not defined; former behavior was irretrievably broken.
14244
14245         * emacs.c:
14246         * emacs.c (main_1):
14247         * emacs.c (main):
14248         * minibuf.c (clear_echo_area_internal):
14249         * minibuf.c (echo_area_append):
14250         * print.c:
14251         * print.c (std_handle_out_external):
14252         * print.c (std_handle_out_va):
14253         * print.c (fatal):
14254         * print.c (write_string_to_stdio_stream):
14255         * print.c (output_string):
14256         * print.c (debug_print):
14257         * print.c (debug_backtrace):
14258         * print.c (debug_short_backtrace):
14259         Cleaned up the code that prints text to stdout so that this can be
14260         changed to output into a console window instead under MS Windows,
14261         as described above.
14262
14263         * eval.c:
14264         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
14265         * eval.c (internal_catch):
14266         * eval.c (unwind_to_catch):
14267         * eval.c (throw_or_bomb_out):
14268         * eval.c (condition_case_1):
14269         * eval.c (signal_1):
14270         * eval.c (check_error_state_sanity):
14271         * eval.c (call_with_suspended_errors_1):
14272         * eval.c (call_with_suspended_errors):
14273         * eval.c (reinit_vars_of_eval):
14274         Added code to catch throw loops and check for a pesky bug that may
14275         be gone now.
14276
14277         * event-msw.c:
14278         * event-msw.c (key_needs_default_processing_p):
14279         * event-msw.c (mswindows_wnd_proc):
14280         * event-msw.c (mswindows_modifier_state):
14281         * event-msw.c (emacs_mswindows_quit_p):
14282         * event-msw.c (vars_of_event_mswindows):
14283         a) Added support for using the alt key to select menu items as is
14284         standard under MS Windows.  This is controlled using the variable
14285         menu-accelerator-enabled, just like under X Windows.  There is an
14286         option on the options menu to turn this support on.  I really
14287         think that it should be on by default under Windows, but I'm not
14288         going to make this change yet.
14289
14290         b)  Added support for dynamic display size changes under Windows.
14291
14292         * event-stream.c:
14293         * event-stream.c (maybe_echo_keys):
14294         * event-stream.c (Fnext_event):
14295         * event-stream.c (command_builder_find_leaf):
14296         * event-stream.c (lookup_command_event):
14297         * event-stream.c (execute_command_event):
14298         * event-stream.c (pre_command_hook):
14299         * event-stream.c (post_command_hook):
14300         * event-stream.c (syms_of_event_stream):
14301         * event-stream.c (vars_of_event_stream):
14302         * event-stream.c (complex_vars_of_event_stream):
14303         * events.h (struct command_builder):
14304
14305         a) Tried to clean up a little bit the horribly written x-specific
14306         accelerator code that crept into this file.  I moved this code
14307         into menubar-x.c where it belongs. I also needed to move the
14308         command builder structure into the file events.h because it is
14309         accessed directly by this accelerator code.  What I didn't do, but
14310         which should be done at some point, is to properly abstract this
14311         code using device methods instead of the kludgy way that it
14312         currently hooks into the event code.
14313
14314         b) Added the lisp variables this-command-properties and
14315         last-command- properties, which should be used to synchronize two
14316         adjacent commands in preference to playing games with the variable
14317         this-command, which is typically what happens.
14318
14319         c) Added some slightly nasty code to hook into the lisp support
14320         for shifted- motion-key selection.  This is actually necessary for
14321         somewhat complicated reasons, which are described in
14322         simple.el. (NB: I think the proper thing would be to have the code
14323         that calls the pre and post command hooks also call out to generic
14324         lisp functions in simple.el, where all built-in stuff could be
14325         added.  I will think about this more.)
14326
14327         * event-unixoid.c (poll_fds_for_input):
14328         * lread.c (readchar):
14329         * redisplay-tty.c (tty_clear_frame):
14330         * redisplay-x.c (x_get_gc):
14331         * signal.c (interrupt_signal):
14332         And a whole bunch of other files: fixed up places that printed
14333         directly to stderr to instead call the function stderr_out so that
14334         the changes I made under Windows work correctly.
14335
14336         * filemode.c (mode_string):
14337         Warning fixes.
14338
14339         * frame-msw.c:
14340         * frame-msw.c (mswindows_size_frame_internal):
14341         Fixed the computation of frame size and position to keep the frame
14342         within the workspace area, rather than within the physical
14343         dimensions of the screen, so that the frame doesn't overlap window
14344         manager decorations, such as the start menu and toolbar, typically
14345         at the bottom of the screen.
14346
14347         * frame.c (vars_of_frame):
14348         Changed the default frame title format under MS Windows to consist
14349         of buffername-XEmacs, which is standard under MS Windows.  I think
14350         it might be a good idea to change this everywhere because I think
14351         it is superior to the current frame title format, but this is the
14352         kind of change that is likely to cause some people to get annoyed,
14353         so I'm not making it.
14354
14355         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
14356
14357         * gui-msw.c (mswindows_handle_gui_wm_command):
14358         Fixed compile warnings.
14359
14360         * gui-x.c:
14361         * gui-x.c (strdup_and_add_accel):
14362         * gui-x.c (button_item_to_widget_value):
14363         * gui-x.h:
14364         Added code to automatically put an accelerator onto the beginning
14365         of menu items that don't have one as is now the standard, and is
14366         described more later.  Also fixed things so that the menu item
14367         name can be an evaluated expression, again a new standard.
14368
14369         * gui.c:
14370         * gui.c (gui_item_add_keyval_pair):
14371         * gui.c (make_gui_item_from_keywords_internal):
14372         * gui.c (gui_add_item_keywords_to_plist):
14373         * gui.c (gui_item_accelerator):
14374         * gui.c (gui_name_accelerator):
14375         * gui.c (gui_item_included_p):
14376         * gui.c (gui_item_display_flush_left):
14377         * gui.c (gui_item_display_flush_right):
14378         * gui.c (parse_gui_item_tree_item):
14379         * gui.c (parse_gui_item_tree_children):
14380         * gui.c (parse_gui_item_tree_list):
14381         Mule-ized.  Cleanup.  GCPRO addition.
14382
14383         * line-number.c (buffer_line_number):
14384         * lisp.h:
14385         * lisp.h (EMACS_INT_MAX):
14386         Added the manifest constant EMACS_INT_MIN corresponding to the
14387         existing constant EMACS_INT_MAX.  This is partially to fix compile
14388         warnings under Windows, and partly for cleanliness.
14389
14390         * menubar-msw.c:
14391         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
14392         * menubar-msw.c (msw_translate_menu_or_dialog_item):
14393         * menubar-msw.c (displayable_menu_item):
14394         * menubar-msw.c (populate_menu_add_item):
14395         * menubar-msw.c (populate_or_checksum_helper):
14396         * menubar-msw.c (populate_menu):
14397         * menubar-msw.c (update_frame_menubar_maybe):
14398         * menubar-msw.c (prune_menubar):
14399         * menubar-msw.c (msw_char_is_accelerator):
14400         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
14401         * menubar-msw.c (mswindows_handle_wm_command):
14402         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
14403         * menubar-msw.c (mswindows_handle_wm_initmenu):
14404         * menubar-msw.c (mswindows_update_frame_menubars):
14405         * menubar-msw.c (mswindows_free_frame_menubars):
14406         * menubar-msw.c (mswindows_popup_menu):
14407         Fixed a bug in handling accelerators where an extra character
14408         would be displayed in the menu item.  Also generalized the
14409         function displayable_menu_item because it is now used by the
14410         dialog box code as well.  And finally, added code in the functions
14411         that create the menubar to extract a list of accelerators for the
14412         top level menubar, which is used in the event code to determine
14413         whether a particular alt-key combination should be used to invoke
14414         a menu item, or should be passed through to access the standard
14415         XEmacs keymap binding for this key combination.
14416
14417         Much needed GCPROing.
14418
14419         * menubar-x.c:
14420         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14421         * menubar-x.c (menu_item_descriptor_to_widget_value):
14422         * menubar-x.c (restore_in_menu_callback):
14423         * menubar-x.c (x_popup_menu):
14424         * menubar-x.c (menu_move_up):
14425         * menubar-x.c (menu_move_down):
14426         * menubar-x.c (menu_move_left):
14427         * menubar-x.c (menu_move_right):
14428         * menubar-x.c (menu_select_item):
14429         * menubar-x.c (command_builder_operate_menu_accelerator):
14430         * menubar-x.c (menu_accelerator_junk_on_error):
14431         * menubar-x.c (command_builder_find_menu_accelerator):
14432         * menubar-x.c (Faccelerate_menu):
14433         * menubar.h:
14434         Moved a whole bunch of code here that was previously in
14435         event-stream.c as described above.  There is also code connected
14436         to the new standard of adding an accelerator to the beginning of
14437         menu items that don't have one as described above and below.
14438
14439         * menubar.c:
14440         * menubar.c (menu_parse_submenu_keywords):
14441         * menubar.c (Fmenu_find_real_submenu):
14442         * menubar.c (Fnormalize_menu_item_name):
14443         * menubar.c (syms_of_menubar):
14444         * menubar.c (vars_of_menubar):
14445         * menubar.c (complex_vars_of_menubar):
14446
14447         a) Cleaned up a bunch of documentation and improved it.
14448
14449         b) XEmacs now automatically adds an accelerator onto the beginning
14450         of any menu items that don't have one.  I did this because there
14451         will inevitably be some menu items on the main menubar that don't
14452         have accelerators on them because the package that adds that
14453         particular menu item hasn't yet been fixed up to have accelerators
14454         in them and it looked rather strange to have some items with and
14455         some items without accelerators, especially since even in items
14456         without accelerators, you can, at least under windows, still
14457         access the item through an accelerator corresponding to the first
14458         character in the item's name.  If people don't like this behavior,
14459         I can add a variable to turn it off optionally, but I'm not sure
14460         this is a good idea because we really do need to have accelerators
14461         on all of the menu items, and if a package doesn't like the
14462         accelerators being put on the first character, then it should put
14463         the accelerators where they belong.
14464
14465         c) I made a behavior change, which is that the descriptor that
14466         specifies the text of the menu item, which formerly was just a
14467         string, can now also be an evaluated expression.  This makes this
14468         descriptor parallel with all of the others, which could also be
14469         evaluated expressions.  This also obviates the need for the
14470         keyword :label, which was previously listed in the documentation
14471         as unimplemented, and which was for the same purpose.
14472
14473         d) GCPROing.
14474
14475         * ntproc.c:
14476         * ntproc.c (new_child):
14477         * ntproc.c (sys_spawnve):
14478         * ntproc.c (find_child_console):
14479         * ntproc.c (sys_kill):
14480         Fixed compile warnings.  By the way, this file should really go
14481         away entirely, and this will happen as soon as Kirill makes his
14482         final round of process cleanups, which affect the function
14483         call-process.
14484
14485         * process-nt.c:
14486         * process-nt.c (struct nt_process_data):
14487         * process-nt.c (find_process_from_pid):
14488         * process-nt.c (send_signal_the_nt_way):
14489         * process-nt.c (enable_child_signals):
14490         * process-nt.c (find_child_console):
14491         * process-nt.c (send_signal_the_95_way):
14492         * process-nt.c (nt_finalize_process_data):
14493         * process-nt.c (ensure_console_window_exists):
14494         * process-nt.c (nt_create_process):
14495         * process-nt.c (nt_kill_child_process):
14496         * process-nt.c (nt_kill_process_by_pid):
14497         * process-nt.c (nt_open_network_stream):
14498         * process-nt.c (vars_of_process_nt):
14499         Copied over code from Emacs 20.5 to correctly send signals to sub-
14500         processes under Windows 95.  Also added code to automatically
14501         create and hide console window when a sub-process is created under
14502         Windows 95, which obviates the need for the separate runemacs.exe
14503         executable, and finally implemented some variables that were
14504         implemented in Emacs 20.5, but previously not in XEmacs.  These
14505         include mswindows- start-process-share-console and
14506         mswindows-start-process-inherit-error-mode. (Both of these only
14507         apply to Windows 95.)
14508
14509         * regex.c (regex_compile): Fixed a compile warning.
14510
14511         * select-msw.c:
14512         * select-msw.c (mswindows_own_selection):
14513         * select-msw.c (mswindows_get_foreign_selection):
14514         * select-msw.c (mswindows_disown_selection):
14515         * select-msw.c (console_type_create_select_mswindows):
14516         * select-msw.c (syms_of_select_mswindows):
14517         Cleaned up the file and implemented the device method
14518         selection_exists_p, which had accidentally been left out.  Also
14519         removed four lisp functions that were remnants from before the
14520         time when the selection code was properly device abstracted.
14521         These functions are no longer needed because there are generic
14522         equivalents, and because they were added recently and don't exist
14523         in FSF Emacs, I don't think there's any problem with just deleting
14524         them.
14525
14526         * sysdep.c:
14527         * sysdep.c (sys_subshell):
14528         Fixed a compile warning, although in this case there's probably
14529         something wrong with this code, and it ought to be looked into
14530         more thoroughly by somebody who understands it.
14531
14532         * window.c:
14533         * window.c (Fwindow_text_area_height):
14534         * window.c (Fwindow_width):
14535         * window.c (Fwindow_full_width):
14536         * window.c (Fwindow_pixel_width):
14537         * window.c (debug_print_window):
14538         * window.c (syms_of_window):
14539         Added functions window-text-area-height and window-full-width,
14540         which are functions for returning various width and height
14541         characteristics of a window. (One of these functions is necessary
14542         for making the file dialog box work correctly, and the other one
14543         was added for completeness.)  Also added a table to the
14544         documentation for window-height which describes the entire scheme
14545         for accessing width and height characteristics of a window.
14546
14547 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14548
14549         * nt.c (fstat): Added a comment for another problem with
14550         non-encapsulated [f]stat(), reported by Adrian Aichner
14551         <aichner@ecf.teradyne.com>.
14552
14553 2000-03-11  Andy Piper  <andy@xemacs.org>
14554
14555         * window.c (make_dummy_parent): initialize subwindow instance
14556         cache.
14557         (Fset_window_configuration): zero extent_modiff.
14558
14559 2000-03-10  Andy Piper  <andy@xemacs.org>
14560
14561         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14562         more changes can be triggered.
14563         (Fredisplay_frame): ditto.
14564         (Fredraw_device): ditto.
14565         (Fredisplay_device): ditto.
14566         (redisplay_frame): make non-static.
14567         (redisplay_frame): call update_frame_gutter_geometry outside of
14568         display proper.
14569
14570         * gutter.h: declare update_frame_gutter_geometry.
14571
14572         * redisplay.h: declare redisplay_frame.
14573
14574         * gutter.c (update_frame_gutter_geometry): move geometry changes
14575         in update_frame_gutters here. Geometry changes can only occur
14576         outside of redisplay.
14577         (update_frame_gutters): remove geometry change code.
14578         (Fredisplay_gutter_area): make sure that we are in display when we
14579         update and that we have flushed any size changes.
14580
14581 2000-03-11  Andy Piper  <andy@xemacs.org>
14582
14583         * alloc.c (pdump_dump_data): remove i & count shadows.
14584
14585 2000-02-27  Mike Alexander  <mta@arbortext.com>
14586
14587         * sysdep.h: Declare pdump_read_file
14588
14589         * sysdep.c (pdump_read_file): New function
14590
14591         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14592         dump data
14593
14594 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14595
14596         * lrecord.h: add `lrecord_type_pgsetenv'.
14597
14598 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14599
14600         * symsinit.h: declare (vars|syms)_of* functions.
14601         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14602
14603 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14604
14605         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14606
14607         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14608         GCCs.
14609
14610         * emacs.c (main_1): Call postgres initialization code.
14611
14612         * postgresql.h: New file.  PostgreSQL RDBMS support.
14613         * postgresql.c: New file.
14614
14615 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14616
14617         * redisplay-output.c (redisplay_output_display_block): Disable
14618         redundant code.
14619
14620 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14621
14622         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14623         (Fcanna_henkan_next): Ditto.
14624         (Fcanna_bunsetu_henkou): Ditto.
14625         (Fcanna_henkan_kakutei): Ditto.
14626         (Fcanna_henkan_end): Ditto.
14627         (Fcanna_henkan_quit): Ditto.
14628         (Fcanna_henkan_next): Set retun value correctly.
14629         (c2mu): Use unsigned char instead of signed char.
14630
14631 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14632
14633         * emacs.c (main_1): Always call syms_of_gui.
14634         * inline.c: include gui.h
14635
14636 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14637
14638         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14639         converted to Lisp_Object.
14640         (Qtop_bottom): New variable.
14641         (syms_of_redisplay): Initialize it.
14642         * redisplay.h (Vvisible_bell): Ditto.
14643         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14644         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14645         only flash top and bottom.
14646
14647 2000-03-08  Andy Piper  <andy@xemacs.org>
14648
14649         * buffer.c (Frename_buffer): record new buffer name the right way.
14650
14651 2000-03-08  Andy Piper  <andy@xemacs.org>
14652
14653         * glyphs.c (update_subwindow): increase hash depth so that widget
14654         items get picked up properly.
14655
14656         * redisplay-output.c (compare_runes): increase hash depth so that
14657         widget items get picked up properly.
14658
14659 2000-03-08  Andy Piper  <andy@xemacs.org>
14660
14661         * gutter.c (output_gutter): add some debug.
14662
14663         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14664         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14665         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14666
14667         * redisplay-output.c (compare_runes): use display_hash to
14668         determine if glyphs really are not the same.
14669
14670         * glyphs.c (update_subwindow): check display_hash to see if
14671         anything really needs to be updated. If not then do
14672         nothing. Record the display_hash after updating.
14673         (image_instance_equal): compare the image_instance face also.
14674
14675 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14676
14677         * redisplay.h: Fix comment style.
14678
14679 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14680
14681         * consle-msw.h (struct mswindows_frame):
14682         Added new member paint_pending to indicate whether a WM_PAINT
14683         magic event has been queued for this frame.
14684
14685         * event-msw.c (mswindows_drain_windows_queue):
14686         Don't queue a WM_PAINT magic event if one is already queued.
14687         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14688
14689         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14690
14691 2000-03-07  Didier Verna  <didier@xemacs.org>
14692
14693         * dired.c: #include `regex.h' after `sysfile.h'.
14694
14695 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14696
14697         * sound.c (init_nas_sound): Fix compiler warning.
14698
14699         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14700         (FREE_STRUCT_P):
14701         (MARK_STRUCT_AS_FREE):
14702         (MARK_STRUCT_AS_NOT_FREE):
14703         Make `gcc -fstrict-aliasing' work properly.
14704
14705 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14706
14707         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14708         (mswindows_delete_device): Call CoUnnitialize().
14709
14710         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14711
14712 2000-02-25    <CraigL@DyCon.com>
14713
14714         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14715         <errno.h>.
14716
14717         * sysdep.c: This extern declaration for environ prevents MinGW
14718         from finding the variable in CRTDLL.DLL.
14719
14720         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14721         windows headers.
14722         (SHGFI_EXETYPE): ..
14723         (WM_MOUSEWHEEL): ..
14724         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14725         definitions.
14726         (MMRESULT): Removed, now defined in cygwin's windows headers.
14727         (TIMECAPS): ..
14728         (uid_t,gid_t,pid_t,ssize_t): ..
14729         (_timeb): Removed, MinGW defines both _timeb and timeb.
14730         (HAVE_H_ERRNO): Added.
14731         (HAVE_TZNAME): Added, configure is not detecting this.
14732
14733 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14734
14735         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14736         * syntax.c (syntax_match): Use it.
14737
14738         * cmds.c: Import auto-fill-chars from FSF Emacs.
14739         (Vauto_fill_chars): New variables.
14740         (internal_self_insert): Check Vauto_fill_chars.
14741         (vars_of_cmds):
14742         Declare auto-fill-chars as a Lisp variable and initialize it.
14743
14744 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14745
14746         * fileio.c (Fmake_symbolic_link):
14747         (Ffile_symlink_p):
14748         Run handlers even if local machine doesn't have symlinks.
14749
14750 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14751
14752         * event-msw.c (mswindows_drain_windows_queue):
14753         Don't generate paint magic events for non-XEmacs frames.
14754
14755 2000-03-05  Andy Piper  <andy@xemacs.org>
14756
14757         * redisplay.c (redisplay_frame): generate_displayable_area and
14758         friends assumes that we are not in GC, we therefore have to make
14759         sure that this doesn't happen.
14760
14761         * gutter.c (calculate_gutter_size): generate_displayable_area
14762         assumes that we are not in GC, we therefore have to make sure that
14763         this doesn't happen.
14764
14765 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14766
14767         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14768
14769 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14770
14771         * redisplay.c (regenerate_window): Make sure we set a sane value
14772         for end_pos even if we jump out of the loop.
14773         (regenerate_window): Answer Ben's question :-).
14774         (start_end_of_last_line): Add may_error argument.
14775         (start_of_last_line):
14776         (end_of_last_line): Pass may_error = 0.
14777         (end_of_last_line_may_error): New function.
14778         (pixel_to_glyph_translation): Use it, so we don't crash in
14779         event_to_glyph.
14780
14781 2000-03-04  Andy Piper  <andy@xemacs.org>
14782
14783         * window.h (struct window): add gutter_extent_modiff.
14784
14785         * window.c (allocate_window): zero out gutter_extent_modiff.
14786
14787         * redisplay.h: declare sync_display_line_structs.
14788
14789         * redisplay.c (add_glyph_rune): add a better comment.
14790
14791         * redisplay-output.c (sync_display_line_structs): made non-static.
14792         (compare_runes): remove unneccesary glyph cachel access.
14793
14794         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14795
14796         * gutter.c (output_gutter): don't output the gutter if extent
14797         changes only involve extents in buffers. use 4 sets of display
14798         lines.
14799         (gutter_extent_signal_changed_region_maybe): new function. Mark
14800         extents in gutters as changed.
14801         (update_frame_gutters): use 4 sets of display lines.
14802         (reset_gutter_display_lines): ditto.
14803         (free_frame_gutters): ditto.
14804         (redraw_exposed_gutter): force output of gutters.
14805
14806         * frame.h (struct frame): add 4 sets of gutter display lines.
14807
14808         * extents.c: (extent_changed_for_redisplay): signal changes to
14809         extents in strings in the gutter as well as extents in buffers.
14810
14811 2000-03-02  Andy Piper  <andy@xemacs.org>
14812
14813         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14814
14815         * frame.c (Fmake_frame): make sure the gutters get initialized
14816         after the frame is visible.
14817         (set_frame_selected_window): re-arrange compilation macros a
14818         little.
14819         (change_frame_size_1): mark gutters changed.
14820
14821         * device.c (Fset_device_class): mark gutters changed.
14822
14823 2000-03-01  Andy Piper  <andy@xemacs.org>
14824
14825         * window.c (window_top_frame_gutter_height): deleted.
14826         (window_bottom_frame_gutter_height): ditto.
14827         (window_left_frame_gutter_height): ditto.
14828         (window_right_frame_gutter_height): ditto.
14829         (window_top_gutter_height): don't use them.
14830         (window_bottom_gutter_height): ditto.
14831         (window_left_gutter_width): ditto.
14832         (window_right_gutter_width): ditto.
14833         (Fsplit_window): ditto.
14834         (Fwindow_pixel_edges): don't use border dimensions here.
14835
14836         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14837         (update_scrollbar_instance): ditto.
14838
14839         * redisplay.c (generate_modeline): don't take gutters into account.
14840         (generate_modeline): ditto.
14841         (redisplay_frame): small gutter display optimization.
14842
14843         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14844
14845         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14846         gutters into account.
14847
14848         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14849         for window position and type.
14850
14851         * gutter.c (get_gutter_coords): fix for frame gutters.
14852         (update_frame_gutters): update frame geometry if the gutters have
14853         changed.
14854         (init_frame_gutters): record current gutter geometries.
14855
14856         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14857         var.
14858         (mswindows_widget_instantiate): ditto.
14859
14860         * frame.h (struct frame): add current_gutter_bounds.
14861
14862         * frame.c (change_frame_size_1): position window and minibuffer
14863         appropriately taking into account the frame gutters.
14864
14865         * frame-x.c: (x_initialize_frame_size): take into account the
14866         frame gutters.
14867
14868 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14869
14870         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14871
14872 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14873
14874         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14875
14876 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14877
14878         * file-coding.c (reset_decoding_stream): Clear previous
14879         detection state when autodetect.
14880
14881 2000-02-29  Didier Verna  <didier@xemacs.org>
14882
14883         * extents.c (set_extent_glyph_1): don't require extents to be
14884         attached.
14885
14886 2000-02-27  Andy Piper  <andy@xemacs.org>
14887
14888         * gutter.c (Fset_default_gutter_position): don't default left and
14889         right gutter visibility to t.
14890         (Fset_default_gutter_position): run
14891         default-gutter-position-changed-hook.
14892         (syms_of_gutter): add default-gutter-position-changed-hook.
14893
14894 2000-02-26  Andy Piper  <andy@xemacs.org>
14895
14896         * specifier.c (Fmake_specifier): add gutter references.
14897
14898         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14899
14900         * lisp.h: declare Fvalid_plist_p.
14901
14902         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14903         as changed.
14904         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14905         well as its visibility so that it gets reconstructed.
14906         (construct_window_gutter_spec): new function. Construct a string
14907         to be displayed in the gutter from a plist of strings. Take care
14908         to only use elements that are declared as visible.
14909         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14910         WINDOW_GUTTER.
14911         (gutter_validate): allow plists of strings in the specifier.
14912         (gutter_specs_changed): construct the real_gutter from the gutter
14913         specs using construct_window_gutter_spec.
14914         (gutter_visible_validate): gutter-visible is a new specifier type.
14915         (Fgutter_visible_specifier_p): new function for the new specifier.
14916         (syms_of_gutter): declare gutter-visible and
14917         Fgutter_visible_specifier_p.
14918         (specifier_type_create_gutter): intitalize new gutter-visible
14919         specifier.
14920         (reinit_specifier_type_create_gutter): ditto.
14921         (specifier_vars_of_gutter): use new specifier type for gutter
14922         visibility.
14923         (init_frame_gutters): construct real_gutter correctly.
14924         (Fgutter_specifier_p): beef up documentation.
14925         (Fgutter_size_specifier_p): ditto.
14926
14927         * winslots.h: add real_gutter slots.
14928
14929 2000-02-25  Andy Piper  <andy@xemacs.org>
14930
14931         * device-msw.c: Be kind to older cygwin versions. From Raymond
14932         Toy <toy@rtp.ericsson.se>.
14933
14934         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14935         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14936
14937 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14938
14939         * elhash.c (MARK_OBJ): Practice macro hygiene.
14940
14941 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14942
14943         * miscplay.c: s/__inline__/inline/g;
14944         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14945         (get_device_compdc): INLINE ==> static inline
14946         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14947         find -name '*.h' | \
14948         xargs global-replace \
14949         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14950
14951 2000-02-25  Andy Piper  <andy@xemacs.org>
14952
14953         * window.c (window_top_frame_gutter_height): new function.
14954         (window_top_window_gutter_height): ditto.
14955         (window_top_gutter_height): use them.
14956         (window_bottom_frame_gutter_height): new function.
14957         (window_bottom_window_gutter_height): ditto.
14958         (window_bottom_gutter_height): use them.
14959         (window_left_window_gutter_width): new function.
14960         (window_left_frame_gutter_width): ditto.
14961         (window_left_gutter_width): use them.
14962         (window_right_window_gutter_width): new function.
14963         (window_right_frame_gutter_width): ditto.
14964         (window_right_gutter_width): use them.
14965         (window_pixel_height): new function. calulate window pixel height
14966         with frame gutter involvement.
14967         (Fsplit_window): calculate new sizes taking frame gutters into
14968         account.
14969         (window_char_height_to_pixel_height): don't include frame gutters.
14970         (window_char_height): use window_pixel_height.
14971         (window_pixheight): rename from window_pixel_height.
14972         (change_window_height): use it.
14973         (window_pixel_height_to_char_height): don't include frame gutters.
14974         (window_char_width_to_pixel_width): ditto.
14975
14976 2000-02-25  Andy Piper  <andy@xemacs.org>
14977
14978         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14979         if it is.
14980
14981 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14982
14983         * alloc.c (staticpro):
14984         (staticpro_nodump):
14985         (dumpstruct):
14986         (dumpopaque):
14987         (pdump_wire):
14988         (pdump_wire_list):
14989         (compact_string_chars):
14990         (pdump_dump_wired):
14991         Convert:  if (foo) abort();  ==>  assert (! foo);
14992
14993         * eldap.c (Fldap_search_basic):
14994         (Fldap_add):
14995         (Fldap_modify):
14996         (Fldap_delete):
14997         Fix compiler warnings, and possible crashes if (random) return
14998         value were to be used.
14999
15000 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15001
15002         * device-msw.c: Workaround ResetDC failure.
15003
15004         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
15005         applying a devmode.
15006
15007         * redisplay-msw.c (get_frame_dc): Added start_page_p.
15008         (mswindows_text_width): Do not start printer page.
15009
15010         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
15011
15012         * glyphs-msw.c: Added image methods to msprinter console and
15013         msprinter-specific image instantiation.
15014
15015 2000-02-20  Mike Alexander  <mta@arbortext.com>
15016
15017         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
15018         to avoid crashes when selection-sets-clipboard is on
15019         (mswindows_own_selection): ditto
15020
15021 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15022
15023         * glyphs-msw.c:
15024         * redisplay-msw.c (get_frame_dc):
15025         (get_frame_compdc):
15026         * console-msw.h:
15027         * device-msw.c (mswindows_init_device):
15028         (mswindows_delete_device):
15029         (msprinter_init_device):
15030         (msprinter_delete_device):
15031         * frame-msw.c (mswindows_init_frame_1):
15032         (mswindows_delete_frame):
15033         (msprinter_init_frame_3):
15034         (msprinter_delete_frame): Move compatible DC to device object from
15035         frame object, for both mswindows and msprinter. Only one at a time
15036         is needed, it is a real waste to have one per frame!
15037
15038 2000-02-23  Andy Piper  <andy@xemacs.org>
15039
15040         * glyphs.c: add dynamic width and height elements.
15041         (image_instance_equal): ditto.
15042
15043         * glyphs-widget.c (widget_query_geometry): calculate width and
15044         height dynamically if required.
15045         (initialize_widget_image_instance): initialize dynamic dimensions.
15046         (widget_instantiate): pick-up dynamic dimensions.
15047
15048         * glyphs.h (struct Lisp_Image_Instance): add width and height for
15049         dynamic determination. Add appropriate macros.
15050
15051         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
15052         dimensions safe.
15053         (WINDOW_GUTTER_SIZE): ditto.
15054         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
15055
15056         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
15057         inline.
15058         (get_frame_dc): ditto.
15059
15060         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
15061         here.
15062
15063 2000-02-23  Martin Buchholz <martin@xemacs.org>
15064
15065         * XEmacs 21.2.31 is released.
15066
15067 2000-02-22  Ben Wing <ben@xemacs.org>
15068
15069         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
15070
15071 2000-02-22  Andy Piper  <andy@xemacs.org>
15072
15073         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
15074
15075 2000-02-21  Mike Sperber <mike@xemacs.org>
15076
15077         * .dbxrc:
15078         * .gdbinit:
15079         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
15080         variables.
15081
15082 2000-02-21  Mike Sperber <mike@xemacs.org>
15083
15084         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
15085
15086 2000-02-21  Martin Buchholz <martin@xemacs.org>
15087
15088         * XEmacs 21.2.30 is released.
15089
15090 2000-02-20  Martin Buchholz  <martin@xemacs.org>
15091
15092         Performance hacking.
15093         * *.c (syms_of_*):
15094         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
15095         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
15096         * emacs.c (main_1):
15097         * lisp.h (DEFUN):
15098         * console.c (DEFVAR_CONSOLE_LOCAL_1):
15099         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
15100         * symeval.h (DEFVAR_SYMVAL_FWD):
15101         * symbols.c (guts_of_unbound_marker):
15102         Make all c_readonly objects also lisp_readonly and marked for life.
15103         * lrecord.h (struct lrecord_implementation):
15104         Document flags better.
15105         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
15106         * lrecord.h (DECLARE_LRECORD):
15107         * lrecord.h (XSETRECORD):
15108         * lrecord.h (RECORDP):
15109         * lrecord.h (RECORD_TYPEP):
15110         * lrecord.h (RECORD_MARKER): New.
15111         * lrecord.h (error_check_*):
15112         * lrecord.h (CONCHECK_NONRECORD):
15113         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
15114         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
15115         * lrecord.h (set_lheader_implementation):
15116         * lrecord.h (enum lrecord_type): New.
15117         * symeval.h (SYMBOL_VALUE_MAGIC_P):
15118         * alloc.c (disksave_object_finalization_1):
15119         * alloc.c (mark_object):
15120         * alloc.c (lrecord_type_index):
15121         * alloc.c (tick_lcrecord_stats):
15122         * alloc.c (Fgarbage_collect):
15123         * alloc.c (init_alloc_once_early):
15124         * alloc.c (pdump_load):
15125         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
15126         * alloc.c (lrecord_type_index): Delete.
15127         Make lisp object type indexes be constant.
15128           Makes (byte-compile) 5% faster.
15129         Put all marker functions into their own array.
15130           Makes (garbage-collect) 5% faster.
15131         Optimize SYMBOL_VALUE_MAGIC_P.
15132           Makes (byte-compile) 2-3% faster.
15133         * config.h.in (gc_checking_assert): New.
15134         * alloc.c: Use gc_checking_assert().
15135         * .dbxrc: Make compatible with new object type implementation.
15136         * .gdbinit: Make compatible with new object type implementation.
15137         * alloc.c: Delete all symbols defined only for debugging, such as
15138         Lisp_Type_Vector and lrecord_charset.
15139
15140 2000-02-21  Andy Piper  <andy@xemacs.org>
15141
15142         * gui-msw.c (Fmswindows_shell_execute): fix file location
15143         problems.
15144
15145         * buffer.c (Fkill_buffer): remove buffer from alist buffer
15146         unshowing so that set_window_buffer doesn't undo
15147         kill_buffer_hook's hard work.
15148
15149         * glyphs-widget.c (tab_control_query_geometry): don't count the
15150         first item when calculating geometry.
15151
15152         * glyphs.c (map_subwindow): remove redundant code.
15153         (update_frame_subwindows): be more circumspect about when to
15154         update subwindows.
15155
15156         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
15157         when items haven't changed. Update faces if faces have changed as
15158         well as just the widget face.
15159         (x_tab_control_update): Update faces if faces have changed as well
15160         as just the widget face.
15161
15162 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15163
15164         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
15165         registration.
15166         (build_syscolor_string): Use mswindows_color_to_string to try to
15167         get a named color.
15168         (mswindows_device_system_metrics): Reverse the foreground and
15169         background colors so that they match the documentation.
15170
15171         * objects-msw.c: (mswindows_X_color_map): tweak some values so
15172         they match the default Windows palette.
15173         (mswindows_color_to_string): New function.
15174
15175 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15176
15177         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
15178
15179 2000-02-18  Olivier Galibert  <galibert@pobox.com>
15180
15181         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
15182         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
15183
15184         * symbols.c (init_symbols_once_early): Removed obsolete
15185         DATA_SEG_BITS related kludge.
15186         (defvar_magic): Ditto.
15187
15188         * malloc.c: Removed obsolete DATA_SEG_BITS
15189         * ralloc.c: Ditto.
15190         * mem-limits.h: Ditto.
15191
15192         * Makefile.in.in: Removed obsolete HAVE_SHM
15193         * emacs.c: Ditto.
15194
15195 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15196
15197         *  device-msw.c (mswindows_delete_device): Free DDE string
15198         handles.
15199
15200 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15201
15202         * keymap.c (get_keyelt):
15203         * unexnt.c (unexec):
15204         * vm-limit.c (memory_warnings):
15205         * ntheap.c (recreate_heap):
15206         * ntheap.h (UNINIT_PTR):
15207         * select-msw.c (Fmswindows_get_clipboard):
15208         (Fmswindows_set_clipboard):
15209         * objects-msw.h (MSWINDOWS_BAD_HFONT):
15210         * objects-msw.c:
15211         * menubar-msw.c (displayable_menu_item):
15212         * glyphs-msw.c:
15213         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
15214         * sysdep.c (sys_subshell):
15215         * process-nt.c (nt_create_process):
15216         * nt.c (normalize_filename):
15217         (dostounix_filename):
15218         (unixtodos_filename):
15219         * ntproc.c (win32_executable_type):
15220         * ntplay.c (play_sound_data_1):
15221         (play_sound_file):
15222         * editfns.c (get_home_directory):
15223         * event-msw.c (struct winsock_stream):
15224         (mswindows_dde_callback):
15225         * device-msw.c (msprinter_init_device):
15226         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
15227
15228         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
15229         mswindows_clear_toolbar were swapped!
15230
15231         * objects-msw.c:(colormap_t):
15232         (fontmap_t):
15233         * emacs.c (struct standard_args): Fixed const jumble.
15234
15235         * glyphs-widget.c (update_widget): Fixed comparison notation.
15236
15237         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
15238
15239         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
15240         __declspec(noreturn) syntax.
15241
15242 2000-02-19  Martin Buchholz  <martin@xemacs.org>
15243
15244         * eldap.c (Fldap_open):
15245         (Fldap_search_basic):
15246         (Fldap_add):
15247         (Fldap_modify):
15248         Use new coding system conversion macros.
15249
15250 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15251
15252         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
15253
15254 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
15255
15256         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
15257         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15258
15259         * eldap.c (Qadd, Qreplace): New constant symbols
15260         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
15261         interruptions by XEmacs signals
15262         Remove unnecessary calls to slow_down_interrupts and
15263         speed_up_interrupts
15264         (Fldap_search_basic): Renamed from Fldap_search_internal
15265         Added new optional parameter VERBOSE that triggers the
15266         display of progress messages
15267         Remove unnecessary calls to slow_down_interrupts and
15268         speed_up_interrupts
15269         LDAP result code analysis rewritten
15270         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15271         (syms_of_eldap): Define the new symbols and functions
15272
15273
15274 2000-02-17  Martin Buchholz  <martin@xemacs.org>
15275
15276         * realpath.c: Determine PATH_MAX maximally portably.
15277
15278         * insdel.c (bytecount_to_charcount): Optimize.
15279         The function used to be optimized for entirely ASCII sequences.
15280         Now it is optimized for successive characters from the same
15281         charset.  This also wins big for _mostly_ ASCII sequences.
15282
15283         * fileio.c (Ffile_truename): convert return from realpath() using
15284         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
15285         - Rewrite GCPROing slightly.
15286
15287         * sysdep.c (sys_open): Do filename conversion, like all other
15288         sys_* functions.  Fixes bug:
15289         (let ((file-name-coding-system 'iso-8859-2))
15290            (write-region x y latin2-name))
15291         ==> writes filename using internal encoding.
15292
15293 2000-02-18  Martin Buchholz  <martin@xemacs.org>
15294
15295         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
15296         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
15297         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
15298         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
15299         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
15300         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
15301         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
15302         (CONST_IF_NOT_DEBUG): Delete.
15303         * alloc.c (this_one_is_unmarkable): Delete.
15304         (mark_object): Don't check for this_one_is_unmarkable. Use the
15305         c_readonly flag instead.
15306         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
15307
15308 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15309
15310         * event-msw.c (mswindows_drain_windows_queue):
15311         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
15312         away redundant repaint events.
15313
15314 2000-02-17  Andy Piper  <andy@xemacs.org>
15315
15316         * redisplay.h: declare mark_redisplay_structs.
15317
15318         * redisplay.c (redisplay_window):
15319         (redisplay_frame): don't check subwindows_state_changed.
15320         (mark_redisplay): mark gutters here.
15321
15322         * glyphs.c: (instantiate_image_instantiator): always layout if we
15323         haven't done so already.
15324         (allocate_image_instance): don't mark as dirty.
15325         (update_subwindow): bind inhibit_quit.
15326
15327         * gutter.c (mark_gutters): new function.
15328
15329         * glyphs-x.c (x_update_widget): Always resize to get round a
15330         widget bug.
15331
15332         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
15333         breaking absolutely everything.
15334
15335         * gutter.h: declare mark_gutters.
15336
15337 2000-02-16  Martin Buchholz <martin@xemacs.org>
15338
15339         * XEmacs 21.2.29 is released.
15340
15341 2000-02-15  Olivier Galibert  <galibert@pobox.com>
15342
15343         * fns.c (size_bit_vector): Fix computation of the size.
15344
15345 2000-02-15  Martin Buchholz  <martin@xemacs.org>
15346
15347         * *.[ch]: Change CONST to const globally.
15348         find -name '*.[ch]' | \
15349         xargs global-replace \
15350         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
15351         - Remove vestigial references to CONST_IS_LOSING
15352
15353 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15354
15355         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
15356         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
15357         events instead of dispatching them directly.
15358         (mswindows_handle_paint): New function to do repainting.
15359         (mswindows_wnd_proc):
15360         (emacs_mswindows_handle_magic_event): Call above function.
15361
15362 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15363
15364         * objects-msw.c (mswindows_create_font_variant): Return the new
15365         font handle.
15366         (initialize_font_instance): Get font metrics from the underlined
15367         variant of the font to cope with the case where the underlined
15368         font has a bigger descent.
15369
15370 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15371
15372         * gui.c (gui_item_accelerator): Return the first underlined
15373         character in item name.
15374
15375 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15376
15377         * lisp.h: Added Qprinter.
15378
15379         * general.c (syms_of_general): Initialized it.
15380
15381         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
15382         (get_frame_dc):
15383         (get_frame_compdc): Made inline.
15384
15385         * console.h (struct console_methods): Added eject_page method.
15386
15387         * frame.h: Added FRAME_DISPLAY_P and friends.
15388         Aligned backslahes in many macros in more readable fashion.
15389         Added page_number to struct frame, and an accessor macro
15390         for it.
15391
15392         * defice.h: Added DEVICE_DISPLAY_P and friends.
15393
15394         * device.c (Fdevice_printer_p): Used these.
15395
15396         * frame.c (allocate_frame_core): Initialize page number.
15397         (Fprint_job_page_number):
15398         (Fprint_job_eject_page): Implemented.
15399
15400         * frame-msw.c (msprinter_eject_page): Added method.
15401         (msprinter_start_page): Added.
15402
15403         * window.c (Fwindow_truncated_p): Fixed docstring.
15404         (Fwindow_last_line_visible_height): Implemented.
15405
15406 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15407
15408         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
15409
15410 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15411
15412         * syntax.c (scan_words): Always advance at least one character.
15413
15414 2000-02-13  Andy Piper  <andy@xemacs.org>
15415
15416         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
15417         to make sure the glyph is in the cachels.
15418
15419         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
15420         global image instance flag.
15421         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
15422         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
15423
15424         * glyphs.c (allocate_image_instance): set dirty bits correctly.
15425         (Fset_image_instance_property): mark layout as changed.
15426         (invalidate_glyph_geometry_maybe): mark layout as changed.
15427         (glyph_width): use new NEEDS_LAYOUT macro.
15428         (glyph_ascent): ditto.
15429         (glyph_descent): ditto.
15430         (glyph_height): ditto.
15431         (image_instance_layout): mark layout as clean after laying out.
15432         (update_subwindow): don't mark layout as clean here.
15433
15434         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
15435         should no longer be needed.
15436
15437         * glyphs-x.c (x_update_widget): sanitize asserts.
15438         (x_finalize_image_instance): sanitize assignment to widgets.
15439
15440         * glyphs-widget.c (widget_instantiate): don't need to clear the
15441         layout flag here.
15442
15443 2000-02-13  Martin Buchholz  <martin@xemacs.org>
15444
15445         * sysdep.c (getcwd): Use standard prototype.
15446         * sysdep.h (getcwd): Use standard prototype.
15447
15448         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
15449         (sequence, start, end).
15450         Remove redundant type checking.
15451         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
15452         view of `caller-protects') to avoid a crash where the real fix was
15453         found elsewhere.
15454
15455 2000-02-12  Martin Buchholz  <martin@xemacs.org>
15456
15457         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
15458
15459         * s/sol2.h: Remove feature macro initialization.
15460
15461         * alloc.c (alloc_lcrecord): Add more type checking assertions.
15462         (vector_hash): New.  Code from internal_hash.
15463         * lrecord.h:
15464         Fix up allocation subsystem comments.
15465
15466         * config.h.in: Add __EXTENSIONS__ for Solaris.
15467
15468         * systime.h (EMACS_GETTIMEOFDAY): New.
15469         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
15470         Remove Solaris-specific code.
15471         Use void* for the (ignored) second arg for gettimeofday().
15472
15473         * elhash.c (hash_table_hash): Implement it, finally.
15474         * elhash.c:  Use hashcode_t.
15475
15476         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
15477         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
15478
15479         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
15480         * fns.c (size_bit_vector):
15481         * alloc.c (size_vector):
15482         (make_vector_internal):
15483         (make_bit_vector_internal):
15484         (sweep_bit_vectors_1):
15485         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
15486
15487 2000-02-10  Martin Buchholz  <martin@xemacs.org>
15488
15489         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
15490         Include strings.h to avoid warnings for bzero and strcasecmp.
15491
15492 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15493
15494         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
15495         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
15496
15497         * fns.c (size_bit_vector): New.  Declare bit vectors as a
15498         sequence.
15499
15500 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15501
15502         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15503         use a value field instead.
15504         (symbol_value_forward_forward): Use value field.
15505         (DEFVAR_SYMVAL_FWD): Use value field.
15506         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
15507         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15508         (DEFVAR_CONST_INT): Ditto.
15509         (DEFVAR_BOOL): Ditto.
15510         (DEFVAR_CONST_BOOL): Ditto.
15511         (DEFVAR_INT_MAGIC): Ditto.
15512         (DEFVAR_BOOL_MAGIC): Ditto.
15513
15514         * symbols.c (guts_of_unbound_marker): Use value field.
15515         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15516         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15517
15518         * lisp.h: Declare dumpopaque and noninteractive1.
15519
15520         * alloc.c (dumpopaque): Added.
15521         (pdump_dump_opaquevec): Added.
15522         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15523         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15524         noninteractive.
15525
15526 2000-02-10  Andy Piper  <andy@xemacs.org>
15527
15528         * glyphs.c (image_instance_layout): if the size changes, mark it
15529         as such.
15530
15531         * redisplay-output.c (redisplay_output_layout): Update the
15532         subwindow here.
15533         (redisplay_output_subwindow): ditto.
15534
15535         * glyphs.c (update_subwindow): make sure we reset flags for
15536         layouts as well as everything else.
15537
15538         * glyphs-widget.c (layout_layout): don't need to set the instances
15539         dimensions here.
15540
15541 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15542
15543         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15544         not HAVE_DLOPEN, which is a lower-level thing.
15545
15546         * .cvsignore: Ignore gmon.out
15547
15548 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15549
15550         * .cvsignore: Ignore portable dumper xemacs.dmp file
15551
15552 2000-02-09  Andy Piper  <andy@xemacs.org>
15553
15554         * redisplay-output.c (redisplay_output_layout): be more clever
15555         about when we output based on the changed flags.
15556
15557         * glyphs.h (struct image_instantiator_methods): add update_method.
15558         (struct Lisp_Image_Instance): add changed flags. Declare new
15559         macros for manipulating them.
15560
15561         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15562         (image_instance_parent_glyph): find an image_instance's parent
15563         glyph or image_instance.
15564         (image_instance_layout): mark the size as changed.
15565         (set_image_instance_dirty_p): new function. mark an image
15566         instance, plus all of its parents, as dirty.
15567         (Fset_image_instance_property): use it.
15568         (Fglyph_animated_timeout_handler): use it.
15569         (update_subwindow): call update_widget and device methods for
15570         update_subwindow. Mark all changed flags as clean.
15571         (Fresize_subwindow): mark size as changed.
15572
15573         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15574         failures.
15575         (x_update_subwindow): only resize subwindows here.
15576         (x_update_widget): new function. Update all changed properties of
15577         a widget.
15578         (x_resize_subwindow): deleted.
15579         (x_widget_set_property): deleted.
15580         (x_progress_gauge_set_property): deleted.
15581         (x_progress_gauge_update): new function. Implement recorded
15582         changes.
15583         (x_tab_control_update): ditto.
15584         (x_tab_control_set_property): deleted.
15585         (console_type_create_glyphs_x): declare new functions.
15586         (image_instantiator_format_create_glyphs_x): ditto.
15587
15588         * glyphs-widget.c (widget_set_property): mark text changed.
15589         (update_widget): new function. Update properties of a widget.
15590         (widget_instantiate): for layouts make sure we set their
15591         children's parent correctly.
15592         (tab_control_set_property): new function. Record changes that will
15593         take place under redisplay's control.
15594         (progress_gauge_set_property): ditto.
15595         (image_instantiator_progress_guage): declare new functions.
15596         (image_instantiator_tab_control): ditto.
15597
15598         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15599         now.
15600         (mswindows_update_widget): new function. Update all properties on
15601         a widget that have changed.
15602         (mswindows_button_update): new function. Update a button's set
15603         state.
15604         (mswindows_tab_control_update): new function. Update the items in
15605         a tab.
15606         (mswindows_tab_control_set_property): deleted.
15607         (mswindows_progress_gauge_update): new function. Update the
15608         progress gauge's progress.
15609         (mswindows_widget_set_property): deleted. This is all done
15610         asynchronously now.
15611         (mswindows_progress_gauge_set_property): ditto.
15612         (console_type_create_glyphs_mswindows): declare new methods.
15613         (image_instantiator_format_create_glyphs_mswindows): ditto.
15614
15615         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15616         (msprinter_set_frame_properties): ditto.
15617
15618         * console.h (struct console_methods): Add update_widget_method.
15619
15620 2000-02-09  Andy Piper  <andy@xemacs.org>
15621
15622         * gui-msw.c (Fmswindows_shell_execute): Make
15623         mswindows-shell-execute industrial strength.
15624
15625 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15626
15627         * lrecord.h: Make macro argument `props' match member function `plist'.
15628         * fns.c (Fget):
15629         * fns.c (Fput):
15630         * fns.c (Fremprop):
15631         * fns.c (Fobject_plist):
15632         * alloc.c:
15633         * symbols.c:
15634         Object property list frobbing cleanup.
15635         - Allow any lisp object (compared with `eq'), not just symbols, as
15636           keys in object plists.
15637         - Move symbol plist frobbing into symbols.c, where it belongs.
15638         - Move string plist frobbing into alloc.c, where it belongs.
15639         - Everything's an lrecord now, so no need to test for symbolp, etc.
15640         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15641
15642         * extents.c: Reorder code to remove declarations.
15643
15644         * frame.h (store_in_alist): Remove useless declaration.
15645
15646 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15647
15648         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15649         * config.h.in: Add HAVE_XCONVERTCASE.
15650
15651 2000-02-07  Andy Piper  <andy@xemacs.org>
15652
15653         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15654         it breaks many things.
15655
15656 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15657
15658         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15659         actually can start a common comment type.
15660         * src/syntax.h (SYNTAX_END_P): ditto for end.
15661
15662 2000-02-07  Martin Buchholz <martin@xemacs.org>
15663
15664         * XEmacs 21.2.28 is released.
15665
15666 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15667
15668         * event-Xt.c (x_keysym_to_character): New.
15669         (maybe_define_x_key_as_self_inserting_character): New.
15670         (x_has_keysym): New.
15671         Auto-define all keys on the keyboard as self-insert-key.
15672
15673 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15674
15675         * menubar.c (vars_of_menubar): A small code simplification.
15676
15677         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15678
15679         * ExternalShell.c:
15680         * ExternalClient.c:
15681         * EmacsShell-sub.c:
15682         * EmacsManager.c:
15683         * EmacsFrame.c:
15684         Use consistent style for specifying X resources.
15685
15686         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15687         This makes (dontusethis-set-symbol-value-handler) actually usable.
15688
15689         * lrecord.h (lrecord_decription_type):
15690         * alloc.c (pdump_register_sub):
15691         (pdump_dump_data):
15692         (pdump_reloc_one):
15693         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15694         Comply with XEmacs coding style.
15695         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15696         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15697
15698         * keymap.c (Faccessible_keymaps):
15699         Make (accessible-keymaps map "\C-h") do the Right Thing.
15700         Make (accessible-keymaps map []) do the Right Thing.
15701         Make (accessible-keymaps map "") do the Right Thing.
15702         (check_keymap_definition_loop): New function.
15703         (keymap_store_internal): Keep luser from shooting self in foot,
15704           via (define-key ctl-x-4-map "p" global-map).
15705         Remove fullness slot from struct Lisp_Keymap, since hash tables
15706         are now reliable.
15707         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15708
15709 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15710
15711         * redisplay.c (init_redisplay): Fix small memory leak.
15712         * elhash.h:
15713         * elhash.c (pdump_reorganize_hash_table):
15714         Rename from reorganize_hash_table. Change prototype.
15715         Reuse the original memory for hentries.  Save 100k.
15716         * alloc.c (PDUMP_READ): new macro.
15717         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15718         * alloc.c: No need to #ifndef before #undef.
15719
15720         * print.c: Allow debug_print() to print readably by modifying
15721         debug_print_readably.  Use consistent variable names.
15722
15723         * .dbxrc: Try to get things to work even if stopped in a function
15724         without source available by explicitly specifying source files.
15725 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15726
15727         * unexnt.c (_start): Removed bogus code which caused loading heap
15728         from differrent executable file.
15729         Removed bogus assignment to _fmode, which caused inconsistencies.
15730
15731 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15732
15733         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15734         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15735         Do not preliminary `#define signal sigset'.
15736
15737         * systime.h: Do not prototype environ on windows nt and cygwin,
15738         this conflicts with system header.
15739
15740         * syssignal.h: Use correct define for WINDOWSNT
15741
15742         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15743         with system header.
15744
15745         * sysdep.c (near start of file): Fixed commentary and rearranged
15746         ifdefs in readable order.
15747         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15748         (start_of_text):
15749         (end_of_text):
15750         (end_of_data): Do not compile in if using PDUMP.
15751
15752         * symsinit.h: Prototyped vars_of_nt().
15753
15754         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15755         (find_child_console): Use it.
15756         (sys_kill): Use it.
15757
15758         * ntheap.h: Do not extern os_subtype.
15759
15760         * ntheap.c (cache_system_info): Do not cache unneeded:
15761         nt_major_version, nt_minor_version and os_subtype.
15762         (recreate_heap): Do not compile in when PDUMPing.
15763
15764         * nt.c (geteuid and friends): Use the new varibale
15765         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15766         (init_user_info): Removed the above mentioned hackery.
15767         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15768         stat has been fixed in the C runtime.
15769         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15770
15771         * file-coding.c (struct file_coding_dump): Do not define
15772         ucs_to_mule_table in the struct if not MULE.
15773         (struct struct lrecord_description fcd_description_1): Do not dump
15774         the above.
15775
15776         * emacs.c (main_1): Call vars_of_nt().
15777         (right before Fdump_emacs_data): Don't need lastfile if using both
15778         portabe dumper and system malloc.
15779
15780         * alloc.c (Fmemory_limit): Conditionalized out.
15781         (pdump): Use OPEN_BINARY for the portable dump file.
15782         (pdump_load): Ditto.
15783
15784 2000-02-02  Mike Alexander  <mta@arbortext.com>
15785
15786         * nt.c (convert_time): Set tm_isdst before calling mktime and
15787         avoid calling it at all if the compiler supports 64 bit integers.
15788         Also initialize utc_base_ft before using it.
15789
15790 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15791
15792         * frame.c (change_frame_size_1): Take f->internal_border_width
15793         into consideration when calculating the width of the frame.
15794
15795 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15796
15797         * window.c (frame_min_height):
15798         (frame_size_valid_p):
15799         (frame_pixsize_valid_p): Added.
15800         (check_frame_size): Generalized.
15801
15802         * window.h: Prototyped the above.
15803
15804         * lisp.h:
15805         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15806         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15807         Deleted Vwin32_* and Vbinary_process_* unused variables.
15808
15809         * device-msw.c (msprinter_init_device): Do not get printer font
15810         list; Added DEVMODE functions.
15811
15812         * frame-msw.c: Added lots of printer code.
15813
15814         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15815         general.c.
15816
15817         * console-msw.h: Added more msprinter device private slots.
15818
15819 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15820
15821         * event-msw.c (key_needs_default_processing_p): Added.
15822         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15823
15824 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15825
15826         * glyphs.c (image_instance_layout): Mark image instance as clean
15827         after layout.
15828         (glyph_dirty_p): Removed redundant function.
15829         (invalidate_glyph_geometry_maybe): Added.
15830         (update_glyph_cachel_data): Call it.
15831
15832         * glyphs.h: Prototyped it.
15833
15834         * redisplay.c (add_glyph_rune): Call it.
15835         (redisplay_window): Reset glyphs cachels when frame faces have
15836         changed, thus forcing recomputation of built-in border glyphs.
15837
15838 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15839
15840         * Makefile.in.in: Make portable dumper and purify play well together.
15841         Add imperfect, but better than nothing, support for pdump.
15842         Remove xemacs.dmp when temacs is re-generated.
15843         Don't ignore errors when dumping xemacs.
15844
15845         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15846
15847 2000-01-28  Andy Piper  <andy@xemacs.org>
15848
15849         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15850         (setup_normal_frame): ditto.
15851         (setup_frame_without_minibuffer): ditto.
15852         (setup_minibuffer_frame): ditto.
15853         (delete_frame_internal): ditto.
15854         (Fmake_frame_invisible): ditto.
15855         (Ficonify_frame): ditto.
15856
15857         * window.h: change Fset_window_buffer signature.
15858
15859         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15860         (Fset_window_buffer): allow recording of buffer if the window is
15861         the selected window.
15862         (window_loop): Use new Fset_window signature.
15863
15864 2000-01-23  Daniel Pittman  <daniel@danann.net>
15865
15866         * config.h.in: Added template for `HAVE_ATHENA_3D'
15867
15868 2000-01-29  Andy Piper  <andy@xemacs.org>
15869
15870         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15871
15872         * gutter.c (output_gutter): Don't output if the window isn't live.
15873
15874 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15875
15876         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15877         of 01/12/00: Moved SetFocus back here where it belongs.
15878
15879 2000-01-23  Andy Piper  <andy@xemacs.org>
15880
15881         * s/cygwin32.h: declare printer things.
15882
15883 2000-01-26  Andy Piper  <andy@xemacs.org>
15884
15885         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15886         Alexander.
15887
15888 2000-01-24  Andy Piper  <andy@xemacs.org>
15889
15890         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15891         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15892
15893         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15894
15895         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15896
15897         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15898
15899         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15900         (mswindows_output_display_block): Avoid local shadows.
15901
15902         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15903         (mswindows_enqueue_mouse_button_event): ditto.
15904         (mswindows_handle_gui_wm_command): remove declaration.
15905
15906         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15907         warnings.
15908
15909         * console-msw.h: Avoid shadows.
15910         (mswindows_get_toolbar_button_text):
15911         (emacs_mswindows_create_stream_pair):
15912         (emacs_mswindows_delete_stream_pair):
15913         (mswindows_handle_toolbar_wm_command): declare.
15914
15915         * device-msw.c (build_syscolor_string): Avoid shadows.
15916
15917 2000-01-23  Andy Piper  <andy@xemacs.org>
15918
15919         * glyphs-widget.c (widget_instantiate): reverse the items for
15920         layouts so that children are in the expected order.
15921
15922 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15923
15924         * ralloc.c: safe_bcopy ==> memmove
15925         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15926         * s/msdos.h: Remove BCOPY macros.
15927         * insdel.c (gap_right): Remove BCOPY conditional code.
15928         * insdel.c (gap_left): Remove BCOPY conditional code.
15929         XEmacs demands a working ANSI C compiler - hence memmove.
15930
15931         * regex.c (regex_compile): Remove accidental use of trigraphs.
15932
15933 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15934
15935         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15936         event timestamp.
15937
15938 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15939
15940         * event-msw.c (mswindows_drain_windows_queue): Added the
15941         parameter.
15942         (mswindows_need_event): Commented the call to
15943         mswindows_drain_windows_queue().
15944         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15945         only.
15946
15947         * console-msw.h: Moved a few function prototypes here from
15948         event-msw.c.
15949
15950         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15951         parameter from unsigned short to unsigned long.
15952         (Fmswindows_shell_execute): Added return value.
15953
15954 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15955
15956         * sysdep.c (init_system_name):
15957           process-unix.c (unix_canonicalized_host_name):
15958         Don't call freeaddrinfo() if getaddrinfo() fails.
15959
15960         * process-unix.c (unix_open_unix_network_stream):
15961         Moved the code to get a port # into address loop.
15962
15963 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15964
15965         * buffer.c (reinit_vars_of_buffer):
15966         The right place to initialize conversion_in_dynarr and
15967         conversion_out_dynarr.
15968
15969         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15970
15971         * process-unix.c (unix_canonicalize_host_name): Muleize.
15972         (unix_open_network_stream): Muleize.
15973
15974         * buffer.h: Fix up prototypes for ralloc.c functions.
15975
15976 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15977         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15978         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15979                 instead of gethostbyname()
15980         * process-unix.c: In unix_canonicalize_host_name() and
15981                 unix_open_network_stream(), add code to use getaddrinfo()
15982                 instead of gethostbyname().
15983
15984 2000-01-27  Daniel Pittman <daniel@danann.net>
15985
15986         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15987         libs when built with flat Athena.
15988
15989 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15990
15991         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15992         Use coding standards for function prototypes.
15993
15994 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15995
15996         * dialog-msw.c (push_lisp_string_as_unicode):
15997         * doc.c (unparesseuxify_doc_string):
15998         * dired.c (Fuser_name_completion_1):
15999         * dired.c (Fuser_name_all_completions):
16000         * dired.c (free_user_cache):
16001         * dired.c (user_name_completion):
16002         * console-x.c (get_display_arg_connection):
16003         * minibuf.c (clear_echo_area_internal):
16004         * minibuf.c (echo_area_append):
16005         * eldap.c (Fldap_open):
16006         * eldap.c (Fldap_search_internal):
16007         * frame-x.c (x_set_frame_text_value):
16008         * frame-x.c (x_set_frame_properties):
16009         * frame-x.c (x_create_widgets):
16010         * redisplay-tty.c (term_get_fkeys_1):
16011         * objects-x.c (x_parse_nearest_color):
16012         * objects-x.c (x_valid_color_name_p):
16013         * objects-x.c (x_initialize_font_instance):
16014         * objects-x.c (x_list_fonts):
16015         * objects-x.c (x_find_charset_font):
16016         * tooltalk.c (Fadd_tooltalk_message_arg):
16017         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
16018         * tooltalk.c (Fadd_tooltalk_pattern_arg):
16019         * process-unix.c (unix_create_process):
16020         * ntproc.c (sys_spawnve):
16021         * sound.c (Fplay_sound_file):
16022         * sound.c (Fplay_sound):
16023         * buffer.c (init_initial_directory):
16024         * buffer.c (init_buffer):
16025         * editfns.c (init_editfns):
16026         * editfns.c (Ftemp_directory):
16027         * editfns.c (Fuser_full_name):
16028         * editfns.c (uncache_home_directory):
16029         * editfns.c (get_home_directory):
16030         * editfns.c (Fuser_home_directory):
16031         * editfns.c (Fformat_time_string):
16032         * editfns.c (Fcurrent_time_string):
16033         * gui-x.c (button_item_to_widget_value):
16034         * database.c (Fopen_database):
16035         * event-Xt.c (x_to_emacs_keysym):
16036         * event-Xt.c (x_event_to_emacs_event):
16037         * event-Xt.c (describe_event_window):
16038         * event-msw.c (mswindows_wnd_proc):
16039         * glyphs-eimage.c (jpeg_instantiate):
16040         * glyphs-eimage.c (gif_instantiate):
16041         * glyphs-eimage.c (png_instantiate):
16042         * glyphs-eimage.c (tiff_instantiate):
16043         * glyphs-x.c (xbm_instantiate_1):
16044         * glyphs-x.c (x_xbm_instantiate):
16045         * glyphs-x.c (x_xface_instantiate):
16046         * glyphs-x.c (autodetect_instantiate):
16047         * glyphs-x.c (cursor_font_instantiate):
16048         * glyphs-x.c (x_widget_instantiate):
16049         * glyphs-x.c (x_widget_set_property):
16050         * glyphs-x.c (x_widget_property):
16051         * glyphs-x.c (BUILD_GLYPH_INST):
16052         * print.c (write_string_to_stdio_stream):
16053         * print.c (output_string):
16054         * print.c (Falternate_debugging_output):
16055         * print.c (Fexternal_debugging_output):
16056         * glyphs-msw.c (extract_xpm_color_names):
16057         * glyphs-msw.c (mswindows_xpm_instantiate):
16058         * glyphs-msw.c (bmp_instantiate):
16059         * glyphs-msw.c (resource_name_to_resource):
16060         * glyphs-msw.c (mswindows_resource_instantiate):
16061         * glyphs-msw.c (xbm_instantiate_1):
16062         * glyphs-msw.c (mswindows_xbm_instantiate):
16063         * glyphs-msw.c (mswindows_xface_instantiate):
16064         * glyphs-msw.c (mswindows_widget_instantiate):
16065         * glyphs-msw.c (add_tree_item):
16066         * glyphs-msw.c (add_tab_item):
16067         * glyphs-msw.c (mswindows_combo_box_instantiate):
16068         * glyphs-msw.c (mswindows_widget_property):
16069         * glyphs-msw.c (mswindows_combo_box_property):
16070         * glyphs-msw.c (mswindows_widget_set_property):
16071         * console.c (stuff_buffered_input):
16072         * objects-msw.c (mswindows_initialize_color_instance):
16073         * objects-msw.c (mswindows_valid_color_name_p):
16074         * objects-msw.c (mswindows_list_fonts):
16075         * objects-msw.c (mswindows_font_instance_truename):
16076         * bytecode.c (optimize_compiled_function):
16077         * select-x.c (symbol_to_x_atom):
16078         * select-x.c (x_atom_to_symbol):
16079         * select-x.c (hack_motif_clipboard_selection):
16080         * select-x.c (selection_data_to_lisp_data):
16081         * select-x.c (lisp_data_to_selection_data):
16082         * select-x.c (Fx_get_cutbuffer_internal):
16083         * select-x.c (Fx_store_cutbuffer_internal):
16084         * buffer.h (TO_EXTERNAL_FORMAT): New function.
16085         * buffer.h (TO_INTERNAL_FORMAT): New function.
16086         * emacs.c (make_arg_list_1):
16087         * emacs.c (make_argc_argv):
16088         * emacs.c (main_1):
16089         * emacs.c (Fdump_emacs):
16090         * emacs.c (split_string_by_emchar_1):
16091         * file-coding.h:
16092         * lisp.h:
16093         * lstream.h:
16094         * symsinit.h:
16095         * device-x.c (x_init_device):
16096         * device-x.c (Fx_valid_keysym_name_p):
16097         * device-x.c (Fx_get_font_path):
16098         * device-x.c (Fx_set_font_path):
16099         * glyphs.c (bitmap_to_lisp_data):
16100         * glyphs.c (pixmap_to_lisp_data):
16101         * alloc.c (make_ext_string): Use coding system arguments.  Update
16102         all callers.
16103         * alloc.c (build_string):
16104         * callproc.c (child_setup):
16105         * callproc.c (init_callproc):
16106         * fileio.c (lisp_strerror):
16107         * fileio.c (directory_file_name):
16108         * fileio.c (Fexpand_file_name):
16109         * fileio.c (Ffile_truename):
16110         * fileio.c (Fsysnetunam):
16111         * fileio.c (Fdo_auto_save):
16112         * sysdep.c (sys_readdir):
16113         * tests.c: New file.  Allow adding C tests.
16114         Replace GET_* macros with a more comprehensible and flexible
16115         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
16116         Modify all calls.
16117         Any coding system can be used to do format conversion.
16118         Eliminate enum external_data_format.
16119         Eliminate convert_to_external_format.
16120         Eliminate convert_to_internal_format.
16121         Make sure file-name, keyboard, terminal, and ctext are always
16122         defined as coding systems or aliases.  Make
16123         file-name-coding-system, terminal-coding-system, and
16124         keyboard-coding-system magical variables that are equivalent to
16125         defining the corresponding coding system aliases.
16126
16127         * file-coding.c (Fcoding_system_canonical_name_p): New function.
16128         * file-coding.c (Fcoding_system_alias_p): New function.
16129         * file-coding.c (Fcoding_system_aliasee): New function.
16130         * file-coding.c (append_suffix_to_symbol): New function.
16131         * file-coding.c (dangling_coding_system_alias_p): New function.
16132         * file-coding.c (Ffind_coding_system):
16133         * file-coding.c (Fcopy_coding_system):
16134         * file-coding.c (encode_coding_no_conversion):
16135         * file-coding.c (syms_of_file_coding):
16136         * file-coding.c (vars_of_file_coding):
16137         Rewrite coding system alias code.
16138         Allow nested aliases, like symbolic links.
16139         Allow redefinition of coding system aliases.
16140         Prevent existence of dangling coding system aliases.
16141
16142         * dired.c (Fuser_name_completion_1):
16143         * dired.c (Fuser_name_all_completions):
16144         A crash would happen if user did QUIT in the middle of building
16145         user_name_cache.  Remove redundant code in mainline and unwind_protect.
16146
16147         * lisp.h:
16148         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
16149
16150         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
16151         an unsigned char *.  Update all callers.
16152
16153 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16154
16155         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
16156
16157 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16158
16159         * elhash.c (hentry_description): Use more portable definition.
16160         (resize_hash_table): Initialize new hentries using
16161         xnew_array_and_zero, thereby simplifying the code.
16162
16163         * mule-charset.c (make_charset): Make sure entire object is
16164         initialized, to avoid Purify warnings.
16165
16166         * alloc.c (resize_string): Fix unlikely crash with big strings.
16167
16168 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16169
16170         * realpath.c (xrealpath):
16171         Don't call getwd().
16172
16173 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16174
16175         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
16176
16177 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
16178
16179         * unexelfsgi.c (unexec): Change the way we decide which segment
16180         should be extended.
16181
16182         Assumption that .bss section should be outside the PT_LOADable
16183         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
16184         it's present) is inside the 'data' segment. This would fail the
16185         test which was used to find a segment to grow and cover new
16186         heap. Instead of this assumption, I created another one - on IRIX
16187         the segment to grow should start below .bss and it's address
16188         should extent above the end of .bss. Once this segment is
16189         identified, it's grown to accommodate the new heap and new
16190         zero-length .bss section is added at the end of .data2.
16191
16192 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16193
16194         * eval.c (Feval): Wrong number of arguments should use original
16195         function, not the indirect_function version of it.
16196
16197 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
16198
16199         * glyphs-x.c (x_button_instantiate): Don't add image if
16200         it is not a pixmap.
16201         (x_locate_pixmap_file): Call Fexpand_file_name when file name
16202         is relative.
16203
16204 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
16205
16206         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
16207         declaration.
16208         (DEFVAR_INT_MAGIC): Ditto.
16209         (DEFVAR_BOOL_MAGIC): Ditto.
16210         * glyphs.h: Reindent backslash.
16211
16212 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16213
16214         * glyphs-widget.c (layout_query_geometry):
16215         (layout_layout): Use correct types for gheight, gwidth.
16216
16217 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16218
16219         * EmacsManager.c (QueryGeometry): Purified.
16220
16221 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16222
16223         * alloc.c (make_float): Make sure entire object is initialized, to
16224         avoid Purify warnings.
16225         (pdump_register_sub): Remove useless assignment.
16226         (pdump): Use xmalloc, not malloc.
16227         (pdump_load): Use xmalloc, not malloc.
16228
16229 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16230
16231         * callproc.c:
16232         * dired-msw.c:
16233         * fileio.c:
16234         * process-nt.c:
16235         * redisplay-msw.c:
16236         * sysdep.c: Removed redundant #include <windows.h>
16237
16238 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16239
16240         * frame.c (delete_frame_internal): Do not delete device when its
16241         implementation so declares.
16242         (delete_frame_internal): Set device selected frame to nil when
16243         last frame goes away.
16244
16245         * device-msw.c (msprinter_device_system_metrics): Implemented.
16246         (mswindows_device_system_metrics): Added 'device-dpi property.
16247
16248         * device.c: (Fdevice_printer_p): Added.
16249         Added 'offset-workspace device metric.
16250
16251         * console.h (device_metrics): Declared DM_offset_workspace.
16252
16253 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16254
16255         * fileio.c (Ffile_truename): Remove pointless and confusing
16256         initialization of elen.
16257
16258         * glyphs-widget.c: Compiler warning fixes.
16259
16260 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
16261
16262         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
16263         instead of a Lisp_Object as argument to make it consistent with
16264         the other LIVE_P macros.
16265         (CHECK_LIVE_PROCESS): New macro.
16266
16267         * process.c: Declare Qprocess_live_p.
16268         (Fprocess_live_p): New function.
16269         (create_process): Use PROCESS_LIVE_P.
16270         (read_process_output): Ditto.
16271         (set_process_filter): Ditto.
16272         (Fdelete_process): Ditto.
16273         (kill_buffer_processes): Ditto
16274         (process_send_signal): Use CHECK_LIVE_PROCESS.
16275         (Fprocess_input_coding_system): Check whether process is still
16276         alive (fix PR#1061).
16277         (Fprocess_output_coding_system): Ditto.
16278         (Fprocess_coding_system): Ditto.
16279         (Fset_process_input_coding_system): Ditto.
16280         (Fset_process_output_coding_system): Ditto.
16281
16282 2000-01-23  Andy Piper  <andy@xemacs.org>
16283
16284         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
16285         layout and widget.
16286
16287         * glyphs.c (mark_image_instance): take into account changed
16288         image_instance format.
16289         (image_instance_equal): ditto.
16290         (image_instance_hash): ditto.
16291
16292         * glyphs-widget.c (widget_instantiate): Incorporate layout
16293         instantiation here. Delay layout of the layout until later.
16294         (layout_instantiate): deleted.
16295         (layout_query_geometry): new function. get the geometry of a
16296         layout.
16297         (layout_layout): layout a layout dynamically.
16298         (image_instantiator_widget): New function - splitting up
16299         image_instantiator_format_create_glyphs_widget for netwinder
16300         compilation.
16301         (image_instantiator_buttons):
16302         (image_instantiator_edit_fields):
16303         (image_instantiator_combo_box):
16304         (image_instantiator_scrollbar):
16305         (image_instantiator_progress_guage):
16306         (image_instantiator_tree_view):
16307         (image_instantiator_tab_control):
16308         (image_instantiator_labels):
16309         (image_instantiator_layout): ditto.
16310         (image_instantiator_format_create_glyphs_widget): Call preceding
16311         functions.
16312
16313 2000-01-22  Martin Buchholz  <martin@xemacs.org>
16314
16315         * process.c (Fset_process_coding_system):
16316         * device-x.c (Fx_keysym_hash_table):
16317         Docstring fixes.
16318
16319         * lstream.c (Lstream_write): Return documented value, not 0.
16320
16321         * fileio.c (directory_file_name):
16322         (Fsubstitute_in_file_name):
16323         (Fsubstitute_insert_file_contents_internal):
16324         (Fwrite_region_internal):
16325         * emacs.c:
16326         * sysdep.c:
16327         * getloadavg.c:
16328         * systty.h:
16329         Remove vestigial APOLLO-conditional code.
16330
16331 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16332
16333         * getpagesize.h: Add guard macros.
16334         * libsst.h: Add guard macros.
16335         * libst.h: Add guard macros.
16336         * line-number.h: Add guard macros.
16337         * ndir.h: Add guard macros.
16338         * sysfloat.h: Add guard macros.
16339         * sysfile.h: Add guard macros.
16340         * sysproc.h: Add guard macros.
16341         * syswait.h: Add guard macros.
16342         * xintrinsic.h: Add guard macros.
16343         * xintrinsicp.h: Add guard macros.
16344         * xmmanager.h: Add guard macros.
16345         * xmmanagerp.h: Add guard macros.
16346         * xmprimitive.h: Add guard macros.
16347         * xmu.h: Add guard macros.
16348         * gpmevent.h: Add copyright statement. Add guard macros.
16349         * miscplay.h: Add guard macros.
16350         * *.h: Use consistent C-standards-approved guard macro names.
16351
16352         * opaque.c (make_opaque): Switch parameter order.
16353         * opaque.h (make_opaque): Switch parameter order.
16354         Update all callers.
16355         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
16356
16357         * config.h.in (type_checking_assert): Added.
16358         (bufpos_checking_assert): Added.
16359
16360 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16361
16362         * alloc.c: Harmless pdump changes.
16363         - Use countof().
16364         - spell alignment correctly.
16365         * sysdep.c: Use countof()
16366
16367 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16368
16369         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
16370         initially_selected_for_input() console method, default to 0.
16371         (semi_canonicalize_console_connection): Try to delegate to
16372         canonicalize_console_connection if no such console method.
16373         (canonicalize_console_connection): Vice versa.
16374         (print_console): Do not print nil connection.
16375
16376         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
16377         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
16378         (XDEVIMPF_FRAMELESS_OK): Added.
16379         (CONSOLE_INHERITS_METHOD): Added.
16380
16381         * console-msw.c (mswindows_canonicalize_console_connection):
16382         Added.
16383         (mswindows_canonicalize_device_connection): Added.
16384
16385         * console-msw.h (struct msprinter_device): Added this struct and
16386         accessor macros.
16387         (mswindows_device): Made fontlist a lisp object.
16388
16389         * device.c (semi_canonicalize_device_connection):  Try to delegate
16390         to canonicalize_device_connection if no such console method.
16391         (canonicalize_device_connection): Vice versa.
16392         (print_device): Do not print nil connection.
16393
16394         * device-msw.c (mswindows_init_device): Call InitCommonControls
16395         when have widgets.
16396         (mswindows_delete_device): Removed fontlist deallocation.
16397         (mswindows_mark_device): Added.
16398
16399         * events.c (event_equal): Added abort() at unreached code.
16400         (event_hash): Ditto.
16401
16402         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
16403         fallback tags of Windows devices.
16404
16405         * general.c (syms_of_general): Initialized Qmsprinter.
16406
16407         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
16408         of fallback tags of Windows devices.
16409
16410         * lisp.h: Declared Qmsprinter.
16411
16412         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
16413         of strings.
16414         (mswindows_list_fonts): Ditto.
16415         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
16416         that it can be used by both mswindows and msprinter devices.
16417         (initialize_font_instance): Added.
16418         (mswindows_initialize_font_instance): Use it.
16419         (msprinter_initialize_font_instance): Added.
16420
16421         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
16422         and implementation flags check.
16423         (redisplay_without_hooks): Changed the call to the above.
16424         (Fredraw_device): Ditto.
16425         (Fredisplay_device): Ditto.
16426
16427         * redisplay-msw.c (get_frame_dc): Implemented.
16428         (get_frame_compdc): Implemented.
16429         (many functions): Use the two functions above to get device
16430         contexts, ether for a window or a printer.
16431
16432 2000-01-21  Olivier Galibert  <galibert@pobox.com>
16433
16434         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
16435         initialization here.
16436         (init_symbols_once_early): Call it.
16437         * emacs.c (main_1): Call it.
16438         * symsinit.h: Declare it.
16439
16440 2000-01-19  Olivier Galibert  <galibert@pobox.com>
16441
16442         * alloc.c: Use a lrecord_header * in the backtrace instead of a
16443         Lisp_Object.
16444         (pdump_backtrace): Ditto.
16445         (pdump_register_object): Ditto.  Cleanup use of the pointers.
16446         (pdump_get_entry): Abort if trying to register a null pointer.
16447         (pdump_dump_data): Cleanup types when relocating.
16448         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
16449         (pdump_dump_rtables): Remove bad casts.
16450         (pdump_load): Cleanup relocation w.r.t union type.  Use a
16451         Lisp_Object instead of a EMACS_INT for the hashtable
16452         reorganization.
16453
16454 2000-01-20  Martin Buchholz  <martin@xemacs.org>
16455
16456         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
16457
16458         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
16459
16460         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
16461
16462         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
16463
16464 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16465
16466         * faces.h (FACE_STRIKETHRU_P): Added.
16467
16468         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
16469         of font variants.
16470
16471         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
16472         (mswindows_set_dc_font): New function, aware of font variants,
16473         separated from mswindows_update_dc.
16474
16475         * objects-msw.h (struct mswindows_font_instance_data): Added
16476         definition.
16477
16478         * objects-msw.c (mswindows_finalize_font_instance): Delete all
16479         cached fonts and the data structure.
16480         (mswindows_initialize_font_instance): Added creation of font data
16481         structure.
16482         (mswindows_print_font_instance): Print at least something.
16483         (mswindows_create_font_variant): Implemented.
16484         (mswindows_get_hfont): Implemented.
16485
16486 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
16487
16488         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
16489         prototyping problem with msvc.
16490
16491         * emacs.c (main_1): added syms_of_gui_mswindows() call
16492
16493         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
16494         syms_of_gui_mswindows() function
16495
16496         * symsinit.h: added the prototype for syms_of_gui_mswindows()
16497
16498 2000-01-18  Martin Buchholz <martin@xemacs.org>
16499
16500         * XEmacs 21.2.27 is released.
16501
16502 2000-01-18  Martin Buchholz  <martin@xemacs.org>
16503
16504         * glyphs-eimage.c (struct tiff_error_struct):
16505         (tiff_error_func):
16506         (tiff_warning_func):
16507         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16508
16509         * unexmips.c:
16510         * unexhp9k3.c:
16511         * unexfreebsd.c:
16512         * unexec.c: Remove vestigial Lucid C code.
16513         * unexalpha.c:
16514         * unexaix.c:
16515         * termcap.c:
16516         * libsst.c: Ansify.
16517         Remove declarations of errno and strerror().
16518
16519         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16520
16521         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16522
16523 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16524
16525         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16526         Optimize.
16527
16528 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16529
16530         * md5.c:
16531         * file-coding.c:
16532         * file-coding.h:
16533         Change enum eol_type to eol_type_t.
16534
16535 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16536
16537         * gui.c (get_gui_callback): Check cons before accessing car.
16538
16539 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16540
16541         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16542         (XSETSPECIFIER_TYPE): Ditto.
16543
16544 2000-01-17  Didier Verna  <didier@xemacs.org>
16545
16546         * redisplay.c (generate_fstring_runes): compute string size in
16547         characters, not bytes.
16548
16549 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16550
16551         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16552
16553 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16554
16555         * print.c (print_error_message): Call print_prepare().
16556
16557 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16558
16559         * .dbxrc: Renamed from dbxrc.
16560
16561         * events.c (event_to_character):
16562         Use `assert (foo)' instead of `if (!foo) abort()'
16563
16564         * .gdbinit (xtype): Add documentation.
16565         * .gdbinit (check-temacs): New function.
16566         * .gdbinit (check-xemacs): New function.
16567         * dbxrc (check-xemacs): New function.
16568         * dbxrc (check-xemacs): New function.
16569
16570 2000-01-14  Andy Piper  <andy@xemacs.org>
16571
16572         * glyphs-widget.c (widget_query_geometry): Make sure that we
16573         calculate default dimensions correctly.
16574
16575 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16576
16577         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16578
16579         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16580         pdump_wire'd variable.
16581
16582         * emacs.c: (main_1): Conditionalized calls to
16583         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16584
16585 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16586
16587         * window.c (Fset_window_configuration):
16588         * sysdep.c (_start):
16589         * input-method-motif.c (res):
16590         * event-Xt.c (Xt_process_to_emacs_event):
16591         Simple compiler warning fixes.
16592
16593         * bytecode.c (funcall_compiled_function): Use the original
16594         function symbol on the backtrace list in preference to the
16595         compiled_function object in error messages.
16596
16597 2000-01-13  Andy Piper  <andy@xemacs.org>
16598
16599         * glyphs-x.c (update_widget_face): Make sure we update the widget
16600         background as well as foreground.
16601
16602 2000-01-13  Andy Piper  <andy@xemacs.org>
16603
16604         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16605         fields to subwindow.
16606         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16607         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16608         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16609         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16610
16611         * glyphs-widget.c (check_valid_tab_orientation): new function.
16612         (initialize_widget_image_instance): zero orientation and
16613         justification.
16614         (widget_instantiate): pick up orientation.
16615         (tab_control_query_geometry): return appropriate values for
16616         vertical tabs.
16617
16618         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16619         appropriate creation flags for left, right and bottom tabs.
16620
16621         * s/cygwin32.h: add tab definitions.
16622
16623 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16624
16625         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16626         frame upon hiding a subwindow.
16627         (mswindows_button_instantiate): Changed the push button style to
16628         BS_PUSHBUTTON.
16629         (mswindows_button_instantiate): Removed button BS_NOTIFY
16630         style.
16631         (mswindows_button_instantiate): Removed redundant check for
16632         a disabled gui item.
16633         (mswindows_button_instantiate): Made use of WS_TABSTOP
16634         consistent: "operable" controls (edit, button, tree, scroll) have
16635         this style, "display-only" ones (static, progress gauge) do
16636         not. This style is currently ignored by XEmacs though. Also,
16637         removed the WS_EX_CONTROLPARENT style - it is not for children,
16638         it is for their parents!
16639         (mswindows_edit_field_instantiate): Ditto.
16640         (mswindows_progress_gauge_instantiate): Ditto.
16641         (mswindows_tree_view_instantiate): Ditto.
16642         (mswindows_tab_control_instantiate): Ditto.
16643         (mswindows_scrollbar_instantiate): Ditto.
16644         (mswindows_combo_box_instantiate): Ditto.
16645         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16646         style to the "clip" window.
16647         (mswindows_button_instantiate): Removed compilation warning by
16648         equally typing terms of the ?: operator.
16649
16650 2000-01-12  Didier Verna  <didier@xemacs.org>
16651
16652         * redisplay.c (generate_fstring_runes): new parameter holding the
16653         last modeline-format extent.
16654         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16655         extent, fill the glyph block with it.
16656         (generate_fstring_runes): handle these parameters.
16657         (generate_formatted_string_db): ditto.
16658
16659         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16660         glyphs'extents in the modeline.
16661
16662 1999-01-11  Mike Woolley  <mike@bulsara.com>
16663
16664         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16665         256Mb, as a workaround for the non-starting problem many people
16666         have experienced.
16667
16668 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16669
16670         * console-tty.c (Fset_console_tty_output_coding_system):
16671         Force redrawing tty frame.
16672
16673 2000-01-10  Didier Verna  <didier@xemacs.org>
16674
16675         * redisplay.c (generate_fstring_runes): fix size computation bug.
16676
16677 2000-01-09  William M. Perry <wmperry@aventail.com>
16678
16679         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16680
16681 2000-01-09  Andy Piper  <andy@xemacs.org>
16682
16683         * glyphs-msw.c: index -> i to avoid shadows.
16684         (xbm_create_bitmap_from_data): make static.
16685         (check_valid_string_or_int): deleted.
16686         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16687
16688         * glyphs-x.c (x_update_subwindow): remove unused args.
16689
16690         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16691         back pointer - this is done in allocate_image_instance.
16692         (query_string_font): return Qnil to make the compiler happy.
16693         (unmap_subwindow): set to ~0 to make the compiler happy.
16694         (glyph_query_geometry): comment out until used.
16695         (glyph_layout): ditto.
16696
16697 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16698
16699         * insdel.c (signal_after_change): Remove extraneous unbind_to().