1faef7e366ce4b538859b3a0fd44b44ca84642e7
[chise/xemacs-chise.git-] / src / ChangeLog
1 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * fns.c (simplify_char_spec): Don't allocate new character-object
4         if specified char_spec does not have any CCS-features.
5
6         * chartab.h: Add EXFUN for Fdefine_char.
7
8         * chartab.c: Delete EXFUN for Fdefine_char.
9
10 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
11
12         * fns.c (simplify_char_spec): Use Fdefine_char instead of
13         Ffind_char for char-spec.
14
15 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
16
17         * lisp-disunion.h (XCHARVAL): Fix condition about
18         SIZEOF_EMACS_INT.
19
20 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
21
22         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
23         <int> for `code'.
24         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
25         point; use <Emchar> instead of <int> for character-id.
26
27 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
28
29         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
30         (make_char): Likewise.
31         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
32         environment.
33         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
34         instead of <int> as the type of return value; use <Lisp_Object>
35         instead of <Emchar> as the type of argument.
36         (XCHARVAL[macro version]): Cast the result into <Emchar>.
37
38         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
39         syntaxcode> instead of <int>.
40
41 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
42
43         * chartab.c (put_char_composition): Use DECODE_CHAR to get
44         character corresponding with UCS code point.
45         (Fput_char_attribute): Likewise.
46
47         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
48         character in the UCS decoding-table if the char-id is not equal to
49         the UCS code point.
50
51 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
52
53         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
54         for aliases; write `description'; write
55         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
56         not 0.
57
58 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
59
60         * chartab.c (Fsave_char_attribute_table): Don't use
61         `save_charset_properties'.
62
63         * mule-charset.c (Fsave_charset_properties): Renamed from
64         `save_charset_properties' and changed to Lisp function again;
65         write property `type' as `CCS'; write properties `final-byte' and
66         `mother' if they exists.
67         (syms_of_mule_charset): Revive builtin function
68         `save-charset-properties' when HAVE_LIBCHISE is defined.
69
70 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
71
72         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
73         instead of Vexec_directory.
74         (char_attribute_system_db_file): Likewise.
75
76 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
77
78         * chartab.c (Fsave_char_attribute_table): Use
79         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
80         defined.
81
82         * mule-charset.c (save_charset_properties): Renamed from
83         `Fsave_charset_properties'; changed to non-Lisp function.
84         (syms_of_mule_charset): Abolish builtin function
85         `save-charset-properties'.
86
87 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
88
89         * mule-charset.c (Fsave_charset_properties): New function when
90         HAVE_LIBCHISE is defined.
91         (syms_of_mule_charset): Add new builtin function
92         `save-charset-properties' when HAVE_LIBCHISE is defined.
93
94 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
95
96         * chartab.c (Fput_char_attribute): Convert char-specs in value of
97         `{<-|->}ancient[^*]*' to characters and put reverse links.
98         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
99         for `{<-|->}ancient[^*]*'.
100
101 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
102
103         * chartab.c (Fput_char_attribute): Convert char-specs in value of
104         `{<-|->}original[^*]*' to characters and put reverse links.
105         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
106         for `{<-|->}original[^*]*'.
107
108 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
109
110         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
111
112 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
113
114         * mule-charset.c (Qsystem_char_id): New variable.
115
116         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
117         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
118
119 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
120
121         * chartab.c (Fput_char_attribute): When processing a reference of
122         a character, put into the end of the reversed reference of each
123         target character.
124
125 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
126
127         * chartab.c (Q_same): Deleted.
128         (Q_same_of): Deleted.
129         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
130         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
131         for `{<-|->}same'.
132         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
133
134 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
135
136         * chartab.c (Q_vulgar): Deleted.
137         (Q_vulgar_of): Deleted.
138         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
139         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
140         for `{<-|->}vulgar'.
141         (syms_of_chartab): Don't define `{<-|->}vulgar'.
142
143 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
144
145         * chartab.c (Fput_char_attribute): Convert char-specs in value of
146         `{<-|->}wrong[^*]*' to characters and put reverse links.
147         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
148         for `{<-|->}wrong[^*]*'.
149
150 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
151
152         * chartab.c (Q_vulgar): New variable.
153         (Q_vulgar_of): New variable.
154         (Fput_char_attribute): Convert char-specs in value of
155         `{->|<-}vulgar' to characters and put reverse links.
156         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
157         for `{->|<-}vulgar'.
158         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
159
160 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
161
162         * text-coding.c (decode_add_er_char): Must to quote prefix string
163         as regexp.
164
165 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
166
167         * mule-charset.c (put_char_ccs_code_point): Store characters of
168         =ucs whose code_points >= 0xF0000.
169
170 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
171
172         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
173         CHISE.
174         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
175         CHISE.
176         (complex_vars_of_mule_charset): Add new coded-charset
177         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
178         builtin characters over 0xEFFFF.
179
180         * chartab.c (syms_of_chartab): Don't define symbol
181         `system-char-id' in every case.
182
183         * char-ucs.h (Qsystem_char_id): New extern variable.
184         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
185
186 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
187
188         * text-coding.c (char_encode_utf8): Try to use entity-references
189         for U-000F0000 ...  U-0010FFFF.
190
191 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
192
193         * text-coding.c (ER_BUF_SIZE): New macro.
194         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
195         `er_buf'.
196         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
197         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
198
199 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
200
201         * chartab.c (find_char_feature_in_family): New function.
202         (Fchar_feature): Use `find_char_feature_in_family' with
203         `->identical', `<-subsumptive' and `<-denotational'.
204
205 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
206
207         * text-coding.c (char_encode_as_entity_reference): Allow prefix
208         within 8 characters; fix infinite loop.
209
210 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
211
212         * chartab.c (Q_same): New variable.
213         (Q_same_of): New variable.
214         (Fput_char_attribute): Convert char-specs in value of
215         `{->|<-}same' to characters and put reverse links.
216         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
217         for `{->|<-}same'.
218         (syms_of_chartab): Add new symbols `{->|<-}same'.
219
220 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
221
222         * chartab.c (Q_component): New variable.
223         (Q_component_of): Likewise.
224         (Fput_char_attribute): Convert char-specs in value of
225         `{->|<-}ideographic-component-forms' to characters and put reverse
226         links.
227         (syms_of_chartab): Add new symbols
228         `{->|<-}ideographic-component-forms'.
229
230 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
231
232         * chartab.c (Q_identical): New variable.
233         (Q_identical_from): New variable.
234         (Fchar_feature): Regard `->identical' as a feature to find
235         ancestors.
236         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
237         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
238         for `{->|<-}identical'.
239         (syms_of_chartab): Add new symbols `{->|<-}identical'.
240
241 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
242
243         * char-ucs.h (encode_char_2): New inline function.
244         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
245
246 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
247
248         * chartab.c (Fput_char_attribute): Convert char-specs to
249         characters in value of `ideographic-structure'.
250         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
251         for `{<-|->}simplified(@...)'.
252         (Fdefine_char): bTry to use predefined character's id.
253
254 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
255
256         * fns.c (simplify_char_spec): Try to convert builtin chars to
257         defined chars.
258
259 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
260
261         * chartab.c (Fput_char_attribute): Convert char-specs in value of
262         `<-simplified[^*]*' to characters and put reverse links.
263
264 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
265
266         * chartab.c (Q_subsumptive): Renamed from Q_unified.
267         (Q_subsumptive_from): Renamed from Q_unified_from.
268         (Fchar_feature): Use `Q_subsumptive_from' instead of
269         `Q_unified_from'.
270         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
271         `Q_unified'.
272         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
273         `<-unified' to `<-subsumptive'.
274
275 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
276
277         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
278         inheritance itself; fix typo; stop recursive search if cyclic
279         inheritance is found.
280
281 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
282
283         * chartab.c (Q_denotational): New variable.
284         (Q_denotational_from): New variable.
285         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
286         (put_char_attribute): New function.
287         (Fput_char_attribute): Use `put_char_attribute'; regard
288         `->denotational' and `<-denotational' as same as `->unified' and
289         `<-unified'.
290         (syms_of_chartab): Add new symbols `->denotational' and
291         `<-denotational'.
292
293 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
294
295         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
296         `Fget_char_attribute'.
297         (Fchar_variants): Likewise.
298         (get_char_table): Likewise.
299         (Fchar_feature): New function.
300         (put_char_composition): Use `Fchar_feature' instead of
301         `Fget_char_attribute'.
302         (Fput_char_attribute): Likewise; don't put the target character
303         into its `->unified' value.
304         (syms_of_chartab): Add new builtin function `char-feature'.
305
306 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
307
308         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
309         `Fget_char_attribute'.
310         (char_encode_utf8): Likewise.
311
312         * chartab.h: Add an EXFUN for `Fchar_feature'.
313
314 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
315
316         * chartab.c (Vnext_defined_char_id): New variable.
317         (Fput_char_attribute): Accept characters in `->unified'.
318         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
319         new characters which are not related with builtin char-id ranges.
320         (vars_of_chartab): Add new variable `next-defined-char-id'.
321
322 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
323
324         * chartab.c (Q_unified): New variable.
325         (Q_unified_from): New variable.
326         (Fput_char_attribute): Add code for `->unified'.
327         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
328         XEmacs CHISE.
329
330 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
331
332         * mule-charset.c (decode_ccs_conversion): New function.
333         (decode_defined_char): Use `decode_ccs_conversion'.
334         (decode_builtin_char): Likewise.
335
336 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
337
338         * char-ucs.h: Change some charset-ids of private coded-charsets.
339
340 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
341
342         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
343         (char_encode_as_entity_reference): Likewise.
344         (decode_coding_big5): Modify for `decode_defined_char' and
345         `DECODE_CHAR'.
346         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
347         avoid compiler warning.
348         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
349
350         * mule-charset.c (decode_defined_char): Add new argument
351         `without_inheritance'.
352         (Fdecode_char): Add new optional argument `without_inheritance'.
353         (Fdecode_builtin_char): Modify for `Fdecode_char'.
354
355         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
356         (simplify_char_spec): Likewise.
357
358         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
359         setting.
360
361         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
362         (map_char_table): Likewise.
363         (Fdefine_char): Use `Fdecode_char' without inheritance.
364         (Ffind_char): Modify for `Fdecode_char'.
365
366         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
367
368         * char-ucs.h (decode_defined_char): Add new argument
369         `without_inheritance'.
370         (DECODE_CHAR): Likewise.
371         (MAKE_CHAR): Modify for `DECODE_CHAR'.
372
373 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
374
375         * chartab.c (Vchise_system_db_directory): New variable.
376         (vars_of_chartab): Add new variable `chise-system-db-directory'.
377
378 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
379
380         * chartab.c: EXFUN `Fmount_char_attribute_table'.
381         (print_chartab_range): Don't define when `UTF2000' is defined.
382         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
383         `CHISE_DS_open'.
384
385 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
386
387         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
388         and optional argument `rehash' is specified, call
389         `open_chise_data_source_maybe' before
390         `chise_ds_foreach_char_feature_name' is called.
391
392 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
393
394         * chartab.c (char_attribute_list_reset_map_func): New function
395         when HAVE_LIBCHISE is defined.
396         (Fchar_attribute_list): Add new optional argument `rehash' when
397         HAVE_LIBCHISE is defined.
398         (open_chise_data_source_maybe): Use "chise-db" instead of
399         "char-db".
400         (char_attribute_system_db_file): Likewise.
401         (Fload_char_attribute_table): Use
402         `chise_feature_foreach_char_with_value' instead of
403         `chise_char_feature_value_iterate'.
404
405 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
406
407         * chartab.c (Vchise_db_directory): New variable.
408         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
409
410 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
411
412         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
413         instead of HAVE_CHISE to specify using with libchise.
414
415         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
416
417         * chartab.h: Don't use HAVE_CHISE_CLIENT.
418
419         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
420         defined or HAVE_LIBCHISE_LIBCHISE is defined.
421         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
422         is defined.
423         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
424         HAVE_CHISE to specify using with libchise.
425         (syms_of_chartab): Don't define symbol `system-char-id' when
426         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
427
428 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
429
430         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
431         specify CHISE DB support.
432         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
433         of `char_attribute_system_db_file' to check feature DB file.
434
435         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
436         HAVE_CHISE_CLIENT to specify CHISE DB support.
437
438         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
439         specify CHISE DB support.
440         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
441         not defined.
442         (Freset_char_attribute_table): Use `chise_feature_setup_db'
443         instead of `char_attribute_system_db_file' to check feature DB
444         file.
445
446 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
447
448         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
449         `HAVE_CHISE_CLIENT'.
450
451 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
452
453         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
454         (Fsave_charset_mapping_table): Don't use
455         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
456
457         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
458         (HAVE_LIBCHISE): New macro.
459
460         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
461
462         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
463         (Fsave_char_attribute_table): Don't use
464         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
465
466 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
467
468         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
469         defined.
470         (save_uint16_byte_table): Likewise.
471         (save_byte_table): Likewise.
472         (char_table_get_db): Use `chise_ds_load_char_feature_value'
473         instead of `chise_char_load_feature_value'.
474         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
475
476 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
477
478         * chartab.h (struct Lisp_Char_Table): Delete member
479         `feature_table' if CHISE is defined.
480
481         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
482         (Fcopy_char_table): Likewise.
483         (char_table_open_db_maybe): Likewise.
484         (char_table_close_db_maybe): Likewise.
485         (char_table_get_db): Likewise.
486         (Fmount_char_attribute_table): Likewise.
487         (Fload_char_attribute_table): Likewise.
488
489 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
490
491         * mule-charset.c (load_char_decoding_entry_maybe): Use
492         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
493         `chise_ccs_decode'.
494
495 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
496
497         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
498         instead of `chise_open_data_source'.
499         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
500         `chise_ds_close'.
501
502 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
503
504         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
505         instead of `chise_ds_open_feature_table'.
506         (char_table_close_db_maybe): Don't use `chise_ft_close'.
507
508 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
509
510         * mule-charset.c (Fsave_charset_mapping_table): Use
511         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
512         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
513         `chise_ccs_sync' instead of `chise_ccst_close'.
514         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
515
516         * chartab.c (open_chise_data_source_maybe): Modify for
517         `chise_open_data_source'.
518         (char_table_open_db_maybe): Modify for
519         `chise_ds_open_feature_table'.
520
521 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
522
523         * mule-charset.c (load_char_decoding_entry_maybe): Use
524         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
525         `chise_ccst_close'.
526
527 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
528
529         * mule-charset.c (Fsave_charset_mapping_table): Use
530         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
531         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
532         `chise_dt_put_char' and `chise_dt_close'.
533         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
534         `chise_ccs_decode' and `chise_ccst_close' instead of
535         `chise_ds_open_decoding_table', `chise_dt_get_char' and
536         `chise_dt_close'.
537
538         * chartab.c (char_table_get_db): Use
539         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
540         (load_char_attribute_table_map_func): Modify for
541         `chise_char_feature_value_iterate'.
542         (Fload_char_attribute_table): Use
543         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
544
545 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
546
547         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
548
549 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
550
551         * chartab.c (put_char_table): Modify for inherited coded-charsets
552         in XEmacs CHISE.
553
554 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
555
556         * chartab.c (Fput_char_table_map_function): Fixed.
557         (word_boundary_p): Don't check charset in XEmacs CHISE.
558
559 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
560
561         * mule-charset.c (Fsave_charset_mapping_table): Use
562         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
563         instead of `chise_open_decoding_table'; refer
564         `default_chise_data_source'; use `chise_dt_close' instead of
565         `chise_close_decoding_table'.
566         (load_char_decoding_entry_maybe): Likewise.
567
568         * chartab.c (default_chise_data_source): New variable when `CHISE'
569         is defined.
570         (Fcopy_char_table): `ct->ds' is deleted.
571         (open_chise_data_source_maybe): New function.
572         (Fclose_char_data_source): New function.
573         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
574         use `chise_ds_open_feature_table' instead of
575         `chise_open_feature_table'.
576         (char_table_close_db_maybe): Use `chise_ft_close' instead of
577         `chise_close_feature_table'; `cit->ds' is deleted.
578         (syms_of_chartab): Add new builtin function
579         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
580
581         * chartab.h (default_chise_data_source): New extern variable.
582         (open_chise_data_source_maybe): New prototype.
583         (struct Lisp_Char_Table): Delete `ds'.
584
585 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
586
587         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
588         `CHISE' is defined.
589
590 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
591
592         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
593         not defined; add code for non-libchise setting.
594         (char_table_close_db_maybe): Likewise.
595         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
596         defined.
597         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
598         even if `CHISE' is not defined.
599         (Freset_char_attribute_table): Likewise.
600         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
601         `char_table_close_db_maybe' even if `CHISE' is not defined; use
602         `char_table_get_db'.
603         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
604         `char_table_close_db_maybe' even if `CHISE' is not defined.
605
606 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
607
608         * chartab.c (char_table_open_db_maybe): New function.
609         (char_table_close_db_maybe): New function.
610         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
611         (Freset_char_attribute_table): Likewise.
612         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
613         `char_table_close_db_maybe'.
614         (Fload_char_attribute_table): Likewise.
615
616 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
617
618         * chartab.c: Don't include <chise.h> because it is included in
619         chartab.h.
620         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
621         defined.
622         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
623         `CHISE' is defined.
624         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
625         `CHISE' is defined.
626         (Fclose_char_attribute_table): Close `ct->feature_table' and
627         `ct->ds' when `CHISE' is defined.
628         (Freset_char_attribute_table): Likewise.
629         (load_char_attribute_maybe): Use `cit->ds' and
630         `cit->feature_table' when `CHISE' is defined.
631         (Fload_char_attribute_table): Likewise.
632
633         * chartab.h: Include <chise.h> when `CHISE' is defined.
634         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
635         when `CHISE' is defined.
636
637 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
638
639         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
640         is defined.
641         (char_table_description): Likewise.
642         (Fmake_char_table): Likewise.
643         (Fcopy_char_table): Likewise.
644         (Fmount_char_attribute_table): Likewise.
645         (Fclose_char_attribute_table): Likewise.
646         (Freset_char_attribute_table): Likewise.
647         (load_char_attribute_maybe): Likewise.
648         (Fload_char_attribute_table): Likewise.
649
650         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
651         defined.
652
653 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
654
655         * chartab.c (load_char_attribute_table_map_func): New function
656         when CHISE is defined.
657         (Qload_char_attribute_table_map_function): Don't define when CHISE
658         is defined.
659         (Fload_char_attribute_table_map_function): Likewise.
660         (Fload_char_attribute_table): Use libchise when `CHISE' is
661         defined.
662         (syms_of_chartab): Don't define
663         `load-char-attribute-table-map-function' when CHISE is defined.
664
665 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
666
667         * chartab.c: Include <chise.h> when `CHISE' is defined.
668         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
669
670 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
671
672         * mule-charset.c (charset_code_point): Fix problem when searching
673         in mother CCS fails with `defined_only' mode.
674
675 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
676
677         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
678         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
679         (put_char_composition): Likewise.
680         (Fput_char_attribute): Likewise.
681         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
682
683 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
684
685         * chartab.c (Q_ucs): Deleted.
686         (Fput_char_attribute): Don't refer `->ucs'.
687         (Fdefine_char): Likewise.
688         (Ffind_char): Likewise.
689         (syms_of_chartab): Delete `->ucs'.
690
691 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
692
693         * mule-charset.c (Qmap_cns11643_2): Renamed from
694         `Qchinese_cns11643_2'.
695         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
696         `chinese-cns11643-2'.
697         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
698         `=cns11643-2'.
699
700 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
701
702         * mule-charset.c (Qmap_cns11643_1): Renamed from
703         `Qchinese_cns11643_1'.
704         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
705         `chinese-cns11643-1'.
706         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
707         `=cns11643-1'.
708
709 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
710
711         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
712         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
713         `chinese-gb12345'.
714         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
715         `=gb12345'.
716
717 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
718
719         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
720         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
721         `chinese-gb2312'.
722         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
723         `=gb2312'.
724
725 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
726
727         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
728         (syms_of_mule_charset): Add new symbol `=big5' instead of
729         `chinese-big5'.
730         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
731
732 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
733
734         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
735         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
736         `korean-ksc5601'.
737         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
738         `=ks-x1001'.
739
740 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
741
742         * mule-charset.c (Qmap_jis_x0212): Renamed from
743         `Qjapanese_jisx0212'.
744         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
745         `japanese-jisx0212'.
746         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
747         `=jis-x0212'.
748
749 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
750
751         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
752         `Qjapanese_jisx0208'.
753         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
754         of `japanese-jisx0208'.
755         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
756         `=jis-x0208-1983'.
757
758 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
759
760         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
761         `Qjapanese_jisx0208_1978'.
762         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
763         of `japanese-jisx0208-1978'.
764         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
765         `=jis-x0208-1978'.
766
767 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
768
769         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
770         only for XEmacs CHISE.
771
772 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
773
774         * char-ucs.h: Compact non-ISO-IR charset-ids.
775         (LEADING_BYTE_UCS): Changed to -177.
776         (LEADING_BYTE_CONTROL_1): Changed to -77.
777         (LEADING_BYTE_UCS_BMP): Changed to -176.
778         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
779
780 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
781
782         * mule-charset.c (Qiso_ir): New variable.
783         (Fmake_charset): Recognise new property `iso-ir'.
784         (syms_of_mule_charset): Add new symbol `iso-ir'.
785
786 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
787
788         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
789         n to -n; charset-id of non ISO-IR sets are changed to positive
790         numbers.
791
792 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
793
794         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
795         for &MCS-XXXXXXXX; values.
796
797 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
798
799         * mule.c (Vxemacs_chise_version): Renamed from
800         `Vutf_2000_version'.
801         (vars_of_mule): Add new variable `xemacs-chise-version'; define
802         `utf-2000-version' as an alias for `xemacs-chise-version'.
803
804 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
805
806         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
807         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
808         defined.
809
810         * config.h.in (CHISE): New macro.
811
812 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
813
814         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
815         of `ucs'.
816         (Qmap_ucs): New variable.
817         (syms_of_mule_charset): Add new symbol `=ucs'.
818         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
819
820         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
821         (simplify_char_spec): Likewise.
822
823         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
824
825         * char-ucs.h (Qmap_ucs): New extern variable.
826
827 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
828
829         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
830         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
831         don't define it when UTF2000 is not defined.
832         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
833         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
834         when UTF2000 is not defined.
835         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
836         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
837
838 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
839
840         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
841
842         * mule-charset.c (Vcharset_ucs_gb): Deleted.
843         (Qucs_gb): Deleted.
844         (syms_of_mule_charset): Delete `ucs-gb'.
845         (complex_vars_of_mule_charset): Likewise.
846
847 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
848
849         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
850
851         * mule-charset.c (Vcharset_ucs_cns): Deleted.
852         (Qucs_cns): Deleted.
853         (syms_of_mule_charset): Delete `ucs-cns'.
854         (complex_vars_of_mule_charset): Likewise.
855
856 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
857
858         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
859
860         * mule-charset.c (Vcharset_ucs_jis): Deleted.
861         (Qucs_jis): Deleted.
862         (syms_of_mule_charset): Delete `ucs-jis'.
863         (complex_vars_of_mule_charset): Likewise.
864
865 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
866
867         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
868
869         * mule-charset.c (Vcharset_ucs_ks): Deleted.
870         (Qucs_ks): Deleted.
871         (syms_of_mule_charset): Delete `ucs-ks'.
872         (complex_vars_of_mule_charset): Likewise.
873
874 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
875
876         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
877         (Qideograph_daikanwa_2): Deleted.
878         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
879         (complex_vars_of_mule_charset): Likewise.
880
881         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
882         (LEADING_BYTE_DAIKANWA_1): Deleted.
883         (LEADING_BYTE_DAIKANWA_2): Deleted.
884         (MIN_CHAR_DAIKANWA): Deleted.
885         (MAX_CHAR_DAIKANWA): Deleted.
886
887 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
888
889         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
890         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
891         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
892
893         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
894         (Vcharset_ideograph_daikanwa): Deleted.
895         (Qideograph_hanziku_{1..12}): Deleted.
896         (Qideograph_daikanwa): Deleted.
897         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
898         Vcharset_ideograph_daikanwa.
899         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
900         `ideograph-hanziku-{1..12}'.
901         (complex_vars_of_mule_charset): Likewise.
902
903 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
904
905         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
906
907         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
908         (Qideograph_gt_pj_{1..11}): Deleted.
909         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
910         (complex_vars_of_mule_charset): Likewise.
911
912 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
913
914         * mule-charset.c (Vcharset_ucs_big5): Deleted.
915         (Vcharset_ideograph_gt): Deleted.
916         (Qucs_big5): Deleted.
917         (Qideograph_gt): Deleted.
918         (syms_of_mule_charset): Delete symbol `ucs-big5' and
919         `ideograph-gt'.
920         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
921         and `ideograph-gt'.
922
923         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
924         (LEADING_BYTE_GT): Deleted.
925         (MIN_CHAR_GT): Deleted.
926         (MAX_CHAR_GT): Deleted.
927
928 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
929
930         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
931
932 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
933
934         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
935         (save_uint16_byte_table): Likewise.
936         (save_byte_table): Likewise; convert values by it.
937         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
938         for `ideographic-structure'.
939         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
940         as the filter for `ideographic-structure'.
941
942 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
943
944         * chartab.c (put_char_composition): New function.
945         (Fput_char_attribute): Use `put_char_composition'; use
946         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
947
948         * fns.c (simplify_char_spec): New function.
949         (char_ref_simplify_spec): New function.
950         (Fchar_refs_simplify_char_specs): New function.
951         (syms_of_fns): Add new builtin function
952         `char-refs-simplify-char-specs'.
953
954 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
955
956         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
957         (Qideograph_cbeta): Deleted.
958         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
959         (complex_vars_of_mule_charset): Likewise.
960
961         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
962         (MIN_CHAR_CBETA): Comment out.
963         (MAX_CHAR_CBETA): Likewise.
964
965 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
966
967         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
968         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
969         CHISE client feature.
970
971 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
972
973         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
974
975 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
976
977         * mule-charset.c (charset_lookup_description_1): Use
978         `NUM_LEADING_BYTES' in UTF-2000.
979
980 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
981
982         * char-ucs.h (GC_CHARSETP): Deleted.
983
984 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
985
986         * char-ucs.h (MAX_CHAR_GT): Updated.
987
988 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
989
990         * text-coding.c: Sync with XEmacs 21.4.10.
991
992 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
993
994         * mule-charset.c (Vcharset_china3_jef): Deleted.
995         (Qchina3_jef): Deleted.
996         (syms_of_mule_charset): Don't define `china3-jef'.
997         (complex_vars_of_mule_charset): Likewise.
998
999         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1000         (MIN_CHAR_CHINA3_JEF): Comment out.
1001         (MAX_CHAR_CHINA3_JEF): Comment out.
1002
1003 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1004
1005         * mule-charset.c (Vcharset_ucs_gb): New variable.
1006         (Qucs_gb): New variable.
1007         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1008         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1009
1010         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1011
1012 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1013
1014         * mule-charset.c (charset_code_point): if a coded-charset has a
1015         final-byte, don't inherit the builtin range of the mother CCS.
1016
1017 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1018
1019         * mule-charset.c (charset_code_point): Fix problem about
1020         inheritance.
1021
1022 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1023
1024         * mule-charset.c (decode_builtin_char): Reorganized.
1025
1026 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1027
1028         * text-coding.c (char_encode_as_entity_reference): Modify for
1029         `charset_code_point'.
1030         (char_encode_shift_jis): Likewise.
1031         (char_encode_big5): Likewise.
1032         (char_encode_utf8): Likewise.
1033         (char_encode_iso2022): Likewise.
1034
1035         * mule-charset.c (charset_code_point): Add new argument
1036         `defined_only'.
1037         (Fencode_char): Add new optional argument `defined_only'.
1038
1039         * chartab.c (put_char_table): Modify for `charset_code_point'.
1040
1041         * char-ucs.h (charset_code_point): Add new argument
1042         `defined_only'.
1043         (encode_char_1): Modify for `charset_code_point'.
1044
1045 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1046
1047         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1048         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1049
1050 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1051
1052         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1053         (Qjis_x0208): Likewise.
1054         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1055         XCHARSET_FINAL(charset).
1056         (charset_code_point): Modify condition for final-byte based
1057         builtin-chars.
1058         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1059         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1060         in UTF-2000; specify `=jis-x0208' as the mother of
1061         `japanese-jisx0208-1978', `japanese-jisx0208' and
1062         `japanese-jisx0208-1990' in UTF-2000.
1063
1064 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1065
1066         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1067
1068 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1069
1070         * text-coding.c (decode_coding_utf16): Support UTF-16.
1071         (char_encode_utf16): Fixed.
1072
1073 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1074
1075         * text-coding.c (Qutf16): New variable in MULE.
1076         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1077         (Fcoding_system_type): Add `utf-16' in MULE.
1078         (struct detection_state): Add a structure for utf16 in MULE.
1079         (detect_coding_type): Setup st->utf16.mask in MULE.
1080         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1081         MULE.
1082         (reset_encoding_stream): Use `char_encode_utf16' and
1083         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1084         (detect_coding_utf16): New function [incomplete].
1085         (decode_coding_utf16): New function [support only UCS-2].
1086         (char_encode_utf16): New function.
1087         (char_finish_utf16): New function.
1088         (syms_of_file_coding): Add new symbol `utf-16'; setup
1089         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1090
1091         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1092         UTF-2000.
1093         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1094         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1095
1096 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1097
1098         * chartab.c (put_char_table): When a charset is specified as a
1099         range in UTF-2000, don't support builtin characters.
1100
1101 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1102
1103         * mule-charset.c (decode_defined_char): Don't refer external
1104         database if Qunbound or Qnil are found.
1105         (Fsave_charset_mapping_table): Don't define it if
1106         HAVE_CHISE_CLIENT is not defined.
1107         (Freset_charset_mapping_table): New function.
1108         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1109         found in external database.
1110         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1111         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1112         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1113
1114 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1115
1116         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1117         not.
1118
1119 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1120
1121         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1122         Q_lowercase, Q_uppercase in UTF-2000.
1123
1124         * chartab.c (get_char_table): Add special code for the standard
1125         case table to use character attribute `->downcase' and
1126         `->uppercase' for case operations in UTF-2000.
1127
1128         * casetab.c (Qflippedcase): New variable in UTF-2000.
1129         (Q_lowercase): Likewise.
1130         (Q_uppercase): Likewise.
1131         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1132         and `->uppercase' in UTF-2000.
1133         (complex_vars_of_casetab): Assign attribute name `downcase' to
1134         downcase and CANON table of Vstandard_case_table in UTF-2000;
1135         assign attribute name `flippedcase' to upcase and EQV table of
1136         Vstandard_case_table in UTF-2000.
1137
1138 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1139
1140         * text-coding.c (decode_add_er_char): Support isolated-chars.
1141         (char_encode_as_entity_reference): Likewise.
1142
1143 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1144
1145         * emacs.c (Vutf_2000_lisp_directory): New variable.
1146         (Vconfigure_utf_2000_lisp_directory): Likewise.
1147         (complex_vars_of_emacs): Add new variable
1148         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1149
1150 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1151
1152         * char-ucs.h (DECODE_CHAR): Delete special code for
1153         `chinese-big5-1' and `chinese-big5-2'.
1154
1155         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1156         (Qbig5_2): Likewise.
1157         (decode_defined_char): Support CONVERSION_BIG5_1 and
1158         CONVERSION_BIG5_2.
1159         (decode_builtin_char): Likewise.
1160         (charset_code_point): Likewise.
1161         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1162         'conversion in UTF-2000.
1163         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1164         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1165         `chinese-big5-2' as children of `chinese-big5'.
1166
1167         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1168         (CONVERSION_BIG5_2): New macro.
1169
1170 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1171
1172         * text-coding.c (char_encode_big5): Support entity-reference.
1173
1174 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1175
1176         * text-coding.c (char_encode_as_entity_reference): New function.
1177         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1178
1179 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1180
1181         * text-coding.c (decode_coding_big5): Support entity-reference
1182         decoding feature.
1183
1184 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1185
1186         * text-coding.c (allocate_coding_system): Initialize initial
1187         charsets for CODESYS_UTF8.
1188         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1189         charset-g2 for CODESYS_UTF8.
1190         (decode_coding_utf8): Use charset-g0.
1191         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1192         to force variants to map to UCS.
1193
1194 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1195
1196         * text-coding.c (Qutf_8_mcs): New variable.
1197         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1198         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1199         instead of `utf-8' in UTF-2000.
1200
1201 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1202
1203         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1204         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1205         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1206         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1207         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1208         CONVERSION_96x96x96x96 are introduced.
1209         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1210         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1211         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1212
1213         * char-ucs.h (CONVERSION_94): New macro.
1214         (CONVERSION_96): New macro.
1215         (CONVERSION_94x94): New macro.
1216         (CONVERSION_96x96): New macro.
1217         (CONVERSION_94x94x94): New macro.
1218         (CONVERSION_96x96x96): New macro.
1219         (CONVERSION_94x94x94x60): New macro.
1220         (CONVERSION_94x94x94x94): New macro.
1221         (CONVERSION_96x96x96x96): New macro.
1222
1223 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1224
1225         * chartab.c (Vcharacter_variant_table): Deleted.
1226         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1227         of `Vcharacter_variant_table'.
1228         (Fput_char_attribute): Likewise.
1229         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1230         (complex_vars_of_chartab): Likewise.
1231
1232 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1233
1234         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1235
1236         * fns.c (Qideographic_structure): New variable.
1237         (Qkeyword_char): New variable.
1238         (ids_format_unit): New function.
1239         (Fideographic_structure_to_ids): New function.
1240         (syms_of_fns): Add new symbols `ideographic-structure' and
1241         `:char'; add new builtin function `ideographic-structure-to-ids'.
1242
1243         * data.c (Fchar_ref_p): New function.
1244         (syms_of_data): Add new builtin function `char-ref-p'.
1245
1246         * chartab.h: Add an EXFUN for `Ffind_char'.
1247
1248 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1249
1250         * text-coding.c (Vcharacter_composition_table): Deleted.
1251         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1252         in every UTF-2000.
1253
1254         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1255         UTF-2000.
1256         (Vcharacter_composition_table): Deleted.
1257         (Fget_composite_char): Use the implementation for external-DB
1258         support in every UTF-2000.
1259         (Fput_char_attribute): Likewise.
1260         (char_attribute_system_db_file): Don't define if external-DB
1261         feature is not available.
1262         (Fsave_char_attribute_table): Likewise.
1263         (Fmount_char_attribute_table): Likewise.
1264         (Fclose_char_attribute_table): Likewise.
1265         (Freset_char_attribute_table): Likewise.
1266         (Fload_char_attribute_table): Likewise.
1267         (syms_of_chartab): Don't define `save-char-attribute-table',
1268         `mount-char-attribute-table', `reset-char-attribute-table',
1269         `close-char-attribute-table' and `load-char-attribute-table' if
1270         external-DB feature is not available.
1271         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1272
1273 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1274
1275         * text-coding.c (Qcomposition): Add extern if external-DB feature
1276         is supported.
1277         (Vcharacter_composition_table): Don't add extern if external-DB
1278         feature is supported.
1279         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1280         character composition rule if external-DB feature is supported.
1281
1282         * chartab.c (Vcharacter_composition_table): Don't define if
1283         external-DB feature is supported.
1284         (Qcomposition): New variable.
1285         (Fget_composite_char): New implementation for external-DB support.
1286         (Fput_char_attribute): Use `composition' property of each
1287         character instead of `Vcharacter_composition_table' to store
1288         character-composition rules if external-DB feature is supported.
1289         (syms_of_chartab): Add new symbol `composition'.
1290         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1291         external-DB feature is supported.
1292
1293 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1294
1295         * chartab.c (Vchar_db_stingy_mode): New variable.
1296         (load_char_attribute_maybe): Close database if
1297         Vchar_db_stingy_mode is not NIL.
1298         (Fload_char_attribute_table_map_function): Use
1299         `get_char_id_table_0' instead of `get_char_id_table'.
1300         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1301
1302         * chartab.h (get_char_id_table_0): New inline function.
1303         (get_char_id_table): Use `get_char_id_table_0'.
1304
1305 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1306
1307         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1308         and `COMPOSE_ADD_CHAR'.
1309         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1310
1311 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1312
1313         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1314         instead of `DECODE_ADD_UCS_CHAR'.
1315         (COMPOSE_ADD_CHAR): Likewise.
1316
1317 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1318
1319         * text-coding.c (decode_flush_er_chars): New inline function.
1320         (decode_add_er_char): New function.
1321         (decode_coding_utf8): Use `decode_flush_er_chars' and
1322         `decode_add_er_char'.
1323
1324 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1325
1326         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1327         done before `decode_output_utf8_partial_char'.
1328
1329         * mule-charset.c (complex_vars_of_mule_charset): Specify
1330         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1331         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1332
1333 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1334
1335         * mule-charset.c (decode_defined_char): New function; search
1336         mother.
1337         (decode_builtin_char): Don't search mother if
1338         XCHARSET_MAX_CODE(charset) == 0.
1339         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1340         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1341         (Fdecode_char): Use `decode_defined_char' instead of
1342         `DECODE_DEFINED_CHAR'.
1343         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1344         mother of `Vcharset_ucs_jis'.
1345
1346         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1347         instead of `DECODE_DEFINED_CHAR'.
1348
1349         * char-ucs.h (decode_defined_char): Renamed from
1350         `DECODE_DEFINED_CHAR'; changed to normal function.
1351         (DECODE_CHAR): Use `decode_defined_char' instead of
1352         `DECODE_DEFINED_CHAR'.
1353
1354         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1355
1356 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1357
1358         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1359
1360         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1361         variable.
1362         (Quse_entity_reference): New variable.
1363         (Qd): New variable.
1364         (Qx): New variable.
1365         (QX): New variable.
1366         (coding_system_description): Add description for
1367         `ccs_priority_list'.
1368         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1369         (allocate_coding_system): Initialize `ccs_priority_list' in
1370         UTF-2000.
1371         (Fmake_coding_system): Add description about
1372         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1373         (codesys).
1374         (Fcoding_system_property): Accept `disable-composition' and
1375         `use-entity-reference' in UTF-2000.
1376         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1377         in UTF-2000.
1378         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1379         (decode_coding_utf8): Decode entity-reference if
1380         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1381         (char_encode_utf8): Encode non-Unicode characters as
1382         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1383         (str->codesys).
1384         (syms_of_file_coding): Add new symbols `use-entity-reference',
1385         `d', `x', `X'.
1386         (vars_of_file_coding): Add new variable
1387         `coded-charset-entity-reference-alist'.
1388         (complex_vars_of_file_coding): Declare `disable-composition' and
1389         `use-entity-reference' to be coding-system-properties in UTF-2000.
1390
1391         * file-coding.h (struct Lisp_Coding_System): Add new member
1392         `use_entity_reference' and `ccs_priority_list'.
1393         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1394         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1395         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1396
1397 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1398
1399         * chartab.c (save_uint8_byte_table): Don't clear the table.
1400         (save_uint16_byte_table): Likewise.
1401         (save_byte_table): Likewise.
1402         (Fmount_char_attribute_table): New function.
1403         (syms_of_chartab): Add new builtin function
1404         `mount-char-attribute-table'.
1405
1406 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1407
1408         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1409         "w+" mode.
1410         (load_char_decoding_entry_maybe): Open database as read-only mode.
1411
1412         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1413         open database as "w+" mode.
1414         (load_char_attribute_maybe): Open database as read-only mode.
1415         (Fload_char_attribute_table): Likewise.
1416
1417 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1418
1419         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1420         (char_table_description): Delete member `db_file'.
1421         (Fmake_char_table): Don't refer `ct->db_file'.
1422         (Fcopy_char_table): Likewise.
1423         (Fsave_char_attribute_table): Likewise.
1424         (Fclose_char_attribute_table): Likewise.
1425         (Freset_char_attribute_table): Likewise.
1426         (load_char_attribute_maybe): Likewise.
1427         (Fload_char_attribute_table): Likewise.
1428
1429         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1430
1431 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1432
1433         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1434         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1435         `ct->db' is living.
1436         (load_char_attribute_maybe): Likewise.
1437         (Fload_char_attribute_table): Likewise.
1438
1439 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1440
1441         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1442         `ct->db_file' unconditionally.
1443
1444 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1445
1446         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1447         UTF-2000.
1448         (char_table_description): Add description for `db_file' and `db'
1449         in UTF-2000.
1450         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1451         UTF-2000.
1452         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1453         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1454         (Fclose_char_attribute_table): New function.
1455         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1456         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1457         and `cit->db'.
1458         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1459         (syms_of_chartab): Add new builtin function
1460         `Fclose_char_attribute_table'.
1461
1462 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1463
1464         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1465         `db' in UTF-2000.
1466         (load_char_attribute_maybe): Change interface.
1467         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1468
1469 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1470
1471         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1472
1473 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1474
1475         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1476         instead of `DECODE_CHAR' for mother; don't use special code for
1477         chinese-big5 to use code space of chinese-big5-1 and
1478         chinese-big5-2.
1479         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1480         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1481
1482         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1483         (MAX_CHAR_BIG5_CDP): Revival.
1484
1485 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1486
1487         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1488         the XLFD registry-encoding name of `chinese-big5'.
1489
1490 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1491
1492         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1493         (Qchinese_big5_cdp): Deleted.
1494         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1495         (complex_vars_of_mule_charset): Delete coded-charset
1496         `chinese-big5-cdp'.
1497
1498         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1499         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1500         `CHARSET_ID_OFFSET - n' for private CCS.
1501         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1502         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1503         of `MIN_LEADING_BYTE'.
1504         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1505         `(CHARSET_ID_OFFSET - 97)'.
1506         (MIN_CHAR_BIG5_CDP): Deleted.
1507         (MAX_CHAR_BIG5_CDP): Deleted.
1508
1509 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1510
1511         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1512
1513 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1514
1515         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1516         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1517         chartab.c].
1518
1519         * chartab.c (Vutf_2000_version): Moved to mule.c.
1520         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1521
1522 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1523
1524         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1525         when HAVE_CHISE_CLIENT is not defined.
1526
1527         * mule.c (vars_of_mule): Provide feature `chise' when
1528         HAVE_CHISE_CLIENT is defined.
1529
1530 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1531
1532         * config.h.in (UTF2000): Add comment.
1533         (HAVE_CHISE_CLIENT): New macro.
1534
1535 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1536
1537         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1538         CONSP.
1539         (Fput_char_attribute): Likewise.
1540         (char_attribute_system_db_file): Encode file-name of attribute.
1541         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1542         the initial value.
1543
1544 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1545
1546         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1547         (Fsave_charset_mapping_table): Use
1548         `char_attribute_system_db_file'.
1549         (load_char_decoding_entry_maybe): Likewise.
1550
1551         * chartab.h (Qsystem_char_id): New external variable.
1552         (char_attribute_system_db_file): New prototype.
1553
1554         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1555         (char_attribute_system_db_file): New function.
1556         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1557         (Freset_char_attribute_table): Likewise.
1558         (load_char_attribute_maybe): Likewise.
1559         (Fload_char_attribute_table): Likewise.
1560         (syms_of_chartab): Add new symbol `system-char-id'.
1561
1562 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1563
1564         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1565         `XCHARSET_GRAPHIC(ccs)'.
1566
1567 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1568
1569         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1570
1571 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1572
1573         * chartab.c (Q_ucs_variants): New variable.
1574         (syms_of_chartab): Add new symbol `->ucs-variants'.
1575         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1576         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1577         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1578
1579         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1580
1581         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1582         `HAVE_DATABASE' is defined.
1583         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1584         `HAVE_DATABASE' is defined.
1585
1586 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1587
1588         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1589         attribute-table.
1590         (Freset_char_attribute_table): New function.
1591         (syms_of_chartab): Add new builtin function
1592         `reset-char-attribute-table'.
1593
1594 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1595
1596         * chartab.c (load_char_attribute_maybe): Don't make directories.
1597
1598 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1599
1600         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1601
1602         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1603         for decoding-table.
1604
1605 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1606
1607         * mule-charset.c (Fsave_charset_mapping_table): Use
1608         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1609
1610         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1611         instead of `XCHARSET_CHARS'.
1612
1613 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1614
1615         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1616         (XCHARSET_BYTE_SIZE): Likewise.
1617
1618         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1619         mule-charset.c].
1620         (XCHARSET_BYTE_SIZE): Likewise.
1621
1622 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1623
1624         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1625         data-directory to store database.
1626         (Fsave_char_attribute_table): Likewise.
1627         (load_char_attribute_maybe): Likewise.
1628         (Fload_char_attribute_table): Likewise.
1629
1630 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1631
1632         * mule-charset.c (Fsave_charset_mapping_table): New function.
1633         (syms_of_mule_charset): Add new builtin function
1634         `save-charset-mapping-table'.
1635
1636 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1637
1638         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1639         (get_ccs_octet_table): New inline function.
1640         (put_ccs_octet_table): Likewise.
1641         (decoding_table_put_char): Use `get_ccs_octet_table' and
1642         `put_ccs_octet_table'.
1643         (decoding_table_remove_char): Use `decoding_table_put_char'.
1644         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1645
1646         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1647         into encoding_table.
1648         (make_charset): Use Qunbound instead Qnil as initial value of
1649         decoding_table.
1650
1651 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1652
1653         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1654         element is Qunloaded.
1655         (map_over_uint16_byte_table): Likewise.
1656         (map_over_byte_table): Likewise.
1657         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1658         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1659         database support, load encoding-table of the specified
1660         coded-charset if it is not loaded yet.
1661         (save_uint8_byte_table): New function of UTF-2000 with external
1662         database support.
1663         (save_uint16_byte_table): Likewise.
1664         (save_byte_table): Likewise.
1665         (Fput_char_attribute): Don't store value into external database
1666         even if the external database feature is supported in UTF-2000;
1667         set `attribute' as name of char-table if the external database
1668         feature is supported.
1669         (Fsave_char_attribute_table): New function in UTF-2000.
1670         (syms_of_chartab): Add new builtin function
1671         `save-char-attribute-table' in UTF-2000.
1672
1673 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1674
1675         * chartab.c (char_attribute_table_to_put): New variable in
1676         UTF-2000.
1677         (Qput_char_table_map_function): Likewise.
1678         (value_to_put): Likewise.
1679         (Fput_char_table_map_function): New function in UTF-2000.
1680         (put_char_table): Use `Fmap_char_attribute' for
1681         CHARTAB_RANGE_CHARSET in UTF-2000.
1682         (Fput_char_attribute): Store symbol instead of string in
1683         `XCHAR_TABLE_NAME (table)'.
1684         (load_char_attribute_maybe): Likewise.
1685         (syms_of_chartab): Add new symbol/function
1686         `put-char-table-map-function'.
1687
1688 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1689
1690         * database.h: Add new EXFUN for `Fmap_database'.
1691
1692         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1693         (syms_of_database): Likewise.
1694
1695         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1696         UTF-2000.
1697         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1698         (XCHAR_TABLE_UNLOADED): Likewise.
1699
1700         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1701         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1702         HAVE_DATABASE is defined.
1703         (char_attribute_table_to_load): New variable of UTF-2000 with
1704         external database support.
1705         (Qload_char_attribute_table_map_function): Likewise.
1706         (Fload_char_attribute_table_map_function): New function of
1707         UTF-2000 with external database support.
1708         (Fload_char_attribute_table): New function of UTF-2000.
1709         (Fmap_char_attribute): Call Fload_char_attribute_table if
1710         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1711         (syms_of_chartab): Add new symbol and function
1712         `load-char-attribute-table-map-function' in UTF-2000 with external
1713         database support; add new function `load-char-attribute-table' in
1714         UTF-2000.
1715
1716 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1717
1718         * chartab.h (load_char_attribute_maybe): New prototype for
1719         UTF-2000 with DATABASE support.
1720         (get_char_id_table): Use `load_char_attribute_maybe' if
1721         HAVE_DATABASE is defined.
1722
1723         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1724         with DATABASE support.
1725
1726 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1727
1728         * chartab.c (Fput_char_attribute): Use S-expression as key of
1729         external database.
1730
1731         * chartab.h (get_char_id_table): Use S-expression as key of
1732         external database.
1733
1734 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1735
1736         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1737         if an element is not loaded, load the corresponding attributes
1738         from an external database.
1739         (map_over_uint16_byte_table): Likewise.
1740         (map_over_byte_table): Likewise.
1741         (map_char_table): Modify for `map_over_uint8_byte_table',
1742         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1743         element is not loaded, load the corresponding attributes from an
1744         external database.
1745         (Fput_char_attribute): Change initial values to Qunloaded.
1746
1747         * chartab.h (get_char_id_table): If a character attribute is not
1748         loaded and the attribute value is not found in an external
1749         database, store Qunbound as the attribute value.
1750
1751 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1752
1753         * chartab.c (BT_UINT8_unloaded): New macro.
1754         (UINT8_VALUE_P): Accept Qunloaded.
1755         (UINT8_ENCODE): Likewise.
1756         (UINT8_DECODE): Likewise.
1757         (BT_UINT16_unloaded): New macro.
1758         (UINT16_VALUE_P): Accept Qunloaded.
1759         (UINT16_ENCODE): Likewise.
1760         (UINT16_DECODE): Likewise.
1761         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
1762         BT_UINT16_unloaded.
1763         (mark_char_table): Mark `ct->name' in UTF-2000.
1764         (char_table_description): Add `name' in UTF-2000.
1765         (Fmake_char_table): Initialize `ct->name'.
1766         (Fcopy_char_table): Copy `ct->name'.
1767         (Fput_char_attribute): Store value into an external database if
1768         HAVE_DATABASE is defined.
1769
1770         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
1771         UTF-2000.
1772         (CHAR_TABLE_NAME): New macro in UTF-2000.
1773         (XCHAR_TABLE_NAME): New macro in UTF-2000.
1774         (get_char_id_table): Try to read an external database if Qunloaded
1775         is stored in a table.
1776
1777         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
1778         Qunloaded.
1779
1780 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1781
1782         * database.h: Add EXFUN definitions for Fopen_database,
1783         Fput_database, Fget_database and Fclose_database.
1784
1785         * data.c (Qunloaded): New variable in UTF-2000.
1786
1787         * lisp.h (Qunloaded): New variable in UTF-2000.
1788
1789 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1790
1791         * mule-charset.c (put_char_ccs_code_point): Modify for
1792         `decoding_table_remove_char' and `decoding_table_put_char'.
1793         (remove_char_ccs): Modify for `decoding_table_remove_char'.
1794
1795         * char-ucs.h (decoding_table_remove_char): Change arguments to
1796         hide decoding_table vector.
1797         (decoding_table_put_char): Likewise.
1798
1799 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1800
1801         * mule-charset.c (decoding_table_remove_char): Moved to
1802         char-ucs.h.
1803         (decoding_table_put_char): Likewise.
1804
1805         * char-ucs.h (decoding_table_check_elements): New prototype [moved
1806         from mule-charset.c].
1807         (decoding_table_remove_char): New inline function [moved from
1808         mule-charset.c].
1809         (decoding_table_put_char): Likewise.
1810
1811 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1812
1813         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
1814         extension.
1815
1816 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1817
1818         * mule-charset.c (decode_builtin_char): Support mother charsets.
1819
1820 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1821
1822         * mule-charset.c (Q94x94x60): New variable.
1823         (charset_code_point): Support conversion `94x94x60'.
1824         (Fmake_charset): Likewise.
1825         (syms_of_mule_charset): Add new symbol `94x94x60'.
1826
1827         * char-ucs.h (CONVERSION_94x94x60): New macro.
1828
1829 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1830
1831         * mule-charset.c (charset_code_point): Unify code about
1832         `code-offset'.
1833
1834 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1835
1836         * mule-charset.c (charset_code_point): Merge code about builtin
1837         characters into code about mother charsets; don't use
1838         `range_charset_code_point'.
1839         (range_charset_code_point): Deleted.
1840
1841 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1842
1843         * mule-charset.c (Qcode_offset): New variable.
1844         (Fmake_charset): Use `XUINT' to get value of `min-code' and
1845         `max-code'; accept new property `code-offset'.
1846         (syms_of_mule_charset): Add new symbol `code-offset'.
1847
1848 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1849
1850         * mule-charset.c (range_charset_code_point): Fixed.
1851
1852 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1853
1854         * mule-charset.c (decode_builtin_char): Change semantics of
1855         code-offset of coded-charset.
1856         (charset_code_point): Likewise.
1857         (range_charset_code_point): Likewise.
1858         (complex_vars_of_mule_charset): Modify for the change.
1859
1860 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1861
1862         * mule-charset.c (Fencode_char): Reverse arguments.
1863
1864         * mule-charset.c (charset_code_point): Fixed.
1865
1866 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1867
1868         * mule-charset.c (Vcharset_mojikyo): Deleted.
1869         (Vcharset_mojikyo_2022_1): Deleted.
1870         (Vcharset_mojikyo_pj_{1..21}): Deleted.
1871         (Qmin_code): New variable in UTF-2000.
1872         (Qmax_code): Likewise.
1873         (Qmother): Likewise.
1874         (Qconversion): Likewise.
1875         (Q94x60): Likewise.
1876         (Qmojikyo): Deleted.
1877         (Qmojikyo_2022_1): Deleted.
1878         (Qmojikyo_pj_{1..22}): Deleted.
1879         (mark_charset): Mark `cs->mother'.
1880         (charset_description): Add description for `mother'.
1881         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
1882         new arguments `mother' and `conversion'; use
1883         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
1884         (charset_code_point): Moved from char-ucs.h; support `mother'
1885         charset feature.
1886         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
1887         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
1888         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
1889         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
1890         allow 2 as the value of `graphic' in UTF-2000; add new properties
1891         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
1892         require `final' in UTF-2000; modify for `make_charset'.
1893         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
1894         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
1895         (Fcharset_property): Support `mother', `min-code' and `max-code'.
1896         (Fencode_char): New function.
1897         (syms_of_mule_charset): Add new builtin function `encode-char' in
1898         UTF-2000; add new symbols `min-code', `max-code', `mother',
1899         `conversion' and `94x60'; delete symbols `mojikyo',
1900         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
1901         (complex_vars_of_mule_charset): Modify for `make_charset' change;
1902         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
1903         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
1904
1905         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
1906         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
1907
1908         * char-ucs.h (Vcharset_mojikyo): Deleted.
1909         (Vcharset_mojikyo_2022_1): Deleted.
1910         (LEADING_BYTE_MOJIKYO): Deleted.
1911         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
1912         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
1913         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
1914         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
1915         add new member `mother'; add new member `conversion'.
1916         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
1917         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
1918         (CHARSET_MOTHER): New macro.
1919         (CHARSET_CONVERSION): New macro.
1920         (CONVERSION_IDENTICAL): New macro.
1921         (CONVERSION_94x60): New macro.
1922         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
1923         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
1924         (XCHARSET_MOTHER): New macro.
1925         (XCHARSET_CONVERSION): New macro.
1926         (MIN_CHAR_MOJIKYO): Deleted.
1927         (MAX_CHAR_MOJIKYO): Deleted.
1928         (DECODE_MOJIKYO_2022): Deleted.
1929         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
1930         (charset_code_point): Changed to non-inline function.
1931         (encode_char_1): Use `charset_code_point'.
1932         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
1933
1934 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1935
1936         * lread.c (read_compiled_function): Fix prototype.
1937         (read_vector): Likewise.
1938
1939 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1940
1941         * lrecord.h (struct lrecord_header): Delete `older'.
1942         (set_lheader_implementation): Delete code for `older'.
1943         (set_lheader_older_implementation): Deleted.
1944         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
1945         (OLDER_RECORD_P): Deleted.
1946         (OLDER_RECORD_HEADER_P): Deleted.
1947         (alloc_older_lcrecord): Deleted.
1948         (alloc_older_lcrecord_type): Deleted.
1949
1950         * alloc.c (all_older_lcrecords): Deleted.
1951         (alloc_older_lcrecord): Deleted.
1952         (disksave_object_finalization_1): Delete code for older objects.
1953         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
1954         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
1955
1956 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1957
1958         * mule-charset.c (decoding_table_put_char): Use `make_vector'
1959         instead of `make_older_vector'.
1960         (put_char_ccs_code_point): Likewise.
1961         (mark_charset): Mark `cs->decoding_table'.
1962         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
1963
1964         * lisp.h (make_older_vector): Deleted.
1965         (make_vector_newer): Deleted.
1966
1967         * config.h.in (HAVE_GGC): Deleted.
1968
1969         * alloc.c (make_older_vector): Deleted.
1970         (make_vector_newer_1): Deleted.
1971         (make_vector_newer): Deleted.
1972
1973 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1974
1975         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
1976         (Qideograph_daikanwa_2): New variable.
1977         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
1978         (complex_vars_of_mule_charset): Add new coded-charset
1979         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
1980         `LEADING_BYTE_DAIKANWA'.
1981
1982         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
1983         (LEADING_BYTE_DAIKANWA_1): New macro.
1984         (LEADING_BYTE_DAIKANWA_2): New macro.
1985         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
1986
1987 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1988
1989         * mule-charset.c (complex_vars_of_mule_charset): Change
1990         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
1991         the second revised version.
1992
1993 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1994
1995         * mule-charset.c (Vcharset_ucs_smp): New variable.
1996         (Vcharset_ucs_sip): New variable.
1997         (Qucs_smp): New variable.
1998         (Qucs_sip): New variable.
1999         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2000         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2001         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2002         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2003         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2004         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2005
2006         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2007         (LEADING_BYTE_UCS_SIP): New macro.
2008         (MIN_CHAR_SMP): New macro.
2009         (MAX_CHAR_SMP): New macro.
2010         (MIN_CHAR_SIP): New macro.
2011         (MAX_CHAR_SIP): New macro.
2012
2013 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2014
2015         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2016         utf-2000.
2017
2018 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2019
2020         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2021         value; don't store value into `encoding_table' of `Lisp_Charset'.
2022         (mark_charset): `encoding_table' was deleted.
2023         (charset_description): Likewise.
2024         (make_charset): Likewise.
2025         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2026         `put_char_ccs_code_point'.
2027
2028         * chartab.h (Fput_char_attribute): New EXFUN.
2029
2030         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2031         is unified with normal symbol space.
2032         (Fget_char_attribute): Likewise.
2033         (Fput_char_attribute): Likewise; behavior of
2034         `put_char_ccs_code_point' is changed.
2035
2036         * char-ucs.h: Include "elhash.h".
2037         (Vchar_attribute_hash_table): New external variable.
2038         (struct Lisp_Charset): Delete `encoding_table'.
2039         (CHARSET_ENCODING_TABLE): New implementation; refer
2040         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2041         `Lisp_Charset'.
2042
2043 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2044
2045         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2046         (cs) == 0.
2047
2048 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2049
2050         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2051         `chinese-big5'.
2052
2053 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2054
2055         * chartab.c (uint8_byte_table_description): New constant.
2056         (uint8-byte-table): Use `uint8_byte_table_description'.
2057         (uint16_byte_table_description): New constant.
2058         (uint16-byte-table): Use `uint16_byte_table_description'.
2059
2060 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2061
2062         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2063         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2064
2065 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2066
2067         * mule-charset.c (Vcharset_ucs_ks): New variable.
2068         (Qucs_ks): New variable.
2069         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2070         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2071
2072         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2073
2074 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2075
2076         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2077         (Fdecode_char): Likewise.
2078
2079         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2080         chartab.h.
2081         (Fdefine_char): Modify for Fdecode_char.
2082         (Ffind_char): Likewise.
2083
2084         * mule-charset.c (Fdecode_char): Add new optional argument
2085         `defined-only'.
2086         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2087
2088 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2089
2090         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2091         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2092         (allocate_coding_system): Initialize initial-charsets of
2093         CODESYS_BIG5 in XEmacs UTF-2000.
2094         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2095         CODESYS_BIG5 in XEmacs UTF-2000.
2096         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2097         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2098
2099         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2100         variables.
2101         (Qideograph_hanziku_{1 .. 12}): Likewise.
2102         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2103         .. 12}'.
2104         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2105         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2106         `ideograph-hanziku-{1 .. 12}'.
2107
2108         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2109         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2110         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2111         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2112         (DECODE_DEFINED_CHAR): New inline function.
2113         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2114
2115 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2116
2117         * mule-charset.c (Vcharset_china3_jef): Renamed from
2118         `Vcharset_japanese_jef_china3'.
2119         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2120         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2121         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2122         (syms_of_mule_charset): Rename `china3-jef' from
2123         `japanese-jef-china3'.
2124         (complex_vars_of_mule_charset): Likewise; rename
2125         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2126
2127         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2128         `LEADING_BYTE_JEF_CHINA3'.
2129         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2130         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2131
2132 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2133
2134         * mule-charset.c (encode_builtin_char_1): Comment out special code
2135         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2136
2137         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2138         (MAX_CHAR_MOJIKYO_0): Comment out.
2139         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2140         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2141         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2142         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2143
2144 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2145
2146         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2147         (Qideograph_cbeta): New variable.
2148         (encode_builtin_char_1): Comment out special code for
2149         coded-charset `mojikyo' and `japanese-jef-china3'.
2150         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2151         (complex_vars_of_mule_charset): Add new coded-charset
2152         `ideograph-cbeta'.
2153
2154         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2155         (MIN_CHAR_CBETA): New macro.
2156         (MAX_CHAR_CBETA): New macro.
2157
2158 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2159
2160         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2161         (LEADING_BYTE_JEF_CHINA3): New macro.
2162         (MIN_CHAR_JEF_CHINA3): New macro.
2163         (MAX_CHAR_JEF_CHINA3): Likewise.
2164         (DECODE_CHAR): Fixed.
2165
2166 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2167
2168         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2169         (Qjapanese_jef_china3): New variable.
2170         (encode_builtin_char_1): Support `japanese-jef-china3'.
2171         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2172         (complex_vars_of_mule_charset): Add new coded-charset
2173         `japanese-jef-china3'.
2174
2175 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2176
2177         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2178         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2179         94^4, 96^3, 96^4, 128^n and 256^n set.
2180         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2181         (map_char_table): Likewise.
2182
2183 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2184
2185         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2186         UTF-2000.
2187
2188 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2189
2190         * chartab.h (get_char_id_table): New inline function.
2191
2192         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2193         function.
2194
2195 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2196
2197         * chartab.h (decode_char_table_range): New prototype in XEmacs
2198         UTF-2000.
2199         (put_char_id_table): New inline function in XEmacs UTF-2000.
2200
2201         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2202         function.
2203         (decode_char_table_range): Delete static declaration in XEmacs
2204         UTF-2000.
2205
2206 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2207
2208         * chartab.c (put_char_id_table): Use `put_char_table'.
2209
2210 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2211
2212         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2213         (map_over_uint16_byte_table): Likewise.
2214         (map_over_byte_table): Likewise.
2215         (map_char_table): Modify for `map_over_uint8_byte_table',
2216         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2217         UTF-2000.
2218
2219 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2220
2221         * chartab.c (struct map_char_table_for_charset_arg): New
2222         structure.
2223         (map_char_table_for_charset_fun): New function.
2224         (map_char_table): Use `map_char_table' for encoding_table of
2225         `range->charset'.
2226
2227 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2228
2229         * chartab.c (map_char_table): Check a character is found in
2230         range->charset instead of non default value is defined in
2231         char-table when range is CHARTAB_RANGE_ROW.
2232
2233 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2234
2235         * chartab.c (map_char_id_table): Deleted.
2236         (Fmap_char_attribute): Use `map_char_table' instead of
2237         `map_char_id_table'.
2238
2239 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2240
2241         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2242         UTF-2000.
2243         (update_syntax_table): Deleted in XEmacs UTF-2000.
2244
2245         * syntax.c (find_defun_start): Use `syntax_table' instead of
2246         `mirror_syntax_table' in XEmacs UTF-2000.
2247         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2248         UTF-2000.
2249         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2250         XEmacs UTF-2000.
2251         (Fmatching_paren): Likewise.
2252         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2253         in XEmacs UTF-2000.
2254         (find_start_of_comment): Likewise.
2255         (find_end_of_comment): Likewise.
2256         (Fforward_comment): Likewise.
2257         (scan_lists): Likewise.
2258         (char_quoted): Likewise.
2259         (Fbackward_prefix_chars): Likewise.
2260         (scan_sexps_forward): Likewise.
2261         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2262         (update_syntax_table): Likewise.
2263
2264         * search.c (skip_chars): Use `syntax_table' instead of
2265         `mirror_syntax_table' in XEmacs UTF-2000.
2266         (wordify): Likewise.
2267         (Freplace_match): Likewise.
2268
2269         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2270         `mirror_syntax_table' in XEmacs UTF-2000.
2271         (WORDCHAR_P_UNSAFE): Likewise.
2272         (re_match_2_internal): Likewise.
2273
2274         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2275         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2276
2277         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2278         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2279
2280         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2281         XEmacs UTF-2000.
2282
2283         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2284         UTF-2000.
2285         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2286         (char_table_description): Delete `mirror_table' in XEmacs
2287         UTF-2000.
2288         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2289         UTF-2000.
2290         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2291         (Fcopy_char_table): Likewise.
2292         (put_char_table): Don't call `update_syntax_table' in XEmacs
2293         UTF-2000.
2294
2295         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2296         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2297         (casify_region_internal): Likewise.
2298
2299         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2300
2301         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2302         `mirror_syntax_table' in XEmacs UTF-2000.
2303
2304         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2305         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2306         (Fexpand_abbrev): Likewise.
2307
2308 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2309
2310         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2311
2312 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2313
2314         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2315         (map_over_uint16_byte_table): Likewise.
2316         (map_over_byte_table): Likewise.
2317         (get_char_id_table): Refer `cit->default_value'.
2318         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2319         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2320         of character-id ranges.
2321         (mark_char_table): Mark `ct->default_value'.
2322         (char_table_description): Add `default_value'.
2323         (fill_char_table): Use `default_value'.
2324         (decode_char_table_range): Decode `nil' as
2325         `CHARTAB_RANGE_DEFAULT'.
2326         (get_char_id_table): Refer `cit->default_value'.
2327         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2328         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2329         temporary hack; check value of char-table is bound or not.
2330         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2331
2332         * chartab.h (struct Lisp_Char_Table): Add new member
2333         `default_value' in XEmacs UTF-2000.
2334         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2335         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2336         UTF-2000.
2337
2338 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2339
2340         * chartab.h (Lisp_Char_ID_Table): Deleted.
2341
2342         * chartab.c (char_table_description): Fix typo.
2343         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2344         `Lisp_Char_ID_Table'.
2345
2346 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2347
2348         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2349         `CHAR_ID_TABLE_P'.
2350
2351         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2352         `CHAR_ID_TABLE_P'.
2353
2354         * chartab.h (XCHAR_ID_TABLE): Deleted.
2355         (XSETCHAR_ID_TABLE): Deleted.
2356         (CHAR_ID_TABLE_P): Deleted.
2357
2358         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2359         `CHAR_ID_TABLE_P'.
2360         (Fget_composite_char): Likewise.
2361         (put_char_table): Likewise.
2362         (add_char_attribute_alist_mapper): Fixed.
2363         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2364         `CHAR_ID_TABLE_P'.
2365         (Fget_char_attribute): Likewise.
2366         (Fget_char_attribute): Likewise.
2367         (Fmap_char_attribute): Likewise.
2368
2369         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2370         `CHAR_ID_TABLE_P'.
2371         (encode_char_1): Likewise.
2372
2373 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2374
2375         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2376         `XCHAR_ID_TABLE'.
2377
2378         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2379         instead of `XCHAR_ID_TABLE'.
2380         (remove_char_ccs): Likewise.
2381
2382         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2383         `XCHAR_ID_TABLE'.
2384         (Fget_composite_char): Likewise.
2385         (Fchar_variants): Likewise.
2386         (put_char_table): Likewise.
2387         (add_char_attribute_alist_mapper): Likewise.
2388         (Fchar_attribute_alist): Likewise.
2389         (Fget_char_attribute): Likewise.
2390         (Fput_char_attribute): Likewise.
2391         (Fmap_char_attribute): Likewise.
2392         (Fmap_char_attribute): Likewise.
2393
2394         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2395         `XCHAR_ID_TABLE'.
2396         (encode_char_1): Likewise.
2397
2398 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2399
2400         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2401         `Lisp_Char_ID_Table'.
2402         (mark_char_id_table): Deleted.
2403         (print_char_id_table): Likewise.
2404         (char_id_table_equal): Likewise.
2405         (char_id_table_hash): Likewise.
2406         (char_id_table_description): Likewise.
2407         (char_id_table): Likewise.
2408         (make_char_id_table): Use `Fmake_char_table' and
2409         `fill_char_table'.
2410         (get_char_id_table): Use `Lisp_Char_Table' instead of
2411         `Lisp_Char_ID_Table'.
2412         (put_char_id_table): Likewise.
2413         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2414         `XCHAR_ID_TABLE'.
2415         (Fremove_char_attribute): Likewise.
2416         (syms_of_chartab): Don't define type `char-id-table'.
2417
2418         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2419         (char_id_table): Likewise.
2420         (GC_CHAR_ID_TABLE_P): Likewise.
2421         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2422         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2423         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2424         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2425         (get_char_id_table): Use `Lisp_Char_Table' instead of
2426         `Lisp_Char_ID_Table'.
2427         (put_char_id_table_0): Likewise.
2428         (put_char_id_table): Likewise.
2429
2430 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2431
2432         * chartab.h: Lisp_Byte_Table related codes are moved from
2433         chartab.h.
2434
2435         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2436
2437 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2438
2439         * chartab.h: Don't include "chartab.h".
2440         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2441         (Lisp_Char_ID_Table): Likewise.
2442         (char_id_table): Likewise.
2443         (XCHAR_ID_TABLE): Likewise.
2444         (XSETCHAR_ID_TABLE): Likewise.
2445         (CHAR_ID_TABLE_P): Likewise.
2446         (GC_CHAR_ID_TABLE_P): Likewise.
2447         (get_char_id_table): Likewise.
2448
2449         * char-ucs.h: Include "chartab.h".
2450         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2451         (Lisp_Char_ID_Table): Likewise.
2452         (char_id_table): Likewise.
2453         (XCHAR_ID_TABLE): Likewise.
2454         (XSETCHAR_ID_TABLE): Likewise.
2455         (CHAR_ID_TABLE_P): Likewise.
2456         (GC_CHAR_ID_TABLE_P): Likewise.
2457         (get_char_id_table): Likewise.
2458
2459 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2460
2461         * chartab.c (copy_uint8_byte_table): New function.
2462         (copy_uint16_byte_table): New function.
2463         (copy_byte_table): New function.
2464         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2465         characters to call.
2466         (map_over_uint16_byte_table): Likewise.
2467         (map_over_byte_table): Likewise.
2468         (get_byte_table): Move prototype to chartab.h.
2469         (put_byte_table): Likewise.
2470         (put_char_id_table_0): Moved to chartab.h.
2471         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2472         (char_table_entry_equal): Likewise.
2473         (char_table_entry_hash): Likewise.
2474         (char_table_entry_description): Likewise.
2475         (char_table_entry): Likewise.
2476         (make_char_table_entry): Likewise.
2477         (copy_char_table_entry): Likewise.
2478         (get_non_ascii_char_table_value): Likewise.
2479         (map_over_charset_ascii): Likewise.
2480         (map_over_charset_control_1): Likewise.
2481         (map_over_charset_row): Likewise.
2482         (map_over_other_charset): Likewise.
2483         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2484         (print_char_table): Likewise.
2485         (char_table_equal): Likewise.
2486         (char_table_hash): Likewise.
2487         (char_table_description): Likewise.
2488         (fill_char_table): Likewise.
2489         (Fcopy_char_table): Likewise.
2490         (get_char_table): Likewise.
2491         (Fget_range_char_table): Likewise.
2492         (put_char_table): Likewise.
2493         (map_char_table): Likewise.
2494         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2495         UTF-2000.
2496
2497 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2498
2499         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2500         `Vauto_fill_chars' in XEmacs UTF-2000.
2501
2502         * chartab.h (get_byte_table): New prototype [moved from
2503         chartab.c].
2504         (put_byte_table): Likewise [moved from chartab.c].
2505         (put_char_id_table_0): New inline function [moved from chartab.c].
2506         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2507         (Lisp_Char_Table_Entry): Likewise.
2508         (char_table_entry): Likewise.
2509         (XCHAR_TABLE_ENTRY): Likewise.
2510         (XSETCHAR_TABLE_ENTRY): Likewise.
2511         (CHAR_TABLE_ENTRYP): Likewise.
2512         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2513         (NUM_ASCII_CHARS): Likewise.
2514         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2515         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2516
2517 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2518
2519         * chartab.c (get_char_id_table): Change interface.
2520         (put_char_id_table_0): New function.
2521         (put_char_id_table): Change interface; new implementation.
2522         (Fget_composite_char): Modify for interface change of
2523         `get_char_id_table'.
2524         (Fchar_variants): Likewise.
2525         (add_char_attribute_alist_mapper): Likewise.
2526         (Fchar_attribute_alist): Likewise.
2527         (Fget_char_attribute): Likewise.
2528         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2529         as same as character as the first argument like `put-char-table';
2530         modify for interface change of `put_char_id_table'.
2531         (Fremove_char_attribute): Modify for interface change of
2532         `put_char_id_table'.
2533
2534 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2535
2536         * text-coding.c: Sync up with XEmacs 21.2.41.
2537         (COMPOSE_ADD_CHAR): Modify for interface change of
2538         `get_char_id_table'.
2539
2540         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2541         change of `put_char_id_table'.
2542         (remove_char_ccs): Likewise.
2543
2544         * chartab.h (put_char_id_table): Change interface.
2545
2546         * char-ucs.h (get_char_id_table): Change interface.
2547         (charset_code_point): Modify for interface change of
2548         `get_char_id_table'.
2549         (encode_char_1): Likewise.
2550
2551 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2552
2553         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2554         argument `ccs'.
2555         (map_over_uint16_byte_table): Likewise.
2556         (map_over_byte_table): Likewise.
2557         (map_char_id_table): Add new argument `range' like
2558         `map_char_table'.
2559         (Fmap_char_attribute): Add new argument `range' like
2560         `Fmap_char_table'.
2561
2562 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2563
2564         * chartab.c (map_over_uint8_byte_table): Change interface of
2565         mapping function to use struct chartab_range instead of Emchar.
2566         (map_over_uint16_byte_table): Likewise.
2567         (map_over_byte_table): Likewise.
2568         (map_char_id_table): Likewise.
2569         (struct slow_map_char_id_table_arg): Deleted.
2570         (slow_map_char_id_table_fun): Deleted.
2571         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2572         function `slow_map_char_table_fun' instead of struct
2573         `slow_map_char_id_table_arg' and function
2574         `slow_map_char_id_table_fun'.
2575
2576 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2577
2578         * mule-charset.c: Move char-it-table related codes to chartab.c.
2579         (Vutf_2000_version): Moved to chartab.c.
2580         (Fdefine_char): Likewise.
2581         (Ffind_char): Likewise.
2582         (syms_of_mule_charset): Move types `uint8-byte-table',
2583         `uint16-byte-table', `byte-table' and `char-id-table' to
2584         chartab.c; move functions `char_attribute_list,
2585         `find_char_attribute_table, `char_attribute_alist,
2586         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2587         `map_char_attribute, `define_char, `find_char, `char_variants and
2588         `get_composite_char to chartab.c; move symbols `=>ucs',
2589         `->decomposition', `compat', `isolated', `initial', `medial',
2590         `final', `vertical', `noBreak', `fraction', `super', `sub',
2591         `circle', `square', `wide', `narrow', `small' and `font' to
2592         chartab.c.
2593         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2594         setting codes for `Vcharacter_composition_table' and
2595         `Vcharacter_variant_table' to chartab.c.
2596         (complex_vars_of_mule_charset): Move setting code for
2597         `Vchar_attribute_hash_table' to chartab.c.
2598
2599         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2600         (make_char_id_table): New prototype.
2601         (put_char_id_table): Likewise.
2602         (Fget_char_attribute): Likewise.
2603
2604         * chartab.c: Move char-id-table related code from mule-charset.c.
2605         (Vutf_2000_version): Moved from mule-charset.c.
2606
2607         * char-ucs.h (Qucs): New external variable.
2608         (put_char_ccs_code_point): New prototype.
2609         (remove_char_ccs): Likewise.
2610
2611 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2612
2613         * mule-charset.c (Vcharset_ucs_jis): New variable.
2614         (Qucs_jis): Likewise.
2615         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2616         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2617
2618         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2619
2620 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2621
2622         * mule-charset.c (map_over_uint8_byte_table): New function.
2623         (map_over_uint16_byte_table): Likewise.
2624         (map_over_byte_table): Likewise.
2625         (map_char_id_table): Likewise.
2626         (slow_map_char_id_table_fun): Likewise.
2627         (Fmap_char_attribute): Likewise.
2628         (syms_of_mule_charset): Add new function `map-char-attribute'.
2629
2630 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2631
2632         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2633         (syms_of_mule_charset): Add new function `find-char'.
2634
2635 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2636
2637         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2638         XEmacs UTF-2000.
2639         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2640         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2641         XEmacs UTF-2000.
2642         (complex_vars_of_mule_charset): Add new coded-charset
2643         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2644         `ideograph-gt-pj-*'.
2645
2646         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2647
2648 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2649
2650         * mule-charset.c (encode_builtin_char_1): Purge codes about
2651         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2652         {MIN|MAX}_CHAR_HEBREW.
2653         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2654         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2655
2656         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2657         (MAX_CHAR_GREEK): Purged.
2658         (MIN_CHAR_CYRILLIC): Purged.
2659         (MAX_CHAR_CYRILLIC): Purged.
2660         (MIN_CHAR_HEBREW): Commented out.
2661         (MAX_CHAR_HEBREW): Likewise.
2662
2663 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2664
2665         * mule-charset.c (Qto_ucs): New variable.
2666         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2667         (Fdefine_char): Likewise.
2668         (syms_of_mule_charset): Add new symbol `=>ucs'.
2669
2670 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2671
2672         * mule-charset.c (Fdecode_char): Fixed.
2673
2674 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2675
2676         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2677         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2678         "tcvn5712-1".
2679
2680 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2681
2682         * mule-charset.c (Vcharset_ucs_big5): New variable.
2683         (Qucs_big5): Likewise.
2684         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2685         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2686
2687         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2688
2689 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2690
2691         * mule-charset.c (decode_builtin_char): Check Big5 code range
2692         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2693
2694 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2695
2696         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2697         (Qchinese_gb12345): Likewise.
2698         (Fdecode_builtin_char): Fixed.
2699         (syms_of_mule_charset): Add `chinese-gb12345'.
2700         (complex_vars_of_mule_charset): Add coded-charset
2701         `chinese-gb12345'.
2702
2703         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2704         (LEADING_BYTE_CHINESE_GB12345): New macro.
2705
2706 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2707
2708         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2709         and `latin-viscii-upper' for `latin-viscii'.
2710
2711 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2712
2713         * mule-charset.c (Fdecode_builtin_char): Comment out
2714         regularization code for ISO-IR GR representation.
2715
2716 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2717
2718         * mule-charset.c (decode_builtin_char): New function; renamed from
2719         `make_builtin_char'; return -1 instead of signal.
2720         (Fdecode_builtin_char): Use `decode_builtin_char'.
2721
2722         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2723         `make_builtin_char'.
2724         (DECODE_CHAR): Use `decode_builtin_char' instead of
2725         `make_builtin_char'; use mapping table of `chinese-big5' for
2726         `chinese-big5-{1,2}'.
2727
2728 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2729
2730         * text-coding.c (char_encode_big5): New function.
2731         (char_finish_big5): Likewise.
2732         (reset_encoding_stream): Use `char_encode_big5' and
2733         `char_finish_big5' for CODESYS_BIG5.
2734         (mule_encode): Don't use `encode_coding_big5'.
2735         (encode_coding_big5): Deleted.
2736
2737 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2738
2739         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2740         0x81- in XEmacs UTF-2000.
2741         (detect_coding_big5): Likewise.
2742
2743 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2744
2745         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2746         generate character-id if the CCS property does not have
2747         corresponding predefined character.
2748         (make_builtin_char): Return -1 if corresponding predefined
2749         character is not found.
2750         (Fdecode_char): Return nil if corresponding character is not
2751         found.
2752         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2753         don't map to builtin ucs space.
2754
2755 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2756
2757         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2758         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2759
2760 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2761
2762         * mule-charset.c (Vcharset_ideograph_gt): New variable.
2763         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
2764         (Qideograph_gt): Likewise.
2765         (Qideograph_gt_pj_{1..11}): Likewise.
2766         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
2767         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
2768         `ideograph-gt-pj-11'.
2769         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
2770         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
2771         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
2772
2773         * char-ucs.h (LEADING_BYTE_GT): New macro.
2774         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
2775         (MIN_CHAR_GT): Likewise.
2776         (MAX_CHAR_GT): Likewise.
2777
2778 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2779
2780         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
2781         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
2782
2783         * doprnt.c (unsigned_int_converters): Add `c'.
2784         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
2785
2786         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
2787         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
2788         `MIN_CHAR_MOJIKYO'.
2789         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
2790         (MAX_CHAR_MOJIKYO_0): New macro.
2791         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
2792
2793 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2794
2795         * mule-charset.c (Fdefine_char): Delete cemented out code.
2796         (encode_builtin_char_1): Modify for new allocation of builtin
2797         Mojikyo characters.
2798
2799         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
2800
2801 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2802
2803         * mule-charset.c (Vcharset_ucs_cns): New variable.
2804         (Qucs_cns): New variable.
2805         (syms_of_mule_charset): Add new symbol `ucs-cns'.
2806         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
2807
2808 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2809
2810         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
2811
2812 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2813
2814         * search.c (search_buffer): Make `charset_base_code' as
2815         character-id >> 6 to eliminate the corresponding last byte in
2816         UTF-8 representation [I'm not sure it is right thing].
2817         (boyer_moore): Likewise.
2818
2819 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
2820
2821         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
2822         representation in MULE.
2823
2824 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2825
2826         * text-coding.c (Fmake_coding_system): Use
2827         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
2828         `EXTERNAL_PROPERTY_LIST_LOOP'.
2829
2830 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2831
2832         * text-coding.c (decode_output_utf8_partial_char): New function.
2833         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
2834
2835 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2836
2837         * text-coding.c (decode_coding_utf8): Output original byte
2838         sequence if it is broken; change order of conditions.
2839
2840         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
2841         of conditions.
2842
2843         * mb-multibyte.h (BYTE_ASCII_P):
2844         Use bit ops for char-signedness safety.
2845         (BYTE_C0_P): Use bit ops for char-signedness safety.
2846         (BYTE_C1_P): Use bit ops for char-signedness safety.
2847
2848         * character.h: (XCHAR_OR_CHAR_INT):
2849         Always use inline function.
2850         Remove redundant type checking assert() - XINT will abort quite
2851         nicely.
2852
2853 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2854
2855         * text-coding.c: (Fencode_shift_jis_char):
2856         (Fencode_big5_char):
2857         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
2858         Replace 0 with '\0' when working with bytes.
2859         Replace initial "(" with "\(" in docstrings.
2860
2861         (Fmake_coding_system):
2862         When type is ccl and value is vector, register it with a proper
2863         symbol.  And checks whether the given ccl program is valid.
2864         (mule_decode): When calling ccl_driver, if src indicates
2865         NULL pointer, set an empty string instead.
2866         (mule_encode): Likewise.
2867
2868         (detect_eol_type):
2869         (detect_coding_sjis):
2870         (decode_coding_sjis):
2871         (detect_coding_big5):
2872         (decode_coding_big5):
2873         (detect_coding_ucs4):
2874         (decode_coding_ucs4):
2875         (detect_coding_utf8):
2876         (decode_coding_utf8):
2877         (detect_coding_iso2022):
2878         (decode_coding_iso2022):
2879         (decode_coding_no_conversion):
2880         (mule_decode):
2881         Make all detecting and decoding functions take an Extbyte * arg.
2882         (text_encode_generic):
2883         (encode_coding_big5):
2884         (encode_coding_no_conversion):
2885         (mule_encode):
2886         Make all encoding functions take a Bufbyte * arg.
2887         Use size_t instead of unsigned int for memory sizes.
2888         Only cast to unsigned char whenever dereferencing Extbyte *.
2889
2890         (struct lrecord_description fcd_description_1): Use countof.
2891         (complex_vars_of_file_coding):
2892         Use countof instead of sizeof.
2893         Use CHECK_NATNUM instead of CHECK_INT.
2894
2895 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2896
2897         * mule-charset.c (Fget_char_attribute): Add new optional argument
2898         `default-value'.
2899         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
2900         (remove_char_ccs): Likewise.
2901
2902 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2903
2904         * text-coding.c (char_encode_shift_jis): New implementation in
2905         UTF-2000.
2906         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
2907         ...)'.
2908
2909         * mule-charset.c (Vcharset_chinese_big5): New variable in
2910         UTF-2000.
2911         (Qchinese_big5): New variable in UTF-2000.
2912         (BIG5_SAME_ROW): New macro in UTF-2000.
2913         (make_builtin_char): Use builtin characters of
2914         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
2915         characters of `Vcharset_chinese_big5'.
2916         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
2917         (complex_vars_of_mule_charset): Add new coded-charset
2918         `chinese-big5' in UTF-2000.
2919
2920         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
2921         (Vcharset_chinese_big5): New external variable declaration.
2922         (Vcharset_japanese_jisx0208_1990): Likewise.
2923
2924 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2925
2926         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
2927         function.
2928         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
2929
2930 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2931
2932         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
2933         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
2934         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
2935         `mojikyo-pj-*'.
2936
2937 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2938
2939         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
2940
2941 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2942
2943         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2944         to 0.17.
2945
2946 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2947
2948         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
2949         for `CHARSET_BY_ATTRIBUTES'.
2950         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2951         `CHARSET_BY_ATTRIBUTES'.
2952
2953         * text-coding.c (struct decoding_stream): Rename member `CH' to
2954         `CPOS'.
2955         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
2956         (decode_coding_sjis): Likewise.
2957         (decode_coding_big5): Likewise.
2958         (decode_coding_ucs4): Likewise.
2959         (decode_coding_utf8): Likewise.
2960         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
2961         `CHARSET_BY_ATTRIBUTES'.
2962         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
2963         `str->counter'; decode 3, 4 bytes sets.
2964         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
2965         sets.
2966         (decode_coding_no_conversion): Use `str->cpos' instead of
2967         `str->ch'.
2968
2969         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
2970         (Qmojikyo_2022_1): New variable.
2971         (make_charset): Don't use `CHARSET_TYPE_*'.
2972         (range_charset_code_point): Support coded-charset
2973         `mojikyo-2022-1'.
2974         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
2975         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
2976         `CHARSET_BY_ATTRIBUTES'.
2977         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
2978         `CHARSET_BY_ATTRIBUTES'.
2979         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
2980         (complex_vars_of_mule_charset): Add new coded-charset
2981         `mojikyo-2022-1'.
2982
2983         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
2984         interface; changed to inline function.
2985
2986         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
2987         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
2988         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
2989         (CHARSET_TYPE_94): Deleted.
2990         (CHARSET_TYPE_94X94): Deleted.
2991         (CHARSET_TYPE_96): Deleted.
2992         (CHARSET_TYPE_96X96): Deleted.
2993         (CHARSET_TYPE_128): Deleted.
2994         (CHARSET_TYPE_128X128): Deleted.
2995         (CHARSET_TYPE_256): Deleted.
2996         (CHARSET_TYPE_256X256): Deleted.
2997         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
2998         to inline function.
2999         (DECODE_MOJIKYO_2022): New inline function.
3000         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3001         `Vcharset_mojikyo_2022_1'.
3002
3003 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3004
3005         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3006         instead of `EQ'.
3007         (put_byte_table): Likewise.
3008         (char_id_table_equal): Use `get_byte_table' [new implementation].
3009
3010 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3011
3012         * mule-charset.c: Include <limits.h> in UTF-2000.
3013         (BT_UINT8_MIN): New macro in UTF-2000.
3014         (BT_UINT8_MAX): New macro in UTF-2000.
3015         (BT_UINT8_t): New macro in UTF-2000.
3016         (BT_UINT8_nil): New macro in UTF-2000.
3017         (BT_UINT8_unbound): New macro in UTF-2000.
3018         (INT_UINT8_P): New inline function in UTF-2000.
3019         (UINT8_VALUE_P): New inline function in UTF-2000.
3020         (UINT8_ENCODE): New inline function in UTF-2000.
3021         (UINT8_DECODE): New inline function in UTF-2000.
3022         (mark_uint8_byte_table): New function in UTF-2000.
3023         (print_uint8_byte_table): New function in UTF-2000.
3024         (uint8_byte_table_equal): New function in UTF-2000.
3025         (uint8_byte_table_hash): New function in UTF-2000.
3026         (make_uint8_byte_table): New function in UTF-2000.
3027         (uint8_byte_table_same_value_p): New function in UTF-2000.
3028         (BT_UINT16_MIN): New macro in UTF-2000.
3029         (BT_UINT16_MAX): New macro in UTF-2000.
3030         (BT_UINT16_t): New macro in UTF-2000.
3031         (BT_UINT16_nil): New macro in UTF-2000.
3032         (BT_UINT16_unbound): New macro in UTF-2000.
3033         (INT_UINT16_P): New inline function in UTF-2000.
3034         (UINT16_VALUE_P): New inline function in UTF-2000.
3035         (UINT16_ENCODE): New inline function in UTF-2000.
3036         (UINT16_DECODE): New inline function in UTF-2000.
3037         (UINT8_TO_UINT16): New inline function in UTF-2000.
3038         (mark_uint16_byte_table): New function in UTF-2000.
3039         (print_uint16_byte_table): New function in UTF-2000.
3040         (uint16_byte_table_equal): New function in UTF-2000.
3041         (uint16_byte_table_hash): New function in UTF-2000.
3042         (make_uint16_byte_table): New function in UTF-2000.
3043         (uint16_byte_table_same_value_p): New function in UTF-2000.
3044         (print_byte_table): New function in UTF-2000.
3045         (byte-table): Use `print_byte_table' as printer.
3046         (make_byte_table): Delete second argument `older'.
3047         (byte_table_same_value_p): New function in UTF-2000.
3048         (copy_byte_table): Deleted.
3049         (get_byte_table): New function in UTF-2000.
3050         (put_byte_table): New function in UTF-2000.
3051         (print_char_id_table): New function in UTF-2000.
3052         (char-id-table): Use `print_char_id_table' as printer.
3053         (make_char_id_table): Delete second argument `older'.
3054         (get_char_id_table): Use `get_byte_table [new implementation].
3055         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3056         implementation].
3057         (Ffind_char_attribute_table): New function in UTF-2000.
3058         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3059         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3060         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3061         (syms_of_mule_charset): Add new function
3062         `find-char-attribute-table' in UTF-2000.
3063
3064         * lrecord.h (enum lrecord_type): Add
3065         `lrecord_type_uint16_byte_table' and
3066         `lrecord_type_uint8_byte_table'.
3067
3068         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3069         (Lisp_Uint8_Byte_Table): New type.
3070         (XUINT8_BYTE_TABLE): New macro.
3071         (XSETUINT8_BYTE_TABLE): New macro.
3072         (UINT8_BYTE_TABLE_P): New macro.
3073         (GC_UINT8_BYTE_TABLE_P): New macro.
3074         (struct Lisp_Uint16_Byte_Table): New structure.
3075         (Lisp_Uint16_Byte_Table): New type.
3076         (XUINT16_BYTE_TABLE): New macro.
3077         (XSETUINT16_BYTE_TABLE): New macro.
3078         (UINT16_BYTE_TABLE_P): New macro.
3079         (GC_UINT16_BYTE_TABLE_P): New macro.
3080
3081 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3082
3083         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3084         (Vcharacter_ideographic_strokes_table): Deleted.
3085         (Vcharacter_total_strokes_table): Deleted.
3086         (Vcharacter_morohashi_daikanwa_table): Deleted.
3087         (Vcharacter_decomposition_table): Deleted.
3088         (Qname): Deleted because it is duplicated.
3089         (Qideographic_radical): Deleted.
3090         (Qideographic_strokes): Deleted.
3091         (Qtotal_strokes): Deleted.
3092         (Qmorohashi_daikanwa): Deleted.
3093         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3094         `ideographic-radical', `ideographic-strokes', `total-strokes',
3095         `morohashi-daikanwa' and `->decomposition'.
3096         (Fget_char_attribute): Likewise.
3097         (Fput_char_attribute): Likewise; use `make-vector' instead of
3098         `make_older_vector' for `->decomposition' value.
3099         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3100         `ideograph-daikanwa'.
3101         (syms_of_mule_charset): Delete builtin symbols `name',
3102         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3103         `morohashi-daikanwa'.
3104         (vars_of_mule_charset): Don't setup
3105         `Vcharacter_ideographic_radical_table',
3106         `Vcharacter_ideographic_strokes_table',
3107         `Vcharacter_total_strokes_table',
3108         `Vcharacter_morohashi_daikanwa_table' and
3109         `Vcharacter_decomposition_table'.
3110
3111 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3112
3113         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3114         `make_older_vector', `make_vector_newer_1' and
3115         `make_vector_newer'.
3116
3117         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3118         `make_older_vector' and `make_vector_newer'.
3119
3120         * config.h.in (HAVE_GGC): New macro.
3121
3122 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3123
3124         * mule-charset.c (struct char_attribute_list_closure): New
3125         structure in UTF-2000.
3126         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3127         (Fchar_attribute_list): Likewise.
3128         (Fset_charset_mapping_table): Use `make_vector_newer'.
3129         (Fdecode_builtin_char): New function in UTF-2000.
3130         (syms_of_mule_charset): Add new function `char-attribute-list' and
3131         `decode-builtin-char' in UTF-2000.
3132
3133         * lisp.h (make_vector_newer): New prototype.
3134
3135         * alloc.c (make_vector_newer_1): New function.
3136         (make_vector_newer): New function.
3137
3138 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3139
3140         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3141         50100)'.
3142
3143 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3144
3145         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3146         (Vcharacter_attribute_table): Deleted.
3147         (Vcharacter_name_table): Deleted.
3148         (put_char_attribute): Deleted.
3149         (remove_char_attribute): Deleted.
3150         (struct char_attribute_alist_closure): New structure.
3151         (add_char_attribute_alist_mapper): New function.
3152         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3153         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3154         (Fget_char_attribute): Likewise.
3155         (Fput_char_attribute): Likewise.
3156         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3157         of `remove_char_attribute'.
3158         (Fdefine_char): Return character.
3159         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3160         and `Vcharacter_name_table'.
3161         (complex_vars_of_mule_charset): Likewise
3162         `Vchar_attribute_hash_table'.
3163
3164 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3165
3166         * character.h (CHARC_CHARSET): New macro.
3167         (CHARC_CHARSET_ID): New macro.
3168         (CHARC_CODE_POINT): New macro.
3169         (CHARC_COLUMNS): New macro.
3170         (CHARC_TO_CHAR): New inline function.
3171         (CHARC_EQ): New inline function.
3172         (CHARC_ASCII_EQ): New inline function.
3173         (CHARC_IS_SPACE): New inline function.
3174         (ASCII_TO_CHARC): New inline function.
3175
3176         * char-ucs.h (encode_char_2): Deleted.
3177         (ENCODE_CHAR): Use `encode_char_1' again.
3178         (breakup_char_1): Likewise.
3179         (CHAR_TO_CHARC): New inline function.
3180
3181         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3182
3183 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3184
3185         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3186         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3187         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3188         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3189         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3190         `CHARC_IS_SPACE'.
3191         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3192
3193         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3194         `CHARC_CODE_POINT'.
3195         (x_output_display_block): Use `CHARC_CHARSET' and
3196         `CHARC_ASCII_EQ'.
3197
3198         * redisplay-tty.c (tty_output_display_block): Use
3199         `CHARC_ASCII_EQ'.
3200         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3201
3202         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3203
3204         * insdel.c (find_charsets_in_charc_string): Use
3205         `CHARC_CHARSET_ID'.
3206         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3207         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3208         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3209         (convert_charc_string_into_malloced_string): Likewise.
3210
3211 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3212
3213         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3214         instead of <Emchar_dynarr *> for buf; use
3215         `convert_bufbyte_string_into_charc_dynarr' instead of
3216         `convert_bufbyte_string_into_emchar_dynarr'; use
3217         `find_charsets_in_charc_string' instead of
3218         `find_charsets_in_emchar_string'.
3219
3220         * redisplay.h:
3221         - Include "character.h".
3222         (struct rune): New member `cglyph'; delete member `chr'.
3223
3224         * redisplay.c (redisplay_text_width_charc_string): New function;
3225         delete `redisplay_text_width_emchar_string'.
3226         (rtw_charc_dynarr): New variable; renamed from
3227         `rtw_emchar_dynarr'.
3228         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3229         `rtw_emchar_dynarr'; use
3230         `convert_bufbyte_string_into_charc_dynarr' instead of
3231         `convert_bufbyte_string_into_emchar_dynarr'; use
3232         `redisplay_text_width_charc_string' instead of
3233         `redisplay_text_width_emchar_string'.
3234         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3235         instead of `rtw_emchar_dynarr'; use
3236         `convert_bufbyte_string_into_charc_dynarr' instead of
3237         `convert_bufbyte_string_into_emchar_dynarr'.
3238         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3239         `redisplay_text_width_charc_string' instead of
3240         `redisplay_text_width_emchar_string'.
3241         (create_text_block): Modify for <struct rune> change.
3242         (generate_formatted_string_db): Likewise.
3243         (create_string_text_block): Likewise.
3244         (pixel_to_glyph_translation): Likewise.
3245
3246         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3247         instead of <const Emchar *>.
3248         (x_text_width): Likewise.
3249         (x_output_display_block): Use <Charc_dynarr *> instead
3250         <Emchar_dynarr *>; modify for <structure rune> change.
3251         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3252         *>.
3253
3254         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3255         <const Emchar *>; use `charc_string_displayed_columns' instead of
3256         `emchar_string_displayed_columns'.
3257         (tty_output_display_block): Use <Charc_dynarr *> instead of
3258         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3259         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3260         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3261         `tty_output_emchar_dynarr_dynarr'.
3262         (tty_output_charc_dynarr): New function; delete
3263         `tty_output_charc_dynarr'.
3264
3265         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3266         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3267         <Emchar_dynarr *> for buf; use
3268         `convert_bufbyte_string_into_charc_dynarr' instead of
3269         `convert_bufbyte_string_into_emchar_dynarr'.
3270
3271         * frame.c (title_string_charc_dynarr): New variable; renamed from
3272         `title_string_emchar_dynarr'.
3273         (generate_title_string): Use `title_string_charc_dynarr' instead
3274         of `title_string_emchar_dynarr'; use
3275         `convert_charc_string_into_malloced_string' instead of
3276         `convert_emchar_string_into_malloced_string'.
3277         (init_frame): Use `title_string_charc_dynarr' instead of
3278         `title_string_emchar_dynarr'.
3279
3280         * console.h:
3281         - Include "character.h".
3282         (struct console_methods): Use <const Charc *> instead of <const
3283         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3284         <Emchar_dynarr *> in output_string_method.
3285
3286         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3287         <Emchar_dynarr *>.
3288
3289         * console-stream.c (stream_text_width): Use <const Charc *>
3290         instead of <const Emchar *>.
3291
3292         * character.h (Charc_dynarr): New type.
3293
3294         * char-ucs.h (structure Charc): New structure; define new type
3295         `Charc'.
3296
3297         * char-lb.h (DECODE_CHAR): New inline function.
3298         (encode_char_1): New inline function.
3299         (ENCODE_CHAR): New macro.
3300         (structure Charc): New structure; define new type `Charc'.
3301
3302         * char-1byte.h (Vcharset_control_1): New macro.
3303         (Vcharset_latin_iso8859_1): New macro.
3304         (DECODE_CHAR): New inline function.
3305         (encode_char_1): New inline function.
3306         (ENCODE_CHAR): New macro.
3307         (structure Charc): New structure; define new type `Charc'.
3308
3309         * insdel.c (find_charsets_in_charc_string): New function; delete
3310         `find_charsets_in_emchar_string'.
3311         (charc_string_displayed_columns): New function; delete
3312         `emchar_string_displayed_columns'.
3313         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3314         `convert_bufbyte_string_into_emchar_dynarr'.
3315         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3316         `convert_charc_string_into_bufbyte_dynarr'.
3317         (convert_charc_string_into_malloced_string): New function; delete
3318         `convert_charc_string_into_malloced_string'.
3319
3320         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3321         `find_charsets_in_emchar_string'.
3322         (charc_string_displayed_columns): New prototype; delete
3323         `emchar_string_displayed_columns'.
3324         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3325         `convert_charc_string_into_bufbyte_dynarr'.
3326         (convert_charc_string_into_malloced_string): New prototype; delete
3327         `convert_charc_string_into_malloced_string'.
3328
3329 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3330
3331         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3332
3333 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3334
3335         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3336
3337         * char-ucs.h: Use <short> for <Charset_ID>.
3338
3339         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3340         <Charset_ID>.
3341
3342 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3343
3344         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3345         to 0.16.
3346
3347 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3348
3349         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3350         variable.
3351         (Qmorohashi_daikanwa): New variable.
3352         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3353         for `morohashi-daikanwa' attribute.
3354         (Fget_char_attribute): Likewise.
3355         (Fput_char_attribute): Likewise.
3356         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3357         has the same value of `ideograph-daikanwa'.
3358         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3359         (vars_of_mule_charset): Setup
3360         `Vcharacter_morohashi_daikanwa_table'.
3361
3362 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3363
3364         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3365         attributes.
3366         (add_charset_to_list_mapper): Add `key' instead of
3367         `XCHARSET_NAME (value)' to return aliases.
3368
3369 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3370
3371         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3372         variable.
3373         (Vcharacter_ideographic_strokes_table): New variable.
3374         (Qideographic_radical): New variable.
3375         (Qideographic_strokes): New variable.
3376         (Fchar_attribute_alist): Use
3377         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3378         attribute; use `Vcharacter_ideographic_strokes_table' for
3379         `ideographic-strokes' attribute.
3380         (Fget_char_attribute): Likewise.
3381         (Fput_char_attribute): Likewise.
3382         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3383         `ideographic-strokes'.
3384         (vars_of_mule_charset): Setup
3385         `Vcharacter_ideographic_radical_table' and
3386         `Vcharacter_ideographic_strokes_table'.
3387
3388 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3389
3390         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3391         (Qtotal_strokes): New variable.
3392         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3393         `total-strokes' attribute.
3394         (Fget_char_attribute): Likewise.
3395         (Fput_char_attribute): Likewise.
3396         (syms_of_mule_charset): Add new symbol `total-strokes'.
3397         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3398
3399 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3400
3401         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3402         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3403         are found.
3404         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3405         `->decomposition' attribute.
3406         (Fput_char_attribute): Likewise.
3407         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3408
3409 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3410
3411         * mule-charset.c (decoding_table_check_elements): New function.
3412         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3413
3414 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3415
3416         * mule-charset.c (Fset_charset_mapping_table): Use
3417         `put_char_ccs_code_point'.
3418
3419 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3420
3421         * mule-charset.c (decoding_table_put_char): New inline function.
3422         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3423
3424 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3425
3426         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3427         (XCHARSET_BYTE_SIZE): New macro.
3428         (decoding_table_remove_char): New inline function.
3429         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3430         `decoding_table_remove_char'.
3431         (remove_char_ccs): Use `decoding_table_remove_char'.
3432         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3433
3434 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3435
3436         * mule-charset.c (Vcharacter_name_table): New variable.
3437         (Qname): New variable.
3438         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3439         attribute.
3440         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3441         `Vcharacter_name_table' for `name' attribute.
3442         (Fremove_char_attribute): Use function `remove_char_ccs'.
3443         (put_char_ccs_code_point): New function.
3444         (remove_char_ccs): New function.
3445         (syms_of_mule_charset): Add new symbol `name'.
3446         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3447
3448 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3449
3450         * mule-charset.c (make_byte_table): Add new argument `older'.
3451         (make_char_id_table): Likewise.
3452         (copy_char_id_table): Comment out because it is not used.
3453         (put_char_id_table): Modify for `make_byte_table'.
3454         (Fput_char_attribute): Make encoding_table as older object;
3455         inherit older bit of `Vcharacter_composition_table'.
3456         (mark_charset): Don't mark `cs->encoding_table'.
3457         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3458         normal object; make `Vcharacter_composition_table' as an older
3459         object; delete staticpro for `Vcharacter_composition_table'; make
3460         `Vcharacter_variant_table' as a normal object.
3461
3462         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3463         (mark_object): Don't check older object in UTF-2000.
3464
3465         * lrecord.h (struct lrecord_header): Add new member `older' in
3466         UTF-2000.
3467         (set_lheader_implementation): Setup `SLI_header->older' in
3468         UTF-2000.
3469         (set_lheader_older_implementation): New macro in UTF-2000.
3470         (OLDER_RECORD_P): New macro in UTF-2000.
3471         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3472         (alloc_older_lcrecord): New prototype in UTF-2000.
3473         (alloc_older_lcrecord_type): New macro in UTF-2000.
3474
3475 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3476
3477         * mule-charset.c (byte_table_description): Use
3478         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3479         (char_id_table_description): Delete bogus `, 1'.
3480         (Fget_char_attribute): Refer encoding_table of each coded-charset
3481         to get value of coded-charset attribute of a character.
3482         (Fput_char_attribute): Use `make_older_vector' instead of
3483         `make_vector'; use encoding_table of each coded-charset to store
3484         value of coded-charset attribute of a character.
3485         (Fremove_char_attribute): Use encoding_table of each coded-charset
3486         to store value of coded-charset attribute of a character.
3487         (mark_charset): Mark `cs->encoding_table'; don't mark
3488         `cs->decoding_table'.
3489         (charset_description): Add description of new member
3490         `encoding_table'.
3491         (make_charset): Initialize `encoding_table'.
3492
3493         * char-ucs.h (struct Lisp_Charset): Add new member
3494         `encoding_table'.
3495         (CHARSET_ENCODING_TABLE): New macro.
3496         (XCHARSET_ENCODING_TABLE): New macro.
3497         (charset_code_point): New implementation.
3498         (encode_char_1): Likewise.
3499
3500         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3501         (disksave_object_finalization_1): Call finalizers of
3502         `all_older_lcrecords' in UTF-2000.
3503         (make_older_vector): New function in UTF-2000.
3504         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3505         UTF-2000.
3506
3507         * lisp.h (make_older_vector): New prototype in UTF-2000.
3508
3509 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3510
3511         * lrecord.h (enum lrecord_type): Rename
3512         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3513
3514         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3515         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3516         `get_char_code_table'.
3517
3518         * mule-charset.c (mark_char_id_table): Renamed from
3519         `mark_char_code_table'.
3520         (char_id_table_equal): Renamed from `char_code_table_equal'.
3521         (char_id_table_hash): Renamed from `char_code_table_hash'.
3522         (make_char_id_table): Renamed from `make_char_code_table'.
3523         (copy_char_id_table): Renamed from `copy_char_code_table'.
3524         (get_char_id_table): Renamed from `get_char_code_table'.
3525         (put_char_id_table): Renamed from `put_char_code_table'.
3526         (to_char_id): Renamed from `to_char_code'.
3527
3528         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3529         `Lisp_Char_Code_Table'.
3530         (char_id_table): Renamed from `char_code_table'.
3531         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3532         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3533         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3534         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3535         (get_char_id_table): Renamed from `get_char_code_table'.
3536
3537 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3538
3539         * lrecord.h (enum lrecord_type): Rename
3540         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3541
3542         * mule-charset.c (mark_byte_table): Renamed from
3543         `mark_char_byte_table'.
3544         (byte_table_equal): Renamed from `char_byte_table_equal'.
3545         (byte_table_hash): Renamed from `byte_table_hash'.
3546         (make_byte_table): Renamed from `make_byte_table'.
3547         (copy_byte_table): Renamed from `copy_char_byte_table'.
3548
3549         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3550         `Lisp_Char_Byte_Table'.
3551         (byte_table): Renamed from `char_byte_table'.
3552         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3553         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3554         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3555         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3556
3557 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3558
3559         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3560         (dfc_convert_to_internal_format): Likewise.
3561         
3562         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3563         * text-coding.c (Fcoding_system_alias_p): New function.
3564         * text-coding.c (Fcoding_system_aliasee): New function.
3565         * text-coding.c (append_suffix_to_symbol): New function.
3566         * text-coding.c (dangling_coding_system_alias_p): New function.
3567         * text-coding.c (Ffind_coding_system):
3568         * text-coding.c (Fcopy_coding_system):
3569         * text-coding.c (encode_coding_no_conversion):
3570         * text-coding.c (syms_of_file_coding):
3571         * text-coding.c (vars_of_file_coding):
3572         Rewrite coding system alias code.
3573         Allow nested aliases, like symbolic links.
3574         Allow redefinition of coding system aliases.
3575         Prevent existence of dangling coding system aliases.
3576         Eliminate convert_to_external_format.
3577         Eliminate convert_to_internal_format.
3578         
3579         * text-coding.c: Change enum eol_type to eol_type_t.
3580
3581 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3582
3583         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3584         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3585
3586         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3587         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3588
3589 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3590
3591         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3592         `ideograph-daikanwa'.
3593
3594         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3595         (Vcharset_ucs_bmp): Likewise.
3596         (Vcharset_mojikyo): Add new extern variable definition.
3597         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3598         (Vcharset_latin_iso8859_3): Likewise.
3599         (Vcharset_latin_iso8859_4): Likewise.
3600         (Vcharset_latin_iso8859_9): Likewise.
3601         (Vcharset_latin_viscii_lower): Likewise.
3602         (Vcharset_latin_viscii_upper): Likewise.
3603         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3604         `mojikyo' code-point is used to decode.
3605         (encode_char_2): New function [to convert `mojikyo' code-point to
3606         Mojikyo font encoding].
3607         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3608         (breakup_char_1): Likewise.
3609         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3610
3611 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3612
3613         * text-coding.c (Fmake_coding_system): Add document about
3614         `disable-composition' property.
3615
3616 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3617
3618         * text-coding.c (Qdisable_composition): New variable; delete
3619         `Qcomposite'.
3620         (Fmake_coding_system): Add new property `disable-composite';
3621         delete property `composite'.
3622         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3623         instead of `!CODING_SYSTEM_COMPOSITE'.
3624         (syms_of_file_coding): Add new symbol `disable-composition';
3625         delete symbol `composite'.
3626
3627         * file-coding.h (struct Lisp_Coding_System): Add
3628         `disable_composition'; delete `enable_composition'.
3629         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3630         `CODING_SYSTEM_COMPOSITE'.
3631         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3632         `XCODING_SYSTEM_COMPOSITE'.
3633
3634 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3635
3636         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3637         to 0.15.
3638
3639 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3640
3641         * text-coding.c (Qcomposite): New variable.
3642         (Fmake_coding_system): Add new property `composite'.
3643         (struct decoding_stream): Add `combined_char_count',
3644         `combined_chars' and `combining_table' in UTF-2000.
3645         (COMPOSE_FLUSH_CHARS): New macro.
3646         (COMPOSE_ADD_CHAR): New macro.
3647         (reset_decoding_stream): Reset `str->combined_char_count' and
3648         `str->combining_table' in UTF-2000.
3649         (decode_coding_iso2022): Modify for character-decomposition.
3650         (syms_of_file_coding): Add new symbol `composite'.
3651
3652 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3653
3654         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3655         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3656         of `Vcharacter_composition_table' if `->decomposition' property
3657         has only 1 element.
3658         (Qlatin_tcvn5712): New variable.
3659         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3660         (complex_vars_of_mule_charset): Add new coded-charset
3661         `latin-tcvn5712'.
3662
3663         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3664
3665 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3666
3667         * file-coding.h (struct Lisp_Coding_System): Add
3668         `enable_composition'.
3669         (CODING_SYSTEM_COMPOSITE): New macro.
3670         (XCODING_SYSTEM_COMPOSITE): New macro.
3671
3672 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3673
3674         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3675
3676 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3677
3678         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3679         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3680
3681 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3682
3683         * mule-charset.c (Vcharset_mojikyo): New variable.
3684         (Fdefine_char): Don't use coded-charset which does not have
3685         non-builtin character range to allocate character-id.
3686         (Qmojikyo): New variable.
3687         (syms_of_mule_charset): Add new symbol `mojikyo'.
3688         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3689
3690         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3691         (LEADING_BYTE_MOJIKYO): New macro.
3692         (MIN_CHAR_MOJIKYO): New macro.
3693         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3694         (MAX_CHAR_MOJIKYO): New macro.
3695
3696 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3697
3698         * mule-charset.c (remove_char_attribute): Fixed.
3699
3700 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3701
3702         * mule-charset.c (remove_char_attribute): New function.
3703         (Fremove_char_attribute): New function.
3704         (encode_builtin_char_1): Comment out builtin-support for
3705         greek-iso8859-7 and cyrillic-iso8859-5.
3706         (Fdecode_char): Check `code' is an integer.
3707         (syms_of_mule_charset): Add `remove-char-attribute'.
3708         (MIN_CHAR_GREEK): Deleted.
3709         (MAX_CHAR_GREEK): Likewise.
3710         (MIN_CHAR_CYRILLIC): Likewise.
3711         (MAX_CHAR_CYRILLIC): Likewise.
3712         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3713         MAX_CHAR_GREEK for `greek-iso8859-7'.
3714
3715         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3716         (MAX_CHAR_GREEK): Likewise.
3717         (MIN_CHAR_CYRILLIC): Likewise.
3718         (MAX_CHAR_CYRILLIC): Likewise.
3719
3720 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3721
3722         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3723         format is used without `ucs' property.
3724         (Fdecode_char): Fix problem with GR representation.
3725         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3726         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3727
3728 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3729
3730         * mule-charset.c (make_builtin_char): New function.
3731         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3732         (Fset_charset_mapping_table): Modify for new representation of
3733         code-point.
3734         (Fdecode_char): New function.
3735         (syms_of_mule_charset): Add new builtin function `decode-char' in
3736         UTF-2000.
3737
3738         * char-ucs.h (make_builtin_char): New prototype.
3739         (DECODE_CHAR): New inline function.
3740         (MAKE_CHAR): Use `DECODE_CHAR'.
3741
3742 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3743
3744         * text-coding.c (parse_charset_conversion_specs): Use
3745         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3746         `XCHARSET_TYPE'.
3747         (iso2022_designate): Likewise.
3748
3749         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3750         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3751
3752         * mule-charset.c (Vcharset_ucs): New variable.
3753         (print_charset): Change design; use `CHARSET_CHARS' and
3754         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3755         (make_charset): Change signature to specify `chars' and
3756         `dimension' instead of `type'.
3757         (range_charset_code_point): Modify for 256^n-set.
3758         (encode_builtin_char_1): Encode as `ucs' in default.
3759         (Fmake_charset): Modify for `make_charset'.
3760         (Fmake_reverse_direction_charset): Likewise.
3761         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
3762         UTF-2000.
3763         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
3764         for `make_charset'.
3765
3766         * char-ucs.h (Vcharset_ucs): New variable.
3767         (LEADING_BYTE_UCS): New macro.
3768         (struct Lisp_Charset): Delete `type'; change type of `dimension'
3769         and `chars' to `unsigned short' from `unsigned int'.
3770         (CHARSET_TYPE): Deleted.
3771         (XCHARSET_TYPE): Deleted.
3772
3773 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
3774
3775         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
3776
3777         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
3778         (ENCODE_CHAR): New macro.
3779
3780 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3781
3782         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3783         to 0.14 (Kawachi-Katakami).
3784
3785 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3786
3787         * text-coding.c (char_encode_shift_jis): Modify for
3788         `charset_code_point'.
3789         (char_encode_iso2022): Likewise.
3790
3791         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
3792         (integer) instead of list of <Lisp_Object>s (integers) as the
3793         format of code-point of a coded-charset.
3794         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3795         (encode_builtin_char_1): New function; delete
3796         `split_builtin_char'.
3797         (charset_code_point): Return <int> instead of <Lisp_Object>.
3798         (Fsplit_char): Don't use `SPLIT_CHAR'.
3799
3800         * char-ucs.h (encode_builtin_char_1): New prototype; delete
3801         prototype for `split_builtin_char'.
3802         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
3803         (charset_code_point): Likewise.
3804         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
3805         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
3806
3807 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
3808
3809         * mule-charset.c (complex_vars_of_mule_charset): Don't define
3810         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
3811
3812 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3813
3814         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
3815
3816         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
3817         (MAX_CHAR_OBS_94x94): Deleted.
3818
3819 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
3820
3821         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
3822
3823         * char-ucs.h (MAX_CHAR_BMP): New macro.
3824
3825 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3826
3827         * text-coding.c: Sync with r21-2-24.
3828
3829 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
3830
3831         * file-coding.c: Modify for UTF-2000.
3832
3833 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3834
3835         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3836         to 0.13 (Takaida).
3837
3838 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3839
3840         * mule-charset.c (split_builtin_char): Delete builtin support for
3841         `katakana-jisx0201'.
3842         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
3843         BMP area in builtin representation.
3844
3845         * char-ucs.h (MAKE_CHAR): Delete builtin support for
3846         `Vcharset_katakana_jisx0201'.
3847
3848 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
3849
3850         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
3851         (Qisolated): New variable.
3852         (Qinitial): New variable.
3853         (Qmedial): New variable.
3854         (Qfinal): New variable.
3855         (Qvertical): New variable.
3856         (Qsmall): New variable.
3857         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
3858         `Qvertical' and `Qsmall'.
3859         (Qmojikyo_pj_[1 .. 21]): New variable.
3860         (syms_of_mule_charset): Add new symbols `isolated', `initial',
3861         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
3862         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
3863         .. 21]'.
3864
3865 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
3866
3867         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
3868         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
3869         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
3870
3871 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
3872
3873         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
3874         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
3875         BMP.
3876         (Qjapanese_jisx0208_1990): New variable.
3877         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
3878         (complex_vars_of_mule_charset): Add new coded-charset
3879         `japanese-jisx0208-1990'.
3880
3881         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
3882         (MIN_CHAR_JIS_X0208_1990): New macro.
3883         (MAX_CHAR_JIS_X0208_1990): New macro.
3884
3885 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3886
3887         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
3888         coded-charset is not found.
3889
3890 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3891
3892         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
3893         (Fdefine_char): Use `Fmake_char'.
3894
3895 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3896
3897         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
3898         (Vcharset_hiragana_jisx0208): Deleted.
3899         (Vcharset_katakana_jisx0208): Deleted.
3900         (Qideograph_daikanwa): New variable.
3901         (Qhiragana_jisx0208): Deleted.
3902         (Qkatakana_jisx0208): Deleted.
3903         (split_builtin_char): Split `ideograph-daikanwa'.
3904         (Fsplit_char): New implementation for UTF-2000.
3905         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
3906         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
3907         (complex_vars_of_mule_charset): Add new coded-charset
3908         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
3909         `katakana-jisx0208'.
3910
3911         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
3912         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
3913         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
3914         (MIN_CHAR_DAIKANWA): New macro.
3915         (MAX_CHAR_DAIKANWA): New macro.
3916
3917 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3918
3919         * data.c (Fstring_to_number): Don't recognize floating point if
3920         base is not 10.
3921
3922 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3923
3924         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
3925
3926 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3927
3928         * mule-charset.c (Qsquare): New variable.
3929         (to_char_code): Add `Qsquare'.
3930         (syms_of_mule_charset): Add new symbol `square'.
3931
3932 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3933
3934         * mule-charset.c (Qcircle): New variable.
3935         (to_char_code): Add `Qcircle'.
3936         (syms_of_mule_charset): Add new symbol `circle'.
3937
3938 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3939
3940         * mule-charset.c (Qfont): New variable.
3941         (to_char_code): Add `Qfont'.
3942         (syms_of_mule_charset): Add new symbol `font'.
3943
3944 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3945
3946         * mule-charset.c (Qsub): New variable.
3947         (to_char_code): Add `Qsub'.
3948         (syms_of_mule_charset): Add new symbol `sub'.
3949
3950 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3951
3952         * mule-charset.c (Fput_char_attribute): Convert each element of
3953         VALUE to GL position if ATTRIBUTE is a GR-set,
3954
3955 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3956
3957         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
3958         coded-charset is a GR-set.
3959
3960 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3961
3962         * mule-charset.c (Fput_char_attribute): Check each element of
3963         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
3964
3965 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3966
3967         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
3968         UTF-2000.
3969         (Qethiopic_ucs): New variable in UTF-2000.
3970         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
3971         (complex_vars_of_mule_charset): Add new coded-charset
3972         `ethiopic-ucs' in UTF-2000.
3973
3974         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
3975         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3976         9)'.
3977         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
3978         10)'.
3979         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
3980
3981 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
3982
3983         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
3984         `ascii'.
3985
3986 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3987
3988         * mule-charset.c (Vcharacter_variant_table): New variable.
3989         (Q_ucs): New variable.
3990         (Fchar_variants): New function.
3991         (Fput_char_attribute): Register `->ucs' value to
3992         `Vcharacter_variant_table'.
3993         (syms_of_mule_charset): Add new function `char-variants' and new
3994         symbol `->ucs'.
3995         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
3996
3997 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3998
3999         * mule-charset.c (get_char_code_table): Allow negative character
4000         code.
4001         (put_char_code_table): Likewise.
4002         (Vcharacter_composition_table): New variable.
4003         (Q_decomposition): New variable.
4004         (Qwide): New variable.
4005         (Qnarrow): New variable.
4006         (Qcompat): New variable.
4007         (QnoBreak): New variable.
4008         (Qsuper): New variable.
4009         (Qfraction): New variable.
4010         (to_char_code): New function.
4011         (Fget_composite_char): New function.
4012         (Fput_char_attribute): Register `->decomposition' value to
4013         `Vcharacter_composition_table'.
4014         (syms_of_mule_charset): Add new function `get-composite-char', new
4015         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4016         `super' and `fraction'.
4017         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4018
4019 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4020
4021         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4022         character; copy the return value.
4023
4024 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4025
4026         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4027
4028         * mule-charset.c (range_charset_code_point): Must use make_int.
4029         (split_builtin_char): New function.
4030
4031 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4032
4033         * mule-charset.c (char_byte_table): Change name from
4034         "char-code-table" to "char-byte-table".
4035         (mark_char_code_table): New function.
4036         (char_code_table_equal): New function.
4037         (char_code_table_hash): New function.
4038         (char_code_table_description): New constant.
4039         (char_code_table): New type.
4040         (make_char_code_table): New function.
4041         (copy_char_code_table): New function.
4042         (get_char_code_table): Modify for `char_code_table' type.
4043         (put_char_code_table): Likewise.
4044         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4045         (Kashiwara).
4046
4047         * char-ucs.h (char_code_table): New type.
4048         (XCHAR_CODE_TABLE): New macro.
4049         (XSETCHAR_CODE_TABLE): New macro.
4050         (CHAR_CODE_TABLE_P): New macro.
4051         (GC_CHAR_CODE_TABLE_P): New macro.
4052         (struct Lisp_Char_Code_Table): New structure.
4053
4054 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4055
4056         * mule-charset.c (Fmake_charset): Setup byte_offset for
4057         {94|96}^n-set.
4058
4059 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4060
4061         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4062         character.
4063
4064 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4065
4066         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4067         is found.
4068
4069 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4070
4071         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4072         charset, it is regarded as a charset.
4073         (put_char_attribute): New function in UTF-2000.
4074         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4075         charset, mapping-table of the charset is modified.
4076         (Fdefine_char): New function in UTF-2000.
4077         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4078         `Fput_char_attribute'.
4079         (syms_of_mule_charset): Add new function `define-char' and new
4080         symbol `ucs' in UTF-2000.
4081         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4082
4083 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4084
4085         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4086         non-UTF-2000 configuration.
4087
4088 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4089
4090         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4091         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4092
4093         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4094         deleted.
4095         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4096         (Fset_charset_mapping_table): Likewise.
4097
4098         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4099         (CHARSET_ENCODING_TABLE): Delete.
4100         (XCHARSET_ENCODING_TABLE): Delete.
4101         (charset_code_point): New interface.
4102
4103 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4104
4105         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4106         instead of `charset_get_byte1' and `charset_get_byte2'.
4107
4108         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4109         (charset_get_byte2): Deleted.
4110
4111 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4112
4113         * char-ucs.h (SPLIT_CHAR): New inline function.
4114         (breakup_char_1): Use `SPLIT_CHAR'.
4115
4116         * mule-charset.c (range_charset_code_point): New function.
4117         (charset_code_point): New function.
4118
4119         * char-ucs.h (range_charset_code_point): New interface.
4120         (breakup_char_1): Use `range_charset_code_point'.
4121
4122 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4123
4124         * mule-charset.c (Fmake_charset): Delete unused local variable
4125         `code_offset'.
4126
4127         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4128         (breakup_char_1): Find a charset and code-point in
4129         `Vcharacter_attribute_table'.
4130
4131 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4132
4133         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4134         to 0.10 (Yao).
4135
4136 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4137
4138         * mule-charset.c (Vcharacter_attribute_table): New variable.
4139         (Fchar_attribute_alist): New function.
4140         (Fget_char_attribute): New function.
4141         (Fput_char_attribute): New function.
4142         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4143         too.
4144         (syms_of_mule_charset): Add new function `char-attribute-alist',
4145         `get-char-attribute' and `put-char-attribute'.
4146         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4147
4148 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4149
4150         * mule-charset.c (Fmake_charset): Just use
4151         `get_unallocated_leading_byte'.
4152
4153         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4154         sets; don't use final-byte based number for private sets.
4155
4156 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4157
4158         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4159         integer.
4160
4161 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4162
4163         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4164         to 0.9.
4165
4166 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4167
4168         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4169         of `CHAR_LEADING_BYTE' in UTF-2000.
4170
4171         * insdel.c (find_charsets_in_bufbyte_string): Use
4172         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4173         (find_charsets_in_emchar_string): Likewise.
4174
4175         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4176         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4177
4178         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4179         (CHAR_CHARSET_ID): New macro.
4180
4181 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4182
4183         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4184         charset-id - MIN_LEADING_BYTE.
4185         (put_char_table): Likewise.
4186
4187 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4188
4189         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4190         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4191         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4192         (CHARSET_ID_OFFSET): New macro.
4193         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4194         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4195         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4196         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4197         4).
4198         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4199         5).
4200         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4201         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4202         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4203         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4204         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4205
4206 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4207
4208         * mule-charset.c (next_allocated_leading_byte): New variable in
4209         UTF-2000.
4210         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4211         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4212         (get_unallocated_leading_byte): Simply use
4213         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4214         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4215         UTF-2000.
4216
4217         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4218         (MAX_LEADING_BYTE_PRIVATE): New macro.
4219         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4220         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4221
4222 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4223
4224         * mule-charset.c (Fmake_charset): Allocate final-byte based
4225         charset-id for 94-set, 96-set and 94x94-set.
4226
4227 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4228
4229         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4230         ambiguous `else'.
4231         (Fmake_charset): Likewise.
4232         (complex_vars_of_mule_charset): Modify the font registry of
4233         `ucs-bmp' not to match `Ethiopic-Unicode'.
4234
4235 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4236
4237         * mule-charset.c (complex_vars_of_mule_charset): Add font
4238         registory of `ucs-bmp'.
4239
4240 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4241
4242         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4243         coded-charsets in `default-coded-charset-priority-list' when
4244         breaking up a character.
4245
4246         * mule-charset.c (Vcharset_latin_viscii): New variable.
4247         (Qlatin_viscii): New variable.
4248         (make_charset): Don't use `decoding_table'.
4249         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4250         byte_offset.
4251         (Fset_charset_mapping_table): New implementation.
4252         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4253         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4254         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4255         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4256         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4257         charset `latin_viscii'.
4258
4259         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4260         (CHARSET_TYPE_94X94): Change to 1 from 2.
4261         (CHARSET_TYPE_96): Change to 2 from 1.
4262         (CHARSET_TYPE_128): New macro.
4263         (CHARSET_TYPE_128X128): Change to 5 from 4.
4264         (CHARSET_TYPE_256): New macro.
4265         (CHARSET_TYPE_256X256): Change to 7 from 5.
4266         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4267
4268 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4269
4270         * text-coding.c (char_encode_shift_jis): Refer
4271         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4272         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4273
4274         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4275         (char_byte_table_equal): New function in UTF-2000.
4276         (char_byte_table_hash): New function in UTF-2000.
4277         (char_byte_table_description): New constant in UTF-2000.
4278         (char_byte_table): New type in UTF-2000.
4279         (make_char_byte_table): New function in UTF-2000.
4280         (copy_char_byte_table): New function in UTF-2000.
4281         (make_char_code_table): New macro in UTF-2000.
4282         (get_char_code_table): New function in UTF-2000.
4283         (put_char_code_table): New function in UTF-2000.
4284         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4285         (charset_description): Add setting in UTF-2000.
4286         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4287         `CHARSET_TO_BYTE1_TABLE(cs)'.
4288         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4289         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4290         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4291         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4292         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4293         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4294         `CHARSET_TO_BYTE2_TABLE(cs)'.
4295
4296         * char-ucs.h (char_byte_table): New type.
4297         (XCHAR_BYTE_TABLE): New macro.
4298         (XSETCHAR_BYTE_TABLE): New macro.
4299         (CHAR_BYTE_TABLE_P): New macro.
4300         (GC_CHAR_BYTE_TABLE_P): New macro.
4301         (struct Lisp_Char_Byte_Table): New structure.
4302         (get_char_code_table): New interface.
4303         (Emchar_to_byte_table): Deleted.
4304         (get_byte_from_character_table): Deleted.
4305         (struct Lisp_Charset): Add `encoding_table'; delete
4306         `to_byte1_table' and `to_byte2_table'.
4307         (CHARSET_ENCODING_TABLE): New macro.
4308         (CHARSET_TO_BYTE1_TABLE): Deleted.
4309         (CHARSET_TO_BYTE2_TABLE): Deleted.
4310         (XCHARSET_ENCODING_TABLE): New macro.
4311         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4312         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4313
4314 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4315
4316         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4317         `vietnamese-viscii-*'.
4318
4319 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4320
4321         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4322         (Qvietnamese_viscii_upper): New variable.
4323         (Fdefine_charset_alias): New function.
4324         (syms_of_mule_charset): Add new function `define-charset-alias'.
4325         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4326         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4327         `latin-viscii-*'.
4328
4329 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4330
4331         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4332         (MAX_CHAR_OBS_94x94): New macro.
4333         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4334         for 94x94 sets.
4335
4336         * mule-charset.c (put_byte_from_character_table): Change unit size
4337         from 128 to 256.
4338         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4339         not defined.
4340         (Fmake_reverse_direction_charset): Modify dummy argument of
4341         `make_charset' for non-UTF-2000 environment.
4342
4343 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4344
4345         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4346
4347         * mule-charset.c (destroy_byte_from_character_table): New macro.
4348         (latin_jisx0201_to_ucs): Deleted.
4349         (latin_iso8859_2_to_ucs): Deleted.
4350         (latin_iso8859_3_to_ucs): Deleted.
4351         (latin_iso8859_4_to_ucs): Deleted.
4352         (latin_iso8859_9_to_ucs): Deleted.
4353         (latin_viscii_lower_to_ucs): Deleted.
4354         (latin_viscii_upper_to_ucs): Deleted.
4355         (mark_charset): Mark `cs->decoding_table'.
4356         (Fcharset_mapping_table): Fix DOC-string.
4357         (Fset_charset_mapping_table): New function.
4358         (syms_of_mule_charset): Add nwe function
4359         `set-charset-mapping-table'.
4360         (complex_vars_of_mule_charset): Don't setup and use
4361         `latin_*_to_ucs'.
4362
4363 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4364
4365         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4366         charset.
4367
4368 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4369
4370         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4371         (Vcharset_katakana_jisx0208): New variable.
4372         (Qhiragana_jisx0208): New variable.
4373         (Qkatakana_jisx0208): New variable.
4374         (make_charset): Add new argument `byte_offset'.
4375         (charset_get_byte1): Modify for new coded-charset definition; use
4376         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4377         `XCHARSET_BYTE_OFFSET'.
4378         (Fmake_charset): Modify for `make_charset'.
4379         (Fmake_reverse_direction_charset): Likewise.
4380         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4381         `katakana-jisx0208'.
4382         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4383         `.'  in font registry of charset `katakana-jisx0201',
4384         `latin-jisx0201', `vietnamese-viscii-lower' and
4385         `vietnamese-viscii-upper'; modify DOC-string of charset
4386         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4387         registry of charset `japanese-jisx0208' not to use font for JIS
4388         X0208:1990; add new charset `hiragana-jisx0208' and
4389         `katakana-jisx0208'.
4390
4391         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4392         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4393         (struct Lisp_Charset): Add `byte_offset'.
4394         (CHARSET_BYTE_OFFSET): New macro.
4395         (XCHARSET_UCS_MIN): New macro.
4396         (XCHARSET_UCS_MAX): New macro.
4397         (XCHARSET_CODE_OFFSET): New macro.
4398         (XCHARSET_BYTE_OFFSET): New macro.
4399         (MIN_CHAR_HIRAGANA): New macro.
4400         (MAX_CHAR_HIRAGANA): New macro.
4401         (MIN_CHAR_KATAKANA): New macro.
4402         (MAX_CHAR_KATAKANA): New macro.
4403         (MAKE_CHAR): Modify for new coded-charset definition; use
4404         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4405         `XCHARSET_BYTE_OFFSET'.
4406
4407 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4408
4409         * mule-charset.c (CHAR96): Deleted.
4410         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4411         <Lisp_Object>.
4412         (latin_iso8859_2_to_ucs): Likewise.
4413         (latin_iso8859_3_to_ucs): Likewise.
4414         (latin_iso8859_4_to_ucs): Likewise.
4415         (latin_iso8859_9_to_ucs): Likewise.
4416         (latin_viscii_lower_to_ucs): Likewise.
4417         (latin_viscii_upper_to_ucs): Likewise.
4418         (latin_tcvn5712_to_ucs): Commented out.
4419         (make_charset): Change type of argument `decoding_table' from
4420         <Emchar*> to <Lisp_Object> [vector of characters].
4421         (Fmake_charset): Modify for `make_charset'.
4422         (Fmake_reverse_direction_charset): Likewise.
4423         (Fcharset_mapping_table): New function in UTF-2000.
4424         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4425         UTF-2000.
4426         (complex_vars_of_mule_charset): Modify for type change of
4427         `*_to_ucs'; modify for `make_charset'.
4428
4429         * char-ucs.h (struct Lisp_Charset): Change type of
4430         `decoding_table' from <Emchar*> to <Lisp_Object>.
4431         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4432
4433 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4434
4435         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4436         error with non-UTF-2000-Mule.
4437
4438 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4439
4440         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4441         in lisp again].
4442         (Vcharset_chinese_cns11643_4): Likewise.
4443         (Vcharset_chinese_cns11643_5): Likewise.
4444         (Vcharset_chinese_cns11643_6): Likewise.
4445         (Vcharset_chinese_cns11643_7): Likewise.
4446         (Qchinese_cns11643_3): Likewise.
4447         (Qchinese_cns11643_4): Likewise.
4448         (Qchinese_cns11643_5): Likewise.
4449         (Qchinese_cns11643_6): Likewise.
4450         (Qchinese_cns11643_7): Likewise.
4451         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4452         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4453         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4454         (complex_vars_of_mule_charset): Likewise.
4455
4456 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4457
4458         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4459         96-set.
4460         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4461         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4462
4463 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4464
4465         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4466         0xFF60.
4467         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4468         (breakup_char_1): Likewise.
4469
4470         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4471         one of them includes the specified character.
4472
4473 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4474
4475         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4476
4477 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4478
4479         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4480
4481 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4482
4483         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4484         definition for non-UTF-2000 Mule.
4485         (latin_iso8859_3_to_ucs): Likewise.
4486         (latin_iso8859_4_to_ucs): Likewise.
4487         (latin_iso8859_9_to_ucs): Likewise.
4488         (latin_jisx0201_to_ucs): Likewise.
4489         (MIN_CHAR_THAI): Likewise.
4490         (MAX_CHAR_THAI): Likewise.
4491         (MIN_CHAR_GREEK): Likewise.
4492         (MAX_CHAR_GREEK): Likewise.
4493         (MIN_CHAR_HEBREW): Likewise.
4494         (MAX_CHAR_HEBREW): Likewise.
4495         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4496         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4497         (MIN_CHAR_CYRILLIC): Likewise.
4498         (MAX_CHAR_CYRILLIC): Likewise.
4499
4500 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4501
4502         * char-ucs.h (breakup_char_1): Use
4503         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4504         thai-tis620 and katakana-jisx0201 area.
4505
4506 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4507
4508         * char-ucs.h (breakup_char_1): Use
4509         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4510         area.
4511
4512         * text-coding.c (reset_encoding_stream): Fixed.
4513         (char_encode_ucs4): Delete `& 255'.
4514
4515         * char-ucs.h (breakup_char_1): Use
4516         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4517
4518 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4519
4520         * file-coding.c (Fmake_coding_system): Don't set up
4521         `codesys->fixed.size'.
4522         (encode_coding_no_conversion): Don't refer
4523         `str->codesys->fixed.size'.
4524
4525 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4526
4527         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4528         (latin_a_char_to_byte1): Deleted.
4529         (latin_a_char_to_byte2): Deleted.
4530
4531 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4532
4533         * mule-charset.c (make_charset): Add new argument `ucs_min',
4534         `ucs_max' and `code_offset'.
4535         (charset_get_byte1): New implementation [delete specific charset
4536         depended implementations].
4537         (Fmake_charset): Modify for `make_charset'.
4538         (Fmake_reverse_direction_charset): Likewise.
4539         (complex_vars_of_mule_charset): Likewise.
4540
4541         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4542         `code_offset'.
4543         (CHARSET_UCS_MIN): New macro.
4544         (CHARSET_UCS_MAX): New macro.
4545         (CHARSET_CODE_OFFSET): New macro.
4546         (MAKE_CHAR): Delete charset depended definitions [except
4547         katakana-jisx0201].
4548
4549 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4550
4551         * char-ucs.h (breakup_char_1): Use
4552         `Vdefault_coded_charset_priority_list' for C0-Controls,
4553         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4554
4555 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4556
4557         * char-ucs.h (charset_get_byte1): New function.
4558         (XCHARSET_GET_BYTE1): Deleted.
4559         (charset_get_byte2): New function.
4560         (XCHARSET_GET_BYTE2): Deleted.
4561         (Vdefault_coded_charset_priority_list): New external variable.
4562         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4563         `Vdefault_preferred_coded_charset_list'.
4564
4565         * mule-charset.c (charset_get_byte1): New function.
4566         (charset_get_byte2): New function.
4567         (Vdefault_coded_charset_priority_list): New variable.
4568         (vars_of_mule_charset): Add new variable
4569         `default-coded-charset-priority-list'.
4570
4571 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4572
4573         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4574         (XCHARSET_GET_BYTE2): New inline function.
4575         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4576         `XCHARSET_GET_BYTE2'.
4577
4578 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4579
4580         * mule-charset.c (make_charset): Initialize
4581         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4582         NULL if table is not defined.
4583
4584 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4585
4586         * text-coding.c (char_encode_shift_jis): Use
4587         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4588         `ucs_to_latin_jisx0201'.
4589
4590         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4591         (ucs_to_latin_iso8859_2): Deleted.
4592         (ucs_to_latin_iso8859_3): Deleted.
4593         (ucs_to_latin_iso8859_4): Deleted.
4594         (ucs_to_latin_iso8859_9): Deleted.
4595         (ucs_to_latin_viscii_lower): Deleted.
4596         (ucs_to_latin_viscii_upper): Deleted.
4597         (ucs_to_latin_tcvn5712): Deleted.
4598         (make_charset): Add new argument `decoding_table'; set up
4599         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4600         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4601         `decoding_table' is defined in UTF-2000.
4602         (Fmake_charset): Modify for `make_charset'.
4603         (Fmake_reverse_direction_charset): Likewise.
4604         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4605         and `GENERATE_96_SET'.
4606
4607         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4608         (ucs_to_latin_jisx0201): Deleted.
4609         (latin_iso8859_2_to_ucs): Deleted.
4610         (ucs_to_latin_iso8859_2): Deleted.
4611         (latin_iso8859_3_to_ucs): Deleted.
4612         (ucs_to_latin_iso8859_3): Deleted.
4613         (latin_iso8859_4_to_ucs): Deleted.
4614         (ucs_to_latin_iso8859_4): Deleted.
4615         (latin_iso8859_9_to_ucs): Deleted.
4616         (ucs_to_latin_iso8859_9): Deleted.
4617         (latin_viscii_lower_to_ucs): Deleted.
4618         (ucs_to_latin_viscii_lower): Deleted.
4619         (latin_viscii_upper_to_ucs): Deleted.
4620         (ucs_to_latin_viscii_upper): Deleted.
4621         (struct Lisp_Charset): Renamed `encoding_table' to
4622         `to_byte1_table'; add `to_byte2_table'.
4623         (CHARSET_DECODING_TABLE): New macro.
4624         (CHARSET_TO_BYTE1_TABLE): New macro.
4625         (CHARSET_TO_BYTE2_TABLE): New macro.
4626         (XCHARSET_DECODING_TABLE): New macro.
4627         (XCHARSET_TO_BYTE1_TABLE): New macro.
4628         (XCHARSET_TO_BYTE2_TABLE): New macro.
4629         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4630         tables.
4631         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4632         don't use `ucs_to_*' tables.
4633
4634 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4635
4636         * text-coding.c (Fmake_coding_system): Don't set up
4637         `codesys->fixed.size'.
4638         (encode_coding_no_conversion): Use `if' instead of `switch'.
4639
4640         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4641
4642 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4643
4644         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4645         (Fmake_charset): Modify for `make_charset'.
4646         (Fmake_reverse_direction_charset): Likewise.
4647         (complex_vars_of_mule_charset): Likewise.
4648
4649 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4650
4651         * text-coding.c (char_encode_shift_jis): Use table
4652         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4653
4654 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4655
4656         * text-coding.c (text_encode_generic): Use `if' instead of
4657         `switch'.
4658         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4659         decode JIS-Latin.
4660
4661 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4662
4663         * text-coding.c (encode_coding_sjis): Deleted.
4664         (char_encode_shift_jis): New function.
4665         (char_finish_shift_jis): New function.
4666         (reset_encoding_stream): Set up `encode_char' and `finish' for
4667         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4668         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4669         (char_encode_utf8): Treat `eol_type'.
4670
4671 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4672
4673         * file-coding.c (decode_coding_iso2022): Use
4674         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4675
4676 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4677
4678         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4679         to 0.7 (Hirano).
4680
4681 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4682
4683         * char-lb.h (CHAR_COLUMNS): New macro.
4684
4685 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4686
4687         * text-coding.c (char_encode_ucs4): New function.
4688         (char_finish_ucs4): New function.
4689         (encode_coding_ucs4): Deleted.
4690         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4691         (text_encode_generic): Delete local variable `charset' and `half'.
4692         (ucs_to_mule_table): Deleted.
4693         (mule_to_ucs_table): Deleted.
4694         (Fset_ucs_char): Deleted.
4695         (ucs_to_char): Deleted.
4696         (Fucs_char): Deleted.
4697         (Fset_char_ucs): Deleted.
4698         (Fchar_ucs): Deleted.
4699         (decode_ucs4): Deleted.
4700         (mule_char_to_ucs4): Deleted.
4701         (encode_ucs4): Deleted.
4702         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4703         (decode_coding_utf8): Likewise.
4704         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4705         (char_encode_iso2022): Fixed.
4706         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4707         `Fset_char_ucs' and `Fchar_ucs'.
4708         (complex_vars_of_file_coding): Don't initialize
4709         `ucs_to_mule_table'.
4710
4711         * objects-tty.c (tty_initialize_font_instance): Don't use
4712         `XCHARSET_COLUMNS'.
4713
4714         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4715         UTF-2000.
4716
4717         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4718         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4719
4720         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4721         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4722         (emchar_string_displayed_columns): Likewise.
4723
4724         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4725         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4726         (string_column_at_point): Likewise.
4727         (Fmove_to_column): Likewise.
4728
4729         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4730         `encoding_table' and `decoding_table'.
4731         (CHARSET_REP_BYTES): Deleted.
4732         (XCHARSET_REP_BYTES): Deleted.
4733         (XCHARSET_COLUMNS): Deleted.
4734         (CHAR_COLUMNS): New macro.
4735         (lookup_composite_char): Deleted unconditionally.
4736         (composite_char_string): Likewise.
4737
4738 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4739
4740         * char-ucs.h (Emchar_to_byte_table): New type.
4741         (get_byte_from_character_table): New function interface.
4742         (Vcharset_latin_jisx0201): New variable.
4743         (latin_jisx0201_to_ucs): New variable.
4744         (ucs_to_latin_jisx0201): New variable.
4745         (Vcharset_latin_iso8859_2): New variable.
4746         (latin_iso8859_2_to_ucs): New variable.
4747         (ucs_to_latin_iso8859_2): New variable.
4748         (Vcharset_latin_iso8859_3): New variable.
4749         (latin_iso8859_3_to_ucs): New variable.
4750         (ucs_to_latin_iso8859_3): New variable.
4751         (Vcharset_latin_iso8859_4): New variable.
4752         (latin_iso8859_4_to_ucs): New variable.
4753         (ucs_to_latin_iso8859_4): New variable.
4754         (Vcharset_latin_iso8859_9): New variable.
4755         (latin_iso8859_9_to_ucs): New variable.
4756         (ucs_to_latin_iso8859_9): New variable.
4757         (Vcharset_latin_viscii_lower): New variable.
4758         (latin_viscii_lower_to_ucs): New variable.
4759         (ucs_to_latin_viscii_lower): New variable.
4760         (Vcharset_latin_viscii_upper): New variable.
4761         (latin_viscii_upper_to_ucs): New variable.
4762         (ucs_to_latin_viscii_upper): New variable.
4763         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
4764         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
4765         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
4766         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
4767         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
4768         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
4769         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
4770         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
4771         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
4772         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
4773
4774         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
4775         (Vcharset_latin_viscii_upper): New variable.
4776         (make_byte_from_character_table): New function.
4777         (put_byte_from_character_table): New function.
4778         (get_byte_from_character_table): New function.
4779         (CHAR96): New macro.
4780         (ucs_to_latin_jisx0201): New variable.
4781         (latin_jisx0201_to_ucs): New variable.
4782         (ucs_to_latin_iso8859_2): New variable.
4783         (latin_iso8859_2_to_ucs): New variable.
4784         (ucs_to_latin_iso8859_3): New variable.
4785         (latin_iso8859_3_to_ucs): New variable.
4786         (ucs_to_latin_iso8859_4): New variable.
4787         (latin_iso8859_4_to_ucs): New variable.
4788         (ucs_to_latin_iso8859_9): New variable.
4789         (latin_iso8859_9_to_ucs): New variable.
4790         (ucs_to_latin_viscii_lower): New variable.
4791         (latin_viscii_lower_to_ucs): New variable.
4792         (ucs_to_latin_viscii_upper): New variable.
4793         (latin_viscii_upper_to_ucs): New variable.
4794         (ucs_to_latin_tcvn5712): New variable.
4795         (latin_tcvn5712_to_ucs): New variable.
4796         (Qlatin_viscii_lower): New variable.
4797         (Qlatin_viscii_upper): New variable.
4798         (syms_of_mule_charset): Set up new symbol
4799         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
4800         (complex_vars_of_mule_charset): Set up new charset
4801         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
4802         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
4803         `ucs_to_<CHARSET>' tables.
4804
4805 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4806
4807         * text-coding.c: New file.
4808
4809 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4810
4811         * mule-charset.c (Fmake_char): Fix problem of 256-set.
4812
4813         * char-ucs.h (Vcharset_ucs_bmp): New variable.
4814         (MAKE_CHAR): Modify for `ucs-bmp'.
4815         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
4816         non-MULE characters of BMP.
4817
4818 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
4819
4820         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4821         to 0.6.
4822
4823 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4824
4825         * lstream.h:
4826         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
4827         - Include character.h for `CHAR_ASCII_P'.
4828
4829         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
4830
4831         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
4832         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
4833
4834         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
4835         (BYTE_C0_P): Likewise.
4836         (BYTE_C1_P): Likewise.
4837         (Lstream_get_emchar_1): Likewise.
4838         (Lstream_fput_emchar): Likewise.
4839         (Lstream_funget_emchar): Likewise.
4840         (copy_internal_to_external): Likewise.
4841         (copy_external_to_internal): Likewise.
4842
4843         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
4844         (BYTE_C0_P): Likewise.
4845         (BYTE_C1_P): Likewise.
4846         (Lstream_get_emchar_1): Likewise.
4847         (Lstream_fput_emchar): Likewise.
4848         (Lstream_funget_emchar): Likewise.
4849         (copy_internal_to_external): Likewise.
4850         (copy_external_to_internal): Likewise.
4851
4852         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
4853         (REP_BYTES_BY_FIRST_BYTE): Likewise.
4854
4855         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
4856         (BYTE_ASCII_P): Moved to mb-1byte.h.
4857
4858 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4859
4860         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
4861
4862         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
4863         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
4864         (VALID_CHARPTR_P): Moved to mb-*byte.h.
4865         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4866         (VALIDATE_CHARPTR_FORWARD): Likewise.
4867         (simple_charptr_emchar): Moved to mb-multibyte.h.
4868         (simple_set_charptr_emchar): Likewise.
4869         (simple_charptr_copy_char): Likewise.
4870         (non_ascii_charptr_emchar): Likewise.
4871         (non_ascii_set_charptr_emchar): Likewise.
4872         (non_ascii_charptr_copy_char): Likewise.
4873         (charptr_emchar): Moved to mb-*byte.h.
4874         (set_charptr_emchar): Likewise.
4875         (charptr_copy_char): Likewise.
4876
4877         * mb-1byte.h, mb-multibyte.h: New files.
4878
4879 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4880
4881         * mb-utf-8.h (MULTIBYTE): New macro.
4882         (MAX_EMCHAR_LEN): Moved from buffer.h.
4883         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
4884
4885         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
4886
4887         * mb-lb.h, multibyte.h: New files.
4888
4889         * char-1byte.h (Charset_ID): Moved from buffer.h.
4890         (MIN_LEADING_BYTE): Likewise.
4891         (LEADING_BYTE_ASCII): Likewise.
4892         (NUM_LEADING_BYTES): Likewise.
4893         (CHARSETP): Likewise.
4894         (CHARSET_BY_LEADING_BYTE): Likewise.
4895         (XCHARSET_LEADING_BYTE): Likewise.
4896         (XCHARSET_GRAPHIC): Likewise.
4897         (XCHARSET_COLUMNS): Likewise.
4898         (XCHARSET_DIMENSION): Likewise.
4899         (CHAR_CHARSET): Likewise.
4900         (CHAR_LEADING_BYTE): Likewise.
4901         (BREAKUP_CHAR): Likewise.
4902         (Vcharset_ascii): Likewise.
4903
4904         * buffer.h: Include multibyte.h unconditionally.
4905         (VALID_CHARPTR_P): Moved to multibyte.h.
4906         (ASSERT_VALID_CHARPTR): Likewise.
4907         (REAL_INC_CHARPTR): Likewise.
4908         (REAL_INC_CHARBYTIND): Likewise.
4909         (REAL_DEC_CHARPTR): Likewise.
4910         (INC_CHARPTR): Likewise.
4911         (INC_CHARBYTIND): Likewise.
4912         (DEC_CHARPTR): Likewise.
4913         (VALIDATE_CHARPTR_BACKWARD): Likewise.
4914         (VALIDATE_CHARPTR_FORWARD): Likewise.
4915         (charptr_n_addr): Likewise.
4916         (MAX_EMCHAR_LEN): Moved to mb-*.h.
4917         (simple_charptr_emchar): Moved to multibyte.h.
4918         (simple_set_charptr_emchar): Likewise.
4919         (simple_charptr_copy_char): Likewise.
4920         (non_ascii_charptr_emchar): Likewise.
4921         (non_ascii_set_charptr_emchar): Likewise.
4922         (non_ascii_charptr_copy_char): Likewise.
4923         (charptr_emchar): Likewise.
4924         (set_charptr_emchar): Likewise.
4925         (charptr_copy_char): Likewise.
4926         (charptr_emchar_n): Likewise.
4927         (Charset_ID): Moved to char-1byte.h.
4928         (Vcharset_ascii): Likewise.
4929         (CHAR_CHARSET): Likewise.
4930         (CHAR_LEADING_BYTE): Likewise.
4931         (LEADING_BYTE_ASCII): Likewise.
4932         (NUM_LEADING_BYTES): Likewise.
4933         (MIN_LEADING_BYTE): Likewise.
4934         (CHARSETP): Likewise.
4935         (CHARSET_BY_LEADING_BYTE): Likewise.
4936         (XCHARSET_LEADING_BYTE): Likewise.
4937         (XCHARSET_GRAPHIC): Likewise.
4938         (XCHARSET_COLUMNS): Likewise.
4939         (XCHARSET_DIMENSION): Likewise.
4940         (BREAKUP_CHAR): Likewise.
4941
4942 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4943
4944         * character.h: Add document about interface for characters.
4945
4946         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
4947         (MAKE_CHAR): Delete comment about
4948         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
4949         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
4950         (BREAKUP_CHAR): Modify name of arguments.
4951         (CHAR_CHARSET): Modify name of argument.
4952
4953         * buffer.h: Delete document about Emchar accessors.
4954
4955 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4956
4957         * character.h (CHAR_INTP): Moved from buffer.h
4958         (CHAR_OR_CHAR_INTP): Likewise.
4959         (XCHAR_OR_CHAR_INT): Likewise.
4960         (CHECK_CHAR_COERCE_INT): Likewise.
4961
4962         * buffer.h (CHAR_INTP): Moved to character.h
4963         (CHAR_OR_CHAR_INTP): Likewise.
4964         (XCHAR_OR_CHAR_INT): Likewise.
4965         (CHECK_CHAR_COERCE_INT): Likewise.
4966
4967 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4968
4969         * character.h:
4970         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
4971         - Include char-1byte.h, char-lb.h or char-ucs.h.
4972
4973         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
4974
4975         * buffer.h: Include character unconditionally.
4976         (valid_char_p): Moved to char-*.h.
4977         (non_ascii_valid_char_p): Moved to char-lb.h.
4978
4979         * char-1byte.h, char-lb.h, char-ucs.h: New files.
4980
4981 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4982
4983         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
4984         in UTF-2000 because it is not ported yet and not to use
4985         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
4986         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
4987         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
4988
4989         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
4990         (CHAR_ASCII_P): Moved from character.h.
4991
4992         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
4993         (CHAR_ASCII_P): Likewise.
4994         (CHAR_FIELD1_MASK): Deleted.
4995         (CHAR_FIELD2_MASK): Deleted.
4996         (CHAR_FIELD3_MASK): Deleted.
4997         (MAX_CHAR_BASIC_LATIN): New macro.
4998         (CHAR_FIELD1): Deleted.
4999         (CHAR_FIELD2_INTERNAL): Deleted.
5000         (CHAR_FIELD3_INTERNAL): Deleted.
5001         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5002         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5003         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5004         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5005         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5006         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5007         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5008         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5009         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5010         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5011         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5012         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5013         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5014         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5015         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5016         (MIN_CHAR_COMPOSITION): Deleted.
5017         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5018         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5019
5020 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5021
5022         * buffer.h: Include mb-utf-8.h in UTF-2000.
5023
5024         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5025
5026         * mb-utf-8.h: New file.
5027
5028 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5029
5030         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5031         instead of `int'.
5032
5033         * mule-charset.h, buffer.h (Charset_ID): New type.
5034
5035 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5036
5037         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5038         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5039         instead of `MULE_CHAR_PRIVATE_OFFSET',
5040         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5041         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5042         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5043
5044         * character.h (Vcharset_japanese_jisx0212): New variable
5045         definition.
5046
5047 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5048
5049         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5050         (charset_by_attributes): Delete array about direction.
5051         (latin_a_char_to_charset): New variable in UTF-2000.
5052         (latin_a_char_to_byte1): New variable in UTF-2000.
5053         (latin_a_char_to_byte2): New variable in UTF-2000.
5054         (Qucs_bmp): New variable.
5055         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5056         `Bufbyte'.
5057         (next_allocated_2_byte_leading_byte): Likewise.
5058         (non_ascii_set_charptr_emchar): Likewise.
5059         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5060         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5061         `charset_by_attributes'.
5062         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5063         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5064         and `CHARSET_BY_LEADING_BYTE'.
5065         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5066         `utf-2000-version' to `vars_of_mule_charset'.
5067         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5068         define `leading-code-private-11' in UTF-2000; move setting of
5069         `utf-2000-version' from `syms_of_mule_charset'.
5070         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5071         UTF-2000.
5072
5073         * character.h (Charset_ID): New type.
5074         (LEADING_BYTE_UCS_BMP): New macro.
5075         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5076         (CHARSET_ID_OFFSET_94): New macro.
5077         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5078         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5079         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5080         final-byte.
5081         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5082         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5083         (CHARSET_ID_OFFSET_96): New macro.
5084         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5085         CHARSET_ID_OFFSET_96 and final-byte.
5086         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5087         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5088         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5089         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5090         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5091         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5092         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5093         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5094         (LEADING_BYTE_THAI_TIS620): Likewise.
5095         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5096         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5097         (CHARSET_ID_OFFSET_94x94): New macro.
5098         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5099         CHARSET_ID_OFFSET_94x94 and final-byte.
5100         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5101         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5102         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5103         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5104         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5105         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5106         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5107         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5108         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5109         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5110         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5111         (CHARSET_TYPE_128X128): New macro.
5112         (CHARSET_TYPE_256X256): New macro.
5113         (XCHARSET_PRIVATE_P): Delete unconditionally.
5114         (charset_by_attributes): Delete array about direction.
5115         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5116         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5117         (MIN_CHAR_94): New macro.
5118         (MAX_CHAR_94): New macro.
5119         (MIN_CHAR_96): New macro.
5120         (MAX_CHAR_96): New macro.
5121         (MIN_CHAR_94x94): New macro.
5122         (MAX_CHAR_94x94): New macro.
5123         (MIN_CHAR_96x96): New macro.
5124         (MAX_CHAR_96x96): New macro.
5125         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5126         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5127         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5128         - 32)'.
5129         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5130         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5131         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5132         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5133         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5134         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5135         `XCHARSET_LEADING_BYTE' to make code-point.
5136         (latin_a_char_to_charset): New variable.
5137         (latin_a_char_to_byte1): New variable.
5138         (latin_a_char_to_byte2): New variable.
5139         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5140         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5141         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5142
5143         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5144         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5145         (find_charsets_in_emchar_string): Likewise.
5146         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5147
5148         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5149         `int'.
5150         (decode_coding_iso2022): Likewise.
5151
5152         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5153         of `unsigned char'.
5154
5155         * redisplay.c (redisplay_text_width_emchar_string): Use
5156         `Charset_ID' instead of `unsigned char'.
5157         (redisplay_frame_text_width_string): Likewise.
5158
5159         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5160         `unsigned char'.
5161
5162         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5163         instead of `unsigned char'.
5164         (face_cachel_charset_font_metric_info): Likewise.
5165
5166         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5167         (get_non_ascii_char_table_value): Likewise.
5168         (get_char_table): Likewise.
5169         (put_char_table): Likewise.
5170         (map_over_other_charset): Likewise.
5171         (map_char_table): Likewise.
5172
5173         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5174         instead of `unsigned char'.
5175
5176 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5177
5178         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5179         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5180
5181         * mule-charset.c (leading_code_private_11): Don't define in
5182         UTF-2000.
5183
5184         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5185         in UTF-2000 because it is not ported yet and not to use
5186         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5187
5188 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5189
5190         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5191
5192 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5193
5194         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5195         in UTF-2000.
5196
5197         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5198         of unsigned char to store leading-byte.
5199
5200         * chartab.c (get_non_ascii_char_table_value): Don't use
5201         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5202
5203         * file-coding.c (encode_coding_big5): Delete bogus implementation
5204         in UTF2000.
5205
5206         * character.h (LEADING_BYTE_*): Delete definition for
5207         non-UTF-2000.
5208         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5209         (LEADING_BYTE_PREFIX_P): Deleted.
5210         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5211         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5212         (BUFBYTE_LEADING_BYTE_P): Deleted.
5213         (CHARSET_PRIVATE_P): Deleted unconditionally.
5214         (rep_bytes_by_first_byte): Deleted unconditionally.
5215         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5216         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5217         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5218         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5219         (CHAR_FIELD2): Deleted.
5220         (CHAR_FIELD3): Deleted.
5221         (MAKE_CHAR): Delete definition for non-UTF-2000.
5222         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5223         (breakup_char_1): New implementation.
5224         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5225         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5226
5227 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5228
5229         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5230         condition.
5231
5232 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5233
5234         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5235         (CHARSET_PRIVATE_P): Likewise.
5236         (XCHARSET_PRIVATE_P): Likewise.
5237         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5238
5239         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5240         UTF2000.
5241         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5242
5243 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5244
5245         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5246         (NUM_LEADING_BYTES): Changed from 128 to 256.
5247         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5248         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5249         UTF2000.
5250         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5251
5252         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5253         UTF2000.
5254         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5255         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5256         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5257         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5258         (Qchinese_cns11643_3): New variable in UTF2000.
5259         (Qchinese_cns11643_4): New variable in UTF2000.
5260         (Qchinese_cns11643_5): New variable in UTF2000.
5261         (Qchinese_cns11643_6): New variable in UTF2000.
5262         (Qchinese_cns11643_7): New variable in UTF2000.
5263         (syms_of_mule_charset): Define `chinese-cns11643-3',
5264         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5265         and `chinese-cns11643-7' in UTF2000.
5266         (vars_of_mule_charset): Initialize
5267         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5268         + 1 in UTF2000.
5269         (complex_vars_of_mule_charset): Setup charset
5270         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5271         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5272
5273 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5274
5275         * mule-charset.c: Move setting for `leading-code-private-11' from
5276         `syms_of_mule_charset' to `vars_of_mule_charset'.
5277
5278 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5279
5280         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5281         and `NUM_LEADING_BYTES' in assert.
5282
5283 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5284
5285         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5286         instead of 128.
5287         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5288         `NUM_LEADING_BYTES' instead of 128.
5289
5290 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5291
5292         * mule-charset.h (charset_by_leading_byte): Use
5293         `NUM_LEADING_BYTES' instead of 128.
5294         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5295
5296         * mule-charset.c (charset_by_leading_byte): Use
5297         `NUM_LEADING_BYTES' instead of 128.
5298         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5299
5300         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5301         128.
5302
5303 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5304
5305         * mule-charset.c (syms_of_mule_charset): Update to
5306         0.4 (Shin-Imamiya).
5307
5308 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5309
5310         * file-coding.c (encode_coding_sjis): New implementation for
5311         UTF2000.  (decode_coding_sjis): Ditto.
5312
5313 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5314
5315         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5316         Don't define in UTF2000.
5317
5318         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5319         defined.
5320
5321         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5322         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5323         MULE.
5324
5325 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5326
5327         * config.h.in (CHAR_IS_UCS4): New macro.
5328
5329         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5330         conventional MULE representation.
5331         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5332
5333         * mule-charset.h: Reverted to original.
5334
5335         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5336         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5337         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5338
5339         * character.h: New file.
5340
5341         * file-coding.c (Fmake_coding_system): Set 1 to
5342         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5343         defined.
5344         (encode_coding_no_conversion): New implementation for UTF2000.
5345
5346         * file-coding.h (struct Lisp_Coding_System): Add new member
5347         `fixed.size'.
5348
5349 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5350
5351         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5352         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5353         (encode_coding_iso2022): New implementation for UTF2000.
5354
5355 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5356
5357         * mule-canna.c (c2mu): New implementation for UTF2000.
5358         (m2c): Likewise.
5359
5360 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5361
5362         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5363
5364 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5365
5366         * file-coding.c (reset_encoding_stream): Set 0 to
5367         `str->iso2022.current_char_boundary' in UTF2000.
5368         (encode_utf8): Don't define in UTF2000.
5369         (encode_coding_utf8): New implementation for UTF-8 representation
5370         of UTF2000.
5371         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5372
5373 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5374
5375         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5376
5377         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5378         UTF2000.
5379         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5380
5381         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5382
5383         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5384         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5385         as UTF-8 in UTF2000.
5386         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5387         (non_ascii_valid_char_p): Don't define in UTF2000.
5388         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5389         (Lstream_get_emchar_1): Likewise.
5390         (utf-2000-version): New variable in UTF2000.
5391
5392         * lread.c (read_escape): Add new reader `u'.
5393
5394         * insdel.c (three_to_one_table): Don't define in UTF2000.
5395         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5396         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5397         UTF2000.
5398         (bytind_to_bufpos_func): Likewise.
5399         (buffer_mule_signal_inserted_region): Likewise.
5400         (vars_of_insdel): Don't initialize `three_to_one_table'.
5401         (init_buffer_text): Use `buf->text->mule_size' instead of
5402         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5403         UTF2000.
5404
5405         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5406         UTF-8 representation in UTF2000.
5407         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5408         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5409         (decode_coding_iso2022): Don't define local variable `lb' in
5410         UTF2000; don't use LEADING_BYTE in UTF2000; use
5411         `DECODE_ADD_UCS_CHAR' in UTF2000.
5412         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5413
5414         * config.h.in (UTF2000): New macro.
5415
5416         * buffer.h (struct buffer_text): Add new member `mule_size' and
5417         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5418         (valid_char_p): Return always 1 in UTF2000.
5419         (MAX_EMCHAR_LEN): 6 in UTF2000.
5420         (three_to_one_table): Don't define in UTF2000.
5421         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5422         UTF2000.
5423         (real_bytind_to_bufpos): Likewise.
5424
5425         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5426
5427 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5428
5429         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5430         representation change.
5431         (Vutf_2000_version): New variable.
5432         (leading_code_private_11): New variable.
5433         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5434         `leading-code-private-11'.
5435
5436         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5437         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5438         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5439         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5440         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5441         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5442         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5443         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5444         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5445         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5446         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5447         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5448         (MIN_CHAR_GREEK): New macro.
5449         (MAX_CHAR_GREEK): New macro.
5450         (MIN_CHAR_CYRILLIC): New macro.
5451         (MAX_CHAR_CYRILLIC): New macro.
5452         (MIN_CHAR_HEBREW): New macro.
5453         (MAX_CHAR_HEBREW): New macro.
5454         (MIN_CHAR_THAI): New macro.
5455         (MAX_CHAR_THAI): New macro.
5456         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5457         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5458         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5459         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5460         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5461         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5462         (CHAR_FIELD2): New inline function.
5463         (CHAR_FIELD3): New inline function.
5464         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5465         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5466         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5467         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5468         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5469         (MIN_CHAR_COMPOSITION): Likewise.
5470         (CHAR_LEADING_BYTE): Modified for character representation change.
5471         (MAKE_CHAR): Likewise.
5472
5473         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5474         (Vcharset_greek_iso8859_7): Likewise.
5475         (Vcharset_cyrillic_iso8859_5): Likewise.
5476         (Vcharset_hebrew_iso8859_8): Likewise.
5477         (Vcharset_thai_tis620): Likewise.
5478         (Vcharset_katakana_jisx0201): Likewise.
5479
5480 2004-02-02  Vin Shelton <acs@xemacs.org>
5481
5482         * XEmacs 21.4.15 is released
5483
5484 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
5485
5486         * device-x.c (x_error_handler): Don't call stderr_out
5487
5488 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
5489
5490         * buffer.c (other-buffer): Clarify documentation of order of
5491         arguments for FSF Emacs.
5492
5493 2003-10-11  Olivier Galibert  <galibert@pobox.com>
5494
5495         * window.c (Fdelete_window): Dirty the mirror structure _before_
5496         marking the window deleted.
5497
5498 2003-09-15  Jerry James  <james@xemacs.org>
5499
5500         * event-msw.c (debug_mswin_messages): Conditionally compile
5501         messages missing from the Cygwin headers.
5502
5503 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
5504
5505         * data.c (eq_with_ebola_notice): Fix typo in comment.
5506         (Ftrue_list_p): Improve docstring.
5507
5508 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
5509
5510         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
5511
5512 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
5513
5514         * search.c (trivial_regexp_p): Regexps containing "\{" are
5515         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
5516         Stefan Monnier for suggesting a diagnosis.
5517
5518 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
5519
5520         * elhash.c (make-hash-table): Clarify use of :test #'equal.
5521
5522 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
5523
5524         * search.c (Fsearch_forward):
5525         (Fsearch_backward):
5526         Document negative count.
5527
5528 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
5529
5530         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
5531
5532 2003-09-13  Martin Buchholz  <martin@xemacs.org>
5533
5534         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
5535
5536 2003-09-15  Vin Shelton  <acs@xemacs.org>
5537
5538         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
5539         21.5.
5540
5541 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
5542
5543         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
5544         (re_search_2): Match the first byte of Bufbyte, not Emchar.
5545         (re_match_2_internal): Use TRANSLATE instead of
5546         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
5547         non-ASCII char case conversion.
5548
5549 2003-09-08  Mike Sperber  <mike@xemacs.org>
5550
5551         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
5552         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
5553
5554 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
5555
5556        * .gdbinit (pobj): fix printing of symbol name.
5557
5558 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
5559
5560         * frame-x.c (x_layout_widgets): When resizing is about to cause
5561         frame size slip, mark it for redisplay.
5562
5563 2003-08-18  Jerry James  <james@xemacs.org>
5564
5565         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
5566
5567 2003-09-03  Vin Shelton <acs@xemacs.org>
5568
5569         * XEmacs 21.4.14 is released
5570
5571 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
5572
5573         * config.h.in (REGEX_MALLOC): Make it configure'able.
5574
5575 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
5576
5577         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
5578         linking.
5579         * sysdll.c (dll_init):
5580         * sysdll.c (dll_open):
5581         * sysdll.c (dll_close):
5582         * sysdll.c (dll_function):
5583         * sysdll.c (dll_variable):
5584         * sysdll.c (dll_error):
5585         Add support for loading bundles using Darwin/MacOSX
5586         native API.
5587
5588 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
5589
5590         * process.c (start-process-internal): Document coding systems.
5591
5592 2003-07-30  Jerry James  <james@xemacs.org>
5593
5594         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
5595
5596 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
5597
5598         * event-msw.c (mswindows_enqueue_mouse_button_event):
5599         * event-msw.c (mswindows_wnd_proc):
5600           enqueue button event when scrollwheel event isn't handled by 
5601           mswindows_handle_mousewheel_event, such as when the scrollbars
5602           are not showing.
5603
5604 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
5605
5606         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
5607
5608 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
5609
5610         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
5611
5612 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
5613
5614         * regex.c (re_match_2_internal): Fix matching degenerate word
5615         boundaries.
5616
5617 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
5618
5619         * XEmacs 21.4.13 is released
5620
5621 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
5622
5623         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
5624         * lisp.h (<inttypes.h>):
5625         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
5626         the definition.
5627
5628 2003-03-15  Martin Buchholz  <martin@xemacs.org>
5629
5630         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
5631         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
5632         Result: "temacs can only be run in -batch mode."
5633         Fix: Check xemacs executable candidate for directory-ness.
5634
5635 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
5636
5637         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
5638           they conflict with <sys/types.h>.
5639
5640 2003-02-14  Martin Buchholz  <martin@xemacs.org>
5641
5642         * database.c: Berkeley DB wants __STDC__ to be defined.
5643
5644 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5645
5646         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
5647
5648 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5649
5650         * process-unix.c (unix_send_process): Fix C++ compile error.
5651
5652 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
5653
5654         * Added .dylib as an acceptable shared library file extension
5655         * to support MacOSX.
5656
5657 2003-02-01  Martin Buchholz  <martin@xemacs.org>
5658
5659         * EmacsFrameP.h (EmacsFramePart):
5660         Kludge to allow compiling with Motif1, but linking with Motif2.
5661
5662 2003-01-28  Martin Buchholz  <martin@xemacs.org>
5663
5664         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
5665
5666
5667 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
5668
5669         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
5670
5671 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
5672
5673         * sysdll.c: Included lisp.h to define needed alloca_array.
5674
5675 2003-02-13  Martin Buchholz  <martin@xemacs.org>
5676
5677         Make XEmacs redisplay 10 times faster.
5678         If, that is, you're using a slow X connection and MoveOpaque.
5679         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
5680         Use compress_motion = TRUE.
5681         * EmacsFrame.c (emacsFrameClassRec): 
5682         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
5683         * EmacsManager.c (emacsManagerClassRec):
5684         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
5685
5686 2003-01-30  Vin Shelton  <acs@xemacs.org>
5687
5688         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
5689
5690 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
5691
5692         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
5693         Patch by Martin Buchholz.
5694
5695 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
5696
5697         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
5698         Thanks to icc for warning and Martin Buchholz for reporting.
5699
5700 2003-01-29  Vin Shelton <acs@xemacs.org>
5701
5702         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
5703
5704         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
5705         remember to multiply by the element size.
5706
5707 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
5708
5709         * XEmacs 21.4.12 "Portable Code" is released.
5710
5711 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
5712
5713         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
5714         * s/cygwin.sc: new linker file.
5715
5716 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
5717
5718         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
5719
5720         * redisplay-x.c (x_output_string): Use X11-specified types.
5721         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
5722         * emacs.c (__free_hook): Use typeof with Intel compiler.
5723         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
5724
5725 2003-01-08  Andy Piper  <andy@xemacs.org>
5726
5727         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
5728         reserve size during unexec().
5729
5730 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
5731
5732         * process-unix.c (unix_create_process): Don't let outchannel block.
5733
5734 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
5735
5736         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
5737         Needed for IsBadReadPtr().
5738
5739 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
5740
5741         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
5742
5743 2002-12-14  Ben Wing  <ben@xemacs.org>
5744
5745         * callint.c: Declaration error.
5746         * dumper.c (pdump):
5747         * dumper.c (pdump_load): Warning fix.
5748         * process.c: GCPRO error.
5749         * glyphs.c (unmap_subwindow):
5750         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
5751         * event-stream.c (maybe_kbd_translate): Wrong argument to
5752         character_to_event().
5753
5754         * alloc.c (garbage_collect_1):
5755         * emacs.c:
5756         * emacs.c (debug_can_access_memory):
5757         * emacs.c (fatal_error_signal):
5758         * emacs.c (mswindows_handle_hardware_exceptions):
5759         * emacs.c (main_1):
5760         * emacs.c (main):
5761         * emacs.c (assert_failed):
5762         * emacs.c (syms_of_emacs):
5763         * lisp.h:
5764         * print.c:
5765         * print.c (std_handle_out_va):
5766         * print.c (write_string_to_stdio_stream):
5767         * print.c (write_fmt_string):
5768         * print.c (printing_badness):
5769         * print.c (printing_major_badness):
5770         * print.c (print_internal):
5771         * print.c (debug_print_no_newline):
5772         * print.c (debug_backtrace):
5773         Be more defensive in handling bad values when printing.  Add code
5774         from trunk involving inhibit_non_essential_printing_operations.
5775         When going down or in debug_print(), don't do external conversion
5776         and such and try really, really hard when printing to avoid core
5777         dumping.  Add force-debugging-signal, debug_break().
5778
5779 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
5780
5781         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
5782         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
5783
5784 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
5785
5786         * database.c: Fix open_database. Berkeley DB API has changed in
5787         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
5788
5789 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
5790
5791         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
5792
5793 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
5794
5795         * event-Xt.c (Xt_timeout):
5796         (Xt_timeout_callback):
5797         (emacs_Xt_add_timeout):
5798         (emacs_Xt_remove_timeout):
5799         (Xt_timeout_to_emacs_event):
5800         Turn completed_timeouts from a stack into a queue.  Fixes
5801         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
5802
5803 2002-11-07  Wolfram Gloger  <wg@malloc.de>
5804
5805         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
5806         * emacs.c (main): Assert that mmap'd allocation is disabled.
5807
5808 2002-10-14  Andy Piper  <andy@xemacs.org>
5809
5810         * glyphs-widget.c (layout_query_geometry): add in fiddle
5811         factor. Include border text in width layout calculation.
5812         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
5813
5814 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
5815
5816         * XEmacs 21.4.10 "Military Intelligence" is released.
5817
5818 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
5819
5820         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
5821         using the NAS private array SoundFileInfo that no longer exists in
5822         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
5823         and earlier.  This is broken for some versions between 1.5a and
5824         1.5f.
5825
5826 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
5827
5828         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
5829
5830         * emacs.c (shut_down_emacs): Improve crash message.
5831
5832 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
5833
5834         * file-coding.c (determine_real_coding_system): Check for coding
5835         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
5836         shebangs and Python PEP 263.
5837
5838 2002-10-08  Andy Piper  <andy@xemacs.org>
5839
5840         * glyphs-widget.c (layout_query_geometry): only resize dynamically
5841         if static sizes haven't been set.
5842
5843 2002-08-30  Mike Alexander  <mta@arbortext.com>
5844
5845         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
5846         to close a socket.
5847
5848 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
5849
5850         * callproc.c (child_setup): 21.4 doesn't have retry_close.
5851
5852 2002-09-20  Mike Sperber <mike@xemacs.org>
5853
5854         (This partially gets back my patch from 2002-07-20 without the
5855         bug.)
5856         * callproc.c (child_setup): Remove Ben's comment noting confusion
5857         over the file descriptors >= 3: close_process_descs() doesn't
5858         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
5859         * process-unix.c (unix_create_process): Call
5860         begin_dont_check_for_quit to inhibit unwanted interaction (and
5861         thus breaking of X event synchronicity) in the child.
5862
5863 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
5864
5865         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
5866         widget.
5867
5868 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
5869
5870         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
5871         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
5872         the xemacs process did not exit, but looped infinitely here.  This
5873         fixes that problem.
5874
5875 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5876
5877         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
5878         (find_context): Improve comments.
5879
5880         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
5881         (re_match_2): An XCHAR_TABLE operation was missing.
5882
5883         Many of the following changes were inspired by Andy Piper's (now
5884         obsolete) patch to make syntax-table text property lookup optional.
5885
5886         [Documentation]
5887
5888         * syntax.h (top level): Document semantics of syntax flags.
5889         * syntax.c (comstr_start, Fforward_comment): Improve comments.
5890         * syntax.c, syntax.h (top level): Document syntax cache better in
5891         comments.
5892
5893         [Instrument syntax caching (temporary change)]
5894
5895         * syntax.h (enum syntax_cache_statistics_functions, struct
5896         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
5897         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
5898         * syntax.c (scan_words, Fforward_comment, scan_lists,
5899         Fbackward_prefix_characters):
5900         * font-lock.c (find_context):
5901         Use them to instrument syntax caching. 
5902         * syntax.c (struct syntax_cache_statistics, scs_statistics,
5903         syntax_cache_statistics_function_names): New type and variables.
5904         * syntax.c (update_syntax_cache): Update and report statistics.
5905
5906         [Major syntax cache optimizations]
5907
5908         syntax.c (lookup_syntax_properties): Default off.
5909
5910         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
5911         * syntax.c (update_syntax_cache):
5912         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
5913
5914         [Minor syntax cache optimizations and code clarifications]
5915
5916         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
5917         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
5918         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
5919         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
5920         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
5921         (Code clarification.)
5922
5923         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
5924         scan_lists): Compute code from syncode, use Boolean macros instead
5925         of redundant masking operations.  (Code clarification; any decent
5926         compiler can do this optimization.)
5927
5928         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
5929         for clarity.
5930
5931         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
5932         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
5933         use F*_single_property_change instead of F*_extent_change.
5934         Currently F*_single_property_change is _much_ less efficient.
5935
5936         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
5937         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
5938         syntax_cache.object properly, don't leave Qt or Qnil.
5939         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
5940         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
5941         tests for Qt or Qnil.
5942
5943 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
5944
5945         * redisplay.c (point_in_line_start_cache): 
5946         * extents.c (print_extent_1):
5947         Fix warnings.
5948
5949         * extents.c (Fset_extent_property): Document `syntax-table' property.
5950
5951         * extents.h (Fnext_single_property_change): EXFUN it.
5952
5953 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5954
5955         * search.c (clear_unused_search_regs): New static function.
5956         (search_buffer): 
5957         (simple_search): 
5958         (boyer_moore):
5959         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
5960         Minor clarifications in comments.
5961
5962         * regex.c (re_match_2_internal): Ensure no stale submatches.
5963
5964 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
5965
5966         * event-Xt.c (enqueue_focus_event): Add missing prototype.
5967
5968 2002-08-29  Jerry James  <james@xemacs.org>
5969
5970         * lisp.h: structrures -> structures.
5971
5972 2002-06-03  Andy Piper  <andy@xemacs.org>
5973
5974         * frame.c (frame_conversion_internal): add conversion appropriate
5975         for setting frame dimensions in pixels.
5976
5977         * console.h (struct console_methods): add device-specific widget
5978         layout functions.
5979
5980         * emacs.c (main_1): initialize glyph vars.
5981
5982         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
5983         (handle_focus_event_2): new function. Allow focus to
5984         be set to a particular window and widget.
5985         (enqueue_focus_event): new function. Create a
5986         synthetic focus event.
5987         (emacs_Xt_handle_magic_event): call
5988         handle_focus_event_2.
5989
5990         * frame.c (Fset_frame_pixel_height): new function. Allow
5991         pixel-based sizing. Does the right thing on character-oriented
5992         displays.
5993         (Fset_frame_pixel_width): ditto.
5994         (Fset_frame_pixel_size): ditto.
5995         (syms_of_frame): declare.
5996
5997         * general-slots.h: add :vertically-justify and
5998         :horizontally-justify.
5999
6000         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
6001         (mswindows_widget_border_width): new function.
6002         (mswindows_combo_box_instantiate): set border widths.
6003         (console_type_create_glyphs_mswindows): declare.
6004
6005         * glyphs-widget.c:
6006         (check_valid_justification): allow vertical and horizontal
6007         justification.
6008         (widget_border_width): new function. Call device methods.
6009         (widget_instance_border_width): ditto.
6010         (logical_unit_height): new function. Determine the height of a
6011         logical-unit. Logical units are intended to provide grid-like
6012         layout for subcontrols in a layout. If the layout is
6013         :vertically-justify top then subcontrols will be positioned on
6014         logical-unit boundaries, thus allowing adjacent subcontrols to
6015         line up.
6016         (widget_logical_unit_height): ditto for widgets.
6017         (redisplay_widget): misc cleanup.
6018         (widget_spacing): new function. Call device specific
6019         methods. Intended to be the default gap between adjacent widgets.
6020         (widget_query_geometry): use new spacing functions to determine
6021         appropriate geometry.
6022         (initialize_widget_image_instance): initialize horizontal and
6023         vertical justification.
6024         (widget_instantiate): use logica-units where appropriate for
6025         sizing large widgets.
6026         (button_query_geometry): use widget_instance_border_width.
6027         (tree_view_query_geometry): ditto.
6028         (tab_control_query_geometry): ditto.
6029         (edit_field_query_geometry): new function.
6030         (layout_update): pick up :justify, :horizontally-justify and
6031         :vertically-justify none of which worked previously. :justify is
6032         used as a fallback for both horizontal and vertical justification.
6033         (layout_query_geometry): use logical units to size appropriately.
6034         (layout_layout): ditto.
6035         (Fwidget_logical_to_character_width): new function. Allow users to
6036         convert from logical units to characters so that frame sizes can
6037         be set appropriately.
6038         (Fwidget_logical_to_character_height): ditto.
6039         (syms_of_glyphs_widget): declare.
6040         (image_instantiator_edit_fields): add edit_field_query_geometry.
6041         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
6042         :horizontally-justify.
6043         (specifier_vars_of_glyphs_widget): new function. Declare
6044         Vwidget_border_width which is not yet used.
6045
6046         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
6047         (x_widget_border_width): new function.
6048         (x_widget_instantiate): create a sensible name for widgets.
6049         (console_type_create_glyphs_x): declare x_widget_border_width.
6050
6051         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
6052         (struct Lisp_Image_Instance): add :vertically-justify and
6053         :horizontally-justify.
6054         (LAYOUT_JUSTIFY_TOP): new.
6055         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
6056         (ROUND_UP): new macro. Round argument up to next integral
6057         interval.
6058
6059         * redisplay-output.c (redisplay_output_layout): misc formatting.
6060
6061         * symsinit.h: declare specifier_vars_of_glyphs_widget.
6062
6063 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
6064
6065         * XEmacs 21.4.9 "Informed Management" is released.
6066
6067 2002-08-19  Andy Piper  <andy@xemacs.org>
6068
6069         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
6070         win32 format.
6071
6072         * realpath.c (xrealpath): normalize drive spec also so that dir
6073         sep chars are not mixed on cygwin.
6074
6075 2002-08-06  Jerry James  <james@xemacs.org>
6076
6077         * window.c (Fsplit_window): Count only half of the divider width
6078         against the left window when splitting horizontally. 
6079
6080 2002-06-24  Andy Piper  <andy@xemacs.org>
6081
6082         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
6083         toolbar was cleared.
6084
6085         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
6086         function. Split out from mswindows_output_frame_toolbars.
6087         (mswindows_output_frame_toolbars): move clear pieces to
6088         mswindows_output_frame_toolbars.
6089
6090         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
6091         out from gtk_output_frame_toolbars.
6092         (gtk_output_frame_toolbars): move clear pieces to
6093         gtk_clear_frame_toolbars.
6094
6095         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
6096         the frame is cleared. How this ever worked before is a mystery.
6097         (x_output_frame_toolbars): Only output toolbars.
6098         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
6099
6100         * gutter.c (update_gutter_geometry):
6101         Mark frame layout changed.
6102         (update_frame_gutter_geometry, update_frame_gutters):
6103         Respect frame_layout_changed.
6104
6105         * console.h (struct console_methods): add
6106         clear_frame_toolbars_method.
6107
6108         * redisplay.c (redisplay_frame): call
6109         update_frame_toolbars_geometry and re-order update_frame_toolbars.
6110
6111         * toolbar.h: declare update_frame_toolbars_geometry.
6112
6113         * toolbar.c (update_frame_toolbars_geometry): new function. Split
6114         out from update_frame_toolbars.  Call clear_frame_toolbars.
6115         (update_frame_toolbars): only output, do not change geometry.
6116
6117         * redisplay.c: add frame_layout_changed.
6118
6119         * redisplay.h: add frame_layout_changed.
6120         (CLASS_RESET_CHANGED_FLAGS): set it.
6121         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
6122         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
6123         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
6124
6125         * device.h (struct device): add frame_layout_changed.
6126         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
6127
6128         * frame.h (struct frame): add frame_layout_changed.
6129         (MARK_FRAME_LAYOUT_CHANGED): new.
6130
6131 2002-06-30  Mike Alexander  <mta@arbortext.com>
6132
6133         * event-msw.c (mswindows_need_event): Don't wait for a new message
6134         if the queue is not empty.  Suggested by Paul Moore.
6135
6136 2002-06-12  Andy Piper  <andy@xemacs.org>
6137
6138         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
6139         for printing on accurately.
6140
6141 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
6142
6143         * event-msw.c (mswindows_wnd_proc): Add a handler for the
6144         WM_ACTIVATE message. Make sure that the frame is visible if the
6145         window is visible. This seemss to fix the problem where XEmacs
6146         appears to freeze after switching desktops with certain virtual
6147         window managers.
6148         (debug_output_mswin_message): Added code to output message
6149         parameters for WM_WINDOWPOSCHANGED, 
6150         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
6151
6152 2002-05-25  Andy Piper  <andy@xemacs.org>
6153
6154         * select-x.c (vars_of_select_x): Fix docstring of
6155         x-selection-strict-motif-ownership
6156
6157 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6158
6159         * keymap.c (get_keymap):
6160         Add comment about do_autoload GCPROs own args.
6161
6162 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6163
6164         * bytecode.c (execute_optimized_program): check_opcode ifdef
6165         ERROR_CHECK_BYTE_CODE.
6166
6167 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6168
6169         Thanks to Ben Wing and Michael Sperber.
6170
6171         * eval.c (Fcommand_execute):
6172         (Feval):
6173         (Ffuncall):
6174         (Fmacroexpand_internal):
6175         (function_argcount):
6176         callint.c (Fcall_interactively):
6177         Add comment about do_autoload GCPROs own args.
6178
6179         * (do_autoload): GCPRO both args as well as local Lisp_Object.
6180
6181         * eval.c (Ffuncall): Extra braces to placate GCC.
6182
6183 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
6184
6185         * backtrace.h (grow_specpdl):
6186         (SPECPDL_RESERVE):
6187         * EmacsFrame.c (EmacsFrameSetValues):
6188         * eval.c (grow_specpdl):
6189         * ExternalShell.c (hack_event_masks_1):
6190         * glyphs-x.c (convert_EImage_to_XImage): 
6191         (x_finalize_image_instance):
6192         * ralloc.c (page_size):
6193         (r_alloc_sbrk):
6194         * xgccache.c (gc_cache_hash):
6195         Fix unsigned comparison warnings.
6196
6197 2002-07-29  Jerry James  <james@xemacs.org>
6198
6199         * lread.c (locate_file): Any nonnegative return value indicates
6200         success if MODE is nonnegative.
6201
6202 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
6203
6204         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
6205         argument. 
6206
6207 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
6208
6209         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
6210
6211         * dumper.c (pdump_get_indirect_count):
6212         (pdump_scan_by_alignment):
6213         (pdump_dump_root_struct_ptrs):
6214         (pdump_dump_rtables):
6215         (pdump_dump_root_objects):
6216         (pdump):
6217         * nas.c (WaveOpenDataForReading):
6218         * fns.c (print_bit_vector):
6219         * font-lock.c (SINGLE_SYNTAX_STYLE):
6220         * glyphs.c (check_for_ignored_expose):
6221         (find_matching_subwindow):
6222         * glyphs-eimage.c:
6223         * imgproc.c (get_histogram):
6224         * redisplay.c (point_in_line_start_cache):
6225         * redisplay-output.c (redisplay_unmap_subwindows):
6226         * symbols.c (defsymbol_massage_name_1):
6227         (defkeyword_massage_name):
6228         (deferror_massage_name_and_message):
6229         * redisplay-x.c (x_output_string): 
6230         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
6231         * frame.h (struct frame):
6232         * filelock.c (current_lock_owner):
6233         * doprnt.c (emacs_doprnt_1):
6234         * lisp.h (struct Lisp_Bit_Vector):
6235         (DO_REALLOC):
6236         Fix warnings.
6237
6238 2002-02-13  Ben Wing  <ben@xemacs.org>
6239
6240         * event-stream.c (reset_key_echo):
6241         * event-stream.c (reset_this_command_keys):
6242         * event-stream.c (execute_command_event):
6243         If console is dead as a result of C-x 5 0, then post-command stuff
6244         needs to be careful and do only non-console-specific stuff.
6245
6246 2002-07-01  Mike Sperber <mike@xemacs.org>
6247
6248         * process-unix.c (unix_send_process): Mark coding_outstream as
6249         non-open upon SIGPIPE.
6250
6251         * event-stream.c (Fnext_event): Reorder switch cases to something
6252         that makes sense.
6253
6254 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
6255
6256         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
6257         Don't bogusly reinitialize ascii_character property.
6258
6259 2002-07-08  Mike Sperber <mike@xemacs.org>
6260
6261         * process.c (Fstart_process_internal): Do error checking before we
6262         fork off the child, so the child can't muck with the state of the
6263         parent.
6264
6265 2002-07-08  Mike Sperber <mike@xemacs.org>
6266
6267         * ralloc.c (init_ralloc): Allocate properly for pdump.
6268
6269 2002-06-12  Andy Piper  <andy@xemacs.org>
6270
6271         * glyphs.c (query_string_geometry): check the string.
6272
6273         * glyphs-widget.c (widget_logical_unit_height): cope with nil
6274         widget names.
6275
6276 2002-06-17  Jerry James  <james@xemacs.org>
6277
6278         * sysdll.c: Remove RTLD_GLOBAL initialization.
6279         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
6280
6281 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
6282
6283         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
6284
6285 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
6286
6287         * sysdep.c (sys_rename): Make sys_rename work for the case where
6288         Windows rename sets errno to EACCES if target file exists.
6289
6290 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
6291
6292         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6293         Fix detection of metric units to work on Win95
6294
6295 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
6296
6297         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
6298
6299 2002-04-25  Andy Piper  <andy@xemacs.org>
6300
6301         * redisplay.c (create_text_block): Remove extra comment trailer.
6302
6303 2002-04-24  Andy Piper  <andy@xemacs.org>
6304
6305         * redisplay.c (create_text_block): Don't actually add propagation
6306         data if the line ends after we have added a glyph.
6307
6308 2002-04-22  Andy Piper  <andy@xemacs.org>
6309
6310         * extents.c (extent_fragment_update): check for glyphs we have
6311         previously displayed.
6312         * extents.c (print_extent_1): warning removal.
6313         * extents.h: change prototype.
6314         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
6315         widths correctly for wide glyphs.
6316         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
6317         * redisplay.c (prop_type): add PROP_GLYPH.
6318         * redisplay.c (struct prop_block): add glyph type
6319         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
6320         to the propagation data.
6321         * redisplay.c (create_text_block): if there is a glyph in the
6322         propagation data use it to salt extent_fragment_update.
6323         * redisplay.c (create_string_text_block): ditto.
6324
6325 2002-04-13  Nix  <nix@esperi.demon.co.uk>
6326
6327         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
6328         * redisplay-output.c (compare_runes): Compare them.
6329         * redisplay.c: Update copyright date.
6330         * redisplay.c (pos_data): Add need_baseline_computation field.
6331         * redisplay.c (add_glyph_rune): Update ascent, descent, and
6332         need_baseline_computation; zero yoffset. Set max_pixmap_height
6333         for all pixmaps, not just automatically positioned ones.
6334         * redisplay.c (calculate_yoffset): New, compute yoffset values.
6335         * redisplay.c (calculate_baseline): New, compute textual baseline.
6336         * redisplay.c (add_glyph_rune): Call them.
6337         * redisplay.c (create_text_block): Likewise.
6338         * redisplay.c (create_overlay_glyph_block): Likewise.
6339         * redisplay.c (add_margin_runes): Likewise.
6340         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
6341
6342         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
6343         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
6344         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
6345         * redisplay-msw.c (mswindows_output_string): Likewise.
6346         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
6347         * redisplay-gtk.c (gtk_output_display_block): Likewise.
6348         * redisplay-x.c (x_output_display_block): Likewise.
6349
6350 2002-03-28  Ben Wing  <ben@xemacs.org>
6351
6352         * redisplay.c: Fixed bug in redisplay
6353         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
6354         and down of the lines, since they're bigger than the line
6355         size. (It was seen most obviously when there's a horizontal scroll
6356         bar, e.g. do C-h a glyph or something like that.) The problem was
6357         that the glyph-contrib-p setting on glyphs was ignored even if it
6358         was set properly, which it wasn't until now.
6359
6360 2002-04-24  Andy Piper  <andy@xemacs.org>
6361
6362         * lisp.h (Dynarr_end): Fix definition.
6363
6364 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
6365
6366         * redisplay.c (mark_redisplay): Remove call to
6367         update_frame_window_mirror.
6368
6369 2001-11-15  Andy Piper  <andy@xemacs.org>
6370
6371         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
6372         cygwin (again).
6373
6374 2002-02-13  Andy Piper  <andy@xemacs.org>
6375
6376         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
6377         we did in fact enqueue the XM_MAPFRAME event.
6378
6379 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
6380
6381         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
6382         to fix problem switching between virtual desktops under virtuawin
6383         virtual window manager.
6384
6385 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
6386
6387         * event-msw.c: Typo fix.
6388         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
6389         magic XM_MAPFRAME event has been sent.
6390
6391 2001-11-23  Andy Piper  <andy@xemacs.org>
6392
6393         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
6394
6395 2001-11-21  Andy Piper  <andy@xemacs.org>
6396
6397         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
6398         mouse events outside the frame.
6399
6400 2002-03-20  Andy Piper  <andy@xemacs.org>
6401
6402         * menubar-msw.c (mswindows_popup_menu): warning removal.
6403         * dialog-msw.c (dialog_popped_down): ditto.
6404
6405 2001-12-11  Andy Piper  <andy@xemacs.org>
6406
6407         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
6408         * dialog-msw.c (mswindows_make_dialog_box_internal): set
6409         popup_up_p.
6410         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
6411         * menubar-msw.c (mswindows_handle_wm_command): ditto.
6412         * menubar-msw.c (mswindows_popup_menu): ditto.
6413
6414 2001-10-29  Andy Piper  <andy@xemacs.org>
6415
6416         * dialog-msw.c (handle_directory_dialog_box): quit if the user
6417         cancels.
6418
6419 2002-01-03  Andy Piper  <andy@xemacs.org>
6420
6421         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
6422         letters.
6423         (xrealpath): ditto.
6424
6425 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
6426
6427         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
6428         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
6429         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6430         Detect and handle case where machine is set up for metric units
6431
6432 2002-04-02  Andy Piper  <andy@xemacs.org>
6433
6434         * dired-msw.c (mswindows_get_files): 
6435         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
6436         completely handled by XEmacs. Suggested by Thomas Vogler
6437         <mail@thomas-vogler.de>.
6438
6439 2001-11-14  Andy Piper  <andy@xemacs.org>
6440
6441         * nt.c (REG_ROOT): change registry key to XEmacs.
6442
6443 2002-04-27  Andy Piper  <andy@xemacs.org>
6444
6445         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
6446
6447 2002-04-26  Andy Piper  <andy@xemacs.org>
6448
6449         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
6450         behavior.
6451
6452 2002-03-14  Mike Alexander  <mta@arbortext.com>
6453
6454         * event-msw.c (mswindows_unwait_process): New, remove process from
6455         wait list
6456         * process-nt.c (nt_finalize_process_data): Call
6457         mswindows_unwait_process
6458         * console-msw.h: Declare mswindows_unwait_process
6459
6460 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
6461
6462         * editfns.c (Fdecode_time):
6463         (Fformat_time_string):
6464         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
6465         (make_time): Warning elimination (change arg name).
6466
6467 2001-11-24  Andy Piper  <andy@xemacs.org>
6468
6469         * window.c (Fsplit_window): Doc return type.
6470
6471 2002-04-01  Andy Piper  <andy@xemacs.org>
6472
6473         * emacs.c (Fkill_emacs): Only output message box in interactive
6474         mode.
6475
6476 2002-04-26  Andy Piper  <andy@xemacs.org>
6477  
6478         * config.h.in: pull in 21.5.x change to stop alloca warnings under
6479         cygwin.
6480
6481 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
6482
6483         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
6484         bit platform.
6485
6486 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
6487
6488         * XEmacs 21.4.8 "Honest Recruiter" is released.
6489
6490 2002-05-07  Nix  <nix@esperi.demon.co.uk>
6491
6492         Supersedes 2002-04-17 patch.
6493
6494         * process.h (PROCESS_LIVE_P): Use the process status as
6495         evidence of health, not the state of the input stream.
6496         (PROCESS_READABLE_P): Say if the process is readable
6497         from. (It may be dead nonetheless.)
6498         (CHECK_READABLE_PROCESS): Test for that condition.
6499
6500         * process.c (create_process): Use PROCESS_READABLE_P.
6501         (read_process_output, set_process_filter): Likewise.
6502
6503         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
6504         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
6505
6506         This code is #if 0'd, this is not the time to add new functions:
6507
6508         * process.c (Fprocess_readable_p): Report readability status.
6509         * process.c (Qprocess_readable_p): New, associated symbol...
6510         * process.c (syms_of_process): ... initialize it.
6511
6512 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
6513
6514         * XEmacs 21.4.7 "Economic Science" is released.
6515
6516 2002-04-17  Nix  <nix@esperi.demon.co.uk>
6517
6518         * process.h (PROCESS_LIVE_P): Use the process status as
6519         evidence of health, not the state of the input stream.
6520
6521 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
6522
6523         * sysdep.c (sys_siglist): change "signum" to "signal"
6524
6525 2001-04-21  Martin Buchholz  <martin@xemacs.org>
6526
6527         * s/darwin.h: New file.
6528         Thanks to Greg Parker <gparker@cs.stanford.edu>.
6529         
6530 2002-04-23  Andreas Jaeger  <aj@suse.de>
6531
6532         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
6533         which use lib64 for 64-bit libs.
6534         (START_FILES): Likewise.
6535
6536 2002-02-11  Mike Sperber  <mike@xemacs.org>
6537
6538         * device-x.c: 
6539         (x_IO_error_handler):
6540         (x_init_device): Temporarily keep device in static variable
6541         `device_being_initialized' so we can recover gracefully from
6542         internal XOpenDevice failure.  (XOpenDevice is documented to
6543         return NULL on failure, but sometimes calls the IO error handler
6544         instead.)
6545
6546 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
6547
6548         * dired.c (Ffile_name_all_completions): Change documentation --
6549         remove reference to completion-ignored-extensions.
6550         * dired.c (vars_of_dired): Change documentation for
6551         completion-ignored-extensions -- remove reference to
6552         file-name-all-completions.
6553
6554 2002-03-06  Jerry James  <james@xemacs.org>
6555
6556         * emodules.c (emodules_load): Fix multiple loading of same module.
6557
6558 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
6559         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
6560         RTLD_LAZY to avoid incorrect symbol binding when using nested
6561         shared libraries on Solaris.
6562
6563 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
6564
6565         * fileio.c (Ffind_file_name_handler): Improve docstring.
6566
6567 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
6568
6569         * fns.c (Fmapconcat): Improve docstring.
6570
6571 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
6572
6573         * device-gtk.c: Add prototype for
6574         emacs_gtk_selection_clear_event_handle.
6575         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
6576         selection.  Setup signal handler for "selection_clear_event"
6577         (emacs_gtk_selection_clear_event_handle).
6578
6579         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
6580         other applications owning the clipboard (based on
6581         x_handle_selection_clear).
6582
6583 2001-12-23  William M. Perry  <wmperry@gnu.org>
6584
6585         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
6586         
6587 2002-01-04  Martin Buchholz  <martin@xemacs.org>
6588
6589         * keymap.c (define_key_alternate_name): Parenthesize EQ.
6590
6591 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
6592
6593         * XEmacs 21.4.6 "Common Lisp" is released.
6594
6595 2001-12-16  Torsten Duwe  <duwe@caldera.de>
6596
6597         * search.c (Freplace_match): Add missing sub-expression functionality.
6598
6599         * buffer.c (decode_buffer): Add a check for pointer type to
6600         decode_buffer, before gcc's CSE optimization reorders a
6601         dereference in front of the allow_string test.
6602
6603 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
6604
6605         * window.c (window_loop): Fix bug that sometimes prevented
6606         window_loop() from iterating across multiple devices.  Also, at
6607         Ben's request, changed infloop-detecting code to abort() instead
6608         of silently terminating window_loop().
6609
6610 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
6611
6612         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
6613         * editfns.c (make_time): New function.
6614         (Fencode_time): Use it instead of wasteful_word_to_lisp.
6615         * lisp.h (make_time): Prototype and comment it.
6616         * dired.c (wasteful_word_to_lisp): Deprecate.
6617         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
6618
6619 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
6620
6621         * fileio.c (auto_save_1): Use current coding system, not
6622         escape-quoted.
6623
6624 2001-11-13  Ben Wing  <ben@xemacs.org>
6625
6626         * window.c:
6627         * window.c (window_truncation_on):
6628         * window.c (syms_of_window):
6629         truncate-partial-width-windows should respect the buffer being
6630         displayed, like other redisplay vars.
6631
6632 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
6633
6634         * event-stream.c (Fread_key_sequence): save current buffer.
6635
6636 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6637
6638         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
6639
6640 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
6641
6642         * alloc.c (lcrecord_stats): Add space for types defined in modules.
6643
6644 2001-10-26  Mike Alexander  <mta@arbortext.com>
6645
6646         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
6647
6648 2001-10-25  Andy Piper  <andy@xemacs.org>
6649
6650         * ChangeLog:
6651         * dialog-msw.c (handle_directory_proc): new function.
6652          (handle_directory_dialog_box): new fucntion.
6653          (handle_file_dialog_box): use new directory dialog support.
6654          (mswindows_make_dialog_box_internal): ditto.
6655         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
6656         handling.
6657         (mswindows_find_frame): make global.
6658         * fileio.c (Fexpand_file_name): build fix.
6659         * general-slots.h: add Qdirectory.
6660         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
6661         handling.
6662         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
6663         cygwin not leaving win32 paths unchanged.
6664         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
6665         cygwin runtime to do path conversion.
6666         (Fmswindows_shell_execute): fix cygwin handling of URLs.
6667         (syms_of_win32): add new function.
6668         * window.c (window_loop): build fix.
6669
6670 2001-10-15  Andy Piper  <andy@xemacs.org>
6671
6672         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
6673
6674 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
6675
6676         * XEmacs 21.4.5 "Civil Service" is released.
6677
6678 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
6679
6680         * glyphs-x.c: Force buffer-tab highlight update when moving the
6681         buffer, avoiding an ugly black border, used for keyboard focus
6682         indication, on a widget that can never have keyboard focus, the
6683         buffer tab.
6684
6685 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
6686
6687         * process-unix.c (unix_open_multicast_group): Remove too much
6688         conversion between host and network byte order.
6689
6690 2001-09-10  Nix  <nix@esperi.demon.co.uk>
6691
6692         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
6693         before replacing them.
6694
6695         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
6696         operation.
6697
6698         * src/window.c (undedicate_windows): Use it.
6699         * src/window.h: Add prototype.
6700
6701 2001-09-17  Ben Wing  <ben@xemacs.org>
6702
6703         * fileio.c (normalize_filename):
6704         * fileio.c (Fexpand_file_name):
6705         Fix various C++ compile errors in Andy's recent code.
6706         
6707         * callint.c (Fcall_interactively):
6708         * editfns.c (Ftemp_directory):
6709         * editfns.c (Fuser_full_name):
6710         * emacs.c (argmatch):
6711         * lread.c (locate_file_map_suffixes):
6712         * redisplay-x.c (x_ring_bell):
6713         Fix sign-compare warnings.
6714         
6715 2001-09-08  Andy Piper  <andy@xemacs.org>
6716
6717         * fileio.c (normalize_filename): copied from nt.c
6718         * (Ffile_name_directory): enable win32 paths under cygwin.
6719         * (Ffile_name_nondirectory): ditto.
6720         * (directory_file_name): ditto.
6721         * (Fexpand_file_name): ditto.
6722         * (Ffile_truename): ditto.
6723         * (Fsubstitute_in_file_name): ditto.
6724         * (Ffile_name_absolute_p): ditto.
6725         * (Ffile_readable_p): ditto.
6726
6727 2001-09-08  Andy Piper  <andy@xemacs.org>
6728
6729         * device-msw.c (mswindows_finish_init_device): remove dde
6730         initialization.
6731         * device-msw.c (mswindows_init_dde): factor out from
6732         mswindows_finish_init_device()
6733         * device-msw.c (init_mswindows_very_early): new function
6734         initialize but don't enable dde.
6735         * emacs.c (main_1): call init_mswindows_very_early.
6736         * event-msw.c:
6737         * event-msw.c (mswindows_dde_callback): only execute when we are
6738         ready.
6739         * symsinit.h: declare init_mswindows_very_early.
6740
6741 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6742
6743         [sjt: This has been in 21.5 for months with no complaints.]
6744
6745         * console.h (struct console_methods): Added flags member.
6746         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
6747         (CONMETH_IMPL_FLAG):
6748         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
6749         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6750
6751         * device.c (window_system_pixelated_geometry): Use the above macros.
6752
6753         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
6754         implememntation flag.
6755         * device.h (DEVICE_DISPLAY_P): Use it.
6756
6757         * frame.c (delete_frame_internal): Use the above macro.
6758
6759         * redisplay.c (redisplay_device): Use it.
6760         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
6761         (redisplay_frame): Ditto.
6762
6763         * device-msw.c (mswindows_device_implementation_flags): Removed.
6764         (msprinter_device_implementation_flags): Removed.
6765         (console_type_create_device_mswindows): Removed references to
6766         implementation_flags methods, set implementation flags here.
6767         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
6768
6769         * device-gtk.c (gtk_device_implementation_flags): Removed method.
6770         (console_type_create_device_gtk): Removed method declaration.
6771         Added commented out statement which semantically matches the
6772         commented out statement in the above removed method.
6773
6774 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
6775
6776         The attached patch fixes a few warnings. 
6777
6778         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
6779         * src/frame-gtk.c: guard against GNOME calls in GTK only
6780         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
6781         * src/select-gtk.c: prototype lisp_to_time
6782
6783 2001-06-08  Ben Wing  <ben@xemacs.org>
6784
6785         ------ gc-in-window-procedure fixes ------
6786         
6787         * alloc.c:
6788         * alloc.c (struct post_gc_action):
6789         * alloc.c (register_post_gc_action):
6790         * alloc.c (run_post_gc_actions):
6791         * alloc.c (garbage_collect_1):
6792         Create "post-gc actions", to avoid those dreaded "GC during window
6793         procedure" problems.
6794
6795         * event-msw.c:
6796         Abort, clean and simple, when GC in window procedure.  We want
6797         to flush these puppies out.
6798
6799         * glyphs-msw.c:
6800         * glyphs-msw.c (finalize_destroy_window):
6801         * glyphs-msw.c (mswindows_finalize_image_instance):
6802         Use a post-gc action when destroying subwindows.
6803
6804         * lisp.h:
6805         Declare register_post_gc_action().
6806
6807         * scrollbar-msw.c:
6808         * scrollbar-msw.c (unshow_that_mofo):
6809         Use a post-gc action when unshowing scrollbar windows, if in gc.
6810
6811         * redisplay.c (mark_redisplay):
6812         Add comment about the utter evilness of what's going down here.
6813
6814         ------ cygwin setitimer fixes ------
6815         
6816         * Makefile.in.in (sheap_objs):
6817         * Makefile.in.in (profile_objs):
6818         * Makefile.in.in (objs):
6819         Compile profile.c only when HAVE_SETITIMER.
6820         
6821         * nt.c (mswindows_sigset):
6822         * nt.c (mswindows_sighold):
6823         * nt.c (mswindows_sigrelse):
6824         * nt.c (mswindows_sigpause):
6825         * nt.c (mswindows_raise):
6826         * nt.c (close_file_data):
6827         Style fixes.
6828         
6829         * nt.c:
6830         Move setitimer() emulation to win32.c, because Cygwin needs it too.
6831         
6832         * profile.c:
6833         * profile.c (Fstart_profiling):
6834         * profile.c (Fstop_profiling):
6835         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
6836         instead of just plain setitimer().
6837         
6838         * signal.c:
6839         * signal.c (set_one_shot_timer):
6840         * signal.c (alarm):
6841         Define qxe_setitimer() as an encapsulation around setitimer() --
6842         call setitimer() directly unless Cygwin or MS Win, in which case
6843         we use our simulated version in win32.c.
6844         
6845         * systime.h:
6846         * systime.h (struct itimerval):
6847         * systime.h (ITIMER_REAL):
6848         Prototype mswindows_setitimer() and qxe_setitimer().  Long
6849         comment about "qxe" and the policy regarding encapsulation.
6850
6851         * win32.c:
6852         * win32.c (setitimer_helper_proc):
6853         * win32.c (setitimer_helper_period):
6854         * win32.c (setitimer_helper):
6855         * win32.c (mswindows_setitimer):
6856         Move setitimer() emulation here, so Cygwin can use it.
6857         Rename a couple of functions and variables to be longer and more
6858         descriptive.  In setitimer_helper_proc(), send the signal
6859         using either mswindows_raise() or (on Cygwin) kill().  If for
6860         some reason we are still getting lockups, we'll change the kill()
6861         to directly invoke the signal handlers.
6862
6863         ------ windows shell fixes ------
6864         
6865         * callproc.c:
6866         * ntproc.c:
6867         Comments about how these two files must die.
6868
6869         * callproc.c (init_callproc):
6870         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
6871         not just COMSPEC. (more correct and closer to FSF.) Don't
6872         force a value for SHELL into the environment. (Comments added
6873         to explain why not.)
6874         
6875         * nt.c (init_user_info):
6876         Don't shove a fabricated SHELL into the environment.  See above.
6877
6878 2001-06-01  Ben Wing  <ben@xemacs.org>
6879
6880         * Makefile.in.in (ldflags):
6881         eliminate that pesky "defaulting to 00401000" warning.
6882         * nt.h:
6883         eliminate warnings.
6884
6885 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
6886
6887         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
6888         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
6889
6890 2001-04-24  Jerry James <james@xemacs.org>
6891
6892         * faces.h: pass parameters to Fadd_spec_to_specifier in the
6893         correct order.
6894
6895 2001-06-01  Ben Wing  <ben@xemacs.org>
6896
6897         * event-msw.c (debug_mswin_messages):
6898         conditionalize the messages that were causing compile errors.
6899         (if only macros could generate #ifdef statements ...)
6900
6901 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
6902
6903         * XEmacs 21.4.4 "Artificial Intelligence" is released.
6904
6905 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6906
6907         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
6908
6909 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
6910
6911         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
6912         * process-unix.c (unix_canonicalize_host_name):
6913         sysdep.c (init_system_name):
6914         Use it to conditionally support IPv6 canonicalization.
6915
6916 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
6917
6918         * event-msw.c:
6919         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
6920
6921 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
6922
6923         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
6924         attempt is made to scroll when no scroll bar is available.
6925
6926 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
6927
6928         * input-method-motif.c (XIM_delete_frame): New callback.
6929         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
6930         got deleted from 21.4.3.)
6931
6932 2001-06-01  Ben Wing  <ben@xemacs.org>
6933
6934         * nt.c (mswindows_utime):
6935         * nt.c (close_file_data):
6936         fix off-by-one-indirection error.
6937
6938 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
6939
6940         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
6941         because set_file_times() now takes Lisp_Object path, instead of
6942         char*.
6943         * nt.c: Include buffer.h.
6944         * nt.c (convert_from_time_t): New.
6945         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
6946         not set mtime correctly.
6947         * nt.h: Declare mswindows_utime().
6948         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
6949         path, instead of char*.
6950         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
6951
6952 2001-05-30  Ben Wing  <ben@xemacs.org>
6953
6954         For 21.4:
6955
6956         (Stephen, just take all event-msw.c patches.  This includes
6957         the "iconify" fix below.)
6958
6959         * event-msw.c:
6960         * event-msw.c (mswindows_dequeue_dispatch_event):
6961         * event-msw.c (assert):
6962         * event-msw.c (emacs_mswindows_quit_p):
6963         * event-msw.c (debug_mswin_messages):
6964         * event-msw.c (debug_output_mswin_message):
6965         * event-msw.c (vars_of_event_mswindows):
6966         Fix yet more problems with C-g handling.
6967         Implement debug-mswindows-events.
6968         
6969 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
6970
6971         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
6972         
6973 2001-05-23  Ben Wing  <ben@xemacs.org>
6974
6975         * event-msw.c (winsock_writer):
6976         * event-msw.c (winsock_closer):
6977         prior kludgy code was clobbering the buffer, thinking it was
6978         "unused" space to store an unneeded return value; instead, use
6979         the variable we've already got staring us in the face.
6980
6981 2001-05-17  Andy Piper  <andy@xemacs.org>
6982
6983         * sysfile.h: don't assume that file attributes are boolean
6984
6985 2001-05-23  Ben Wing  <ben@xemacs.org>
6986
6987         * device-msw.c (msprinter_init_device):
6988         signal an error rather than crash with an unavailable network
6989         printer (from Mike Alexander).
6990         
6991         * event-msw.c:
6992         * event-msw.c (struct winsock_stream):
6993         * event-msw.c (winsock_writer):
6994         * event-msw.c (winsock_closer):
6995         * event-msw.c (make_winsock_stream_1):
6996         cleanup headers.  fix (hopefully) an error with data corruption
6997         when sending to a network connection.
6998
6999         * fileio.c (Fexpand_file_name): Fix evil code that attempts
7000         to handle the ~user prefix by (a) always assuming we're referencing
7001         ourselves and not even verifying the user -- hence any file with
7002         a tilde as its first char is invalid! (b) if there wasn't a slash
7003         following the filename, the pointer was set *past* the end of
7004         file and we started reading from uninitialized memory.  Now we
7005         simply treat these as files, always.
7006
7007         * buffer.c (common_init_complex_vars_of_buffer): comment change.
7008         
7009 2001-05-19  Ben Wing  <ben@xemacs.org>
7010
7011         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
7012
7013         * process-nt.c:
7014         * process-nt.c (vars_of_process_nt):
7015         remove unused mswindows-quote-process-args.  rec for 21.4.
7016         
7017 2001-05-12  Ben Wing  <ben@xemacs.org>
7018
7019         * event-msw.c (mswindows_dde_callback):
7020         * event-msw.c (mswindows_wnd_proc):
7021         eliminate cygwin warnings.
7022
7023 2001-05-06  Ben Wing  <ben@xemacs.org>
7024
7025         * console-msw.h:
7026         * device-msw.c:
7027         * device-msw.c (print_dialog_worker):
7028         * device-msw.c (mswindows_handle_print_dialog_box):
7029         * device-msw.c (syms_of_device_mswindows):
7030         * dialog-msw.c (mswindows_make_dialog_box_internal):
7031         * general-slots.h:
7032         implement printing the selection when it's selected.
7033
7034 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
7035
7036         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
7037
7038 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7039
7040         * lisp.h (EMACS_INT_MAX): This should be one bit less since
7041         EMACS_INT is signed.
7042
7043 2001-04-15  Michael Lausch  <mla@1012surf.net>
7044
7045         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
7046         gtk_widget_request_size() to give scrollbar >0 width for
7047         GTK >1.2.8.
7048
7049 2001-05-30  William M. Perry  <wmperry@gnu.org>
7050
7051         * event-gtk.c: Check for buttons as modifier keys.
7052
7053 2001-05-25  Craig Lanning  <CraigL@Knology.net>
7054
7055         * s\mingw32.h:
7056         Properly find MinGW's <process.h> inside Cygwin's restructured
7057         include directories.  Don't try to include <cygwin/version.h>
7058         since we are dropping support for MinGW in versions of Cygwin
7059         earlier than b21.
7060         * nt.c:
7061         Drop support for MinGW in versions of Cygwin before b21.
7062         * sysdep.c:
7063         Properly find MinGW's <process.h> inside Cygwin's restructured
7064         include directories.
7065         * syswindows.h:
7066         Drop support for MinGW in versions of Cygwin before b21.
7067         * unexcw.c:
7068         Even though a.out.h is no longer detected by configure, allow
7069         MinGW to use it until we figure out how to do the job with Win32.
7070
7071 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
7072
7073         * syntax.c (find_start_of_comment):
7074         Fix `unbalanced parentheses' bug when dealing with mixed comment
7075         styles in c++/java/etc. mode
7076
7077 2001-05-29  Mike Alexander  <mta@arbortext.com>
7078
7079         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
7080         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
7081
7082 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
7083
7084         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
7085
7086 2001-03-31  Mike Sperber <mike@xemacs.org>
7087
7088         * search.c (Freplace_match): Support FSF-style specification of
7089         match subexpression when applied to a buffer.
7090
7091 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7092
7093         * event-stream.c (is_scrollbar_event): add missing semicolon
7094
7095 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
7096
7097         * Makefile.in.in: Use TAR macro instead of hardcoding
7098           tar.  Allows use of GNU tar instead of system tar
7099
7100 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7101
7102         * event-stream.c (is_scrollbar_event): add missing semicolon
7103
7104 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7105
7106         * XEmacs 21.4.3 "Academic Rigor" is released.
7107
7108 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7109
7110         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
7111
7112 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7113
7114         * buffer.c (Vcase_fold_search): Remove obsolete
7115           comment about non ASCII case-fold-search.  This
7116           bug has been fixed by case-table changes.
7117
7118 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
7119
7120         * event-msw.c: Restore include of events-mod.h.
7121
7122 2001-04-22   zhaoway  <zw@debian.org>
7123
7124         * event-stream.c (is_scrollbar_event): Noop returning 0 if
7125         !HAVE_SCROLLBARS.
7126
7127 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
7128
7129         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
7130
7131 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
7132
7133         * mule-charset.c (Fmake_charset): Add missing else.
7134
7135 2001-04-23  Ben Wing  <ben@xemacs.org>
7136
7137         * event-msw.c (FAKE_MOD_QUIT):
7138         * event-msw.c (mswindows_dequeue_dispatch_event):
7139         * event-msw.c (mswindows_wnd_proc):
7140         * event-msw.c (emacs_mswindows_quit_p):
7141         Get critical quit working.
7142
7143 2001-05-05  Ben Wing  <ben@xemacs.org>
7144
7145         * console-msw.h:
7146         * device-msw.c:
7147         * device-msw.c (mswindows_get_default_margin):
7148         * frame-msw.c (mswindows_size_frame_internal):
7149         * frame-msw.c (msprinter_init_frame_1):
7150         * frame-msw.c (vars_of_frame_mswindows):
7151         Change top/bottom margin defaults to 0.5 inches.
7152
7153 2001-05-01  Martin Buchholz  <martin@xemacs.org>
7154
7155         Fix link error with gcc 3.0 on Linux.
7156         * terminfo.c (UP): Remove.
7157         * terminfo.c (BC): Remove.
7158         * terminfo.c (PC): Remove.
7159         They weren't used, and in any case, these symbols should be
7160         defined in the *library*.
7161
7162 2001-05-03  Martin Buchholz  <martin@xemacs.org>
7163
7164         * s/aix4.h: Fix crash with xlc -O3.
7165         Improve comment explaining how -O3 works.
7166
7167 2001-04-15  Ben Wing  <ben@xemacs.org>
7168
7169         * event-stream.c:
7170         * event-stream.c (Fnext_event):
7171         * event-stream.c (is_scrollbar_event):
7172         * event-stream.c (execute_command_event):
7173         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
7174         crash' problem.  His fix introduces other problems.  We filter
7175         out scrollbar events specifically, making them somewhat invisible
7176         to command-building, and not appearing in `this-command-keys'.
7177         More work is still needed (see comments in event-stream.c), but
7178         this fixes all the major problems.
7179
7180 2001-04-20  Ben Wing  <ben@xemacs.org>
7181
7182         * .cvsignore: Added stuff for Windows.
7183
7184 2001-04-28  Ben Wing  <ben@xemacs.org>
7185
7186         * buffer.c (Ferase_buffer):
7187         * editfns.c (buffer_insert1):
7188         * editfns.c (Finsert_before_markers):
7189         * editfns.c (Finsert_string):
7190         * editfns.c (Finsert_char):
7191         * editfns.c (Fdelete_region):
7192         * editfns.c (Fwiden):
7193         * editfns.c (Fnarrow_to_region):
7194         remove bogus lines setting zmacs_region_stays to 0.
7195         
7196 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
7197
7198         * process-unix.c (unix_open_network_stream): If connect() fails
7199         invalidate file descriptor after closing it.
7200
7201 2001-03-08  Mike Alexander  <mta@arbortext.com>
7202
7203         * event-msw.c (mswindows_need_event_in_modal_loop):
7204         Don't dispatch a message if we didn't get one.
7205         (mswindows_need_event):
7206         Terminate the correct process when one exits instead of the first
7207         one on Vprocess_list and look for process termination when in
7208         mswindows_protect_modal_loop.
7209
7210 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
7211
7212         * XEmacs 21.4.1 "Copyleft" is released.
7213
7214 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7215
7216         * input-method-motif.c (XIM_delete_frame): New callback.
7217         (XIM_init_frame): Register it.
7218
7219 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7220
7221         * XEmacs 21.4.0 "Solid Vapor" is released.
7222
7223 2001-04-15  Ben Wing  <ben@xemacs.org>
7224
7225         * cmdloop.c (call_command_loop):
7226         Fix braino in bit-rotting code.
7227         
7228 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
7229
7230         * extents.c (Fset_extent_endpoints): Force creation of extent info
7231         in buffer_or_string.
7232
7233         * extents.c (process_extents_for_insertion_mapper): Correctly
7234         check for open-open zero-length extents.
7235
7236 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
7237
7238         * lisp.h: New typedefs Memory_count, Element_count.
7239         * regex.c:
7240         * regex.h:
7241         Sign-compare warning elimination: several unsigned -> signed.
7242         Based on work by Ben Wing <ben@xemacs.org>.
7243
7244 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
7245
7246         * XEmacs 21.2.47 "Zephir" is released.
7247
7248 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
7249
7250         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
7251
7252 2001-04-03  Mike Sperber <mike@xemacs.org>
7253
7254         * search.c: Revert previous patch due because of release.
7255
7256 2001-03-30  Ben Wing  <ben@xemacs.org>
7257
7258         * s\cygwin32.h:
7259         Add missing killpg prototype.
7260
7261         * elhash.c:
7262         Add a comment about fixing problems when a new entry is added
7263         while mapping.
7264
7265         * frame-msw.c (mswindows_init_frame_1):
7266         Fix compile warnings.
7267
7268         * menubar.c (vars_of_menubar):
7269         Provide `menu-accelerator-support' to indicate that we properly
7270         support %_ in menu specifications, so that package code can
7271         conditionalize on this (and remove %_ from menu specifications
7272         on older versions).
7273
7274         * event-msw.c:
7275         * scrollbar-msw.c:
7276         * scrollbar-msw.c (can_scroll):
7277         * scrollbar-msw.h:
7278         Fix handling of mouse wheel under Windows to follow standards --
7279         now scrolls window under pointer, not selected window.
7280
7281 2001-03-31  Mike Sperber <mike@xemacs.org>
7282
7283         * search.c (Freplace_match): Support FSF-style specification of
7284         match subexpression when applied to a buffer.
7285
7286 2001-03-15  Martin Buchholz  <martin@xemacs.org>
7287
7288         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
7289         function to modify KEYMAP, so map over a copy of the hash table.
7290
7291 2001-03-21  Martin Buchholz <martin@xemacs.org>
7292
7293         * XEmacs 21.2.46 "Urania" is released.
7294
7295 2001-03-20  Dan Holmsand  <dan@eyebee.com>
7296
7297         * realpath.c (xrealpath): Make file-truename work with symlinks to
7298         /cygdrive paths on cygwin. Always lowercase drive-letters on
7299         native windows.
7300         (cygwin_readlink): Don't try to find canonical filename unless
7301         file exists.
7302
7303 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
7304
7305         * ChangeLog: Log GTK merge.
7306
7307         * dumper.c:
7308         * select-x.c:
7309         * specifier.c:
7310         * symeval.h:
7311         Revert gratuitous whitespace changes from GTK merge.
7312
7313         * emacs.c: Document end of complex #ifdef @ l. 1495.
7314
7315
7316 2001-03-12  Andy Piper  <andy@xemacs.org>
7317
7318         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
7319         have to do likewise.
7320
7321 2001-03-12  Andy Piper  <andy@xemacs.org>
7322
7323         * sysdep.c: we only support mingw now.
7324
7325 2001-03-09  Andy Piper  <andy@xemacs.org>
7326
7327         * unexcw.c (copy_executable_and_dump_data_section): making approx
7328         overrun a warning only.
7329
7330 2001-03-10  William M. Perry  <wmperry@aventail.com>
7331
7332         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
7333         satisfy Stephen's identical-after-cpp plea.
7334
7335 2001-03-02  Ben Wing  <ben@xemacs.org>
7336
7337         * cmds.c:
7338         * cmds.c (Fforward_char):
7339         * syntax.c:
7340         * window.c:
7341
7342         Augment documentation of the most common motion commands to make
7343         note of the shifted-motion support.
7344         
7345 2001-03-02  Ben Wing  <ben@xemacs.org>
7346
7347         * nt.c (mswindows_fstat):
7348         * nt.c (mswindows_stat):
7349         * search.c (boyer_moore):
7350         Fix compile warnings under Windows.
7351         
7352         * sysdep.c (sys_readdir):
7353         Fix buggy filename-conversion code under Mule.
7354
7355 2001-03-09  William M. Perry  <wmperry@aventail.com>
7356
7357         * Makefile.in.in:
7358         * config.h.in:
7359         * console.c:
7360         * console.h:
7361         * device.c:
7362         * device.h:
7363         * dragdrop.c:
7364         * emacs.c:
7365         * event-stream.c:
7366         * events.c:
7367         * events.h:
7368         * faces.c:
7369         * frame.h:
7370         * general-slots.h:
7371         * glyphs.c:
7372         * gutter.c:
7373         * inline.c:
7374         * lisp.h:
7375         * lrecord.h:
7376         * make-src-depend:
7377         * redisplay-output.c:
7378         * redisplay.c:
7379         * symsinit.h:
7380         * sysfile.h:
7381         * toolbar.c:
7382         * window.c:
7383         The Great GTK Merge.
7384
7385         * ChangeLog.GTK:
7386         * console-gtk.c:
7387         * console-gtk.h:
7388         * device-gtk.c:
7389         * emacs-marshals.c:
7390         * emacs-widget-accessors.c:
7391         * event-gtk.c:
7392         * frame-gtk.c:
7393         * gccache-gtk.c:
7394         * gccache-gtk.h:
7395         * glade.c:
7396         * glyphs-gtk.c:
7397         * glyphs-gtk.h:
7398         * gtk-glue.c:
7399         * gtk-xemacs.c:
7400         * gtk-xemacs.h:
7401         * gui-gtk.c:
7402         * gui-gtk.h:
7403         * menubar-gtk.c:
7404         * native-gtk-toolbar.c:
7405         * objects-gtk.c:
7406         * objects-gtk.h:
7407         * redisplay-gtk.c:
7408         * scrollbar-gtk.c:
7409         * scrollbar-gtk.h:
7410         * select-gtk.c:
7411         * toolbar-gtk.c:
7412         * ui-byhand.c:
7413         * ui-gtk.c:
7414         * ui-gtk.h:
7415         The Great GTK Merge: new files.
7416
7417 2001-02-26  Ben Wing  <ben@xemacs.org>
7418
7419         Reapplied Lstream change.
7420
7421 2001-02-26  Ben Wing  <ben@xemacs.org>
7422
7423         Undid the last change, since it is more controversial than I
7424         thought.  It should be back in at some point soon.
7425         
7426 2001-02-25  Ben Wing  <ben@xemacs.org>
7427
7428         * buffer.c:
7429         * callproc.c (Fold_call_process_internal):
7430         * event-msw.c (ntpipe_slurp_reader):
7431         * event-msw.c (ntpipe_shove_writer):
7432         * event-msw.c (winsock_reader):
7433         * event-msw.c (winsock_writer):
7434         * file-coding.c:
7435         * file-coding.c (detect_eol_type):
7436         * file-coding.c (detect_coding_type):
7437         * file-coding.c (determine_real_coding_system):
7438         * file-coding.c (Fdetect_coding_region):
7439         * file-coding.c (decoding_reader):
7440         * file-coding.c (decoding_writer):
7441         * file-coding.c (mule_decode):
7442         * file-coding.c (Fdecode_coding_region):
7443         * file-coding.c (encoding_reader):
7444         * file-coding.c (encoding_writer):
7445         * file-coding.c (mule_encode):
7446         * file-coding.c (Fencode_coding_region):
7447         * file-coding.c (detect_coding_sjis):
7448         * file-coding.c (decode_coding_sjis):
7449         * file-coding.c (encode_coding_sjis):
7450         * file-coding.c (detect_coding_big5):
7451         * file-coding.c (decode_coding_big5):
7452         * file-coding.c (encode_coding_big5):
7453         * file-coding.c (detect_coding_ucs4):
7454         * file-coding.c (decode_coding_ucs4):
7455         * file-coding.c (encode_coding_ucs4):
7456         * file-coding.c (detect_coding_utf8):
7457         * file-coding.c (decode_coding_utf8):
7458         * file-coding.c (encode_coding_utf8):
7459         * file-coding.c (detect_coding_iso2022):
7460         * file-coding.c (decode_coding_iso2022):
7461         * file-coding.c (encode_coding_iso2022):
7462         * file-coding.c (decode_coding_no_conversion):
7463         * file-coding.c (encode_coding_no_conversion):
7464         * glyphs-x.c (write_lisp_string_to_temp_file):
7465         * gpmevent.c (tty_get_foreign_selection):
7466         * lisp.h:
7467         * lstream.c:
7468         * lstream.c (Lstream_flush_out):
7469         * lstream.c (Lstream_adding):
7470         * lstream.c (Lstream_write_1):
7471         * lstream.c (Lstream_write):
7472         * lstream.c (Lstream_raw_read):
7473         * lstream.c (Lstream_read_more):
7474         * lstream.c (Lstream_read):
7475         * lstream.c (Lstream_unread):
7476         * lstream.c (Lstream_fputc):
7477         * lstream.c (stdio_reader):
7478         * lstream.c (stdio_writer):
7479         * lstream.c (filedesc_reader):
7480         * lstream.c (filedesc_writer):
7481         * lstream.c (lisp_string_reader):
7482         * lstream.c (struct fixed_buffer_stream):
7483         * lstream.c (make_fixed_buffer_input_stream):
7484         * lstream.c (make_fixed_buffer_output_stream):
7485         * lstream.c (fixed_buffer_reader):
7486         * lstream.c (fixed_buffer_writer):
7487         * lstream.c (struct resizing_buffer_stream):
7488         * lstream.c (resizing_buffer_writer):
7489         * lstream.c (dynarr_writer):
7490         * lstream.c (lisp_buffer_reader):
7491         * lstream.c (lisp_buffer_writer):
7492         * lstream.h:
7493         * lstream.h (lstream_implementation):
7494         * lstream.h (struct lstream):
7495         * md5.c (Fmd5):
7496         * process-nt.c (nt_send_process):
7497         * process-unix.c (unix_send_process):
7498         
7499         Correct Lstream lossage due to mixing of signed and unsigned
7500         quantities.  All Lstream uses of size_t and ssize_t are now a
7501         single signed data type Lstream_data_count.  This fixes problems
7502         under Windows with sending large quantities of data to a process,
7503         and may well fix other subtle bugs.
7504
7505 2001-02-23  Martin Buchholz <martin@xemacs.org>
7506
7507         * XEmacs 21.2.45 "Thelxepeia" is released.
7508
7509 2001-02-21  Martin Buchholz  <martin@xemacs.org>
7510
7511         * lisp-union.h (XSETINT): 
7512         (XSETCHAR):
7513         (XSETOBJ): 
7514         Reverse previous change of 2001-02-06.
7515
7516 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
7517
7518         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
7519         buffers.
7520         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7521         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
7522         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
7523         * regex.c (POS_AS_IN_BUFFER): removed
7524         * regex.c (re_search_2):
7525         * regex.c (re_match_2):
7526         Don't use an offset of 1 when calculating buffer positions, since
7527         `BI_BUF_BEGV' does it already.
7528
7529 2001-02-18  Wim Dumon  <wim@easics.be>
7530
7531         * insdel.c (prepare_to_modify_buffer): Also check for
7532         supersession when clash-detection is enabled. 
7533
7534 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
7535
7536         * regex.c (re_match_2_internal):
7537         Convert temp characters from 'const unsigned char' to 're_char'.
7538         Fix crashing bug with extended characters under mule.
7539         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
7540         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
7541         font-lock, pdump, and new syntax-table code.
7542         * syntax.c (find_start_of_comment):
7543         (find_end_of_comment):
7544         (forward-comment):
7545         Fix crashing bugs involving moving beyond end of buffer.
7546         * syntax.c (find_start_of_comment):
7547         Fixed logic to allow proper detection of cases where the same
7548         character is used to end both a two-char comment start and a
7549         two-char comment end sequence. Fixes `(forward-comment -1)'.
7550         * syntax.c (find_start_of_comment):
7551         Return position just past last comment-end character for all cases
7552         (previously was only done for two-char comment-end sequences).
7553         * syntax.c (forward-comment):
7554         Take value returned from `find_end_of_comment', rather than
7555         incrementing it.
7556         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
7557         Properly deal with BUFFERP (syntax_cache.object)
7558
7559 2001-02-17  Martin Buchholz  <martin@xemacs.org>
7560
7561         * alloc.c (Fgarbage_collect): 
7562         * alloc.c (make_bit_vector_from_byte_vector):
7563         -Wsign-compare-correctness.
7564
7565 2001-02-16  Martin Buchholz  <martin@xemacs.org>
7566
7567         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
7568         (XSETCHAR): Likewise.
7569         (XSETOBJ): Likewise.
7570
7571 2001-02-15  Martin Buchholz  <martin@xemacs.org>
7572
7573         * mule-canna.c (canna-func-delete_previous): 
7574         Rename to canna-func-delete-previous.
7575
7576 2001-02-14  Martin Buchholz  <martin@xemacs.org>
7577
7578         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
7579
7580 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
7581
7582         * font-lock.c (find_context): Fix C++ compile errors introduced by
7583         recent patch
7584
7585 2001-02-13  Martin Buchholz  <martin@xemacs.org>
7586
7587         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
7588         pragma, but earlier ones barf on the same pragma.
7589
7590 2001-02-06  Mike Sperber <mike@xemacs.org>
7591
7592         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
7593         `configure-mule-lisp-directory'.
7594
7595 2001-02-12  Martin Buchholz  <martin@xemacs.org>
7596
7597         Make sure dump-id.c is compiled in the same way as other .c's.
7598         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
7599         * dump-id.h: Remove.
7600         * emacs.c: Move dump-id.h into dumper.h.
7601         * dumper.h: Move dump-id.h into dumper.h.
7602         * Makefile.in.in:
7603         Use standard .c.o rule for building dump-id.o.
7604         Remove preprocessor flags from link command.
7605         Add dump-id.o to ${otherobjs} if PDUMP.
7606
7607 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
7608
7609         Port FSF 20.7 syntax table improvements.
7610         * syntax.c.
7611         * syntax.h.
7612
7613         Fixups for new syntax table stuff.
7614         * dired.c: Include syntax.c.
7615         (Fdirectory_files): Initialize regex_match_object and
7616         regex_emacs_buffer.
7617         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
7618         and Fget_char_property.
7619
7620         Use ported FSF 20.7 syntax table improvements.
7621         * font-lock.c.
7622         * regex.c.
7623         * search.c.
7624         
7625 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7626
7627         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
7628         Unixware's enum boolean from sys/types.h.
7629
7630 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7631
7632         Fix support for building with latest Purify.
7633         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
7634         (PURIFY_FLAGS): Likewise.
7635
7636 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7637
7638         * fileio.c (lisp_string_set_file_times): New.
7639         * fileio.c (Fcopy_file): Use it.
7640         Fixes bug:
7641         (copy-file filename non-ascii-filename t t)
7642         ==> No such file or directory, non-ascii-filename
7643
7644 2001-02-10  Martin Buchholz  <martin@xemacs.org>
7645
7646         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
7647         USHRT_MAX seems clearer than ~0 anyways.
7648
7649 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7650
7651         dumper improvements.  Inspired by Olivier.
7652         * dumper.c (pdump_max_align): New.
7653         * dumper.c (pdump_add_entry): Use pdump_max_align.
7654         * dumper.c (pdump_get_entry_list): Likewise.
7655         * dumper.c (pdump_scan_by_alignment): Likewise.
7656         Don't iterate through unnecessary alignments.
7657         * dumper.c (pdump_file_get): No need to align result of malloc().
7658         * dumper.c (pdump_mallocadr): Remove.  
7659         The result of malloc() is guaranteed to be maximally aligned.
7660         * dumper.c: s/elmt/elt/g;
7661         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
7662         * dumper.c (pdump_alert_undump_object): Likewise.
7663         * dumper.c (pdump_align_table): 
7664         Don't support alignments > 64.
7665         Store ALIGNOF's, not shift counts, in table.
7666
7667 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7668
7669         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
7670         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
7671         * systime.h: Use HAVE_UTIME.
7672         * sysdep.c (struct utimbuf): Remove.
7673         * sysdep.c (set_file_times): Prefer utime() to utimes().
7674         * config.h.in (HAVE_UTIME): New.
7675         * config.h.in (HAVE_UTIME_H): Remove.
7676         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
7677
7678 2001-02-09  Martin Buchholz  <martin@xemacs.org>
7679
7680         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
7681
7682 2001-02-08  Martin Buchholz  <martin@xemacs.org>
7683
7684         * s/irix6-0.h: Use the standard system memmove, not bcopy.
7685
7686 2001-02-08  Martin Buchholz <martin@xemacs.org>
7687
7688         * XEmacs 21.2.44 "Thalia" is released.
7689
7690 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7691
7692         Fixes crashes in kill-emacs on some systems.
7693         * process-unix.c (unix_kill_child_process):
7694         It's OK for kill() to fail with ESRCH.
7695
7696 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7697
7698         Contortions to make .gdbinit tricks work on most systems.
7699         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
7700         * alloc.c (dbg_valmask): Make non-const.
7701         * alloc.c (dbg_typemask): Make non-const.
7702         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
7703         * alloc.c (dbg_valbits): Make non-const.
7704         * alloc.c (dbg_gctypebits): Make non-const.
7705         * .gdbinit (decode_object): Make it work with AIX cc.
7706
7707 2001-02-06  Martin Buchholz  <martin@xemacs.org>
7708
7709         * elhash.c (make_general_lisp_hash_table):
7710         Use simpler and more efficient calloc to clear entries.
7711
7712 2001-02-07  Martin Buchholz  <martin@xemacs.org>
7713
7714         * window.c (window_scroll): Work around an AIX C compiler bug.
7715         Fixes 'scroll-up' does nothing problem with xlC.
7716
7717 2001-02-05  Martin Buchholz  <martin@xemacs.org>
7718
7719         * .gdbinit: Remove obsolete comment.
7720
7721 2001-01-31  Mike Alexander  <mta@arbortext.com>
7722
7723         * select.c (Fown_selection_internal): Set owned_p for device
7724         method correctly.
7725
7726 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7727
7728         Port to g++ 2.97.
7729         "not" cannot be used as a macro name as it is an operator in C++
7730         * config.h.in: Stop #defining `not'.
7731         * chartab.c (check_category_char): not ==> not_p
7732         * chartab.h: Likewise.
7733         * regex.c (re_match_2_internal): Likewise.
7734
7735 2001-02-02  Martin Buchholz  <martin@xemacs.org>
7736
7737         * lisp-disunion.h: Fix up comments.
7738
7739 2001-01-31  Martin Buchholz  <martin@xemacs.org>
7740
7741         * keymap.c (define_key_check_and_coerce_keysym):
7742         (syms_of_keymap):
7743         Support mouse-6 and mouse-7 bindings in the obvious way.
7744
7745 2001-02-01  Martin Buchholz  <martin@xemacs.org>
7746
7747         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
7748
7749 2001-01-30  Martin Buchholz  <martin@xemacs.org>
7750
7751         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
7752         Previous patch missed DEFVAR_INT_MAGIC.
7753         Make sure future DEFVAR_foo use correct types.
7754         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
7755         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
7756         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
7757         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
7758         * (DEFVAR_INT): Likewise.
7759         * redisplay.c (vertical_clip): Should be of type Fixnum.
7760         * redisplay.c (horizontal_clip): Likewise.
7761         * lisp.h (dump_add_opaque_int): New.
7762         (dump_add_opaque_fixnum): New.
7763
7764 2001-01-29  Andy Piper  <andy@xemacs.org>
7765
7766         * glyphs-widget.c (check_valid_int_or_function): allow symbols
7767         since they can be eval'ed
7768
7769 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7770
7771         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
7772         Oops, XEmacs redefines `class'.  Use `typename' instead.
7773
7774 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7775
7776         * dumper.c: Fix C++ compile errors.
7777
7778 2001-01-29  Martin Buchholz  <martin@xemacs.org>
7779
7780         * tparam.c: Use correct prototypes.
7781
7782 2001-01-28  Martin Buchholz  <martin@xemacs.org>
7783
7784         * sysproc.h: #include util.h for NetBSD's openpty.
7785
7786 2001-01-27  Martin Buchholz  <martin@xemacs.org>
7787
7788         More 64-bit correctness.
7789         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
7790         Use a typedef `fixnum' for the type used for DEFVAR_INT.
7791         Fix up comments.
7792         This finally finishes the 64-bit SGI port.
7793         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
7794         * symbols.c: Fix up comments and type casts.
7795         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
7796         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
7797         * symeval.h (Fixnum): New type.
7798         * symeval.h (symbol_value_type): Fix up comment.
7799
7800         * commands.h:
7801         * nt.c:
7802         * emacs.c:
7803         * data.c:
7804         * redisplay.c:
7805         * abbrev.c:
7806         * dired-msw.c:
7807         * event-Xt.c:
7808         * eldap.c:
7809         * window.c:
7810         * sound.c:
7811         * event-stream.c:
7812         * eval.c:
7813         * buffer.c:
7814         * mule-canna.c: A million DEFVAR_INTs here...
7815         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
7816         * extents.c:
7817         * cmdloop.c:
7818         * lisp.h:
7819         * select-x.c:
7820         * console-x.h:
7821         * event-msw.c:
7822         * mule-wnnfns.c:
7823         * hpplay.c:
7824         * ralloc.c:
7825         * alloc.c:
7826         * keymap.c:
7827         * profile.c:
7828         s/int/Fixnum/g in DEFVAR_INT declarations.
7829
7830 2001-01-26  Martin Buchholz  <martin@xemacs.org>
7831
7832         Port pdump to SGI alignment-sensitive environment.
7833         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
7834         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
7835         properly aligned.
7836         Define and use aligned reading and writing macros.
7837         Use buffered stdio instead of posix i/o for faster dumping.
7838         Eliminate kludgy 256 byte space for header.
7839         Read and write from dump file using structs for alignment safety.
7840         * dumper.c (pdump_align_stream): New.
7841         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
7842         * dumper.c (PDUMP_READ_ALIGNED): New.
7843         * dumper.c (PDUMP_WRITE_ALIGNED): New.
7844         * dumper.c (pdump_static_Lisp_Object): New struct.
7845         * dumper.c (pdump_static_pointer): New struct.
7846         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
7847         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
7848         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
7849         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
7850
7851         * dumper.c (pdump_backtrace):
7852         * dumper.c (pdump_get_indirect_count):
7853         * dumper.c (pdump_register_object):
7854         * dumper.c (pdump_register_struct):
7855         * dumper.c (pdump_reloc_one):
7856         * dumper.c (pdump_scan_by_alignment):
7857         * dumper.c (pdump_dump_from_root_struct_ptrs):
7858         * dumper.c (pdump_dump_opaques):
7859         * dumper.c (pdump_dump_rtables):
7860         * dumper.c (pdump_dump_from_root_objects):
7861         * dumper.c (pdump):
7862         * dumper.c (pdump_load_finish):
7863         Use aligned reading and writing.
7864
7865         * dumper.c (pdump_free): Make static.
7866         * dumper.c (pdump_hFile): Likewise.
7867         * dumper.c (pdump_hMap): Likewise.
7868
7869 2001-01-26  Martin Buchholz <martin@xemacs.org>
7870
7871         * XEmacs 21.2.43 "Terspichore" is released.
7872
7873 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7874
7875         Type fiddling for window_config.saved_windows_count
7876         * window.c (struct window_config): 
7877         Make saved_windows_count member unsigned.
7878         * window.c (sizeof_window_config_for_n_windows): 
7879         Make parameter unsigned.
7880         * window.c (mark_window_config):
7881         * window.c (window_config_equal):
7882         * window.c (free_window_configuration):
7883         * window.c (Fset_window_configuration):
7884         * window.c (count_windows):
7885         * window.c (Fcurrent_window_configuration):
7886         * window.c (reinit_vars_of_window):
7887         Update all callers and users.
7888
7889 2001-01-25  Martin Buchholz  <martin@xemacs.org>
7890
7891         Alignment correctness for flexible arrays.
7892         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
7893         Make alignment-correct. Add interesting comments.
7894         * alloc.c (size_vector):
7895         * alloc.c (make_vector_internal):
7896         * alloc.c (make_bit_vector_internal):
7897         * alloc.c (sweep_bit_vectors_1):
7898         * fns.c (size_bit_vector):
7899         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
7900         * window.c (sizeof_window_config_for_n_windows): 
7901         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
7902
7903 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7904
7905         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
7906
7907 2001-01-23  Andy Piper  <andy@xemacs.org>
7908
7909         * select.c (Fown_selection_internal): pass owned_p
7910
7911         * select-msw.c (mswindows_own_selection): New Signature.
7912
7913         * console.h (struct console_methods): add owned_p to
7914         _own_selection.
7915
7916         * select-x.c (x_own_selection): pass owned_p
7917         (hack_motif_clipboard_selection): use owned_p
7918         (vars_of_select_x): new variable -
7919         x_selection_strict_motif_ownership.
7920
7921 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7922
7923         * specifier.h (specifier_data_offset): Remove pointless parens.
7924         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
7925
7926 2001-01-24  Martin Buchholz  <martin@xemacs.org>
7927
7928         Make Lisp_Object sizeof methods be alignment-correct.
7929         pdump must restore objects to the same alignment as the C compiler
7930         assumes.  It really matters on SGIs.
7931         * lstream.c (aligned_sizeof_lstream): New.
7932         (sizeof_lstream): Use aligned_sizeof_lstream.
7933         (Lstream_new): Likewise.
7934         * opaque.c (aligned_sizeof_opaque): New.
7935         (sizeof_opaque): Use aligned_sizeof_opaque.
7936         (make_opaque): Likewise.
7937         * specifier.c (aligned_sizeof_specifier): New.
7938         (sizeof_specifier): Use aligned_sizeof_specifier.
7939         (make_specifier_internal): Likewise.
7940
7941 2001-01-23  Martin Buchholz  <martin@xemacs.org>
7942
7943         * lstream.h (struct lstream): Use max_align_t for trailing data.
7944         * specifier.h (struct Lisp_Specifier): Likewise.
7945
7946 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7947
7948         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
7949         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
7950         (CCL_SUSPEND): Likewise.
7951         (CCL_INVALID_CMD): Likewise.
7952         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
7953         (ccl_driver): Likewise.
7954         (CCL_WRITE_CHAR): Macro hygiene.
7955         (CCL_WRITE_STRING): Macro hygiene.
7956
7957 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7958
7959         Port "portable" dumper to SunOS 4 and HP-UX.
7960         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
7961         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
7962         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
7963
7964 2001-01-22  Martin Buchholz  <martin@xemacs.org>
7965
7966         * lisp.h (ALIGNOF): A better definition for C++.
7967
7968 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7969
7970         Macro hygiene.
7971         Fix printf warnings: int format, long int arg.
7972         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
7973         (PUSH_FAILURE_POINT): Use correct printf formats.
7974         (POP_FAILURE_POINT): Use correct printf formats.  
7975         Use do {...} while (0)
7976
7977 2001-01-20  Martin Buchholz <martin@xemacs.org>
7978
7979         * XEmacs 21.2.42 "Poseidon" is released.
7980
7981 2001-01-20  Martin Buchholz  <martin@xemacs.org>
7982
7983         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
7984
7985 2001-01-19  Martin Buchholz  <martin@xemacs.org>
7986
7987         De-kludgify FIXED_TYPE free list frobbing.
7988         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
7989         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
7990         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
7991         * alloc.c (Lisp_Free): New pseudo lisp object definition.
7992         * alloc.c (LRECORD_FREE_P): New.
7993         * alloc.c (MARK_LRECORD_AS_FREE): New.
7994         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
7995         * alloc.c (STRUCT_FREE_P): Deleted.
7996         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
7997         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
7998         * alloc.c (STRING_CHARS_FREE_P): New.
7999         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
8000         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
8001         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
8002         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
8003         * alloc.c (resize_string): Use new definitions.
8004         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
8005         * alloc.c (verify_string_chars_integrity): Use new definitions.
8006         * alloc.c (compact_string_chars): Use new definitions.
8007         * alloc.c: Update monster comments.
8008         * lrecord.h (lrecord_type): Add some new lrecord types for
8009         alloc.c's use.
8010
8011 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8012
8013         Improve alignment hackery.
8014         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
8015         (max_align_t): Moved from opaque.h - general purpose.
8016         (ALIGN_PTR): Use size_t, not long.
8017         * opaque.h (max_align_t): Move to lisp.h.
8018
8019 2001-01-18  Norbert Koch  <nk@LF.net>
8020
8021         * gui.h: Fix and add prototypes to fix build problems.
8022
8023 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8024
8025         temacs is going away, so `dump-temacs' is now a bad name.
8026         * .dbxrc (dump-temacs): Rename to `dmp'.
8027         * .gdbinit (dump-temacs): Rename to `dmp'.
8028
8029 2001-01-17  Andy Piper  <andy@xemacs.org>
8030
8031         * glyphs.c (print_image_instance): comment to make martin happy.
8032
8033         * glyphs-x.c (x_redisplay_widget): update faces after a frame
8034         change.
8035
8036         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
8037         activation.
8038         (mswindows_tab_control_redisplay): warning suppression.
8039
8040         * glyphs-widget.c (widget_update): re-write to cope with updated
8041         items.
8042         (widget_instantiate): use new gui_item functions.
8043         (tab_control_update): deleted.
8044         (progress_gauge_update): deleted.
8045         (image_instantiator_progress_guage): take out update reference.
8046         (image_instantiator_tree_view): ditto.
8047         (image_instantiator_tab_control): ditto.
8048
8049         * gui.c (widget_gui_parse_item_keywords): new function. Do things
8050         Right the new way.
8051         (gui_item_add_keyval_pair): re-write to cope with descriptors and
8052         return whether anything was changed.
8053         (update_gui_item_keywords): as it sounds.
8054
8055         * gui.h: declare widget_gui_parse_item_keywords.
8056
8057         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
8058         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
8059
8060 2001-01-17  Martin Buchholz <martin@xemacs.org>
8061
8062         * XEmacs 21.2.41 "Polyhymnia" is released.
8063
8064 2001-01-16  Didier Verna  <didier@xemacs.org>
8065
8066         * glyphs.c (image_instantiate): don't use fallbacks when
8067         instantiating a face's background pixmap by inheritance.
8068
8069 2001-01-14  Mike Sperber <mike@xemacs.org>
8070
8071         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
8072         Conditionalize accordingly.
8073
8074 2001-01-16  Martin Buchholz  <martin@xemacs.org>
8075
8076         * dumper.c (pdump_file_get): Fix a compiler warning.
8077
8078 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8079
8080         Make Purify happy when pdumping.
8081         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
8082         iniitalizing all bits of new lisp object memory.
8083         * symbols.c (Fmake_local_variable): Likewise.
8084         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
8085         * symbols.c (Fdefvaralias): Likewise.
8086         * mule-charset.c (vars_of_mule_charset): Likewise.
8087
8088 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8089         Add the `-nd' flag when running pre-dump operations under the debugger.
8090         * .dbxrc (run-temacs): Add `-nd'.
8091         * .dbxrc (update-elc): Likewise.
8092         * .dbxrc (dump-temacs): Likewise.
8093         * .gdbinit (run-temacs): Likewise.
8094         * .gdbinit (check-temacs): Likewise.
8095         * .gdbinit (update-elc): Likewise.
8096         * .gdbinit (dump-temacs): Likewise.
8097
8098 2001-01-14  Martin Buchholz  <martin@xemacs.org>
8099
8100         Allow building 64-bit executables on AIX with GNU malloc, e.g.
8101         export OBJECT_MODE=64
8102         configure --pdump --use-union-type=no
8103         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
8104         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
8105
8106         * miscplay.c (sndcnv8U_2mono):
8107         Avoid two uses of `++' in the same expression.
8108         Suppresses a GCC warning.
8109
8110 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8111
8112         Make sure future compilers don't miscompile alloc.c.
8113         * alloc.c:
8114         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
8115         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
8116
8117 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8118
8119         * dumper.c: A little post-pdump-rename comment fixup.
8120
8121 2001-01-09  Jerry James  <james@eecs.ku.edu>
8122
8123         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
8124
8125 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8126
8127         * *.[ch]: Globally rename symbols using the following `pdump-rename'
8128         script:
8129         #!/bin/sh
8130         replace_symbol () {
8131           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
8132         }
8133
8134         replace_symbol pdump_wire_lists pdump_weak_object_chains
8135         replace_symbol pdump_wire_list dump_add_weak_object_chain
8136
8137         replace_symbol pdump_wires pdump_root_objects
8138         replace_symbol pdump_wire dump_add_root_object
8139
8140         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
8141         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
8142
8143         replace_symbol dumpstructinfos pdump_root_struct_ptrs
8144         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
8145         replace_symbol dumpstructinfo pdump_root_struct_ptr
8146         replace_symbol dumpstruct dump_add_root_struct_ptr
8147
8148         replace_symbol dumpopaque dump_add_opaque
8149         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
8150         replace_symbol dumpopaqueinfos pdump_opaques
8151         replace_symbol dumpopaqueinfo pdump_opaque
8152
8153         replace_symbol nb_structdump nb_root_struct_ptrs
8154         replace_symbol nb_opaquedump nb_opaques
8155
8156         replace_symbol align_table pdump_align_table
8157         replace_symbol dump_header pdump_header
8158
8159         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
8160         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
8161
8162
8163 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8164
8165         * s/aix4.h: Keep the C for AIX compiler from overaggressively
8166         optimizing bytecount_to_charcount().
8167
8168 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8169
8170         * config.h.in:
8171         (HAVE_DLFCN_H): Removed.
8172         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
8173
8174 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8175
8176         Portable dumper maintainability improvements.
8177         * alloc.c (staticpro):
8178         * alloc.c (staticpro_nodump):
8179         * alloc.c (garbage_collect_1):
8180         * alloc.c (reinit_alloc_once_early):
8181         * alloc.c (init_alloc_once_early):
8182         * alloc.c: Move dumper functions to alloc.c.
8183         * dumper.c (pdump_backtrace):
8184         * dumper.c (pdump_dump_structs):
8185         * dumper.c (pdump_dump_opaques):
8186         * dumper.c (pdump_dump_rtables):
8187         * dumper.c (pdump_dump_wired):
8188         * dumper.c (pdump):
8189         * dumper.c (pdump_load_check):
8190         * dumper.c (pdump_load_finish):
8191         * dumper.c (pdump_file_unmap):
8192         * dumper.c (pdump_file_get):
8193         * dumper.c (pdump_resource_free):
8194         * dumper.c (pdump_resource_get):
8195         * dumper.c (pdump_file_free):
8196         * dumper.c (pdump_file_try):
8197         * dumper.c (pdump_load):
8198         Remove fixed size limits on staticpro(), staticpro_nodump(),
8199         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
8200         Remove custom code for dumping lrecord_implementations_table - use
8201         dumpopaque instead.
8202         Remove (most of the) custom code for dumping staticpros - dump it
8203         like any other dynarr.
8204
8205         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
8206         * dumper.c: Moved functions from alloc.c.
8207         * alloc.c (dumpstruct): Moved to dumper.c.
8208         * alloc.c (dumpopaque): Likewise.
8209         * alloc.c (pdump_wire): Likewise.
8210         * alloc.c (pdump_wire_list): Likewise.
8211
8212         * lisp.h (Dynarr_sizeof): New.
8213         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
8214         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
8215         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
8216
8217         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
8218         * lisp.h (dumpopaque): ditto.
8219         * lisp.h (pdump_wire): ditto.
8220         * lisp.h (pdump_wire_list): ditto.
8221
8222 2001-01-09  Martin Buchholz  <martin@xemacs.org>
8223
8224         * make-src-depend (PrintPatternDeps):
8225         Use `sort' to make output independent of perl version.
8226
8227 2001-01-08  Martin Buchholz  <martin@xemacs.org>
8228
8229         Port to Netbsd 1.5.
8230         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
8231         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
8232
8233 2001-01-03  Didier Verna  <didier@xemacs.org>
8234
8235         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
8236         that `focus_frame' is alive before thinking of calling
8237         `redisplay_redraw_cursor' on it.
8238
8239 2001-01-08  Martin Buchholz <martin@xemacs.org>
8240
8241         * XEmacs 21.2.40 is released.
8242
8243 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
8244
8245         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
8246
8247 2001-01-06  Martin Buchholz  <martin@xemacs.org>
8248
8249         * alloc.c (dbg_valmask): Make const.
8250         * alloc.c (dbg_typemask): Make const.
8251         * alloc.c (dbg_USE_UNION_TYPE): Make const.
8252         * alloc.c (dbg_valbits): Make const.
8253         * alloc.c (dbg_gctypebits): Make const.
8254
8255 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
8256
8257         * redisplay-x.c (x_bevel_area):
8258         redisplay.h (struct rune):
8259         Typo fixes in comments.
8260
8261 2001-01-05  Andy Piper  <andy@xemacs.org>
8262
8263         * glyphs-x.c (x_redisplay_widget): use size changed for offset
8264         adjustment.
8265
8266         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
8267
8268 2001-01-05  Martin Buchholz  <martin@xemacs.org>
8269
8270         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
8271
8272         * mule-ccl.c (stack_idx_of_map_multiple):
8273         Non const global data must not be initialized!
8274         Found by MIYASHITA Hisashi.
8275
8276 2001-01-02  Andy Piper  <andy@xemacs.org>
8277
8278         * frame.c (change_frame_size): make sure frame size is always
8279         marked as changed.
8280
8281         * glyphs.c (image_instance_layout): minor code reuse.
8282
8283         * window.c (Fcurrent_window_configuration): revert previous
8284         change.
8285
8286 2001-01-02  Martin Buchholz  <martin@xemacs.org>
8287
8288         * glyphs.h:
8289         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
8290
8291 2000-12-31  Andy Piper  <andy@xemacs.org>
8292
8293         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
8294         when widget gets unmapped.
8295
8296         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
8297         function. Make sure widgets losing focus don't just drop it.
8298         (handle_focus_event_1): record the widget with focus.
8299
8300 2000-12-31  Andy Piper  <andy@xemacs.org>
8301
8302         * window.c (allocate_window): use
8303         make_image_instance_cache_hash_table.
8304         (make_dummy_parent): ditto.
8305         (Fset_window_configuration): ditto.
8306
8307         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
8308
8309         * glyphs.c (process_image_string_instantiator): use
8310         INSTANTIATOR_TYPE.
8311         (get_image_instantiator_governing_domain): ditto.
8312         (normalize_image_instantiator): ditto.
8313         (instantiate_image_instantiator): ditto.
8314         (make_image_instance_1): ditto.
8315         (image_instantiate): ditto. Key on glyph *and* instantiator type.
8316         (instantiator_eq_equal): new function for use with instance hash
8317         tables.
8318         (instantiator_eq_hash): ditto.
8319         (make_image_instance_cache_hash_table): create a suitable hash
8320         table for storing image instances.
8321
8322         * elhash.h (hash_table_weakness): new internal weakness type
8323         HASH_TABLE_KEY_CAR_VALUE_WEAK.
8324         declare new functions.
8325
8326         * elhash.c (finish_marking_weak_hash_tables): introduce yet
8327         another weakness type for glyphs.
8328         (make_standard_lisp_hash_table): new function split out from
8329         make_general_lisp_hash_table.
8330         (make_lisp_hash_table): call make_standard_lisp_hash_table.
8331         (hash_table_instantiate): ditto.
8332         (Fmake_hash_table): ditto.
8333
8334 2000-12-31  Martin Buchholz <martin@xemacs.org>
8335
8336         * XEmacs 21.2.39 is released.
8337
8338 2000-12-29  Andy Piper  <andy@xemacs.org>
8339
8340         * menubar.c (menubar_visible_p_changed): signal the frame changed.
8341
8342         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
8343         the frame has changed so that we pick up geometry changes such as
8344         menubar visibility.
8345
8346 2000-12-28  Andy Piper  <andy@xemacs.org>
8347
8348         * lastfile.c (my_ebss): make a char array so we can pad the
8349         bss. Fixes cygwin unexec.
8350
8351         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
8352
8353 2000-12-26  Andy Piper  <andy@xemacs.org>
8354
8355         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
8356         comments and try and be more precise about a non-/SIGIO world.
8357         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
8358         SIGIO.
8359
8360         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
8361         we don't normalize to zero width or height.
8362
8363 2000-12-24  Andy Piper  <andy@xemacs.org>
8364
8365         * Makefile.in.in (ldflags): add -mwindows when appropriate.
8366
8367 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
8368
8369         * s/sco5.h: SCO 5 has pty support.
8370
8371 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
8372
8373         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
8374         input-method-xlib.c contains whole contents of input-method-xfs.c,
8375         so we can use input-method-xlib.c's code for USE_XFONTSET
8376         using #ifdefs.
8377         * input-method-xfs.c: removed.
8378
8379 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
8380
8381         * file-coding.h (enum coding_category_type): reorder enumerators to
8382         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
8383         (now one greater than largest real coding_category_type enumerator).
8384         * file-coding.c (coding_category_symbol, coding_category_by_priority,
8385         coding_category_system, fcd_descriptihon_1, decode_coding_category,
8386         Fcoding_category_list, Fset_coding_priority_list,
8387         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
8388         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
8389
8390 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8391
8392         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
8393         * redisplay-output.c (redisplay_output_window): Clear top of window
8394         when face is changed.
8395         * redisplay-x.c (x_redraw_exposed_window): Call
8396         redisplay_clear_top_of_window.
8397         * redisplay.h: Publish redisplay_clear_top_of_window.
8398
8399 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
8400
8401         * buffer.c (Fkill_buffer): Map over all devices.
8402         * window.c (window_loop): Remove UNSHOW_BUFFER code.
8403         (list_windows): New function.
8404         (list_all_windows): Ditto.
8405         (Freplace_buffer_in_windows): Use them.
8406
8407 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
8408
8409         * database.c (berkdb_subtype): Recognize new subtype `queue'.
8410         (Fopen_database): Use `db_create' instead of `db_open'.
8411         (syms_of_database): Initialize Qqueue.
8412
8413 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8414
8415         * buffer.c (common_init_complex_vars_of_buffer): Initialize
8416         buffer_local_face_property.
8417         * buffer.h (struct buffer): New member buffer_local_face_property.
8418         * window.c (Fset_window_buffer):  Mark window's face as changed
8419         when buffer has buffer local face.
8420         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
8421         * objects.c (color_after_change): Set buffer_local_face_property
8422         when locale of face specifier is buffer.
8423         * objects.c (font_after_change): Ditto.
8424         * objects.c (face_boolean_after_change): Ditto.
8425         * glyphs.c (image_after_change): Ditto.
8426
8427 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8428
8429         * nt.c (mswindows_fstat): Report file permissions, volume serial
8430         number, etc. Code adapted from FSF Emacs 20.7.
8431
8432 2000-12-09  Dan Holmsand  <dan@eyebee.com>
8433
8434         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
8435         of stat when we don't have symbolic links, to make sure
8436         mswindows_stat is called on mswindows.
8437
8438 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
8439
8440         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
8441
8442 2000-12-12  Martin Buchholz  <martin@xemacs.org>
8443
8444         * doprnt.c (emacs_doprnt_1): More printing fixes.
8445         Make printing of numbers compatible with libc and FSF Emacs.
8446         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
8447         Use the system printf to do most of the hard work of formatting,
8448         instead of doprnt_1().
8449         Calculate memory to allocate for format string.
8450         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
8451         (doprnt_1): Cleaner code and documentation.
8452
8453 2000-12-01  Jerry James  <james@eecs.ukans.edu>
8454
8455         * Makefile.in.in: Use the loop variable to install headers.
8456
8457 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8458
8459         * window.c (Fsplit_window): Don't invalidate face cache.
8460
8461 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8462
8463         * minibuf.c (Fall_completions): Undo the previous change
8464         which removed checking elements start with space.
8465
8466 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8467
8468         * mule-canna.c: Didier suppression.
8469
8470 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
8471
8472         * mule-canna.c: rename static unsigned char buf[] to key_buffer
8473         (warning suppression).  Add English comment translations.
8474
8475 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8476
8477         * unexelfsgi.c (unexec): Better test for mmap failure.
8478
8479 2000-12-05  Martin Buchholz <martin@xemacs.org>
8480
8481         * XEmacs 21.2.38 is released.
8482
8483 2000-12-05  Martin Buchholz  <martin@xemacs.org>
8484
8485         * redisplay.c (bar-cursor): Make a user variable.
8486
8487         * symsinit.h: Add init_postgresql_from_environment.
8488
8489 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
8490
8491         * regex.c: Convert to clean C.
8492
8493 2000-12-05  Dan Holmsand  <dan@eyebee.com>
8494
8495         * realpath.c:
8496         Don't #include sysfile.h. Revert to duplicating PATH_MAX
8497         initialization.
8498         (sys_readlink): renamed to system_readlink to avoid conflict with
8499         the other sys_readlink.
8500
8501 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
8502
8503         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
8504
8505 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
8506
8507         * postgresql.c (init_postgresql_from_environment): new function.
8508         (vars_of_postgresql): Move code initializing Lisp variables out and
8509         into init_postgresql_from_environment.
8510         emacs.c (main_1): Call init_postgresql_from_environment if and only
8511         if running a dumped XEmacs.
8512
8513 2000-08-31  Dan Holmsand  <dan@eyebee.com>
8514
8515         * buffer.c: Make find-file-compare-truenames default to true on
8516         windows.
8517
8518         * realpath.c (win32_abs_start):
8519         (cygwin_readlink):
8520         (win32_readlink): New functions.
8521         (xrealpath): Return really real filenames on windows.
8522
8523         * fileio.c (Ffile_truename): Make file-truename work on windows.
8524
8525 2000-11-29  Didier Verna  <didier@xemacs.org>
8526
8527         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
8528         * faces.c (update_face_cachel_data): use it.
8529         * faces.c (add_face_cachel): use it. Complete background pixmap
8530         frobbing in face cache if `update_face_cachel_data' has not done so.
8531
8532 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
8533
8534         * search.c (string_match_1): Don't set last_thing_searched
8535         when search failed.
8536
8537 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
8538
8539         * buffer.c: Include casetab.h
8540         (common_init_complex_vars_of_buffer): Use new case-table object.
8541         * buffer.h: Include casetab.h
8542         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
8543         (DOWNCASE_TABLE_OF): Ditto.
8544         * bufslots.h: Remove char-tables and add case-table.
8545         * casetab.c: Include casetab.h
8546         (CASE_TABLE_P): Removed.
8547         (mark_case_table): New function.
8548         (allocate_case_table): New function.
8549         (Fcase_table_p): Use new case-table.
8550         (case_table_char): New function.
8551         (Fget_case_table): Ditto.
8552         (Fput_case_table): Ditto.
8553         (Fput_case_table_pair): Ditto.
8554         (Fcopy_case_table): Ditto.
8555         (Fcurrent_case_table): Return case-table.
8556         (Fstandard_case_table): Return case-table.
8557         (Fset_case_table): Fix doc-string.
8558         (set_case_table): Use case-table
8559         (syms_of_casetab): DEFSUBR new functions.
8560         (complex_vars_of_casetab): Set up standard case-table.
8561         * casetab.h: New file.
8562         * editfns.c: Include casetab.h
8563         (Fcompare_buffer_substrings): Use case-table.
8564         * inline.c: Include casetab.h
8565         * lisp.h: Remove bogus extern.
8566         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
8567         * search.c: Include casetab.h
8568         (TRANSLATE_ASCII): Removed.
8569         (TRANSLATE): Unconditionally translate character.
8570         (looking_at_1): Use case-table.
8571         (string_match_1): Ditto.
8572         (fast_string_match): Ditto.
8573         (search_command): Ditto.
8574         (search_buffer): Separate boyer_moore.  Check whether
8575         boyer_moore is possible.
8576         (simple_search): New function.
8577         (boyer_moore): Separated from search_buffer. Translate char.
8578
8579 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8580
8581         * regex.c (RE_TR_ASCII): Removed.
8582         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
8583         (PATFETCH): Call PATFETCH_RAW.
8584         (PATFETCH_RAW): Fetch Emchar.
8585         (PATUNFETCH): Decrement charptr.
8586         (GET_BUFFER_SPACE): Rename b to buf_end.
8587         (BUF_PUSH): Ditto.
8588         (BUF_PUSH_2): Ditto.
8589         (BUF_PUSH_3): Ditto.
8590         (EXTEND_BUFFER): Ditto.
8591         (SET_LIST_BIT): Ditto.
8592         (regex_compile): Ditto.  Translate non ASCII char.
8593         (compile_range): Ditto.
8594         (re_search_2): Ditto.
8595         (re_match_2_internal): Compare Emchar.
8596         (bcmp_translate): Ditto.
8597
8598 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
8599
8600         * lisp.h (basic char/int typedefs):  comment improvement.
8601
8602 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
8603
8604         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
8605         unstomp inhibit_site_lisp.  Improve comments.
8606
8607 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
8608
8609         * mule-charset.c (Fcharset_property):  improve type checking, comments.
8610
8611 2000-11-28  Andy Piper  <andy@xemacs.org>
8612
8613         * redisplay-output.c (redisplay_output_subwindow): make sure we do
8614         clipped display for windows in the gutter also.
8615         (redisplay_display_boxes_in_window_p): change semantics of return
8616         codes to be more intuitive.
8617
8618         * gutter.h: declare display_boxes_in_gutter_p.
8619
8620         * gutter.c (display_boxes_in_gutter_p): new function for
8621         redisplay.
8622
8623 2000-11-22  Andy Piper  <andy@xemacs.org>
8624
8625         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
8626         autodetect domain.
8627
8628 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
8629
8630         * callproc.c (Fold_call_process_internal):
8631         * gpm.c (Freceive_gpm_event):
8632         (tty_get_foreign_selection): Might be just warning supression.
8633         * fileio.c (Fwrite_region_internal):
8634         (Fset_visited_file_modtime):
8635         * keymap.c (event_matches_key_specifier_p):
8636         Initialize GCPROed variable.
8637
8638         * menubar-x.c (command_builder_find_menu_accelerator):
8639         Initialize before use.
8640
8641 2000-11-23  Andy Piper  <andy@xemacs.org>
8642
8643         * unexcw.c (unexec): make the resulting executable executable.
8644
8645 2000-11-21  Martin Buchholz  <martin@xemacs.org>
8646
8647         * doc.c (get_doc_string):
8648         Use size_t, not int, for result of XSTRING_LENGTH.
8649
8650         * cmds.c (Fdelete_char):
8651         * cmds.c (Fpoint_at_eol):
8652         * cmds.c (Fself_insert_command):
8653         Use EMACS_INT, not int, for result of XINT.
8654         Someday, someone will want to insert more than 2**31 identical characters.
8655
8656         * cmds.c (Fdelete_char):
8657         * cmds.c (Fdelete_backward_char):
8658         * syntax.c (Fforward_word):
8659         * syntax.c (Fforward_comment):
8660         Make COUNT argument optional, for consistency with forward-char et al.
8661
8662 2000-11-22  Martin Buchholz  <martin@xemacs.org>
8663
8664         * lisp.h:
8665         * print.c (long_to_string):
8666         Return a useful value: the pointer at end of data written.
8667
8668         * doprnt.c:
8669         Use `static const char * const' for constant strings.
8670         (union printf_arg): Delete `i', `ui' members.
8671         (get_doprnt_args):
8672         (emacs_doprnt_1):
8673         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
8674         Do all printf-ing via the `l' specifier.
8675         Use EMACS_INT instead of int.
8676         Optimize.
8677
8678 2000-11-20  Didier Verna  <didier@xemacs.org>
8679
8680         * faces.c (update_face_cachel_data): don't frob the background
8681         pixmap when the window is being created. The face is needed but
8682         does not exist yet.
8683
8684 2000-11-20  Andy Piper  <andy@xemacs.org>
8685
8686         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
8687         messing with a debug environment.
8688
8689 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8690
8691         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
8692
8693 2000-11-20  Martin Buchholz  <martin@xemacs.org>
8694
8695         * casetab.c (Fcase_table_p): Fix compile error and crash.
8696
8697 2000-11-18  Philip Aston  <philipa@mail.com>
8698
8699         * s/cygwin32.h: Cygwin has SVR4-like pty support.
8700
8701 2000-11-18  Martin Buchholz  <martin@xemacs.org>
8702
8703         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
8704         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
8705
8706 2000-11-17  Martin Buchholz  <martin@xemacs.org>
8707
8708         * config.h.in: Define HAVE_ELF_H if elf.h exists.
8709         * unexelf.c: Use HAVE_ELF_H.
8710         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
8711         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
8712         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
8713         Greg Harrington <greg_harrington@hotmail.com> provided a machine
8714         for testing.
8715         So this is an unexelfsgi.c from a different line of development.
8716
8717 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8718
8719         * regex.c (RE_TR_ASCII): New function.
8720         (RE_TRANSLATE): Call it.
8721
8722 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
8723
8724         * buffer.h (TRT_TABLE_OF): Remove assert.
8725         (IN_TRT_TABLE_DOMAIN): Removed.
8726
8727 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8728
8729         * free-hook.c (log_gcpro):
8730         (show_gcprohist): Add support for GCPRO5.
8731
8732 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
8733
8734         * emacs.c (main_1): Improve -sd error message when --pdump=no.
8735
8736 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
8737
8738         * symeval.h: Declare flush_all_buffer_local_cache.
8739
8740         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
8741         (flush_buffer_local_cache): Added.
8742         (flush_all_buffer_local_cache): Added.
8743
8744         * lrecord.h: Remove unused XD_LO_RESET_NIL.
8745
8746         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
8747         (pdump_dump_data): Ditto.
8748         (pdump_reloc_one): Ditto.
8749         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
8750         before dumping.
8751
8752
8753 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8754
8755         * buffer.c: Remove if 0'ed entry.
8756         * buffer.h: Rewrite TRT to use char-table.
8757         * bufslots.h: Remove mirror tables.
8758         * casetab.c: Remove mirror tables.
8759         (CASE_TABLE_P): New macro.
8760         (Fcase_table_p): Element of a case table is string or char-table.
8761         (make_mirror_trt_table): Removed.
8762         (set_case_table): Setup char-table from strings for backward
8763         compatibility.
8764         * dired.c (Fdirectory_files):
8765         * dired-msw.c: (mswindows_get_files):
8766         * lisp.h: Change prototype of re_pattern_buffer.
8767         * regex.c: (RE_TRANSLATE): New macro.
8768         (TRANSLATE_P): Ditto.
8769         Change translate to type RE_TRANSLATE_TYPE.
8770         * regex.h: Define RE_TRANSLATE_TYPE
8771         * search.c (TRANSLATE): New macro.
8772         (TRANSLATE_ASCII): New macro.
8773         Translate table is changed to Lisp_Object.
8774         (signal_failure): Inhibit return.
8775
8776 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
8777
8778         * device-msw.c:
8779         * eldap.c:
8780         * event-Xt.c:
8781         * event-stream.c:
8782         * print.c:
8783         Do UNGCPRO before return.
8784
8785 2000-11-14  Martin Buchholz <martin@xemacs.org>
8786
8787         * XEmacs 21.2.37 is released.
8788
8789 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
8790
8791         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
8792         Add comments about discarded return value.
8793
8794 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
8795
8796         * callint.c:
8797         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
8798
8799 2000-10-27  Andy Piper  <andy@xemacs.org>
8800
8801         * gutter.c (Fset_default_gutter_position): default left and right
8802         gutters to visible.
8803         (calculate_gutter_size): calculate resonable heuristic for left
8804         and right gutter sizes.
8805         (specifier_vars_of_gutter): change left and right gutter sizes to
8806         autodetect.
8807         (calculate_gutter_size_from_display_lines): new function.
8808         (output_gutter): check for resizing on left and right gutters.
8809         (clear_gutter): don't special case top and left gutters.
8810         (specifier_vars_of_gutter): use new signature for
8811         set_specifier_caching.
8812
8813         * glyphs-x.c (x_redisplay_widget): spelling fix.
8814         * glyphs.c (specifier_vars_of_glyphs):
8815         * menubar.c (specifier_vars_of_menubar):
8816         * redisplay.c (specifier_vars_of_redisplay):
8817         * toolbar.c (specifier_vars_of_toolbar):
8818         * window.c (specifier_vars_of_window):
8819         * scrollbar.c (specifier_vars_of_scrollbar):
8820         (complex_vars_of_scrollbar): use new signature for
8821         set_specifier_caching.
8822
8823         * specifier.c (set_specifier_caching): include recompute flag.
8824         (recompute_one_cached_specifier_in_window): always recompute if
8825         flag set.
8826         (recompute_one_cached_specifier_in_frame): ditto.
8827
8828         * specifier.h (struct specifier_caching): add recompute flag.
8829
8830 2000-10-24  Andy Piper  <andy@xemacs.org>
8831
8832         * unexcw.c (copy_executable_and_dump_data_section): add new
8833         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
8834         5.0 happy.
8835
8836 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8837
8838         * console-x.h (x_device): New member modifier_release_time.
8839         * event-Xt.c (x_handle_sticky_modifiers):
8840         Bound interval modifier keys are sticky.
8841         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
8842         * events.h: extern it.
8843
8844 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8845
8846         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
8847
8848 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
8849
8850         * event-stream.c (execute_command_event): Preserve current_events
8851         and the like when event is misc-user-event.
8852         Inhibit quit during the call to maybe_echo_keys.
8853
8854 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
8855
8856         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
8857         symlink when buffer is killed.
8858         (inhibit_clash_detection): New variable.
8859
8860 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
8861
8862         * console.c (Fset_input_method): Trigger redisplay on tty.
8863
8864 2000-11-07  Martin Buchholz  <martin@xemacs.org>
8865
8866         * process.c (Fprocess_status): Revert to previous behavior:
8867         (process-status "nosuchprocess") ==> nil
8868
8869 2000-11-06  Martin Buchholz  <martin@xemacs.org>
8870
8871         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
8872         Work around another GCC 2.95.2 optimizer bug.
8873
8874 2000-11-02  Martin Buchholz  <martin@xemacs.org>
8875
8876         * process.c (Fget_process): Use LIST_LOOP_2.
8877         (kill_buffer_processes): Use LIST_LOOP_2.
8878
8879         * minibuf.c (Fall_completions):
8880         Delete old non-functional code for FSF fourth argument.
8881
8882         * frame.c (frame_matches_frame_spec):
8883         Renamed from `frame_matches_frametype'.  Update all callers.
8884         (device_matches_device_spec):
8885         Renamed from 'device_matches_console_spec'.  Update all callers.
8886
8887         * doc.c (Fsubstitute_command_keys):
8888         Remove buffer overflow crash.  Small code cleanups.
8889
8890         * casetab.c (check_case_table): Simpler code.
8891
8892         * window.c (Freplace_buffer_in_windows):
8893         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
8894         (and similar implementation) as Fdelete_windows_on.
8895         Update all callers.
8896
8897         * alloc.c (Fmake_list):
8898         * alloc.c (make_vector):
8899         * alloc.c (Fmake_vector):
8900         * alloc.c (make_bit_vector):
8901         * alloc.c (Fmake_bit_vector):
8902         * alloc.c (Fbit_vector):
8903         * alloc.c (Fmake_string):
8904         * alloc.c (Fpurecopy):
8905         * alloc.c (Fmemory_limit):
8906         * buffer.c:
8907         * buffer.c (Fget_buffer):
8908         * buffer.c (Fkill_buffer):
8909         * buffer.c (complex_vars_of_buffer):
8910         * bytecode.c (Fcompiled_function_stack_depth):
8911         * callint.c (Fprefix_numeric_value):
8912         * event-stream.c:
8913         * event-stream.c (Fread_key_sequence):
8914         * casetab.c:
8915         * casetab.c (Fcase_table_p):
8916         * casetab.c (check_case_table):
8917         * casetab.c (Fset_case_table):
8918         * casetab.c (Fset_standard_case_table):
8919         * chartab.c:
8920         * chartab.c (Fchar_table_type):
8921         * chartab.c (Freset_char_table):
8922         * chartab.c (Fget_char_table):
8923         * chartab.c (Fget_range_char_table):
8924         * chartab.c (Fput_char_table):
8925         * chartab.c (Fmap_char_table):
8926         * chartab.c (Fcategory_table_p):
8927         * chartab.c (Fcheck_category_at):
8928         * chartab.c (Fchar_in_category_p):
8929         * chartab.c (Fcategory_table):
8930         * chartab.c (Fcopy_category_table):
8931         * chartab.c (Fset_category_table):
8932         * chartab.c (Fcategory_designator_p):
8933         * chartab.c (Fcategory_table_value_p):
8934         * cmds.c (Fdelete_char):
8935         * cmds.c (Fdelete_backward_char):
8936         * cmds.c (Fself_insert_command):
8937         * cmds.c (Fself_insert_internal):
8938         * console.c (Fvalid_console_type_p):
8939         * console.c (Fcdfw_console):
8940         * console.c (Fconsole_type):
8941         * console.c (Fconsole_name):
8942         * console.c (Fconsole_device_list):
8943         * console.c (Fconsole_on_window_system_p):
8944         * data.c:
8945         * data.c (Feq):
8946         * data.c (Fold_eq):
8947         * data.c (Fsubr_interactive):
8948         * data.c (Fchar_to_int):
8949         * data.c (Fint_to_char):
8950         * data.c (Fsetcar):
8951         * data.c (Fsetcdr):
8952         * data.c (Fnumber_to_string):
8953         * data.c (Fstring_to_number):
8954         * data.c (Frem):
8955         * database.c (mark_database):
8956         * database.c (finalize_database):
8957         * database.c (Fdatabase_live_p):
8958         * database.c (Fdatabasep):
8959         * device-x.c (Fx_get_resource):
8960         * device.c (Fdfw_device):
8961         * dired.c:
8962         * dired.c (Ffile_name_completion):
8963         * dired.c (Ffile_name_all_completions):
8964         * dired.c (Fuser_name_completion):
8965         * dired.c (Fuser_name_completion_1):
8966         * dired.c (Fuser_name_all_completions):
8967         * doc.c (Fdocumentation):
8968         * doc.c (Fdocumentation_property):
8969         * doc.c (Fsubstitute_command_keys):
8970         * editfns.c:
8971         * editfns.c (Fchar_to_string):
8972         * editfns.c (Fstring_to_char):
8973         * editfns.c (Ftemp_directory):
8974         * editfns.c (Finsert_char):
8975         * editfns.c (Fbuffer_substring_no_properties):
8976         * editfns.c (Fnarrow_to_region):
8977         * editfns.c (Fchar_equal):
8978         * editfns.c (Fchar_Equal):
8979         * editfns.c (Ftranspose_regions):
8980         * emacs.c (Fdump_emacs):
8981         * eval.c (Fthrow):
8982         * eval.c (Fcommand_execute):
8983         * eval.c (Fautoload):
8984         * eval.c (Fbacktrace):
8985         * eval.c (Fbacktrace_frame):
8986         * events.c:
8987         * events.c (Fcopy_event):
8988         * events.c (Fcharacter_to_event):
8989         * events.c (Fevent_button):
8990         * events.c (Fevent_process):
8991         * extents.c:
8992         * extents.c (Fnext_extent_change):
8993         * extents.c (Fextent_property):
8994         * faces.c (Ffacep):
8995         * faces.c (Fmake_face):
8996         * file-coding.c:
8997         * file-coding.c (Fencode_shift_jis_char):
8998         * file-coding.c (Fencode_big5_char):
8999         * fileio.c (Ffile_name_directory):
9000         * fileio.c (Ffile_name_nondirectory):
9001         * fileio.c (Ffile_name_as_directory):
9002         * fileio.c (Fdirectory_file_name):
9003         * fileio.c (Ffile_truename):
9004         * fileio.c (Fsubstitute_in_file_name):
9005         * fileio.c (Ffile_modes):
9006         * fileio.c (Fset_file_modes):
9007         * fileio.c (Fset_default_file_modes):
9008         * fileio.c (Fverify_visited_file_modtime):
9009         * floatfns.c (Facos):
9010         * floatfns.c (Fasin):
9011         * floatfns.c (Fatan):
9012         * floatfns.c (Fcos):
9013         * floatfns.c (Fsin):
9014         * floatfns.c (Ftan):
9015         * floatfns.c (Fbessel_j0):
9016         * floatfns.c (Fbessel_j1):
9017         * floatfns.c (Fbessel_jn):
9018         * floatfns.c (Fbessel_y0):
9019         * floatfns.c (Fbessel_y1):
9020         * floatfns.c (Fbessel_yn):
9021         * floatfns.c (Ferf):
9022         * floatfns.c (Ferfc):
9023         * floatfns.c (Flog_gamma):
9024         * floatfns.c (Fexp):
9025         * floatfns.c (Fexpt):
9026         * floatfns.c (Flog):
9027         * floatfns.c (Flog10):
9028         * floatfns.c (Fsqrt):
9029         * floatfns.c (Fcube_root):
9030         * floatfns.c (Facosh):
9031         * floatfns.c (Fasinh):
9032         * floatfns.c (Fatanh):
9033         * floatfns.c (Fcosh):
9034         * floatfns.c (Fsinh):
9035         * floatfns.c (Ftanh):
9036         * floatfns.c (Fabs):
9037         * floatfns.c (Ffloat):
9038         * floatfns.c (Flogb):
9039         * floatfns.c (Fceiling):
9040         * floatfns.c (Ffloor):
9041         * floatfns.c (Fround):
9042         * floatfns.c (Ftruncate):
9043         * floatfns.c (Ffceiling):
9044         * floatfns.c (Fffloor):
9045         * floatfns.c (Ffround):
9046         * floatfns.c (Fftruncate):
9047         * fns.c (Fstring_equal):
9048         * fns.c (Fstring_lessp):
9049         * fns.c (concat2):
9050         * fns.c (concat3):
9051         * fns.c (vconcat2):
9052         * fns.c (vconcat3):
9053         * fns.c (Fsubstring):
9054         * fns.c (Fassoc):
9055         * fns.c (Fold_assoc):
9056         * fns.c (assoc_no_quit):
9057         * fns.c (Fassq):
9058         * fns.c (Fold_assq):
9059         * fns.c (assq_no_quit):
9060         * fns.c (Frassoc):
9061         * fns.c (Fold_rassoc):
9062         * fns.c (Frassq):
9063         * fns.c (Fold_rassq):
9064         * fns.c (rassq_no_quit):
9065         * fns.c (Fremassoc):
9066         * fns.c (remassoc_no_quit):
9067         * fns.c (Fremassq):
9068         * fns.c (remassq_no_quit):
9069         * fns.c (Fremrassoc):
9070         * fns.c (Fremrassq):
9071         * fns.c (remrassq_no_quit):
9072         * fns.c (Fsort):
9073         * fns.c (Fplist_get):
9074         * fns.c (Fplist_put):
9075         * fns.c (Fplist_remprop):
9076         * fns.c (Fplist_member):
9077         * fns.c (Flax_plist_get):
9078         * fns.c (Flax_plist_put):
9079         * fns.c (Flax_plist_remprop):
9080         * fns.c (Flax_plist_member):
9081         * fns.c (Fequal):
9082         * fns.c (Fold_equal):
9083         * fns.c (Frequire):
9084         * fns.c (Fbase64_encode_region):
9085         * fns.c (Fbase64_encode_string):
9086         * fns.c (Fbase64_decode_region):
9087         * frame.c:
9088         * frame.c (frame_matches_frame_spec):
9089         * frame.c (device_matches_device_spec):
9090         * frame.c (next_frame):
9091         * frame.c (previous_frame):
9092         * frame.c (Fnext_frame):
9093         * frame.c (Fprevious_frame):
9094         * frame.c (Fframe_property):
9095         * frame.c (Fset_frame_height):
9096         * frame.c (Fset_frame_size):
9097         * frame.h:
9098         * glyphs.c:
9099         * glyphs.c (if):
9100         * glyphs.c (decode_error_behavior_flag):
9101         * glyphs.c (Fmake_image_instance):
9102         * indent.c (Findent_to):
9103         * intl.c (Fignore_defer_gettext):
9104         * keymap.c (Fkeymapp):
9105         * keymap.c (Flookup_key):
9106         * lread.c:
9107         * lread.c (Fload_internal):
9108         * lread.c (Feval_buffer):
9109         * lread.c (Feval_region):
9110         * macros.c (Fexecute_kbd_macro):
9111         * marker.c (set_marker_internal):
9112         * marker.c (Fset_marker):
9113         * marker.c (set_marker_restricted):
9114         * marker.c (Fcopy_marker):
9115         * marker.c (noseeum_copy_marker):
9116         * menubar.c:
9117         * menubar.c (Fpopup_menu):
9118         * minibuf.c:
9119         * mule-charset.c (Fcharset_name):
9120         * mule-charset.c (Fchar_charset):
9121         * mule-charset.c (Fchar_octet):
9122         * mule-charset.c (Fsplit_char):
9123         * mule-wnnfns.c (Fwnn_open):
9124         * mule-wnnfns.c (Fwnn_dict_comment):
9125         * mule-wnnfns.c (Fwnn_quit_henkan):
9126         * mule-wnnfns.c (Fwnn_word_toroku):
9127         * mule-wnnfns.c (Fwnn_word_sakujo):
9128         * mule-wnnfns.c (Fwnn_word_use):
9129         * mule-wnnfns.c (Fwnn_hindo_set):
9130         * objects.c:
9131         * objects.c (Fmake_color_instance):
9132         * objects.c (Fmake_font_instance):
9133         * print.c (Fwrite_char):
9134         * process.c:
9135         * process.c (mark_process):
9136         * process.c (print_process):
9137         * process.c (get_process_from_usid):
9138         * process.c (Fprocessp):
9139         * process.c (Fprocess_live_p):
9140         * process.c (Fget_process):
9141         * process.c (Fget_buffer_process):
9142         * process.c (get_process):
9143         * process.c (Fprocess_id):
9144         * process.c (Fprocess_name):
9145         * process.c (Fprocess_command):
9146         * process.c (init_process_io_handles):
9147         * process.c (start_process_unwind):
9148         * process.c (Fstart_process_internal):
9149         * process.c (Fopen_multicast_group_internal):
9150         * process.c (Fset_process_window_size):
9151         * process.c (read_process_output):
9152         * process.c (send_process):
9153         * process.c (Fprocess_tty_name):
9154         * process.c (Fset_process_buffer):
9155         * process.c (Fprocess_buffer):
9156         * process.c (Fprocess_mark):
9157         * process.c (set_process_filter):
9158         * process.c (Fset_process_filter):
9159         * process.c (Fprocess_filter):
9160         * process.c (Fprocess_send_region):
9161         * process.c (Fprocess_send_string):
9162         * process.c (exec_sentinel):
9163         * process.c (Fset_process_sentinel):
9164         * process.c (Fprocess_sentinel):
9165         * process.c (status_notify):
9166         * process.c (Fprocess_status):
9167         * process.c (Fprocess_exit_status):
9168         * process.c (process_send_signal):
9169         * process.c (Fprocess_send_eof):
9170         * process.c (deactivate_process):
9171         * process.c (remove_process):
9172         * process.c (Fdelete_process):
9173         * process.c (kill_buffer_processes):
9174         * process.c (Fprocess_kill_without_query):
9175         * process.c (Fprocess_kill_without_query_p):
9176         * rangetab.c:
9177         * rangetab.c (Fget_range_table):
9178         * rangetab.c (Fput_range_table):
9179         * rangetab.c (Fremove_range_table):
9180         * rangetab.c (Fclear_range_table):
9181         * search.c:
9182         * search.c (Fskip_chars_forward):
9183         * search.c (Fskip_chars_backward):
9184         * search.c (Fskip_syntax_forward):
9185         * search.c (Fskip_syntax_backward):
9186         * search.c (search_command):
9187         * search.c (Freplace_match):
9188         * search.c (Fregexp_quote):
9189         * select.c (Fown_selection_internal):
9190         * select.c (Fselection_owner_p):
9191         * select.c (Fselection_exists_p):
9192         * select.c (Fget_selection_internal):
9193         * specifier.c:
9194         * symbols.c:
9195         * symbols.c (Fintern):
9196         * symbols.c (Fintern_soft):
9197         * symbols.c (Funintern):
9198         * symbols.c (Fapropos_internal):
9199         * symbols.c (Fset_default):
9200         * syntax.c:
9201         * syntax.c (Fsyntax_table_p):
9202         * syntax.c (Fcopy_syntax_table):
9203         * syntax.c (Fset_syntax_table):
9204         * syntax.c (Fchar_syntax):
9205         * syntax.c (syntax_match):
9206         * syntax.c (Fmatching_paren):
9207         * syntax.c (Fforward_word):
9208         * syntax.c (scan_lists):
9209         * syntax.c (Fscan_lists):
9210         * syntax.c (Fscan_sexps):
9211         * syntax.c (Fparse_partial_sexp):
9212         * toolbar.c (Fcheck_toolbar_button_syntax):
9213         * tooltalk.doc:
9214         * window.c:
9215         * window.c (Fwindowp):
9216         * window.c (Fwindow_live_p):
9217         * window.c (Fwindow_point):
9218         * window.c (Fdelete_window):
9219         * window.c (Fnext_window):
9220         * window.c (Fprevious_window):
9221         * window.c (Fother_window):
9222         * window.c (window_loop):
9223         * window.c (Fget_lru_window):
9224         * window.c (Fsplit_window):
9225         * window.c (Fenlarge_window):
9226         * window.c (Fenlarge_window_pixels):
9227         * window.c (Fshrink_window):
9228         * window.c (Fshrink_window_pixels):
9229         * window.c (change_window_height):
9230         * window.c (Fwindow_configuration_p):
9231         * window.c (Fcurrent_window_configuration):
9232         * window.h:
9233         * casefiddle.c (casify_object):
9234         * casefiddle.c (Fupcase):
9235         * casefiddle.c (Fdowncase):
9236         * casefiddle.c (Fcapitalize):
9237         * casefiddle.c (Fupcase_initials):
9238         * casefiddle.c (casify_region_internal):
9239         * casefiddle.c (casify_region):
9240         * casefiddle.c (Fupcase_region):
9241         * casefiddle.c (Fdowncase_region):
9242         * casefiddle.c (Fcapitalize_region):
9243         * casefiddle.c (Fupcase_initials_region):
9244         * casefiddle.c (Fupcase_word):
9245         * casefiddle.c (Fdowncase_word):
9246         * casefiddle.c (Fcapitalize_word):
9247         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
9248         Replace 0 with '\0' when working with bytes.
9249         Replace initial "(" with "\(" in docstrings.
9250
9251 2000-11-01  Martin Buchholz  <martin@xemacs.org>
9252
9253         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
9254
9255         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
9256
9257 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9258
9259         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
9260
9261 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9262
9263         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
9264         correctly.
9265
9266 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9267
9268         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
9269         (inhibit_auto_save_session): New variable.
9270         (vars_of_fileio): Declare and initialize them.
9271         * fileio.c (Fdo_auto_save): Don't create session file if
9272         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
9273
9274 2000-10-31  Martin Buchholz  <martin@xemacs.org>
9275
9276         * sgiplay.c (play_internal): C++ compilability.
9277         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
9278         * callproc.c (Fold_call_process_internal):
9279         Remove unused vars `env', `first'.
9280         * scrollbar.c (update_scrollbar_instance):
9281         #### unused var `current_window'.
9282         * redisplay-tty.c: Put currently unused vars insert_mode_on,
9283         etc. within #ifdef NOT_YET.
9284         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
9285         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
9286         * specifier.c (specifier_instance):
9287         #### unused var `tag'.
9288         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
9289
9290 2000-10-27  Martin Buchholz  <martin@xemacs.org>
9291
9292         * fns.c (Fbutlast):
9293         * fns.c (list_sort):
9294         * fns.c (Ffillarray):
9295         * fns.c (bytecode_nconc2):
9296         * fns.c (Fnconc):
9297         * fns.c (mapcar1):
9298         * fns.c (Fmapconcat):
9299         Be pedantically 64-bit correct.  For the time when someone will
9300         want to have a list with length > 2**32.
9301
9302         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
9303         Work around MIPSpro compiler bug.
9304
9305         * process-unix.c (unix_kill_child_process): Add snarky comment.
9306         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
9307
9308         * config.h.in: Oops, _getpt ==> _getpty
9309
9310 2000-10-26  Martin Buchholz  <martin@xemacs.org>
9311
9312         * config.h.in:
9313         * regex.c:
9314         Use void*, not char*, as return type of alloca().
9315
9316         * alloc.c (free_marker): Side effect inside assert expression!
9317
9318 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
9319
9320         * mule-charset.c (Fset_charset_ccl_program): To check
9321         if the given ccl program is valid, use setup_ccl_program()
9322         instead of CHECK_VECTOR().
9323         (Fmake_charset): Likewise.
9324
9325 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
9326
9327         * faces.c (get_extent_fragment_face_cache_index):
9328         Fix cachel.merged_faces memory leak.
9329
9330 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
9331
9332         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
9333         Reset MSB of octets obtained by DECODE_SJIS
9334         because of the incompatibility with Emacs.
9335         (ccl_driver)<CCL_ENCODE_SJIS>:
9336         Set MSB of octets before passing them to
9337         ENCODE_SJIS because of the incompatibility
9338         with Emacs.
9339
9340 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
9341
9342         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
9343         (DECLARE_LRECORD): Undo the last change.
9344         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
9345
9346 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
9347
9348         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
9349         the implementation to lrecord_implementations_table.
9350
9351 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
9352
9353         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
9354         initial value of `lrecord_type_##c_name' and
9355         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
9356         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
9357         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
9358         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
9359         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
9360
9361 2000-10-17  Martin Buchholz  <martin@xemacs.org>
9362
9363         * miscplay.c (sndcnv8S_2mono):
9364         (sndcnv2monounsigned):
9365         (sndcnvULaw_2linear):
9366         (sndcnv16swap):
9367         Remove implementation-defined behavior.
9368
9369 2000-10-12  Martin Buchholz  <martin@xemacs.org>
9370
9371         * input-method-xlib.c: Warning suppression.
9372
9373 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
9374
9375         * mule-ccl.c: Sync up with Emacs 21.0.90.
9376         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
9377         Do nothing.
9378         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
9379         Likewise.
9380         (ccl_driver[WriteMultibyteChar2]): Bug fix.
9381         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
9382         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
9383         leading char belongs to official 2-dimensional charset.
9384         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
9385         write the given character as is.  Otherwise,
9386         if it is a multibyte char, convert it by
9387         non_ascii_set_charptr_emchar, then write it.
9388         (CCL_WRITE_STRING): Likewise.
9389         (ccl_get_compiled_code): New function.
9390         (setup_ccl_program): When ccl_prog is invalid,
9391         return -1.
9392         (Fregister_code_conversion_map): New function.
9393         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
9394
9395         * mule-ccl.h: Sync up with Emacs 21.0.90.
9396         (Fregister_ccl_program): export it.
9397
9398         * redisplay-msw.c (separate_textual_runs):
9399         If ccl program is not valid, don't do ccl conversion.
9400
9401         * redisplay-x.c (separate_textual_runs): Ditto.
9402
9403         * file-coding.c (Fmake_coding_system):
9404         When type is ccl and value is vector, register it
9405         with a proper symbol.  And checks whether the
9406         given ccl program is valid.
9407         (mule_decode): When calling ccl_driver, if src indicates
9408         NULL pointer, set an empty string instead.
9409         (mule_encode): Likewise.
9410
9411 2000-10-11  Martin Buchholz  <martin@xemacs.org>
9412
9413         The following large batch of changes gets us back to a state of
9414         C++ compilability.  Extbyte is now a char, which means that
9415         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
9416
9417         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
9418
9419         * sound.c (Fplay_sound): Type correctness.
9420
9421         * select-x.c (hack_motif_clipboard_selection): Type correctness.
9422         (x_get_window_property): Type correctness.
9423         (receive_incremental_selection): unsigned char ==> Extbyte
9424         (selection_data_to_lisp_data): unsigned char ==> Extbyte
9425         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
9426         (Fx_store_cutbuffer_internal): Type correctness.
9427
9428         * process-unix.c (try_to_initialize_subtty): Type correctness.
9429
9430         * objects-x.c (x_print_color_instance): Type correctness.
9431         (x_print_font_instance): Type correctness.
9432         (x_list_fonts): SExtbyte ==> Extbyte.
9433         (valid_x_font_name_p): SExtbyte ==> Extbyte.
9434         (x_find_charset_font): SExtbyte ==> Extbyte.
9435         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
9436         (truename_via_XListFonts): SExtbyte ==> Extbyte.
9437         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
9438         Use bufbyte_strcmp.
9439
9440         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
9441         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
9442         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
9443         (BYTE_C0_P): Use bit ops for char-signedness safety.
9444         (BYTE_C1_P): Use bit ops for char-signedness safety.
9445         (CHARSET_BY_LEADING_BYTE):
9446         (CHARSET_BY_ATTRIBUTES):
9447         Always use inline function.
9448         Use type_checking_assert.
9449         Hide chlook.
9450
9451         * mule-charset.c (non_ascii_charptr_copy_char):
9452         Modify to work with both ASCII and non-ASCII characters.
9453         Improve docs and variable names.
9454         Replace over-clever fall-through switch with a simple loop.
9455         (Lstream_get_emchar_1):
9456         Replace over-clever fall-through switch with a simple loop.
9457
9458         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9459         Warning suppression.
9460
9461         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
9462         the return value of Lstream_getc, which could be EOF as well.
9463
9464         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
9465
9466         * lisp.h: Make Extbyte a char, not unsigned char, so that external
9467         APIs can be used on Extbytes without casts.  Risky!
9468         (SExtbyte): Remove.
9469         (UExtbyte): Remove.
9470
9471         * input-method-xlib.c (XIM_init_device):
9472         Use Xlib.h instead of IntrinsicP.h.
9473         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
9474         which will break in X11R7.
9475         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
9476         to call XRegisterIMInstantiateCallback with correct types.
9477
9478         * gui-x.c (button_item_to_widget_value): Type correctness.
9479
9480         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
9481
9482         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
9483         (xbm_instantiate_1): Type correctness.
9484         (BUILD_GLYPH_INST):  Type correctness.
9485
9486         * fileio.c (Fsubstitute_in_file_name): Type correctness.
9487
9488         * file-coding.c:
9489         (decode_coding_sjis):
9490         (decode_coding_big5):
9491         (decode_coding_ucs4):
9492         (decode_coding_utf8):
9493         (decode_coding_iso2022):
9494         (decode_coding_no_conversion):
9495         Make all decoding functions take an Extbyte * arg.
9496         (encode_coding_sjis):
9497         (encode_coding_big5):
9498         (encode_coding_ucs4):
9499         (encode_coding_utf8):
9500         (encode_coding_iso2022):
9501         (encode_coding_no_conversion):
9502         Make all encoding functions take a Bufbyte * arg.
9503         Use size_t instead of unsigned int for memory sizes.
9504         Only cast to unsigned char whenever dereferencing Extbyte *.
9505
9506         * doc.c (unparesseuxify_doc_string): Type correctness.
9507
9508         * console-x.c (split_up_display_spec):
9509         Rewrite without using details of internal string representation.
9510         (x_semi_canonicalize_device_connection): Type correctness.
9511
9512         * config.h.in:
9513         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
9514         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
9515         (HAVE_XFREE386): Removed.
9516
9517         * buffer.h (DEC_CHARPTR): `const' correctness.
9518         (bufbyte_strcmp): New.
9519         (bufbyte_memcmp): New.
9520
9521         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
9522
9523         * buffer.h (XCHAR_OR_CHAR_INT):
9524         Always use inline function.
9525         Remove redundant type checking assert() - XINT will abort quite nicely.
9526
9527 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9528
9529         * search.c (Freplace_match): Set newtext to an empty string.
9530
9531 2000-10-10  Martin Buchholz  <martin@xemacs.org>
9532
9533         * s/decosf1-3.h: Remove #include of stropts.h
9534         * s/ptx.h: Remove #include of stropts.h
9535         * s/usg5-4.h: Remove #include of stropts.h
9536         * sysproc.h:
9537         * config.h.in:
9538         Use stropts.h, not sys/stropts.h.
9539         Use strtio.h, not sys/strtio.h.
9540
9541 2000-10-04  Martin Buchholz <martin@xemacs.org>
9542
9543         * XEmacs 21.2.36 is released.
9544
9545 2000-09-21  Andy Piper  <andy@xemacs.org>
9546
9547         * glyphs-x.c (x_redisplay_widget): make sure non-structural
9548         changes still involve copying the widget tree.
9549         (update_widget_face): make sure a change is register in the widget
9550         tree. Call update_tab_widget_face appropriately.
9551         (update_tab_widget_face): ditto.
9552         (x_tab_control_redisplay): make sure non-structural changes still
9553         involve copying the widget tree.
9554
9555 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
9556
9557         * lread.c (locate_file): Check the path element is non-nil.
9558
9559 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9560
9561         * lisp.h: Warning suppression for SCO compilers.
9562
9563         * redisplay-tty.c (reset_tty_modes): Fix crash.
9564         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
9565
9566 2000-09-27  Martin Buchholz  <martin@xemacs.org>
9567
9568         Big signal/process handling overhaul.  Bugs fixed:
9569         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
9570         M-x comint-kill-subjob should work for both values nil and t of
9571         process-connection-type. It was broken on most platforms.
9572         Testing on Irix and Cygwin still needed.  Other plaforms tested.
9573         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
9574         * process-unix.c: Signal/Process handling overhaul.
9575         (pty_name): make 64 bytes, as `expect' does, for paranoia.
9576         (allocate_pty): Use all available modern methods of allocating
9577         ptys, falling back to old style BSD allocation as a last resort.
9578         Use allegedly more secure Unix98 pty allocation by default.
9579         (allocate_pty_the_old_fashioned_way): New. the last resort.
9580         (unix_create_process): Push ptem, ldterm, ttcompat where
9581         available.  Autoconfiscate.
9582         (try_to_initialize_subtty): New.
9583         (unix_kill_child_process): Proper signal handling for ptys on most
9584         platforms, using special knowledge of AIX, BSD, etc...
9585         (unix_create_process): Always disconnect_controlling_terminal() for
9586         subprocesses, whether using ptys or not.
9587         * process.h: Remove old getpt-dependent PTY code.
9588         * process.c (Fprocess_send_signal): New, obvious generic function.
9589         (decode_signal): New.
9590         (Finterrupt_process):
9591         (Fkill_process):
9592         (Fquit_process):
9593         (Fstop_process):
9594         (Fcontinue_process):
9595         (Fsignal_process): Use decode_signal.
9596         (process_send_signal):
9597         Many docstring corrections.
9598         Allow any signal to be sent to a process object.
9599         * config.h.in: Add symbols for big signal/process overhaul.
9600         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
9601         * sysproc.h: Include process-related headers, where available:
9602         sys/stropts.h sys/strtio.h pty.h libutil.h
9603         * s/irix4-0.h:
9604         * s/irix5-0.h:
9605         * s/cygwin32.h:
9606         * s/gnu.h:
9607         * s/linux.h:
9608         * s/hpux.h:
9609         * s/aix3-1.h:
9610         Remove old S&M pty stuff.
9611         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
9612         * systty.h: Simplify cpp hackery, improve comments.
9613         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
9614
9615         * editfns.c (Fformat_time_string):
9616         Be a little more paranoid with the return value of ctime.
9617
9618         * fileio.c (check_executable):
9619         (check_writable):
9620         Use symbolic constants X_OK, W_OK.
9621
9622         * console-x.c (split_up_display_spec): Fix a warning.
9623
9624 2000-10-02  Martin Buchholz  <martin@xemacs.org>
9625
9626         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
9627         * ntproc.c (sys_spawnve): make_string ==> build_string
9628         Small clarity improvements.
9629
9630 2000-09-30  Martin Buchholz  <martin@xemacs.org>
9631
9632         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
9633
9634         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
9635
9636         * config.h.in (HAVE_STRCASECMP): Remove.
9637
9638 2000-09-29  Martin Buchholz  <martin@xemacs.org>
9639
9640         * redisplay-output.c (redisplay_output_pixmap):
9641         Cleaner and possibly more 64-bit correct code.
9642
9643 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
9644
9645         * dumper.c (pdump_load_finish): move restoration of
9646         `noninteractive1' to emacs.c (main_1).
9647         * emacs.c (main_1): protect LISP-visible command-line flags
9648         from pdump_load().
9649
9650 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
9651
9652         * Makefile.in.in (versionclean):  Use EXE_TARGET and
9653         DUMP_TARGET instead of literal program names.
9654
9655 2000-09-20  Martin Buchholz  <martin@xemacs.org>
9656
9657         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
9658
9659 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9660
9661         * *: Spelling mega-patch
9662
9663 2000-09-19  Martin Buchholz  <martin@xemacs.org>
9664
9665         * fns.c (bad_bad_turtle):
9666         Delete "Eek!" comment, since we fixed the bug to which it refers.
9667
9668 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9669
9670         * alloca.c: Replace REGISTER with register.
9671
9672 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
9673
9674         * file-coding.c (ucs_to_char): Use countof.
9675
9676 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9677
9678         * file-coding.c: (ucs_to_char):
9679         (complex_vars_of_file_coding):
9680         Use countof instead of sizeof.
9681         Use CHECK_NATNUM instead of CHECK_INT.
9682
9683         * sysdep.c (strcasecmp): Remove.
9684         * device-x.c (ascii_strcasecmp): New.
9685         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
9686         Avoid using non-standard non-portable strcasecmp.
9687
9688 2000-09-16  Martin Buchholz  <martin@xemacs.org>
9689
9690         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
9691         * font-lock.c: remove reference to emacsfns.h.
9692         * search.c: small doc improvement.
9693         * event-Xt.c: correct file names in comments.
9694         * console-x.h Correct file names in comments.
9695         * frame.c: Correct file names in comments.
9696         * event-stream.c: remove Energize from comments.
9697
9698 2000-09-15  Martin Buchholz  <martin@xemacs.org>
9699
9700         * symeval.h (DEFERROR_STANDARD):
9701         (DEFERROR):
9702         (DEFSYMBOL):
9703         (DEFSYMBOL_NO_DUMP):
9704         (DEFSYMBOL_MULTIWORD_PREDICATE):
9705         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
9706         (DEFKEYWORD):
9707         The construct &##name is not sensible C.
9708         Fixes compilation errors with Unixware native compiler.
9709
9710 2000-09-14  Martin Buchholz  <martin@xemacs.org>
9711
9712         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
9713         (next_frame_internal): Removed.  We now just have next_frame.
9714         (next_frame):
9715         Write a simpler and cleaner one-pass algorithm.
9716         Remove called_from_delete_device arg and #ifdefed-out code.
9717         (previous_frame):
9718         Renamed from prev_frame.  Update callers.
9719         Cleaned up to have an analogous implementation to next_frame.
9720         (other_visible_frames_internal): Remove the
9721         called_from_delete_device bogus arg, and hence, remove this
9722         function.  Just use other_visible_frames().
9723
9724         * window.c (Fnext_window):
9725         Prettify docstring.
9726         Since next_frame() is guaranteed to return a frame, remove check
9727         for nil inserted in previous patch.
9728         (Fprevious_window):
9729         Prettify docstring.
9730         Make code look more like Fnext_window.
9731         (window_loop):
9732         Respect the `console' arg when iterating through windows.
9733         Fixes bug: (get-buffer-window buffer t device) not respecting
9734         the `device' arg.
9735         This function needs more work, as others have pointed out.
9736
9737         * frame.h: Rename prev_frame to previous_frame.
9738         device_matches_console_spec no longer takes a `frame' arg.
9739
9740         * s/gnu.h:
9741         * s/linux.h:
9742         * s/hpux.h:
9743         Use EMACS_BLOCK_SIGNAL instead of sigblock.
9744         From "Golubev I. N." <gin@mo.msk.ru>.
9745
9746         * make-src-depend: Fix typo.
9747
9748 2000-09-13  Martin Buchholz  <martin@xemacs.org>
9749
9750         * window.c (Fnext_window):
9751         next_frame() might return nil, not a frame.
9752         Fixes this crash:
9753         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9754
9755         * frame.c (next_frame_internal):
9756         We've passed a frame if we've passed its device.
9757         Fixes this crash:
9758         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
9759 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
9760
9761 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9762
9763         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
9764         Allow option to suppress accelerators in menu/dialog items.
9765         (populate_or_checksum_helper): Pass dialog title through above.
9766
9767 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
9768
9769         * event-msw.c (mswindows_key_to_emacs_keysym):
9770         Add "pause" key, fix "menu" key.
9771
9772 2000-09-09  Martin Buchholz  <martin@xemacs.org>
9773
9774         * eval.c (reinit_vars_of_eval):
9775         Increase max_lisp_eval_depth to 1000,
9776         required for thai-xtis.el to byte-compile under some circumstances.
9777
9778 2000-09-04  Martin Buchholz  <martin@xemacs.org>
9779
9780         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
9781         From Kenichi Handa.
9782
9783 2000-09-01  Martin Buchholz  <martin@xemacs.org>
9784
9785         * make-src-depend: Make the generated Makefiles smaller.
9786
9787         * s/hpux.h (SETUP_SLAVE_PTY):
9788         Provide a %d in the format string for the errno argument.
9789
9790         * editfns.c (Ftemp_directory):
9791         Warning fix.
9792         Avoid buffer overrun on very long file name.
9793
9794         * input-method-xlib.c (XIM_init_device):
9795         6th parameter of XRegisterIMInstantiateCallback has different
9796         pointer types on different OSes, so simply cast to (void *).
9797
9798         * unexhp9k800.c: Warning fixes.  Fiddly changes.
9799
9800         * sysdll.c (dll_open):
9801         shl_load will hang hard if passed a NULL filename.
9802         Simply return NULL for compatibility with dlopen.
9803         * sysdll.c: Conform to XEmacs coding standards.
9804
9805         * sysdep.c (get_pty_max_bytes):
9806         Support pty input lines longer than 512 bytes on HP-UX 10.20.
9807
9808 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9809
9810         * tooltalk.c: Add #include <syssignal.h>
9811
9812 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
9813
9814         * s/hpux.h: Don't use undefined function sigunblock().
9815
9816 2000-08-31  Martin Buchholz  <martin@xemacs.org>
9817
9818         * config.h.in: Add HAVE_BALLOON_HELP.
9819         * emacs.c: Use HAVE_BALLOON_HELP.
9820         * Makefile.in.in (x_objs):
9821         Make Balloon Help conditional on finding shape.h.
9822
9823 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
9824
9825         * syntax.c (regex_emacs_buffer_p): New variable.
9826         * syntax.h (regex_emacs_buffer_p): extern.
9827         * search.c (looking_at_1):
9828         (string_match_1):
9829         (fast_string_match):
9830         (search_buffer): Set regex_emacs_buffer_p.
9831         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
9832         when before_dot, at_dot, after_dot.
9833
9834 2000-08-23  Andy Piper  <andy@xemacs.org>
9835
9836         * gui-x.c (popup_selection_callback): Only set action_occurred
9837         when we really have an image instance.
9838         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9839
9840 2000-08-23  Andy Piper  <andy@xemacs.org>
9841
9842         * gui-msw.c (mswindows_handle_gui_wm_command): set
9843         action_occurred.
9844         * gui-x.c (popup_selection_callback): ditto.
9845
9846         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
9847         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
9848         (struct Lisp_Image_Instance): add action_occurred flag.
9849
9850         * glyphs.c (redisplay_subwindow): use action_occurred flag.
9851         (image_instance_changed): ditto.
9852         (reset_frame_subwindow_instance_cache): only unmap windows - do
9853         not remove them from the cache also.
9854
9855         * glyphs-widget.c (tab_control_update): better debug.
9856         (progress_gauge_update): ditto.
9857         (layout_update): ditto.
9858         (layout_instantiate): ditto.
9859         (tab_control_order_only_changed): cope with null pending items.
9860
9861         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
9862         debug. Force selection of an item when an action occurred. Cope
9863         with null pending_items.
9864         (mswindows_progress_gauge_redisplay): better debug.
9865         * glyphs-x.c (x_tab_control_redisplay): ditto.
9866
9867         * redisplay.c (redisplay_frame): reset the frame cache if the
9868         frame is garbaged.
9869
9870         * window.c (Fset_window_configuration): potentially re-enable
9871         frame cache reset.
9872         (window_unmap_subwindows): need to finalize instances here since
9873         it is only used in mark_window_as_deleted.
9874
9875 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
9876
9877         * nas.c (SndOpenDataForReading):
9878         nas.c (WaveOpenDataForReading):
9879         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
9880         Somehow escaped from the 2000-08-14 patch.
9881
9882 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
9883
9884         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
9885         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
9886
9887 2000-08-21  Andy Piper  <andy@xemacs.org>
9888
9889         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
9890         window if it is not already displayed.
9891
9892         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
9893         it is not already displayed.
9894
9895         * window.c (Fset_window_configuration): don't reset the frame
9896         cache.
9897
9898         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
9899         instances from the frame cache if we are actually finalizing them.
9900         (reset_frame_subwindow_instance_cache): reset frame cache only
9901         after unmapping everything.
9902         (map_subwindow): set displayed flag after mapping.
9903
9904 2000-08-21  Martin Buchholz  <martin@xemacs.org>
9905
9906         * data.c (indirect_function):
9907         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
9908
9909         * eval.c (function_argcount):
9910         Use original function when signaling errors.
9911
9912 2000-08-18  Andy Piper  <andy@xemacs.org>
9913
9914         * frame.c (delete_frame_internal): use new
9915         free_frame_subwindow_instances name.
9916
9917         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
9918         (add_tab_item): make return type correct.
9919         (mswindows_tab_control_instantiate): assert index of tab.
9920         (mswindows_tab_control_redisplay): Re-code to use
9921         gui_item_equal_sans_selected and gui_item_list_find_selected.
9922
9923         * glyphs-widget.c (tab_control_update): Correct comment.
9924
9925         * window.c (window_unmap_subwindows): use new
9926         unmap_subwindow_instance_cache_mapper.
9927         (window_unmap_subwindows_cache_mapper): deleted.
9928         (Fset_window_configuration): comparisons should now be with
9929         EQ. Preserve the subwindow instance cache across configuration
9930         changes.
9931         (allocate_window): ditto.
9932         (make_dummy_parent): ditto.
9933
9934         * glyphs.c (free_frame_subwindow_instances): rename from
9935         free_frame_subwindow_instance_cache. finalize all instances rather
9936         than just those in the display cache.
9937         (finalize_all_subwindow_instances): walk windows unmapping and
9938         finalizing subwindows.
9939         (unmap_subwindow_instance_cache_mapper): moved from
9940         window.c. Allow finalization as well as unmapping.
9941
9942         * gui.c (gui_item_list_find_selected): new function.
9943
9944         * gui.h (gui_item_list_find_selected): declare.
9945
9946         * glyphs-x.c (x_tab_control_redisplay): pick tab
9947         explicitly. Re-code to use gui_item_equal_sans_selected and
9948         gui_item_list_find_selected.
9949
9950         * glyphs-x.h: add lwlib-utils.h
9951
9952         * buffer.c (Frecord_buffer): undo previous change.
9953
9954 2000-08-09  Vin Shelton  <acs@xemacs.org>
9955
9956         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
9957         possible.  Create temporary files more securely.  The patch was
9958         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
9959         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
9960         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
9961         for details.
9962
9963 2000-08-07  Ben Wing  <ben@xemacs.org>
9964
9965         * getloadavg.c: remove duplicate (and windows-breaking)
9966         includes of fcntl.h and sys/file.h.
9967
9968         * nt.c: remove duplicate getloadavg() definition.
9969
9970         * sysdll.h (Qdll_filename_encoding): add missing stand-in
9971         encodings.
9972
9973 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9974
9975         * eval.c (function_argcount): If function needs to be autoloaded
9976         actually use the loaded definition.
9977         GCPRO function.
9978
9979 2000-08-05  Ben Wing  <ben@xemacs.org>
9980
9981         * getloadavg.c: add prototype for getloadavg().  remove
9982         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
9983         of the code).  remove duplicate header includes.
9984
9985         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
9986
9987         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
9988         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
9989         useful load average.
9990
9991         * alloc.c (reinit_alloc_once_early): removed references to
9992         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
9993         the lisp vars are the only things referencing the malloc_sbrk_*
9994         vars, and they were already if 0'd out.  these vars only exist
9995         in the older malloc.c, which is basically unused, and they're
9996         only for informational purposes.
9997
9998         * m\*.h: removed useless VIRT_ADDR_VARIES.
9999
10000         * m\powerpc.h: removed stray NO_ARG_ARRAY.
10001
10002 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10003
10004         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
10005         color if the image is a mono pixmap.
10006
10007 2000-07-30  Ben Wing  <ben@xemacs.org>
10008
10009         * Makefile.in.in (release):
10010         Remove stray @.
10011
10012         * buffer.c (directory_is_current_directory):
10013         * dired-msw.c (mswindows_get_files):
10014         * dired.c:
10015         * dired.c (Fdirectory_files):
10016         * dired.c (file_name_completion_stat):
10017         * dired.c (Ffile_attributes):
10018         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
10019         preprocessor tricks, to avoid problems on some machines
10020         (e.g. SCO).
10021
10022         * callproc.c (egetenv): GC docs.
10023
10024         * console-msw.h:
10025         * console-msw.h (struct mswindows_dialog_id):
10026         * lrecord.h (lrecord_type):
10027         New object for use with MSW dialogs.
10028
10029         * console.h (struct console_methods):
10030         New enable/disable frame methods, for proper modal dialogs.
10031
10032         * device-msw.c (msprinter_default_printer): Fix to follow
10033         proper Mule conventions.
10034
10035         * device-msw.c:
10036         * device-msw.c (signal_open_printer_error):
10037         * device-msw.c (msprinter_init_device):
10038         * device-msw.c (ensure_not_printing):
10039         * device-msw.c (plist_get_margin):
10040         * device-msw.c (Fmsprinter_select_settings):
10041         * device-msw.c (finalize_devmode):
10042         * device-msw.c (Fmsprinter_settings_despecialize):
10043         * device-msw.c (signal_enum_priner_error):
10044         * extents.c (decode_extent):
10045         * extents.c (decode_map_extents_flags):
10046         * extents.c (decode_extent_at_flag):
10047         * extents.c (Fextent_at):
10048         * extents.c (Fextents_at):
10049         * extents.c (symbol_to_glyph_layout):
10050         [[[[2]]]] Use structured errors.
10051
10052         * dialog-msw.c:
10053         * dialog-msw.c (mswindows_is_dialog_msg):
10054         * dialog-msw.c (mark_mswindows_dialog_id):
10055         * dialog-msw.c (dialog_proc):
10056         * dialog-msw.c (handle_question_dialog_box):
10057         * dialog-msw.c (syms_of_dialog_mswindows):
10058         Define new object to clean up marking; use it as a dialog identifier.
10059         Call new delete-dialog-box-hook.
10060
10061         * dialog-x.c (dbox_selection_callback):
10062         * dialog-x.c (dbox_descriptor_to_widget_value):
10063         * dialog-x.c (x_make_dialog_box_internal):
10064         Call new delete-dialog-box-hook.
10065         Return an id.
10066
10067         * dialog.c:
10068         * dialog.c (syms_of_dialog):
10069         * dialog.c (vars_of_dialog):
10070         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
10071
10072         * eval.c:
10073         * eval.c (signal_call_debugger):
10074         when noninteractive, output stack traces on the console instead
10075         of in a (never-seen) buffer.
10076
10077         * eval.c (signal_type_error):
10078         * eval.c (invalid_argument_2):
10079         * lisp.h:
10080         new funs for use w/structured errors.
10081
10082         * event-Xt.c:
10083         * event-Xt.c (x_to_emacs_keysym):
10084         * event-Xt.c (describe_event):
10085         * event-Xt.c (emacs_Xt_event_handler):
10086         * event-Xt.c (vars_of_event_Xt):
10087         * event-msw.c:
10088         * event-msw.c (mswindows_wnd_proc):
10089         * event-msw.c (vars_of_event_mswindows):
10090         rename {x,mswindows}-debug-events to debug-{}-events for
10091         consistency with other debug-foo variables.
10092
10093         * event-stream.c:
10094         document next-event more clearly.
10095
10096         * fileio.c (Ffile_name_directory):
10097         * fileio.c (Ffile_name_nondirectory):
10098         * fileio.c (Funhandled_file_name_directory):
10099         * fileio.c (file_name_as_directory):
10100         * fileio.c (Ffile_name_as_directory):
10101         * fileio.c (directory_file_name):
10102         * fileio.c (Fdirectory_file_name):
10103         * fileio.c (Fmake_temp_name):
10104         * fileio.c (Ffile_truename):
10105         * fileio.c (Fsubstitute_in_file_name):
10106         * fileio.c (expand_and_dir_to_file):
10107         * fileio.c (barf_or_query_if_file_exists):
10108         * fileio.c (check_executable):
10109         * fileio.c (Ffile_exists_p):
10110         * fileio.c (Ffile_writable_p):
10111         * fileio.c (Ffile_directory_p):
10112         * fileio.c (Ffile_regular_p):
10113         * fileio.c (Ffile_modes):
10114         * fileio.c (Ffile_newer_than_file_p):
10115         * fileio.c (Fverify_visited_file_modtime):
10116         * fileio.c (Fset_visited_file_modtime):
10117         * fileio.c (auto_save_1):
10118         (1). (2).
10119         fix up gcpro's.
10120
10121         * frame-msw.c:
10122         * frame-msw.c (mswindows_init_frame_1):
10123         * frame-msw.c (mswindows_enable_frame):
10124         * frame-msw.c (error_frame_unsizable):
10125         * frame-msw.c (msprinter_init_frame_1):
10126         * frame-msw.c (msprinter_init_frame_3):
10127         * frame-msw.c (console_type_create_frame_mswindows):
10128         (2).
10129         implement new enable/disable frame methods.
10130
10131         * frame-x.c:
10132         * frame-x.c (x_enable_frame):
10133         * frame-x.c (console_type_create_frame_x):
10134         implement new enable/disable frame methods.
10135
10136         * frame.c:
10137         * frame.c (Fdisable_frame):
10138         * frame.c (syms_of_frame):
10139         * frame.h (struct frame):
10140         implement new enable/disable frame methods/functions.
10141
10142         * general-slots.h:
10143         add initial-focus.
10144
10145         * glyphs-msw.c (mswindows_widget_instantiate):
10146         comment that initial-focus should be implemented.
10147
10148         * glyphs-widget.c:
10149         * glyphs-widget.c (check_valid_instantiator):
10150         * glyphs-widget.c (check_valid_orientation):
10151         * glyphs-widget.c (check_valid_tab_orientation):
10152         * glyphs-widget.c (check_valid_justification):
10153         * glyphs-widget.c (check_valid_border):
10154         * glyphs-widget.c (check_valid_callback):
10155         * glyphs-widget.c (check_valid_int_or_function):
10156         * glyphs-widget.c (check_valid_string_or_vector):
10157         * glyphs-widget.c (check_valid_item_list_1):
10158         * glyphs-widget.c (widget_validate):
10159         * glyphs-widget.c (combo_box_validate):
10160         * glyphs-widget.c (widget_instantiate):
10161         * glyphs-widget.c (syms_of_glyphs_widget):
10162         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
10163         * glyphs-widget.c (image_instantiator_combo_box):
10164         * glyphs-widget.c (image_instantiator_scrollbar):
10165         * glyphs-widget.c (image_instantiator_tab_control):
10166         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
10167         (2).
10168         support (unimplemented) keyword initial-focus.
10169         reindent long macros.
10170
10171         * glyphs-x.c (x_redisplay_widget):
10172         * glyphs-x.c (x_button_instantiate):
10173         * glyphs-x.c (x_button_redisplay):
10174         * glyphs-x.c (x_progress_gauge_instantiate):
10175         * glyphs-x.c (x_edit_field_instantiate):
10176         * glyphs-x.c (x_combo_box_instantiate):
10177         * glyphs-x.c (x_tab_control_instantiate):
10178         * glyphs-x.c (x_label_instantiate):
10179         * gui-x.c:
10180         * gui-x.c (button_item_to_widget_value):
10181         * gui-x.c (gui_items_to_widget_values_1):
10182         * gui-x.c (gui_item_children_to_widget_values):
10183         * gui-x.c (gui_items_to_widget_values):
10184         * gui-x.h:
10185         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10186         add new flag to gui-parsing routines to indicate whether
10187         accelerator specs should be supported.
10188
10189         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
10190
10191         * glyphs.h (struct Lisp_Image_Instance):
10192         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
10193         add initial-focus flag.
10194
10195         * gui.c:
10196         * gui.c (syms_of_gui):
10197         * gui.c (vars_of_gui):
10198         clean up menu-no-selection-hook.
10199
10200         * gui.h:
10201         support delete-dialog-box-hook.
10202
10203         * lread.c (Fload_internal):
10204         * lread.c (locate_file_in_directory_mapper):
10205         (1).
10206
10207         * lrecord.h:
10208         * lrecord.h (struct toolbar_button):
10209         * lrecord.h (syms_of_toolbar):
10210         document how to create a new object.
10211
10212         * menubar-msw.c (mswindows_char_is_accelerator):
10213         may be called on frames w/o menus.
10214
10215         * menubar.c (vars_of_menubar):
10216         clean up :filter docs.
10217
10218         * nt.c (readdir):
10219         * ntproc.c:
10220         (1).
10221
10222         * process-nt.c:
10223         * process-nt.c (validate_signal_number):
10224         * process-nt.c (signal_cannot_launch):
10225         * process-nt.c (nt_create_process):
10226         * process-nt.c (nt_send_process):
10227         * process-nt.c (nt_kill_child_process):
10228         * process-nt.c (nt_open_network_stream):
10229         * process-nt.c (syms_of_process_nt):
10230         (2).
10231         delete quote-handling.  call new lisp code that does it better.
10232
10233         * process-unix.c (connect_to_file_descriptor):
10234         * process-unix.c (allocate_pty):
10235         * process-unix.c (unix_send_process):
10236         * process-unix.c (unix_kill_child_process):
10237         * process-unix.c (unix_open_network_stream):
10238         * process-unix.c (unix_open_multicast_group):
10239         (1). (2).
10240
10241         * process.c:
10242         * process.c (Fstart_process_internal):
10243         (2).  need to canonicalize process path even if absolute.
10244
10245         * select-msw.c (symbol_to_ms_cf):
10246         * select-msw.c (ms_cf_to_symbol):
10247         * select-msw.c (cf_is_autofreed):
10248         * select-msw.c (mswindows_destroy_selection):
10249         * select.c:
10250         * select.c (syms_of_select):
10251         * select.h:
10252         support dibv5, fix bugs. (from Mike Alexander)
10253
10254         * select.c (Fget_selection_internal):
10255         * select.c (select_convert_out):
10256
10257         * sysdep.c:
10258         * sysdep.c (xemacs_stat):
10259         renamed.
10260
10261         * sysdep.c (mkdir):
10262         * sysdep.c (rmdir):
10263         but keep original stat() here because we provide encapsulation
10264         around these funs.
10265
10266         * sysfile.h:
10267         * sysfile.h (fstat):
10268         remove stat garbage.
10269
10270         * syswindows.h:
10271         fix X/MSW conflict.
10272         don't include tchar.h.  it's inappropriate because it makes
10273         compile-time distinctions when we want runtime distinctions.
10274         (we provide our own tchar replacements)
10275
10276         * toolbar.c:
10277         use default object printer for toolbar-button.
10278
10279         * unexcw.c:
10280         make sure we don't encapsulate.
10281
10282         * window.c (vars_of_window):
10283         emphasize that temp-buffer-show-hook is obsolete.
10284
10285 2000-08-05  Martin Buchholz  <martin@xemacs.org>
10286
10287         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
10288         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
10289
10290         * events.c (Fevent_timestamp_lessp):
10291         Not 64-bit clean.  Use EMACS_INT, not int.
10292
10293 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
10294
10295         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
10296         unsigned int and changed the last enum to
10297         lrecord_type_last_built_in_type.
10298         (lrecord_implementations_table): changed prototype to know how
10299         long the array is supposed to be.
10300         (lrecord_type_count): new unsigned int to keep track of the
10301         current number of lisp lrecord types.
10302         (DEFINE_EXTERNAL_LRECORD):
10303         (DECLARE_EXTERNAL_LRECORD): Added these two for external
10304         dynamic-modules to declare new lisp types. They are the same
10305         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
10306         int for each new type, and increment lrecord_type_count by 1.
10307
10308         * alloc.c (lrecord_implementations_table): Changed to reference
10309         lrecord_type_last_built_in_type for the size of the array.
10310         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
10311
10312 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10313
10314         * glyphs.h (check_valid_item_list): Renamed from
10315         check_valid_item_list_1.
10316
10317 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
10318
10319         * select.c (Qselect_coerce): New.
10320         * select.c (Vselection_coercion_alist): New.
10321         * select.c (syms_of_select): Declare.
10322         * select.c (get-selection-internal): Use it.
10323         Use the new select-coerce functionality.
10324
10325         * select.c (select_coerce): New.
10326         * select.h (select_coerce): Declare.
10327         New function to coerce one type of data into another.
10328
10329 2000-08-03  Martin Buchholz  <martin@xemacs.org>
10330
10331         * callproc.c (Fcall_process_internal):
10332         (Fcall_process_internal):
10333         * process-unix.c (unix_create_process):
10334         Save and restore the value of errno, so that error messages are accurate.
10335
10336 2000-08-01  Martin Buchholz  <martin@xemacs.org>
10337
10338         * elhash.c (print_hash_table):
10339         Fix printing of hash tables to also use `key-and-value' instead of `t'.
10340         Prettify docstrings and indentation.
10341
10342 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10343
10344         * window.c (Fwindow_pixel_edges): Subtract frame border and
10345         gutter size.
10346
10347 2000-07-31  Andy Piper  <andy@xemacs.org>
10348
10349         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
10350         will acknowledge the change.
10351
10352         * glyphs.h: declare tab_control_order_only_changed.
10353
10354         * glyphs-x.c (x_tab_control_redisplay): use
10355         tab_control_order_only_changed.
10356
10357         * glyphs-widget.c (tab_control_order_only_changed): new function.
10358
10359         * glyphs-msw.c (mswindows_tab_control_redisplay): use
10360         tab_control_order_only_changed.
10361
10362         * gui.c (gui_item_equal_sans_selected): new function.
10363         (gui_item_equal): use it.
10364
10365         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
10366         :properties in favor of :items..
10367
10368         * glyphs-widget.c (check_valid_item_list): rename from
10369         check_valid_item_list_1.
10370         (check_valid_item_list_1): renamed.
10371         (combo_box_validate): deprecate :properties in favor of :items.
10372         (widget_instantiate): ditto.
10373         (tab_control_update): ditto.
10374         (image_instantiator_combo_box): ditto.
10375         (image_instantiator_tree_view): ditto.
10376         (image_instantiator_tab_control): ditto.
10377         (layout_post_instantiate): remove dead code.
10378
10379         * print.c (debug_print_no_newline): only write to debugger if in
10380         WIN32_NATIVE.
10381
10382         * elhash.c (Fmake_hash_table): update doc string.
10383
10384         * event-msw.c (mswindows_wnd_proc): don't allow processing of
10385         messages whilst in GC. This at least stops XEmacs crashing but has
10386         the potential for wierd behaviour.
10387
10388 2000-07-31  Martin Buchholz  <martin@xemacs.org>
10389
10390         * config.h.in:
10391         Make existence of s&m files optional.
10392
10393         * s/bsd386.h: Remove HAVE_GETLOADAVG.
10394         * s/freebsd.h: Remove HAVE_GETLOADAVG.
10395         * s/gnu.h: Remove HAVE_GETLOADAVG.
10396         * s/netbsd.h: Remove HAVE_GETLOADAVG.
10397         * s/sol2.h: Remove HAVE_GETLOADAVG.
10398         * lisp.h: Remove getloadavg() declaration.
10399         * fns.c:
10400         Include <sys/loadavg.h> if available.
10401         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
10402         * config.h.in:  Group together getloadavg()-related macros.
10403         Use only configure-time tests to detect getloadavg().
10404
10405 2000-07-30  Martin Buchholz  <martin@xemacs.org>
10406
10407         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
10408
10409 2000-07-25  Andy Piper  <andy@xemacs.org>
10410
10411         * syswindows.h: add tchar.h for native builds.
10412
10413         * frame.c (syms_of_frame): remove set-glyph-image.
10414
10415         * general-slots.h: add Qset_glyph_image.
10416
10417         * glyphs-widget.c (layout_update): add domain arg to
10418         set-glyph-image.
10419         (syms_of_glyphs_widget): remove set-glyph-image.
10420
10421 2000-07-23  Ben Wing  <ben@xemacs.org>
10422
10423         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
10424         Vpopup_frame_list.
10425
10426 2000-07-22  Andy Piper  <andy@xemacs.org>
10427
10428         * symsinit.h: add syms_of_win32().
10429
10430         * gui-msw.c (syms_of_gui_mswindows): remove
10431         Fmswindows_shell_execute.
10432         (Fmswindows_shell_execute): moved to win32.c.
10433
10434         * emacs.c (main_1): add syms_of_win32 ().
10435
10436         * win32.c (init_potentially_nonexistent_functions): rewrite in
10437         compiler-friendly terms.
10438         (Fmswindows_shell_execute): move here from gui-msw.c.
10439         (syms_of_win32): new.
10440
10441         * device-msw.c (Fmswindows_printer_list): clean up args to
10442         EnumPrinters.
10443         Don't include tchar under cygwin or mingw.
10444         (msprinter_default_printer): make cygwin-friendly.
10445
10446 2000-07-21  Andy Piper  <andy@xemacs.org>
10447
10448         * glyphs-widget.c (image_instantiator_tree_view): use tab
10449         control's update function.
10450         (layout_property): new function. Retrieve items.
10451
10452         * glyphs-msw.c (mswindows_tree_view_redisplay): new
10453         function. Re-populate the tree view from the pending items.
10454
10455         * glyphs.c (instantiate_image_instantiator): Make sure the domain
10456         is designated the parent if the domain is an image instance. This
10457         is needed so that dirtiness can be cascade up the hierarchy and
10458         thus for layout children to be redisplayed correctly.
10459         (allocate_image_instance): rename glyph -> parent.
10460
10461         * redisplay.h: change redisplay_output_layout signature.
10462
10463         * redisplay-msw.c (mswindows_output_display_block): use domain
10464         arg.
10465
10466         * redisplay-x.c (x_output_display_block): use domain arg.
10467
10468 2000-07-10  Andy Piper  <andy@xemacs.org>
10469
10470         * window.c (Fset_window_configuration): add comment.
10471
10472         * redisplay-output.c (compare_runes):
10473         (redisplay_output_subwindow): redisplay rather than update subwindow.
10474         (redisplay_output_layout): ditto.
10475
10476         * redisplay-msw.c (mswindows_frame_output_end):
10477         (mswindows_frame_output_end): make defer window pos optional.
10478
10479         * lisp.h: add Flast.
10480
10481         * glyphs.h (struct image_instantiator_methods): add dest_mask top
10482         normalize method. Change update method to be for changed
10483         instantiators. Add redisplay method. Change signature of layout
10484         method.
10485         (struct Lisp_Image_Instance): add instantiator.
10486         (IMAGE_INSTANCE_INSTANTIATOR): new.
10487         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
10488         (XIMAGE_INSTANCE_INSTANTIATOR): new.
10489         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
10490
10491         * glyphs.c:
10492         (find_instantiator_differences): new function.
10493         (Fset_instantiator_property): new convenience function.
10494         (check_image_instance_structure): strictly check for vector
10495         instantiators.
10496         (normalize_image_instantiator): make non-static.
10497         (instantiate_image_instantiator): pass on dest_mask and use new
10498         signatures for image_instance_layout and friends.
10499         (mark_image_instance): mark the instantiator. Mark the subwindow
10500         face not the widget face.
10501         (image_instance_equal): add instantiator.
10502         (image_instance_hash): ditto.
10503         (allocate_image_instance): ditto.
10504         (Fset_image_instance_property): removed.
10505         (Fimage_instance_file_name): ditto.
10506         (Fcolorize_image_instance): ditto.
10507         (image_instance_layout): add offsets to be set.
10508         (update_image_instance): new function. update an image instance
10509         from its changed instantiator.
10510         (inherit_normalize): add dest_mask.
10511         (xbm_normalize): ditto.
10512         (xface_normalize): ditto.
10513         (xpm_normalize): ditto.
10514         (text_update): set_property -> update.
10515         (image_instantiate): use the glyph identity as a hash key, not the
10516         instantiator.
10517         (glyph_width): use new image_instance_layout signature.
10518         (glyph_ascent): ditto.
10519         (glyph_descent): ditto.
10520         (glyph_height): ditto.
10521         (glyph_query_geometry): ressurrect.
10522         (glyph_layout): ditto.
10523         (redisplay_subwindow): update -> redisplay.
10524         (syms_of_glyphs): add Fset_instantiator_property.
10525         (image_instantiator_format_create): set_property -> update.
10526
10527         * glyphs-x.c:
10528         (autodetect_normalize): add dest_maks to signature.
10529         (x_redisplay_subwindow): update -> redisplay.
10530         (x_redisplay_widget): ditto.
10531         (x_button_redisplay): ditto.
10532         (x_progress_gauge_redisplay): ditto.
10533         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
10534         stacking order.
10535         (console_type_create_glyphs_x): update -> redisplay.
10536         (image_instantiator_format_create_glyphs_x): ditto.
10537
10538         * glyphs-widget.c:
10539         (check_valid_instantiator): disallow glyphs in the instantiator,
10540         they must now be vectors.
10541         (check_valid_instantiator_list): ditto.
10542         (glyph_instantiator_to_glyph): use internal symbol rather than
10543         intern.
10544         (widget_update): renamed from widget_set_property. Call cascaded
10545         update methods.
10546         (redisplay_widget): renamed from update_widget.
10547         (widget_layout): image_instance_layout now takes position as well
10548         as size.
10549         (widget_normalize): ditto.
10550         (widget_instantiate): ditto.
10551         (tab_control_query_geometry) ditto.:
10552         (tab_control_update): renamed from tab_control_set_property.
10553         (progress_gauge_update): set_property -> update.
10554         (layout_normalize): rewrite so that child instantiators are
10555         normalized also.
10556         (layout_update): new function. Create glyphs from the normalized
10557         children and cope with any other layout keywords. We do not
10558         instantiate children here that will be take care of by
10559         redisplay_output_layout.
10560         (layout_instantiate): call layout_update and not much else.
10561         (layout_post_instantiate): not sure whether this is needed
10562         anymore.
10563         (layout_query_geometry): query glyph geometry rather than
10564         image_instance geometry.
10565         (layout_layout): set offsets from pass in parameters. Use glyph
10566         geometry and layout functions rather than image instance ones.
10567         (native_layout_layout): ditto.
10568         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
10569         (image_instantiator_widget): set_property -> update.
10570         (image_instantiator_buttons): ditto.
10571         (image_instantiator_progress_guage): ditto.
10572         (image_instantiator_tab_control): ditto.
10573         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
10574         (image_instantiator_layout): add update method.
10575
10576         * glyphs-msw.c (bmp_normalize):
10577         (mswindows_resource_normalize): add dest_mask so that it can be
10578         proprogated by layout_normalize.
10579         (begin_defer_window_pos): make optional because it may not be the
10580         right thing to do and it introduces differences with X.
10581         (mswindows_unmap_subwindow): ditto.
10582         (mswindows_map_subwindow): ditto.
10583         (mswindows_redisplay_subwindow): renamed from
10584         mswindows_update_subwindow.
10585         (mswindows_redisplay_widget): ditto.
10586         (mswindows_button_redisplay): renamed from
10587         mswindows_button_update. Update is now what the instantiation
10588         function does for a changed instantiator.
10589         (mswindows_progress_gauge_instantiate): set the progress value
10590         here if appropriate.
10591         (mswindows_tab_control_redisplay): cope with re-ordering of the
10592         members of the tab widget by simply selecting the new top
10593         widget. This makes things appear ok if you click on a tab.
10594         (mswindows_combo_box_instantiate): image_instance_layout now takes
10595         position as well as size.
10596         (mswindows_progress_gauge_redisplay): renamed from
10597         mswindows_progress_gauge_update.
10598         (console_type_create_glyphs_mswindows): fix update -> redisplay.
10599         (image_instantiator_format_create_glyphs_mswindows): ditto.
10600
10601         * glyphs-eimage.c (jpeg_normalize):
10602         (gif_normalize):
10603         (png_normalize):
10604         (tiff_normalize): add dest_mask so that it can be proprogated by
10605         layout_normalize.
10606
10607         * elhash.c:
10608         (print_hash_table):
10609         (hash_table_weakness_validate):
10610         (decode_hash_table_weakness):
10611         (Fhash_table_weakness):
10612         (Fhash_table_type):
10613         (syms_of_elhash): use Ben's naming scheme for hashtable types..
10614
10615         * console.h (struct console_methods): move update_* to
10616         redisplay_*.
10617
10618 2000-07-20  Ben Wing  <ben@xemacs.org>
10619
10620         * *.[ch] (XSETOBJ): remove unused middle argument.
10621         lisp-disunion.h: correct wrap_object() to one argument.
10622
10623 2000-07-15  Ben Wing  <ben@xemacs.org>
10624
10625         * s/cygwin32.h:
10626         * s/cygwin32.h (CYGWIN_CONV_PATH):
10627         Add missing logb prototype for v1.1.
10628         Use post-b20 names and alias to pre-b20 names when pre-b20.
10629
10630         * s/windowsnt.h: [5].
10631
10632 2000-07-15  Ben Wing  <ben@xemacs.org>
10633
10634         * Makefile.in.in (x_objs):
10635         * Makefile.in.in (sheap_objs):
10636         * Makefile.in.in (objs):
10637         added win32.o, cosmetic cleanups.
10638
10639         * alloc.c (Fmake_byte_code):
10640         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
10641         etc. macros which declare their own args now.
10642
10643         * alloc.c (syms_of_alloc):
10644         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
10645
10646         * buffer.c:
10647         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
10648
10649         * buffer.c (Fget_file_buffer):
10650         Fixed GCPRO problem.
10651
10652         * buffer.c (get_truename_buffer):
10653         Fixed comment about GC checking.
10654
10655         * buffer.c (syms_of_buffer):
10656         Undeclared those dedicated frame funs.
10657         [2].
10658
10659         * buffer.h:
10660         Define convenience macros for internal/external conversions.
10661         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
10662         and Qenvironment_variable_encoding for cleaner code.
10663
10664         * bufslots.h:
10665         Remove dedicated-frame; in lisp.
10666
10667         * bytecode.c (funcall_compiled_function):
10668         [1].
10669
10670         * bytecode.c (syms_of_bytecode):
10671         [2].
10672
10673         * console-msw.c:
10674         * console-msw.c (mswindows_show_console): Rewrote.
10675
10676         * console-msw.c (Fmswindows_debugging_output): New.
10677         Sends to OutputDebugString (special MSWin debugger interface).
10678
10679         * console-msw.c (Fmswindows_message_box):
10680         Fixed stupid bugs so it works when called from kill-emacs.
10681
10682         * console-msw.c (syms_of_console_mswindows):
10683         Declare Fmswindows_debugging_output.
10684
10685         * console-msw.h:
10686         New MSWin prototypes.
10687
10688         * console-msw.h (struct mswindows_frame):
10689         New entry last-click-mods for improved button-modifier support.
10690
10691         * console-msw.h (FRAME_MSWINDOWS_POPUP):
10692         New struct entry `popup' with corresponding accessor.
10693
10694         * console-x.c:
10695         * console-x.c (split_up_display_spec):
10696         * console-x.c (get_display_arg_connection):
10697         * console-x.c (x_semi_canonicalize_console_connection):
10698         * console-x.c (x_canonicalize_device_connection):
10699         [[[6]]]: Change char to more specific type.
10700         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
10701
10702         * console-x.c (x_semi_canonicalize_console_connection):
10703         * console-x.c (x_canonicalize_device_connection):
10704         [[[9]]]: Fix up error signalling to use new structured error system.
10705
10706         * console-x.h:
10707         [[[4]]]: Define codesys aliases:
10708         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
10709         Qx_color_name_encoding, Qx_display_name_encoding.
10710
10711         * console.h (struct console_methods):
10712         New method make_dialog_box_internal supersedes older
10713         popup_dialog_box method.
10714
10715         * data.c:
10716         Define many new errors, part of new structured errors.
10717
10718         * data.c (init_errors_once_early):
10719         * data.c (syms_of_data):
10720         [2].
10721
10722         * device-msw.c (mswindows_init_device):
10723         [[[5]]]: Cleanup to support NT 3.51.
10724
10725         * device-msw.c (decode_devmode): Cleanup.
10726
10727         * device-msw.c (mswindows_handle_print_setup_dialog_box):
10728         * device-msw.c (mswindows_handle_print_dialog_box):
10729         * device-msw.c (mswindows_handle_page_setup_dialog_box):
10730         * device-msw.c (syms_of_device_mswindows):
10731         Delete the dialog box primitives recently introduced by Kirill and
10732         instead interface to general dialog box interface.
10733
10734         * device-x.c:
10735         * device-x.c (compute_x_app_name):
10736         * device-x.c (x_init_device):
10737         * device-x.c (Fx_valid_keysym_name_p):
10738         * device-x.c (Fx_set_font_path):
10739         [6].
10740         [7].
10741
10742         * device.h (wrap_device): New.
10743         First of its kind; meant to replace XSETDEVICE.
10744
10745         * dialog-msw.c: Many file-dialog symbols.
10746
10747         * dialog-msw.c (mswindows_register_popup_frame): New.
10748         * dialog-msw.c (mswindows_is_dialog_msg): New.
10749         For supporting kbd traversal in dialog boxes.
10750
10751         * dialog-msw.c (dialog_proc):
10752         Support hitting ESC in dialogs.
10753
10754         * dialog-msw.c (struct):
10755         Common dialog box errors.
10756
10757         * dialog-msw.c (handle_file_dialog_box): New.
10758         Add file dialog code.
10759
10760         * dialog-msw.c (handle_question_dialog_box):
10761         Redo existing code to support new question dialog syntax.
10762
10763         * dialog-msw.c (console_type_create_dialog_mswindows):
10764         We support new dialog console method.
10765
10766         * dialog-msw.c (syms_of_dialog_mswindows):
10767         * dialog-msw.c (vars_of_dialog_mswindows):
10768         New file dialog symbols, vars.
10769
10770         * dialog-x.c:
10771         * dialog-x.c (maybe_run_dbox_text_callback):
10772         * dialog-x.c (dbox_descriptor_to_widget_value):
10773         * dialog-x.c (x_make_dialog_box_internal):
10774         * dialog-x.c (console_type_create_dialog_x):
10775         Mule-ize entire file.
10776         Redo to support question dialog syntax.
10777         [6].
10778
10779         * dialog.c:
10780         * dialog.c (Fmake_dialog_box_internal):
10781         * dialog.c (syms_of_dialog):
10782         Kill old popup-dialog-box, replace with new primitive.
10783         Just call device method or signal error.
10784
10785         * eldap.c (Fldap_open):
10786         * eldap.c (Fldap_search_basic):
10787         * eldap.c (Fldap_add):
10788         * eldap.c (Fldap_modify):
10789         [1].
10790         [7].
10791
10792         * emacs.c:
10793         * emacs.c (make_arg_list_1):
10794         * emacs.c (make_arg_list):
10795         Mule-ize call to dll_init().
10796         [6].
10797         [8].
10798
10799         * emacs.c (make_argc_argv):
10800         * emacs.c (free_argc_argv):
10801         * emacs.c (init_cmdargs):
10802         * emacs.c (main_1):
10803         * emacs.c (Fkill_emacs):
10804         * emacs.c (Fdump_emacs):
10805         Update comments about what can be used in syms_* etc.
10806         Call init_win32() when necessary.
10807         Fix up MS Win dialog box in kill-buffer to actually work right.
10808         [7].
10809
10810         * eval.c:
10811         * eval.c (For):
10812         * eval.c (Fand):
10813         * eval.c (Fprogn):
10814         * eval.c (Fprog1):
10815         * eval.c (Fprog2):
10816         * eval.c (FletX):
10817         * eval.c (Flet):
10818         * eval.c (condition_case_3):
10819         * eval.c (Feval):
10820         * eval.c (function_argcount):
10821         * eval.c (funcall_lambda):
10822         [1].
10823
10824         * eval.c (type_error): New.
10825         * eval.c (maybe_type_error): New.
10826         * eval.c (continuable_type_error): New.
10827         * eval.c (maybe_continuable_type_error): New.
10828         * eval.c (type_error_with_frob): New.
10829         * eval.c (maybe_type_error_with_frob): New.
10830         * eval.c (continuable_type_error_with_frob): New.
10831         * eval.c (maybe_continuable_type_error_with_frob): New.
10832         New functions for use with structured errors.
10833
10834         * event-Xt.c:
10835         * event-Xt.c (x_event_to_emacs_event):
10836         Buttons are now modifiers too.
10837
10838         * event-Xt.c (emacs_Xt_current_event_timestamp):
10839         Implement new event method.
10840         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
10841
10842         * event-msw.c:
10843         * event-msw.c (ntpipe_shove_writer): [5].
10844         * event-msw.c (mswindows_enqueue_mouse_button_event):
10845         * event-msw.c (mswindows_drain_windows_queue):
10846         * event-msw.c (mswindows_wnd_proc): [7].
10847         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
10848         * event-msw.c (mswindows_modifier_state):
10849         Throughout: support new button modifiers.
10850
10851         * event-msw.c (emacs_mswindows_current_event_timestamp):
10852         Implement new event method.
10853         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
10854
10855         * event-stream.c:
10856         * event-stream.c (event_stream_current_event_timestamp): New.
10857         * event-stream.c (maybe_kbd_translate): New functionality.
10858         * event-stream.c (vars_of_event_stream):
10859         Document new kbd-translate-table functionality.
10860
10861         * event-stream.c (Fcurrent_event_timestamp): New.
10862         New primitive for use in fabricated events.
10863         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
10864
10865         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
10866
10867         * events.c:
10868         * events.c (Fmake_event):
10869         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
10870         [1].
10871         [9].
10872
10873         * events.c (format_event_object): fix gcc warnings.
10874
10875         * events.c (Fevent_timestamp): Document new primitives.
10876
10877         * events.c (TIMESTAMP_HALFSPACE): New.
10878
10879         * events.c (Fevent_timestamp_lessp): New.  New primitive for
10880         comparing timestamps correctly (half-space algorithm).
10881
10882         * events.c (Fevent_modifier_bits): Doc fix.
10883
10884         * events.c (Fevent_modifiers): Major doc addition.
10885         * events.c (event_x_y_pixel_internal): Typo fix.
10886         * events.c (syms_of_events): Declare new primitives.
10887
10888         * events.h:
10889         Update long comment for button modifiers, timestamps.
10890
10891         * events.h (struct event_stream):
10892         New current_event_timestamp method.
10893
10894         * extents.c:
10895         * extents.c (extent_in_region_p):
10896         * extents.c (decode_extent):
10897         * extents.c (Fset_extent_parent):
10898         * extents.c (decode_map_extents_flags):
10899         Fix gcc warnings.
10900         [9].
10901
10902         * extents.c (struct extent_at_arg):
10903         * extents.c (decode_extent_at_flag):
10904         * extents.c (extent_at_mapper):
10905         * extents.c (extent_at_bytind):
10906         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
10907         * extents.c (Fextents_at): New primitive. [9].
10908         * extents.c (symbol_to_glyph_layout): [9].
10909         Support new primitive `extents-at'.
10910
10911
10912         * extents.c (get_text_property_bytind):
10913         extent_at_bytind has another arg.
10914         [9].
10915
10916         * extents.c (syms_of_extents): New primitive.
10917
10918         * file-coding.c (Fmake_coding_system): [1].
10919         * file-coding.c (subsidiary_coding_system): fix gcc warning
10920         * file-coding.c (syms_of_file_coding): [2].
10921
10922         * fileio.c (Fexpand_file_name):
10923         * fileio.c (Fsysnetunam):
10924         * fileio.c (Ffile_exists_p):
10925         * fileio.c (Ffile_executable_p):
10926         * fileio.c (Fverify_visited_file_modtime):
10927         Clean up GCPROing.
10928
10929         * fileio.c (syms_of_fileio): [2].
10930
10931         * filelock.c (lock_file_1):
10932         * filelock.c (current_lock_owner):
10933         * filelock.c (lock_if_free):
10934         * filelock.c (lock_file):
10935         * filelock.c (unlock_file):
10936         Clean up GCPROing.
10937
10938         * fns.c (concat): Fix gcc warning.
10939
10940         * fns.c (Fmember):
10941         * fns.c (Fold_member):
10942         * fns.c (Fmemq):
10943         * fns.c (Fold_memq):
10944         * fns.c (memq_no_quit):
10945         * fns.c (Fassoc):
10946         * fns.c (Fold_assoc):
10947         * fns.c (Fassq):
10948         * fns.c (Fold_assq):
10949         * fns.c (assq_no_quit):
10950         * fns.c (Frassoc):
10951         * fns.c (Fold_rassoc):
10952         * fns.c (Frassq):
10953         * fns.c (Fold_rassq):
10954         * fns.c (rassq_no_quit):
10955         * fns.c (Fdelete):
10956         * fns.c (Fold_delete):
10957         * fns.c (Fdelq):
10958         * fns.c (Fold_delq):
10959         * fns.c (delq_no_quit):
10960         * fns.c (Fremassoc):
10961         * fns.c (Fremassq):
10962         * fns.c (remassq_no_quit):
10963         * fns.c (Fremrassoc):
10964         * fns.c (Fremrassq):
10965         * fns.c (remrassq_no_quit):
10966         * fns.c (Freverse):
10967         * fns.c (mapcar1):
10968         [1].
10969
10970         * frame-msw.c (mswindows_init_frame_1):
10971         * frame-msw.c (mswindows_delete_frame):
10972         Register popups with dialog code so keyboard traversing works.
10973
10974         * frame-tty.c (tty_raise_frame_no_select): [1].
10975
10976         * frame-x.c:
10977         * frame-x.c (x_set_frame_text_value):
10978         * frame-x.c (x_set_frame_properties):
10979         * frame-x.c (x_create_widgets):
10980         [7].
10981
10982         * frame.c:
10983         * frame.c (Fmouse_pixel_position): Minor doc fixes.
10984
10985         * frame.h (wrap_frame): New.
10986         Macro like wrap_device.
10987
10988         * general.c:
10989         * general.c (SYMBOL):
10990         * general.c (syms_of_general):
10991         Major reorg.  This is now just a wrapper and symbols themselves
10992         are listed in general-slots.h.
10993
10994         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
10995         * glyphs-msw.c (mswindows_resource_instantiate): [5].
10996
10997         * glyphs-msw.c (mswindows_native_layout_instantiate):
10998         Add DS_CONTROL so keyboard traversal will work.
10999
11000         * glyphs-widget.c:
11001         * glyphs-widget.c (syms_of_glyphs_widget):
11002         Move some symbols to general-slots.h.
11003
11004         * glyphs-x.c:
11005         * glyphs-x.c (xbm_instantiate_1):
11006         * glyphs-x.c (x_xbm_instantiate):
11007         * glyphs-x.c (x_xface_instantiate):
11008         * glyphs-x.c (autodetect_instantiate):
11009         * glyphs-x.c (cursor_font_instantiate):
11010         * glyphs-x.c (x_update_widget):
11011         * glyphs-x.c (x_widget_instantiate):
11012         * glyphs.c (bitmap_to_lisp_data):
11013         * glyphs.c (pixmap_to_lisp_data):
11014         [7].
11015
11016         * glyphs.c (syms_of_glyphs):
11017         [2].
11018
11019         * gui-x.c:
11020         * gui-x.c (print_widget_value):
11021         * gui-x.c (menu_separator_style_and_to_external):
11022         * gui-x.c (add_accel_and_to_external):
11023         * gui-x.c (button_item_to_widget_value):
11024         * gui-x.c (gui_items_to_widget_values_1):
11025         * gui-x.c (gui_items_to_widget_values):
11026         * gui-x.c (syms_of_gui_x):
11027         * gui-x.c (vars_of_gui_x):
11028         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
11029         [9].
11030
11031         * gui-x.h:
11032         Muleize, prototype changes matching gui-x.c.
11033
11034         * gui.c:
11035         * gui.c (separator_string_p):
11036         * gui.c (gui_item_add_keyval_pair):
11037         * gui.c (make_gui_item_from_keywords_internal):
11038         * gui.c (signal_too_long_error):
11039         * gui.c (parse_gui_item_tree_item):
11040         * gui.c (syms_of_gui):
11041         * gui.c (vars_of_gui):
11042         * gui.h:
11043         menu-no-selection-hook moved here (used by MSWin).
11044         Move some symbols to general-slots.h.
11045         [6].
11046         [9].
11047
11048         * insdel.c (get_buffer_pos_char):
11049         * insdel.c (get_buffer_range_char):
11050         Add GC comments.
11051
11052         * keymap.c (keymap_lookup_directly):
11053         * keymap.c (keymap_store):
11054         * keymap.c (ensure_meta_prefix_char_keymapp):
11055         * keymap.c (describe_map):
11056         * keymap.h:
11057         Support new button modifiers.
11058
11059         * lisp-disunion.h (wrap_object):
11060         * lisp-disunion.h (XSETOBJ):
11061         Rename make_obj to wrap_object.
11062
11063         * lisp-union.h:
11064         * lisp-union.h (make_int):
11065         * lisp-union.h (make_char):
11066         Support wrap_object.
11067
11068         * lisp.h:
11069         * lisp.h (LIST_LOOP):
11070         * lisp.h (EXTERNAL_LIST_LOOP):
11071         * lisp.h (LIST_LOOP_2):
11072         * lisp.h (EXTERNAL_LIST_LOOP_1):
11073         * lisp.h (EXTERNAL_LIST_LOOP_2):
11074         * lisp.h (EXTERNAL_LIST_LOOP_3):
11075         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
11076         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11077         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
11078         * lisp.h (EXTERNAL_ALIST_LOOP_5):
11079         * lisp.h (EXTERNAL_ALIST_LOOP_6):
11080         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
11081         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
11082         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
11083         * lisp.h (struct Lisp_Symbol):
11084         * lisp.h (maybe_continuable_error_with_frob):
11085         Fix up section comments.
11086         Add new types for char to indicate usage.
11087         Delete symbols auto-generated from general-slots.h.
11088         Add prototypes for structured error functions.
11089         Add long comments describing looping macros and change interface
11090         so that lvalues are automatically declared.
11091         Add NO_DECLARE macro in case callers want to declare lvalues
11092         themselves.
11093
11094         * lread.c (read_syntax_error):
11095         * lread.c (continuable_read_syntax_error):
11096         * lread.c (read_structure):
11097         * lread.c (sequence_reader):
11098         * lread.c (read_list_conser):
11099         * lread.c (read_compiled_function):
11100         Rename syntax_error and continuable_syntax_error to avoid clash
11101         with same-named structured error functions.
11102
11103         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11104         * menubar-msw.c (populate_menu_add_item):
11105         * menubar-msw.c (populate_or_checksum_helper):
11106         [5].
11107         [9].
11108
11109         * menubar-x.c:
11110         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11111         Mule-ize whole file.
11112
11113         * menubar.c (Fnormalize_menu_item_name): Add optimization.
11114
11115         * mule-charset.c (Fmake_charset):
11116         * mule-wnnfns.c (Fwnn_set_param):
11117         [1].
11118
11119         * ntproc.c (create_child):
11120         * ntproc.c (Fwin32_set_current_locale):
11121         Add comments portending doom.
11122
11123         * objects-msw.c:
11124         * objects-msw.c (old_font_enum_callback_2):
11125         * objects-msw.c (font_enum_callback_1):
11126         * objects-msw.c (mswindows_enumerate_fonts):
11127         [5].
11128
11129         * objects-x.c:
11130         * objects-x.c (allocate_nearest_color):
11131         * objects-x.c (x_parse_nearest_color):
11132         * objects-x.c (x_initialize_color_instance):
11133         * objects-x.c (x_print_color_instance):
11134         * objects-x.c (x_finalize_color_instance):
11135         * objects-x.c (x_valid_color_name_p):
11136         * objects-x.c (x_initialize_font_instance):
11137         * objects-x.c (x_print_font_instance):
11138         * objects-x.c (valid_x_font_name_p):
11139         * objects-x.c (truename_via_FONT_prop):
11140         * objects-x.c (truename_via_random_props):
11141         * objects-x.c (truename_via_XListFonts):
11142         * objects-x.c (x_font_truename):
11143         * objects-x.c (x_font_instance_truename):
11144         * objects-x.c (x_font_instance_properties):
11145         * objects-x.c (x_list_fonts):
11146         * objects-x.c (x_find_charset_font):
11147         Mule-ize entire file.
11148         [7].
11149
11150         * objects-x.h:
11151         Mule-verify.
11152
11153         * print.c:
11154         * print.c (std_handle_out_external):
11155         * print.c (debug_print_no_newline):
11156         * print.c (syms_of_print):
11157         Output to all debugger kinds in debug-print.
11158         Fix console-output code under MSWin to actually work.
11159
11160         * process-nt.c (send_signal):
11161         * process-nt.c (nt_create_process):
11162         Use newer Unicode macros.
11163
11164         * process-unix.c (unix_create_process):
11165         * process-unix.c (unix_canonicalize_host_name):
11166         * process-unix.c (unix_open_network_stream):
11167         [7].
11168
11169         * scrollbar-x.c:
11170         Mule-verify.
11171
11172         * search.c (syms_of_search):
11173         [2].
11174
11175         * select-msw.c (mswindows_destroy_selection):
11176         Use LIST_LOOP_2.
11177
11178         * select-x.c (symbol_to_x_atom):
11179         [7].
11180
11181         * select.c (syms_of_select):
11182         [2].
11183
11184         * sound.c (Fplay_sound_file):
11185         [7].
11186
11187         * specifier.c:
11188         * specifier.c (decode_specifier_type):
11189         * specifier.c (Fvalid_specifier_locale_type_p):
11190         * specifier.c (check_valid_locale_or_locale_type):
11191         * specifier.c (decode_locale):
11192         * specifier.c (decode_locale_type):
11193         * specifier.c (decode_locale_list):
11194         * specifier.c (check_valid_domain):
11195         * specifier.c (decode_specifier_tag_set):
11196         * specifier.c (Fcanonicalize_tag_set):
11197         * specifier.c (Fdefine_specifier_tag):
11198         * specifier.c (Fspecifier_tag_predicate):
11199         * specifier.c (check_valid_inst_list):
11200         * specifier.c (check_valid_spec_list):
11201         * specifier.c (decode_how_to_add_specification):
11202         * specifier.c (check_modifiable_specifier):
11203         * specifier.c (specifier_add_spec):
11204         * specifier.c (boolean_validate):
11205         * specifier.c (display_table_validate):
11206         [9].
11207
11208         * specifier.c (syms_of_specifier):
11209         Move some symbols to general-slots.h.
11210         [2].
11211
11212         * symbols.c:
11213         * symbols.c (Fmapatoms):
11214         * symbols.c (Fapropos_internal):
11215         Add GCPROs.
11216
11217         * symbols.c (set_default_buffer_slot_variable):
11218         * symbols.c (set_default_console_slot_variable):
11219         [1].
11220
11221         * symbols.c (defsymbol_massage_name_1):
11222         * symbols.c (defkeyword_massage_name):
11223         * symbols.c (deferror_1):
11224         * symbols.c (deferror):
11225         * symbols.c (deferror_massage_name_and_message):
11226         * symeval.h:
11227         * symeval.h (DEFSYMBOL):
11228         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
11229
11230         * symbols.c (syms_of_symbols):
11231         [2].
11232
11233         * symsinit.h:
11234         * symsinit.h (init_win32): New.
11235         Also new is syms_of_dialog_mswindows.
11236
11237         * syswindows.h:
11238         Add new Unicode macros, missing Cygwin wide-char functions,
11239         convenience conversion macros for Qmswindows_tstr, macros for
11240         encapsulating required MSWin <-> Cygwin filename conversions,
11241         prototype for dynamically-extracted (not in NT 3.51) functions.
11242
11243         * toolbar-x.c:
11244         Mule-verify.
11245
11246         * tooltalk.c (Fadd_tooltalk_message_arg):
11247         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11248         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11249         [7].
11250
11251         * tooltalk.c (syms_of_tooltalk):
11252         [2].
11253
11254         * unexnt.c:
11255         * unexnt.c (unexec):
11256         Fix up headers, declaration of unexec() to be more standard.
11257
11258 2000-07-20  Martin Buchholz  <martin@xemacs.org>
11259
11260         * offix.h: Revert change to guard macros - they're used in offix.c!
11261
11262 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11263
11264         * lisp.h: Defsubred Fdelete.
11265
11266         * console-msw.h:  (msprinter_default_printer): Added.
11267
11268         * console-msw.c (msprinter_canonicalize_console_connection):
11269         (msprinter_canonicalize_device_connection): Added.
11270
11271         * device-msw.c (msprinter_default_printer):
11272         (Fmswingows_get_default_printer):
11273         (signal_enum_priner_error):
11274         (Fmswingows_printer_list): Added.
11275
11276 2000-07-19  Martin Buchholz <martin@xemacs.org>
11277
11278         * XEmacs 21.2.35 is released.
11279
11280 2000-07-19  Martin Buchholz  <martin@xemacs.org>
11281
11282         * select-x.c (x_handle_selection_request):
11283         Text selected in xemacs and pasted into xterm failed to appear.
11284         Spelling fixes and cosmetic changes.
11285
11286 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11287
11288         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
11289         XEmacs frame (fix for doubling chars in dialog boxes).
11290
11291 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11292
11293         * select.c (select_convert_in, select_convert_out):
11294         Don't call intern() every time.
11295
11296         * select.c (Qselect_convert_in, Qselect_convert_out): New.
11297         * select.c (vars_of_select): Initialise them.
11298
11299 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11300
11301         * select.c (selection-coercible-types): New.
11302
11303         * select.c (own-selection-internal):
11304         * select.c (get-selection-internal):
11305         MULE bug fix - these should default to COMPOUND_TEXT and not
11306         STRING for MULE. I think.
11307
11308         * select.c (select_convert_out): Use selection-coercible-types
11309         to find types that we can attempt to perform coercions on.
11310
11311 2000-07-18  Martin Buchholz  <martin@xemacs.org>
11312
11313         * mule-wnnfns.c:
11314         * mule-canna.c:
11315         Add coding: cookie to identify encoding.
11316
11317         * mule-canna.c (CANNA_mode_keys): make static.
11318         Use proper prototypes, even for functions of no arguments.
11319         Remove external prototype for Fding().
11320
11321         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
11322
11323         * select.c (syms_of_select): Add missing DEFSUBR.
11324
11325 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
11326
11327         * select.c (get_selection_internal, own_selection_internal):
11328         Make the type default to STRING, rather than placing a nil type
11329         into Vselection_alist.
11330
11331 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
11332
11333         * gpmevent.c (tty_selection_exists_p):
11334         * gpmevent.c (tty_own_selection):
11335         Updated parameter lists.
11336
11337 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
11338
11339         * select.h (selection-alist): Removed declaration.
11340
11341         * select.h (get_local_selection):
11342         * select.c (get_local_selection):
11343         Made static.
11344
11345         * select.h (convert_selection): Removed declaration.
11346         * select.c (convert_selection): Removed.
11347         This function belongs in Lisp.
11348
11349         * select.h (select_convert_in): Declare.
11350         * select.h (select_convert_out): Declare.
11351         * select.c (select_convert_in): New.
11352         * select.c (select_convert_out): New.
11353         New conversion functions for other files to call.
11354
11355         * select.h (select_notify_buffer_kill): Declare.
11356         * select.c (select_notify_buffer_kill): New.
11357         New functions that get called from kill-buffer.
11358
11359         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
11360         X-specific lisp code.
11361
11362         * select.h: Declare some of the lisp-visible functions for
11363         external use.
11364
11365         * select.c (clean_local_selection_data): Removed. This was
11366         a disgusting function, and previously should have been in
11367         select-x.c in any case. The functionality is now provided
11368         in select-convert-from-integer (select.el).
11369
11370         * select.c (available-selection-types): Fixed stupidity where
11371         INTEGER and ATOM got added twice. Also add STRING when we see an
11372         extent.
11373
11374         * select.c (get-selection-internal): Removed symbol stripping. No
11375         longer causes conversion when data comes from the internal cache.
11376
11377         * select.c (syms_of_select): Added new functions.
11378
11379         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
11380         error checking - previously this called abort!
11381
11382         * select-x.c (x_own_selection): Changed comment.
11383
11384         * select-x.c (x_handle_selection_request): Use select_convert_out.
11385         Don't mess with selection-alist; it's an internal variable of select.c.
11386
11387         * select-x.c (x_get_foreign_selection): Use select_convert_in.
11388
11389         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
11390         rather than messing with selection-alist.
11391
11392         * select-msw.c (mswindows_get_foreign_selection):
11393         Use TO_INTERNAL_FORMAT rather than hacking.
11394
11395 2000-07-14  Martin Buchholz  <martin@xemacs.org>
11396
11397         * process-unix.c (unix_open_multicast_group):
11398         (unix_open_multicast_group): Remove useless casts.
11399
11400 2000-07-13  Martin Buchholz  <martin@xemacs.org>
11401
11402         * sound.c (Fplay_sound): Fix `unused variable' warning.
11403
11404         * emacs.c (main): Use correct type for _environ on SCO5.
11405
11406 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
11407
11408         * console.h (own_selection_method):
11409         * console.h (selection_exists_p_method):
11410         * console.h (available_selection_types_method): New.
11411         * console.h (register_selection_data_type_method): New.
11412         * console.h (selection_data_type_name): New.
11413
11414         * console-msw.h (mswindows_destroy_selection): Declare it.  New
11415         function & alist to track GlobalAlloc()'d handles that need
11416         releasing when the clipboard data gets replaced or emptied.
11417
11418         * event-msw.c (mswindows_wnd_proc): Call it.
11419
11420         * lisp.h, general.c (Qappend): New symbol representing a
11421         `how-to-add' mode.
11422
11423         * select.c (own-selection-internal):
11424         * select.c (selection-exists-p):
11425         * select.c (available-selection-types): New.
11426         * select.c (register-selection-data-type): New.
11427         * select.c (selection-data-type-name): New.  New functions to deal
11428         with device-specific selection data formats.
11429         * select.c (selection-converter-out-alist): Renamed.
11430         * select.c (selection-converter-in-alist): New.
11431         * select.c (selection-appender-alist): New.  Added new alists.
11432         * select.c (syms_of_select, vars_of_select): Added new symbols &
11433         variables.
11434         * select.c (get_local_selection): Split.
11435         * select.c: Removed spurious type checking - selections may now be
11436         of any type, not just strings.
11437         * select.c (own-selection-internal):
11438
11439         * select.h, select.c (convert_selection): New. Created
11440         convert_selection() function based on get_local_selection().
11441         * select.h, select.c (QCF_*): New symbols representing mswindows
11442         clipboard formats.
11443         * select.h, select.c (Qreplace_all, Qreplace_existing): New
11444         symbols representing `how-to-add' modes.
11445
11446         * select-msw.c (x_sym_p): New.
11447         * select-msw.c (symbol_to_ms_cf): New.
11448         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
11449         symbols & clipboard formats. Can also handle string names.
11450         * select-msw.c (mswindows_own_selection):
11451         * select-msw.c (mswindows_selection_exists_p):
11452         Added `data-type' parameter. Use it.
11453         * select-msw.c (mswindows_available_selection_types): New.
11454         * select-msw.c (mswindows_register_selection_data_type): New.
11455         * select-msw.c (mswindows_selection_data_type_name): New.
11456         * select-msw.c (mswindows_own_selection):
11457         * select-msw.c (mswindows_get_foreign_selection):
11458         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
11459         * select-msw.c (console_create_select_mswindows): Added new methods.
11460         * select-msw.c (mswindows_destroy_selection): New.
11461         * select-msw.c (Vhandle_alist): New list.
11462         * select-msw.c (mswindows_own_selection):
11463
11464         * select-x.c (x_own_selection):
11465         * select-x.c (x_selection_exists_p):
11466         * select-x.c: Added some comments about maybe using new
11467         functionality.
11468         * select-x.c (x_own_selection):
11469
11470         * specifier.c: Remove definition of Qappend (now in general.c)
11471         * specifier.c (syms_of_specifier): Remove Qappend.
11472
11473 2000-07-12  Martin Buchholz  <martin@xemacs.org>
11474
11475         * config.h.in: Add socklen_t.
11476
11477         * s/decosf4-0.h: No special compiler flags needed or desired.
11478         In particular, undefine _BSD for DEC OSF 4.0.
11479
11480 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11481
11482         * redisplay-msw.c (msprinter_frame_output_end): Added.
11483         (console_type_create_redisplay_mswindows): Referred the above.
11484
11485         * frame.c (setup_frame_without_minibuffer): Do not create a
11486         default minibuffer frame on a printer device.
11487
11488         * frame-msw.c (apply_dc_geometry): Added.
11489         (msprinter_start_page):
11490         (msprinter_init_frame_3):
11491         (msprinter_eject_page): Use it.
11492
11493         * console-msw.h (struct msprinter_frame): Added pix_left and top,
11494         and removed residual duplex and orientation properties.
11495
11496 2000-07-11  Martin Buchholz  <martin@xemacs.org>
11497
11498         * eval.c (function_argcount): Work around a DEC CC compiler bug.
11499
11500         * unexalpha.c: Remove system prototypes from C sources!
11501
11502 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
11503
11504         * eval.c: Remove references to M-x edit-options in DEFUNs for
11505         `defvar' and `defconst'.
11506
11507 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11508
11509         * config.h.in: Remove SMART_INCLUDE hackery.
11510
11511         PostgreSQL hacking:
11512         * config.h.in: Don't use SMART_INCLUDE.
11513
11514         * postgresql.h: Include libpq-fe.h here.  Fix typo.
11515         * inline.c: Simply #include "postgresql.h"
11516         * postgresql.c:
11517         - Don't use SMART_INCLUDE
11518         - Use simply "const".
11519         - Use standard doc string conventions.
11520         - Use correct type for result of PQstatus.
11521
11522 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11523
11524         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
11525
11526         C++ compilation changes.
11527         * config.h.in (EXTERN_C): Define.
11528         * config.h.in (not): This is also a C++ keyword.
11529         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
11530         * cm.c: Use EXTERN_C.
11531         * redisplay-tty.c: Use EXTERN_C.
11532         * sysdep.c: Use EXTERN_C.  Remove Gould support.
11533
11534 2000-07-09  Martin Buchholz  <martin@xemacs.org>
11535
11536         * general.c: Remove duplicate definition for Qfunction.
11537
11538 2000-07-08  Ben Wing  <ben@xemacs.org>
11539
11540         * device-msw.c (msprinter_init_device):
11541         * device-msw.c (sync_printer_with_devmode):
11542         * device-msw.c (handle_devmode_changes):
11543         * device-msw.c (print_dialog_worker):
11544         * device-msw.c (Fmsprinter_apply_settings):
11545         * device-msw.c (hash_devmode):
11546         * device-msw.c (Fmsprinter_settings_despecialize):
11547         use Qmswindows_tstr, not Qctext.
11548
11549         * vm-limit.c (check_memory_limits):
11550         avoid infinite loop printing warning messages.
11551
11552 2000-07-05  Craig Lanning  <lanning@scra.org>
11553
11554         * Makefile.in.in: Add support for including the Windows resources
11555         when building with the cygwin and mingw targets.
11556
11557         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
11558         not set or not correct.
11559         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
11560         (init_initial_directory): Don't try to use $PWD on the
11561         WIN32_NATIVE target.
11562
11563         * s\cygwin32.h:
11564         [[Add -mwindows to eliminate console window.]] not required --ben
11565         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11566         (MAIL_USE_POP): removed; now handled by configure.
11567
11568         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
11569         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
11570         (HAVE_NATIVE_SOUND): removed; now handled by configure.
11571         (MAIL_USE_POP): removed; now handled by configure.
11572         (ENCAPSULATE_STAT): from Dan Holmsand, added.
11573         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
11574         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
11575         constant string.
11576         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
11577         up from <winsock.h> via systime.h.
11578         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
11579         (getpagesize): from Dan Holmsand, added.
11580         Added #endif which was left dangling by Ben's mega patch; added
11581         comment to help prevent this in the future.
11582
11583         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
11584
11585 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11586
11587         * console-msw.h (struct mswindows_device): Removed unnecessary
11588         cached device geometry values.
11589         Added update_tick and an accessor macro.
11590         (Lisp_Devmode): Added lrecord declaration.
11591         (struct msprinter_device): Contain devmode as a Lisp object.
11592         Added mswindows_get_selected_frame_hwnd();
11593
11594         * console.h (struct console_methods): Indentation nitpicking.
11595
11596         * device-msw.c (mswindows_init_device): Do not initialize geometry
11597         cache. Initialize update tick.
11598         (mswindows_device_system_metrics): Ask the device for its geometry.
11599         (global_free_2_maybe):
11600         (devmode_to_hglobal):
11601         (handle_printer_changes):
11602         (ensure_not_printing):
11603         (print_dialog_worker):
11604         (Fmsprinter_print_setup_dialog):
11605         (Fmsprinter_print_dialog):
11606         (plist_get_margin):
11607         (plist_set_margin):
11608         (Fmsprinter_page_setup_dialog): Added functions.
11609         (sync_printer_with_devmode):
11610         (handle_devmode_changes):
11611         (Fmsprinter_get_settings):
11612         (Fmsprinter_select_settings):
11613         (Fmsprinter_apply_settings):
11614         (allocate_devmode):
11615         (Fmsprinter_settings_copy):
11616         (Fmsprinter_settings_despecialize):
11617         (print_devmode):
11618         (finalize_devmode):
11619         (equal_devmode):
11620         (hash_devmode): Added functions
11621         (syms_of_device_mswindows): Init devmode lrecord class.
11622
11623         * device.h: Added an exfun for find-device.
11624
11625         * event-msw.c (mswindows_wnd_proc): Do not update the cached
11626         geometry; although, recreate the device compatible DC.
11627
11628         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
11629         (msprinter_init_frame_3):
11630         (msprinter_frame_property):
11631         (msprinter_internal_frame_property_p):
11632         (msprinter_frame_properties):
11633         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
11634         print job properties (will move to device settings).
11635
11636         * lisp.h: Added symbols.
11637
11638         * general.c (syms_of_general): Declared them.
11639
11640         * hash.c (string_hash): Added.
11641
11642         * lrecord.h (lrecord_type): Added devmode lrecord type.
11643
11644 2000-07-02  Mike Sperber <mike@xemacs.org>
11645
11646         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
11647         FreeBSD 4.0.
11648
11649 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
11650
11651         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
11652         integer.
11653
11654 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
11655
11656         * data.c (Fstring_to_number): Don't recognize floating point if
11657         base is not 10.
11658
11659 2000-06-22  Martin Buchholz  <martin@xemacs.org>
11660
11661         * glyphs-widget.c (tab_control_query_geometry):
11662         (widget_query_geometry):
11663         (button_query_geometry):
11664         * glyphs.c (text_query_geometry):
11665         Enforce type correctness.
11666
11667 2000-06-18  Martin Buchholz  <martin@xemacs.org>
11668
11669         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
11670         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
11671
11672 2000-06-17  Martin Buchholz  <martin@xemacs.org>
11673
11674         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
11675         conflicts with gcc's fixincluded version of FOO.h.
11676
11677         * glyphs.h (image_instance_geometry): Remove trailing `,'
11678
11679 2000-06-08  Mike Alexander  <mta@arbortext.com>
11680
11681         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
11682         (shove_thread): Don't write the same output twice
11683         (make_ntpipe_output_stream): Increase priority of shove thread
11684         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
11685         chance to run
11686         (ntpipe_shove_closer): Don't delete the pipe until we're done with
11687         it.
11688
11689 2000-06-12  Ben Wing  <ben@xemacs.org>
11690
11691         * s\mingw32.h (sigset):
11692         * s\windowsnt.h (sigset):
11693         rename msw_ to mswindows_ for consistency with general convention.
11694
11695 2000-06-12  Ben Wing  <ben@xemacs.org>
11696
11697         * console-msw.c:
11698         * console-msw.c (mswindows_get_console_hwnd):
11699         * console-msw.c (mswindows_ensure_console_allocated):
11700         * console-msw.c (mswindows_hide_console):
11701         * console-msw.c (mswindows_show_console):
11702         * console-msw.c (mswindows_ensure_console_buffered):
11703         * console-msw.c (mswindows_output_console_string):
11704         * console-msw.c (mswindows_windows9x_p):
11705         * console-msw.h:
11706         * device-msw.c (mswindows_get_workspace_coords):
11707         * device-msw.c (mswindows_device_system_metrics):
11708         * dialog-msw.c (mswindows_popup_dialog_box):
11709         * event-msw.c (mswindows_wnd_proc):
11710         * frame-msw.c (mswindows_size_frame_internal):
11711         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11712         * menubar-msw.c (displayable_menu_item):
11713         * menubar-msw.c (mswindows_char_is_accelerator):
11714         * nt.c:
11715         * nt.c (mswindows_sigset):
11716         * nt.c (mswindows_sigrelse):
11717         * nt.c (mswindows_sigpause):
11718         * nt.c (mswindows_raise):
11719         * nt.c (timer_proc):
11720         * ntproc.c:
11721         * ntproc.c (find_child_console):
11722         * ntproc.c (sys_kill):
11723         * print.c:
11724         * print.c (std_handle_out_external):
11725         * process-nt.c (find_child_console):
11726         * process-nt.c (send_signal_the_95_way):
11727         * process-nt.c (ensure_console_window_exists):
11728         * process-nt.c (nt_create_process):
11729         * syssignal.h:
11730         rename msw_ to mswindows_ for consistency with general convention.
11731
11732         * emacs.c:
11733         * dumper.c:
11734         include nt.h, not syswindows.h.
11735
11736         * nt.c (mswindows_fstat):
11737         * nt.c (mswindows_stat):
11738         prefix mswindows_ instead of attempting to directly override the
11739         library functions.  fix declarations.
11740
11741         * nt.h:
11742         include syswindows.h.  move some sysdep.h stuff here.
11743
11744         * ntheap.h:
11745         include syswindows.h, not <windows.h>.
11746
11747         * ntplay.c:
11748         clean up headers.
11749
11750         * sysdep.c:
11751         clean up headers.
11752
11753         * sysdep.c (sys_fstat):
11754         * sysdep.c (sys_stat):
11755         call mswindows versions when appropriate.
11756
11757         * sysdep.h:
11758         move mswin decls to nt.h.
11759
11760         * syswindows.h:
11761         add long comment describing appropriate use of the various windows
11762         headers.
11763
11764 2000-06-11  Ben Wing  <ben@xemacs.org>
11765
11766         * device-x.c: Correct doc string for sixth arg of x-get-resource.
11767
11768 2000-06-10  Ben Wing  <ben@xemacs.org>
11769
11770         * Makefile.in.in (release):
11771         Correction to make sure xemacs.exe always dumped when correct.
11772
11773         * alloca.c:
11774         * balloon_help.c:
11775         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
11776
11777         * buffer.c (set_buffer_internal):
11778         [[[[2]]]]: Remove HAVE_FEP code.
11779
11780         * buffer.c (init_initial_directory):
11781         [3].
11782
11783         * bytecode.c:
11784         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
11785         individual files.
11786
11787         * callproc.c:
11788         * callproc.c (call_process_cleanup):
11789         * callproc.c (Fold_call_process_internal):
11790         * callproc.c (child_setup):
11791         * callproc.c (getenv_internal):
11792         * callproc.c (init_callproc):
11793         * callproc.c (vars_of_callproc):
11794         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
11795         __CYGWIN32__ -> CYGWIN.
11796         DOS_NT -> WIN32_NATIVE.
11797         Remove MSDOS support/references, converting to WIN32_NATIVE
11798           where correct.
11799         __MINGW32__ -> MINGW.
11800         Fix windows.h includes.
11801         Remove bogus HAVE_NTGUI.
11802
11803         * config.h.in:
11804         [2].
11805
11806         * console-msw.c:
11807         mswindows_message_outputted added for use in allowing startup
11808         errors on the console to be seen.
11809
11810         * console-msw.c (msw_ensure_console_allocated):
11811         * console-msw.c (msw_output_console_string):
11812         * console-msw.c (DHEADER):
11813         * console-msw.c (DOPAQUE_DATA):
11814         * console-msw.c (DEVENT):
11815         * console-msw.c (DCONS):
11816         * console-msw.c (DCONSCDR):
11817         * console-msw.c (DSTRING):
11818         * console-msw.c (DVECTOR):
11819         * console-msw.c (DSYMBOL):
11820         * console-msw.c (DSYMNAME):
11821         Fix warnings.
11822
11823         * console-stream.c (stream_init_console):
11824         Fix text/binary problems.
11825
11826         * device-msw.c:
11827         * device-msw.c (mswindows_finish_init_device):
11828         * device-msw.c (mswindows_delete_device):
11829         [1].
11830
11831         * device.c (handle_asynch_device_change):
11832         [3].
11833
11834         * dgif_lib.c:
11835         * dgif_lib.c (DGifOpenFileName):
11836         * dgif_lib.c (DGifOpenFileHandle):
11837         * dgif_lib.c (DGifGetLine):
11838         * dgif_lib.c (DGifGetPixel):
11839         Added config.h/lisp.h, fix up includes.
11840         [1].
11841
11842         * dired-msw.c:
11843         [4].
11844
11845         * dired.c:
11846         * dired.c (file_name_completion):
11847         * dired.c (Ffile_attributes):
11848         * dired.c (syms_of_dired):
11849         [1].
11850
11851         * dumper.c:
11852         * dumper.c (pdump_file_unmap):
11853         * dumper.c (pdump_load):
11854         [1].
11855
11856         * editfns.c:
11857         * editfns.c (Ftemp_directory):
11858         * editfns.c (user_login_name):
11859         * editfns.c (Fuser_real_login_name):
11860         * editfns.c (get_home_directory):
11861         [1].
11862
11863         * elhash.c (finish_marking_weak_hash_tables):
11864         [[[[5]]]]: Fix GCC warnings.
11865
11866         * emacs.c:
11867         * emacs.c (mswindows_handle_hardware_exceptions):
11868         * emacs.c (make_arg_list_1):
11869         * emacs.c (main_1):
11870         * emacs.c (Fkill_emacs):
11871         * emacs.c (Fdump_emacs):
11872         [1].
11873         Fix problems with nested crashes, add long comment.
11874
11875         * event-Xt.c (init_event_Xt_late):
11876         [1].
11877
11878         * event-msw.c:
11879         * event-msw.c (mswindows_dde_callback):
11880         * event-msw.c (mswindows_handle_sticky_modifiers):
11881         * event-msw.c (mswindows_wnd_proc):
11882         [1].
11883         [5].
11884
11885         * events.c (character_to_event):
11886         [1].
11887
11888         * fileio.c:
11889         * fileio.c (Ffile_name_directory):
11890         * fileio.c (Ffile_name_nondirectory):
11891         * fileio.c (directory_file_name):
11892         * fileio.c (Fexpand_file_name):
11893         * fileio.c (Fsubstitute_in_file_name):
11894         * fileio.c (Ffile_name_absolute_p):
11895         * fileio.c (check_executable):
11896         * fileio.c (Ffile_readable_p):
11897         * fileio.c (Ffile_accessible_directory_p):
11898         * fileio.c (Ffile_modes):
11899         * fileio.c (Funix_sync):
11900         * fileio.c (vars_of_fileio):
11901         [1]. [4].
11902
11903         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
11904
11905         Expand getdefdir defn.
11906         Fix bogus rename() comment.
11907
11908         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
11909         to use standard XEmacs include files, e.g. sysfile.h, rather
11910         than system-specific includes.
11911
11912         * fns.c:
11913         * fns.c (Fsubseq):
11914         [5]. [6].
11915
11916         * frame.c (vars_of_frame):
11917         [1].
11918
11919         * getloadavg.c:
11920         * getloadavg.c (getloadavg):
11921         [1]. [6].
11922         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
11923         (We don't use it elsewhere in the code; just add a comment.)
11924
11925         * gif_io.c:
11926         [6].
11927         Add config.h.
11928
11929         * glyphs-msw.c:
11930         * glyphs-msw.c (mswindows_resource_instantiate):
11931         [1].
11932
11933         * glyphs-x.c (x_native_layout_instantiate):
11934         [5].
11935
11936         * gui-msw.c (Fmswindows_shell_execute):
11937         [1].
11938
11939         * insdel.c:
11940         [4].
11941
11942         * lisp.h:
11943         [4]. [5].
11944
11945         * lread.c (locate_file_in_directory_mapper):
11946         [1].
11947
11948         * lstream.c:
11949         [4].
11950
11951         * mem-limits.h:
11952         * mem-limits.h (get_lim_data):
11953         [1].
11954
11955         * menubar-msw.c:
11956         [4].
11957
11958         * ndir.h:
11959         [1].
11960
11961         * nt.c:
11962         * nt.c (getwd):
11963         * nt.c (closedir):
11964         * nt.c (rva_to_section):
11965         * nt.c (mswindows_executable_type):
11966         [1]. [6].
11967         Fix closedir() defn.
11968
11969         * nt.h:
11970         [[[[8]]]]: *_OK defs moved to sysfile.h.
11971
11972         * ntproc.c:
11973         [6]. [7].
11974
11975         * objects-x.c:
11976         [4].
11977
11978         * print.c:
11979         * print.c (std_handle_out_external):
11980         [1]. [4].
11981
11982         * process-nt.c:
11983         * process-nt.c (nt_create_process):
11984         [6].
11985         try to fix process quoting somewhat.
11986
11987         * process-unix.c (unix_create_process):
11988         [1].
11989
11990         * process.c:
11991         * process.c (vars_of_process):
11992         Add Vnull_device.
11993
11994         * process.h:
11995         [1].
11996
11997         * realpath.c:
11998         * realpath.c (xrealpath):
11999         [1].
12000
12001         * redisplay-tty.c (init_tty_for_redisplay):
12002         [3].
12003
12004         * redisplay.c:
12005         [4]. [6].
12006
12007         * scrollbar-msw.c:
12008         [4].
12009
12010         * sheap.c:
12011         * sheap.c (more_static_core):
12012         * sheap.c (report_sheap_usage):
12013         [5]. [6].
12014
12015         * signal.c:
12016         * signal.c (alarm_signal):
12017         [1]. [6].
12018
12019         * sound.c:
12020         [6].
12021
12022         * strftime.c:
12023         * strftime.c (zone_name):
12024         [1]. [5].
12025
12026         * symsinit.h (init_sunpro):
12027         [1].
12028
12029         * syscommctrl.h:
12030         commctrl.h not in Cygwin b20.1.
12031
12032         * sysdep.c:
12033         * sysdep.c (endif):
12034         * sysdep.c (sys_subshell):
12035         * sysdep.c (init_baud_rate):
12036         * sysdep.c (emacs_get_tty):
12037         * sysdep.c (emacs_set_tty):
12038         * sysdep.c (tty_init_sys_modes_on_device):
12039         * sysdep.c (init_system_name):
12040         * sysdep.c (sys_open):
12041         * sysdep.c (interruptible_open):
12042         * sysdep.c (sys_fopen):
12043         * sysdep.c (sys_mkdir):
12044         * sysdep.c (sys_rename):
12045         * sysdep.c (get_process_times_1):
12046         [1]. [6].
12047
12048         * sysdep.h:
12049         [1].
12050
12051         * sysdir.h:
12052         * sysdir.h (DIRENTRY_NONEMPTY):
12053         [1]. [6].
12054
12055         * sysdll.c (dll_init):
12056         * sysdll.h:
12057         [1].
12058
12059         * sysfile.h:
12060         [1]. [6]. [8].
12061         added text/binary defs.
12062
12063         * sysfloat.h:
12064         [1].
12065
12066         * sysproc.h:
12067         * sysproc.h (EDESTADDRREQ):
12068         * sysproc.h (poll_fds_for_input):
12069         [1]. [6].
12070
12071         * syspwd.h:
12072         [6].
12073
12074         * syssignal.h:
12075         [1].
12076
12077         * systime.h:
12078         [1]. [6].
12079
12080         * systty.h:
12081         [1].
12082
12083         * syswindows.h:
12084         [1].
12085         Always define WIN32_LEAN_AND_MEAN.
12086
12087         * unexcw.c (unexec):
12088         [5].
12089
12090         * unexec.c:
12091         * unexec.c (copy_text_and_data):
12092         * unexec.c (adjust_lnnoptrs):
12093         [1].
12094
12095         * unexnt.c:
12096         * unexnt.c (_start):
12097         [1].
12098
12099 2000-06-07  Ben Wing  <ben@xemacs.org>
12100
12101         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
12102         was used only as a model.  We've long since extracted any useful
12103         logic or code out of this. (I just did an exhaustive search.)
12104
12105         * s\msdos.h: Removed.
12106
12107         * s\windows95.h: Removed.
12108
12109 2000-06-10  Ben Wing  <ben@xemacs.org>
12110
12111         * s\cygwin32.h:
12112         [1]. [5].
12113         Don't use extern with fun defs.
12114
12115         * s\mingw32.h:
12116         [1]. [7].
12117         Remove nt\inc include.
12118         Remove getdisk, getdefdir. (The former is unused, the latter
12119         expanded in fileio.h.)
12120
12121         * s\windowsnt.h:
12122         * s\windowsnt.h (WIN32_NATIVE):
12123         * s\windowsnt.h (HAVE_STRCASECMP):
12124         [1]. [7].
12125         Add long comment about preprocessor changes.
12126         Remove getdisk, getdefdir. (The former is unused, the latter
12127         expanded in fileio.h.)
12128
12129 2000-06-10  Ben Wing  <ben@xemacs.org>
12130
12131         * m\arm.h:
12132         * m\delta.h:
12133         * m\intel386.h:
12134         * m\sequent.h:
12135         * m\template.h:
12136         * m\windowsnt.h:
12137         [1].
12138         Remove bogus/unused NO_SOCK_SIGIO.
12139
12140 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
12141
12142         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
12143         not an Emchar.
12144
12145 2000-06-04  Mike Sperber <mike@xemacs.org>
12146
12147         * casetab.c (set_case_table): For `set-standard-case-table',
12148         actually deposit the new case tables where the rest of XEmacs can
12149         see them.
12150
12151 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
12152
12153         * data.c (Faset): Don't cast XCHAR() to unsigned char.
12154
12155 2000-06-05  Ben Wing  <ben@xemacs.org>
12156
12157         * callproc.c (child_setup): Don't do close_load_descs() under
12158         MS Windows.  Put in a comment explaining why.
12159
12160 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
12161
12162         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
12163         Toolkit shell" which breaks `kill-compilation' on Windows NT
12164         native, retaining STDERR handling improvements.
12165
12166 2000-06-01  Andreas Jaeger  <aj@suse.de>
12167
12168         * s/s390.h: Support for S390, based on a patch by Martin
12169         Schwidefsky <schwidefsky@de.ibm.com>.
12170
12171 2000-05-30  Andy Piper  <andy@xemacs.org>
12172
12173         * window.c (allocate_window):
12174         (make_dummy_parent):
12175         (Fset_window_configuration): use new hashtable type.
12176
12177         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
12178         (struct image_instantiator_methods):
12179         (struct Lisp_Image_Instance): make instance geometry signed.
12180
12181         * glyphs.c (instantiate_image_instantiator):
12182         (image_instance_query_geometry):
12183         (image_instance_layout):
12184         (image_instance_layout):
12185         (query_string_geometry):
12186         (text_query_geometry):
12187         (image_instantiate):
12188         (image_instantiate):
12189         (cache_subwindow_instance_in_frame_maybe):
12190         (subwindow_query_geometry): make instance geometry signed.
12191
12192         * glyphs-widget.c (widget_query_geometry):
12193         (widget_layout):
12194         (button_query_geometry):
12195         (tree_view_query_geometry):
12196         (tab_control_query_geometry):
12197         (layout_query_geometry):
12198         (layout_layout):
12199         (native_layout_layout): make instance geometry signed.
12200
12201 2000-05-29  Olivier Galibert  <galibert@pobox.com>
12202
12203         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
12204         constant.
12205
12206         * general.c (syms_of_general): Add Qfull_assoc symbol.
12207
12208         * data.c (finish_marking_weak_lists): Mark full-assoc lists
12209         correctly.
12210         (decode_weak_list_type): Decode full-assoc type.
12211         (encode_weak_list_type): Encode full-assoc type.
12212         (Fmake_weak_list): Update doc string.
12213
12214 2000-05-30  Andy Piper  <andy@xemacs.org>
12215
12216         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
12217
12218         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
12219         (decode_hash_table_weakness): ditto.
12220         (Fhash_table_weakness): ditto.
12221         (Fhash_table_type): ditto.
12222         (finish_marking_weak_hash_tables): ditto.
12223         (hash_table_weakness_validate): ditto.
12224         (syms_of_elhash): ditto.
12225
12226 2000-05-28  Martin Buchholz <martin@xemacs.org>
12227
12228         * XEmacs 21.2.34 is released.
12229
12230 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12231
12232         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
12233         start cache.
12234         (updating_line_start_cache): Gone.
12235         (regenerate_window): Replace resetting of VERTICAL_CLIP by
12236         generic code to force a minimum of 1 line laid out in the
12237         CMOTION_DISP case.
12238
12239 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
12240
12241         * glyphs.c (instantiate_image_instantiator): Check for initialized
12242         height & width no longer special cases IMAGE_NOTHING.
12243         (nothing_instantiate): Set height and width of instance.
12244
12245 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12246
12247         * unexelf.c (unexec): Search for ".data" section.
12248         Initialize new_data2_offset from old_data_index.
12249         Remove redundant check for ElfW.
12250
12251 2000-05-23  Andy Piper  <andy@xemacs.org>
12252
12253         * glyphs.c (get_image_instantiator_governing_domain): allow more
12254         specific domains as the governing domain rather than expecting an
12255         exact match. This fixes problems with layouts.
12256
12257 2000-05-22  Andy Piper  <andy@xemacs.org>
12258
12259         * redisplay-output.c (compare_runes): check for non-images
12260
12261         * glyphs.c (set_glyph_dirty_p): ditto.
12262         (update_glyph_cachel_data): ditto.
12263
12264         * glyphs-widget.c (layout_post_instantiate): ditto.
12265         (layout_post_instantiate): ditto.
12266
12267         * event-msw.c (mswindows_wnd_proc): warning removal.
12268
12269 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
12270
12271         * s\mingw32.h: Added #undef for CLASH_DETECTION.
12272
12273         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
12274
12275         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
12276
12277         * nt.c (rva_to_section): mingw32 needs rva_to_section.
12278         (mswindows_executable_type): mingw32 now has enough headers for
12279         this to work.
12280
12281 2000-05-20  Andy Piper  <andy@xemacs.org>
12282
12283         * console-msw.c (mswindows_output_last_error): ; -> ,
12284
12285 2000-05-12  Andy Piper  <andy@xemacs.org>
12286
12287         * console-msw.c (FROB): compare ints with ints.
12288
12289 2000-05-11  Andy Piper  <andy@xemacs.org>
12290
12291         * glyphs-x.c (x_finalize_image_instance): make minimal build
12292         happy.
12293
12294 2000-05-20  Ben Wing  <ben@xemacs.org>
12295
12296         * event-Xt.c:
12297         * event-Xt.c (vars_of_event_Xt):
12298         move modifier-keys-are-sticky to event-stream.c.
12299
12300         * event-msw.c:
12301         * event-msw.c (mswindows_enqueue_mouse_button_event):
12302         * event-msw.c (key_needs_default_processing_p):
12303         * event-msw.c (XEMSW_LCONTROL):
12304         * event-msw.c (mswindows_handle_sticky_modifiers):
12305         * event-msw.c (FROB):
12306         * event-msw.c (clear_sticky_modifiers):
12307         * event-msw.c (output_modifier_keyboard_state):
12308         * event-msw.c (output_alt_keyboard_state):
12309         * event-msw.c (mswindows_wnd_proc):
12310         * event-msw.c (mswindows_modifier_state):
12311         * event-msw.c (emacs_mswindows_handle_magic_event):
12312         implement sticky modifiers.
12313
12314         * event-stream.c:
12315         * event-stream.c (vars_of_event_stream):
12316         move modifier-keys-are-sticky here.
12317
12318         * lisp.h:
12319         add CHECK_FUNCTION.
12320
12321         * rangetab.c:
12322         implement map-range-table.
12323
12324
12325 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
12326
12327         * redisplay-tty.c (reset_tty_modes):
12328         (tty_redisplay_shutdown): Adjust argument type to
12329         tty_frame_output_end.
12330
12331 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12332
12333         * eval.c (Fbacktrace): Don't output a line with only right
12334         parenthesis.
12335
12336 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
12337
12338         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
12339         (Fpq_reset_poll): Ditto.
12340
12341 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
12342
12343         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
12344
12345 2000-05-16  Ben Wing  <ben@xemacs.org>
12346
12347         * buffer.c:
12348         * buffer.c (dfc_convert_to/from_internal_format):
12349         * buffer.c (reinit_vars_of_buffer):
12350         Fix conversion functions to allow reentrancy.
12351
12352         * console-msw.c:
12353         * console-msw.c (mswindows_output_last_error):
12354         New fun, generally useful -- output a human-readable
12355         version of GetLastError() on the console.
12356
12357         * console-msw.h:
12358         * console-msw.h (struct mswindows_frame):
12359         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
12360
12361         * console-stream.c (stream_output_begin):
12362         * console-stream.c (stream_output_end):
12363         * console-stream.c (stream_output_vertical_divider):
12364         * console-stream.c (stream_clear_region):
12365         * console-stream.c (stream_flash):
12366         * console-stream.c (console_type_create_stream):
12367         Delete blank stream methods, not needed.
12368
12369         * console.h (struct console_methods):
12370         Split begin/end methods into window and frame.
12371
12372         * event-msw.c:
12373         * event-msw.c (mswindows_handle_paint):
12374         * event-msw.c (output_alt_keyboard_state):
12375         * event-msw.c (mswindows_wnd_proc):
12376         * event-msw.c (vars_of_event_mswindows):
12377         Comment about problems with ignored-expose.
12378         Define mswindows-debug-events; not really implemented.
12379
12380         * frame-msw.c (mswindows_init_frame_1):
12381         random cleanups.
12382
12383         * glyphs-msw.c:
12384         * glyphs-msw.c (begin_defer_window_pos):
12385         * glyphs-msw.c (mswindows_unmap_subwindow):
12386         * glyphs-msw.c (mswindows_map_subwindow):
12387         * glyphs-msw.c (mswindows_resize_subwindow):
12388         Use DeferWindowPos to reduce flashing when mapping/unmapping.
12389
12390         * glyphs.c (make_image_instance_1):
12391         Fix crash.
12392
12393         * gutter.c (Fredisplay_gutter_area):
12394         Use new begin/end methods.
12395
12396         * lisp.h (Dynarr_new2):
12397         New creation fun.
12398
12399         * redisplay-msw.c:
12400         * redisplay-msw.c (mswindows_frame_output_begin):
12401         * redisplay-msw.c (mswindows_frame_output_end):
12402         * redisplay-msw.c (console_type_create_redisplay_mswindows):
12403         New begin/end methods -- handle DeferWindowPos.
12404
12405         * redisplay-output.c (redisplay_move_cursor):
12406         * redisplay-output.c (redraw_cursor_in_window):
12407         * redisplay-output.c (redisplay_update_line):
12408         * redisplay-output.c (redisplay_output_window):
12409         New begin/end methods.
12410
12411         * redisplay-tty.c:
12412         * redisplay-tty.c (tty_frame_output_begin):
12413         * redisplay-tty.c (tty_frame_output_end):
12414         * redisplay-tty.c (console_type_create_redisplay_tty):
12415         New begin/end methods.
12416
12417         * redisplay-x.c:
12418         * redisplay-x.c (x_window_output_begin):
12419         * redisplay-x.c (x_window_output_end):
12420         * redisplay-x.c (console_type_create_redisplay_x):
12421         New begin/end methods.
12422
12423         * redisplay.c (redisplay_frame):
12424         * redisplay.c (Fredisplay_echo_area):
12425         New begin/end methods.
12426         use MAYBE_DEVMETH for clear_frame; it may not exist.
12427
12428         * window.h (WINDOW_XFRAME):
12429         WINDOW_XFOO macros -- get locale and decode struct pointer.
12430
12431
12432 2000-05-12  Ben Wing  <ben@xemacs.org>
12433
12434         * emacs.c:
12435         * emacs.c (ensure_no_quitting_from_now_on):
12436         * emacs.c (fatal_error_signal):
12437         * emacs.c (mswindows_handle_hardware_exceptions):
12438         * emacs.c (main):
12439         * emacs.c (Fkill_emacs):
12440         * emacs.c (shut_down_emacs):
12441         * emacs.c (assert_failed):
12442         various improvements in fatal error handling.
12443
12444         * eval.c:
12445         move preparing_for_armageddon to emacs.c.
12446
12447         * lisp.h:
12448         declare fatal_error_in_progress.
12449
12450         * print.c:
12451         * print.c (std_handle_out_external):
12452         * print.c (std_handle_out_va):
12453         * print.c (stderr_out):
12454         * print.c (stdout_out):
12455         use console under mswin when no standard output.
12456         don't do code conversion during fatal error.
12457
12458         * scrollbar.c (Fscrollbar_page_up):
12459         * scrollbar.c (Fscrollbar_page_down):
12460         fix missing else.  reindent.
12461
12462 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
12463
12464         Emergency fix.
12465
12466         * glyphs.h (GLYPH_CACHEL_DESCENT):
12467         (GLYPH_CACHEL_DESCENT):
12468         (GLYPH_CACHEL_DESCENT):
12469         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
12470         used in case these are inline functions.
12471         Use more absurd values to error check.
12472
12473         include window.h for error check functions.
12474
12475 2000-05-11  Ben Wing  <ben@xemacs.org>
12476
12477         * cmdloop.c (Freally_early_error_handler):
12478         Display message box under windows; otherwise, message will disappear
12479         before it can be viewed.
12480
12481         * console-msw.c:
12482         * console-msw.c (Fmswindows_message_box):
12483         * console-msw.c (FROB):
12484         * console-msw.c (syms_of_console_mswindows):
12485         Define new fun `mswindows-message-box'.
12486         #### I will merge this into `popup-dialog-box'; just give me
12487         a bit of time.
12488
12489         * general.c:
12490         * general.c (syms_of_general):
12491         Some new symbols used in `mswindows-message-box'.
12492
12493         * glyphs.c:
12494         * glyphs.c (Fset_image_instance_property):
12495         put warning in this fun.
12496
12497         * glyphs.h:
12498         * glyphs.h (GLYPH_CACHEL_WIDTH):
12499         * glyphs.h (GLYPH_CACHEL_ASCENT):
12500         * glyphs.h (GLYPH_CACHEL):
12501         * glyphs.h (GLYPH_CACHEL_GLYPH):
12502         define error-checking versions to try to catch a bug i've seen --
12503         redisplay gets in an infinite loop because the glyph width of the
12504         continuation glyph is 65535.
12505
12506         * lisp.h:
12507         Extern message-box stuff.
12508
12509         * window.c (allocate_window):
12510         * window.c (make_dummy_parent):
12511         * window.c (Fset_window_configuration):
12512         Use EQUAL not EQ for subwindow caches to make them work a bit
12513         better. (Something is still very broken.)
12514
12515
12516 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
12517
12518         * glyphs.c (image_instantiate): Suppress gcc warnings.
12519         (Fmake_image_instance): Fix doc string.
12520         * specifier.c (Fmake_specifier): Ditto.
12521
12522 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
12523
12524         * paths.h.in (PATH_LOCK): Removed.
12525         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
12526         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
12527
12528 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
12529
12530         * fns.c (Ffeaturep): Update e-mail address in doc-string.
12531         Document (featurep '(and xemacs 21.02)).
12532
12533 2000-05-09  Ben Wing  <ben@xemacs.org>
12534
12535         * buffer.c (complex_vars_of_buffer):
12536         update modeline-format doc.
12537
12538         * device.h:
12539         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
12540
12541         * emacs.c:
12542         timeline of all released versions of Emacs, for use in creating
12543         authorship comments and in synching up.
12544
12545         * glyphs-widget.c (image_instantiator_buttons):
12546         * glyphs-widget.c (image_instantiator_edit_fields):
12547         * glyphs-widget.c (image_instantiator_combo_box):
12548         * glyphs-widget.c (image_instantiator_scrollbar):
12549         * glyphs-widget.c (image_instantiator_progress_guage):
12550         * glyphs-widget.c (image_instantiator_tree_view):
12551         * glyphs-widget.c (image_instantiator_tab_control):
12552         * glyphs-widget.c (image_instantiator_labels):
12553         * glyphs-widget.c (image_instantiator_layout):
12554         * glyphs-widget.c (image_instantiator_native_layout):
12555         rename decode_domain method to governing_domain.
12556
12557         * glyphs.c:
12558         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
12559         * glyphs.c (add_entry_to_device_ii_format_list):
12560         make sure we don't put an entry more than once into the list.
12561         * glyphs.c (check_instance_cache_mapper):
12562         *************************************************************
12563         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12564         HAVE BEEN GETTING.
12565         *************************************************************
12566         * glyphs.c (get_image_instantiator_governing_domain):
12567         clean up, expand on new concept of governing domain.
12568         * glyphs.c (instantiate_image_instantiator):
12569         * glyphs.c (allocate_image_instance):
12570         use governing_domain instead of cache_domain in naming.
12571         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
12572         * glyphs.c (make_image_instance_1):
12573         * glyphs.c (Fmake_image_instance):
12574         allow for any domain (not just device), and process the
12575         governing domain correctly.  very big doc fix.
12576         * glyphs.c (Fimage_instance_domain):
12577         new primitive, to retrieve the governing domain of an image instance.
12578         * glyphs.c (image_instantiate):
12579         use new governing_domain stuff.  this fixes a crash you could get
12580         by instantiating certain widget glyphs in frame locales. (should
12581         signal an error instead of crashing.)
12582         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
12583         * glyphs.c (Fglyphp): clean up doc.
12584         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
12585         * glyphs.c (syms_of_glyphs):
12586         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
12587         * glyphs.c (image_instantiator_format_create): add some comments about
12588         bogus code.
12589         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
12590         for current-display-table. (Apparently Hrjove implemented in 1998 a
12591         design I wrote up in 1996, but didn't update the doc string.)
12592
12593         * glyphs.h: clean up a doc string.
12594         * glyphs.h (governing_domain):
12595         * glyphs.h (struct image_instantiator_methods):
12596         changes for governing_domain stuff.
12597
12598         * gutter.c:
12599         * gutter.c (Fgutter_specifier_p):
12600         * gutter.c (Fgutter_size_specifier_p):
12601         * gutter.c (Fgutter_visible_specifier_p):
12602         * objects.c:
12603         * objects.c (Fcolor_specifier_p):
12604         * objects.c (Ffont_specifier_p):
12605         * objects.c (Fface_boolean_specifier_p):
12606         doc strings moved to make-*-specifier.
12607
12608         * redisplay.c (add_disp_table_entry_runes_1):
12609         * redisplay.c (generate_fstring_runes):
12610         * redisplay.c (screen):
12611         add random comments and doc strings.
12612
12613         * specifier.c:
12614         * specifier.c (Fmake_specifier):
12615         major overhaul of this doc string.
12616
12617         * specifier.c (Fvalid_specifier_domain_p):
12618         comment about the bogosity of image instances being domains.
12619         * specifier.c (decode_domain):
12620         now non-static, used in glyphs.c.
12621         * specifier.c (specifier_instance):
12622         comment about the bogosity of image instances being domains.
12623         * specifier.c (Fgeneric_specifier_p):
12624         move doc string to make-generic-specifier.
12625         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
12626         rebackslashify.
12627
12628         * specifier.h:
12629         * specifier.h (DOMAIN_FRAME):
12630         * specifier.h (DOMAIN_LIVE_P):
12631         * specifier.h (DOMAIN_XDEVICE):
12632         rebackslashify.
12633         add comments about problems with these macros.
12634         prototype for decode_domain.
12635
12636         * toolbar.c:
12637         * toolbar.c (Ftoolbar_specifier_p):
12638         move doc string to `make-toolbar-specifier'.
12639
12640         * window.c (window_unmap_subwindows_cache_mapper):
12641         *************************************************************
12642         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
12643         HAVE BEEN GETTING.
12644         *************************************************************
12645
12646 2000-05-09  Andy Piper  <andy@xemacs.org>
12647
12648         * glyphs.h: declare reset_frame_subwindow_instance_cache.
12649
12650         * window.c (Fset_window_configuration): reset the frame subwindow
12651         cache and re-initialize the window subwindow caches.
12652
12653         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
12654
12655 2000-05-09  Ben Wing  <ben@xemacs.org>
12656
12657         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
12658         DWORD.
12659
12660 2000-04-26  Mike Woolley  <mike@bulsara.com>
12661
12662         * ntheap.c: Changed recreate_heap to limit the amount reserved
12663         for the heap to that which is actually available. Also now
12664         displays a message box (with some dignostics) in the event that
12665         it still can't start.
12666
12667 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
12668
12669         * callproc.c (Fold_call_process_internal): GCPRO path
12670
12671 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
12672
12673         Patch by Bill Perry.
12674
12675         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
12676         back data instead of #ifdef.
12677         (Fscrollbar_page_down): ditto.
12678
12679 2000-05-07  Ben Wing  <ben@xemacs.org>
12680
12681         * buffer.h:
12682         Kludge for defining Qmswindows_tstr.
12683
12684         * nt.c:
12685         * nt.c (open_input_file):
12686         * nt.c (open_output_file):
12687         * nt.c (rva_to_section):
12688         * nt.c (mswindows_executable_type):
12689         Move all memory-mapped-file routines here (some were in unexnt.c,
12690         which is bad because they are used by process-nt.c, and unexnt
12691         won't be around when portable dumping).  Synched the above routines
12692         with FSF 20.6.
12693
12694         * nt.h:
12695         Removed ifdef'd out bogus code.
12696         Fixed some prototypes.
12697
12698         * nt.h (file_data):
12699         * nt.h (OFFSET_TO_RVA):
12700         * nt.h (RVA_TO_OFFSET):
12701         * nt.h (RVA_TO_PTR):
12702         Moved the memory-mapped-file structures, macros and prototypes
12703         here, to parallel nt.c.  ntheap.h should really be removed
12704         entirely, and it's a non-portable-dumper specific file.
12705
12706         * ntheap.h (round_to_next):
12707         Moved the memory-mapped-file structures, macros and prototypes
12708         to nt.h.
12709
12710         * ntproc.c (compare_env):
12711         Moved rva_to_section and mswindows_executable_type to nt.c.
12712         Moved compare_env to process-nt.c.
12713         ntproc.c will die, one day.
12714
12715         * ntproc.c (sys_spawnve):
12716         Account for win32_ -> mswindows_.
12717
12718         * process-nt.c:
12719         * process-nt.c (struct nt_process_data):
12720         * process-nt.c (ensure_console_window_exists):
12721         * process-nt.c (compare_env):
12722         * process-nt.c (nt_create_process):
12723         * process-nt.c (nt_kill_process_by_pid):
12724         * process-nt.c (syms_of_process_nt):
12725         * process-nt.c (vars_of_process_nt):
12726         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
12727         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
12728         changes).  Eliminate our old `nt-quote-process-args' mechanism.
12729         Synch up nt_create_process with FSF 20.6 sys_spawnve.
12730         Move compare_env here from ntproc.c.
12731
12732         * process.c (Fprocess_send_region):
12733         Takes an optional fourth argument, BUFFER, which should fix some
12734         problems with call-process.
12735
12736         * syscommctrl.h:
12737         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
12738
12739         * syswindows.h:
12740         Move ICC_BAR_CLASSES to syscommctrl.h.
12741         Add preliminary macros for MSWindows/Mule.  More to come.
12742
12743         * unexnt.c:
12744         * unexnt.c (unexec):
12745         open_output_file moved to nt.c.
12746
12747
12748 2000-05-05  Andy Piper  <andy@xemacs.org>
12749
12750         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
12751         instance from the frame cache also since GC may catch up too late
12752         to make frame deletion sane.
12753
12754 2000-05-04  Andy Piper  <andy@xemacs.org>
12755
12756         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
12757         (x_finalize_image_instance): ungcpro on deletion.
12758
12759         * glyphs.c (image_instantiator_format_create): give pointers a
12760         query geometry method so that the geometry is at least set.
12761
12762         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
12763         initialize layouts if using widgets.
12764
12765 2000-05-03  Andy Piper  <andy@xemacs.org>
12766
12767         * nt.c: remove bogus reference to sysmmsystem.h
12768
12769         * gui-x.c (popup_selection_callback): fix no selection abort.
12770
12771 2000-05-02  Andy Piper  <andy@xemacs.org>
12772
12773         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
12774         (mswindows_widget_instantiate): ditto.
12775
12776         * glyphs-widget.c (initialize_widget_image_instance): initialize
12777         children correctly.
12778         (widget_instantiate): cope with children and items in the same
12779         instance.
12780
12781         * glyphs.c (mark_image_instance): cope with children as a first
12782         class member.
12783         (image_instance_equal): ditto.
12784         (image_instance_hash): ditto.
12785         (image_instance_changed): ditto.
12786
12787 2000-04-30  Andy Piper  <andy@xemacs.org>
12788
12789         * glyphs.c (subwindow_query_geometry): new function. Return some
12790         defaults.
12791         (subwindow_instantiate): don't assign dimensions if none have been
12792         given.
12793         (image_instantiator_format_create): add subwindow_query_geometry.
12794         (print_image_instance): cope with layouts as widgets.
12795
12796 2000-04-29  Andy Piper  <andy@xemacs.org>
12797
12798         * frame.c (delete_frame_internal): call
12799         free_frame_subwindow_instance_cache so that all subwindows are
12800         finalized before their parent.
12801         (mark_frame): remove subwindow_cachels.
12802         (Fmake_frame): remove subwindow_cachel manipulation.
12803         (allocate_frame_core): subwindow_instance_cache is a weak list.
12804         (delete_frame_internal): set subwindow_instance_cache to nil.
12805
12806         * glyphs-msw.c (mswindows_finalize_image_instance): make double
12807         finalization safe.
12808         (mswindows_finalize_image_instance): use the device
12809         not the domain as the domain may have died already.
12810
12811         * glyphs-x.c (x_finalize_image_instance): ditto.
12812         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
12813         HEIGHT.
12814
12815         * redisplay-output.c (redisplay_unmap_subwindows): update for
12816         subwindow instance cache as a weak list.
12817         (redisplay_unmap_subwindows_maybe): ditto.
12818         (redisplay_unmap_subwindows_except_us): ditto.
12819
12820         * glyphs.c (unmap_subwindow): error checking will check the domain
12821         so don't deal with it here. Don't use cachels anymore.
12822         (map_subwindow): ditto.
12823         (update_subwindow_cachel_data): remove old accessor names.
12824         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
12825         (Fresize_subwindow): don't update cachel.
12826         (mark_subwindow_cachels):
12827         (update_subwindow_cachel_data):
12828         (add_subwindow_cachel):
12829         (get_subwindow_cachel_index):
12830         (update_subwindow_cachel):
12831         (reset_subwindow_cachels):
12832         (mark_subwindow_cachels_as_not_updated): deleted.
12833         (cache_subwindow_instance_in_frame_maybe): new function. Add a
12834         subwindow instance to the frame cache.
12835         (find_matching_subwindow): update for subwindow instance cache as
12836         a weak list.
12837         (update_widget_instances): ditto.
12838         (image_instance_type_to_mask):inlined.
12839         (free_frame_subwindow_instance_cache): new function. finalize all
12840         subwindows that are instantiated.
12841
12842         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
12843         of cachel information.
12844         (IMAGE_INSTANCE_DISPLAY_X):
12845         (IMAGE_INSTANCE_DISPLAY_Y):
12846         (IMAGE_INSTANCE_DISPLAY_WIDTH):
12847         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
12848         (XIMAGE_INSTANCE_DISPLAY_X):
12849         (XIMAGE_INSTANCE_DISPLAY_Y):
12850         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
12851         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
12852         remove subwindow_cachel structure and function references.
12853         (image_instance_type_to_mask): inline from glyphs.c
12854
12855         * redisplay.c (redisplay_frame): remove subwindow_cachel
12856         references.
12857
12858         * frame.h (struct frame): remove subwindow_cachels.
12859         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
12860
12861         * frameslots.h: add subwindow_instance_cache.
12862
12863         * window.c (replace_window): check subwindow cache of replacement.
12864         (window_unmap_subwindows_cache_mapper):
12865         (window_unmap_subwindows): new functions. Unmap all subwindows
12866         cached on this window.
12867         (mark_window_as_deleted): unmap all subwindows.
12868
12869 2000-04-27  Andy Piper  <andy@xemacs.org>
12870
12871         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
12872
12873         * glyphs-widget.c (widget_layout): return something.
12874         (layout_layout): return something. Fail if not initialized.
12875         (layout_query_geometry): ditto.
12876         (image_instantiator_native_layout): new function. Initialized the
12877         native layout type.
12878         (widget_instantiate): don't do layout stuff here.
12879
12880         * glyphs.c (instantiate_image_instantiator): reorded calling or
12881         instantiate and post_instantiate with layout in between.
12882         (image_instance_layout): be more selective about deciding whether
12883         the layout has been done or not.
12884
12885         * glyphs.h (struct image_instantiator_methods): return a value
12886         from layout_method.
12887
12888 2000-04-26  Andy Piper  <andy@xemacs.org>
12889
12890         * glyphs.c (allocate_image_instance): make initial width and
12891         height unspecified. Set initialized to 0.
12892
12893         * syscommctrl.h new file. Encapsulates commctrl.h.
12894
12895         * syswindows.h new file. Encapsulates windows.h.
12896
12897         * ntplay.c: use new syswindows.h and syscommctrl.h header.
12898         * nt.c: ditto.
12899         * console-msw.h: ditto.
12900
12901         * redisplay-tty.c (tty_output_display_block): remove layout references.
12902
12903         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
12904         window handle rather than just the frame.
12905
12906         * glyphs.c (mark_image_instance): remove layout references.
12907         (print_image_instance): ditto.
12908         (image_instance_equal): ditto.
12909         (image_instance_hash): ditto.
12910         (decode_image_instance_type): ditto.
12911         (encode_image_instance_type): ditto.
12912         (image_instantiate): ditto.
12913         (allocate_glyph): ditto.
12914         (Fimage_instance_height): ditto.
12915         (Fimage_instance_width): ditto.
12916         (update_subwindow): ditto.
12917
12918         * redisplay-x.c (x_output_display_block): recode for layouts as
12919         widgets.
12920
12921         * redisplay-output.c (redisplay_output_layout): recode for layouts
12922         as widgets.
12923         (compare_runes): remove layout references.
12924
12925         * redisplay-msw.c (mswindows_output_display_block): recode for
12926         layouts as widgets.
12927
12928         * glyphs-widget.c (image_instantiator_layout): remove
12929         layout_possible_dest_types.
12930         (layout_possible_dest_types): deleted.
12931
12932         * glyphs.h (image_instance_type): remove layout references.
12933         (struct Lisp_Image_Instance): ditto. Add initialized flag.
12934         (IMAGE_INSTANCE_INITIALIZED): new accessor.
12935         (XIMAGE_INSTANCE_INITIALIZED): ditto.
12936
12937 2000-04-25  Andy Piper  <andy@xemacs.org>
12938
12939         * glyphs-widget.c (image_instantiator_buttons):
12940         (image_instantiator_edit_fields):
12941         (image_instantiator_combo_box):
12942         (image_instantiator_scrollbar):
12943         (image_instantiator_progress_guage):
12944         (image_instantiator_tree_view):
12945         (image_instantiator_tab_control):
12946         (image_instantiator_labels):
12947         (image_instantiator_layout): call default post_instantiate method.
12948         (widget_post_instantiate): new function. Simply lays out the
12949         widgets.
12950
12951         * glyphs.h (struct image_instantiator_methods): add
12952         post_instantiate method.
12953
12954         * glyphs.c (instantiate_image_instantiator): add post_instantiate
12955         method calls.
12956
12957 2000-04-23  Andy Piper  <andy@xemacs.org>
12958
12959         * glyphs.h (struct image_instantiator_methods): add
12960         decode_domain_method.
12961         (struct Lisp_Image_Instance): remove subwindow frame - it can be
12962         derived from the domain.
12963         (IMAGE_INSTANCE_FRAME): new accessor.
12964         (XIMAGE_INSTANCE_FRAME): ditto.
12965
12966         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
12967         instead of _SUBWINDOW_FRAME.
12968         (finalize_image_instance): ditto.
12969         (Fimage_instance_foreground): ditto.
12970         (Fimage_instance_background): ditto.
12971         (image_instantiate): ditto.
12972         (update_subwindow_cachel): ditto.
12973         (update_subwindow): ditto.
12974         (unmap_subwindow): ditto.
12975         (map_subwindow): ditto
12976         (subwindow_instantiate): ditto.
12977         * glyphs-msw.c (mswindows_update_widget): ditto.
12978         (mswindows_progress_gauge_instantiate): ditto.
12979         (mswindows_tab_control_update): ditto.
12980         * glyphs-x.c (x_update_widget): ditto.
12981         (x_widget_instantiate): ditto.
12982         (x_tab_control_instantiate): ditto.
12983         (x_tab_control_update): ditto.
12984         * event-msw.c (mswindows_wnd_proc): ditto
12985
12986         * glyphs-widget.c (image_instantiator_layout): use
12987         subwindow_decode_domain.
12988         (image_instantiator_buttons): ditto.
12989         (image_instantiator_edit_fields): ditto.
12990         (image_instantiator_combo_box): ditto.
12991         (image_instantiator_scrollbar): ditto.
12992         (image_instantiator_progress_guage): ditto.
12993         (image_instantiator_tree_view): ditto.
12994         (image_instantiator_tab_control): ditto.
12995         (image_instantiator_labels): ditto.
12996         (image_instantiator_layout): ditto.
12997
12998         * glyphs.c: add instance error checking to many functions.
12999         (instantiate_image_instantiator): decode device from cache_domain.
13000         (image_instantiate): partially rewrite by using
13001         decode_image_instantiator_domain to determine what domain the
13002         instance needs to be cached in.
13003         (decode_image_instantiator_domain): new function. Determine what
13004         domain the image needs to be cached in.
13005         (check_window_subwindow_cache): new error checking function.
13006         (check_instance_cache_mapper): ditto.
13007         (check_image_instance_structure): ditto.
13008         (subwindow_decode_domain): new function. Encodes a window as a
13009         subwindow's cache domain.
13010         (image_instantiator_format_create): use it for text and
13011         subwindows.
13012
13013 2000-04-21  Andy Piper  <andy@xemacs.org>
13014
13015         * glyphs.c (image_instance_device): new function.
13016         (image_instance_frame): new function.
13017         (image_instance_window): new function.
13018         (image_instance_live_p): new function.
13019
13020         * window.c (mark_window_as_deleted): reset the subwindow_instance_
13021         cache to nil.
13022
13023         * glyphs.h (struct Lisp_Image_Instance): device->domain.
13024         (IMAGE_INSTANCE_DOMAIN): new accessor.
13025         (XIMAGE_INSTANCE_DOMAIN): ditto.
13026
13027         * glyphs-x.c (x_finalize_image_instance): device->domain.
13028
13029         * glyphs-msw.c (init_image_instance_geometry): device->domain.
13030         (mswindows_finalize_image_instance): ditto.
13031
13032         * glyphs-eimage.c (jpeg_instantiate): device->domain.
13033         (gif_instantiate): ditto.
13034         (png_instantiate): ditto.
13035         (tiff_instantiate): ditto.
13036
13037         * glyphs.c (instantiate_image_instantiator): use domain rather
13038         than device.
13039         (mark_image_instance): device -> domain.
13040         (print_image_instance): ditto.
13041         (finalize_image_instance): ditto.
13042         (image_instance_equal): ditto.
13043         (allocate_image_instance): ditto.
13044         (Fcolorize_image_instance): ditto.
13045         (query_string_geometry): ditto.
13046         (image_instantiate): ditto
13047         (query_string_font): ditto.
13048         (image_instantiate): ditto.
13049         (update_subwindow): ditto.
13050         (unmap_subwindow): ditto.
13051         (map_subwindow): ditto.
13052         (subwindow_instantiate): ditto.
13053
13054         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
13055         (DOMAIN_FRAME): ditto.
13056         (DOMAIN_WINDOW): ditto.
13057         (DOMAIN_LIVE_P): ditto.
13058         (XDOMAIN_DEVICE): ditto.
13059         (XDOMAIN_FRAME): ditto.
13060         (XDOMAIN_WINDOW): ditto.
13061
13062         * specifier.c (Fvalid_specifier_domain_p): add image instances as
13063         a valid specifier domain.
13064
13065 2000-04-19  Andy Piper  <andy@xemacs.org>
13066
13067         * glyphs-widget.c (syms_of_glyphs_widget): remove
13068         widget-callback-current-channel.
13069         (vars_of_glyphs_widget): ditto.
13070         * glyphs.h: ditto
13071
13072         * gui.c (get_gui_callback): revert to previous behaviour.
13073
13074 2000-04-18  Andy Piper  <andy@xemacs.org>
13075
13076         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
13077         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
13078         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
13079
13080         * glyphs.c (image_instance_equal): add margin_width.
13081         (image_instance_hash): ditto.
13082
13083         * glyphs-widget.c (widget_instantiate): deal with margin-width.
13084         (layout_query_geometry): ditto.
13085         (layout_layout): ditto.
13086         (syms_of_glyphs_widget): add margin-width.
13087         (image_instantiator_layout): allow margin-width.
13088
13089         * glyphs.c (update_widget_instances): make a normal function.
13090         (syms_of_glyphs): remove Qupdate_widget_instances.
13091         * glyphs.h: ditto.
13092
13093         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
13094         so that we don't corrupt ideas about the last event or
13095         command. Remove widget-callback-current-channel fiddling.
13096         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
13097
13098 2000-05-01  Martin Buchholz <martin@xemacs.org>
13099
13100         * XEmacs 21.2.33 is released.
13101
13102 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
13103
13104         * make-src-depend: Allow dots in header file name.
13105
13106 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
13107
13108         * mule-charset.h (struct charset_lookup): Add
13109         next_allocated_1_byte_leading_byte and
13110         next_allocated_2_byte_leading_byte.
13111         * mule-charset.c: Move above two variables so that those values
13112         will be dumped.
13113
13114 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
13115
13116         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
13117         when string length is zero.
13118         (find_charsets_in_emchar_string): Ditto.
13119
13120 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
13121
13122         * lisp.h: extern Qdialog and Qmenubar.
13123
13124         * gui-x.c: added events.h.
13125                 also fixed typo which made the file uncompilable.
13126
13127         * general.c: Added Qmenubar and Qdialog
13128
13129 2000-04-28  Ben Wing  <ben@xemacs.org>
13130
13131         * frame-msw.c (mswindows_init_frame_1):
13132         * frame-msw.c (mswindows_mark_frame):
13133         * event-msw.c (mswindows_enqueue_dispatch_event):
13134         * console-msw.h:
13135         * console-msw.h (struct mswindows_frame):
13136         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
13137         there are now three hash tables for callbacks.
13138         mswindows_enqueue_dispatch_event is no longer static.
13139
13140         * dialog-x.c (maybe_run_dbox_text_callback):
13141         * dialog-x.c (dbox_descriptor_to_widget_value):
13142         switch to new cons3 form for callbacks.
13143
13144         * glyphs-msw.c (mswindows_register_gui_item):
13145         * glyphs-msw.c (mswindows_widget_instantiate):
13146         * glyphs-msw.c (add_tree_item):
13147         * glyphs-msw.c (add_tab_item):
13148         new image instance parameter, so it can be passed to callback-ex.
13149         respect :callback-ex as well as :callback.
13150
13151         * glyphs-widget.c (VALID_GUI_KEYWORDS):
13152         add :callback-ex.
13153
13154         * glyphs.c (print_image_instance):
13155         prettify, e.g. now prints widget type.
13156
13157         * gui-x.h:
13158         certain funs have new image instance parameter.
13159
13160         * gui.c:
13161         * gui.c (get_gui_callback):
13162         * gui.c (gui_item_add_keyval_pair):
13163         * gui.c (gui_item_init):
13164         * gui.c (gui_add_item_keywords_to_plist):
13165         * gui.c (mark_gui_item):
13166         * gui.c (gui_item_hash):
13167         * gui.c (gui_item_equal):
13168         * gui.c (copy_gui_item):
13169         * gui.c (syms_of_gui):
13170         recognize callback-ex in a number of places.
13171         also, fix the annoying "can't get out of yes-no dialog" bug.
13172
13173         * gui.h:
13174         * gui.h (struct Lisp_Gui_Item):
13175         recognize callback-ex in a number of places.
13176
13177         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
13178         new parameter in button_item_to_widget_value.
13179
13180         * glyphs-x.c (x_update_widget):
13181         * glyphs-x.c (x_button_instantiate):
13182         * glyphs-x.c (x_button_update):
13183         * glyphs-x.c (x_progress_gauge_instantiate):
13184         * glyphs-x.c (x_edit_field_instantiate):
13185         * glyphs-x.c (x_combo_box_instantiate):
13186         * glyphs-x.c (x_tab_control_instantiate):
13187         * glyphs-x.c (x_label_instantiate):
13188         new image instance parameter in various places.
13189
13190         * event-Xt.c:
13191         * event-Xt.c (enqueue_Xt_dispatch_event):
13192         this fun gets exported.
13193
13194         * gui-msw.c:
13195         * gui-msw.c (mswindows_handle_gui_wm_command):
13196         handle both :callback and :callback-ex, and generate our own
13197         event because it's one of the callback-ex arguments.
13198
13199         * gui-x.c:
13200         * gui-x.c (popup_selection_callback):
13201         handle both :callback and :callback-ex, and generate our own
13202         event because it's one of the callback-ex arguments.
13203         * gui-x.c (button_item_to_widget_value):
13204         * gui-x.c (gui_items_to_widget_values_1):
13205         * gui-x.c (gui_item_children_to_widget_values):
13206         * gui-x.c (gui_items_to_widget_values):
13207         new image instance parameter in various places.
13208
13209         * fns.c (Freplace_list):
13210         fix small typo in doc string.
13211
13212         * lisp.h:
13213         declare enqueue_Xt_dispatch_event.
13214
13215 2000-04-28  Ben Wing  <ben@xemacs.org>
13216
13217         * buffer.c:
13218         * buffer.c (Frecord_buffer):
13219         * buffer.c (syms_of_buffer):
13220         delete record-buffer-hook.
13221
13222         * fns.c:
13223         * fns.c (Freplace_list):
13224         * fns.c (syms_of_fns):
13225         new primitive replace-list.
13226
13227         * frameslots.h:
13228         slot for old buffer-alist.
13229
13230         * lisp.h:
13231         exfun replace-list.
13232
13233         * redisplay.c:
13234         * redisplay.c (redisplay_frame):
13235         * redisplay.c (syms_of_redisplay):
13236         * redisplay.c (vars_of_redisplay):
13237         new hook buffer-list-changed-hook.
13238         call it.
13239
13240 2000-04-27  Ben Wing  <ben@xemacs.org>
13241
13242         * extents.h: extern in_modeline_generation.
13243
13244         * redisplay.c (generate_formatted_string_db): set
13245         in_modeline_generation.
13246
13247         * extents.c (extent_changed_for_redisplay): don't mark redisplay
13248         flags if in modeline generation.  otherwise frame-modified-tick
13249         is ticked far too often.
13250         Declare in_modeline_generation.
13251
13252 2000-04-26  Ben Wing  <ben@xemacs.org>
13253
13254         * emacs.c (vars_of_emacs): document quick-build "error-checking"
13255         option.
13256         (vars_of_emacs): add quick-build as an error-checking option.
13257         A bit kludgy, but there doesn't seem much point in creating
13258         a real var for this.
13259
13260         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
13261
13262 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13263
13264         * redisplay.h (struct display_line): Add a new variable,
13265         line_continuation.
13266
13267         * redisplay.c (create_text_block): Set dl->line_continuation if
13268         the line continues.
13269         (create_string_text_block): Ditto.
13270         (regenerate_window_incrementally): Use line_continuation instead
13271         of searching continuation glyph.
13272         (add_margin_runes): Call add_glyph_rune.
13273         (add_glyph_rune): Handle margin glyph.
13274
13275 2000-04-20  Martin Buchholz  <martin@xemacs.org>
13276
13277         * filelock.c (fill_in_lock_file_name):
13278         ANSIfy.
13279         Check for IS_ANY_SEP instead of '/'.
13280         (lock_file_1):
13281         Avoid generating gratuitous garbage.  Call user_login_name() directly.
13282         Never check errno without first seeing that system call failed.
13283         (unlock_file): Add GCPRO.
13284         (Flock_buffer): Fix docstring.
13285         (Ffile_locked_p): Fix docstring.  Add GCPRO.
13286
13287 2000-04-19  Martin Buchholz  <martin@xemacs.org>
13288
13289         * sysdep.c (get_pty_max_bytes):
13290         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
13291         strings longer than 252 bytes.
13292
13293         * md5.c: Unconditionally include ANSI header <limits.h>
13294
13295         * glyphs-x.c (convert_EImage_to_XImage):
13296         * lisp-union.h (union Lisp_Object):
13297         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
13298
13299 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
13300
13301         * filelock.c (current_lock_owner): Remove unused variable o, p.
13302
13303 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
13304
13305         * callint.c: Remove multiply defined symbol Qlet
13306         (syms_of_callint): ditto.
13307
13308 2000-04-14  Andy Piper  <andy@xemacs.org>
13309
13310         * general.c (syms_of_general): add last-command, this-command, let
13311         and funcall.
13312
13313         * lisp.h: declare various symbols.
13314
13315         * glyphs.h: declare Qwidget_callback_current_channel;
13316
13317         * glyphs-widget.c (syms_of_glyphs_widget): add
13318         Qgui_callback_current_channel.
13319         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
13320
13321         * gui-msw.c (mswindows_handle_gui_wm_command): bind
13322         widget-callback-current-channel when invoking the interactive
13323         arg. Also bind last-command and next-command when invoking the
13324         widget updates.
13325         * gui-x.c (popup_selection_callback): ditto.
13326
13327         * gui.c (get_gui_callback): massage args so that we are always
13328         calling eval. This allows us to add our own variable bindings
13329         outside.
13330
13331         * glyphs-x.c (x_button_instantiate): use
13332         gui_items_to_widget_values since this is GC safe.
13333         (x_progress_gauge_instantiate): ditto.
13334         (x_edit_field_instantiate): ditto.
13335         (x_label_instantiate): ditto.
13336
13337         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
13338         (emacs_Xt_event_widget_focus_out): new function
13339         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
13340         focus.
13341         (emacs_Xt_event_add_widget_actions): new function. add focus
13342         functions as actions.
13343         (init_event_Xt_late): use it.
13344
13345 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
13346
13347         * event-stream.c (Fdispatch_event): Doc fix.
13348
13349 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
13350
13351         * postgresql.c: Remove all references to PQsetenv*.
13352
13353         * postgresql.h: Remove references to PGsetenvHandler object.
13354         * lrecord.h (lrecord_type): Ditto.
13355
13356 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
13357
13358         * glyphs-msw.h (struct mswindows_image_instance_data): Added
13359         real_heigh and real_width members, and accessor macros for these.
13360
13361         * glyphs-msw.c (init_image_instance_geometry): New function.
13362         (init_image_instance_from_dibitmap): Use it.
13363         (mswindows_resource_instantiate): Use it.
13364         (init_image_instance_from_xbm_inline): Use it.
13365         (mswindows_initialize_image_instance_mask): Use real bitmap
13366         geometry.
13367         (mswindows_create_resized_bitmap): Ditto.
13368         (mswindows_create_resized_mask): Ditto.
13369
13370         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
13371         and bitmap to their surface size.
13372
13373 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
13374
13375         * process-unix.c (unix_send_process): Guard against process MIA
13376         after Faccept_process_output.
13377
13378 2000-04-11  Ben Wing  <ben@xemacs.org>
13379
13380         * eval.c (unbind_to_hairy): fix brokenness introduced by
13381         nanosecond speed improvements.
13382
13383 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
13384
13385         * sunplay.c (init_device): To play sounds correctly, the device
13386         apparently needs to be initialized at least once by XEmacs.  Make
13387         it so.
13388
13389 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13390
13391         * redisplay.c (add_margin_runes): Add text image glyph
13392           handling.
13393
13394 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
13395
13396         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
13397         gcc is newer than 2.5.
13398
13399 2000-04-06  Colin Rafferty  <colin@xemacs.org>
13400
13401         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
13402
13403         * fns.c (size_bit_vector):
13404         * alloc.c (size_vector):
13405         (make_vector_internal):
13406         (make_bit_vector_internal):
13407         (sweep_bit_vectors_1):
13408         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
13409
13410 2000-04-06  Andy Piper  <andy@xemacs.org>
13411
13412         * gmalloc.c (malloc): undo previous change.
13413         (malloc): ditto.
13414         (free): ditto.
13415         (realloc): ditto.
13416
13417 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
13418
13419         * line-number.c (buffer_line_number): Revert to former version.
13420
13421 2000-04-06  Andy Piper  <andy@xemacs.org>
13422
13423         * gmalloc.c (malloc): add error checking.
13424         (malloc): ditto.
13425         (free): ditto.
13426         (realloc): ditto.
13427
13428         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
13429         button_item_to_widget_value arg.
13430
13431         * glyphs-x.c (x_button_instantiate): add extra
13432         button_item_to_widget_value arg.
13433         (x_progress_gauge_instantiate): ditto.
13434         (x_edit_field_instantiate): ditto.
13435         (x_label_instantiate): ditto.
13436
13437         * gui-x.c (gui_items_to_widget_values_1): add extra
13438         button_item_to_widget_value arg.
13439         (button_item_to_widget_value): add extra menu_item_p arg.
13440
13441         * gui-x.h: change signature of button_item_to_widget_value.
13442
13443         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
13444         button_item_to_widget_value arg.
13445
13446 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
13447
13448         * buffer.h (struct buffer): auto_save_modified should be long.
13449
13450 2000-04-05  Andy Piper  <andy@xemacs.org>
13451
13452         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
13453         type.
13454         (button_query_geometry): give a little more room so that athena
13455         buttons fit.
13456
13457 2000-04-05  Andy Piper  <andy@xemacs.org>
13458
13459         * faces.c (complex_vars_of_faces): The widget face should inherit
13460         the font of the gui-element face.
13461
13462 2000-04-04  Andy Piper  <andy@xemacs.org>
13463
13464         * glyphs-x.c (x_button_update): new function. unconditionally
13465         update a button's state when the instance is dirty.
13466         (image_instantiator_format_create_glyphs_x): add x_button_update.
13467         (x_widget_instantiate): remove old resize cruft.
13468
13469 2000-04-02  Andy Piper  <andy@xemacs.org>
13470
13471         * frame.c (change_frame_size_1): The introduction of gutters means
13472         that we need to allow 0 as a potential frame dimension.
13473
13474 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13475
13476         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
13477         image glyph if allow_cursor.
13478         (add_hscroll_rune): Don't allow cursor to border glyph.
13479         (create_text_block): Ditto.
13480
13481         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
13482         text not in buffer.
13483         (redisplay_output_layout): Call ensure_face_cachel_complete for
13484         text image glyph.
13485
13486
13487 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
13488
13489         * redisplay.c (add_glyph_rune): Adding text image as text runes.
13490
13491         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
13492         not in buffer
13493
13494         * redisplay-tty.c (tty_output_display_block): Delete the routine
13495         for text image glyph
13496         * redisplay-x.c (x_output_display_block): ditto
13497         * redisplay-msw.c (mswindows_output_display_block): ditto
13498
13499 2000-02-02  Mike Alexander  <mta@arbortext.com>
13500
13501         Note: Some of these were committed by accident as part of other
13502         patches.
13503
13504         * regex.c (regex_compile): Avoid compiler warnings.
13505
13506         * ntproc.c (sys_spawnve): Avoid compiler warnings.
13507
13508         * nt.h: Declare term_ntproc correctly.
13509
13510         * nt.c: Remove incorrect declaration of get_home_directory which
13511         is declared correctly in lisp.h.
13512
13513         * keymap.c (get_keyelt): Avoid compiler warnings.
13514         (raw_lookup_key_mapper): Avoid compiler warnings.
13515
13516         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
13517
13518         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
13519
13520         * filemode.c (mode_string): Avoid compiler warnings.
13521
13522         * file-coding.c (Fcoding_system_aliasee): Add return statement to
13523         avoid warning.
13524
13525         * events-mod.h: Undef some things that winuser.h defines differently.
13526
13527         * data.c (Faset): Avoid compiler warnings.
13528
13529         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
13530
13531 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13532
13533         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
13534         Fall through to simple beep on error.
13535         Replace "extern" by real header file.
13536
13537         * linuxplay.c: Use nativesound.h
13538         (play_sound_data): Return error code. Be less verbose on error.
13539
13540         * sunplay.c: Use nativesound.h
13541         (play_sound_data): Return error code. Be less verbose on error.
13542
13543         * ntplay.c: Use nativesound.h
13544         (play_sound_data): Return fake error code
13545
13546         * sgiplay.c: Use nativesound.h
13547         (play_sound_data): Return error code
13548
13549         * hpplay.c: Use nativesound.h, partially implement
13550         new error code. Break compilation until finished.
13551         (play_sound_data): error code.
13552
13553         * nativesound.h (play_sound_file):
13554           (play_sound_data): Prototype in new header.
13555
13556 2000-03-31  Andy Piper  <andy@xemacs.org>
13557
13558         * glyphs-widget.c: (button_query_geometry): new function. Adjust
13559         for toggle and radio buttons.
13560         (image_instantiator_buttons): use it.
13561
13562 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
13563
13564         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
13565         (x_update_horizontal_scrollbar_callback): Return if no mirror was
13566         found. Scrollbar event probably belonged to some old config.
13567
13568 2000-03-31  Andy Piper  <andy@xemacs.org>
13569
13570         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
13571         than 1.
13572         (initialize_widget_image_instance): default layout to
13573         LAYOUT_HORIZONTAL rather than 0.
13574         (widget_instantiate): reverse the item list at the end rather than
13575         every iteration.
13576         (layout_layout): re-code for the border text at the front of the
13577         item list rather than at the end.
13578         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
13579         provided by the user.
13580         (widget_query_geometry): comment.
13581
13582 2000-03-30  Andy Piper  <andy@xemacs.org>
13583
13584         * glyphs-widget.c (image_instantiator_layout): allow standard
13585         widget keywords in layouts.
13586
13587         * gutter.c (output_gutter): cope with nil gutter contents.
13588
13589         * frame.c (Fset_frame_properties): add gutter docs.
13590
13591 2000-03-29  Andy Piper  <andy@xemacs.org>
13592
13593         * toolbar-msw.c (TBSTYLE_FLAT): add.
13594         (mswindows_output_toolbar): minor fiddling.
13595
13596 2000-03-29  Andy Piper  <andy@xemacs.org>
13597
13598         * gutter.c (output_gutter): force gutter size recalculation if
13599         what we are trying to display won't fit.
13600         (update_gutter_geometry): new function. A per-gutter version of
13601         update_frame_gutter_geometry.
13602         (update_frame_gutter_geometry): use it.
13603         (redraw_exposed_gutter): add extra debugging output.
13604
13605 2000-03-28  Mike Alexander  <mta@arbortext.com>
13606
13607         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
13608         (pdump_file_unmap): Implement it on Windows
13609         (pdump_file_get): Save alocated handles for pdump_file_unmap
13610
13611 2000-03-28  Andy Piper  <andy@xemacs.org>
13612
13613         * gui.c (get_gui_callback): treat Quit specially.
13614
13615 2000-03-27  Andy Piper  <andy@xemacs.org>
13616
13617         * glyphs.c (image_instantiate): be careful to check in the same
13618         way we assigned.
13619
13620 2000-03-27  Didier Verna  <didier@xemacs.org>
13621
13622         * config.h.in: define the proper SMART_INCLUDE macro.
13623         handle renaming of `foo_h_path' to `foo_h_file'.
13624
13625         * database.c: ditto.
13626
13627         * emacs.c: ditto.
13628
13629         * linuxplay.c: ditto.
13630
13631         * terminfo.c: ditto.
13632
13633         * tooltalk.h: ditto.
13634
13635 2000-03-27  Andy Piper  <andy@xemacs.org>
13636
13637         * glyphs-msw.c (mswindows_update_widget): make sure the widget
13638         gets updated whenever the face might have changed.
13639
13640 2000-03-26  Mike Alexander  <mta@arbortext.com>
13641
13642         * dumper.c (pdump_resource_free): Fix the comment.
13643
13644 2000-03-21  Olivier Galibert  <galibert@pobox.com>
13645
13646         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
13647
13648 2000-03-22  Mike Alexander  <mta@arbortext.com>
13649
13650         * dumper.c: Include Windows headers on Windows
13651         (pdump_resource_free): Add a body to the function
13652         (pdump_load): exe_name -> exe_path and add some comments.
13653
13654 2000-03-25  Mike Alexander  <mta@arbortext.com>
13655
13656         * gui.c (copy_gui_item_tree): Return a value in all cases
13657
13658 2000-03-21  Didier Verna  <didier@xemacs.org>
13659
13660         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
13661         lwlib/config.h.in.
13662         (SMART_INCLUDE): new macro.
13663         (POSTGRES_INCLUDE): new macro to include postgresql headers from
13664         the proper location.
13665
13666         * postgresql.c: use it.
13667
13668         * inline.c: ditto.
13669
13670 2000-03-24  Andy Piper  <andy@xemacs.org>
13671
13672         * gutter.c (redraw_exposed_gutters): must be "in display" when we
13673         do this.
13674
13675 2000-03-24  Andy Piper  <andy@xemacs.org>
13676
13677         * redisplay-output.c (compare_runes): use image_instance_changed
13678         to detect changes. Do not depend on glyphs_changed, only depend on
13679         dirtiness.
13680          (redisplay_output_layout): add debug messages.
13681         (compare_runes): ditto.
13682
13683         * glyphs.h: declare new functions.
13684         (struct Lisp_Image_Instance): remove percent and associated
13685         accessors.
13686
13687         * gui.h: declare new copying functions.
13688
13689         * gui.c (copy_gui_item_tree): new function.
13690         (copy_gui_item): new function.
13691         (gui_item_id_hash): revert to standard hash.
13692         (gui_item_hash): ditto.
13693         (gui_item_hash_internal): deleted.
13694         (mark_gui_item): mark value.
13695         (gui_item_add_keyval_pair): add value.
13696         (gui_item_init): ditto.
13697         (gui_add_item_keywords_to_plist): ditto.
13698         (gui_item_equal): ditto.
13699         (syms_of_gui): add Q_value.
13700
13701         * glyphs-x.c (x_progress_gauge_update): use pending items and
13702         value for setting the state.
13703         (x_update_widget): don't set items from pending here.
13704
13705         * glyphs-widget.c (update_widget): update items here.
13706         (progress_gauge_set_property): use items for storing value. Put
13707         new value in pending items.
13708
13709         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
13710         items for new value. Convert percent -> value.
13711         (mswindows_tab_control_update): don't update items here.
13712
13713         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
13714         (update_subwindow): ditto.
13715         (image_instance_changed): new function. Compare hash values and
13716         past and present widget items.
13717         (image_instantiate): We more careful about where we instantiate
13718         things.
13719         (image_instantiate): add error checking.
13720
13721         * gutter.c (syms_of_gutter): use -hook.
13722
13723 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
13724
13725         * console-tty.c (Fset_console_tty_input_coding_system): Use
13726         Qkeyboard.
13727         (Fset_console_tty_output_coding_system): Use Qterminal.
13728         (tty_init_console): Use Qkeyboard and Qterminal.
13729
13730 2000-03-21  Ben Wing  <ben@xemacs.org>
13731
13732         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
13733         From Mike Alexander <mta@arbortext.com>.
13734
13735 2000-03-21  Ben Wing  <ben@xemacs.org>
13736
13737         * event-msw.c (mswindows_need_event): Horrible kludge to fix
13738         process brokenness.  Proper implementation to come.
13739         * callproc.c:
13740         Rename call-process-internal to old-call-process-internal.
13741         New impl. in process.el.
13742
13743 2000-03-21  Martin Buchholz  <martin@xemacs.org>
13744
13745         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
13746
13747 2000-03-20  Andy Piper  <andy@xemacs.org>
13748
13749         * glyphs.c (full_list_hash): make hashes of the same elements in
13750         different orders return different values.
13751
13752 2000-03-20  Martin Buchholz <martin@xemacs.org>
13753
13754         * XEmacs 21.2.32 is released.
13755
13756 2000-03-20  Martin Buchholz  <martin@xemacs.org>
13757
13758         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
13759         (DFC_MALLOC_USE_CONVERTED_DATA):
13760         Add aliasing-safe casts to allow use with char* or unsigned char*
13761         lvalues.
13762
13763         * eldap.c (Fldap_open):
13764         (Fldap_search_basic):
13765         (Fldap_add):
13766         (Fldap_modify):
13767         Make C++-compilable.
13768         Make sure GCPRO'ed variables are initialized.
13769         Use temp variables to avoid repeated calls to Flength.
13770
13771 2000-03-16  Martin Buchholz  <martin@xemacs.org>
13772
13773         * sysfile.h:
13774         Make sure PATH_MAX is always defined.
13775         Include limits.h for PATH_MAX.
13776         Deprecate use of MAXPATHLEN.
13777
13778 2000-03-10  Martin Buchholz  <martin@xemacs.org>
13779
13780         * emacs.c: Add reinit_vars_of_fileio.
13781         * symsinit.h: Add reinit_vars_of_fileio.
13782         * fileio.c (reinit_vars_of_fileio): New.
13783         * fileio.c (Fmake_temp_name):
13784         Initialize temp_name random number from microseconds to make
13785         collisions even less likely.  Initialize always at process startup
13786         time.  (make-temp-name) used to return the same file name twice in
13787         a row when PDUMP.
13788         Random stylistic fiddling.
13789         Comment fixes.
13790
13791 2000-03-20  Andy Piper  <andy@xemacs.org>
13792
13793         * glyphs.c (image_instantiate): allow text glyphs to be
13794         instantiated in the minibuffer window.
13795
13796 2000-03-19  Andy Piper  <andy@xemacs.org>
13797
13798         * glyphs.c (image_instance_hash): be careful about which items we
13799         hash on.
13800
13801         * glyphs-widget.c (tab_control_set_property): record into pending
13802         items rather than the actual items.
13803
13804         * glyphs-x.c (x_update_widget): use pending items to update with.
13805
13806         * glyphs-msw.c (mswindows_tab_control_update): use pending items
13807         to update with.
13808
13809         * glyphs.c (mark_image_instance): mark pending items.
13810
13811         * window.c (Fset_window_configuration): record the buffer.
13812         (Fselect_window): totally revert previous change which breaks many
13813         things.
13814
13815 2000-03-18  Andy Piper  <andy@xemacs.org>
13816
13817         * glyphs-msw.c (mswindows_tab_control_update): force selected
13818         item.
13819
13820         * glyphs.c (image_instantiate): don't allow the minibuffer as a
13821         window domain cache, otherwise we get inconsistencies at
13822         startup. There is something fishy at startup which can lead to the
13823         minibuffer being the selected window when the gutter content is
13824         instantiated.
13825
13826         * gui.c (parse_gui_item_tree_list): add probably unnecessary
13827         gcpros.
13828         (parse_gui_item_tree_children): ditto.
13829         (parse_gui_item_tree_item): ditto.
13830
13831         * glyphs.c (Fupdate_widget_instances): return something.
13832
13833 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
13834
13835         * window.c (Fselect_window): Undo 2000-03-17 change.
13836
13837 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
13838
13839         * postgresql.c (Fpq_setenv): Remove this turkey when linking
13840         against v7.0 libraries.  Insta-coredump city until the postgres
13841         folks fix it.
13842
13843 2000-03-17  Andy Piper  <andy@xemacs.org>
13844
13845         * faces.c (complex_vars_of_faces): don't give the widget face an
13846         inherited background pixmap.
13847
13848         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
13849         selected item.
13850
13851         * event-stream.c (Fdispatch_non_command_events): return something.
13852
13853         * gutter.c (output_gutter): use widget face.
13854         (clear_gutter): ditto.
13855
13856         * NEWS: adjust again.
13857
13858         * window.c (Fselect_window): make sure this runs to completion to
13859         avoid oddities with Fset_window_configuration.
13860         (Fcurrent_window_configuration): in general do not save the
13861         minibuffer as the selected window.
13862
13863         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
13864
13865 2000-03-16  Olivier Galibert  <galibert@pobox.com>
13866
13867         * emacs.c (Frunning_temacs_p): Revert previous patch.
13868         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
13869
13870 2000-03-16  Andy Piper  <andy@xemacs.org>
13871
13872         * glyphs-x.c (x_tab_control_update): if no widget values then
13873         return.
13874
13875         * NEWS: update for new features.
13876
13877         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
13878         synthetic event to the native system.
13879         (reinit_vars_of_event_Xt): set force_event_pending to
13880         emacs_Xt_force_event_pending.
13881
13882         * events.h (struct event_stream): add force_event_pending.
13883
13884         * specifier.c (recompute_one_cached_specifier_in_window): add
13885         comment.
13886
13887         * redisplay.c (redisplay_frame): don't call
13888         update_frame_subwindows. Reset subwindow cachels when
13889         subwindows_changed, removing this was an optimization too far.
13890
13891         * redisplay-output.c (compare_runes): reorganize so that we catch
13892         glyph changes when we want them. Set optimize_output when this
13893         would help layouts.
13894         (redisplay_output_layout): remove frame_really_changed, use
13895         optimize_output instead.
13896
13897         * redisplay-msw.c (mswindows_output_display_block): reset
13898         optimize_output after outputting a glyph.
13899         * redisplay-x.c (x_output_display_block): ditto.
13900         * redisplay-tty.c (tty_output_display_block): ditto.
13901
13902         * gutter.c: (specifier_vars_of_gutter): use new spec changed
13903         functions.
13904         (gutter_specs_changed): do specific gutter positions.
13905         (top_gutter_specs_changed): new function. Only update the
13906         specified gutter specs.
13907         (bottom_gutter_specs_changed): ditto.
13908         (left_gutter_specs_changed): ditto.
13909         (right_gutter_specs_changed): ditto.
13910
13911         * gui.c (gui_item_hash_internal): new function, does a real hash.
13912         (gui_item_id_hash): use it.
13913         (gui_item_hash): hash the eval'ed gui_item.
13914
13915         * gui-x.c (popup_selection_callback): send an eval event to call
13916         Fupdate_widget_instances.
13917
13918         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
13919         to call Fupdate_widget_instances.
13920
13921         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
13922         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
13923
13924         * glyphs.c: (update_frame_subwindows): deleted.
13925         (Fupdate_widget_instances): new function for updating the dirty
13926         state of widgets that might have changed.
13927         (syms_of_glyphs): add Qupdate_widget_instances.
13928         (full_list_hash): hash a list completely.
13929         (image_instance_hash): use it for items and properties.
13930
13931         * frame-msw.c (mswindows_size_frame_internal): remove unused
13932         variable.
13933
13934         * faces.h (struct face_cachel): fix comment.
13935
13936         * event-stream.c (Fdispatch_non_command_events): new
13937         function. Process non-command events, forcing an event cycle
13938         beforehand.
13939         (syms_of_event_stream): declare.
13940         (event_stream_force_event_pending): new function. Force an event
13941         on the native event queue so that an event cycle will occur next
13942         time we check.
13943
13944         * event-msw.c:
13945         (struct ntpipe_shove_stream):
13946         (mswindows_enqueue_dispatch_event):
13947         (mswindows_dequeue_dispatch_event):
13948         (mswindows_cancel_dispatch_event):
13949         (mswindows_pump_outstanding_events):
13950         (mswindows_drain_windows_queue):
13951         (mswindows_handle_paint):
13952         (mswindows_wnd_proc):
13953         (mswindows_key_to_emacs_keysym):
13954         (get_process_input_waitable):
13955         (emacs_mswindows_delete_stream_pair): re-indent file.
13956         (mswindows_need_event): do not process further fds if the windows
13957         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
13958         fixes the 100% cpu problem.
13959         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
13960
13961 2000-03-15  Olivier Galibert  <galibert@pobox.com>
13962
13963         * alloc.h: New.
13964         * dumper.h: New.
13965         * dumper.c: New.
13966
13967         * emacs.c: Moved dump file searching to dumper.c.
13968         (Frunning_temacs_p): Fixed.
13969
13970         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
13971         last_lrecord_type_index_assigned.
13972
13973 2000-02-20  Olivier Galibert  <galibert@pobox.com>
13974
13975         * symsinit.h: Added reinit parameter to init_console_stream
13976         declaration.
13977
13978         * lisp.h: Added file parameter to pdump_load declaration.
13979
13980         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
13981         support.  Added dump file searching.
13982
13983         * config.h.in: Added EMACS_PROGNAME.
13984
13985         * console-stream.c (init_console_stream): Fix reinitialisation
13986         when running from temacs.
13987
13988         * alloc.c (pdump): Add id support.
13989         (pdump_load): Add file parameter and signature/id support.
13990
13991         * Makefile.in.in: Add full pdump support.
13992
13993 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
13994
13995         * postgresql.c: Update documentation to reflect latest code
13996         status.
13997         (print_result): Show tuple counts in printed representation when
13998         appropriate.
13999         (Fpq_put_nbytes): MULE-ize.
14000         (Fpq_get_line_async): Ditto.
14001
14002 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14003
14004         * postgresql.c (Fpq_lo_import): Fix return value.
14005         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
14006
14007 2000-03-13  Ben Wing  <ben@xemacs.org>
14008
14009         * alloc.c (pdump_load):
14010         Fix compile warning under mswin.
14011
14012 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14013
14014         * postgresql.c: Mule-ization, bug fixes.
14015         Use PG_CODING to encapsulate coding system name changes.
14016         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
14017         (pg-coding-system): Create.
14018
14019         (Fpq_conn_defaults): Mule-ize.
14020         (Fpq_connectdb): Mule-ize & bug fix.
14021         (Fpq_connect_start): Mule-ize.
14022         (Fpq_set_client_encoding): Mule-ize.
14023         (Fpq_finish): Document `DEAD' connection status.
14024         (Fpq_clear): Ditto.
14025         (Fpq_pgconn): Mule-ize.
14026         (Fpq_exec): Mule-ize & bug fix.
14027         (Fpq_send_query): Ditto.
14028         (Fpq_get_result): Ditto.
14029         (Fpq_res_status): Mule-ize.
14030         (Fpq_result_error_message): Mule-ize.
14031         (Fpq_ntuples): fix comments.
14032         (Fpq_fname): Mule-ize.
14033         (Fpq_fnumber): Mule-ize.
14034         (Fpq_ftype): fix comments.
14035         (Fpq_get_value): Mule-ize.
14036         (Fpq_cmd_status): Ditto.
14037         (Fpq_cmd_tuples): Ditto.
14038         (Fpq_oid_value): Ditto.
14039         (Fpq_notifies): Ditto.
14040         (Fpq_lo_import): Ditto.
14041         (Fpq_lo_export): Ditto.
14042         (Fpq_get_line): Ditto.
14043         (Fpq_put_line): Mule-ize and bug fix.
14044         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
14045
14046 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14047
14048         * postgresql.c (vars_of_postgresql): Mule-ize.
14049         (Fpq_conn_defaults): Ditto.
14050
14051 2000-03-12  Ben Wing  <ben@xemacs.org>
14052
14053         * alloc.c (Fmake_byte_code):
14054         * alloc.c (debug_string_purity_print):
14055         * alloc.c (pdump_backtrace):
14056         * alloc.c (pdump_get_indirect_count):
14057         * alloc.c (pdump_register_sub):
14058         * alloc.c (pdump_register_object):
14059         * alloc.c (pdump_register_struct):
14060         * alloc.c (pdump_dump_data):
14061         * alloc.c (pdump_reloc_one):
14062         Minor cleanups.
14063
14064         * console-msw.c:
14065         * console-msw.c (GetConsoleHwnd):
14066         * console-msw.c (msw_hide_console):
14067         * console-msw.c (msw_show_console):
14068         * console-msw.c (msw_ensure_console_buffered):
14069         * console-msw.c (msw_output_console_string):
14070         * console-msw.c (console_type_create_mswindows):
14071
14072         a) Added functions to manipulate the console window for use with
14073         shell support.
14074
14075         b) Added support for writing text to the console, which is now
14076         used under Windows when xemacs is not being run non-interactively,
14077         to write text that would otherwise be destined for stdout because
14078         under these circumstances, text written to stdout tends to
14079         disappear and not be seen.
14080
14081         * console-msw.h:
14082         * event-Xt.c:
14083         * event-Xt.c (x_event_to_emacs_event):
14084         * event-Xt.c (describe_event_window):
14085         * events-mod.h (XEMACS_MOD_CONTROL):
14086         * events.c:
14087         * events.c (Fmake_event):
14088         * events.c (character_to_event):
14089         * events.c (event_to_character):
14090         * events.c (format_event_object):
14091         * events.c (Fevent_modifiers):
14092         * events.h:
14093         * events.h (struct key_data):
14094         * events.h (struct button_data):
14095         * events.h (struct misc_user_data):
14096         * frame-x.c (Fcde_start_drag_internal):
14097         * frame-x.c (Foffix_start_drag_internal):
14098         * gpmevent.c (Freceive_gpm_event):
14099         * keymap.c:
14100         * keymap.c (bucky_sym_to_bucky_bit):
14101         * keymap.c (control_meta_superify):
14102         * keymap.c (make_key_description):
14103         * keymap.c (keymap_lookup_directly):
14104         * keymap.c (create_bucky_submap):
14105         * keymap.c (keymap_store):
14106         * keymap.c (define_key_check_and_coerce_keysym):
14107         * keymap.c (define_key_parser):
14108         * keymap.c (define_key_alternate_name):
14109         * keymap.c (Fdefine_key):
14110         * keymap.c (raw_lookup_key_mapper):
14111         * keymap.c (struct map_keymap_unsorted_closure):
14112         * keymap.c (map_keymap_unsorted_mapper):
14113         * keymap.c (map_keymap_sort_predicate):
14114         * keymap.c (map_keymap_sorted):
14115         * keymap.c (accessible_keymaps_mapper_1):
14116         * keymap.c (where_is_recursive_mapper):
14117         * keymap.c (describe_map_mapper):
14118         * keymap.c (describe_map_sort_predicate):
14119         * keymap.c (describe_map):
14120         * keymap.c (complex_vars_of_keymap):
14121         And a number of other files, the key modifier preprocessor
14122         constants that xemacs uses have names that conflict with constants
14123         defined under MS Windows for other purposes, so they were renamed
14124         to begin with the prefix XEMACS_. The variables that hold such
14125         modifiers were changed to consistently be of type int to fix
14126         various compile warnings.
14127
14128         * console.c (complex_vars_of_console):
14129         * device.c:
14130         * device-msw.c:
14131         * device-msw.c (mswindows_finish_init_device):
14132         * device-msw.c (msw_get_workspace_coords):
14133         * device-msw.c (mswindows_device_system_metrics):
14134         and various other files, added support for a new
14135         device property called offset-workspace which returns the position
14136         of the upper left corner of the workspace area and goes along with
14137         the existing size-workspace property.
14138
14139         * dialog-msw.c:
14140         * dialog-msw.c (push_bufbyte_string_as_unicode):
14141         * dialog-msw.c (mswindows_popup_dialog_box):
14142         Added support for XEmacs-style accelerator specifications in
14143         button text.  Note: I didn't add support for this under X Windows,
14144         and somebody needs to do this.
14145
14146         * dialog.c:
14147         * dialog.c (Fpopup_dialog_box):
14148         Documented the support for accelerators that was just mentioned.
14149
14150         editfns.c (get_home_directory): Changed behavior under Windows
14151         when HOME not defined; former behavior was irretrievably broken.
14152
14153         * emacs.c:
14154         * emacs.c (main_1):
14155         * emacs.c (main):
14156         * minibuf.c (clear_echo_area_internal):
14157         * minibuf.c (echo_area_append):
14158         * print.c:
14159         * print.c (std_handle_out_external):
14160         * print.c (std_handle_out_va):
14161         * print.c (fatal):
14162         * print.c (write_string_to_stdio_stream):
14163         * print.c (output_string):
14164         * print.c (debug_print):
14165         * print.c (debug_backtrace):
14166         * print.c (debug_short_backtrace):
14167         Cleaned up the code that prints text to stdout so that this can be
14168         changed to output into a console window instead under MS Windows,
14169         as described above.
14170
14171         * eval.c:
14172         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
14173         * eval.c (internal_catch):
14174         * eval.c (unwind_to_catch):
14175         * eval.c (throw_or_bomb_out):
14176         * eval.c (condition_case_1):
14177         * eval.c (signal_1):
14178         * eval.c (check_error_state_sanity):
14179         * eval.c (call_with_suspended_errors_1):
14180         * eval.c (call_with_suspended_errors):
14181         * eval.c (reinit_vars_of_eval):
14182         Added code to catch throw loops and check for a pesky bug that may
14183         be gone now.
14184
14185         * event-msw.c:
14186         * event-msw.c (key_needs_default_processing_p):
14187         * event-msw.c (mswindows_wnd_proc):
14188         * event-msw.c (mswindows_modifier_state):
14189         * event-msw.c (emacs_mswindows_quit_p):
14190         * event-msw.c (vars_of_event_mswindows):
14191         a) Added support for using the alt key to select menu items as is
14192         standard under MS Windows.  This is controlled using the variable
14193         menu-accelerator-enabled, just like under X Windows.  There is an
14194         option on the options menu to turn this support on.  I really
14195         think that it should be on by default under Windows, but I'm not
14196         going to make this change yet.
14197
14198         b)  Added support for dynamic display size changes under Windows.
14199
14200         * event-stream.c:
14201         * event-stream.c (maybe_echo_keys):
14202         * event-stream.c (Fnext_event):
14203         * event-stream.c (command_builder_find_leaf):
14204         * event-stream.c (lookup_command_event):
14205         * event-stream.c (execute_command_event):
14206         * event-stream.c (pre_command_hook):
14207         * event-stream.c (post_command_hook):
14208         * event-stream.c (syms_of_event_stream):
14209         * event-stream.c (vars_of_event_stream):
14210         * event-stream.c (complex_vars_of_event_stream):
14211         * events.h (struct command_builder):
14212
14213         a) Tried to clean up a little bit the horribly written x-specific
14214         accelerator code that crept into this file.  I moved this code
14215         into menubar-x.c where it belongs. I also needed to move the
14216         command builder structure into the file events.h because it is
14217         accessed directly by this accelerator code.  What I didn't do, but
14218         which should be done at some point, is to properly abstract this
14219         code using device methods instead of the kludgy way that it
14220         currently hooks into the event code.
14221
14222         b) Added the lisp variables this-command-properties and
14223         last-command- properties, which should be used to synchronize two
14224         adjacent commands in preference to playing games with the variable
14225         this-command, which is typically what happens.
14226
14227         c) Added some slightly nasty code to hook into the lisp support
14228         for shifted- motion-key selection.  This is actually necessary for
14229         somewhat complicated reasons, which are described in
14230         simple.el. (NB: I think the proper thing would be to have the code
14231         that calls the pre and post command hooks also call out to generic
14232         lisp functions in simple.el, where all built-in stuff could be
14233         added.  I will think about this more.)
14234
14235         * event-unixoid.c (poll_fds_for_input):
14236         * lread.c (readchar):
14237         * redisplay-tty.c (tty_clear_frame):
14238         * redisplay-x.c (x_get_gc):
14239         * signal.c (interrupt_signal):
14240         And a whole bunch of other files: fixed up places that printed
14241         directly to stderr to instead call the function stderr_out so that
14242         the changes I made under Windows work correctly.
14243
14244         * filemode.c (mode_string):
14245         Warning fixes.
14246
14247         * frame-msw.c:
14248         * frame-msw.c (mswindows_size_frame_internal):
14249         Fixed the computation of frame size and position to keep the frame
14250         within the workspace area, rather than within the physical
14251         dimensions of the screen, so that the frame doesn't overlap window
14252         manager decorations, such as the start menu and toolbar, typically
14253         at the bottom of the screen.
14254
14255         * frame.c (vars_of_frame):
14256         Changed the default frame title format under MS Windows to consist
14257         of buffername-XEmacs, which is standard under MS Windows.  I think
14258         it might be a good idea to change this everywhere because I think
14259         it is superior to the current frame title format, but this is the
14260         kind of change that is likely to cause some people to get annoyed,
14261         so I'm not making it.
14262
14263         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
14264
14265         * gui-msw.c (mswindows_handle_gui_wm_command):
14266         Fixed compile warnings.
14267
14268         * gui-x.c:
14269         * gui-x.c (strdup_and_add_accel):
14270         * gui-x.c (button_item_to_widget_value):
14271         * gui-x.h:
14272         Added code to automatically put an accelerator onto the beginning
14273         of menu items that don't have one as is now the standard, and is
14274         described more later.  Also fixed things so that the menu item
14275         name can be an evaluated expression, again a new standard.
14276
14277         * gui.c:
14278         * gui.c (gui_item_add_keyval_pair):
14279         * gui.c (make_gui_item_from_keywords_internal):
14280         * gui.c (gui_add_item_keywords_to_plist):
14281         * gui.c (gui_item_accelerator):
14282         * gui.c (gui_name_accelerator):
14283         * gui.c (gui_item_included_p):
14284         * gui.c (gui_item_display_flush_left):
14285         * gui.c (gui_item_display_flush_right):
14286         * gui.c (parse_gui_item_tree_item):
14287         * gui.c (parse_gui_item_tree_children):
14288         * gui.c (parse_gui_item_tree_list):
14289         Mule-ized.  Cleanup.  GCPRO addition.
14290
14291         * line-number.c (buffer_line_number):
14292         * lisp.h:
14293         * lisp.h (EMACS_INT_MAX):
14294         Added the manifest constant EMACS_INT_MIN corresponding to the
14295         existing constant EMACS_INT_MAX.  This is partially to fix compile
14296         warnings under Windows, and partly for cleanliness.
14297
14298         * menubar-msw.c:
14299         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
14300         * menubar-msw.c (msw_translate_menu_or_dialog_item):
14301         * menubar-msw.c (displayable_menu_item):
14302         * menubar-msw.c (populate_menu_add_item):
14303         * menubar-msw.c (populate_or_checksum_helper):
14304         * menubar-msw.c (populate_menu):
14305         * menubar-msw.c (update_frame_menubar_maybe):
14306         * menubar-msw.c (prune_menubar):
14307         * menubar-msw.c (msw_char_is_accelerator):
14308         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
14309         * menubar-msw.c (mswindows_handle_wm_command):
14310         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
14311         * menubar-msw.c (mswindows_handle_wm_initmenu):
14312         * menubar-msw.c (mswindows_update_frame_menubars):
14313         * menubar-msw.c (mswindows_free_frame_menubars):
14314         * menubar-msw.c (mswindows_popup_menu):
14315         Fixed a bug in handling accelerators where an extra character
14316         would be displayed in the menu item.  Also generalized the
14317         function displayable_menu_item because it is now used by the
14318         dialog box code as well.  And finally, added code in the functions
14319         that create the menubar to extract a list of accelerators for the
14320         top level menubar, which is used in the event code to determine
14321         whether a particular alt-key combination should be used to invoke
14322         a menu item, or should be passed through to access the standard
14323         XEmacs keymap binding for this key combination.
14324
14325         Much needed GCPROing.
14326
14327         * menubar-x.c:
14328         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14329         * menubar-x.c (menu_item_descriptor_to_widget_value):
14330         * menubar-x.c (restore_in_menu_callback):
14331         * menubar-x.c (x_popup_menu):
14332         * menubar-x.c (menu_move_up):
14333         * menubar-x.c (menu_move_down):
14334         * menubar-x.c (menu_move_left):
14335         * menubar-x.c (menu_move_right):
14336         * menubar-x.c (menu_select_item):
14337         * menubar-x.c (command_builder_operate_menu_accelerator):
14338         * menubar-x.c (menu_accelerator_junk_on_error):
14339         * menubar-x.c (command_builder_find_menu_accelerator):
14340         * menubar-x.c (Faccelerate_menu):
14341         * menubar.h:
14342         Moved a whole bunch of code here that was previously in
14343         event-stream.c as described above.  There is also code connected
14344         to the new standard of adding an accelerator to the beginning of
14345         menu items that don't have one as described above and below.
14346
14347         * menubar.c:
14348         * menubar.c (menu_parse_submenu_keywords):
14349         * menubar.c (Fmenu_find_real_submenu):
14350         * menubar.c (Fnormalize_menu_item_name):
14351         * menubar.c (syms_of_menubar):
14352         * menubar.c (vars_of_menubar):
14353         * menubar.c (complex_vars_of_menubar):
14354
14355         a) Cleaned up a bunch of documentation and improved it.
14356
14357         b) XEmacs now automatically adds an accelerator onto the beginning
14358         of any menu items that don't have one.  I did this because there
14359         will inevitably be some menu items on the main menubar that don't
14360         have accelerators on them because the package that adds that
14361         particular menu item hasn't yet been fixed up to have accelerators
14362         in them and it looked rather strange to have some items with and
14363         some items without accelerators, especially since even in items
14364         without accelerators, you can, at least under windows, still
14365         access the item through an accelerator corresponding to the first
14366         character in the item's name.  If people don't like this behavior,
14367         I can add a variable to turn it off optionally, but I'm not sure
14368         this is a good idea because we really do need to have accelerators
14369         on all of the menu items, and if a package doesn't like the
14370         accelerators being put on the first character, then it should put
14371         the accelerators where they belong.
14372
14373         c) I made a behavior change, which is that the descriptor that
14374         specifies the text of the menu item, which formerly was just a
14375         string, can now also be an evaluated expression.  This makes this
14376         descriptor parallel with all of the others, which could also be
14377         evaluated expressions.  This also obviates the need for the
14378         keyword :label, which was previously listed in the documentation
14379         as unimplemented, and which was for the same purpose.
14380
14381         d) GCPROing.
14382
14383         * ntproc.c:
14384         * ntproc.c (new_child):
14385         * ntproc.c (sys_spawnve):
14386         * ntproc.c (find_child_console):
14387         * ntproc.c (sys_kill):
14388         Fixed compile warnings.  By the way, this file should really go
14389         away entirely, and this will happen as soon as Kirill makes his
14390         final round of process cleanups, which affect the function
14391         call-process.
14392
14393         * process-nt.c:
14394         * process-nt.c (struct nt_process_data):
14395         * process-nt.c (find_process_from_pid):
14396         * process-nt.c (send_signal_the_nt_way):
14397         * process-nt.c (enable_child_signals):
14398         * process-nt.c (find_child_console):
14399         * process-nt.c (send_signal_the_95_way):
14400         * process-nt.c (nt_finalize_process_data):
14401         * process-nt.c (ensure_console_window_exists):
14402         * process-nt.c (nt_create_process):
14403         * process-nt.c (nt_kill_child_process):
14404         * process-nt.c (nt_kill_process_by_pid):
14405         * process-nt.c (nt_open_network_stream):
14406         * process-nt.c (vars_of_process_nt):
14407         Copied over code from Emacs 20.5 to correctly send signals to sub-
14408         processes under Windows 95.  Also added code to automatically
14409         create and hide console window when a sub-process is created under
14410         Windows 95, which obviates the need for the separate runemacs.exe
14411         executable, and finally implemented some variables that were
14412         implemented in Emacs 20.5, but previously not in XEmacs.  These
14413         include mswindows- start-process-share-console and
14414         mswindows-start-process-inherit-error-mode. (Both of these only
14415         apply to Windows 95.)
14416
14417         * regex.c (regex_compile): Fixed a compile warning.
14418
14419         * select-msw.c:
14420         * select-msw.c (mswindows_own_selection):
14421         * select-msw.c (mswindows_get_foreign_selection):
14422         * select-msw.c (mswindows_disown_selection):
14423         * select-msw.c (console_type_create_select_mswindows):
14424         * select-msw.c (syms_of_select_mswindows):
14425         Cleaned up the file and implemented the device method
14426         selection_exists_p, which had accidentally been left out.  Also
14427         removed four lisp functions that were remnants from before the
14428         time when the selection code was properly device abstracted.
14429         These functions are no longer needed because there are generic
14430         equivalents, and because they were added recently and don't exist
14431         in FSF Emacs, I don't think there's any problem with just deleting
14432         them.
14433
14434         * sysdep.c:
14435         * sysdep.c (sys_subshell):
14436         Fixed a compile warning, although in this case there's probably
14437         something wrong with this code, and it ought to be looked into
14438         more thoroughly by somebody who understands it.
14439
14440         * window.c:
14441         * window.c (Fwindow_text_area_height):
14442         * window.c (Fwindow_width):
14443         * window.c (Fwindow_full_width):
14444         * window.c (Fwindow_pixel_width):
14445         * window.c (debug_print_window):
14446         * window.c (syms_of_window):
14447         Added functions window-text-area-height and window-full-width,
14448         which are functions for returning various width and height
14449         characteristics of a window. (One of these functions is necessary
14450         for making the file dialog box work correctly, and the other one
14451         was added for completeness.)  Also added a table to the
14452         documentation for window-height which describes the entire scheme
14453         for accessing width and height characteristics of a window.
14454
14455 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14456
14457         * nt.c (fstat): Added a comment for another problem with
14458         non-encapsulated [f]stat(), reported by Adrian Aichner
14459         <aichner@ecf.teradyne.com>.
14460
14461 2000-03-11  Andy Piper  <andy@xemacs.org>
14462
14463         * window.c (make_dummy_parent): initialize subwindow instance
14464         cache.
14465         (Fset_window_configuration): zero extent_modiff.
14466
14467 2000-03-10  Andy Piper  <andy@xemacs.org>
14468
14469         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
14470         more changes can be triggered.
14471         (Fredisplay_frame): ditto.
14472         (Fredraw_device): ditto.
14473         (Fredisplay_device): ditto.
14474         (redisplay_frame): make non-static.
14475         (redisplay_frame): call update_frame_gutter_geometry outside of
14476         display proper.
14477
14478         * gutter.h: declare update_frame_gutter_geometry.
14479
14480         * redisplay.h: declare redisplay_frame.
14481
14482         * gutter.c (update_frame_gutter_geometry): move geometry changes
14483         in update_frame_gutters here. Geometry changes can only occur
14484         outside of redisplay.
14485         (update_frame_gutters): remove geometry change code.
14486         (Fredisplay_gutter_area): make sure that we are in display when we
14487         update and that we have flushed any size changes.
14488
14489 2000-03-11  Andy Piper  <andy@xemacs.org>
14490
14491         * alloc.c (pdump_dump_data): remove i & count shadows.
14492
14493 2000-02-27  Mike Alexander  <mta@arbortext.com>
14494
14495         * sysdep.h: Declare pdump_read_file
14496
14497         * sysdep.c (pdump_read_file): New function
14498
14499         * alloc.c (pdump_load): Call pdump_read_file to get the portable
14500         dump data
14501
14502 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14503
14504         * lrecord.h: add `lrecord_type_pgsetenv'.
14505
14506 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
14507
14508         * symsinit.h: declare (vars|syms)_of* functions.
14509         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
14510
14511 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
14512
14513         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
14514
14515         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
14516         GCCs.
14517
14518         * emacs.c (main_1): Call postgres initialization code.
14519
14520         * postgresql.h: New file.  PostgreSQL RDBMS support.
14521         * postgresql.c: New file.
14522
14523 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
14524
14525         * redisplay-output.c (redisplay_output_display_block): Disable
14526         redundant code.
14527
14528 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14529
14530         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
14531         (Fcanna_henkan_next): Ditto.
14532         (Fcanna_bunsetu_henkou): Ditto.
14533         (Fcanna_henkan_kakutei): Ditto.
14534         (Fcanna_henkan_end): Ditto.
14535         (Fcanna_henkan_quit): Ditto.
14536         (Fcanna_henkan_next): Set retun value correctly.
14537         (c2mu): Use unsigned char instead of signed char.
14538
14539 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14540
14541         * emacs.c (main_1): Always call syms_of_gui.
14542         * inline.c: include gui.h
14543
14544 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
14545
14546         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
14547         converted to Lisp_Object.
14548         (Qtop_bottom): New variable.
14549         (syms_of_redisplay): Initialize it.
14550         * redisplay.h (Vvisible_bell): Ditto.
14551         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
14552         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
14553         only flash top and bottom.
14554
14555 2000-03-08  Andy Piper  <andy@xemacs.org>
14556
14557         * buffer.c (Frename_buffer): record new buffer name the right way.
14558
14559 2000-03-08  Andy Piper  <andy@xemacs.org>
14560
14561         * glyphs.c (update_subwindow): increase hash depth so that widget
14562         items get picked up properly.
14563
14564         * redisplay-output.c (compare_runes): increase hash depth so that
14565         widget items get picked up properly.
14566
14567 2000-03-08  Andy Piper  <andy@xemacs.org>
14568
14569         * gutter.c (output_gutter): add some debug.
14570
14571         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
14572         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
14573         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
14574
14575         * redisplay-output.c (compare_runes): use display_hash to
14576         determine if glyphs really are not the same.
14577
14578         * glyphs.c (update_subwindow): check display_hash to see if
14579         anything really needs to be updated. If not then do
14580         nothing. Record the display_hash after updating.
14581         (image_instance_equal): compare the image_instance face also.
14582
14583 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
14584
14585         * redisplay.h: Fix comment style.
14586
14587 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14588
14589         * consle-msw.h (struct mswindows_frame):
14590         Added new member paint_pending to indicate whether a WM_PAINT
14591         magic event has been queued for this frame.
14592
14593         * event-msw.c (mswindows_drain_windows_queue):
14594         Don't queue a WM_PAINT magic event if one is already queued.
14595         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
14596
14597         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
14598
14599 2000-03-07  Didier Verna  <didier@xemacs.org>
14600
14601         * dired.c: #include `regex.h' after `sysfile.h'.
14602
14603 2000-03-06  Martin Buchholz  <martin@xemacs.org>
14604
14605         * sound.c (init_nas_sound): Fix compiler warning.
14606
14607         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
14608         (FREE_STRUCT_P):
14609         (MARK_STRUCT_AS_FREE):
14610         (MARK_STRUCT_AS_NOT_FREE):
14611         Make `gcc -fstrict-aliasing' work properly.
14612
14613 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14614
14615         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
14616         (mswindows_delete_device): Call CoUnnitialize().
14617
14618         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
14619
14620 2000-02-25    <CraigL@DyCon.com>
14621
14622         * process-nt.c: MinGW now has <shellapi.h>, but still needs
14623         <errno.h>.
14624
14625         * sysdep.c: This extern declaration for environ prevents MinGW
14626         from finding the variable in CRTDLL.DLL.
14627
14628         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
14629         windows headers.
14630         (SHGFI_EXETYPE): ..
14631         (WM_MOUSEWHEEL): ..
14632         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
14633         definitions.
14634         (MMRESULT): Removed, now defined in cygwin's windows headers.
14635         (TIMECAPS): ..
14636         (uid_t,gid_t,pid_t,ssize_t): ..
14637         (_timeb): Removed, MinGW defines both _timeb and timeb.
14638         (HAVE_H_ERRNO): Added.
14639         (HAVE_TZNAME): Added, configure is not detecting this.
14640
14641 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
14642
14643         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
14644         * syntax.c (syntax_match): Use it.
14645
14646         * cmds.c: Import auto-fill-chars from FSF Emacs.
14647         (Vauto_fill_chars): New variables.
14648         (internal_self_insert): Check Vauto_fill_chars.
14649         (vars_of_cmds):
14650         Declare auto-fill-chars as a Lisp variable and initialize it.
14651
14652 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14653
14654         * fileio.c (Fmake_symbolic_link):
14655         (Ffile_symlink_p):
14656         Run handlers even if local machine doesn't have symlinks.
14657
14658 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
14659
14660         * event-msw.c (mswindows_drain_windows_queue):
14661         Don't generate paint magic events for non-XEmacs frames.
14662
14663 2000-03-05  Andy Piper  <andy@xemacs.org>
14664
14665         * redisplay.c (redisplay_frame): generate_displayable_area and
14666         friends assumes that we are not in GC, we therefore have to make
14667         sure that this doesn't happen.
14668
14669         * gutter.c (calculate_gutter_size): generate_displayable_area
14670         assumes that we are not in GC, we therefore have to make sure that
14671         this doesn't happen.
14672
14673 2000-03-05  Martin Buchholz  <martin@xemacs.org>
14674
14675         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
14676
14677 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14678
14679         * redisplay.c (regenerate_window): Make sure we set a sane value
14680         for end_pos even if we jump out of the loop.
14681         (regenerate_window): Answer Ben's question :-).
14682         (start_end_of_last_line): Add may_error argument.
14683         (start_of_last_line):
14684         (end_of_last_line): Pass may_error = 0.
14685         (end_of_last_line_may_error): New function.
14686         (pixel_to_glyph_translation): Use it, so we don't crash in
14687         event_to_glyph.
14688
14689 2000-03-04  Andy Piper  <andy@xemacs.org>
14690
14691         * window.h (struct window): add gutter_extent_modiff.
14692
14693         * window.c (allocate_window): zero out gutter_extent_modiff.
14694
14695         * redisplay.h: declare sync_display_line_structs.
14696
14697         * redisplay.c (add_glyph_rune): add a better comment.
14698
14699         * redisplay-output.c (sync_display_line_structs): made non-static.
14700         (compare_runes): remove unneccesary glyph cachel access.
14701
14702         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
14703
14704         * gutter.c (output_gutter): don't output the gutter if extent
14705         changes only involve extents in buffers. use 4 sets of display
14706         lines.
14707         (gutter_extent_signal_changed_region_maybe): new function. Mark
14708         extents in gutters as changed.
14709         (update_frame_gutters): use 4 sets of display lines.
14710         (reset_gutter_display_lines): ditto.
14711         (free_frame_gutters): ditto.
14712         (redraw_exposed_gutter): force output of gutters.
14713
14714         * frame.h (struct frame): add 4 sets of gutter display lines.
14715
14716         * extents.c: (extent_changed_for_redisplay): signal changes to
14717         extents in strings in the gutter as well as extents in buffers.
14718
14719 2000-03-02  Andy Piper  <andy@xemacs.org>
14720
14721         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
14722
14723         * frame.c (Fmake_frame): make sure the gutters get initialized
14724         after the frame is visible.
14725         (set_frame_selected_window): re-arrange compilation macros a
14726         little.
14727         (change_frame_size_1): mark gutters changed.
14728
14729         * device.c (Fset_device_class): mark gutters changed.
14730
14731 2000-03-01  Andy Piper  <andy@xemacs.org>
14732
14733         * window.c (window_top_frame_gutter_height): deleted.
14734         (window_bottom_frame_gutter_height): ditto.
14735         (window_left_frame_gutter_height): ditto.
14736         (window_right_frame_gutter_height): ditto.
14737         (window_top_gutter_height): don't use them.
14738         (window_bottom_gutter_height): ditto.
14739         (window_left_gutter_width): ditto.
14740         (window_right_gutter_width): ditto.
14741         (Fsplit_window): ditto.
14742         (Fwindow_pixel_edges): don't use border dimensions here.
14743
14744         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
14745         (update_scrollbar_instance): ditto.
14746
14747         * redisplay.c (generate_modeline): don't take gutters into account.
14748         (generate_modeline): ditto.
14749         (redisplay_frame): small gutter display optimization.
14750
14751         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
14752
14753         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
14754         gutters into account.
14755
14756         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
14757         for window position and type.
14758
14759         * gutter.c (get_gutter_coords): fix for frame gutters.
14760         (update_frame_gutters): update frame geometry if the gutters have
14761         changed.
14762         (init_frame_gutters): record current gutter geometries.
14763
14764         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
14765         var.
14766         (mswindows_widget_instantiate): ditto.
14767
14768         * frame.h (struct frame): add current_gutter_bounds.
14769
14770         * frame.c (change_frame_size_1): position window and minibuffer
14771         appropriately taking into account the frame gutters.
14772
14773         * frame-x.c: (x_initialize_frame_size): take into account the
14774         frame gutters.
14775
14776 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14777
14778         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
14779
14780 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
14781
14782         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
14783
14784 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
14785
14786         * file-coding.c (reset_decoding_stream): Clear previous
14787         detection state when autodetect.
14788
14789 2000-02-29  Didier Verna  <didier@xemacs.org>
14790
14791         * extents.c (set_extent_glyph_1): don't require extents to be
14792         attached.
14793
14794 2000-02-27  Andy Piper  <andy@xemacs.org>
14795
14796         * gutter.c (Fset_default_gutter_position): don't default left and
14797         right gutter visibility to t.
14798         (Fset_default_gutter_position): run
14799         default-gutter-position-changed-hook.
14800         (syms_of_gutter): add default-gutter-position-changed-hook.
14801
14802 2000-02-26  Andy Piper  <andy@xemacs.org>
14803
14804         * specifier.c (Fmake_specifier): add gutter references.
14805
14806         * gutter.h (RAW_WINDOW_GUTTER): new macro.
14807
14808         * lisp.h: declare Fvalid_plist_p.
14809
14810         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
14811         as changed.
14812         (default_gutter_visible_p_changed_in_window): invalidate gutter as
14813         well as its visibility so that it gets reconstructed.
14814         (construct_window_gutter_spec): new function. Construct a string
14815         to be displayed in the gutter from a plist of strings. Take care
14816         to only use elements that are declared as visible.
14817         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
14818         WINDOW_GUTTER.
14819         (gutter_validate): allow plists of strings in the specifier.
14820         (gutter_specs_changed): construct the real_gutter from the gutter
14821         specs using construct_window_gutter_spec.
14822         (gutter_visible_validate): gutter-visible is a new specifier type.
14823         (Fgutter_visible_specifier_p): new function for the new specifier.
14824         (syms_of_gutter): declare gutter-visible and
14825         Fgutter_visible_specifier_p.
14826         (specifier_type_create_gutter): intitalize new gutter-visible
14827         specifier.
14828         (reinit_specifier_type_create_gutter): ditto.
14829         (specifier_vars_of_gutter): use new specifier type for gutter
14830         visibility.
14831         (init_frame_gutters): construct real_gutter correctly.
14832         (Fgutter_specifier_p): beef up documentation.
14833         (Fgutter_size_specifier_p): ditto.
14834
14835         * winslots.h: add real_gutter slots.
14836
14837 2000-02-25  Andy Piper  <andy@xemacs.org>
14838
14839         * device-msw.c: Be kind to older cygwin versions. From Raymond
14840         Toy <toy@rtp.ericsson.se>.
14841
14842         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
14843         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
14844
14845 2000-02-25  Martin Buchholz  <martin@xemacs.org>
14846
14847         * elhash.c (MARK_OBJ): Practice macro hygiene.
14848
14849 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14850
14851         * miscplay.c: s/__inline__/inline/g;
14852         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
14853         (get_device_compdc): INLINE ==> static inline
14854         * *.[ch]: Change INLINE to INLINE_HEADER globally.
14855         find -name '*.h' | \
14856         xargs global-replace \
14857         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
14858
14859 2000-02-25  Andy Piper  <andy@xemacs.org>
14860
14861         * window.c (window_top_frame_gutter_height): new function.
14862         (window_top_window_gutter_height): ditto.
14863         (window_top_gutter_height): use them.
14864         (window_bottom_frame_gutter_height): new function.
14865         (window_bottom_window_gutter_height): ditto.
14866         (window_bottom_gutter_height): use them.
14867         (window_left_window_gutter_width): new function.
14868         (window_left_frame_gutter_width): ditto.
14869         (window_left_gutter_width): use them.
14870         (window_right_window_gutter_width): new function.
14871         (window_right_frame_gutter_width): ditto.
14872         (window_right_gutter_width): use them.
14873         (window_pixel_height): new function. calulate window pixel height
14874         with frame gutter involvement.
14875         (Fsplit_window): calculate new sizes taking frame gutters into
14876         account.
14877         (window_char_height_to_pixel_height): don't include frame gutters.
14878         (window_char_height): use window_pixel_height.
14879         (window_pixheight): rename from window_pixel_height.
14880         (change_window_height): use it.
14881         (window_pixel_height_to_char_height): don't include frame gutters.
14882         (window_char_width_to_pixel_width): ditto.
14883
14884 2000-02-25  Andy Piper  <andy@xemacs.org>
14885
14886         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
14887         if it is.
14888
14889 2000-02-24  Martin Buchholz  <martin@xemacs.org>
14890
14891         * alloc.c (staticpro):
14892         (staticpro_nodump):
14893         (dumpstruct):
14894         (dumpopaque):
14895         (pdump_wire):
14896         (pdump_wire_list):
14897         (compact_string_chars):
14898         (pdump_dump_wired):
14899         Convert:  if (foo) abort();  ==>  assert (! foo);
14900
14901         * eldap.c (Fldap_search_basic):
14902         (Fldap_add):
14903         (Fldap_modify):
14904         (Fldap_delete):
14905         Fix compiler warnings, and possible crashes if (random) return
14906         value were to be used.
14907
14908 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14909
14910         * device-msw.c: Workaround ResetDC failure.
14911
14912         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
14913         applying a devmode.
14914
14915         * redisplay-msw.c (get_frame_dc): Added start_page_p.
14916         (mswindows_text_width): Do not start printer page.
14917
14918         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
14919
14920         * glyphs-msw.c: Added image methods to msprinter console and
14921         msprinter-specific image instantiation.
14922
14923 2000-02-20  Mike Alexander  <mta@arbortext.com>
14924
14925         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
14926         to avoid crashes when selection-sets-clipboard is on
14927         (mswindows_own_selection): ditto
14928
14929 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14930
14931         * glyphs-msw.c:
14932         * redisplay-msw.c (get_frame_dc):
14933         (get_frame_compdc):
14934         * console-msw.h:
14935         * device-msw.c (mswindows_init_device):
14936         (mswindows_delete_device):
14937         (msprinter_init_device):
14938         (msprinter_delete_device):
14939         * frame-msw.c (mswindows_init_frame_1):
14940         (mswindows_delete_frame):
14941         (msprinter_init_frame_3):
14942         (msprinter_delete_frame): Move compatible DC to device object from
14943         frame object, for both mswindows and msprinter. Only one at a time
14944         is needed, it is a real waste to have one per frame!
14945
14946 2000-02-23  Andy Piper  <andy@xemacs.org>
14947
14948         * glyphs.c: add dynamic width and height elements.
14949         (image_instance_equal): ditto.
14950
14951         * glyphs-widget.c (widget_query_geometry): calculate width and
14952         height dynamically if required.
14953         (initialize_widget_image_instance): initialize dynamic dimensions.
14954         (widget_instantiate): pick-up dynamic dimensions.
14955
14956         * glyphs.h (struct Lisp_Image_Instance): add width and height for
14957         dynamic determination. Add appropriate macros.
14958
14959         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
14960         dimensions safe.
14961         (WINDOW_GUTTER_SIZE): ditto.
14962         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
14963
14964         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
14965         inline.
14966         (get_frame_dc): ditto.
14967
14968         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
14969         here.
14970
14971 2000-02-23  Martin Buchholz <martin@xemacs.org>
14972
14973         * XEmacs 21.2.31 is released.
14974
14975 2000-02-22  Ben Wing <ben@xemacs.org>
14976
14977         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
14978
14979 2000-02-22  Andy Piper  <andy@xemacs.org>
14980
14981         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
14982
14983 2000-02-21  Mike Sperber <mike@xemacs.org>
14984
14985         * .dbxrc:
14986         * .gdbinit:
14987         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
14988         variables.
14989
14990 2000-02-21  Mike Sperber <mike@xemacs.org>
14991
14992         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
14993
14994 2000-02-21  Martin Buchholz <martin@xemacs.org>
14995
14996         * XEmacs 21.2.30 is released.
14997
14998 2000-02-20  Martin Buchholz  <martin@xemacs.org>
14999
15000         Performance hacking.
15001         * *.c (syms_of_*):
15002         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
15003         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
15004         * emacs.c (main_1):
15005         * lisp.h (DEFUN):
15006         * console.c (DEFVAR_CONSOLE_LOCAL_1):
15007         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
15008         * symeval.h (DEFVAR_SYMVAL_FWD):
15009         * symbols.c (guts_of_unbound_marker):
15010         Make all c_readonly objects also lisp_readonly and marked for life.
15011         * lrecord.h (struct lrecord_implementation):
15012         Document flags better.
15013         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
15014         * lrecord.h (DECLARE_LRECORD):
15015         * lrecord.h (XSETRECORD):
15016         * lrecord.h (RECORDP):
15017         * lrecord.h (RECORD_TYPEP):
15018         * lrecord.h (RECORD_MARKER): New.
15019         * lrecord.h (error_check_*):
15020         * lrecord.h (CONCHECK_NONRECORD):
15021         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
15022         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
15023         * lrecord.h (set_lheader_implementation):
15024         * lrecord.h (enum lrecord_type): New.
15025         * symeval.h (SYMBOL_VALUE_MAGIC_P):
15026         * alloc.c (disksave_object_finalization_1):
15027         * alloc.c (mark_object):
15028         * alloc.c (lrecord_type_index):
15029         * alloc.c (tick_lcrecord_stats):
15030         * alloc.c (Fgarbage_collect):
15031         * alloc.c (init_alloc_once_early):
15032         * alloc.c (pdump_load):
15033         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
15034         * alloc.c (lrecord_type_index): Delete.
15035         Make lisp object type indexes be constant.
15036           Makes (byte-compile) 5% faster.
15037         Put all marker functions into their own array.
15038           Makes (garbage-collect) 5% faster.
15039         Optimize SYMBOL_VALUE_MAGIC_P.
15040           Makes (byte-compile) 2-3% faster.
15041         * config.h.in (gc_checking_assert): New.
15042         * alloc.c: Use gc_checking_assert().
15043         * .dbxrc: Make compatible with new object type implementation.
15044         * .gdbinit: Make compatible with new object type implementation.
15045         * alloc.c: Delete all symbols defined only for debugging, such as
15046         Lisp_Type_Vector and lrecord_charset.
15047
15048 2000-02-21  Andy Piper  <andy@xemacs.org>
15049
15050         * gui-msw.c (Fmswindows_shell_execute): fix file location
15051         problems.
15052
15053         * buffer.c (Fkill_buffer): remove buffer from alist buffer
15054         unshowing so that set_window_buffer doesn't undo
15055         kill_buffer_hook's hard work.
15056
15057         * glyphs-widget.c (tab_control_query_geometry): don't count the
15058         first item when calculating geometry.
15059
15060         * glyphs.c (map_subwindow): remove redundant code.
15061         (update_frame_subwindows): be more circumspect about when to
15062         update subwindows.
15063
15064         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
15065         when items haven't changed. Update faces if faces have changed as
15066         well as just the widget face.
15067         (x_tab_control_update): Update faces if faces have changed as well
15068         as just the widget face.
15069
15070 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15071
15072         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
15073         registration.
15074         (build_syscolor_string): Use mswindows_color_to_string to try to
15075         get a named color.
15076         (mswindows_device_system_metrics): Reverse the foreground and
15077         background colors so that they match the documentation.
15078
15079         * objects-msw.c: (mswindows_X_color_map): tweak some values so
15080         they match the default Windows palette.
15081         (mswindows_color_to_string): New function.
15082
15083 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15084
15085         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
15086
15087 2000-02-18  Olivier Galibert  <galibert@pobox.com>
15088
15089         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
15090         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
15091
15092         * symbols.c (init_symbols_once_early): Removed obsolete
15093         DATA_SEG_BITS related kludge.
15094         (defvar_magic): Ditto.
15095
15096         * malloc.c: Removed obsolete DATA_SEG_BITS
15097         * ralloc.c: Ditto.
15098         * mem-limits.h: Ditto.
15099
15100         * Makefile.in.in: Removed obsolete HAVE_SHM
15101         * emacs.c: Ditto.
15102
15103 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15104
15105         *  device-msw.c (mswindows_delete_device): Free DDE string
15106         handles.
15107
15108 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15109
15110         * keymap.c (get_keyelt):
15111         * unexnt.c (unexec):
15112         * vm-limit.c (memory_warnings):
15113         * ntheap.c (recreate_heap):
15114         * ntheap.h (UNINIT_PTR):
15115         * select-msw.c (Fmswindows_get_clipboard):
15116         (Fmswindows_set_clipboard):
15117         * objects-msw.h (MSWINDOWS_BAD_HFONT):
15118         * objects-msw.c:
15119         * menubar-msw.c (displayable_menu_item):
15120         * glyphs-msw.c:
15121         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
15122         * sysdep.c (sys_subshell):
15123         * process-nt.c (nt_create_process):
15124         * nt.c (normalize_filename):
15125         (dostounix_filename):
15126         (unixtodos_filename):
15127         * ntproc.c (win32_executable_type):
15128         * ntplay.c (play_sound_data_1):
15129         (play_sound_file):
15130         * editfns.c (get_home_directory):
15131         * event-msw.c (struct winsock_stream):
15132         (mswindows_dde_callback):
15133         * device-msw.c (msprinter_init_device):
15134         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
15135
15136         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
15137         mswindows_clear_toolbar were swapped!
15138
15139         * objects-msw.c:(colormap_t):
15140         (fontmap_t):
15141         * emacs.c (struct standard_args): Fixed const jumble.
15142
15143         * glyphs-widget.c (update_widget): Fixed comparison notation.
15144
15145         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
15146
15147         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
15148         __declspec(noreturn) syntax.
15149
15150 2000-02-19  Martin Buchholz  <martin@xemacs.org>
15151
15152         * eldap.c (Fldap_open):
15153         (Fldap_search_basic):
15154         (Fldap_add):
15155         (Fldap_modify):
15156         Use new coding system conversion macros.
15157
15158 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15159
15160         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
15161
15162 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
15163
15164         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
15165         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15166
15167         * eldap.c (Qadd, Qreplace): New constant symbols
15168         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
15169         interruptions by XEmacs signals
15170         Remove unnecessary calls to slow_down_interrupts and
15171         speed_up_interrupts
15172         (Fldap_search_basic): Renamed from Fldap_search_internal
15173         Added new optional parameter VERBOSE that triggers the
15174         display of progress messages
15175         Remove unnecessary calls to slow_down_interrupts and
15176         speed_up_interrupts
15177         LDAP result code analysis rewritten
15178         (Fldap_add, Fldap_modify, Fldap_delete): New functions
15179         (syms_of_eldap): Define the new symbols and functions
15180
15181
15182 2000-02-17  Martin Buchholz  <martin@xemacs.org>
15183
15184         * realpath.c: Determine PATH_MAX maximally portably.
15185
15186         * insdel.c (bytecount_to_charcount): Optimize.
15187         The function used to be optimized for entirely ASCII sequences.
15188         Now it is optimized for successive characters from the same
15189         charset.  This also wins big for _mostly_ ASCII sequences.
15190
15191         * fileio.c (Ffile_truename): convert return from realpath() using
15192         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
15193         - Rewrite GCPROing slightly.
15194
15195         * sysdep.c (sys_open): Do filename conversion, like all other
15196         sys_* functions.  Fixes bug:
15197         (let ((file-name-coding-system 'iso-8859-2))
15198            (write-region x y latin2-name))
15199         ==> writes filename using internal encoding.
15200
15201 2000-02-18  Martin Buchholz  <martin@xemacs.org>
15202
15203         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
15204         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
15205         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
15206         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
15207         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
15208         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
15209         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
15210         (CONST_IF_NOT_DEBUG): Delete.
15211         * alloc.c (this_one_is_unmarkable): Delete.
15212         (mark_object): Don't check for this_one_is_unmarkable. Use the
15213         c_readonly flag instead.
15214         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
15215
15216 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15217
15218         * event-msw.c (mswindows_drain_windows_queue):
15219         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
15220         away redundant repaint events.
15221
15222 2000-02-17  Andy Piper  <andy@xemacs.org>
15223
15224         * redisplay.h: declare mark_redisplay_structs.
15225
15226         * redisplay.c (redisplay_window):
15227         (redisplay_frame): don't check subwindows_state_changed.
15228         (mark_redisplay): mark gutters here.
15229
15230         * glyphs.c: (instantiate_image_instantiator): always layout if we
15231         haven't done so already.
15232         (allocate_image_instance): don't mark as dirty.
15233         (update_subwindow): bind inhibit_quit.
15234
15235         * gutter.c (mark_gutters): new function.
15236
15237         * glyphs-x.c (x_update_widget): Always resize to get round a
15238         widget bug.
15239
15240         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
15241         breaking absolutely everything.
15242
15243         * gutter.h: declare mark_gutters.
15244
15245 2000-02-16  Martin Buchholz <martin@xemacs.org>
15246
15247         * XEmacs 21.2.29 is released.
15248
15249 2000-02-15  Olivier Galibert  <galibert@pobox.com>
15250
15251         * fns.c (size_bit_vector): Fix computation of the size.
15252
15253 2000-02-15  Martin Buchholz  <martin@xemacs.org>
15254
15255         * *.[ch]: Change CONST to const globally.
15256         find -name '*.[ch]' | \
15257         xargs global-replace \
15258         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
15259         - Remove vestigial references to CONST_IS_LOSING
15260
15261 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15262
15263         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
15264         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
15265         events instead of dispatching them directly.
15266         (mswindows_handle_paint): New function to do repainting.
15267         (mswindows_wnd_proc):
15268         (emacs_mswindows_handle_magic_event): Call above function.
15269
15270 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15271
15272         * objects-msw.c (mswindows_create_font_variant): Return the new
15273         font handle.
15274         (initialize_font_instance): Get font metrics from the underlined
15275         variant of the font to cope with the case where the underlined
15276         font has a bigger descent.
15277
15278 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15279
15280         * gui.c (gui_item_accelerator): Return the first underlined
15281         character in item name.
15282
15283 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15284
15285         * lisp.h: Added Qprinter.
15286
15287         * general.c (syms_of_general): Initialized it.
15288
15289         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
15290         (get_frame_dc):
15291         (get_frame_compdc): Made inline.
15292
15293         * console.h (struct console_methods): Added eject_page method.
15294
15295         * frame.h: Added FRAME_DISPLAY_P and friends.
15296         Aligned backslahes in many macros in more readable fashion.
15297         Added page_number to struct frame, and an accessor macro
15298         for it.
15299
15300         * defice.h: Added DEVICE_DISPLAY_P and friends.
15301
15302         * device.c (Fdevice_printer_p): Used these.
15303
15304         * frame.c (allocate_frame_core): Initialize page number.
15305         (Fprint_job_page_number):
15306         (Fprint_job_eject_page): Implemented.
15307
15308         * frame-msw.c (msprinter_eject_page): Added method.
15309         (msprinter_start_page): Added.
15310
15311         * window.c (Fwindow_truncated_p): Fixed docstring.
15312         (Fwindow_last_line_visible_height): Implemented.
15313
15314 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15315
15316         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
15317
15318 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15319
15320         * syntax.c (scan_words): Always advance at least one character.
15321
15322 2000-02-13  Andy Piper  <andy@xemacs.org>
15323
15324         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
15325         to make sure the glyph is in the cachels.
15326
15327         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
15328         global image instance flag.
15329         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
15330         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
15331
15332         * glyphs.c (allocate_image_instance): set dirty bits correctly.
15333         (Fset_image_instance_property): mark layout as changed.
15334         (invalidate_glyph_geometry_maybe): mark layout as changed.
15335         (glyph_width): use new NEEDS_LAYOUT macro.
15336         (glyph_ascent): ditto.
15337         (glyph_descent): ditto.
15338         (glyph_height): ditto.
15339         (image_instance_layout): mark layout as clean after laying out.
15340         (update_subwindow): don't mark layout as clean here.
15341
15342         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
15343         should no longer be needed.
15344
15345         * glyphs-x.c (x_update_widget): sanitize asserts.
15346         (x_finalize_image_instance): sanitize assignment to widgets.
15347
15348         * glyphs-widget.c (widget_instantiate): don't need to clear the
15349         layout flag here.
15350
15351 2000-02-13  Martin Buchholz  <martin@xemacs.org>
15352
15353         * sysdep.c (getcwd): Use standard prototype.
15354         * sysdep.h (getcwd): Use standard prototype.
15355
15356         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
15357         (sequence, start, end).
15358         Remove redundant type checking.
15359         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
15360         view of `caller-protects') to avoid a crash where the real fix was
15361         found elsewhere.
15362
15363 2000-02-12  Martin Buchholz  <martin@xemacs.org>
15364
15365         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
15366
15367         * s/sol2.h: Remove feature macro initialization.
15368
15369         * alloc.c (alloc_lcrecord): Add more type checking assertions.
15370         (vector_hash): New.  Code from internal_hash.
15371         * lrecord.h:
15372         Fix up allocation subsystem comments.
15373
15374         * config.h.in: Add __EXTENSIONS__ for Solaris.
15375
15376         * systime.h (EMACS_GETTIMEOFDAY): New.
15377         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
15378         Remove Solaris-specific code.
15379         Use void* for the (ignored) second arg for gettimeofday().
15380
15381         * elhash.c (hash_table_hash): Implement it, finally.
15382         * elhash.c:  Use hashcode_t.
15383
15384         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
15385         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
15386
15387         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
15388         * fns.c (size_bit_vector):
15389         * alloc.c (size_vector):
15390         (make_vector_internal):
15391         (make_bit_vector_internal):
15392         (sweep_bit_vectors_1):
15393         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
15394
15395 2000-02-10  Martin Buchholz  <martin@xemacs.org>
15396
15397         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
15398         Include strings.h to avoid warnings for bzero and strcasecmp.
15399
15400 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15401
15402         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
15403         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
15404
15405         * fns.c (size_bit_vector): New.  Declare bit vectors as a
15406         sequence.
15407
15408 2000-02-10  Olivier Galibert  <galibert@pobox.com>
15409
15410         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
15411         use a value field instead.
15412         (symbol_value_forward_forward): Use value field.
15413         (DEFVAR_SYMVAL_FWD): Use value field.
15414         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
15415         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
15416         (DEFVAR_CONST_INT): Ditto.
15417         (DEFVAR_BOOL): Ditto.
15418         (DEFVAR_CONST_BOOL): Ditto.
15419         (DEFVAR_INT_MAGIC): Ditto.
15420         (DEFVAR_BOOL_MAGIC): Ditto.
15421
15422         * symbols.c (guts_of_unbound_marker): Use value field.
15423         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
15424         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
15425
15426         * lisp.h: Declare dumpopaque and noninteractive1.
15427
15428         * alloc.c (dumpopaque): Added.
15429         (pdump_dump_opaquevec): Added.
15430         (pdump): Call pdump_dump_opaquevec to dump opaque data.
15431         (pdump_load): Reload opaque data.  Sync noninteractive1 with
15432         noninteractive.
15433
15434 2000-02-10  Andy Piper  <andy@xemacs.org>
15435
15436         * glyphs.c (image_instance_layout): if the size changes, mark it
15437         as such.
15438
15439         * redisplay-output.c (redisplay_output_layout): Update the
15440         subwindow here.
15441         (redisplay_output_subwindow): ditto.
15442
15443         * glyphs.c (update_subwindow): make sure we reset flags for
15444         layouts as well as everything else.
15445
15446         * glyphs-widget.c (layout_layout): don't need to set the instances
15447         dimensions here.
15448
15449 2000-02-09  Martin Buchholz  <martin@xemacs.org>
15450
15451         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
15452         not HAVE_DLOPEN, which is a lower-level thing.
15453
15454         * .cvsignore: Ignore gmon.out
15455
15456 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
15457
15458         * .cvsignore: Ignore portable dumper xemacs.dmp file
15459
15460 2000-02-09  Andy Piper  <andy@xemacs.org>
15461
15462         * redisplay-output.c (redisplay_output_layout): be more clever
15463         about when we output based on the changed flags.
15464
15465         * glyphs.h (struct image_instantiator_methods): add update_method.
15466         (struct Lisp_Image_Instance): add changed flags. Declare new
15467         macros for manipulating them.
15468
15469         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
15470         (image_instance_parent_glyph): find an image_instance's parent
15471         glyph or image_instance.
15472         (image_instance_layout): mark the size as changed.
15473         (set_image_instance_dirty_p): new function. mark an image
15474         instance, plus all of its parents, as dirty.
15475         (Fset_image_instance_property): use it.
15476         (Fglyph_animated_timeout_handler): use it.
15477         (update_subwindow): call update_widget and device methods for
15478         update_subwindow. Mark all changed flags as clean.
15479         (Fresize_subwindow): mark size as changed.
15480
15481         * glyphs-x.c (x_finalize_image_instance): try and detect gc
15482         failures.
15483         (x_update_subwindow): only resize subwindows here.
15484         (x_update_widget): new function. Update all changed properties of
15485         a widget.
15486         (x_resize_subwindow): deleted.
15487         (x_widget_set_property): deleted.
15488         (x_progress_gauge_set_property): deleted.
15489         (x_progress_gauge_update): new function. Implement recorded
15490         changes.
15491         (x_tab_control_update): ditto.
15492         (x_tab_control_set_property): deleted.
15493         (console_type_create_glyphs_x): declare new functions.
15494         (image_instantiator_format_create_glyphs_x): ditto.
15495
15496         * glyphs-widget.c (widget_set_property): mark text changed.
15497         (update_widget): new function. Update properties of a widget.
15498         (widget_instantiate): for layouts make sure we set their
15499         children's parent correctly.
15500         (tab_control_set_property): new function. Record changes that will
15501         take place under redisplay's control.
15502         (progress_gauge_set_property): ditto.
15503         (image_instantiator_progress_guage): declare new functions.
15504         (image_instantiator_tab_control): ditto.
15505
15506         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
15507         now.
15508         (mswindows_update_widget): new function. Update all properties on
15509         a widget that have changed.
15510         (mswindows_button_update): new function. Update a button's set
15511         state.
15512         (mswindows_tab_control_update): new function. Update the items in
15513         a tab.
15514         (mswindows_tab_control_set_property): deleted.
15515         (mswindows_progress_gauge_update): new function. Update the
15516         progress gauge's progress.
15517         (mswindows_widget_set_property): deleted. This is all done
15518         asynchronously now.
15519         (mswindows_progress_gauge_set_property): ditto.
15520         (console_type_create_glyphs_mswindows): declare new methods.
15521         (image_instantiator_format_create_glyphs_mswindows): ditto.
15522
15523         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
15524         (msprinter_set_frame_properties): ditto.
15525
15526         * console.h (struct console_methods): Add update_widget_method.
15527
15528 2000-02-09  Andy Piper  <andy@xemacs.org>
15529
15530         * gui-msw.c (Fmswindows_shell_execute): Make
15531         mswindows-shell-execute industrial strength.
15532
15533 2000-02-08  Martin Buchholz  <martin@xemacs.org>
15534
15535         * lrecord.h: Make macro argument `props' match member function `plist'.
15536         * fns.c (Fget):
15537         * fns.c (Fput):
15538         * fns.c (Fremprop):
15539         * fns.c (Fobject_plist):
15540         * alloc.c:
15541         * symbols.c:
15542         Object property list frobbing cleanup.
15543         - Allow any lisp object (compared with `eq'), not just symbols, as
15544           keys in object plists.
15545         - Move symbol plist frobbing into symbols.c, where it belongs.
15546         - Move string plist frobbing into alloc.c, where it belongs.
15547         - Everything's an lrecord now, so no need to test for symbolp, etc.
15548         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
15549
15550         * extents.c: Reorder code to remove declarations.
15551
15552         * frame.h (store_in_alist): Remove useless declaration.
15553
15554 2000-02-07  Martin Buchholz  <martin@xemacs.org>
15555
15556         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
15557         * config.h.in: Add HAVE_XCONVERTCASE.
15558
15559 2000-02-07  Andy Piper  <andy@xemacs.org>
15560
15561         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
15562         it breaks many things.
15563
15564 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
15565
15566         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
15567         actually can start a common comment type.
15568         * src/syntax.h (SYNTAX_END_P): ditto for end.
15569
15570 2000-02-07  Martin Buchholz <martin@xemacs.org>
15571
15572         * XEmacs 21.2.28 is released.
15573
15574 2000-02-06  Martin Buchholz  <martin@xemacs.org>
15575
15576         * event-Xt.c (x_keysym_to_character): New.
15577         (maybe_define_x_key_as_self_inserting_character): New.
15578         (x_has_keysym): New.
15579         Auto-define all keys on the keyboard as self-insert-key.
15580
15581 2000-02-02  Martin Buchholz  <martin@xemacs.org>
15582
15583         * menubar.c (vars_of_menubar): A small code simplification.
15584
15585         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
15586
15587         * ExternalShell.c:
15588         * ExternalClient.c:
15589         * EmacsShell-sub.c:
15590         * EmacsManager.c:
15591         * EmacsFrame.c:
15592         Use consistent style for specifying X resources.
15593
15594         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
15595         This makes (dontusethis-set-symbol-value-handler) actually usable.
15596
15597         * lrecord.h (lrecord_decription_type):
15598         * alloc.c (pdump_register_sub):
15599         (pdump_dump_data):
15600         (pdump_reloc_one):
15601         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
15602         Comply with XEmacs coding style.
15603         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
15604         args, and XD_LISP_OBJECT_ARRAY with 3 args.
15605
15606         * keymap.c (Faccessible_keymaps):
15607         Make (accessible-keymaps map "\C-h") do the Right Thing.
15608         Make (accessible-keymaps map []) do the Right Thing.
15609         Make (accessible-keymaps map "") do the Right Thing.
15610         (check_keymap_definition_loop): New function.
15611         (keymap_store_internal): Keep luser from shooting self in foot,
15612           via (define-key ctl-x-4-map "p" global-map).
15613         Remove fullness slot from struct Lisp_Keymap, since hash tables
15614         are now reliable.
15615         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
15616
15617 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15618
15619         * redisplay.c (init_redisplay): Fix small memory leak.
15620         * elhash.h:
15621         * elhash.c (pdump_reorganize_hash_table):
15622         Rename from reorganize_hash_table. Change prototype.
15623         Reuse the original memory for hentries.  Save 100k.
15624         * alloc.c (PDUMP_READ): new macro.
15625         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
15626         * alloc.c: No need to #ifndef before #undef.
15627
15628         * print.c: Allow debug_print() to print readably by modifying
15629         debug_print_readably.  Use consistent variable names.
15630
15631         * .dbxrc: Try to get things to work even if stopped in a function
15632         without source available by explicitly specifying source files.
15633 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15634
15635         * unexnt.c (_start): Removed bogus code which caused loading heap
15636         from differrent executable file.
15637         Removed bogus assignment to _fmode, which caused inconsistencies.
15638
15639 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15640
15641         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
15642         Have spawnve encapsulation regard DONT_ENCAPSULATE.
15643         Do not preliminary `#define signal sigset'.
15644
15645         * systime.h: Do not prototype environ on windows nt and cygwin,
15646         this conflicts with system header.
15647
15648         * syssignal.h: Use correct define for WINDOWSNT
15649
15650         * sysdep.h: Do not prototype environ on windows nt, this conflicts
15651         with system header.
15652
15653         * sysdep.c (near start of file): Fixed commentary and rearranged
15654         ifdefs in readable order.
15655         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
15656         (start_of_text):
15657         (end_of_text):
15658         (end_of_data): Do not compile in if using PDUMP.
15659
15660         * symsinit.h: Prototyped vars_of_nt().
15661
15662         * ntproc.c (windows9x_p): Added, instead of os_subtype.
15663         (find_child_console): Use it.
15664         (sys_kill): Use it.
15665
15666         * ntheap.h: Do not extern os_subtype.
15667
15668         * ntheap.c (cache_system_info): Do not cache unneeded:
15669         nt_major_version, nt_minor_version and os_subtype.
15670         (recreate_heap): Do not compile in when PDUMPing.
15671
15672         * nt.c (geteuid and friends): Use the new varibale
15673         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
15674         (init_user_info): Removed the above mentioned hackery.
15675         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
15676         stat has been fixed in the C runtime.
15677         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
15678
15679         * file-coding.c (struct file_coding_dump): Do not define
15680         ucs_to_mule_table in the struct if not MULE.
15681         (struct struct lrecord_description fcd_description_1): Do not dump
15682         the above.
15683
15684         * emacs.c (main_1): Call vars_of_nt().
15685         (right before Fdump_emacs_data): Don't need lastfile if using both
15686         portabe dumper and system malloc.
15687
15688         * alloc.c (Fmemory_limit): Conditionalized out.
15689         (pdump): Use OPEN_BINARY for the portable dump file.
15690         (pdump_load): Ditto.
15691
15692 2000-02-02  Mike Alexander  <mta@arbortext.com>
15693
15694         * nt.c (convert_time): Set tm_isdst before calling mktime and
15695         avoid calling it at all if the compiler supports 64 bit integers.
15696         Also initialize utc_base_ft before using it.
15697
15698 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
15699
15700         * frame.c (change_frame_size_1): Take f->internal_border_width
15701         into consideration when calculating the width of the frame.
15702
15703 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15704
15705         * window.c (frame_min_height):
15706         (frame_size_valid_p):
15707         (frame_pixsize_valid_p): Added.
15708         (check_frame_size): Generalized.
15709
15710         * window.h: Prototyped the above.
15711
15712         * lisp.h:
15713         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
15714         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
15715         Deleted Vwin32_* and Vbinary_process_* unused variables.
15716
15717         * device-msw.c (msprinter_init_device): Do not get printer font
15718         list; Added DEVMODE functions.
15719
15720         * frame-msw.c: Added lots of printer code.
15721
15722         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
15723         general.c.
15724
15725         * console-msw.h: Added more msprinter device private slots.
15726
15727 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15728
15729         * event-msw.c (key_needs_default_processing_p): Added.
15730         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
15731
15732 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15733
15734         * glyphs.c (image_instance_layout): Mark image instance as clean
15735         after layout.
15736         (glyph_dirty_p): Removed redundant function.
15737         (invalidate_glyph_geometry_maybe): Added.
15738         (update_glyph_cachel_data): Call it.
15739
15740         * glyphs.h: Prototyped it.
15741
15742         * redisplay.c (add_glyph_rune): Call it.
15743         (redisplay_window): Reset glyphs cachels when frame faces have
15744         changed, thus forcing recomputation of built-in border glyphs.
15745
15746 2000-01-30  Martin Buchholz  <martin@xemacs.org>
15747
15748         * Makefile.in.in: Make portable dumper and purify play well together.
15749         Add imperfect, but better than nothing, support for pdump.
15750         Remove xemacs.dmp when temacs is re-generated.
15751         Don't ignore errors when dumping xemacs.
15752
15753         * symbols.c (maybe_call_magic_handler): Remove one magic number.
15754
15755 2000-01-28  Andy Piper  <andy@xemacs.org>
15756
15757         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
15758         (setup_normal_frame): ditto.
15759         (setup_frame_without_minibuffer): ditto.
15760         (setup_minibuffer_frame): ditto.
15761         (delete_frame_internal): ditto.
15762         (Fmake_frame_invisible): ditto.
15763         (Ficonify_frame): ditto.
15764
15765         * window.h: change Fset_window_buffer signature.
15766
15767         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
15768         (Fset_window_buffer): allow recording of buffer if the window is
15769         the selected window.
15770         (window_loop): Use new Fset_window signature.
15771
15772 2000-01-23  Daniel Pittman  <daniel@danann.net>
15773
15774         * config.h.in: Added template for `HAVE_ATHENA_3D'
15775
15776 2000-01-29  Andy Piper  <andy@xemacs.org>
15777
15778         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
15779
15780         * gutter.c (output_gutter): Don't output if the window isn't live.
15781
15782 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15783
15784         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
15785         of 01/12/00: Moved SetFocus back here where it belongs.
15786
15787 2000-01-23  Andy Piper  <andy@xemacs.org>
15788
15789         * s/cygwin32.h: declare printer things.
15790
15791 2000-01-26  Andy Piper  <andy@xemacs.org>
15792
15793         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
15794         Alexander.
15795
15796 2000-01-24  Andy Piper  <andy@xemacs.org>
15797
15798         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
15799         (mswindows_button_instantiate): Make sure glyph is a pixmap.
15800
15801         * glyphs-widget.c (widget_instantiate): Avoid shadows.
15802
15803         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
15804
15805         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
15806
15807         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
15808         (mswindows_output_display_block): Avoid local shadows.
15809
15810         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
15811         (mswindows_enqueue_mouse_button_event): ditto.
15812         (mswindows_handle_gui_wm_command): remove declaration.
15813
15814         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
15815         warnings.
15816
15817         * console-msw.h: Avoid shadows.
15818         (mswindows_get_toolbar_button_text):
15819         (emacs_mswindows_create_stream_pair):
15820         (emacs_mswindows_delete_stream_pair):
15821         (mswindows_handle_toolbar_wm_command): declare.
15822
15823         * device-msw.c (build_syscolor_string): Avoid shadows.
15824
15825 2000-01-23  Andy Piper  <andy@xemacs.org>
15826
15827         * glyphs-widget.c (widget_instantiate): reverse the items for
15828         layouts so that children are in the expected order.
15829
15830 2000-01-28  Martin Buchholz  <martin@xemacs.org>
15831
15832         * ralloc.c: safe_bcopy ==> memmove
15833         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
15834         * s/msdos.h: Remove BCOPY macros.
15835         * insdel.c (gap_right): Remove BCOPY conditional code.
15836         * insdel.c (gap_left): Remove BCOPY conditional code.
15837         XEmacs demands a working ANSI C compiler - hence memmove.
15838
15839         * regex.c (regex_compile): Remove accidental use of trigraphs.
15840
15841 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15842
15843         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
15844         event timestamp.
15845
15846 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15847
15848         * event-msw.c (mswindows_drain_windows_queue): Added the
15849         parameter.
15850         (mswindows_need_event): Commented the call to
15851         mswindows_drain_windows_queue().
15852         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
15853         only.
15854
15855         * console-msw.h: Moved a few function prototypes here from
15856         event-msw.c.
15857
15858         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
15859         parameter from unsigned short to unsigned long.
15860         (Fmswindows_shell_execute): Added return value.
15861
15862 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15863
15864         * sysdep.c (init_system_name):
15865           process-unix.c (unix_canonicalized_host_name):
15866         Don't call freeaddrinfo() if getaddrinfo() fails.
15867
15868         * process-unix.c (unix_open_unix_network_stream):
15869         Moved the code to get a port # into address loop.
15870
15871 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15872
15873         * buffer.c (reinit_vars_of_buffer):
15874         The right place to initialize conversion_in_dynarr and
15875         conversion_out_dynarr.
15876
15877         * alloc.c (pdump): Use the real open() till sys_open() is functional.
15878
15879         * process-unix.c (unix_canonicalize_host_name): Muleize.
15880         (unix_open_network_stream): Muleize.
15881
15882         * buffer.h: Fix up prototypes for ralloc.c functions.
15883
15884 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
15885         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
15886         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
15887                 instead of gethostbyname()
15888         * process-unix.c: In unix_canonicalize_host_name() and
15889                 unix_open_network_stream(), add code to use getaddrinfo()
15890                 instead of gethostbyname().
15891
15892 2000-01-27  Daniel Pittman <daniel@danann.net>
15893
15894         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
15895         libs when built with flat Athena.
15896
15897 2000-01-27  Martin Buchholz  <martin@xemacs.org>
15898
15899         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
15900         Use coding standards for function prototypes.
15901
15902 2000-01-25  Martin Buchholz  <martin@xemacs.org>
15903
15904         * dialog-msw.c (push_lisp_string_as_unicode):
15905         * doc.c (unparesseuxify_doc_string):
15906         * dired.c (Fuser_name_completion_1):
15907         * dired.c (Fuser_name_all_completions):
15908         * dired.c (free_user_cache):
15909         * dired.c (user_name_completion):
15910         * console-x.c (get_display_arg_connection):
15911         * minibuf.c (clear_echo_area_internal):
15912         * minibuf.c (echo_area_append):
15913         * eldap.c (Fldap_open):
15914         * eldap.c (Fldap_search_internal):
15915         * frame-x.c (x_set_frame_text_value):
15916         * frame-x.c (x_set_frame_properties):
15917         * frame-x.c (x_create_widgets):
15918         * redisplay-tty.c (term_get_fkeys_1):
15919         * objects-x.c (x_parse_nearest_color):
15920         * objects-x.c (x_valid_color_name_p):
15921         * objects-x.c (x_initialize_font_instance):
15922         * objects-x.c (x_list_fonts):
15923         * objects-x.c (x_find_charset_font):
15924         * tooltalk.c (Fadd_tooltalk_message_arg):
15925         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
15926         * tooltalk.c (Fadd_tooltalk_pattern_arg):
15927         * process-unix.c (unix_create_process):
15928         * ntproc.c (sys_spawnve):
15929         * sound.c (Fplay_sound_file):
15930         * sound.c (Fplay_sound):
15931         * buffer.c (init_initial_directory):
15932         * buffer.c (init_buffer):
15933         * editfns.c (init_editfns):
15934         * editfns.c (Ftemp_directory):
15935         * editfns.c (Fuser_full_name):
15936         * editfns.c (uncache_home_directory):
15937         * editfns.c (get_home_directory):
15938         * editfns.c (Fuser_home_directory):
15939         * editfns.c (Fformat_time_string):
15940         * editfns.c (Fcurrent_time_string):
15941         * gui-x.c (button_item_to_widget_value):
15942         * database.c (Fopen_database):
15943         * event-Xt.c (x_to_emacs_keysym):
15944         * event-Xt.c (x_event_to_emacs_event):
15945         * event-Xt.c (describe_event_window):
15946         * event-msw.c (mswindows_wnd_proc):
15947         * glyphs-eimage.c (jpeg_instantiate):
15948         * glyphs-eimage.c (gif_instantiate):
15949         * glyphs-eimage.c (png_instantiate):
15950         * glyphs-eimage.c (tiff_instantiate):
15951         * glyphs-x.c (xbm_instantiate_1):
15952         * glyphs-x.c (x_xbm_instantiate):
15953         * glyphs-x.c (x_xface_instantiate):
15954         * glyphs-x.c (autodetect_instantiate):
15955         * glyphs-x.c (cursor_font_instantiate):
15956         * glyphs-x.c (x_widget_instantiate):
15957         * glyphs-x.c (x_widget_set_property):
15958         * glyphs-x.c (x_widget_property):
15959         * glyphs-x.c (BUILD_GLYPH_INST):
15960         * print.c (write_string_to_stdio_stream):
15961         * print.c (output_string):
15962         * print.c (Falternate_debugging_output):
15963         * print.c (Fexternal_debugging_output):
15964         * glyphs-msw.c (extract_xpm_color_names):
15965         * glyphs-msw.c (mswindows_xpm_instantiate):
15966         * glyphs-msw.c (bmp_instantiate):
15967         * glyphs-msw.c (resource_name_to_resource):
15968         * glyphs-msw.c (mswindows_resource_instantiate):
15969         * glyphs-msw.c (xbm_instantiate_1):
15970         * glyphs-msw.c (mswindows_xbm_instantiate):
15971         * glyphs-msw.c (mswindows_xface_instantiate):
15972         * glyphs-msw.c (mswindows_widget_instantiate):
15973         * glyphs-msw.c (add_tree_item):
15974         * glyphs-msw.c (add_tab_item):
15975         * glyphs-msw.c (mswindows_combo_box_instantiate):
15976         * glyphs-msw.c (mswindows_widget_property):
15977         * glyphs-msw.c (mswindows_combo_box_property):
15978         * glyphs-msw.c (mswindows_widget_set_property):
15979         * console.c (stuff_buffered_input):
15980         * objects-msw.c (mswindows_initialize_color_instance):
15981         * objects-msw.c (mswindows_valid_color_name_p):
15982         * objects-msw.c (mswindows_list_fonts):
15983         * objects-msw.c (mswindows_font_instance_truename):
15984         * bytecode.c (optimize_compiled_function):
15985         * select-x.c (symbol_to_x_atom):
15986         * select-x.c (x_atom_to_symbol):
15987         * select-x.c (hack_motif_clipboard_selection):
15988         * select-x.c (selection_data_to_lisp_data):
15989         * select-x.c (lisp_data_to_selection_data):
15990         * select-x.c (Fx_get_cutbuffer_internal):
15991         * select-x.c (Fx_store_cutbuffer_internal):
15992         * buffer.h (TO_EXTERNAL_FORMAT): New function.
15993         * buffer.h (TO_INTERNAL_FORMAT): New function.
15994         * emacs.c (make_arg_list_1):
15995         * emacs.c (make_argc_argv):
15996         * emacs.c (main_1):
15997         * emacs.c (Fdump_emacs):
15998         * emacs.c (split_string_by_emchar_1):
15999         * file-coding.h:
16000         * lisp.h:
16001         * lstream.h:
16002         * symsinit.h:
16003         * device-x.c (x_init_device):
16004         * device-x.c (Fx_valid_keysym_name_p):
16005         * device-x.c (Fx_get_font_path):
16006         * device-x.c (Fx_set_font_path):
16007         * glyphs.c (bitmap_to_lisp_data):
16008         * glyphs.c (pixmap_to_lisp_data):
16009         * alloc.c (make_ext_string): Use coding system arguments.  Update
16010         all callers.
16011         * alloc.c (build_string):
16012         * callproc.c (child_setup):
16013         * callproc.c (init_callproc):
16014         * fileio.c (lisp_strerror):
16015         * fileio.c (directory_file_name):
16016         * fileio.c (Fexpand_file_name):
16017         * fileio.c (Ffile_truename):
16018         * fileio.c (Fsysnetunam):
16019         * fileio.c (Fdo_auto_save):
16020         * sysdep.c (sys_readdir):
16021         * tests.c: New file.  Allow adding C tests.
16022         Replace GET_* macros with a more comprehensible and flexible
16023         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
16024         Modify all calls.
16025         Any coding system can be used to do format conversion.
16026         Eliminate enum external_data_format.
16027         Eliminate convert_to_external_format.
16028         Eliminate convert_to_internal_format.
16029         Make sure file-name, keyboard, terminal, and ctext are always
16030         defined as coding systems or aliases.  Make
16031         file-name-coding-system, terminal-coding-system, and
16032         keyboard-coding-system magical variables that are equivalent to
16033         defining the corresponding coding system aliases.
16034
16035         * file-coding.c (Fcoding_system_canonical_name_p): New function.
16036         * file-coding.c (Fcoding_system_alias_p): New function.
16037         * file-coding.c (Fcoding_system_aliasee): New function.
16038         * file-coding.c (append_suffix_to_symbol): New function.
16039         * file-coding.c (dangling_coding_system_alias_p): New function.
16040         * file-coding.c (Ffind_coding_system):
16041         * file-coding.c (Fcopy_coding_system):
16042         * file-coding.c (encode_coding_no_conversion):
16043         * file-coding.c (syms_of_file_coding):
16044         * file-coding.c (vars_of_file_coding):
16045         Rewrite coding system alias code.
16046         Allow nested aliases, like symbolic links.
16047         Allow redefinition of coding system aliases.
16048         Prevent existence of dangling coding system aliases.
16049
16050         * dired.c (Fuser_name_completion_1):
16051         * dired.c (Fuser_name_all_completions):
16052         A crash would happen if user did QUIT in the middle of building
16053         user_name_cache.  Remove redundant code in mainline and unwind_protect.
16054
16055         * lisp.h:
16056         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
16057
16058         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
16059         an unsigned char *.  Update all callers.
16060
16061 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16062
16063         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
16064
16065 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16066
16067         * elhash.c (hentry_description): Use more portable definition.
16068         (resize_hash_table): Initialize new hentries using
16069         xnew_array_and_zero, thereby simplifying the code.
16070
16071         * mule-charset.c (make_charset): Make sure entire object is
16072         initialized, to avoid Purify warnings.
16073
16074         * alloc.c (resize_string): Fix unlikely crash with big strings.
16075
16076 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16077
16078         * realpath.c (xrealpath):
16079         Don't call getwd().
16080
16081 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16082
16083         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
16084
16085 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
16086
16087         * unexelfsgi.c (unexec): Change the way we decide which segment
16088         should be extended.
16089
16090         Assumption that .bss section should be outside the PT_LOADable
16091         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
16092         it's present) is inside the 'data' segment. This would fail the
16093         test which was used to find a segment to grow and cover new
16094         heap. Instead of this assumption, I created another one - on IRIX
16095         the segment to grow should start below .bss and it's address
16096         should extent above the end of .bss. Once this segment is
16097         identified, it's grown to accommodate the new heap and new
16098         zero-length .bss section is added at the end of .data2.
16099
16100 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16101
16102         * eval.c (Feval): Wrong number of arguments should use original
16103         function, not the indirect_function version of it.
16104
16105 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
16106
16107         * glyphs-x.c (x_button_instantiate): Don't add image if
16108         it is not a pixmap.
16109         (x_locate_pixmap_file): Call Fexpand_file_name when file name
16110         is relative.
16111
16112 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
16113
16114         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
16115         declaration.
16116         (DEFVAR_INT_MAGIC): Ditto.
16117         (DEFVAR_BOOL_MAGIC): Ditto.
16118         * glyphs.h: Reindent backslash.
16119
16120 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16121
16122         * glyphs-widget.c (layout_query_geometry):
16123         (layout_layout): Use correct types for gheight, gwidth.
16124
16125 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16126
16127         * EmacsManager.c (QueryGeometry): Purified.
16128
16129 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16130
16131         * alloc.c (make_float): Make sure entire object is initialized, to
16132         avoid Purify warnings.
16133         (pdump_register_sub): Remove useless assignment.
16134         (pdump): Use xmalloc, not malloc.
16135         (pdump_load): Use xmalloc, not malloc.
16136
16137 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16138
16139         * callproc.c:
16140         * dired-msw.c:
16141         * fileio.c:
16142         * process-nt.c:
16143         * redisplay-msw.c:
16144         * sysdep.c: Removed redundant #include <windows.h>
16145
16146 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16147
16148         * frame.c (delete_frame_internal): Do not delete device when its
16149         implementation so declares.
16150         (delete_frame_internal): Set device selected frame to nil when
16151         last frame goes away.
16152
16153         * device-msw.c (msprinter_device_system_metrics): Implemented.
16154         (mswindows_device_system_metrics): Added 'device-dpi property.
16155
16156         * device.c: (Fdevice_printer_p): Added.
16157         Added 'offset-workspace device metric.
16158
16159         * console.h (device_metrics): Declared DM_offset_workspace.
16160
16161 2000-01-23  Martin Buchholz  <martin@xemacs.org>
16162
16163         * fileio.c (Ffile_truename): Remove pointless and confusing
16164         initialization of elen.
16165
16166         * glyphs-widget.c: Compiler warning fixes.
16167
16168 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
16169
16170         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
16171         instead of a Lisp_Object as argument to make it consistent with
16172         the other LIVE_P macros.
16173         (CHECK_LIVE_PROCESS): New macro.
16174
16175         * process.c: Declare Qprocess_live_p.
16176         (Fprocess_live_p): New function.
16177         (create_process): Use PROCESS_LIVE_P.
16178         (read_process_output): Ditto.
16179         (set_process_filter): Ditto.
16180         (Fdelete_process): Ditto.
16181         (kill_buffer_processes): Ditto
16182         (process_send_signal): Use CHECK_LIVE_PROCESS.
16183         (Fprocess_input_coding_system): Check whether process is still
16184         alive (fix PR#1061).
16185         (Fprocess_output_coding_system): Ditto.
16186         (Fprocess_coding_system): Ditto.
16187         (Fset_process_input_coding_system): Ditto.
16188         (Fset_process_output_coding_system): Ditto.
16189
16190 2000-01-23  Andy Piper  <andy@xemacs.org>
16191
16192         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
16193         layout and widget.
16194
16195         * glyphs.c (mark_image_instance): take into account changed
16196         image_instance format.
16197         (image_instance_equal): ditto.
16198         (image_instance_hash): ditto.
16199
16200         * glyphs-widget.c (widget_instantiate): Incorporate layout
16201         instantiation here. Delay layout of the layout until later.
16202         (layout_instantiate): deleted.
16203         (layout_query_geometry): new function. get the geometry of a
16204         layout.
16205         (layout_layout): layout a layout dynamically.
16206         (image_instantiator_widget): New function - splitting up
16207         image_instantiator_format_create_glyphs_widget for netwinder
16208         compilation.
16209         (image_instantiator_buttons):
16210         (image_instantiator_edit_fields):
16211         (image_instantiator_combo_box):
16212         (image_instantiator_scrollbar):
16213         (image_instantiator_progress_guage):
16214         (image_instantiator_tree_view):
16215         (image_instantiator_tab_control):
16216         (image_instantiator_labels):
16217         (image_instantiator_layout): ditto.
16218         (image_instantiator_format_create_glyphs_widget): Call preceding
16219         functions.
16220
16221 2000-01-22  Martin Buchholz  <martin@xemacs.org>
16222
16223         * process.c (Fset_process_coding_system):
16224         * device-x.c (Fx_keysym_hash_table):
16225         Docstring fixes.
16226
16227         * lstream.c (Lstream_write): Return documented value, not 0.
16228
16229         * fileio.c (directory_file_name):
16230         (Fsubstitute_in_file_name):
16231         (Fsubstitute_insert_file_contents_internal):
16232         (Fwrite_region_internal):
16233         * emacs.c:
16234         * sysdep.c:
16235         * getloadavg.c:
16236         * systty.h:
16237         Remove vestigial APOLLO-conditional code.
16238
16239 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16240
16241         * getpagesize.h: Add guard macros.
16242         * libsst.h: Add guard macros.
16243         * libst.h: Add guard macros.
16244         * line-number.h: Add guard macros.
16245         * ndir.h: Add guard macros.
16246         * sysfloat.h: Add guard macros.
16247         * sysfile.h: Add guard macros.
16248         * sysproc.h: Add guard macros.
16249         * syswait.h: Add guard macros.
16250         * xintrinsic.h: Add guard macros.
16251         * xintrinsicp.h: Add guard macros.
16252         * xmmanager.h: Add guard macros.
16253         * xmmanagerp.h: Add guard macros.
16254         * xmprimitive.h: Add guard macros.
16255         * xmu.h: Add guard macros.
16256         * gpmevent.h: Add copyright statement. Add guard macros.
16257         * miscplay.h: Add guard macros.
16258         * *.h: Use consistent C-standards-approved guard macro names.
16259
16260         * opaque.c (make_opaque): Switch parameter order.
16261         * opaque.h (make_opaque): Switch parameter order.
16262         Update all callers.
16263         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
16264
16265         * config.h.in (type_checking_assert): Added.
16266         (bufpos_checking_assert): Added.
16267
16268 2000-01-21  Martin Buchholz  <martin@xemacs.org>
16269
16270         * alloc.c: Harmless pdump changes.
16271         - Use countof().
16272         - spell alignment correctly.
16273         * sysdep.c: Use countof()
16274
16275 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16276
16277         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
16278         initially_selected_for_input() console method, default to 0.
16279         (semi_canonicalize_console_connection): Try to delegate to
16280         canonicalize_console_connection if no such console method.
16281         (canonicalize_console_connection): Vice versa.
16282         (print_console): Do not print nil connection.
16283
16284         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
16285         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
16286         (XDEVIMPF_FRAMELESS_OK): Added.
16287         (CONSOLE_INHERITS_METHOD): Added.
16288
16289         * console-msw.c (mswindows_canonicalize_console_connection):
16290         Added.
16291         (mswindows_canonicalize_device_connection): Added.
16292
16293         * console-msw.h (struct msprinter_device): Added this struct and
16294         accessor macros.
16295         (mswindows_device): Made fontlist a lisp object.
16296
16297         * device.c (semi_canonicalize_device_connection):  Try to delegate
16298         to canonicalize_device_connection if no such console method.
16299         (canonicalize_device_connection): Vice versa.
16300         (print_device): Do not print nil connection.
16301
16302         * device-msw.c (mswindows_init_device): Call InitCommonControls
16303         when have widgets.
16304         (mswindows_delete_device): Removed fontlist deallocation.
16305         (mswindows_mark_device): Added.
16306
16307         * events.c (event_equal): Added abort() at unreached code.
16308         (event_hash): Ditto.
16309
16310         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
16311         fallback tags of Windows devices.
16312
16313         * general.c (syms_of_general): Initialized Qmsprinter.
16314
16315         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
16316         of fallback tags of Windows devices.
16317
16318         * lisp.h: Declared Qmsprinter.
16319
16320         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
16321         of strings.
16322         (mswindows_list_fonts): Ditto.
16323         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
16324         that it can be used by both mswindows and msprinter devices.
16325         (initialize_font_instance): Added.
16326         (mswindows_initialize_font_instance): Use it.
16327         (msprinter_initialize_font_instance): Added.
16328
16329         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
16330         and implementation flags check.
16331         (redisplay_without_hooks): Changed the call to the above.
16332         (Fredraw_device): Ditto.
16333         (Fredisplay_device): Ditto.
16334
16335         * redisplay-msw.c (get_frame_dc): Implemented.
16336         (get_frame_compdc): Implemented.
16337         (many functions): Use the two functions above to get device
16338         contexts, ether for a window or a printer.
16339
16340 2000-01-21  Olivier Galibert  <galibert@pobox.com>
16341
16342         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
16343         initialization here.
16344         (init_symbols_once_early): Call it.
16345         * emacs.c (main_1): Call it.
16346         * symsinit.h: Declare it.
16347
16348 2000-01-19  Olivier Galibert  <galibert@pobox.com>
16349
16350         * alloc.c: Use a lrecord_header * in the backtrace instead of a
16351         Lisp_Object.
16352         (pdump_backtrace): Ditto.
16353         (pdump_register_object): Ditto.  Cleanup use of the pointers.
16354         (pdump_get_entry): Abort if trying to register a null pointer.
16355         (pdump_dump_data): Cleanup types when relocating.
16356         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
16357         (pdump_dump_rtables): Remove bad casts.
16358         (pdump_load): Cleanup relocation w.r.t union type.  Use a
16359         Lisp_Object instead of a EMACS_INT for the hashtable
16360         reorganization.
16361
16362 2000-01-20  Martin Buchholz  <martin@xemacs.org>
16363
16364         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
16365
16366         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
16367
16368         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
16369
16370         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
16371
16372 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16373
16374         * faces.h (FACE_STRIKETHRU_P): Added.
16375
16376         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
16377         of font variants.
16378
16379         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
16380         (mswindows_set_dc_font): New function, aware of font variants,
16381         separated from mswindows_update_dc.
16382
16383         * objects-msw.h (struct mswindows_font_instance_data): Added
16384         definition.
16385
16386         * objects-msw.c (mswindows_finalize_font_instance): Delete all
16387         cached fonts and the data structure.
16388         (mswindows_initialize_font_instance): Added creation of font data
16389         structure.
16390         (mswindows_print_font_instance): Print at least something.
16391         (mswindows_create_font_variant): Implemented.
16392         (mswindows_get_hfont): Implemented.
16393
16394 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
16395
16396         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
16397         prototyping problem with msvc.
16398
16399         * emacs.c (main_1): added syms_of_gui_mswindows() call
16400
16401         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
16402         syms_of_gui_mswindows() function
16403
16404         * symsinit.h: added the prototype for syms_of_gui_mswindows()
16405
16406 2000-01-18  Martin Buchholz <martin@xemacs.org>
16407
16408         * XEmacs 21.2.27 is released.
16409
16410 2000-01-18  Martin Buchholz  <martin@xemacs.org>
16411
16412         * glyphs-eimage.c (struct tiff_error_struct):
16413         (tiff_error_func):
16414         (tiff_warning_func):
16415         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
16416
16417         * unexmips.c:
16418         * unexhp9k3.c:
16419         * unexfreebsd.c:
16420         * unexec.c: Remove vestigial Lucid C code.
16421         * unexalpha.c:
16422         * unexaix.c:
16423         * termcap.c:
16424         * libsst.c: Ansify.
16425         Remove declarations of errno and strerror().
16426
16427         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
16428
16429         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
16430
16431 2000-01-16  Martin Buchholz  <martin@xemacs.org>
16432
16433         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
16434         Optimize.
16435
16436 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16437
16438         * md5.c:
16439         * file-coding.c:
16440         * file-coding.h:
16441         Change enum eol_type to eol_type_t.
16442
16443 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16444
16445         * gui.c (get_gui_callback): Check cons before accessing car.
16446
16447 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16448
16449         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
16450         (XSETSPECIFIER_TYPE): Ditto.
16451
16452 2000-01-17  Didier Verna  <didier@xemacs.org>
16453
16454         * redisplay.c (generate_fstring_runes): compute string size in
16455         characters, not bytes.
16456
16457 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16458
16459         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
16460
16461 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
16462
16463         * print.c (print_error_message): Call print_prepare().
16464
16465 2000-01-14  Martin Buchholz  <martin@xemacs.org>
16466
16467         * .dbxrc: Renamed from dbxrc.
16468
16469         * events.c (event_to_character):
16470         Use `assert (foo)' instead of `if (!foo) abort()'
16471
16472         * .gdbinit (xtype): Add documentation.
16473         * .gdbinit (check-temacs): New function.
16474         * .gdbinit (check-xemacs): New function.
16475         * dbxrc (check-xemacs): New function.
16476         * dbxrc (check-xemacs): New function.
16477
16478 2000-01-14  Andy Piper  <andy@xemacs.org>
16479
16480         * glyphs-widget.c (widget_query_geometry): Make sure that we
16481         calculate default dimensions correctly.
16482
16483 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16484
16485         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
16486
16487         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
16488         pdump_wire'd variable.
16489
16490         * emacs.c: (main_1): Conditionalized calls to
16491         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
16492
16493 2000-01-13  Martin Buchholz  <martin@xemacs.org>
16494
16495         * window.c (Fset_window_configuration):
16496         * sysdep.c (_start):
16497         * input-method-motif.c (res):
16498         * event-Xt.c (Xt_process_to_emacs_event):
16499         Simple compiler warning fixes.
16500
16501         * bytecode.c (funcall_compiled_function): Use the original
16502         function symbol on the backtrace list in preference to the
16503         compiled_function object in error messages.
16504
16505 2000-01-13  Andy Piper  <andy@xemacs.org>
16506
16507         * glyphs-x.c (update_widget_face): Make sure we update the widget
16508         background as well as foreground.
16509
16510 2000-01-13  Andy Piper  <andy@xemacs.org>
16511
16512         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
16513         fields to subwindow.
16514         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
16515         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
16516         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16517         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
16518
16519         * glyphs-widget.c (check_valid_tab_orientation): new function.
16520         (initialize_widget_image_instance): zero orientation and
16521         justification.
16522         (widget_instantiate): pick up orientation.
16523         (tab_control_query_geometry): return appropriate values for
16524         vertical tabs.
16525
16526         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
16527         appropriate creation flags for left, right and bottom tabs.
16528
16529         * s/cygwin32.h: add tab definitions.
16530
16531 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16532
16533         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
16534         frame upon hiding a subwindow.
16535         (mswindows_button_instantiate): Changed the push button style to
16536         BS_PUSHBUTTON.
16537         (mswindows_button_instantiate): Removed button BS_NOTIFY
16538         style.
16539         (mswindows_button_instantiate): Removed redundant check for
16540         a disabled gui item.
16541         (mswindows_button_instantiate): Made use of WS_TABSTOP
16542         consistent: "operable" controls (edit, button, tree, scroll) have
16543         this style, "display-only" ones (static, progress gauge) do
16544         not. This style is currently ignored by XEmacs though. Also,
16545         removed the WS_EX_CONTROLPARENT style - it is not for children,
16546         it is for their parents!
16547         (mswindows_edit_field_instantiate): Ditto.
16548         (mswindows_progress_gauge_instantiate): Ditto.
16549         (mswindows_tree_view_instantiate): Ditto.
16550         (mswindows_tab_control_instantiate): Ditto.
16551         (mswindows_scrollbar_instantiate): Ditto.
16552         (mswindows_combo_box_instantiate): Ditto.
16553         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
16554         style to the "clip" window.
16555         (mswindows_button_instantiate): Removed compilation warning by
16556         equally typing terms of the ?: operator.
16557
16558 2000-01-12  Didier Verna  <didier@xemacs.org>
16559
16560         * redisplay.c (generate_fstring_runes): new parameter holding the
16561         last modeline-format extent.
16562         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
16563         extent, fill the glyph block with it.
16564         (generate_fstring_runes): handle these parameters.
16565         (generate_formatted_string_db): ditto.
16566
16567         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
16568         glyphs'extents in the modeline.
16569
16570 1999-01-11  Mike Woolley  <mike@bulsara.com>
16571
16572         * ntheap.c: Reduced the reserved heap space from 1Gb down to
16573         256Mb, as a workaround for the non-starting problem many people
16574         have experienced.
16575
16576 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16577
16578         * console-tty.c (Fset_console_tty_output_coding_system):
16579         Force redrawing tty frame.
16580
16581 2000-01-10  Didier Verna  <didier@xemacs.org>
16582
16583         * redisplay.c (generate_fstring_runes): fix size computation bug.
16584
16585 2000-01-09  William M. Perry <wmperry@aventail.com>
16586
16587         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
16588
16589 2000-01-09  Andy Piper  <andy@xemacs.org>
16590
16591         * glyphs-msw.c: index -> i to avoid shadows.
16592         (xbm_create_bitmap_from_data): make static.
16593         (check_valid_string_or_int): deleted.
16594         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
16595
16596         * glyphs-x.c (x_update_subwindow): remove unused args.
16597
16598         * glyphs.c (glyph_image_instance): return the thing. Don't set the
16599         back pointer - this is done in allocate_image_instance.
16600         (query_string_font): return Qnil to make the compiler happy.
16601         (unmap_subwindow): set to ~0 to make the compiler happy.
16602         (glyph_query_geometry): comment out until used.
16603         (glyph_layout): ditto.
16604
16605 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
16606
16607         * insdel.c (signal_after_change): Remove extraneous unbind_to().