Use `hanyu-dazidian' instead of `hanyu-dazidian-vol',
[chise/xemacs-chise.git-] / src / ChangeLog
1 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
4         extension.
5
6 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
7
8         * mule-charset.c (decode_builtin_char): Support mother charsets.
9
10 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
11
12         * mule-charset.c (Q94x94x60): New variable.
13         (charset_code_point): Support conversion `94x94x60'.
14         (Fmake_charset): Likewise.
15         (syms_of_mule_charset): Add new symbol `94x94x60'.
16
17         * char-ucs.h (CONVERSION_94x94x60): New macro.
18
19 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
20
21         * mule-charset.c (charset_code_point): Unify code about
22         `code-offset'.
23
24 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
25
26         * mule-charset.c (charset_code_point): Merge code about builtin
27         characters into code about mother charsets; don't use
28         `range_charset_code_point'.
29         (range_charset_code_point): Deleted.
30
31 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
32
33         * mule-charset.c (Qcode_offset): New variable.
34         (Fmake_charset): Use `XUINT' to get value of `min-code' and
35         `max-code'; accept new property `code-offset'.
36         (syms_of_mule_charset): Add new symbol `code-offset'.
37
38 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
39
40         * mule-charset.c (range_charset_code_point): Fixed.
41
42 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
43
44         * mule-charset.c (decode_builtin_char): Change semantics of
45         code-offset of coded-charset.
46         (charset_code_point): Likewise.
47         (range_charset_code_point): Likewise.
48         (complex_vars_of_mule_charset): Modify for the change.
49
50 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
51
52         * mule-charset.c (Fencode_char): Reverse arguments.
53
54         * mule-charset.c (charset_code_point): Fixed.
55
56 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
57
58         * mule-charset.c (Vcharset_mojikyo): Deleted.
59         (Vcharset_mojikyo_2022_1): Deleted.
60         (Vcharset_mojikyo_pj_{1..21}): Deleted.
61         (Qmin_code): New variable in UTF-2000.
62         (Qmax_code): Likewise.
63         (Qmother): Likewise.
64         (Qconversion): Likewise.
65         (Q94x60): Likewise.
66         (Qmojikyo): Deleted.
67         (Qmojikyo_2022_1): Deleted.
68         (Qmojikyo_pj_{1..22}): Deleted.
69         (mark_charset): Mark `cs->mother'.
70         (charset_description): Add description for `mother'.
71         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
72         new arguments `mother' and `conversion'; use
73         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
74         (charset_code_point): Moved from char-ucs.h; support `mother'
75         charset feature.
76         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
77         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
78         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
79         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
80         allow 2 as the value of `graphic' in UTF-2000; add new properties
81         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
82         require `final' in UTF-2000; modify for `make_charset'.
83         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
84         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
85         (Fcharset_property): Support `mother', `min-code' and `max-code'.
86         (Fencode_char): New function.
87         (syms_of_mule_charset): Add new builtin function `encode-char' in
88         UTF-2000; add new symbols `min-code', `max-code', `mother',
89         `conversion' and `94x60'; delete symbols `mojikyo',
90         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
91         (complex_vars_of_mule_charset): Modify for `make_charset' change;
92         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
93         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
94
95         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
96         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
97
98         * char-ucs.h (Vcharset_mojikyo): Deleted.
99         (Vcharset_mojikyo_2022_1): Deleted.
100         (LEADING_BYTE_MOJIKYO): Deleted.
101         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
102         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
103         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
104         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
105         add new member `mother'; add new member `conversion'.
106         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
107         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
108         (CHARSET_MOTHER): New macro.
109         (CHARSET_CONVERSION): New macro.
110         (CONVERSION_IDENTICAL): New macro.
111         (CONVERSION_94x60): New macro.
112         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
113         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
114         (XCHARSET_MOTHER): New macro.
115         (XCHARSET_CONVERSION): New macro.
116         (MIN_CHAR_MOJIKYO): Deleted.
117         (MAX_CHAR_MOJIKYO): Deleted.
118         (DECODE_MOJIKYO_2022): Deleted.
119         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
120         (charset_code_point): Changed to non-inline function.
121         (encode_char_1): Use `charset_code_point'.
122         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
123
124 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
125
126         * lread.c (read_compiled_function): Fix prototype.
127         (read_vector): Likewise.
128
129 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
130
131         * lrecord.h (struct lrecord_header): Delete `older'.
132         (set_lheader_implementation): Delete code for `older'.
133         (set_lheader_older_implementation): Deleted.
134         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
135         (OLDER_RECORD_P): Deleted.
136         (OLDER_RECORD_HEADER_P): Deleted.
137         (alloc_older_lcrecord): Deleted.
138         (alloc_older_lcrecord_type): Deleted.
139
140         * alloc.c (all_older_lcrecords): Deleted.
141         (alloc_older_lcrecord): Deleted.
142         (disksave_object_finalization_1): Delete code for older objects.
143         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
144         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
145
146 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
147
148         * mule-charset.c (decoding_table_put_char): Use `make_vector'
149         instead of `make_older_vector'.
150         (put_char_ccs_code_point): Likewise.
151         (mark_charset): Mark `cs->decoding_table'.
152         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
153
154         * lisp.h (make_older_vector): Deleted.
155         (make_vector_newer): Deleted.
156
157         * config.h.in (HAVE_GGC): Deleted.
158
159         * alloc.c (make_older_vector): Deleted.
160         (make_vector_newer_1): Deleted.
161         (make_vector_newer): Deleted.
162
163 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
164
165         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
166         (Qideograph_daikanwa_2): New variable.
167         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
168         (complex_vars_of_mule_charset): Add new coded-charset
169         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
170         `LEADING_BYTE_DAIKANWA'.
171
172         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
173         (LEADING_BYTE_DAIKANWA_1): New macro.
174         (LEADING_BYTE_DAIKANWA_2): New macro.
175         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
176
177 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
178
179         * mule-charset.c (complex_vars_of_mule_charset): Change
180         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
181         the second revised version.
182
183 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
184
185         * mule-charset.c (Vcharset_ucs_smp): New variable.
186         (Vcharset_ucs_sip): New variable.
187         (Qucs_smp): New variable.
188         (Qucs_sip): New variable.
189         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
190         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
191         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
192         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
193         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
194         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
195
196         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
197         (LEADING_BYTE_UCS_SIP): New macro.
198         (MIN_CHAR_SMP): New macro.
199         (MAX_CHAR_SMP): New macro.
200         (MIN_CHAR_SIP): New macro.
201         (MAX_CHAR_SIP): New macro.
202
203 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
204
205         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
206         utf-2000.
207
208 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
209
210         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
211         value; don't store value into `encoding_table' of `Lisp_Charset'.
212         (mark_charset): `encoding_table' was deleted.
213         (charset_description): Likewise.
214         (make_charset): Likewise.
215         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
216         `put_char_ccs_code_point'.
217
218         * chartab.h (Fput_char_attribute): New EXFUN.
219
220         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
221         is unified with normal symbol space.
222         (Fget_char_attribute): Likewise.
223         (Fput_char_attribute): Likewise; behavior of
224         `put_char_ccs_code_point' is changed.
225
226         * char-ucs.h: Include "elhash.h".
227         (Vchar_attribute_hash_table): New external variable.
228         (struct Lisp_Charset): Delete `encoding_table'.
229         (CHARSET_ENCODING_TABLE): New implementation; refer
230         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
231         `Lisp_Charset'.
232
233 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
234
235         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
236         (cs) == 0.
237
238 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
239
240         * text-coding.c (char_encode_big5): Prefer charset-g1 than
241         `chinese-big5'.
242
243 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
244
245         * chartab.c (uint8_byte_table_description): New constant.
246         (uint8-byte-table): Use `uint8_byte_table_description'.
247         (uint16_byte_table_description): New constant.
248         (uint16-byte-table): Use `uint16_byte_table_description'.
249
250 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
251
252         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
253         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
254
255 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
256
257         * mule-charset.c (Vcharset_ucs_ks): New variable.
258         (Qucs_ks): New variable.
259         (syms_of_mule_charset): Add new symbol `ucs-ks'.
260         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
261
262         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
263
264 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
265
266         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
267         (Fdecode_char): Likewise.
268
269         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
270         chartab.h.
271         (Fdefine_char): Modify for Fdecode_char.
272         (Ffind_char): Likewise.
273
274         * mule-charset.c (Fdecode_char): Add new optional argument
275         `defined-only'.
276         (Fdecode_builtin_char): Modify for `Fdecode_char'.
277
278 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
279
280         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
281         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
282         (allocate_coding_system): Initialize initial-charsets of
283         CODESYS_BIG5 in XEmacs UTF-2000.
284         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
285         CODESYS_BIG5 in XEmacs UTF-2000.
286         (decode_coding_big5): Use initial-charset-g0 and -g1 of
287         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
288
289         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
290         variables.
291         (Qideograph_hanziku_{1 .. 12}): Likewise.
292         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
293         .. 12}'.
294         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
295         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
296         `ideograph-hanziku-{1 .. 12}'.
297
298         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
299         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
300         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
301         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
302         (DECODE_DEFINED_CHAR): New inline function.
303         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
304
305 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
306
307         * mule-charset.c (Vcharset_china3_jef): Renamed from
308         `Vcharset_japanese_jef_china3'.
309         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
310         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
311         `{MIN|MAX}_CHAR_JEF_CHINA3'..
312         (syms_of_mule_charset): Rename `china3-jef' from
313         `japanese-jef-china3'.
314         (complex_vars_of_mule_charset): Likewise; rename
315         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
316
317         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
318         `LEADING_BYTE_JEF_CHINA3'.
319         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
320         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
321
322 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
323
324         * mule-charset.c (encode_builtin_char_1): Comment out special code
325         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
326
327         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
328         (MAX_CHAR_MOJIKYO_0): Comment out.
329         (MIN_CHAR_CBETA): Changed to 0x00E20000.
330         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
331         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
332         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
333
334 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
335
336         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
337         (Qideograph_cbeta): New variable.
338         (encode_builtin_char_1): Comment out special code for
339         coded-charset `mojikyo' and `japanese-jef-china3'.
340         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
341         (complex_vars_of_mule_charset): Add new coded-charset
342         `ideograph-cbeta'.
343
344         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
345         (MIN_CHAR_CBETA): New macro.
346         (MAX_CHAR_CBETA): New macro.
347
348 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
349
350         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
351         (LEADING_BYTE_JEF_CHINA3): New macro.
352         (MIN_CHAR_JEF_CHINA3): New macro.
353         (MAX_CHAR_JEF_CHINA3): Likewise.
354         (DECODE_CHAR): Fixed.
355
356 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
357
358         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
359         (Qjapanese_jef_china3): New variable.
360         (encode_builtin_char_1): Support `japanese-jef-china3'.
361         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
362         (complex_vars_of_mule_charset): Add new coded-charset
363         `japanese-jef-china3'.
364
365 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
366
367         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
368         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
369         94^4, 96^3, 96^4, 128^n and 256^n set.
370         (put_char_table): Use `XCHARSET_CELL_RANGE'.
371         (map_char_table): Likewise.
372
373 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
374
375         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
376         UTF-2000.
377
378 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
379
380         * chartab.h (get_char_id_table): New inline function.
381
382         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
383         function.
384
385 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
386
387         * chartab.h (decode_char_table_range): New prototype in XEmacs
388         UTF-2000.
389         (put_char_id_table): New inline function in XEmacs UTF-2000.
390
391         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
392         function.
393         (decode_char_table_range): Delete static declaration in XEmacs
394         UTF-2000.
395
396 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
397
398         * chartab.c (put_char_id_table): Use `put_char_table'.
399
400 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
401
402         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
403         (map_over_uint16_byte_table): Likewise.
404         (map_over_byte_table): Likewise.
405         (map_char_table): Modify for `map_over_uint8_byte_table',
406         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
407         UTF-2000.
408
409 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
410
411         * chartab.c (struct map_char_table_for_charset_arg): New
412         structure.
413         (map_char_table_for_charset_fun): New function.
414         (map_char_table): Use `map_char_table' for encoding_table of
415         `range->charset'.
416
417 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
418
419         * chartab.c (map_char_table): Check a character is found in
420         range->charset instead of non default value is defined in
421         char-table when range is CHARTAB_RANGE_ROW.
422
423 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
424
425         * chartab.c (map_char_id_table): Deleted.
426         (Fmap_char_attribute): Use `map_char_table' instead of
427         `map_char_id_table'.
428
429 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
430
431         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
432         UTF-2000.
433         (update_syntax_table): Deleted in XEmacs UTF-2000.
434
435         * syntax.c (find_defun_start): Use `syntax_table' instead of
436         `mirror_syntax_table' in XEmacs UTF-2000.
437         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
438         UTF-2000.
439         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
440         XEmacs UTF-2000.
441         (Fmatching_paren): Likewise.
442         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
443         in XEmacs UTF-2000.
444         (find_start_of_comment): Likewise.
445         (find_end_of_comment): Likewise.
446         (Fforward_comment): Likewise.
447         (scan_lists): Likewise.
448         (char_quoted): Likewise.
449         (Fbackward_prefix_chars): Likewise.
450         (scan_sexps_forward): Likewise.
451         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
452         (update_syntax_table): Likewise.
453
454         * search.c (skip_chars): Use `syntax_table' instead of
455         `mirror_syntax_table' in XEmacs UTF-2000.
456         (wordify): Likewise.
457         (Freplace_match): Likewise.
458
459         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
460         `mirror_syntax_table' in XEmacs UTF-2000.
461         (WORDCHAR_P_UNSAFE): Likewise.
462         (re_match_2_internal): Likewise.
463
464         * font-lock.c (find_context): Use `buf->syntax_table' instead of
465         `buf->mirror_syntax_table' in XEmacs UTF-2000.
466
467         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
468         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
469
470         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
471         XEmacs UTF-2000.
472
473         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
474         UTF-2000.
475         (print_char_table): Print `default_value' in XEmacs UTF-2000.
476         (char_table_description): Delete `mirror_table' in XEmacs
477         UTF-2000.
478         (fill_char_table): Don't call `update_syntax_table' in XEmacs
479         UTF-2000.
480         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
481         (Fcopy_char_table): Likewise.
482         (put_char_table): Don't call `update_syntax_table' in XEmacs
483         UTF-2000.
484
485         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
486         `buf->mirror_syntax_table' in XEmacs UTF-2000.
487         (casify_region_internal): Likewise.
488
489         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
490
491         * buffer.c (common_init_complex_vars_of_buffer): Don't use
492         `mirror_syntax_table' in XEmacs UTF-2000.
493
494         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
495         `buf->mirror_syntax_table' in XEmacs UTF-2000.
496         (Fexpand_abbrev): Likewise.
497
498 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
499
500         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
501
502 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
503
504         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
505         (map_over_uint16_byte_table): Likewise.
506         (map_over_byte_table): Likewise.
507         (get_char_id_table): Refer `cit->default_value'.
508         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
509         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
510         of character-id ranges.
511         (mark_char_table): Mark `ct->default_value'.
512         (char_table_description): Add `default_value'.
513         (fill_char_table): Use `default_value'.
514         (decode_char_table_range): Decode `nil' as
515         `CHARTAB_RANGE_DEFAULT'.
516         (get_char_id_table): Refer `cit->default_value'.
517         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
518         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
519         temporary hack; check value of char-table is bound or not.
520         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
521
522         * chartab.h (struct Lisp_Char_Table): Add new member
523         `default_value' in XEmacs UTF-2000.
524         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
525         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
526         UTF-2000.
527
528 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
529
530         * chartab.h (Lisp_Char_ID_Table): Deleted.
531
532         * chartab.c (char_table_description): Fix typo.
533         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
534         `Lisp_Char_ID_Table'.
535
536 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
537
538         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
539         `CHAR_ID_TABLE_P'.
540
541         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
542         `CHAR_ID_TABLE_P'.
543
544         * chartab.h (XCHAR_ID_TABLE): Deleted.
545         (XSETCHAR_ID_TABLE): Deleted.
546         (CHAR_ID_TABLE_P): Deleted.
547
548         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
549         `CHAR_ID_TABLE_P'.
550         (Fget_composite_char): Likewise.
551         (put_char_table): Likewise.
552         (add_char_attribute_alist_mapper): Fixed.
553         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
554         `CHAR_ID_TABLE_P'.
555         (Fget_char_attribute): Likewise.
556         (Fget_char_attribute): Likewise.
557         (Fmap_char_attribute): Likewise.
558
559         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
560         `CHAR_ID_TABLE_P'.
561         (encode_char_1): Likewise.
562
563 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
564
565         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
566         `XCHAR_ID_TABLE'.
567
568         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
569         instead of `XCHAR_ID_TABLE'.
570         (remove_char_ccs): Likewise.
571
572         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
573         `XCHAR_ID_TABLE'.
574         (Fget_composite_char): Likewise.
575         (Fchar_variants): Likewise.
576         (put_char_table): Likewise.
577         (add_char_attribute_alist_mapper): Likewise.
578         (Fchar_attribute_alist): Likewise.
579         (Fget_char_attribute): Likewise.
580         (Fput_char_attribute): Likewise.
581         (Fmap_char_attribute): Likewise.
582         (Fmap_char_attribute): Likewise.
583
584         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
585         `XCHAR_ID_TABLE'.
586         (encode_char_1): Likewise.
587
588 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
589
590         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
591         `Lisp_Char_ID_Table'.
592         (mark_char_id_table): Deleted.
593         (print_char_id_table): Likewise.
594         (char_id_table_equal): Likewise.
595         (char_id_table_hash): Likewise.
596         (char_id_table_description): Likewise.
597         (char_id_table): Likewise.
598         (make_char_id_table): Use `Fmake_char_table' and
599         `fill_char_table'.
600         (get_char_id_table): Use `Lisp_Char_Table' instead of
601         `Lisp_Char_ID_Table'.
602         (put_char_id_table): Likewise.
603         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
604         `XCHAR_ID_TABLE'.
605         (Fremove_char_attribute): Likewise.
606         (syms_of_chartab): Don't define type `char-id-table'.
607
608         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
609         (char_id_table): Likewise.
610         (GC_CHAR_ID_TABLE_P): Likewise.
611         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
612         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
613         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
614         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
615         (get_char_id_table): Use `Lisp_Char_Table' instead of
616         `Lisp_Char_ID_Table'.
617         (put_char_id_table_0): Likewise.
618         (put_char_id_table): Likewise.
619
620 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
621
622         * chartab.h: Lisp_Byte_Table related codes are moved from
623         chartab.h.
624
625         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
626
627 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
628
629         * chartab.h: Don't include "chartab.h".
630         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
631         (Lisp_Char_ID_Table): Likewise.
632         (char_id_table): Likewise.
633         (XCHAR_ID_TABLE): Likewise.
634         (XSETCHAR_ID_TABLE): Likewise.
635         (CHAR_ID_TABLE_P): Likewise.
636         (GC_CHAR_ID_TABLE_P): Likewise.
637         (get_char_id_table): Likewise.
638
639         * char-ucs.h: Include "chartab.h".
640         (struct Lisp_Char_ID_Table): Moved to chartab.h.
641         (Lisp_Char_ID_Table): Likewise.
642         (char_id_table): Likewise.
643         (XCHAR_ID_TABLE): Likewise.
644         (XSETCHAR_ID_TABLE): Likewise.
645         (CHAR_ID_TABLE_P): Likewise.
646         (GC_CHAR_ID_TABLE_P): Likewise.
647         (get_char_id_table): Likewise.
648
649 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
650
651         * chartab.c (copy_uint8_byte_table): New function.
652         (copy_uint16_byte_table): New function.
653         (copy_byte_table): New function.
654         (map_over_uint8_byte_table): Modify to avoid huge numbers of
655         characters to call.
656         (map_over_uint16_byte_table): Likewise.
657         (map_over_byte_table): Likewise.
658         (get_byte_table): Move prototype to chartab.h.
659         (put_byte_table): Likewise.
660         (put_char_id_table_0): Moved to chartab.h.
661         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
662         (char_table_entry_equal): Likewise.
663         (char_table_entry_hash): Likewise.
664         (char_table_entry_description): Likewise.
665         (char_table_entry): Likewise.
666         (make_char_table_entry): Likewise.
667         (copy_char_table_entry): Likewise.
668         (get_non_ascii_char_table_value): Likewise.
669         (map_over_charset_ascii): Likewise.
670         (map_over_charset_control_1): Likewise.
671         (map_over_charset_row): Likewise.
672         (map_over_other_charset): Likewise.
673         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
674         (print_char_table): Likewise.
675         (char_table_equal): Likewise.
676         (char_table_hash): Likewise.
677         (char_table_description): Likewise.
678         (fill_char_table): Likewise.
679         (Fcopy_char_table): Likewise.
680         (get_char_table): Likewise.
681         (Fget_range_char_table): Likewise.
682         (put_char_table): Likewise.
683         (map_char_table): Likewise.
684         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
685         UTF-2000.
686
687 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
688
689         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
690         `Vauto_fill_chars' in XEmacs UTF-2000.
691
692         * chartab.h (get_byte_table): New prototype [moved from
693         chartab.c].
694         (put_byte_table): Likewise [moved from chartab.c].
695         (put_char_id_table_0): New inline function [moved from chartab.c].
696         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
697         (Lisp_Char_Table_Entry): Likewise.
698         (char_table_entry): Likewise.
699         (XCHAR_TABLE_ENTRY): Likewise.
700         (XSETCHAR_TABLE_ENTRY): Likewise.
701         (CHAR_TABLE_ENTRYP): Likewise.
702         (CHECK_CHAR_TABLE_ENTRY): Likewise.
703         (NUM_ASCII_CHARS): Likewise.
704         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
705         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
706
707 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
708
709         * chartab.c (get_char_id_table): Change interface.
710         (put_char_id_table_0): New function.
711         (put_char_id_table): Change interface; new implementation.
712         (Fget_composite_char): Modify for interface change of
713         `get_char_id_table'.
714         (Fchar_variants): Likewise.
715         (add_char_attribute_alist_mapper): Likewise.
716         (Fchar_attribute_alist): Likewise.
717         (Fget_char_attribute): Likewise.
718         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
719         as same as character as the first argument like `put-char-table';
720         modify for interface change of `put_char_id_table'.
721         (Fremove_char_attribute): Modify for interface change of
722         `put_char_id_table'.
723
724 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
725
726         * text-coding.c: Sync up with XEmacs 21.2.41.
727         (COMPOSE_ADD_CHAR): Modify for interface change of
728         `get_char_id_table'.
729
730         * mule-charset.c (put_char_ccs_code_point): Modify for interface
731         change of `put_char_id_table'.
732         (remove_char_ccs): Likewise.
733
734         * chartab.h (put_char_id_table): Change interface.
735
736         * char-ucs.h (get_char_id_table): Change interface.
737         (charset_code_point): Modify for interface change of
738         `get_char_id_table'.
739         (encode_char_1): Likewise.
740
741 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
742
743         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
744         argument `ccs'.
745         (map_over_uint16_byte_table): Likewise.
746         (map_over_byte_table): Likewise.
747         (map_char_id_table): Add new argument `range' like
748         `map_char_table'.
749         (Fmap_char_attribute): Add new argument `range' like
750         `Fmap_char_table'.
751
752 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
753
754         * chartab.c (map_over_uint8_byte_table): Change interface of
755         mapping function to use struct chartab_range instead of Emchar.
756         (map_over_uint16_byte_table): Likewise.
757         (map_over_byte_table): Likewise.
758         (map_char_id_table): Likewise.
759         (struct slow_map_char_id_table_arg): Deleted.
760         (slow_map_char_id_table_fun): Deleted.
761         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
762         function `slow_map_char_table_fun' instead of struct
763         `slow_map_char_id_table_arg' and function
764         `slow_map_char_id_table_fun'.
765
766 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
767
768         * mule-charset.c: Move char-it-table related codes to chartab.c.
769         (Vutf_2000_version): Moved to chartab.c.
770         (Fdefine_char): Likewise.
771         (Ffind_char): Likewise.
772         (syms_of_mule_charset): Move types `uint8-byte-table',
773         `uint16-byte-table', `byte-table' and `char-id-table' to
774         chartab.c; move functions `char_attribute_list,
775         `find_char_attribute_table, `char_attribute_alist,
776         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
777         `map_char_attribute, `define_char, `find_char, `char_variants and
778         `get_composite_char to chartab.c; move symbols `=>ucs',
779         `->decomposition', `compat', `isolated', `initial', `medial',
780         `final', `vertical', `noBreak', `fraction', `super', `sub',
781         `circle', `square', `wide', `narrow', `small' and `font' to
782         chartab.c.
783         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
784         setting codes for `Vcharacter_composition_table' and
785         `Vcharacter_variant_table' to chartab.c.
786         (complex_vars_of_mule_charset): Move setting code for
787         `Vchar_attribute_hash_table' to chartab.c.
788
789         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
790         (make_char_id_table): New prototype.
791         (put_char_id_table): Likewise.
792         (Fget_char_attribute): Likewise.
793
794         * chartab.c: Move char-id-table related code from mule-charset.c.
795         (Vutf_2000_version): Moved from mule-charset.c.
796
797         * char-ucs.h (Qucs): New external variable.
798         (put_char_ccs_code_point): New prototype.
799         (remove_char_ccs): Likewise.
800
801 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
802
803         * mule-charset.c (Vcharset_ucs_jis): New variable.
804         (Qucs_jis): Likewise.
805         (syms_of_mule_charset): Add new symbol `ucs-jis'.
806         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
807
808         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
809
810 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
811
812         * mule-charset.c (map_over_uint8_byte_table): New function.
813         (map_over_uint16_byte_table): Likewise.
814         (map_over_byte_table): Likewise.
815         (map_char_id_table): Likewise.
816         (slow_map_char_id_table_fun): Likewise.
817         (Fmap_char_attribute): Likewise.
818         (syms_of_mule_charset): Add new function `map-char-attribute'.
819
820 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
821
822         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
823         (syms_of_mule_charset): Add new function `find-char'.
824
825 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
826
827         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
828         XEmacs UTF-2000.
829         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
830         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
831         XEmacs UTF-2000.
832         (complex_vars_of_mule_charset): Add new coded-charset
833         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
834         `ideograph-gt-pj-*'.
835
836         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
837
838 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
839
840         * mule-charset.c (encode_builtin_char_1): Purge codes about
841         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
842         {MIN|MAX}_CHAR_HEBREW.
843         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
844         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
845
846         * char-ucs.h (MIN_CHAR_GREEK): Purged.
847         (MAX_CHAR_GREEK): Purged.
848         (MIN_CHAR_CYRILLIC): Purged.
849         (MAX_CHAR_CYRILLIC): Purged.
850         (MIN_CHAR_HEBREW): Commented out.
851         (MAX_CHAR_HEBREW): Likewise.
852
853 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
854
855         * mule-charset.c (Qto_ucs): New variable.
856         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
857         (Fdefine_char): Likewise.
858         (syms_of_mule_charset): Add new symbol `=>ucs'.
859
860 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
861
862         * mule-charset.c (Fdecode_char): Fixed.
863
864 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
865
866         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
867         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
868         "tcvn5712-1".
869
870 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
871
872         * mule-charset.c (Vcharset_ucs_big5): New variable.
873         (Qucs_big5): Likewise.
874         (syms_of_mule_charset): Add new symbol `ucs-big5'.
875         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
876
877         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
878
879 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
880
881         * mule-charset.c (decode_builtin_char): Check Big5 code range
882         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
883
884 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
885
886         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
887         (Qchinese_gb12345): Likewise.
888         (Fdecode_builtin_char): Fixed.
889         (syms_of_mule_charset): Add `chinese-gb12345'.
890         (complex_vars_of_mule_charset): Add coded-charset
891         `chinese-gb12345'.
892
893         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
894         (LEADING_BYTE_CHINESE_GB12345): New macro.
895
896 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
897
898         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
899         and `latin-viscii-upper' for `latin-viscii'.
900
901 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
902
903         * mule-charset.c (Fdecode_builtin_char): Comment out
904         regularization code for ISO-IR GR representation.
905
906 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
907
908         * mule-charset.c (decode_builtin_char): New function; renamed from
909         `make_builtin_char'; return -1 instead of signal.
910         (Fdecode_builtin_char): Use `decode_builtin_char'.
911
912         * char-ucs.h (decode_builtin_char): New prototype; renamed from
913         `make_builtin_char'.
914         (DECODE_CHAR): Use `decode_builtin_char' instead of
915         `make_builtin_char'; use mapping table of `chinese-big5' for
916         `chinese-big5-{1,2}'.
917
918 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
919
920         * text-coding.c (char_encode_big5): New function.
921         (char_finish_big5): Likewise.
922         (reset_encoding_stream): Use `char_encode_big5' and
923         `char_finish_big5' for CODESYS_BIG5.
924         (mule_encode): Don't use `encode_coding_big5'.
925         (encode_coding_big5): Deleted.
926
927 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
928
929         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
930         0x81- in XEmacs UTF-2000.
931         (detect_coding_big5): Likewise.
932
933 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
934
935         * mule-charset.c (Fdefine_char): Don't use a CCS property to
936         generate character-id if the CCS property does not have
937         corresponding predefined character.
938         (make_builtin_char): Return -1 if corresponding predefined
939         character is not found.
940         (Fdecode_char): Return nil if corresponding character is not
941         found.
942         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
943         don't map to builtin ucs space.
944
945 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
946
947         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
948         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
949
950 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
951
952         * mule-charset.c (Vcharset_ideograph_gt): New variable.
953         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
954         (Qideograph_gt): Likewise.
955         (Qideograph_gt_pj_{1..11}): Likewise.
956         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
957         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
958         `ideograph-gt-pj-11'.
959         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
960         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
961         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
962
963         * char-ucs.h (LEADING_BYTE_GT): New macro.
964         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
965         (MIN_CHAR_GT): Likewise.
966         (MAX_CHAR_GT): Likewise.
967
968 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
969
970         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
971         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
972
973         * doprnt.c (unsigned_int_converters): Add `c'.
974         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
975
976         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
977         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
978         `MIN_CHAR_MOJIKYO'.
979         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
980         (MAX_CHAR_MOJIKYO_0): New macro.
981         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
982
983 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
984
985         * mule-charset.c (Fdefine_char): Delete cemented out code.
986         (encode_builtin_char_1): Modify for new allocation of builtin
987         Mojikyo characters.
988
989         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
990
991 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
992
993         * mule-charset.c (Vcharset_ucs_cns): New variable.
994         (Qucs_cns): New variable.
995         (syms_of_mule_charset): Add new symbol `ucs-cns'.
996         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
997
998 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
999
1000         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1001
1002 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1003
1004         * search.c (search_buffer): Make `charset_base_code' as
1005         character-id >> 6 to eliminate the corresponding last byte in
1006         UTF-8 representation [I'm not sure it is right thing].
1007         (boyer_moore): Likewise.
1008
1009 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1010
1011         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1012         representation in MULE.
1013
1014 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1015
1016         * text-coding.c (Fmake_coding_system): Use
1017         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1018         `EXTERNAL_PROPERTY_LIST_LOOP'.
1019
1020 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1021
1022         * text-coding.c (decode_output_utf8_partial_char): New function.
1023         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1024
1025 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1026
1027         * text-coding.c (decode_coding_utf8): Output original byte
1028         sequence if it is broken; change order of conditions.
1029
1030         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1031         of conditions.
1032
1033         * mb-multibyte.h (BYTE_ASCII_P):
1034         Use bit ops for char-signedness safety.
1035         (BYTE_C0_P): Use bit ops for char-signedness safety.
1036         (BYTE_C1_P): Use bit ops for char-signedness safety.
1037
1038         * character.h: (XCHAR_OR_CHAR_INT):
1039         Always use inline function.
1040         Remove redundant type checking assert() - XINT will abort quite
1041         nicely.
1042
1043 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1044
1045         * text-coding.c: (Fencode_shift_jis_char):
1046         (Fencode_big5_char):
1047         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1048         Replace 0 with '\0' when working with bytes.
1049         Replace initial "(" with "\(" in docstrings.
1050
1051         (Fmake_coding_system):
1052         When type is ccl and value is vector, register it with a proper
1053         symbol.  And checks whether the given ccl program is valid.
1054         (mule_decode): When calling ccl_driver, if src indicates
1055         NULL pointer, set an empty string instead.
1056         (mule_encode): Likewise.
1057
1058         (detect_eol_type):
1059         (detect_coding_sjis):
1060         (decode_coding_sjis):
1061         (detect_coding_big5):
1062         (decode_coding_big5):
1063         (detect_coding_ucs4):
1064         (decode_coding_ucs4):
1065         (detect_coding_utf8):
1066         (decode_coding_utf8):
1067         (detect_coding_iso2022):
1068         (decode_coding_iso2022):
1069         (decode_coding_no_conversion):
1070         (mule_decode):
1071         Make all detecting and decoding functions take an Extbyte * arg.
1072         (text_encode_generic):
1073         (encode_coding_big5):
1074         (encode_coding_no_conversion):
1075         (mule_encode):
1076         Make all encoding functions take a Bufbyte * arg.
1077         Use size_t instead of unsigned int for memory sizes.
1078         Only cast to unsigned char whenever dereferencing Extbyte *.
1079
1080         (struct lrecord_description fcd_description_1): Use countof.
1081         (complex_vars_of_file_coding):
1082         Use countof instead of sizeof.
1083         Use CHECK_NATNUM instead of CHECK_INT.
1084
1085 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1086
1087         * mule-charset.c (Fget_char_attribute): Add new optional argument
1088         `default-value'.
1089         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1090         (remove_char_ccs): Likewise.
1091
1092 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1093
1094         * text-coding.c (char_encode_shift_jis): New implementation in
1095         UTF-2000.
1096         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1097         ...)'.
1098
1099         * mule-charset.c (Vcharset_chinese_big5): New variable in
1100         UTF-2000.
1101         (Qchinese_big5): New variable in UTF-2000.
1102         (BIG5_SAME_ROW): New macro in UTF-2000.
1103         (make_builtin_char): Use builtin characters of
1104         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1105         characters of `Vcharset_chinese_big5'.
1106         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1107         (complex_vars_of_mule_charset): Add new coded-charset
1108         `chinese-big5' in UTF-2000.
1109
1110         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1111         (Vcharset_chinese_big5): New external variable declaration.
1112         (Vcharset_japanese_jisx0208_1990): Likewise.
1113
1114 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1115
1116         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1117         function.
1118         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1119
1120 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1121
1122         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1123         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1124         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1125         `mojikyo-pj-*'.
1126
1127 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1128
1129         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1130
1131 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1132
1133         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1134         to 0.17.
1135
1136 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1137
1138         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1139         for `CHARSET_BY_ATTRIBUTES'.
1140         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1141         `CHARSET_BY_ATTRIBUTES'.
1142
1143         * text-coding.c (struct decoding_stream): Rename member `CH' to
1144         `CPOS'.
1145         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1146         (decode_coding_sjis): Likewise.
1147         (decode_coding_big5): Likewise.
1148         (decode_coding_ucs4): Likewise.
1149         (decode_coding_utf8): Likewise.
1150         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1151         `CHARSET_BY_ATTRIBUTES'.
1152         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1153         `str->counter'; decode 3, 4 bytes sets.
1154         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1155         sets.
1156         (decode_coding_no_conversion): Use `str->cpos' instead of
1157         `str->ch'.
1158
1159         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1160         (Qmojikyo_2022_1): New variable.
1161         (make_charset): Don't use `CHARSET_TYPE_*'.
1162         (range_charset_code_point): Support coded-charset
1163         `mojikyo-2022-1'.
1164         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1165         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1166         `CHARSET_BY_ATTRIBUTES'.
1167         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1168         `CHARSET_BY_ATTRIBUTES'.
1169         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1170         (complex_vars_of_mule_charset): Add new coded-charset
1171         `mojikyo-2022-1'.
1172
1173         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1174         interface; changed to inline function.
1175
1176         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1177         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1178         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1179         (CHARSET_TYPE_94): Deleted.
1180         (CHARSET_TYPE_94X94): Deleted.
1181         (CHARSET_TYPE_96): Deleted.
1182         (CHARSET_TYPE_96X96): Deleted.
1183         (CHARSET_TYPE_128): Deleted.
1184         (CHARSET_TYPE_128X128): Deleted.
1185         (CHARSET_TYPE_256): Deleted.
1186         (CHARSET_TYPE_256X256): Deleted.
1187         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1188         to inline function.
1189         (DECODE_MOJIKYO_2022): New inline function.
1190         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1191         `Vcharset_mojikyo_2022_1'.
1192
1193 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1194
1195         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1196         instead of `EQ'.
1197         (put_byte_table): Likewise.
1198         (char_id_table_equal): Use `get_byte_table' [new implementation].
1199
1200 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1201
1202         * mule-charset.c: Include <limits.h> in UTF-2000.
1203         (BT_UINT8_MIN): New macro in UTF-2000.
1204         (BT_UINT8_MAX): New macro in UTF-2000.
1205         (BT_UINT8_t): New macro in UTF-2000.
1206         (BT_UINT8_nil): New macro in UTF-2000.
1207         (BT_UINT8_unbound): New macro in UTF-2000.
1208         (INT_UINT8_P): New inline function in UTF-2000.
1209         (UINT8_VALUE_P): New inline function in UTF-2000.
1210         (UINT8_ENCODE): New inline function in UTF-2000.
1211         (UINT8_DECODE): New inline function in UTF-2000.
1212         (mark_uint8_byte_table): New function in UTF-2000.
1213         (print_uint8_byte_table): New function in UTF-2000.
1214         (uint8_byte_table_equal): New function in UTF-2000.
1215         (uint8_byte_table_hash): New function in UTF-2000.
1216         (make_uint8_byte_table): New function in UTF-2000.
1217         (uint8_byte_table_same_value_p): New function in UTF-2000.
1218         (BT_UINT16_MIN): New macro in UTF-2000.
1219         (BT_UINT16_MAX): New macro in UTF-2000.
1220         (BT_UINT16_t): New macro in UTF-2000.
1221         (BT_UINT16_nil): New macro in UTF-2000.
1222         (BT_UINT16_unbound): New macro in UTF-2000.
1223         (INT_UINT16_P): New inline function in UTF-2000.
1224         (UINT16_VALUE_P): New inline function in UTF-2000.
1225         (UINT16_ENCODE): New inline function in UTF-2000.
1226         (UINT16_DECODE): New inline function in UTF-2000.
1227         (UINT8_TO_UINT16): New inline function in UTF-2000.
1228         (mark_uint16_byte_table): New function in UTF-2000.
1229         (print_uint16_byte_table): New function in UTF-2000.
1230         (uint16_byte_table_equal): New function in UTF-2000.
1231         (uint16_byte_table_hash): New function in UTF-2000.
1232         (make_uint16_byte_table): New function in UTF-2000.
1233         (uint16_byte_table_same_value_p): New function in UTF-2000.
1234         (print_byte_table): New function in UTF-2000.
1235         (byte-table): Use `print_byte_table' as printer.
1236         (make_byte_table): Delete second argument `older'.
1237         (byte_table_same_value_p): New function in UTF-2000.
1238         (copy_byte_table): Deleted.
1239         (get_byte_table): New function in UTF-2000.
1240         (put_byte_table): New function in UTF-2000.
1241         (print_char_id_table): New function in UTF-2000.
1242         (char-id-table): Use `print_char_id_table' as printer.
1243         (make_char_id_table): Delete second argument `older'.
1244         (get_char_id_table): Use `get_byte_table [new implementation].
1245         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1246         implementation].
1247         (Ffind_char_attribute_table): New function in UTF-2000.
1248         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1249         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1250         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1251         (syms_of_mule_charset): Add new function
1252         `find-char-attribute-table' in UTF-2000.
1253
1254         * lrecord.h (enum lrecord_type): Add
1255         `lrecord_type_uint16_byte_table' and
1256         `lrecord_type_uint8_byte_table'.
1257
1258         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1259         (Lisp_Uint8_Byte_Table): New type.
1260         (XUINT8_BYTE_TABLE): New macro.
1261         (XSETUINT8_BYTE_TABLE): New macro.
1262         (UINT8_BYTE_TABLE_P): New macro.
1263         (GC_UINT8_BYTE_TABLE_P): New macro.
1264         (struct Lisp_Uint16_Byte_Table): New structure.
1265         (Lisp_Uint16_Byte_Table): New type.
1266         (XUINT16_BYTE_TABLE): New macro.
1267         (XSETUINT16_BYTE_TABLE): New macro.
1268         (UINT16_BYTE_TABLE_P): New macro.
1269         (GC_UINT16_BYTE_TABLE_P): New macro.
1270
1271 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1272
1273         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1274         (Vcharacter_ideographic_strokes_table): Deleted.
1275         (Vcharacter_total_strokes_table): Deleted.
1276         (Vcharacter_morohashi_daikanwa_table): Deleted.
1277         (Vcharacter_decomposition_table): Deleted.
1278         (Qname): Deleted because it is duplicated.
1279         (Qideographic_radical): Deleted.
1280         (Qideographic_strokes): Deleted.
1281         (Qtotal_strokes): Deleted.
1282         (Qmorohashi_daikanwa): Deleted.
1283         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1284         `ideographic-radical', `ideographic-strokes', `total-strokes',
1285         `morohashi-daikanwa' and `->decomposition'.
1286         (Fget_char_attribute): Likewise.
1287         (Fput_char_attribute): Likewise; use `make-vector' instead of
1288         `make_older_vector' for `->decomposition' value.
1289         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1290         `ideograph-daikanwa'.
1291         (syms_of_mule_charset): Delete builtin symbols `name',
1292         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1293         `morohashi-daikanwa'.
1294         (vars_of_mule_charset): Don't setup
1295         `Vcharacter_ideographic_radical_table',
1296         `Vcharacter_ideographic_strokes_table',
1297         `Vcharacter_total_strokes_table',
1298         `Vcharacter_morohashi_daikanwa_table' and
1299         `Vcharacter_decomposition_table'.
1300
1301 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1302
1303         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1304         `make_older_vector', `make_vector_newer_1' and
1305         `make_vector_newer'.
1306
1307         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1308         `make_older_vector' and `make_vector_newer'.
1309
1310         * config.h.in (HAVE_GGC): New macro.
1311
1312 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1313
1314         * mule-charset.c (struct char_attribute_list_closure): New
1315         structure in UTF-2000.
1316         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1317         (Fchar_attribute_list): Likewise.
1318         (Fset_charset_mapping_table): Use `make_vector_newer'.
1319         (Fdecode_builtin_char): New function in UTF-2000.
1320         (syms_of_mule_charset): Add new function `char-attribute-list' and
1321         `decode-builtin-char' in UTF-2000.
1322
1323         * lisp.h (make_vector_newer): New prototype.
1324
1325         * alloc.c (make_vector_newer_1): New function.
1326         (make_vector_newer): New function.
1327
1328 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1329
1330         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1331         50100)'.
1332
1333 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1334
1335         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1336         (Vcharacter_attribute_table): Deleted.
1337         (Vcharacter_name_table): Deleted.
1338         (put_char_attribute): Deleted.
1339         (remove_char_attribute): Deleted.
1340         (struct char_attribute_alist_closure): New structure.
1341         (add_char_attribute_alist_mapper): New function.
1342         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1343         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1344         (Fget_char_attribute): Likewise.
1345         (Fput_char_attribute): Likewise.
1346         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1347         of `remove_char_attribute'.
1348         (Fdefine_char): Return character.
1349         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1350         and `Vcharacter_name_table'.
1351         (complex_vars_of_mule_charset): Likewise
1352         `Vchar_attribute_hash_table'.
1353
1354 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1355
1356         * character.h (CHARC_CHARSET): New macro.
1357         (CHARC_CHARSET_ID): New macro.
1358         (CHARC_CODE_POINT): New macro.
1359         (CHARC_COLUMNS): New macro.
1360         (CHARC_TO_CHAR): New inline function.
1361         (CHARC_EQ): New inline function.
1362         (CHARC_ASCII_EQ): New inline function.
1363         (CHARC_IS_SPACE): New inline function.
1364         (ASCII_TO_CHARC): New inline function.
1365
1366         * char-ucs.h (encode_char_2): Deleted.
1367         (ENCODE_CHAR): Use `encode_char_1' again.
1368         (breakup_char_1): Likewise.
1369         (CHAR_TO_CHARC): New inline function.
1370
1371         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1372
1373 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1374
1375         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1376         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1377         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1378         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1379         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1380         `CHARC_IS_SPACE'.
1381         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1382
1383         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1384         `CHARC_CODE_POINT'.
1385         (x_output_display_block): Use `CHARC_CHARSET' and
1386         `CHARC_ASCII_EQ'.
1387
1388         * redisplay-tty.c (tty_output_display_block): Use
1389         `CHARC_ASCII_EQ'.
1390         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1391
1392         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1393
1394         * insdel.c (find_charsets_in_charc_string): Use
1395         `CHARC_CHARSET_ID'.
1396         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1397         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1398         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1399         (convert_charc_string_into_malloced_string): Likewise.
1400
1401 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1402
1403         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1404         instead of <Emchar_dynarr *> for buf; use
1405         `convert_bufbyte_string_into_charc_dynarr' instead of
1406         `convert_bufbyte_string_into_emchar_dynarr'; use
1407         `find_charsets_in_charc_string' instead of
1408         `find_charsets_in_emchar_string'.
1409
1410         * redisplay.h:
1411         - Include "character.h".
1412         (struct rune): New member `cglyph'; delete member `chr'.
1413
1414         * redisplay.c (redisplay_text_width_charc_string): New function;
1415         delete `redisplay_text_width_emchar_string'.
1416         (rtw_charc_dynarr): New variable; renamed from
1417         `rtw_emchar_dynarr'.
1418         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1419         `rtw_emchar_dynarr'; use
1420         `convert_bufbyte_string_into_charc_dynarr' instead of
1421         `convert_bufbyte_string_into_emchar_dynarr'; use
1422         `redisplay_text_width_charc_string' instead of
1423         `redisplay_text_width_emchar_string'.
1424         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1425         instead of `rtw_emchar_dynarr'; use
1426         `convert_bufbyte_string_into_charc_dynarr' instead of
1427         `convert_bufbyte_string_into_emchar_dynarr'.
1428         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1429         `redisplay_text_width_charc_string' instead of
1430         `redisplay_text_width_emchar_string'.
1431         (create_text_block): Modify for <struct rune> change.
1432         (generate_formatted_string_db): Likewise.
1433         (create_string_text_block): Likewise.
1434         (pixel_to_glyph_translation): Likewise.
1435
1436         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1437         instead of <const Emchar *>.
1438         (x_text_width): Likewise.
1439         (x_output_display_block): Use <Charc_dynarr *> instead
1440         <Emchar_dynarr *>; modify for <structure rune> change.
1441         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1442         *>.
1443
1444         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1445         <const Emchar *>; use `charc_string_displayed_columns' instead of
1446         `emchar_string_displayed_columns'.
1447         (tty_output_display_block): Use <Charc_dynarr *> instead of
1448         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1449         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1450         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1451         `tty_output_emchar_dynarr_dynarr'.
1452         (tty_output_charc_dynarr): New function; delete
1453         `tty_output_charc_dynarr'.
1454
1455         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1456         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1457         <Emchar_dynarr *> for buf; use
1458         `convert_bufbyte_string_into_charc_dynarr' instead of
1459         `convert_bufbyte_string_into_emchar_dynarr'.
1460
1461         * frame.c (title_string_charc_dynarr): New variable; renamed from
1462         `title_string_emchar_dynarr'.
1463         (generate_title_string): Use `title_string_charc_dynarr' instead
1464         of `title_string_emchar_dynarr'; use
1465         `convert_charc_string_into_malloced_string' instead of
1466         `convert_emchar_string_into_malloced_string'.
1467         (init_frame): Use `title_string_charc_dynarr' instead of
1468         `title_string_emchar_dynarr'.
1469
1470         * console.h:
1471         - Include "character.h".
1472         (struct console_methods): Use <const Charc *> instead of <const
1473         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1474         <Emchar_dynarr *> in output_string_method.
1475
1476         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1477         <Emchar_dynarr *>.
1478
1479         * console-stream.c (stream_text_width): Use <const Charc *>
1480         instead of <const Emchar *>.
1481
1482         * character.h (Charc_dynarr): New type.
1483
1484         * char-ucs.h (structure Charc): New structure; define new type
1485         `Charc'.
1486
1487         * char-lb.h (DECODE_CHAR): New inline function.
1488         (encode_char_1): New inline function.
1489         (ENCODE_CHAR): New macro.
1490         (structure Charc): New structure; define new type `Charc'.
1491
1492         * char-1byte.h (Vcharset_control_1): New macro.
1493         (Vcharset_latin_iso8859_1): New macro.
1494         (DECODE_CHAR): New inline function.
1495         (encode_char_1): New inline function.
1496         (ENCODE_CHAR): New macro.
1497         (structure Charc): New structure; define new type `Charc'.
1498
1499         * insdel.c (find_charsets_in_charc_string): New function; delete
1500         `find_charsets_in_emchar_string'.
1501         (charc_string_displayed_columns): New function; delete
1502         `emchar_string_displayed_columns'.
1503         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1504         `convert_bufbyte_string_into_emchar_dynarr'.
1505         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1506         `convert_charc_string_into_bufbyte_dynarr'.
1507         (convert_charc_string_into_malloced_string): New function; delete
1508         `convert_charc_string_into_malloced_string'.
1509
1510         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1511         `find_charsets_in_emchar_string'.
1512         (charc_string_displayed_columns): New prototype; delete
1513         `emchar_string_displayed_columns'.
1514         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1515         `convert_charc_string_into_bufbyte_dynarr'.
1516         (convert_charc_string_into_malloced_string): New prototype; delete
1517         `convert_charc_string_into_malloced_string'.
1518
1519 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1520
1521         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1522
1523 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1524
1525         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1526
1527         * char-ucs.h: Use <short> for <Charset_ID>.
1528
1529         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1530         <Charset_ID>.
1531
1532 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1533
1534         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1535         to 0.16.
1536
1537 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1538
1539         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1540         variable.
1541         (Qmorohashi_daikanwa): New variable.
1542         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1543         for `morohashi-daikanwa' attribute.
1544         (Fget_char_attribute): Likewise.
1545         (Fput_char_attribute): Likewise.
1546         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1547         has the same value of `ideograph-daikanwa'.
1548         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1549         (vars_of_mule_charset): Setup
1550         `Vcharacter_morohashi_daikanwa_table'.
1551
1552 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1553
1554         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1555         attributes.
1556         (add_charset_to_list_mapper): Add `key' instead of
1557         `XCHARSET_NAME (value)' to return aliases.
1558
1559 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1560
1561         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1562         variable.
1563         (Vcharacter_ideographic_strokes_table): New variable.
1564         (Qideographic_radical): New variable.
1565         (Qideographic_strokes): New variable.
1566         (Fchar_attribute_alist): Use
1567         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1568         attribute; use `Vcharacter_ideographic_strokes_table' for
1569         `ideographic-strokes' attribute.
1570         (Fget_char_attribute): Likewise.
1571         (Fput_char_attribute): Likewise.
1572         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1573         `ideographic-strokes'.
1574         (vars_of_mule_charset): Setup
1575         `Vcharacter_ideographic_radical_table' and
1576         `Vcharacter_ideographic_strokes_table'.
1577
1578 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1579
1580         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1581         (Qtotal_strokes): New variable.
1582         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1583         `total-strokes' attribute.
1584         (Fget_char_attribute): Likewise.
1585         (Fput_char_attribute): Likewise.
1586         (syms_of_mule_charset): Add new symbol `total-strokes'.
1587         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1588
1589 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1590
1591         * mule-charset.c (Vcharacter_decomposition_table): New variable.
1592         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1593         are found.
1594         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1595         `->decomposition' attribute.
1596         (Fput_char_attribute): Likewise.
1597         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1598
1599 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1600
1601         * mule-charset.c (decoding_table_check_elements): New function.
1602         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1603
1604 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1605
1606         * mule-charset.c (Fset_charset_mapping_table): Use
1607         `put_char_ccs_code_point'.
1608
1609 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1610
1611         * mule-charset.c (decoding_table_put_char): New inline function.
1612         (put_char_ccs_code_point): Use `decoding_table_put_char'.
1613
1614 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1615
1616         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1617         (XCHARSET_BYTE_SIZE): New macro.
1618         (decoding_table_remove_char): New inline function.
1619         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1620         `decoding_table_remove_char'.
1621         (remove_char_ccs): Use `decoding_table_remove_char'.
1622         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1623
1624 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1625
1626         * mule-charset.c (Vcharacter_name_table): New variable.
1627         (Qname): New variable.
1628         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1629         attribute.
1630         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1631         `Vcharacter_name_table' for `name' attribute.
1632         (Fremove_char_attribute): Use function `remove_char_ccs'.
1633         (put_char_ccs_code_point): New function.
1634         (remove_char_ccs): New function.
1635         (syms_of_mule_charset): Add new symbol `name'.
1636         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1637
1638 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1639
1640         * mule-charset.c (make_byte_table): Add new argument `older'.
1641         (make_char_id_table): Likewise.
1642         (copy_char_id_table): Comment out because it is not used.
1643         (put_char_id_table): Modify for `make_byte_table'.
1644         (Fput_char_attribute): Make encoding_table as older object;
1645         inherit older bit of `Vcharacter_composition_table'.
1646         (mark_charset): Don't mark `cs->encoding_table'.
1647         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
1648         normal object; make `Vcharacter_composition_table' as an older
1649         object; delete staticpro for `Vcharacter_composition_table'; make
1650         `Vcharacter_variant_table' as a normal object.
1651
1652         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
1653         (mark_object): Don't check older object in UTF-2000.
1654
1655         * lrecord.h (struct lrecord_header): Add new member `older' in
1656         UTF-2000.
1657         (set_lheader_implementation): Setup `SLI_header->older' in
1658         UTF-2000.
1659         (set_lheader_older_implementation): New macro in UTF-2000.
1660         (OLDER_RECORD_P): New macro in UTF-2000.
1661         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
1662         (alloc_older_lcrecord): New prototype in UTF-2000.
1663         (alloc_older_lcrecord_type): New macro in UTF-2000.
1664
1665 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1666
1667         * mule-charset.c (byte_table_description): Use
1668         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
1669         (char_id_table_description): Delete bogus `, 1'.
1670         (Fget_char_attribute): Refer encoding_table of each coded-charset
1671         to get value of coded-charset attribute of a character.
1672         (Fput_char_attribute): Use `make_older_vector' instead of
1673         `make_vector'; use encoding_table of each coded-charset to store
1674         value of coded-charset attribute of a character.
1675         (Fremove_char_attribute): Use encoding_table of each coded-charset
1676         to store value of coded-charset attribute of a character.
1677         (mark_charset): Mark `cs->encoding_table'; don't mark
1678         `cs->decoding_table'.
1679         (charset_description): Add description of new member
1680         `encoding_table'.
1681         (make_charset): Initialize `encoding_table'.
1682
1683         * char-ucs.h (struct Lisp_Charset): Add new member
1684         `encoding_table'.
1685         (CHARSET_ENCODING_TABLE): New macro.
1686         (XCHARSET_ENCODING_TABLE): New macro.
1687         (charset_code_point): New implementation.
1688         (encode_char_1): Likewise.
1689
1690         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
1691         (disksave_object_finalization_1): Call finalizers of
1692         `all_older_lcrecords' in UTF-2000.
1693         (make_older_vector): New function in UTF-2000.
1694         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
1695         UTF-2000.
1696
1697         * lisp.h (make_older_vector): New prototype in UTF-2000.
1698
1699 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1700
1701         * lrecord.h (enum lrecord_type): Rename
1702         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
1703
1704         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
1705         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
1706         `get_char_code_table'.
1707
1708         * mule-charset.c (mark_char_id_table): Renamed from
1709         `mark_char_code_table'.
1710         (char_id_table_equal): Renamed from `char_code_table_equal'.
1711         (char_id_table_hash): Renamed from `char_code_table_hash'.
1712         (make_char_id_table): Renamed from `make_char_code_table'.
1713         (copy_char_id_table): Renamed from `copy_char_code_table'.
1714         (get_char_id_table): Renamed from `get_char_code_table'.
1715         (put_char_id_table): Renamed from `put_char_code_table'.
1716         (to_char_id): Renamed from `to_char_code'.
1717
1718         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
1719         `Lisp_Char_Code_Table'.
1720         (char_id_table): Renamed from `char_code_table'.
1721         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
1722         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
1723         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
1724         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
1725         (get_char_id_table): Renamed from `get_char_code_table'.
1726
1727 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1728
1729         * lrecord.h (enum lrecord_type): Rename
1730         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
1731
1732         * mule-charset.c (mark_byte_table): Renamed from
1733         `mark_char_byte_table'.
1734         (byte_table_equal): Renamed from `char_byte_table_equal'.
1735         (byte_table_hash): Renamed from `byte_table_hash'.
1736         (make_byte_table): Renamed from `make_byte_table'.
1737         (copy_byte_table): Renamed from `copy_char_byte_table'.
1738
1739         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
1740         `Lisp_Char_Byte_Table'.
1741         (byte_table): Renamed from `char_byte_table'.
1742         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
1743         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
1744         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
1745         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
1746
1747 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1748
1749         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
1750         (dfc_convert_to_internal_format): Likewise.
1751         
1752         * text-coding.c (Fcoding_system_canonical_name_p): New function.
1753         * text-coding.c (Fcoding_system_alias_p): New function.
1754         * text-coding.c (Fcoding_system_aliasee): New function.
1755         * text-coding.c (append_suffix_to_symbol): New function.
1756         * text-coding.c (dangling_coding_system_alias_p): New function.
1757         * text-coding.c (Ffind_coding_system):
1758         * text-coding.c (Fcopy_coding_system):
1759         * text-coding.c (encode_coding_no_conversion):
1760         * text-coding.c (syms_of_file_coding):
1761         * text-coding.c (vars_of_file_coding):
1762         Rewrite coding system alias code.
1763         Allow nested aliases, like symbolic links.
1764         Allow redefinition of coding system aliases.
1765         Prevent existence of dangling coding system aliases.
1766         Eliminate convert_to_external_format.
1767         Eliminate convert_to_internal_format.
1768         
1769         * text-coding.c: Change enum eol_type to eol_type_t.
1770
1771 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1772
1773         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
1774         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1775
1776         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
1777         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1778
1779 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1780
1781         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
1782         `ideograph-daikanwa'.
1783
1784         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
1785         (Vcharset_ucs_bmp): Likewise.
1786         (Vcharset_mojikyo): Add new extern variable definition.
1787         (Vcharset_latin_iso8859_2): Deleted because it is not used.
1788         (Vcharset_latin_iso8859_3): Likewise.
1789         (Vcharset_latin_iso8859_4): Likewise.
1790         (Vcharset_latin_iso8859_9): Likewise.
1791         (Vcharset_latin_viscii_lower): Likewise.
1792         (Vcharset_latin_viscii_upper): Likewise.
1793         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
1794         `mojikyo' code-point is used to decode.
1795         (encode_char_2): New function [to convert `mojikyo' code-point to
1796         Mojikyo font encoding].
1797         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
1798         (breakup_char_1): Likewise.
1799         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
1800
1801 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1802
1803         * text-coding.c (Fmake_coding_system): Add document about
1804         `disable-composition' property.
1805
1806 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1807
1808         * text-coding.c (Qdisable_composition): New variable; delete
1809         `Qcomposite'.
1810         (Fmake_coding_system): Add new property `disable-composite';
1811         delete property `composite'.
1812         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
1813         instead of `!CODING_SYSTEM_COMPOSITE'.
1814         (syms_of_file_coding): Add new symbol `disable-composition';
1815         delete symbol `composite'.
1816
1817         * file-coding.h (struct Lisp_Coding_System): Add
1818         `disable_composition'; delete `enable_composition'.
1819         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1820         `CODING_SYSTEM_COMPOSITE'.
1821         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1822         `XCODING_SYSTEM_COMPOSITE'.
1823
1824 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1825
1826         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1827         to 0.15.
1828
1829 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1830
1831         * text-coding.c (Qcomposite): New variable.
1832         (Fmake_coding_system): Add new property `composite'.
1833         (struct decoding_stream): Add `combined_char_count',
1834         `combined_chars' and `combining_table' in UTF-2000.
1835         (COMPOSE_FLUSH_CHARS): New macro.
1836         (COMPOSE_ADD_CHAR): New macro.
1837         (reset_decoding_stream): Reset `str->combined_char_count' and
1838         `str->combining_table' in UTF-2000.
1839         (decode_coding_iso2022): Modify for character-decomposition.
1840         (syms_of_file_coding): Add new symbol `composite'.
1841
1842 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1843
1844         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
1845         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
1846         of `Vcharacter_composition_table' if `->decomposition' property
1847         has only 1 element.
1848         (Qlatin_tcvn5712): New variable.
1849         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
1850         (complex_vars_of_mule_charset): Add new coded-charset
1851         `latin-tcvn5712'.
1852
1853         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
1854
1855 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1856
1857         * file-coding.h (struct Lisp_Coding_System): Add
1858         `enable_composition'.
1859         (CODING_SYSTEM_COMPOSITE): New macro.
1860         (XCODING_SYSTEM_COMPOSITE): New macro.
1861
1862 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
1863
1864         * mule-canna.c (c2mu): Fix problem with UTF-2000.
1865
1866 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
1867
1868         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
1869         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
1870
1871 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
1872
1873         * mule-charset.c (Vcharset_mojikyo): New variable.
1874         (Fdefine_char): Don't use coded-charset which does not have
1875         non-builtin character range to allocate character-id.
1876         (Qmojikyo): New variable.
1877         (syms_of_mule_charset): Add new symbol `mojikyo'.
1878         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
1879
1880         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
1881         (LEADING_BYTE_MOJIKYO): New macro.
1882         (MIN_CHAR_MOJIKYO): New macro.
1883         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
1884         (MAX_CHAR_MOJIKYO): New macro.
1885
1886 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
1887
1888         * mule-charset.c (remove_char_attribute): Fixed.
1889
1890 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
1891
1892         * mule-charset.c (remove_char_attribute): New function.
1893         (Fremove_char_attribute): New function.
1894         (encode_builtin_char_1): Comment out builtin-support for
1895         greek-iso8859-7 and cyrillic-iso8859-5.
1896         (Fdecode_char): Check `code' is an integer.
1897         (syms_of_mule_charset): Add `remove-char-attribute'.
1898         (MIN_CHAR_GREEK): Deleted.
1899         (MAX_CHAR_GREEK): Likewise.
1900         (MIN_CHAR_CYRILLIC): Likewise.
1901         (MAX_CHAR_CYRILLIC): Likewise.
1902         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
1903         MAX_CHAR_GREEK for `greek-iso8859-7'.
1904
1905         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
1906         (MAX_CHAR_GREEK): Likewise.
1907         (MIN_CHAR_CYRILLIC): Likewise.
1908         (MAX_CHAR_CYRILLIC): Likewise.
1909
1910 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
1911
1912         * mule-charset.c (Fdefine_char): Fix problem when new code-point
1913         format is used without `ucs' property.
1914         (Fdecode_char): Fix problem with GR representation.
1915         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
1916         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
1917
1918 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
1919
1920         * mule-charset.c (make_builtin_char): New function.
1921         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
1922         (Fset_charset_mapping_table): Modify for new representation of
1923         code-point.
1924         (Fdecode_char): New function.
1925         (syms_of_mule_charset): Add new builtin function `decode-char' in
1926         UTF-2000.
1927
1928         * char-ucs.h (make_builtin_char): New prototype.
1929         (DECODE_CHAR): New inline function.
1930         (MAKE_CHAR): Use `DECODE_CHAR'.
1931
1932 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
1933
1934         * text-coding.c (parse_charset_conversion_specs): Use
1935         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
1936         `XCHARSET_TYPE'.
1937         (iso2022_designate): Likewise.
1938
1939         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
1940         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
1941
1942         * mule-charset.c (Vcharset_ucs): New variable.
1943         (print_charset): Change design; use `CHARSET_CHARS' and
1944         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
1945         (make_charset): Change signature to specify `chars' and
1946         `dimension' instead of `type'.
1947         (range_charset_code_point): Modify for 256^n-set.
1948         (encode_builtin_char_1): Encode as `ucs' in default.
1949         (Fmake_charset): Modify for `make_charset'.
1950         (Fmake_reverse_direction_charset): Likewise.
1951         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
1952         UTF-2000.
1953         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
1954         for `make_charset'.
1955
1956         * char-ucs.h (Vcharset_ucs): New variable.
1957         (LEADING_BYTE_UCS): New macro.
1958         (struct Lisp_Charset): Delete `type'; change type of `dimension'
1959         and `chars' to `unsigned short' from `unsigned int'.
1960         (CHARSET_TYPE): Deleted.
1961         (XCHARSET_TYPE): Deleted.
1962
1963 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
1964
1965         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
1966
1967         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
1968         (ENCODE_CHAR): New macro.
1969
1970 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1971
1972         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1973         to 0.14 (Kawachi-Katakami).
1974
1975 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1976
1977         * text-coding.c (char_encode_shift_jis): Modify for
1978         `charset_code_point'.
1979         (char_encode_iso2022): Likewise.
1980
1981         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
1982         (integer) instead of list of <Lisp_Object>s (integers) as the
1983         format of code-point of a coded-charset.
1984         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1985         (encode_builtin_char_1): New function; delete
1986         `split_builtin_char'.
1987         (charset_code_point): Return <int> instead of <Lisp_Object>.
1988         (Fsplit_char): Don't use `SPLIT_CHAR'.
1989
1990         * char-ucs.h (encode_builtin_char_1): New prototype; delete
1991         prototype for `split_builtin_char'.
1992         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1993         (charset_code_point): Likewise.
1994         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
1995         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
1996
1997 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
1998
1999         * mule-charset.c (complex_vars_of_mule_charset): Don't define
2000         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2001
2002 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2003
2004         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2005
2006         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2007         (MAX_CHAR_OBS_94x94): Deleted.
2008
2009 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2010
2011         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2012
2013         * char-ucs.h (MAX_CHAR_BMP): New macro.
2014
2015 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2016
2017         * text-coding.c: Sync with r21-2-24.
2018
2019 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2020
2021         * file-coding.c: Modify for UTF-2000.
2022
2023 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2024
2025         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2026         to 0.13 (Takaida).
2027
2028 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2029
2030         * mule-charset.c (split_builtin_char): Delete builtin support for
2031         `katakana-jisx0201'.
2032         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2033         BMP area in builtin representation.
2034
2035         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2036         `Vcharset_katakana_jisx0201'.
2037
2038 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2039
2040         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2041         (Qisolated): New variable.
2042         (Qinitial): New variable.
2043         (Qmedial): New variable.
2044         (Qfinal): New variable.
2045         (Qvertical): New variable.
2046         (Qsmall): New variable.
2047         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2048         `Qvertical' and `Qsmall'.
2049         (Qmojikyo_pj_[1 .. 21]): New variable.
2050         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2051         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2052         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2053         .. 21]'.
2054
2055 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2056
2057         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2058         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2059         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2060
2061 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2062
2063         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2064         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2065         BMP.
2066         (Qjapanese_jisx0208_1990): New variable.
2067         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2068         (complex_vars_of_mule_charset): Add new coded-charset
2069         `japanese-jisx0208-1990'.
2070
2071         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2072         (MIN_CHAR_JIS_X0208_1990): New macro.
2073         (MAX_CHAR_JIS_X0208_1990): New macro.
2074
2075 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2076
2077         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2078         coded-charset is not found.
2079
2080 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2081
2082         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2083         (Fdefine_char): Use `Fmake_char'.
2084
2085 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2086
2087         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2088         (Vcharset_hiragana_jisx0208): Deleted.
2089         (Vcharset_katakana_jisx0208): Deleted.
2090         (Qideograph_daikanwa): New variable.
2091         (Qhiragana_jisx0208): Deleted.
2092         (Qkatakana_jisx0208): Deleted.
2093         (split_builtin_char): Split `ideograph-daikanwa'.
2094         (Fsplit_char): New implementation for UTF-2000.
2095         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2096         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2097         (complex_vars_of_mule_charset): Add new coded-charset
2098         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2099         `katakana-jisx0208'.
2100
2101         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2102         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2103         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2104         (MIN_CHAR_DAIKANWA): New macro.
2105         (MAX_CHAR_DAIKANWA): New macro.
2106
2107 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2108
2109         * data.c (Fstring_to_number): Don't recognize floating point if
2110         base is not 10.
2111
2112 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2113
2114         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2115
2116 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2117
2118         * mule-charset.c (Qsquare): New variable.
2119         (to_char_code): Add `Qsquare'.
2120         (syms_of_mule_charset): Add new symbol `square'.
2121
2122 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2123
2124         * mule-charset.c (Qcircle): New variable.
2125         (to_char_code): Add `Qcircle'.
2126         (syms_of_mule_charset): Add new symbol `circle'.
2127
2128 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2129
2130         * mule-charset.c (Qfont): New variable.
2131         (to_char_code): Add `Qfont'.
2132         (syms_of_mule_charset): Add new symbol `font'.
2133
2134 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2135
2136         * mule-charset.c (Qsub): New variable.
2137         (to_char_code): Add `Qsub'.
2138         (syms_of_mule_charset): Add new symbol `sub'.
2139
2140 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2141
2142         * mule-charset.c (Fput_char_attribute): Convert each element of
2143         VALUE to GL position if ATTRIBUTE is a GR-set,
2144
2145 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2146
2147         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2148         coded-charset is a GR-set.
2149
2150 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2151
2152         * mule-charset.c (Fput_char_attribute): Check each element of
2153         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2154
2155 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2156
2157         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2158         UTF-2000.
2159         (Qethiopic_ucs): New variable in UTF-2000.
2160         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2161         (complex_vars_of_mule_charset): Add new coded-charset
2162         `ethiopic-ucs' in UTF-2000.
2163
2164         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2165         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2166         9)'.
2167         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2168         10)'.
2169         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2170
2171 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2172
2173         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2174         `ascii'.
2175
2176 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2177
2178         * mule-charset.c (Vcharacter_variant_table): New variable.
2179         (Q_ucs): New variable.
2180         (Fchar_variants): New function.
2181         (Fput_char_attribute): Register `->ucs' value to
2182         `Vcharacter_variant_table'.
2183         (syms_of_mule_charset): Add new function `char-variants' and new
2184         symbol `->ucs'.
2185         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2186
2187 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2188
2189         * mule-charset.c (get_char_code_table): Allow negative character
2190         code.
2191         (put_char_code_table): Likewise.
2192         (Vcharacter_composition_table): New variable.
2193         (Q_decomposition): New variable.
2194         (Qwide): New variable.
2195         (Qnarrow): New variable.
2196         (Qcompat): New variable.
2197         (QnoBreak): New variable.
2198         (Qsuper): New variable.
2199         (Qfraction): New variable.
2200         (to_char_code): New function.
2201         (Fget_composite_char): New function.
2202         (Fput_char_attribute): Register `->decomposition' value to
2203         `Vcharacter_composition_table'.
2204         (syms_of_mule_charset): Add new function `get-composite-char', new
2205         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2206         `super' and `fraction'.
2207         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2208
2209 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2210
2211         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2212         character; copy the return value.
2213
2214 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2215
2216         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2217
2218         * mule-charset.c (range_charset_code_point): Must use make_int.
2219         (split_builtin_char): New function.
2220
2221 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2222
2223         * mule-charset.c (char_byte_table): Change name from
2224         "char-code-table" to "char-byte-table".
2225         (mark_char_code_table): New function.
2226         (char_code_table_equal): New function.
2227         (char_code_table_hash): New function.
2228         (char_code_table_description): New constant.
2229         (char_code_table): New type.
2230         (make_char_code_table): New function.
2231         (copy_char_code_table): New function.
2232         (get_char_code_table): Modify for `char_code_table' type.
2233         (put_char_code_table): Likewise.
2234         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2235         (Kashiwara).
2236
2237         * char-ucs.h (char_code_table): New type.
2238         (XCHAR_CODE_TABLE): New macro.
2239         (XSETCHAR_CODE_TABLE): New macro.
2240         (CHAR_CODE_TABLE_P): New macro.
2241         (GC_CHAR_CODE_TABLE_P): New macro.
2242         (struct Lisp_Char_Code_Table): New structure.
2243
2244 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2245
2246         * mule-charset.c (Fmake_charset): Setup byte_offset for
2247         {94|96}^n-set.
2248
2249 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2250
2251         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2252         character.
2253
2254 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2255
2256         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2257         is found.
2258
2259 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2260
2261         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2262         charset, it is regarded as a charset.
2263         (put_char_attribute): New function in UTF-2000.
2264         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2265         charset, mapping-table of the charset is modified.
2266         (Fdefine_char): New function in UTF-2000.
2267         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2268         `Fput_char_attribute'.
2269         (syms_of_mule_charset): Add new function `define-char' and new
2270         symbol `ucs' in UTF-2000.
2271         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2272
2273 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2274
2275         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2276         non-UTF-2000 configuration.
2277
2278 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2279
2280         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2281         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2282
2283         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2284         deleted.
2285         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2286         (Fset_charset_mapping_table): Likewise.
2287
2288         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2289         (CHARSET_ENCODING_TABLE): Delete.
2290         (XCHARSET_ENCODING_TABLE): Delete.
2291         (charset_code_point): New interface.
2292
2293 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2294
2295         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2296         instead of `charset_get_byte1' and `charset_get_byte2'.
2297
2298         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2299         (charset_get_byte2): Deleted.
2300
2301 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2302
2303         * char-ucs.h (SPLIT_CHAR): New inline function.
2304         (breakup_char_1): Use `SPLIT_CHAR'.
2305
2306         * mule-charset.c (range_charset_code_point): New function.
2307         (charset_code_point): New function.
2308
2309         * char-ucs.h (range_charset_code_point): New interface.
2310         (breakup_char_1): Use `range_charset_code_point'.
2311
2312 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2313
2314         * mule-charset.c (Fmake_charset): Delete unused local variable
2315         `code_offset'.
2316
2317         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2318         (breakup_char_1): Find a charset and code-point in
2319         `Vcharacter_attribute_table'.
2320
2321 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2322
2323         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2324         to 0.10 (Yao).
2325
2326 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2327
2328         * mule-charset.c (Vcharacter_attribute_table): New variable.
2329         (Fchar_attribute_alist): New function.
2330         (Fget_char_attribute): New function.
2331         (Fput_char_attribute): New function.
2332         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2333         too.
2334         (syms_of_mule_charset): Add new function `char-attribute-alist',
2335         `get-char-attribute' and `put-char-attribute'.
2336         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2337
2338 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2339
2340         * mule-charset.c (Fmake_charset): Just use
2341         `get_unallocated_leading_byte'.
2342
2343         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2344         sets; don't use final-byte based number for private sets.
2345
2346 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2347
2348         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2349         integer.
2350
2351 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2352
2353         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2354         to 0.9.
2355
2356 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2357
2358         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2359         of `CHAR_LEADING_BYTE' in UTF-2000.
2360
2361         * insdel.c (find_charsets_in_bufbyte_string): Use
2362         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2363         (find_charsets_in_emchar_string): Likewise.
2364
2365         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2366         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2367
2368         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2369         (CHAR_CHARSET_ID): New macro.
2370
2371 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2372
2373         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2374         charset-id - MIN_LEADING_BYTE.
2375         (put_char_table): Likewise.
2376
2377 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2378
2379         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2380         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2381         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2382         (CHARSET_ID_OFFSET): New macro.
2383         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2384         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2385         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2386         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2387         4).
2388         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2389         5).
2390         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2391         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2392         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2393         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2394         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2395
2396 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2397
2398         * mule-charset.c (next_allocated_leading_byte): New variable in
2399         UTF-2000.
2400         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2401         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2402         (get_unallocated_leading_byte): Simply use
2403         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2404         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2405         UTF-2000.
2406
2407         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2408         (MAX_LEADING_BYTE_PRIVATE): New macro.
2409         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2410         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2411
2412 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2413
2414         * mule-charset.c (Fmake_charset): Allocate final-byte based
2415         charset-id for 94-set, 96-set and 94x94-set.
2416
2417 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2418
2419         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2420         ambiguous `else'.
2421         (Fmake_charset): Likewise.
2422         (complex_vars_of_mule_charset): Modify the font registry of
2423         `ucs-bmp' not to match `Ethiopic-Unicode'.
2424
2425 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2426
2427         * mule-charset.c (complex_vars_of_mule_charset): Add font
2428         registory of `ucs-bmp'.
2429
2430 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2431
2432         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2433         coded-charsets in `default-coded-charset-priority-list' when
2434         breaking up a character.
2435
2436         * mule-charset.c (Vcharset_latin_viscii): New variable.
2437         (Qlatin_viscii): New variable.
2438         (make_charset): Don't use `decoding_table'.
2439         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2440         byte_offset.
2441         (Fset_charset_mapping_table): New implementation.
2442         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2443         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2444         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2445         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2446         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2447         charset `latin_viscii'.
2448
2449         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2450         (CHARSET_TYPE_94X94): Change to 1 from 2.
2451         (CHARSET_TYPE_96): Change to 2 from 1.
2452         (CHARSET_TYPE_128): New macro.
2453         (CHARSET_TYPE_128X128): Change to 5 from 4.
2454         (CHARSET_TYPE_256): New macro.
2455         (CHARSET_TYPE_256X256): Change to 7 from 5.
2456         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2457
2458 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2459
2460         * text-coding.c (char_encode_shift_jis): Refer
2461         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2462         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2463
2464         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2465         (char_byte_table_equal): New function in UTF-2000.
2466         (char_byte_table_hash): New function in UTF-2000.
2467         (char_byte_table_description): New constant in UTF-2000.
2468         (char_byte_table): New type in UTF-2000.
2469         (make_char_byte_table): New function in UTF-2000.
2470         (copy_char_byte_table): New function in UTF-2000.
2471         (make_char_code_table): New macro in UTF-2000.
2472         (get_char_code_table): New function in UTF-2000.
2473         (put_char_code_table): New function in UTF-2000.
2474         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2475         (charset_description): Add setting in UTF-2000.
2476         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2477         `CHARSET_TO_BYTE1_TABLE(cs)'.
2478         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2479         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2480         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2481         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2482         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2483         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2484         `CHARSET_TO_BYTE2_TABLE(cs)'.
2485
2486         * char-ucs.h (char_byte_table): New type.
2487         (XCHAR_BYTE_TABLE): New macro.
2488         (XSETCHAR_BYTE_TABLE): New macro.
2489         (CHAR_BYTE_TABLE_P): New macro.
2490         (GC_CHAR_BYTE_TABLE_P): New macro.
2491         (struct Lisp_Char_Byte_Table): New structure.
2492         (get_char_code_table): New interface.
2493         (Emchar_to_byte_table): Deleted.
2494         (get_byte_from_character_table): Deleted.
2495         (struct Lisp_Charset): Add `encoding_table'; delete
2496         `to_byte1_table' and `to_byte2_table'.
2497         (CHARSET_ENCODING_TABLE): New macro.
2498         (CHARSET_TO_BYTE1_TABLE): Deleted.
2499         (CHARSET_TO_BYTE2_TABLE): Deleted.
2500         (XCHARSET_ENCODING_TABLE): New macro.
2501         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2502         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2503
2504 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2505
2506         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2507         `vietnamese-viscii-*'.
2508
2509 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2510
2511         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2512         (Qvietnamese_viscii_upper): New variable.
2513         (Fdefine_charset_alias): New function.
2514         (syms_of_mule_charset): Add new function `define-charset-alias'.
2515         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2516         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2517         `latin-viscii-*'.
2518
2519 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2520
2521         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2522         (MAX_CHAR_OBS_94x94): New macro.
2523         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2524         for 94x94 sets.
2525
2526         * mule-charset.c (put_byte_from_character_table): Change unit size
2527         from 128 to 256.
2528         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2529         not defined.
2530         (Fmake_reverse_direction_charset): Modify dummy argument of
2531         `make_charset' for non-UTF-2000 environment.
2532
2533 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2534
2535         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2536
2537         * mule-charset.c (destroy_byte_from_character_table): New macro.
2538         (latin_jisx0201_to_ucs): Deleted.
2539         (latin_iso8859_2_to_ucs): Deleted.
2540         (latin_iso8859_3_to_ucs): Deleted.
2541         (latin_iso8859_4_to_ucs): Deleted.
2542         (latin_iso8859_9_to_ucs): Deleted.
2543         (latin_viscii_lower_to_ucs): Deleted.
2544         (latin_viscii_upper_to_ucs): Deleted.
2545         (mark_charset): Mark `cs->decoding_table'.
2546         (Fcharset_mapping_table): Fix DOC-string.
2547         (Fset_charset_mapping_table): New function.
2548         (syms_of_mule_charset): Add nwe function
2549         `set-charset-mapping-table'.
2550         (complex_vars_of_mule_charset): Don't setup and use
2551         `latin_*_to_ucs'.
2552
2553 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2554
2555         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2556         charset.
2557
2558 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2559
2560         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2561         (Vcharset_katakana_jisx0208): New variable.
2562         (Qhiragana_jisx0208): New variable.
2563         (Qkatakana_jisx0208): New variable.
2564         (make_charset): Add new argument `byte_offset'.
2565         (charset_get_byte1): Modify for new coded-charset definition; use
2566         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2567         `XCHARSET_BYTE_OFFSET'.
2568         (Fmake_charset): Modify for `make_charset'.
2569         (Fmake_reverse_direction_charset): Likewise.
2570         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2571         `katakana-jisx0208'.
2572         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2573         `.'  in font registry of charset `katakana-jisx0201',
2574         `latin-jisx0201', `vietnamese-viscii-lower' and
2575         `vietnamese-viscii-upper'; modify DOC-string of charset
2576         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2577         registry of charset `japanese-jisx0208' not to use font for JIS
2578         X0208:1990; add new charset `hiragana-jisx0208' and
2579         `katakana-jisx0208'.
2580
2581         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2582         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2583         (struct Lisp_Charset): Add `byte_offset'.
2584         (CHARSET_BYTE_OFFSET): New macro.
2585         (XCHARSET_UCS_MIN): New macro.
2586         (XCHARSET_UCS_MAX): New macro.
2587         (XCHARSET_CODE_OFFSET): New macro.
2588         (XCHARSET_BYTE_OFFSET): New macro.
2589         (MIN_CHAR_HIRAGANA): New macro.
2590         (MAX_CHAR_HIRAGANA): New macro.
2591         (MIN_CHAR_KATAKANA): New macro.
2592         (MAX_CHAR_KATAKANA): New macro.
2593         (MAKE_CHAR): Modify for new coded-charset definition; use
2594         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2595         `XCHARSET_BYTE_OFFSET'.
2596
2597 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2598
2599         * mule-charset.c (CHAR96): Deleted.
2600         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2601         <Lisp_Object>.
2602         (latin_iso8859_2_to_ucs): Likewise.
2603         (latin_iso8859_3_to_ucs): Likewise.
2604         (latin_iso8859_4_to_ucs): Likewise.
2605         (latin_iso8859_9_to_ucs): Likewise.
2606         (latin_viscii_lower_to_ucs): Likewise.
2607         (latin_viscii_upper_to_ucs): Likewise.
2608         (latin_tcvn5712_to_ucs): Commented out.
2609         (make_charset): Change type of argument `decoding_table' from
2610         <Emchar*> to <Lisp_Object> [vector of characters].
2611         (Fmake_charset): Modify for `make_charset'.
2612         (Fmake_reverse_direction_charset): Likewise.
2613         (Fcharset_mapping_table): New function in UTF-2000.
2614         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2615         UTF-2000.
2616         (complex_vars_of_mule_charset): Modify for type change of
2617         `*_to_ucs'; modify for `make_charset'.
2618
2619         * char-ucs.h (struct Lisp_Charset): Change type of
2620         `decoding_table' from <Emchar*> to <Lisp_Object>.
2621         (MAKE_CHAR): Modify for new specification of `decoding_table'.
2622
2623 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2624
2625         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2626         error with non-UTF-2000-Mule.
2627
2628 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
2629
2630         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2631         in lisp again].
2632         (Vcharset_chinese_cns11643_4): Likewise.
2633         (Vcharset_chinese_cns11643_5): Likewise.
2634         (Vcharset_chinese_cns11643_6): Likewise.
2635         (Vcharset_chinese_cns11643_7): Likewise.
2636         (Qchinese_cns11643_3): Likewise.
2637         (Qchinese_cns11643_4): Likewise.
2638         (Qchinese_cns11643_5): Likewise.
2639         (Qchinese_cns11643_6): Likewise.
2640         (Qchinese_cns11643_7): Likewise.
2641         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2642         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2643         and `chinese-cns11643-7' to lisp/mule/chinese.el.
2644         (complex_vars_of_mule_charset): Likewise.
2645
2646 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2647
2648         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
2649         96-set.
2650         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
2651         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
2652
2653 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
2654
2655         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
2656         0xFF60.
2657         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
2658         (breakup_char_1): Likewise.
2659
2660         * text-coding.c (char_encode_iso2022): Keep designated charsets if
2661         one of them includes the specified character.
2662
2663 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2664
2665         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
2666
2667 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2668
2669         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
2670
2671 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2672
2673         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
2674         definition for non-UTF-2000 Mule.
2675         (latin_iso8859_3_to_ucs): Likewise.
2676         (latin_iso8859_4_to_ucs): Likewise.
2677         (latin_iso8859_9_to_ucs): Likewise.
2678         (latin_jisx0201_to_ucs): Likewise.
2679         (MIN_CHAR_THAI): Likewise.
2680         (MAX_CHAR_THAI): Likewise.
2681         (MIN_CHAR_GREEK): Likewise.
2682         (MAX_CHAR_GREEK): Likewise.
2683         (MIN_CHAR_HEBREW): Likewise.
2684         (MAX_CHAR_HEBREW): Likewise.
2685         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
2686         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
2687         (MIN_CHAR_CYRILLIC): Likewise.
2688         (MAX_CHAR_CYRILLIC): Likewise.
2689
2690 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2691
2692         * char-ucs.h (breakup_char_1): Use
2693         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
2694         thai-tis620 and katakana-jisx0201 area.
2695
2696 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2697
2698         * char-ucs.h (breakup_char_1): Use
2699         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
2700         area.
2701
2702         * text-coding.c (reset_encoding_stream): Fixed.
2703         (char_encode_ucs4): Delete `& 255'.
2704
2705         * char-ucs.h (breakup_char_1): Use
2706         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
2707
2708 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2709
2710         * file-coding.c (Fmake_coding_system): Don't set up
2711         `codesys->fixed.size'.
2712         (encode_coding_no_conversion): Don't refer
2713         `str->codesys->fixed.size'.
2714
2715 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2716
2717         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
2718         (latin_a_char_to_byte1): Deleted.
2719         (latin_a_char_to_byte2): Deleted.
2720
2721 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2722
2723         * mule-charset.c (make_charset): Add new argument `ucs_min',
2724         `ucs_max' and `code_offset'.
2725         (charset_get_byte1): New implementation [delete specific charset
2726         depended implementations].
2727         (Fmake_charset): Modify for `make_charset'.
2728         (Fmake_reverse_direction_charset): Likewise.
2729         (complex_vars_of_mule_charset): Likewise.
2730
2731         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
2732         `code_offset'.
2733         (CHARSET_UCS_MIN): New macro.
2734         (CHARSET_UCS_MAX): New macro.
2735         (CHARSET_CODE_OFFSET): New macro.
2736         (MAKE_CHAR): Delete charset depended definitions [except
2737         katakana-jisx0201].
2738
2739 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2740
2741         * char-ucs.h (breakup_char_1): Use
2742         `Vdefault_coded_charset_priority_list' for C0-Controls,
2743         Basic-Latin, C1-Controls and Latin-1-Supplement area.
2744
2745 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2746
2747         * char-ucs.h (charset_get_byte1): New function.
2748         (XCHARSET_GET_BYTE1): Deleted.
2749         (charset_get_byte2): New function.
2750         (XCHARSET_GET_BYTE2): Deleted.
2751         (Vdefault_coded_charset_priority_list): New external variable.
2752         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
2753         `Vdefault_preferred_coded_charset_list'.
2754
2755         * mule-charset.c (charset_get_byte1): New function.
2756         (charset_get_byte2): New function.
2757         (Vdefault_coded_charset_priority_list): New variable.
2758         (vars_of_mule_charset): Add new variable
2759         `default-coded-charset-priority-list'.
2760
2761 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2762
2763         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
2764         (XCHARSET_GET_BYTE2): New inline function.
2765         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
2766         `XCHARSET_GET_BYTE2'.
2767
2768 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2769
2770         * mule-charset.c (make_charset): Initialize
2771         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
2772         NULL if table is not defined.
2773
2774 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2775
2776         * text-coding.c (char_encode_shift_jis): Use
2777         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
2778         `ucs_to_latin_jisx0201'.
2779
2780         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
2781         (ucs_to_latin_iso8859_2): Deleted.
2782         (ucs_to_latin_iso8859_3): Deleted.
2783         (ucs_to_latin_iso8859_4): Deleted.
2784         (ucs_to_latin_iso8859_9): Deleted.
2785         (ucs_to_latin_viscii_lower): Deleted.
2786         (ucs_to_latin_viscii_upper): Deleted.
2787         (ucs_to_latin_tcvn5712): Deleted.
2788         (make_charset): Add new argument `decoding_table'; set up
2789         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
2790         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
2791         `decoding_table' is defined in UTF-2000.
2792         (Fmake_charset): Modify for `make_charset'.
2793         (Fmake_reverse_direction_charset): Likewise.
2794         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
2795         and `GENERATE_96_SET'.
2796
2797         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
2798         (ucs_to_latin_jisx0201): Deleted.
2799         (latin_iso8859_2_to_ucs): Deleted.
2800         (ucs_to_latin_iso8859_2): Deleted.
2801         (latin_iso8859_3_to_ucs): Deleted.
2802         (ucs_to_latin_iso8859_3): Deleted.
2803         (latin_iso8859_4_to_ucs): Deleted.
2804         (ucs_to_latin_iso8859_4): Deleted.
2805         (latin_iso8859_9_to_ucs): Deleted.
2806         (ucs_to_latin_iso8859_9): Deleted.
2807         (latin_viscii_lower_to_ucs): Deleted.
2808         (ucs_to_latin_viscii_lower): Deleted.
2809         (latin_viscii_upper_to_ucs): Deleted.
2810         (ucs_to_latin_viscii_upper): Deleted.
2811         (struct Lisp_Charset): Renamed `encoding_table' to
2812         `to_byte1_table'; add `to_byte2_table'.
2813         (CHARSET_DECODING_TABLE): New macro.
2814         (CHARSET_TO_BYTE1_TABLE): New macro.
2815         (CHARSET_TO_BYTE2_TABLE): New macro.
2816         (XCHARSET_DECODING_TABLE): New macro.
2817         (XCHARSET_TO_BYTE1_TABLE): New macro.
2818         (XCHARSET_TO_BYTE2_TABLE): New macro.
2819         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
2820         tables.
2821         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
2822         don't use `ucs_to_*' tables.
2823
2824 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2825
2826         * text-coding.c (Fmake_coding_system): Don't set up
2827         `codesys->fixed.size'.
2828         (encode_coding_no_conversion): Use `if' instead of `switch'.
2829
2830         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
2831
2832 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2833
2834         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
2835         (Fmake_charset): Modify for `make_charset'.
2836         (Fmake_reverse_direction_charset): Likewise.
2837         (complex_vars_of_mule_charset): Likewise.
2838
2839 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2840
2841         * text-coding.c (char_encode_shift_jis): Use table
2842         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
2843
2844 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2845
2846         * text-coding.c (text_encode_generic): Use `if' instead of
2847         `switch'.
2848         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
2849         decode JIS-Latin.
2850
2851 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2852
2853         * text-coding.c (encode_coding_sjis): Deleted.
2854         (char_encode_shift_jis): New function.
2855         (char_finish_shift_jis): New function.
2856         (reset_encoding_stream): Set up `encode_char' and `finish' for
2857         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
2858         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
2859         (char_encode_utf8): Treat `eol_type'.
2860
2861 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2862
2863         * file-coding.c (decode_coding_iso2022): Use
2864         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
2865
2866 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2867
2868         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2869         to 0.7 (Hirano).
2870
2871 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2872
2873         * char-lb.h (CHAR_COLUMNS): New macro.
2874
2875 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2876
2877         * text-coding.c (char_encode_ucs4): New function.
2878         (char_finish_ucs4): New function.
2879         (encode_coding_ucs4): Deleted.
2880         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
2881         (text_encode_generic): Delete local variable `charset' and `half'.
2882         (ucs_to_mule_table): Deleted.
2883         (mule_to_ucs_table): Deleted.
2884         (Fset_ucs_char): Deleted.
2885         (ucs_to_char): Deleted.
2886         (Fucs_char): Deleted.
2887         (Fset_char_ucs): Deleted.
2888         (Fchar_ucs): Deleted.
2889         (decode_ucs4): Deleted.
2890         (mule_char_to_ucs4): Deleted.
2891         (encode_ucs4): Deleted.
2892         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
2893         (decode_coding_utf8): Likewise.
2894         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
2895         (char_encode_iso2022): Fixed.
2896         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
2897         `Fset_char_ucs' and `Fchar_ucs'.
2898         (complex_vars_of_file_coding): Don't initialize
2899         `ucs_to_mule_table'.
2900
2901         * objects-tty.c (tty_initialize_font_instance): Don't use
2902         `XCHARSET_COLUMNS'.
2903
2904         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
2905         UTF-2000.
2906
2907         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
2908         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2909
2910         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
2911         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2912         (emchar_string_displayed_columns): Likewise.
2913
2914         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
2915         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2916         (string_column_at_point): Likewise.
2917         (Fmove_to_column): Likewise.
2918
2919         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
2920         `encoding_table' and `decoding_table'.
2921         (CHARSET_REP_BYTES): Deleted.
2922         (XCHARSET_REP_BYTES): Deleted.
2923         (XCHARSET_COLUMNS): Deleted.
2924         (CHAR_COLUMNS): New macro.
2925         (lookup_composite_char): Deleted unconditionally.
2926         (composite_char_string): Likewise.
2927
2928 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2929
2930         * char-ucs.h (Emchar_to_byte_table): New type.
2931         (get_byte_from_character_table): New function interface.
2932         (Vcharset_latin_jisx0201): New variable.
2933         (latin_jisx0201_to_ucs): New variable.
2934         (ucs_to_latin_jisx0201): New variable.
2935         (Vcharset_latin_iso8859_2): New variable.
2936         (latin_iso8859_2_to_ucs): New variable.
2937         (ucs_to_latin_iso8859_2): New variable.
2938         (Vcharset_latin_iso8859_3): New variable.
2939         (latin_iso8859_3_to_ucs): New variable.
2940         (ucs_to_latin_iso8859_3): New variable.
2941         (Vcharset_latin_iso8859_4): New variable.
2942         (latin_iso8859_4_to_ucs): New variable.
2943         (ucs_to_latin_iso8859_4): New variable.
2944         (Vcharset_latin_iso8859_9): New variable.
2945         (latin_iso8859_9_to_ucs): New variable.
2946         (ucs_to_latin_iso8859_9): New variable.
2947         (Vcharset_latin_viscii_lower): New variable.
2948         (latin_viscii_lower_to_ucs): New variable.
2949         (ucs_to_latin_viscii_lower): New variable.
2950         (Vcharset_latin_viscii_upper): New variable.
2951         (latin_viscii_upper_to_ucs): New variable.
2952         (ucs_to_latin_viscii_upper): New variable.
2953         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
2954         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
2955         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
2956         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
2957         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
2958         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
2959         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
2960         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
2961         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
2962         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
2963
2964         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
2965         (Vcharset_latin_viscii_upper): New variable.
2966         (make_byte_from_character_table): New function.
2967         (put_byte_from_character_table): New function.
2968         (get_byte_from_character_table): New function.
2969         (CHAR96): New macro.
2970         (ucs_to_latin_jisx0201): New variable.
2971         (latin_jisx0201_to_ucs): New variable.
2972         (ucs_to_latin_iso8859_2): New variable.
2973         (latin_iso8859_2_to_ucs): New variable.
2974         (ucs_to_latin_iso8859_3): New variable.
2975         (latin_iso8859_3_to_ucs): New variable.
2976         (ucs_to_latin_iso8859_4): New variable.
2977         (latin_iso8859_4_to_ucs): New variable.
2978         (ucs_to_latin_iso8859_9): New variable.
2979         (latin_iso8859_9_to_ucs): New variable.
2980         (ucs_to_latin_viscii_lower): New variable.
2981         (latin_viscii_lower_to_ucs): New variable.
2982         (ucs_to_latin_viscii_upper): New variable.
2983         (latin_viscii_upper_to_ucs): New variable.
2984         (ucs_to_latin_tcvn5712): New variable.
2985         (latin_tcvn5712_to_ucs): New variable.
2986         (Qlatin_viscii_lower): New variable.
2987         (Qlatin_viscii_upper): New variable.
2988         (syms_of_mule_charset): Set up new symbol
2989         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
2990         (complex_vars_of_mule_charset): Set up new charset
2991         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
2992         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
2993         `ucs_to_<CHARSET>' tables.
2994
2995 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2996
2997         * text-coding.c: New file.
2998
2999 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
3000
3001         * mule-charset.c (Fmake_char): Fix problem of 256-set.
3002
3003         * char-ucs.h (Vcharset_ucs_bmp): New variable.
3004         (MAKE_CHAR): Modify for `ucs-bmp'.
3005         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3006         non-MULE characters of BMP.
3007
3008 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3009
3010         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3011         to 0.6.
3012
3013 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3014
3015         * lstream.h:
3016         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3017         - Include character.h for `CHAR_ASCII_P'.
3018
3019         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3020
3021         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3022         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3023
3024         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3025         (BYTE_C0_P): Likewise.
3026         (BYTE_C1_P): Likewise.
3027         (Lstream_get_emchar_1): Likewise.
3028         (Lstream_fput_emchar): Likewise.
3029         (Lstream_funget_emchar): Likewise.
3030         (copy_internal_to_external): Likewise.
3031         (copy_external_to_internal): Likewise.
3032
3033         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3034         (BYTE_C0_P): Likewise.
3035         (BYTE_C1_P): Likewise.
3036         (Lstream_get_emchar_1): Likewise.
3037         (Lstream_fput_emchar): Likewise.
3038         (Lstream_funget_emchar): Likewise.
3039         (copy_internal_to_external): Likewise.
3040         (copy_external_to_internal): Likewise.
3041
3042         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3043         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3044
3045         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3046         (BYTE_ASCII_P): Moved to mb-1byte.h.
3047
3048 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3049
3050         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3051
3052         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3053         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3054         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3055         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3056         (VALIDATE_CHARPTR_FORWARD): Likewise.
3057         (simple_charptr_emchar): Moved to mb-multibyte.h.
3058         (simple_set_charptr_emchar): Likewise.
3059         (simple_charptr_copy_char): Likewise.
3060         (non_ascii_charptr_emchar): Likewise.
3061         (non_ascii_set_charptr_emchar): Likewise.
3062         (non_ascii_charptr_copy_char): Likewise.
3063         (charptr_emchar): Moved to mb-*byte.h.
3064         (set_charptr_emchar): Likewise.
3065         (charptr_copy_char): Likewise.
3066
3067         * mb-1byte.h, mb-multibyte.h: New files.
3068
3069 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3070
3071         * mb-utf-8.h (MULTIBYTE): New macro.
3072         (MAX_EMCHAR_LEN): Moved from buffer.h.
3073         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3074
3075         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3076
3077         * mb-lb.h, multibyte.h: New files.
3078
3079         * char-1byte.h (Charset_ID): Moved from buffer.h.
3080         (MIN_LEADING_BYTE): Likewise.
3081         (LEADING_BYTE_ASCII): Likewise.
3082         (NUM_LEADING_BYTES): Likewise.
3083         (CHARSETP): Likewise.
3084         (CHARSET_BY_LEADING_BYTE): Likewise.
3085         (XCHARSET_LEADING_BYTE): Likewise.
3086         (XCHARSET_GRAPHIC): Likewise.
3087         (XCHARSET_COLUMNS): Likewise.
3088         (XCHARSET_DIMENSION): Likewise.
3089         (CHAR_CHARSET): Likewise.
3090         (CHAR_LEADING_BYTE): Likewise.
3091         (BREAKUP_CHAR): Likewise.
3092         (Vcharset_ascii): Likewise.
3093
3094         * buffer.h: Include multibyte.h unconditionally.
3095         (VALID_CHARPTR_P): Moved to multibyte.h.
3096         (ASSERT_VALID_CHARPTR): Likewise.
3097         (REAL_INC_CHARPTR): Likewise.
3098         (REAL_INC_CHARBYTIND): Likewise.
3099         (REAL_DEC_CHARPTR): Likewise.
3100         (INC_CHARPTR): Likewise.
3101         (INC_CHARBYTIND): Likewise.
3102         (DEC_CHARPTR): Likewise.
3103         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3104         (VALIDATE_CHARPTR_FORWARD): Likewise.
3105         (charptr_n_addr): Likewise.
3106         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3107         (simple_charptr_emchar): Moved to multibyte.h.
3108         (simple_set_charptr_emchar): Likewise.
3109         (simple_charptr_copy_char): Likewise.
3110         (non_ascii_charptr_emchar): Likewise.
3111         (non_ascii_set_charptr_emchar): Likewise.
3112         (non_ascii_charptr_copy_char): Likewise.
3113         (charptr_emchar): Likewise.
3114         (set_charptr_emchar): Likewise.
3115         (charptr_copy_char): Likewise.
3116         (charptr_emchar_n): Likewise.
3117         (Charset_ID): Moved to char-1byte.h.
3118         (Vcharset_ascii): Likewise.
3119         (CHAR_CHARSET): Likewise.
3120         (CHAR_LEADING_BYTE): Likewise.
3121         (LEADING_BYTE_ASCII): Likewise.
3122         (NUM_LEADING_BYTES): Likewise.
3123         (MIN_LEADING_BYTE): Likewise.
3124         (CHARSETP): Likewise.
3125         (CHARSET_BY_LEADING_BYTE): Likewise.
3126         (XCHARSET_LEADING_BYTE): Likewise.
3127         (XCHARSET_GRAPHIC): Likewise.
3128         (XCHARSET_COLUMNS): Likewise.
3129         (XCHARSET_DIMENSION): Likewise.
3130         (BREAKUP_CHAR): Likewise.
3131
3132 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3133
3134         * character.h: Add document about interface for characters.
3135
3136         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3137         (MAKE_CHAR): Delete comment about
3138         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3139         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3140         (BREAKUP_CHAR): Modify name of arguments.
3141         (CHAR_CHARSET): Modify name of argument.
3142
3143         * buffer.h: Delete document about Emchar accessors.
3144
3145 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3146
3147         * character.h (CHAR_INTP): Moved from buffer.h
3148         (CHAR_OR_CHAR_INTP): Likewise.
3149         (XCHAR_OR_CHAR_INT): Likewise.
3150         (CHECK_CHAR_COERCE_INT): Likewise.
3151
3152         * buffer.h (CHAR_INTP): Moved to character.h
3153         (CHAR_OR_CHAR_INTP): Likewise.
3154         (XCHAR_OR_CHAR_INT): Likewise.
3155         (CHECK_CHAR_COERCE_INT): Likewise.
3156
3157 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3158
3159         * character.h:
3160         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3161         - Include char-1byte.h, char-lb.h or char-ucs.h.
3162
3163         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3164
3165         * buffer.h: Include character unconditionally.
3166         (valid_char_p): Moved to char-*.h.
3167         (non_ascii_valid_char_p): Moved to char-lb.h.
3168
3169         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3170
3171 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3172
3173         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3174         in UTF-2000 because it is not ported yet and not to use
3175         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3176         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3177         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3178
3179         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3180         (CHAR_ASCII_P): Moved from character.h.
3181
3182         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3183         (CHAR_ASCII_P): Likewise.
3184         (CHAR_FIELD1_MASK): Deleted.
3185         (CHAR_FIELD2_MASK): Deleted.
3186         (CHAR_FIELD3_MASK): Deleted.
3187         (MAX_CHAR_BASIC_LATIN): New macro.
3188         (CHAR_FIELD1): Deleted.
3189         (CHAR_FIELD2_INTERNAL): Deleted.
3190         (CHAR_FIELD3_INTERNAL): Deleted.
3191         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3192         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3193         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3194         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3195         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3196         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3197         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3198         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3199         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3200         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3201         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3202         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3203         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3204         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3205         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3206         (MIN_CHAR_COMPOSITION): Deleted.
3207         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3208         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3209
3210 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3211
3212         * buffer.h: Include mb-utf-8.h in UTF-2000.
3213
3214         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3215
3216         * mb-utf-8.h: New file.
3217
3218 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3219
3220         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3221         instead of `int'.
3222
3223         * mule-charset.h, buffer.h (Charset_ID): New type.
3224
3225 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3226
3227         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3228         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3229         instead of `MULE_CHAR_PRIVATE_OFFSET',
3230         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3231         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3232         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3233
3234         * character.h (Vcharset_japanese_jisx0212): New variable
3235         definition.
3236
3237 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3238
3239         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3240         (charset_by_attributes): Delete array about direction.
3241         (latin_a_char_to_charset): New variable in UTF-2000.
3242         (latin_a_char_to_byte1): New variable in UTF-2000.
3243         (latin_a_char_to_byte2): New variable in UTF-2000.
3244         (Qucs_bmp): New variable.
3245         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3246         `Bufbyte'.
3247         (next_allocated_2_byte_leading_byte): Likewise.
3248         (non_ascii_set_charptr_emchar): Likewise.
3249         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3250         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3251         `charset_by_attributes'.
3252         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3253         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3254         and `CHARSET_BY_LEADING_BYTE'.
3255         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3256         `utf-2000-version' to `vars_of_mule_charset'.
3257         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3258         define `leading-code-private-11' in UTF-2000; move setting of
3259         `utf-2000-version' from `syms_of_mule_charset'.
3260         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3261         UTF-2000.
3262
3263         * character.h (Charset_ID): New type.
3264         (LEADING_BYTE_UCS_BMP): New macro.
3265         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3266         (CHARSET_ID_OFFSET_94): New macro.
3267         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3268         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3269         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3270         final-byte.
3271         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3272         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3273         (CHARSET_ID_OFFSET_96): New macro.
3274         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3275         CHARSET_ID_OFFSET_96 and final-byte.
3276         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3277         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3278         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3279         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3280         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3281         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3282         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3283         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3284         (LEADING_BYTE_THAI_TIS620): Likewise.
3285         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3286         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3287         (CHARSET_ID_OFFSET_94x94): New macro.
3288         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3289         CHARSET_ID_OFFSET_94x94 and final-byte.
3290         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3291         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3292         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3293         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3294         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3295         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3296         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3297         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3298         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3299         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3300         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3301         (CHARSET_TYPE_128X128): New macro.
3302         (CHARSET_TYPE_256X256): New macro.
3303         (XCHARSET_PRIVATE_P): Delete unconditionally.
3304         (charset_by_attributes): Delete array about direction.
3305         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3306         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3307         (MIN_CHAR_94): New macro.
3308         (MAX_CHAR_94): New macro.
3309         (MIN_CHAR_96): New macro.
3310         (MAX_CHAR_96): New macro.
3311         (MIN_CHAR_94x94): New macro.
3312         (MAX_CHAR_94x94): New macro.
3313         (MIN_CHAR_96x96): New macro.
3314         (MAX_CHAR_96x96): New macro.
3315         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3316         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3317         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3318         - 32)'.
3319         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3320         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3321         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3322         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3323         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3324         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3325         `XCHARSET_LEADING_BYTE' to make code-point.
3326         (latin_a_char_to_charset): New variable.
3327         (latin_a_char_to_byte1): New variable.
3328         (latin_a_char_to_byte2): New variable.
3329         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3330         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3331         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3332
3333         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3334         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3335         (find_charsets_in_emchar_string): Likewise.
3336         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3337
3338         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3339         `int'.
3340         (decode_coding_iso2022): Likewise.
3341
3342         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3343         of `unsigned char'.
3344
3345         * redisplay.c (redisplay_text_width_emchar_string): Use
3346         `Charset_ID' instead of `unsigned char'.
3347         (redisplay_frame_text_width_string): Likewise.
3348
3349         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3350         `unsigned char'.
3351
3352         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3353         instead of `unsigned char'.
3354         (face_cachel_charset_font_metric_info): Likewise.
3355
3356         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3357         (get_non_ascii_char_table_value): Likewise.
3358         (get_char_table): Likewise.
3359         (put_char_table): Likewise.
3360         (map_over_other_charset): Likewise.
3361         (map_char_table): Likewise.
3362
3363         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3364         instead of `unsigned char'.
3365
3366 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3367
3368         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3369         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3370
3371         * mule-charset.c (leading_code_private_11): Don't define in
3372         UTF-2000.
3373
3374         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3375         in UTF-2000 because it is not ported yet and not to use
3376         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3377
3378 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3379
3380         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3381
3382 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3383
3384         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3385         in UTF-2000.
3386
3387         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3388         of unsigned char to store leading-byte.
3389
3390         * chartab.c (get_non_ascii_char_table_value): Don't use
3391         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3392
3393         * file-coding.c (encode_coding_big5): Delete bogus implementation
3394         in UTF2000.
3395
3396         * character.h (LEADING_BYTE_*): Delete definition for
3397         non-UTF-2000.
3398         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3399         (LEADING_BYTE_PREFIX_P): Deleted.
3400         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3401         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3402         (BUFBYTE_LEADING_BYTE_P): Deleted.
3403         (CHARSET_PRIVATE_P): Deleted unconditionally.
3404         (rep_bytes_by_first_byte): Deleted unconditionally.
3405         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3406         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3407         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3408         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3409         (CHAR_FIELD2): Deleted.
3410         (CHAR_FIELD3): Deleted.
3411         (MAKE_CHAR): Delete definition for non-UTF-2000.
3412         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3413         (breakup_char_1): New implementation.
3414         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3415         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3416
3417 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3418
3419         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3420         condition.
3421
3422 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3423
3424         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3425         (CHARSET_PRIVATE_P): Likewise.
3426         (XCHARSET_PRIVATE_P): Likewise.
3427         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3428
3429         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3430         UTF2000.
3431         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3432
3433 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3434
3435         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3436         (NUM_LEADING_BYTES): Changed from 128 to 256.
3437         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3438         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3439         UTF2000.
3440         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3441
3442         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3443         UTF2000.
3444         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3445         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3446         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3447         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3448         (Qchinese_cns11643_3): New variable in UTF2000.
3449         (Qchinese_cns11643_4): New variable in UTF2000.
3450         (Qchinese_cns11643_5): New variable in UTF2000.
3451         (Qchinese_cns11643_6): New variable in UTF2000.
3452         (Qchinese_cns11643_7): New variable in UTF2000.
3453         (syms_of_mule_charset): Define `chinese-cns11643-3',
3454         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3455         and `chinese-cns11643-7' in UTF2000.
3456         (vars_of_mule_charset): Initialize
3457         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3458         + 1 in UTF2000.
3459         (complex_vars_of_mule_charset): Setup charset
3460         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3461         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3462
3463 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3464
3465         * mule-charset.c: Move setting for `leading-code-private-11' from
3466         `syms_of_mule_charset' to `vars_of_mule_charset'.
3467
3468 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3469
3470         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3471         and `NUM_LEADING_BYTES' in assert.
3472
3473 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3474
3475         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3476         instead of 128.
3477         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3478         `NUM_LEADING_BYTES' instead of 128.
3479
3480 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3481
3482         * mule-charset.h (charset_by_leading_byte): Use
3483         `NUM_LEADING_BYTES' instead of 128.
3484         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3485
3486         * mule-charset.c (charset_by_leading_byte): Use
3487         `NUM_LEADING_BYTES' instead of 128.
3488         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3489
3490         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3491         128.
3492
3493 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3494
3495         * mule-charset.c (syms_of_mule_charset): Update to
3496         0.4 (Shin-Imamiya).
3497
3498 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3499
3500         * file-coding.c (encode_coding_sjis): New implementation for
3501         UTF2000.  (decode_coding_sjis): Ditto.
3502
3503 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3504
3505         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3506         Don't define in UTF2000.
3507
3508         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3509         defined.
3510
3511         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3512         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3513         MULE.
3514
3515 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3516
3517         * config.h.in (CHAR_IS_UCS4): New macro.
3518
3519         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3520         conventional MULE representation.
3521         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3522
3523         * mule-charset.h: Reverted to original.
3524
3525         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3526         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3527         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3528
3529         * character.h: New file.
3530
3531         * file-coding.c (Fmake_coding_system): Set 1 to
3532         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3533         defined.
3534         (encode_coding_no_conversion): New implementation for UTF2000.
3535
3536         * file-coding.h (struct Lisp_Coding_System): Add new member
3537         `fixed.size'.
3538
3539 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3540
3541         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3542         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3543         (encode_coding_iso2022): New implementation for UTF2000.
3544
3545 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3546
3547         * mule-canna.c (c2mu): New implementation for UTF2000.
3548         (m2c): Likewise.
3549
3550 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3551
3552         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3553
3554 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3555
3556         * file-coding.c (reset_encoding_stream): Set 0 to
3557         `str->iso2022.current_char_boundary' in UTF2000.
3558         (encode_utf8): Don't define in UTF2000.
3559         (encode_coding_utf8): New implementation for UTF-8 representation
3560         of UTF2000.
3561         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3562
3563 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3564
3565         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3566
3567         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3568         UTF2000.
3569         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3570
3571         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3572
3573         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3574         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3575         as UTF-8 in UTF2000.
3576         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3577         (non_ascii_valid_char_p): Don't define in UTF2000.
3578         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3579         (Lstream_get_emchar_1): Likewise.
3580         (utf-2000-version): New variable in UTF2000.
3581
3582         * lread.c (read_escape): Add new reader `u'.
3583
3584         * insdel.c (three_to_one_table): Don't define in UTF2000.
3585         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3586         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3587         UTF2000.
3588         (bytind_to_bufpos_func): Likewise.
3589         (buffer_mule_signal_inserted_region): Likewise.
3590         (vars_of_insdel): Don't initialize `three_to_one_table'.
3591         (init_buffer_text): Use `buf->text->mule_size' instead of
3592         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3593         UTF2000.
3594
3595         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3596         UTF-8 representation in UTF2000.
3597         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3598         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3599         (decode_coding_iso2022): Don't define local variable `lb' in
3600         UTF2000; don't use LEADING_BYTE in UTF2000; use
3601         `DECODE_ADD_UCS_CHAR' in UTF2000.
3602         (convert_to_external_format): Decode as UTF-8 in UTF2000.
3603
3604         * config.h.in (UTF2000): New macro.
3605
3606         * buffer.h (struct buffer_text): Add new member `mule_size' and
3607         don't add `mule_shifter' and `mule_three_p' in UTF2000.
3608         (valid_char_p): Return always 1 in UTF2000.
3609         (MAX_EMCHAR_LEN): 6 in UTF2000.
3610         (three_to_one_table): Don't define in UTF2000.
3611         (real_bufpos_to_bytind): Modify for UTF-8 representation in
3612         UTF2000.
3613         (real_bytind_to_bufpos): Likewise.
3614
3615         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3616
3617 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3618
3619         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3620         representation change.
3621         (Vutf_2000_version): New variable.
3622         (leading_code_private_11): New variable.
3623         (syms_of_mule_charset): Add new variables `utf-2000-version' and
3624         `leading-code-private-11'.
3625
3626         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3627         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3628         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3629         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3630         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3631         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3632         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3633         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3634         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3635         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3636         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3637         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3638         (MIN_CHAR_GREEK): New macro.
3639         (MAX_CHAR_GREEK): New macro.
3640         (MIN_CHAR_CYRILLIC): New macro.
3641         (MAX_CHAR_CYRILLIC): New macro.
3642         (MIN_CHAR_HEBREW): New macro.
3643         (MAX_CHAR_HEBREW): New macro.
3644         (MIN_CHAR_THAI): New macro.
3645         (MAX_CHAR_THAI): New macro.
3646         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
3647         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
3648         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
3649         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
3650         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
3651         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
3652         (CHAR_FIELD2): New inline function.
3653         (CHAR_FIELD3): New inline function.
3654         (MULE_CHAR_PRIVATE_OFFSET): New macro.
3655         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
3656         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
3657         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
3658         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
3659         (MIN_CHAR_COMPOSITION): Likewise.
3660         (CHAR_LEADING_BYTE): Modified for character representation change.
3661         (MAKE_CHAR): Likewise.
3662
3663         * lisp.h (Vcharset_latin_iso8859_1): New variable.
3664         (Vcharset_greek_iso8859_7): Likewise.
3665         (Vcharset_cyrillic_iso8859_5): Likewise.
3666         (Vcharset_hebrew_iso8859_8): Likewise.
3667         (Vcharset_thai_tis620): Likewise.
3668         (Vcharset_katakana_jisx0201): Likewise.
3669
3670 2001-02-08  Martin Buchholz <martin@xemacs.org>
3671
3672         * XEmacs 21.2.44 "Thalia" is released.
3673
3674 2001-02-06  Martin Buchholz  <martin@xemacs.org>
3675
3676         Fixes crashes in kill-emacs on some systems.
3677         * process-unix.c (unix_kill_child_process):
3678         It's OK for kill() to fail with ESRCH.
3679
3680 2001-02-07  Martin Buchholz  <martin@xemacs.org>
3681
3682         Contortions to make .gdbinit tricks work on most systems.
3683         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
3684         * alloc.c (dbg_valmask): Make non-const.
3685         * alloc.c (dbg_typemask): Make non-const.
3686         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
3687         * alloc.c (dbg_valbits): Make non-const.
3688         * alloc.c (dbg_gctypebits): Make non-const.
3689         * .gdbinit (decode_object): Make it work with AIX cc.
3690
3691 2001-02-06  Martin Buchholz  <martin@xemacs.org>
3692
3693         * elhash.c (make_general_lisp_hash_table):
3694         Use simpler and more efficient calloc to clear entries.
3695
3696 2001-02-07  Martin Buchholz  <martin@xemacs.org>
3697
3698         * window.c (window_scroll): Work around an AIX C compiler bug.
3699         Fixes 'scroll-up' does nothing problem with xlC.
3700
3701 2001-02-05  Martin Buchholz  <martin@xemacs.org>
3702
3703         * .gdbinit: Remove obsolete comment.
3704
3705 2001-01-31  Mike Alexander  <mta@arbortext.com>
3706
3707         * select.c (Fown_selection_internal): Set owned_p for device
3708         method correctly.
3709
3710 2001-02-01  Martin Buchholz  <martin@xemacs.org>
3711
3712         Port to g++ 2.97.
3713         "not" cannot be used as a macro name as it is an operator in C++
3714         * config.h.in: Stop #defining `not'.
3715         * chartab.c (check_category_char): not ==> not_p
3716         * chartab.h: Likewise.
3717         * regex.c (re_match_2_internal): Likewise.
3718
3719 2001-02-02  Martin Buchholz  <martin@xemacs.org>
3720
3721         * lisp-disunion.h: Fix up comments.
3722
3723 2001-01-31  Martin Buchholz  <martin@xemacs.org>
3724
3725         * keymap.c (define_key_check_and_coerce_keysym):
3726         (syms_of_keymap):
3727         Support mouse-6 and mouse-7 bindings in the obvious way.
3728
3729 2001-02-01  Martin Buchholz  <martin@xemacs.org>
3730
3731         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
3732
3733 2001-01-30  Martin Buchholz  <martin@xemacs.org>
3734
3735         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
3736         Previous patch missed DEFVAR_INT_MAGIC.
3737         Make sure future DEFVAR_foo use correct types.
3738         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
3739         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
3740         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
3741         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
3742         * (DEFVAR_INT): Likewise.
3743         * redisplay.c (vertical_clip): Should be of type Fixnum.
3744         * redisplay.c (horizontal_clip): Likewise.
3745         * lisp.h (dump_add_opaque_int): New.
3746         (dump_add_opaque_fixnum): New.
3747
3748 2001-01-29  Andy Piper  <andy@xemacs.org>
3749
3750         * glyphs-widget.c (check_valid_int_or_function): allow symbols
3751         since they can be eval'ed
3752
3753 2001-01-29  Martin Buchholz  <martin@xemacs.org>
3754
3755         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
3756         Oops, XEmacs redefines `class'.  Use `typename' instead.
3757
3758 2001-01-28  Martin Buchholz  <martin@xemacs.org>
3759
3760         * dumper.c: Fix C++ compile errors.
3761
3762 2001-01-29  Martin Buchholz  <martin@xemacs.org>
3763
3764         * tparam.c: Use correct prototypes.
3765
3766 2001-01-28  Martin Buchholz  <martin@xemacs.org>
3767
3768         * sysproc.h: #include util.h for NetBSD's openpty.
3769
3770 2001-01-27  Martin Buchholz  <martin@xemacs.org>
3771
3772         More 64-bit correctness.
3773         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
3774         Use a typedef `fixnum' for the type used for DEFVAR_INT.
3775         Fix up comments.
3776         This finally finishes the 64-bit SGI port.
3777         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
3778         * symbols.c: Fix up comments and type casts.
3779         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
3780         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
3781         * symeval.h (Fixnum): New type.
3782         * symeval.h (symbol_value_type): Fix up comment.
3783
3784         * commands.h:
3785         * nt.c:
3786         * emacs.c:
3787         * data.c:
3788         * redisplay.c:
3789         * abbrev.c:
3790         * dired-msw.c:
3791         * event-Xt.c:
3792         * eldap.c:
3793         * window.c:
3794         * sound.c:
3795         * event-stream.c:
3796         * eval.c:
3797         * buffer.c:
3798         * mule-canna.c: A million DEFVAR_INTs here...
3799         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
3800         * extents.c:
3801         * cmdloop.c:
3802         * lisp.h:
3803         * select-x.c:
3804         * console-x.h:
3805         * event-msw.c:
3806         * mule-wnnfns.c:
3807         * hpplay.c:
3808         * ralloc.c:
3809         * alloc.c:
3810         * keymap.c:
3811         * profile.c:
3812         s/int/Fixnum/g in DEFVAR_INT declarations.
3813
3814 2001-01-26  Martin Buchholz  <martin@xemacs.org>
3815
3816         Port pdump to SGI alignment-sensitive environment.
3817         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
3818         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
3819         properly aligned.
3820         Define and use aligned reading and writing macros.
3821         Use buffered stdio instead of posix i/o for faster dumping.
3822         Eliminate kludgy 256 byte space for header.
3823         Read and write from dump file using structs for alignment safety.
3824         * dumper.c (pdump_align_stream): New.
3825         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
3826         * dumper.c (PDUMP_READ_ALIGNED): New.
3827         * dumper.c (PDUMP_WRITE_ALIGNED): New.
3828         * dumper.c (pdump_static_Lisp_Object): New struct.
3829         * dumper.c (pdump_static_pointer): New struct.
3830         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
3831         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
3832         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
3833         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
3834
3835         * dumper.c (pdump_backtrace):
3836         * dumper.c (pdump_get_indirect_count):
3837         * dumper.c (pdump_register_object):
3838         * dumper.c (pdump_register_struct):
3839         * dumper.c (pdump_reloc_one):
3840         * dumper.c (pdump_scan_by_alignment):
3841         * dumper.c (pdump_dump_from_root_struct_ptrs):
3842         * dumper.c (pdump_dump_opaques):
3843         * dumper.c (pdump_dump_rtables):
3844         * dumper.c (pdump_dump_from_root_objects):
3845         * dumper.c (pdump):
3846         * dumper.c (pdump_load_finish):
3847         Use aligned reading and writing.
3848
3849         * dumper.c (pdump_free): Make static.
3850         * dumper.c (pdump_hFile): Likewise.
3851         * dumper.c (pdump_hMap): Likewise.
3852
3853 2001-01-26  Martin Buchholz <martin@xemacs.org>
3854
3855         * XEmacs 21.2.43 "Terspichore" is released.
3856
3857 2001-01-25  Martin Buchholz  <martin@xemacs.org>
3858
3859         Type fiddling for window_config.saved_windows_count
3860         * window.c (struct window_config): 
3861         Make saved_windows_count member unsigned.
3862         * window.c (sizeof_window_config_for_n_windows): 
3863         Make parameter unsigned.
3864         * window.c (mark_window_config):
3865         * window.c (window_config_equal):
3866         * window.c (free_window_configuration):
3867         * window.c (Fset_window_configuration):
3868         * window.c (count_windows):
3869         * window.c (Fcurrent_window_configuration):
3870         * window.c (reinit_vars_of_window):
3871         Update all callers and users.
3872
3873 2001-01-25  Martin Buchholz  <martin@xemacs.org>
3874
3875         Alignment correctness for flexible arrays.
3876         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
3877         Make alignment-correct. Add interesting comments.
3878         * alloc.c (size_vector):
3879         * alloc.c (make_vector_internal):
3880         * alloc.c (make_bit_vector_internal):
3881         * alloc.c (sweep_bit_vectors_1):
3882         * fns.c (size_bit_vector):
3883         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
3884         * window.c (sizeof_window_config_for_n_windows): 
3885         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
3886
3887 2001-01-24  Martin Buchholz  <martin@xemacs.org>
3888
3889         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
3890
3891 2001-01-23  Andy Piper  <andy@xemacs.org>
3892
3893         * select.c (Fown_selection_internal): pass owned_p
3894
3895         * select-msw.c (mswindows_own_selection): New Signature.
3896
3897         * console.h (struct console_methods): add owned_p to
3898         _own_selection.
3899
3900         * select-x.c (x_own_selection): pass owned_p
3901         (hack_motif_clipboard_selection): use owned_p
3902         (vars_of_select_x): new variable -
3903         x_selection_strict_motif_ownership.
3904
3905 2001-01-23  Martin Buchholz  <martin@xemacs.org>
3906
3907         * specifier.h (specifier_data_offset): Remove pointless parens.
3908         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
3909
3910 2001-01-24  Martin Buchholz  <martin@xemacs.org>
3911
3912         Make Lisp_Object sizeof methods be alignment-correct.
3913         pdump must restore objects to the same alignment as the C compiler
3914         assumes.  It really matters on SGIs.
3915         * lstream.c (aligned_sizeof_lstream): New.
3916         (sizeof_lstream): Use aligned_sizeof_lstream.
3917         (Lstream_new): Likewise.
3918         * opaque.c (aligned_sizeof_opaque): New.
3919         (sizeof_opaque): Use aligned_sizeof_opaque.
3920         (make_opaque): Likewise.
3921         * specifier.c (aligned_sizeof_specifier): New.
3922         (sizeof_specifier): Use aligned_sizeof_specifier.
3923         (make_specifier_internal): Likewise.
3924
3925 2001-01-23  Martin Buchholz  <martin@xemacs.org>
3926
3927         * lstream.h (struct lstream): Use max_align_t for trailing data.
3928         * specifier.h (struct Lisp_Specifier): Likewise.
3929
3930 2001-01-22  Martin Buchholz  <martin@xemacs.org>
3931
3932         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
3933         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
3934         (CCL_SUSPEND): Likewise.
3935         (CCL_INVALID_CMD): Likewise.
3936         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
3937         (ccl_driver): Likewise.
3938         (CCL_WRITE_CHAR): Macro hygiene.
3939         (CCL_WRITE_STRING): Macro hygiene.
3940
3941 2001-01-22  Martin Buchholz  <martin@xemacs.org>
3942
3943         Port "portable" dumper to SunOS 4 and HP-UX.
3944         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
3945         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
3946         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
3947
3948 2001-01-22  Martin Buchholz  <martin@xemacs.org>
3949
3950         * lisp.h (ALIGNOF): A better definition for C++.
3951
3952 2001-01-20  Martin Buchholz  <martin@xemacs.org>
3953
3954         Macro hygiene.
3955         Fix printf warnings: int format, long int arg.
3956         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
3957         (PUSH_FAILURE_POINT): Use correct printf formats.
3958         (POP_FAILURE_POINT): Use correct printf formats.  
3959         Use do {...} while (0)
3960
3961 2001-01-20  Martin Buchholz <martin@xemacs.org>
3962
3963         * XEmacs 21.2.42 "Poseidon" is released.
3964
3965 2001-01-20  Martin Buchholz  <martin@xemacs.org>
3966
3967         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
3968
3969 2001-01-19  Martin Buchholz  <martin@xemacs.org>
3970
3971         De-kludgify FIXED_TYPE free list frobbing.
3972         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
3973         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
3974         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
3975         * alloc.c (Lisp_Free): New pseudo lisp object definition.
3976         * alloc.c (LRECORD_FREE_P): New.
3977         * alloc.c (MARK_LRECORD_AS_FREE): New.
3978         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
3979         * alloc.c (STRUCT_FREE_P): Deleted.
3980         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
3981         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
3982         * alloc.c (STRING_CHARS_FREE_P): New.
3983         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
3984         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
3985         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
3986         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
3987         * alloc.c (resize_string): Use new definitions.
3988         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
3989         * alloc.c (verify_string_chars_integrity): Use new definitions.
3990         * alloc.c (compact_string_chars): Use new definitions.
3991         * alloc.c: Update monster comments.
3992         * lrecord.h (lrecord_type): Add some new lrecord types for
3993         alloc.c's use.
3994
3995 2001-01-18  Martin Buchholz  <martin@xemacs.org>
3996
3997         Improve alignment hackery.
3998         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
3999         (max_align_t): Moved from opaque.h - general purpose.
4000         (ALIGN_PTR): Use size_t, not long.
4001         * opaque.h (max_align_t): Move to lisp.h.
4002
4003 2001-01-18  Norbert Koch  <nk@LF.net>
4004
4005         * gui.h: Fix and add prototypes to fix build problems.
4006
4007 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4008
4009         temacs is going away, so `dump-temacs' is now a bad name.
4010         * .dbxrc (dump-temacs): Rename to `dmp'.
4011         * .gdbinit (dump-temacs): Rename to `dmp'.
4012
4013 2001-01-17  Andy Piper  <andy@xemacs.org>
4014
4015         * glyphs.c (print_image_instance): comment to make martin happy.
4016
4017         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4018         change.
4019
4020         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4021         activation.
4022         (mswindows_tab_control_redisplay): warning suppression.
4023
4024         * glyphs-widget.c (widget_update): re-write to cope with updated
4025         items.
4026         (widget_instantiate): use new gui_item functions.
4027         (tab_control_update): deleted.
4028         (progress_gauge_update): deleted.
4029         (image_instantiator_progress_guage): take out update reference.
4030         (image_instantiator_tree_view): ditto.
4031         (image_instantiator_tab_control): ditto.
4032
4033         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4034         Right the new way.
4035         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4036         return whether anything was changed.
4037         (update_gui_item_keywords): as it sounds.
4038
4039         * gui.h: declare widget_gui_parse_item_keywords.
4040
4041         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4042         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4043
4044 2001-01-17  Martin Buchholz <martin@xemacs.org>
4045
4046         * XEmacs 21.2.41 "Polyhymnia" is released.
4047
4048 2001-01-16  Didier Verna  <didier@xemacs.org>
4049
4050         * glyphs.c (image_instantiate): don't use fallbacks when
4051         instantiating a face's background pixmap by inheritance.
4052
4053 2001-01-14  Mike Sperber <mike@xemacs.org>
4054
4055         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4056         Conditionalize accordingly.
4057
4058 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4059
4060         * dumper.c (pdump_file_get): Fix a compiler warning.
4061
4062 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4063
4064         Make Purify happy when pdumping.
4065         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4066         iniitalizing all bits of new lisp object memory.
4067         * symbols.c (Fmake_local_variable): Likewise.
4068         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4069         * symbols.c (Fdefvaralias): Likewise.
4070         * mule-charset.c (vars_of_mule_charset): Likewise.
4071
4072 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4073         Add the `-nd' flag when running pre-dump operations under the debugger.
4074         * .dbxrc (run-temacs): Add `-nd'.
4075         * .dbxrc (update-elc): Likewise.
4076         * .dbxrc (dump-temacs): Likewise.
4077         * .gdbinit (run-temacs): Likewise.
4078         * .gdbinit (check-temacs): Likewise.
4079         * .gdbinit (update-elc): Likewise.
4080         * .gdbinit (dump-temacs): Likewise.
4081
4082 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4083
4084         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4085         export OBJECT_MODE=64
4086         configure --pdump --use-union-type=no
4087         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4088         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4089
4090         * miscplay.c (sndcnv8U_2mono):
4091         Avoid two uses of `++' in the same expression.
4092         Suppresses a GCC warning.
4093
4094 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4095
4096         Make sure future compilers don't miscompile alloc.c.
4097         * alloc.c:
4098         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4099         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4100
4101 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4102
4103         * dumper.c: A little post-pdump-rename comment fixup.
4104
4105 2001-01-09  Jerry James  <james@eecs.ku.edu>
4106
4107         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4108
4109 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4110
4111         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4112         script:
4113         #!/bin/sh
4114         replace_symbol () {
4115           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4116         }
4117
4118         replace_symbol pdump_wire_lists pdump_weak_object_chains
4119         replace_symbol pdump_wire_list dump_add_weak_object_chain
4120
4121         replace_symbol pdump_wires pdump_root_objects
4122         replace_symbol pdump_wire dump_add_root_object
4123
4124         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4125         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4126
4127         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4128         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4129         replace_symbol dumpstructinfo pdump_root_struct_ptr
4130         replace_symbol dumpstruct dump_add_root_struct_ptr
4131
4132         replace_symbol dumpopaque dump_add_opaque
4133         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4134         replace_symbol dumpopaqueinfos pdump_opaques
4135         replace_symbol dumpopaqueinfo pdump_opaque
4136
4137         replace_symbol nb_structdump nb_root_struct_ptrs
4138         replace_symbol nb_opaquedump nb_opaques
4139
4140         replace_symbol align_table pdump_align_table
4141         replace_symbol dump_header pdump_header
4142
4143         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4144         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4145
4146
4147 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4148
4149         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4150         optimizing bytecount_to_charcount().
4151
4152 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4153
4154         * config.h.in:
4155         (HAVE_DLFCN_H): Removed.
4156         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4157
4158 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4159
4160         Portable dumper maintainability improvements.
4161         * alloc.c (staticpro):
4162         * alloc.c (staticpro_nodump):
4163         * alloc.c (garbage_collect_1):
4164         * alloc.c (reinit_alloc_once_early):
4165         * alloc.c (init_alloc_once_early):
4166         * alloc.c: Move dumper functions to alloc.c.
4167         * dumper.c (pdump_backtrace):
4168         * dumper.c (pdump_dump_structs):
4169         * dumper.c (pdump_dump_opaques):
4170         * dumper.c (pdump_dump_rtables):
4171         * dumper.c (pdump_dump_wired):
4172         * dumper.c (pdump):
4173         * dumper.c (pdump_load_check):
4174         * dumper.c (pdump_load_finish):
4175         * dumper.c (pdump_file_unmap):
4176         * dumper.c (pdump_file_get):
4177         * dumper.c (pdump_resource_free):
4178         * dumper.c (pdump_resource_get):
4179         * dumper.c (pdump_file_free):
4180         * dumper.c (pdump_file_try):
4181         * dumper.c (pdump_load):
4182         Remove fixed size limits on staticpro(), staticpro_nodump(),
4183         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4184         Remove custom code for dumping lrecord_implementations_table - use
4185         dumpopaque instead.
4186         Remove (most of the) custom code for dumping staticpros - dump it
4187         like any other dynarr.
4188
4189         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4190         * dumper.c: Moved functions from alloc.c.
4191         * alloc.c (dumpstruct): Moved to dumper.c.
4192         * alloc.c (dumpopaque): Likewise.
4193         * alloc.c (pdump_wire): Likewise.
4194         * alloc.c (pdump_wire_list): Likewise.
4195
4196         * lisp.h (Dynarr_sizeof): New.
4197         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4198         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4199         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4200
4201         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4202         * lisp.h (dumpopaque): ditto.
4203         * lisp.h (pdump_wire): ditto.
4204         * lisp.h (pdump_wire_list): ditto.
4205
4206 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4207
4208         * make-src-depend (PrintPatternDeps):
4209         Use `sort' to make output independent of perl version.
4210
4211 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4212
4213         Port to Netbsd 1.5.
4214         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4215         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4216
4217 2001-01-03  Didier Verna  <didier@xemacs.org>
4218
4219         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4220         that `focus_frame' is alive before thinking of calling
4221         `redisplay_redraw_cursor' on it.
4222
4223 2001-01-08  Martin Buchholz <martin@xemacs.org>
4224
4225         * XEmacs 21.2.40 is released.
4226
4227 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4228
4229         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4230
4231 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4232
4233         * alloc.c (dbg_valmask): Make const.
4234         * alloc.c (dbg_typemask): Make const.
4235         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4236         * alloc.c (dbg_valbits): Make const.
4237         * alloc.c (dbg_gctypebits): Make const.
4238
4239 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4240
4241         * redisplay-x.c (x_bevel_area):
4242         redisplay.h (struct rune):
4243         Typo fixes in comments.
4244
4245 2001-01-05  Andy Piper  <andy@xemacs.org>
4246
4247         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4248         adjustment.
4249
4250         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4251
4252 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4253
4254         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4255
4256         * mule-ccl.c (stack_idx_of_map_multiple):
4257         Non const global data must not be initialized!
4258         Found by MIYASHITA Hisashi.
4259
4260 2001-01-02  Andy Piper  <andy@xemacs.org>
4261
4262         * frame.c (change_frame_size): make sure frame size is always
4263         marked as changed.
4264
4265         * glyphs.c (image_instance_layout): minor code reuse.
4266
4267         * window.c (Fcurrent_window_configuration): revert previous
4268         change.
4269
4270 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4271
4272         * glyphs.h:
4273         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4274
4275 2000-12-31  Andy Piper  <andy@xemacs.org>
4276
4277         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4278         when widget gets unmapped.
4279
4280         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4281         function. Make sure widgets losing focus don't just drop it.
4282         (handle_focus_event_1): record the widget with focus.
4283
4284 2000-12-31  Andy Piper  <andy@xemacs.org>
4285
4286         * window.c (allocate_window): use
4287         make_image_instance_cache_hash_table.
4288         (make_dummy_parent): ditto.
4289         (Fset_window_configuration): ditto.
4290
4291         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4292
4293         * glyphs.c (process_image_string_instantiator): use
4294         INSTANTIATOR_TYPE.
4295         (get_image_instantiator_governing_domain): ditto.
4296         (normalize_image_instantiator): ditto.
4297         (instantiate_image_instantiator): ditto.
4298         (make_image_instance_1): ditto.
4299         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4300         (instantiator_eq_equal): new function for use with instance hash
4301         tables.
4302         (instantiator_eq_hash): ditto.
4303         (make_image_instance_cache_hash_table): create a suitable hash
4304         table for storing image instances.
4305
4306         * elhash.h (hash_table_weakness): new internal weakness type
4307         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4308         declare new functions.
4309
4310         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4311         another weakness type for glyphs.
4312         (make_standard_lisp_hash_table): new function split out from
4313         make_general_lisp_hash_table.
4314         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4315         (hash_table_instantiate): ditto.
4316         (Fmake_hash_table): ditto.
4317
4318 2000-12-31  Martin Buchholz <martin@xemacs.org>
4319
4320         * XEmacs 21.2.39 is released.
4321
4322 2000-12-29  Andy Piper  <andy@xemacs.org>
4323
4324         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4325
4326         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4327         the frame has changed so that we pick up geometry changes such as
4328         menubar visibility.
4329
4330 2000-12-28  Andy Piper  <andy@xemacs.org>
4331
4332         * lastfile.c (my_ebss): make a char array so we can pad the
4333         bss. Fixes cygwin unexec.
4334
4335         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4336
4337 2000-12-26  Andy Piper  <andy@xemacs.org>
4338
4339         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4340         comments and try and be more precise about a non-/SIGIO world.
4341         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4342         SIGIO.
4343
4344         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4345         we don't normalize to zero width or height.
4346
4347 2000-12-24  Andy Piper  <andy@xemacs.org>
4348
4349         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4350
4351 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4352
4353         * s/sco5.h: SCO 5 has pty support.
4354
4355 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4356
4357         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4358         input-method-xlib.c contains whole contents of input-method-xfs.c,
4359         so we can use input-method-xlib.c's code for USE_XFONTSET
4360         using #ifdefs.
4361         * input-method-xfs.c: removed.
4362
4363 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4364
4365         * file-coding.h (enum coding_category_type): reorder enumerators to
4366         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4367         (now one greater than largest real coding_category_type enumerator).
4368         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4369         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4370         Fcoding_category_list, Fset_coding_priority_list,
4371         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4372         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4373
4374 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4375
4376         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4377         * redisplay-output.c (redisplay_output_window): Clear top of window
4378         when face is changed.
4379         * redisplay-x.c (x_redraw_exposed_window): Call
4380         redisplay_clear_top_of_window.
4381         * redisplay.h: Publish redisplay_clear_top_of_window.
4382
4383 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4384
4385         * buffer.c (Fkill_buffer): Map over all devices.
4386         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4387         (list_windows): New function.
4388         (list_all_windows): Ditto.
4389         (Freplace_buffer_in_windows): Use them.
4390
4391 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4392
4393         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4394         (Fopen_database): Use `db_create' instead of `db_open'.
4395         (syms_of_database): Initialize Qqueue.
4396
4397 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4398
4399         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4400         buffer_local_face_property.
4401         * buffer.h (struct buffer): New member buffer_local_face_property.
4402         * window.c (Fset_window_buffer):  Mark window's face as changed
4403         when buffer has buffer local face.
4404         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4405         * objects.c (color_after_change): Set buffer_local_face_property
4406         when locale of face specifier is buffer.
4407         * objects.c (font_after_change): Ditto.
4408         * objects.c (face_boolean_after_change): Ditto.
4409         * glyphs.c (image_after_change): Ditto.
4410
4411 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4412
4413         * nt.c (mswindows_fstat): Report file permissions, volume serial
4414         number, etc. Code adapted from FSF Emacs 20.7.
4415
4416 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4417
4418         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4419         of stat when we don't have symbolic links, to make sure
4420         mswindows_stat is called on mswindows.
4421
4422 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4423
4424         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4425
4426 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4427
4428         * doprnt.c (emacs_doprnt_1): More printing fixes.
4429         Make printing of numbers compatible with libc and FSF Emacs.
4430         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4431         Use the system printf to do most of the hard work of formatting,
4432         instead of doprnt_1().
4433         Calculate memory to allocate for format string.
4434         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4435         (doprnt_1): Cleaner code and documentation.
4436
4437 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4438
4439         * Makefile.in.in: Use the loop variable to install headers.
4440
4441 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4442
4443         * window.c (Fsplit_window): Don't invalidate face cache.
4444
4445 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4446
4447         * minibuf.c (Fall_completions): Undo the previous change
4448         which removed checking elements start with space.
4449
4450 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4451
4452         * mule-canna.c: Didier suppression.
4453
4454 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4455
4456         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4457         (warning suppression).  Add English comment translations.
4458
4459 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4460
4461         * unexelfsgi.c (unexec): Better test for mmap failure.
4462
4463 2000-12-05  Martin Buchholz <martin@xemacs.org>
4464
4465         * XEmacs 21.2.38 is released.
4466
4467 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4468
4469         * redisplay.c (bar-cursor): Make a user variable.
4470
4471         * symsinit.h: Add init_postgresql_from_environment.
4472
4473 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4474
4475         * regex.c: Convert to clean C.
4476
4477 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4478
4479         * realpath.c:
4480         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4481         initialization.
4482         (sys_readlink): renamed to system_readlink to avoid conflict with
4483         the other sys_readlink.
4484
4485 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4486
4487         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4488
4489 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4490
4491         * postgresql.c (init_postgresql_from_environment): new function.
4492         (vars_of_postgresql): Move code initializing Lisp variables out and
4493         into init_postgresql_from_environment.
4494         emacs.c (main_1): Call init_postgresql_from_environment if and only
4495         if running a dumped XEmacs.
4496
4497 2000-08-31  Dan Holmsand  <dan@eyebee.com>
4498
4499         * buffer.c: Make find-file-compare-truenames default to true on
4500         windows.
4501
4502         * realpath.c (win32_abs_start):
4503         (cygwin_readlink):
4504         (win32_readlink): New functions.
4505         (xrealpath): Return really real filenames on windows.
4506
4507         * fileio.c (Ffile_truename): Make file-truename work on windows.
4508
4509 2000-11-29  Didier Verna  <didier@xemacs.org>
4510
4511         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4512         * faces.c (update_face_cachel_data): use it.
4513         * faces.c (add_face_cachel): use it. Complete background pixmap
4514         frobbing in face cache if `update_face_cachel_data' has not done so.
4515
4516 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
4517
4518         * search.c (string_match_1): Don't set last_thing_searched
4519         when search failed.
4520
4521 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
4522
4523         * buffer.c: Include casetab.h
4524         (common_init_complex_vars_of_buffer): Use new case-table object.
4525         * buffer.h: Include casetab.h
4526         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4527         (DOWNCASE_TABLE_OF): Ditto.
4528         * bufslots.h: Remove char-tables and add case-table.
4529         * casetab.c: Include casetab.h
4530         (CASE_TABLE_P): Removed.
4531         (mark_case_table): New function.
4532         (allocate_case_table): New function.
4533         (Fcase_table_p): Use new case-table.
4534         (case_table_char): New function.
4535         (Fget_case_table): Ditto.
4536         (Fput_case_table): Ditto.
4537         (Fput_case_table_pair): Ditto.
4538         (Fcopy_case_table): Ditto.
4539         (Fcurrent_case_table): Return case-table.
4540         (Fstandard_case_table): Return case-table.
4541         (Fset_case_table): Fix doc-string.
4542         (set_case_table): Use case-table
4543         (syms_of_casetab): DEFSUBR new functions.
4544         (complex_vars_of_casetab): Set up standard case-table.
4545         * casetab.h: New file.
4546         * editfns.c: Include casetab.h
4547         (Fcompare_buffer_substrings): Use case-table.
4548         * inline.c: Include casetab.h
4549         * lisp.h: Remove bogus extern.
4550         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4551         * search.c: Include casetab.h
4552         (TRANSLATE_ASCII): Removed.
4553         (TRANSLATE): Unconditionally translate character.
4554         (looking_at_1): Use case-table.
4555         (string_match_1): Ditto.
4556         (fast_string_match): Ditto.
4557         (search_command): Ditto.
4558         (search_buffer): Separate boyer_moore.  Check whether
4559         boyer_moore is possible.
4560         (simple_search): New function.
4561         (boyer_moore): Separated from search_buffer. Translate char.
4562
4563 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
4564
4565         * regex.c (RE_TR_ASCII): Removed.
4566         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4567         (PATFETCH): Call PATFETCH_RAW.
4568         (PATFETCH_RAW): Fetch Emchar.
4569         (PATUNFETCH): Decrement charptr.
4570         (GET_BUFFER_SPACE): Rename b to buf_end.
4571         (BUF_PUSH): Ditto.
4572         (BUF_PUSH_2): Ditto.
4573         (BUF_PUSH_3): Ditto.
4574         (EXTEND_BUFFER): Ditto.
4575         (SET_LIST_BIT): Ditto.
4576         (regex_compile): Ditto.  Translate non ASCII char.
4577         (compile_range): Ditto.
4578         (re_search_2): Ditto.
4579         (re_match_2_internal): Compare Emchar.
4580         (bcmp_translate): Ditto.
4581
4582 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
4583
4584         * lisp.h (basic char/int typedefs):  comment improvement.
4585
4586 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
4587
4588         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
4589         unstomp inhibit_site_lisp.  Improve comments.
4590
4591 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
4592
4593         * mule-charset.c (Fcharset_property):  improve type checking, comments.
4594
4595 2000-11-28  Andy Piper  <andy@xemacs.org>
4596
4597         * redisplay-output.c (redisplay_output_subwindow): make sure we do
4598         clipped display for windows in the gutter also.
4599         (redisplay_display_boxes_in_window_p): change semantics of return
4600         codes to be more intuitive.
4601
4602         * gutter.h: declare display_boxes_in_gutter_p.
4603
4604         * gutter.c (display_boxes_in_gutter_p): new function for
4605         redisplay.
4606
4607 2000-11-22  Andy Piper  <andy@xemacs.org>
4608
4609         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
4610         autodetect domain.
4611
4612 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
4613
4614         * callproc.c (Fold_call_process_internal):
4615         * gpm.c (Freceive_gpm_event):
4616         (tty_get_foreign_selection): Might be just warning supression.
4617         * fileio.c (Fwrite_region_internal):
4618         (Fset_visited_file_modtime):
4619         * keymap.c (event_matches_key_specifier_p):
4620         Initialize GCPROed variable.
4621
4622         * menubar-x.c (command_builder_find_menu_accelerator):
4623         Initialize before use.
4624
4625 2000-11-23  Andy Piper  <andy@xemacs.org>
4626
4627         * unexcw.c (unexec): make the resulting executable executable.
4628
4629 2000-11-21  Martin Buchholz  <martin@xemacs.org>
4630
4631         * doc.c (get_doc_string):
4632         Use size_t, not int, for result of XSTRING_LENGTH.
4633
4634         * cmds.c (Fdelete_char):
4635         * cmds.c (Fpoint_at_eol):
4636         * cmds.c (Fself_insert_command):
4637         Use EMACS_INT, not int, for result of XINT.
4638         Someday, someone will want to insert more than 2**31 identical characters.
4639
4640         * cmds.c (Fdelete_char):
4641         * cmds.c (Fdelete_backward_char):
4642         * syntax.c (Fforward_word):
4643         * syntax.c (Fforward_comment):
4644         Make COUNT argument optional, for consistency with forward-char et al.
4645
4646 2000-11-22  Martin Buchholz  <martin@xemacs.org>
4647
4648         * lisp.h:
4649         * print.c (long_to_string):
4650         Return a useful value: the pointer at end of data written.
4651
4652         * doprnt.c:
4653         Use `static const char * const' for constant strings.
4654         (union printf_arg): Delete `i', `ui' members.
4655         (get_doprnt_args):
4656         (emacs_doprnt_1):
4657         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
4658         Do all printf-ing via the `l' specifier.
4659         Use EMACS_INT instead of int.
4660         Optimize.
4661
4662 2000-11-20  Didier Verna  <didier@xemacs.org>
4663
4664         * faces.c (update_face_cachel_data): don't frob the background
4665         pixmap when the window is being created. The face is needed but
4666         does not exist yet.
4667
4668 2000-11-20  Andy Piper  <andy@xemacs.org>
4669
4670         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
4671         messing with a debug environment.
4672
4673 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4674
4675         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
4676
4677 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4678
4679         * casetab.c (Fcase_table_p): Fix compile error and crash.
4680
4681 2000-11-18  Philip Aston  <philipa@mail.com>
4682
4683         * s/cygwin32.h: Cygwin has SVR4-like pty support.
4684
4685 2000-11-18  Martin Buchholz  <martin@xemacs.org>
4686
4687         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
4688         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
4689
4690 2000-11-17  Martin Buchholz  <martin@xemacs.org>
4691
4692         * config.h.in: Define HAVE_ELF_H if elf.h exists.
4693         * unexelf.c: Use HAVE_ELF_H.
4694         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
4695         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
4696         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
4697         Greg Harrington <greg_harrington@hotmail.com> provided a machine
4698         for testing.
4699         So this is an unexelfsgi.c from a different line of development.
4700
4701 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4702
4703         * regex.c (RE_TR_ASCII): New function.
4704         (RE_TRANSLATE): Call it.
4705
4706 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4707
4708         * buffer.h (TRT_TABLE_OF): Remove assert.
4709         (IN_TRT_TABLE_DOMAIN): Removed.
4710
4711 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
4712
4713         * free-hook.c (log_gcpro):
4714         (show_gcprohist): Add support for GCPRO5.
4715
4716 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
4717
4718         * emacs.c (main_1): Improve -sd error message when --pdump=no.
4719
4720 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
4721
4722         * symeval.h: Declare flush_all_buffer_local_cache.
4723
4724         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
4725         (flush_buffer_local_cache): Added.
4726         (flush_all_buffer_local_cache): Added.
4727
4728         * lrecord.h: Remove unused XD_LO_RESET_NIL.
4729
4730         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
4731         (pdump_dump_data): Ditto.
4732         (pdump_reloc_one): Ditto.
4733         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
4734         before dumping.
4735
4736
4737 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
4738
4739         * buffer.c: Remove if 0'ed entry.
4740         * buffer.h: Rewrite TRT to use char-table.
4741         * bufslots.h: Remove mirror tables.
4742         * casetab.c: Remove mirror tables.
4743         (CASE_TABLE_P): New macro.
4744         (Fcase_table_p): Element of a case table is string or char-table.
4745         (make_mirror_trt_table): Removed.
4746         (set_case_table): Setup char-table from strings for backward
4747         compatibility.
4748         * dired.c (Fdirectory_files):
4749         * dired-msw.c: (mswindows_get_files):
4750         * lisp.h: Change prototype of re_pattern_buffer.
4751         * regex.c: (RE_TRANSLATE): New macro.
4752         (TRANSLATE_P): Ditto.
4753         Change translate to type RE_TRANSLATE_TYPE.
4754         * regex.h: Define RE_TRANSLATE_TYPE
4755         * search.c (TRANSLATE): New macro.
4756         (TRANSLATE_ASCII): New macro.
4757         Translate table is changed to Lisp_Object.
4758         (signal_failure): Inhibit return.
4759
4760 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
4761
4762         * device-msw.c:
4763         * eldap.c:
4764         * event-Xt.c:
4765         * event-stream.c:
4766         * print.c:
4767         Do UNGCPRO before return.
4768
4769 2000-11-14  Martin Buchholz <martin@xemacs.org>
4770
4771         * XEmacs 21.2.37 is released.
4772
4773 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4774
4775         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
4776         Add comments about discarded return value.
4777
4778 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
4779
4780         * callint.c:
4781         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
4782
4783 2000-10-27  Andy Piper  <andy@xemacs.org>
4784
4785         * gutter.c (Fset_default_gutter_position): default left and right
4786         gutters to visible.
4787         (calculate_gutter_size): calculate resonable heuristic for left
4788         and right gutter sizes.
4789         (specifier_vars_of_gutter): change left and right gutter sizes to
4790         autodetect.
4791         (calculate_gutter_size_from_display_lines): new function.
4792         (output_gutter): check for resizing on left and right gutters.
4793         (clear_gutter): don't special case top and left gutters.
4794         (specifier_vars_of_gutter): use new signature for
4795         set_specifier_caching.
4796
4797         * glyphs-x.c (x_redisplay_widget): spelling fix.
4798         * glyphs.c (specifier_vars_of_glyphs):
4799         * menubar.c (specifier_vars_of_menubar):
4800         * redisplay.c (specifier_vars_of_redisplay):
4801         * toolbar.c (specifier_vars_of_toolbar):
4802         * window.c (specifier_vars_of_window):
4803         * scrollbar.c (specifier_vars_of_scrollbar):
4804         (complex_vars_of_scrollbar): use new signature for
4805         set_specifier_caching.
4806
4807         * specifier.c (set_specifier_caching): include recompute flag.
4808         (recompute_one_cached_specifier_in_window): always recompute if
4809         flag set.
4810         (recompute_one_cached_specifier_in_frame): ditto.
4811
4812         * specifier.h (struct specifier_caching): add recompute flag.
4813
4814 2000-10-24  Andy Piper  <andy@xemacs.org>
4815
4816         * unexcw.c (copy_executable_and_dump_data_section): add new
4817         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
4818         5.0 happy.
4819
4820 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4821
4822         * console-x.h (x_device): New member modifier_release_time.
4823         * event-Xt.c (x_handle_sticky_modifiers):
4824         Bound interval modifier keys are sticky.
4825         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
4826         * events.h: extern it.
4827
4828 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4829
4830         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
4831
4832 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4833
4834         * event-stream.c (execute_command_event): Preserve current_events
4835         and the like when event is misc-user-event.
4836         Inhibit quit during the call to maybe_echo_keys.
4837
4838 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
4839
4840         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
4841         symlink when buffer is killed.
4842         (inhibit_clash_detection): New variable.
4843
4844 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4845
4846         * console.c (Fset_input_method): Trigger redisplay on tty.
4847
4848 2000-11-07  Martin Buchholz  <martin@xemacs.org>
4849
4850         * process.c (Fprocess_status): Revert to previous behavior:
4851         (process-status "nosuchprocess") ==> nil
4852
4853 2000-11-06  Martin Buchholz  <martin@xemacs.org>
4854
4855         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
4856         Work around another GCC 2.95.2 optimizer bug.
4857
4858 2000-11-02  Martin Buchholz  <martin@xemacs.org>
4859
4860         * process.c (Fget_process): Use LIST_LOOP_2.
4861         (kill_buffer_processes): Use LIST_LOOP_2.
4862
4863         * minibuf.c (Fall_completions):
4864         Delete old non-functional code for FSF fourth argument.
4865
4866         * frame.c (frame_matches_frame_spec):
4867         Renamed from `frame_matches_frametype'.  Update all callers.
4868         (device_matches_device_spec):
4869         Renamed from 'device_matches_console_spec'.  Update all callers.
4870
4871         * doc.c (Fsubstitute_command_keys):
4872         Remove buffer overflow crash.  Small code cleanups.
4873
4874         * casetab.c (check_case_table): Simpler code.
4875
4876         * window.c (Freplace_buffer_in_windows):
4877         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
4878         (and similar implementation) as Fdelete_windows_on.
4879         Update all callers.
4880
4881         * alloc.c (Fmake_list):
4882         * alloc.c (make_vector):
4883         * alloc.c (Fmake_vector):
4884         * alloc.c (make_bit_vector):
4885         * alloc.c (Fmake_bit_vector):
4886         * alloc.c (Fbit_vector):
4887         * alloc.c (Fmake_string):
4888         * alloc.c (Fpurecopy):
4889         * alloc.c (Fmemory_limit):
4890         * buffer.c:
4891         * buffer.c (Fget_buffer):
4892         * buffer.c (Fkill_buffer):
4893         * buffer.c (complex_vars_of_buffer):
4894         * bytecode.c (Fcompiled_function_stack_depth):
4895         * callint.c (Fprefix_numeric_value):
4896         * event-stream.c:
4897         * event-stream.c (Fread_key_sequence):
4898         * casetab.c:
4899         * casetab.c (Fcase_table_p):
4900         * casetab.c (check_case_table):
4901         * casetab.c (Fset_case_table):
4902         * casetab.c (Fset_standard_case_table):
4903         * chartab.c:
4904         * chartab.c (Fchar_table_type):
4905         * chartab.c (Freset_char_table):
4906         * chartab.c (Fget_char_table):
4907         * chartab.c (Fget_range_char_table):
4908         * chartab.c (Fput_char_table):
4909         * chartab.c (Fmap_char_table):
4910         * chartab.c (Fcategory_table_p):
4911         * chartab.c (Fcheck_category_at):
4912         * chartab.c (Fchar_in_category_p):
4913         * chartab.c (Fcategory_table):
4914         * chartab.c (Fcopy_category_table):
4915         * chartab.c (Fset_category_table):
4916         * chartab.c (Fcategory_designator_p):
4917         * chartab.c (Fcategory_table_value_p):
4918         * cmds.c (Fdelete_char):
4919         * cmds.c (Fdelete_backward_char):
4920         * cmds.c (Fself_insert_command):
4921         * cmds.c (Fself_insert_internal):
4922         * console.c (Fvalid_console_type_p):
4923         * console.c (Fcdfw_console):
4924         * console.c (Fconsole_type):
4925         * console.c (Fconsole_name):
4926         * console.c (Fconsole_device_list):
4927         * console.c (Fconsole_on_window_system_p):
4928         * data.c:
4929         * data.c (Feq):
4930         * data.c (Fold_eq):
4931         * data.c (Fsubr_interactive):
4932         * data.c (Fchar_to_int):
4933         * data.c (Fint_to_char):
4934         * data.c (Fsetcar):
4935         * data.c (Fsetcdr):
4936         * data.c (Fnumber_to_string):
4937         * data.c (Fstring_to_number):
4938         * data.c (Frem):
4939         * database.c (mark_database):
4940         * database.c (finalize_database):
4941         * database.c (Fdatabase_live_p):
4942         * database.c (Fdatabasep):
4943         * device-x.c (Fx_get_resource):
4944         * device.c (Fdfw_device):
4945         * dired.c:
4946         * dired.c (Ffile_name_completion):
4947         * dired.c (Ffile_name_all_completions):
4948         * dired.c (Fuser_name_completion):
4949         * dired.c (Fuser_name_completion_1):
4950         * dired.c (Fuser_name_all_completions):
4951         * doc.c (Fdocumentation):
4952         * doc.c (Fdocumentation_property):
4953         * doc.c (Fsubstitute_command_keys):
4954         * editfns.c:
4955         * editfns.c (Fchar_to_string):
4956         * editfns.c (Fstring_to_char):
4957         * editfns.c (Ftemp_directory):
4958         * editfns.c (Finsert_char):
4959         * editfns.c (Fbuffer_substring_no_properties):
4960         * editfns.c (Fnarrow_to_region):
4961         * editfns.c (Fchar_equal):
4962         * editfns.c (Fchar_Equal):
4963         * editfns.c (Ftranspose_regions):
4964         * emacs.c (Fdump_emacs):
4965         * eval.c (Fthrow):
4966         * eval.c (Fcommand_execute):
4967         * eval.c (Fautoload):
4968         * eval.c (Fbacktrace):
4969         * eval.c (Fbacktrace_frame):
4970         * events.c:
4971         * events.c (Fcopy_event):
4972         * events.c (Fcharacter_to_event):
4973         * events.c (Fevent_button):
4974         * events.c (Fevent_process):
4975         * extents.c:
4976         * extents.c (Fnext_extent_change):
4977         * extents.c (Fextent_property):
4978         * faces.c (Ffacep):
4979         * faces.c (Fmake_face):
4980         * file-coding.c:
4981         * file-coding.c (Fencode_shift_jis_char):
4982         * file-coding.c (Fencode_big5_char):
4983         * fileio.c (Ffile_name_directory):
4984         * fileio.c (Ffile_name_nondirectory):
4985         * fileio.c (Ffile_name_as_directory):
4986         * fileio.c (Fdirectory_file_name):
4987         * fileio.c (Ffile_truename):
4988         * fileio.c (Fsubstitute_in_file_name):
4989         * fileio.c (Ffile_modes):
4990         * fileio.c (Fset_file_modes):
4991         * fileio.c (Fset_default_file_modes):
4992         * fileio.c (Fverify_visited_file_modtime):
4993         * floatfns.c (Facos):
4994         * floatfns.c (Fasin):
4995         * floatfns.c (Fatan):
4996         * floatfns.c (Fcos):
4997         * floatfns.c (Fsin):
4998         * floatfns.c (Ftan):
4999         * floatfns.c (Fbessel_j0):
5000         * floatfns.c (Fbessel_j1):
5001         * floatfns.c (Fbessel_jn):
5002         * floatfns.c (Fbessel_y0):
5003         * floatfns.c (Fbessel_y1):
5004         * floatfns.c (Fbessel_yn):
5005         * floatfns.c (Ferf):
5006         * floatfns.c (Ferfc):
5007         * floatfns.c (Flog_gamma):
5008         * floatfns.c (Fexp):
5009         * floatfns.c (Fexpt):
5010         * floatfns.c (Flog):
5011         * floatfns.c (Flog10):
5012         * floatfns.c (Fsqrt):
5013         * floatfns.c (Fcube_root):
5014         * floatfns.c (Facosh):
5015         * floatfns.c (Fasinh):
5016         * floatfns.c (Fatanh):
5017         * floatfns.c (Fcosh):
5018         * floatfns.c (Fsinh):
5019         * floatfns.c (Ftanh):
5020         * floatfns.c (Fabs):
5021         * floatfns.c (Ffloat):
5022         * floatfns.c (Flogb):
5023         * floatfns.c (Fceiling):
5024         * floatfns.c (Ffloor):
5025         * floatfns.c (Fround):
5026         * floatfns.c (Ftruncate):
5027         * floatfns.c (Ffceiling):
5028         * floatfns.c (Fffloor):
5029         * floatfns.c (Ffround):
5030         * floatfns.c (Fftruncate):
5031         * fns.c (Fstring_equal):
5032         * fns.c (Fstring_lessp):
5033         * fns.c (concat2):
5034         * fns.c (concat3):
5035         * fns.c (vconcat2):
5036         * fns.c (vconcat3):
5037         * fns.c (Fsubstring):
5038         * fns.c (Fassoc):
5039         * fns.c (Fold_assoc):
5040         * fns.c (assoc_no_quit):
5041         * fns.c (Fassq):
5042         * fns.c (Fold_assq):
5043         * fns.c (assq_no_quit):
5044         * fns.c (Frassoc):
5045         * fns.c (Fold_rassoc):
5046         * fns.c (Frassq):
5047         * fns.c (Fold_rassq):
5048         * fns.c (rassq_no_quit):
5049         * fns.c (Fremassoc):
5050         * fns.c (remassoc_no_quit):
5051         * fns.c (Fremassq):
5052         * fns.c (remassq_no_quit):
5053         * fns.c (Fremrassoc):
5054         * fns.c (Fremrassq):
5055         * fns.c (remrassq_no_quit):
5056         * fns.c (Fsort):
5057         * fns.c (Fplist_get):
5058         * fns.c (Fplist_put):
5059         * fns.c (Fplist_remprop):
5060         * fns.c (Fplist_member):
5061         * fns.c (Flax_plist_get):
5062         * fns.c (Flax_plist_put):
5063         * fns.c (Flax_plist_remprop):
5064         * fns.c (Flax_plist_member):
5065         * fns.c (Fequal):
5066         * fns.c (Fold_equal):
5067         * fns.c (Frequire):
5068         * fns.c (Fbase64_encode_region):
5069         * fns.c (Fbase64_encode_string):
5070         * fns.c (Fbase64_decode_region):
5071         * frame.c:
5072         * frame.c (frame_matches_frame_spec):
5073         * frame.c (device_matches_device_spec):
5074         * frame.c (next_frame):
5075         * frame.c (previous_frame):
5076         * frame.c (Fnext_frame):
5077         * frame.c (Fprevious_frame):
5078         * frame.c (Fframe_property):
5079         * frame.c (Fset_frame_height):
5080         * frame.c (Fset_frame_size):
5081         * frame.h:
5082         * glyphs.c:
5083         * glyphs.c (if):
5084         * glyphs.c (decode_error_behavior_flag):
5085         * glyphs.c (Fmake_image_instance):
5086         * indent.c (Findent_to):
5087         * intl.c (Fignore_defer_gettext):
5088         * keymap.c (Fkeymapp):
5089         * keymap.c (Flookup_key):
5090         * lread.c:
5091         * lread.c (Fload_internal):
5092         * lread.c (Feval_buffer):
5093         * lread.c (Feval_region):
5094         * macros.c (Fexecute_kbd_macro):
5095         * marker.c (set_marker_internal):
5096         * marker.c (Fset_marker):
5097         * marker.c (set_marker_restricted):
5098         * marker.c (Fcopy_marker):
5099         * marker.c (noseeum_copy_marker):
5100         * menubar.c:
5101         * menubar.c (Fpopup_menu):
5102         * minibuf.c:
5103         * mule-charset.c (Fcharset_name):
5104         * mule-charset.c (Fchar_charset):
5105         * mule-charset.c (Fchar_octet):
5106         * mule-charset.c (Fsplit_char):
5107         * mule-wnnfns.c (Fwnn_open):
5108         * mule-wnnfns.c (Fwnn_dict_comment):
5109         * mule-wnnfns.c (Fwnn_quit_henkan):
5110         * mule-wnnfns.c (Fwnn_word_toroku):
5111         * mule-wnnfns.c (Fwnn_word_sakujo):
5112         * mule-wnnfns.c (Fwnn_word_use):
5113         * mule-wnnfns.c (Fwnn_hindo_set):
5114         * objects.c:
5115         * objects.c (Fmake_color_instance):
5116         * objects.c (Fmake_font_instance):
5117         * print.c (Fwrite_char):
5118         * process.c:
5119         * process.c (mark_process):
5120         * process.c (print_process):
5121         * process.c (get_process_from_usid):
5122         * process.c (Fprocessp):
5123         * process.c (Fprocess_live_p):
5124         * process.c (Fget_process):
5125         * process.c (Fget_buffer_process):
5126         * process.c (get_process):
5127         * process.c (Fprocess_id):
5128         * process.c (Fprocess_name):
5129         * process.c (Fprocess_command):
5130         * process.c (init_process_io_handles):
5131         * process.c (start_process_unwind):
5132         * process.c (Fstart_process_internal):
5133         * process.c (Fopen_multicast_group_internal):
5134         * process.c (Fset_process_window_size):
5135         * process.c (read_process_output):
5136         * process.c (send_process):
5137         * process.c (Fprocess_tty_name):
5138         * process.c (Fset_process_buffer):
5139         * process.c (Fprocess_buffer):
5140         * process.c (Fprocess_mark):
5141         * process.c (set_process_filter):
5142         * process.c (Fset_process_filter):
5143         * process.c (Fprocess_filter):
5144         * process.c (Fprocess_send_region):
5145         * process.c (Fprocess_send_string):
5146         * process.c (exec_sentinel):
5147         * process.c (Fset_process_sentinel):
5148         * process.c (Fprocess_sentinel):
5149         * process.c (status_notify):
5150         * process.c (Fprocess_status):
5151         * process.c (Fprocess_exit_status):
5152         * process.c (process_send_signal):
5153         * process.c (Fprocess_send_eof):
5154         * process.c (deactivate_process):
5155         * process.c (remove_process):
5156         * process.c (Fdelete_process):
5157         * process.c (kill_buffer_processes):
5158         * process.c (Fprocess_kill_without_query):
5159         * process.c (Fprocess_kill_without_query_p):
5160         * rangetab.c:
5161         * rangetab.c (Fget_range_table):
5162         * rangetab.c (Fput_range_table):
5163         * rangetab.c (Fremove_range_table):
5164         * rangetab.c (Fclear_range_table):
5165         * search.c:
5166         * search.c (Fskip_chars_forward):
5167         * search.c (Fskip_chars_backward):
5168         * search.c (Fskip_syntax_forward):
5169         * search.c (Fskip_syntax_backward):
5170         * search.c (search_command):
5171         * search.c (Freplace_match):
5172         * search.c (Fregexp_quote):
5173         * select.c (Fown_selection_internal):
5174         * select.c (Fselection_owner_p):
5175         * select.c (Fselection_exists_p):
5176         * select.c (Fget_selection_internal):
5177         * specifier.c:
5178         * symbols.c:
5179         * symbols.c (Fintern):
5180         * symbols.c (Fintern_soft):
5181         * symbols.c (Funintern):
5182         * symbols.c (Fapropos_internal):
5183         * symbols.c (Fset_default):
5184         * syntax.c:
5185         * syntax.c (Fsyntax_table_p):
5186         * syntax.c (Fcopy_syntax_table):
5187         * syntax.c (Fset_syntax_table):
5188         * syntax.c (Fchar_syntax):
5189         * syntax.c (syntax_match):
5190         * syntax.c (Fmatching_paren):
5191         * syntax.c (Fforward_word):
5192         * syntax.c (scan_lists):
5193         * syntax.c (Fscan_lists):
5194         * syntax.c (Fscan_sexps):
5195         * syntax.c (Fparse_partial_sexp):
5196         * toolbar.c (Fcheck_toolbar_button_syntax):
5197         * tooltalk.doc:
5198         * window.c:
5199         * window.c (Fwindowp):
5200         * window.c (Fwindow_live_p):
5201         * window.c (Fwindow_point):
5202         * window.c (Fdelete_window):
5203         * window.c (Fnext_window):
5204         * window.c (Fprevious_window):
5205         * window.c (Fother_window):
5206         * window.c (window_loop):
5207         * window.c (Fget_lru_window):
5208         * window.c (Fsplit_window):
5209         * window.c (Fenlarge_window):
5210         * window.c (Fenlarge_window_pixels):
5211         * window.c (Fshrink_window):
5212         * window.c (Fshrink_window_pixels):
5213         * window.c (change_window_height):
5214         * window.c (Fwindow_configuration_p):
5215         * window.c (Fcurrent_window_configuration):
5216         * window.h:
5217         * casefiddle.c (casify_object):
5218         * casefiddle.c (Fupcase):
5219         * casefiddle.c (Fdowncase):
5220         * casefiddle.c (Fcapitalize):
5221         * casefiddle.c (Fupcase_initials):
5222         * casefiddle.c (casify_region_internal):
5223         * casefiddle.c (casify_region):
5224         * casefiddle.c (Fupcase_region):
5225         * casefiddle.c (Fdowncase_region):
5226         * casefiddle.c (Fcapitalize_region):
5227         * casefiddle.c (Fupcase_initials_region):
5228         * casefiddle.c (Fupcase_word):
5229         * casefiddle.c (Fdowncase_word):
5230         * casefiddle.c (Fcapitalize_word):
5231         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5232         Replace 0 with '\0' when working with bytes.
5233         Replace initial "(" with "\(" in docstrings.
5234
5235 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5236
5237         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5238
5239         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5240
5241 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5242
5243         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5244
5245 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5246
5247         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5248         correctly.
5249
5250 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5251
5252         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5253         (inhibit_auto_save_session): New variable.
5254         (vars_of_fileio): Declare and initialize them.
5255         * fileio.c (Fdo_auto_save): Don't create session file if
5256         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5257
5258 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5259
5260         * sgiplay.c (play_internal): C++ compilability.
5261         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5262         * callproc.c (Fold_call_process_internal):
5263         Remove unused vars `env', `first'.
5264         * scrollbar.c (update_scrollbar_instance):
5265         #### unused var `current_window'.
5266         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5267         etc. within #ifdef NOT_YET.
5268         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5269         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5270         * specifier.c (specifier_instance):
5271         #### unused var `tag'.
5272         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5273
5274 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5275
5276         * fns.c (Fbutlast):
5277         * fns.c (list_sort):
5278         * fns.c (Ffillarray):
5279         * fns.c (bytecode_nconc2):
5280         * fns.c (Fnconc):
5281         * fns.c (mapcar1):
5282         * fns.c (Fmapconcat):
5283         Be pedantically 64-bit correct.  For the time when someone will
5284         want to have a list with length > 2**32.
5285
5286         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5287         Work around MIPSpro compiler bug.
5288
5289         * process-unix.c (unix_kill_child_process): Add snarky comment.
5290         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5291
5292         * config.h.in: Oops, _getpt ==> _getpty
5293
5294 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5295
5296         * config.h.in:
5297         * regex.c:
5298         Use void*, not char*, as return type of alloca().
5299
5300         * alloc.c (free_marker): Side effect inside assert expression!
5301
5302 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5303
5304         * mule-charset.c (Fset_charset_ccl_program): To check
5305         if the given ccl program is valid, use setup_ccl_program()
5306         instead of CHECK_VECTOR().
5307         (Fmake_charset): Likewise.
5308
5309 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5310
5311         * faces.c (get_extent_fragment_face_cache_index):
5312         Fix cachel.merged_faces memory leak.
5313
5314 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5315
5316         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5317         Reset MSB of octets obtained by DECODE_SJIS
5318         because of the incompatibility with Emacs.
5319         (ccl_driver)<CCL_ENCODE_SJIS>:
5320         Set MSB of octets before passing them to
5321         ENCODE_SJIS because of the incompatibility
5322         with Emacs.
5323
5324 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5325
5326         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5327         (DECLARE_LRECORD): Undo the last change.
5328         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5329
5330 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5331
5332         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5333         the implementation to lrecord_implementations_table.
5334
5335 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5336
5337         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5338         initial value of `lrecord_type_##c_name' and
5339         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5340         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5341         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5342         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5343         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5344
5345 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5346
5347         * miscplay.c (sndcnv8S_2mono):
5348         (sndcnv2monounsigned):
5349         (sndcnvULaw_2linear):
5350         (sndcnv16swap):
5351         Remove implementation-defined behavior.
5352
5353 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5354
5355         * input-method-xlib.c: Warning suppression.
5356
5357 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5358
5359         * mule-ccl.c: Sync up with Emacs 21.0.90.
5360         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5361         Do nothing.
5362         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5363         Likewise.
5364         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5365         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5366         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5367         leading char belongs to official 2-dimensional charset.
5368         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5369         write the given character as is.  Otherwise,
5370         if it is a multibyte char, convert it by
5371         non_ascii_set_charptr_emchar, then write it.
5372         (CCL_WRITE_STRING): Likewise.
5373         (ccl_get_compiled_code): New function.
5374         (setup_ccl_program): When ccl_prog is invalid,
5375         return -1.
5376         (Fregister_code_conversion_map): New function.
5377         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5378
5379         * mule-ccl.h: Sync up with Emacs 21.0.90.
5380         (Fregister_ccl_program): export it.
5381
5382         * redisplay-msw.c (separate_textual_runs):
5383         If ccl program is not valid, don't do ccl conversion.
5384
5385         * redisplay-x.c (separate_textual_runs): Ditto.
5386
5387         * file-coding.c (Fmake_coding_system):
5388         When type is ccl and value is vector, register it
5389         with a proper symbol.  And checks whether the
5390         given ccl program is valid.
5391         (mule_decode): When calling ccl_driver, if src indicates
5392         NULL pointer, set an empty string instead.
5393         (mule_encode): Likewise.
5394
5395 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5396
5397         The following large batch of changes gets us back to a state of
5398         C++ compilability.  Extbyte is now a char, which means that
5399         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5400
5401         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5402
5403         * sound.c (Fplay_sound): Type correctness.
5404
5405         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5406         (x_get_window_property): Type correctness.
5407         (receive_incremental_selection): unsigned char ==> Extbyte
5408         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5409         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5410         (Fx_store_cutbuffer_internal): Type correctness.
5411
5412         * process-unix.c (try_to_initialize_subtty): Type correctness.
5413
5414         * objects-x.c (x_print_color_instance): Type correctness.
5415         (x_print_font_instance): Type correctness.
5416         (x_list_fonts): SExtbyte ==> Extbyte.
5417         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5418         (x_find_charset_font): SExtbyte ==> Extbyte.
5419         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5420         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5421         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5422         Use bufbyte_strcmp.
5423
5424         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5425         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5426         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5427         (BYTE_C0_P): Use bit ops for char-signedness safety.
5428         (BYTE_C1_P): Use bit ops for char-signedness safety.
5429         (CHARSET_BY_LEADING_BYTE):
5430         (CHARSET_BY_ATTRIBUTES):
5431         Always use inline function.
5432         Use type_checking_assert.
5433         Hide chlook.
5434
5435         * mule-charset.c (non_ascii_charptr_copy_char):
5436         Modify to work with both ASCII and non-ASCII characters.
5437         Improve docs and variable names.
5438         Replace over-clever fall-through switch with a simple loop.
5439         (Lstream_get_emchar_1):
5440         Replace over-clever fall-through switch with a simple loop.
5441
5442         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5443         Warning suppression.
5444
5445         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5446         the return value of Lstream_getc, which could be EOF as well.
5447
5448         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5449
5450         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5451         APIs can be used on Extbytes without casts.  Risky!
5452         (SExtbyte): Remove.
5453         (UExtbyte): Remove.
5454
5455         * input-method-xlib.c (XIM_init_device):
5456         Use Xlib.h instead of IntrinsicP.h.
5457         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5458         which will break in X11R7.
5459         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5460         to call XRegisterIMInstantiateCallback with correct types.
5461
5462         * gui-x.c (button_item_to_widget_value): Type correctness.
5463
5464         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5465
5466         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5467         (xbm_instantiate_1): Type correctness.
5468         (BUILD_GLYPH_INST):  Type correctness.
5469
5470         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5471
5472         * file-coding.c:
5473         (decode_coding_sjis):
5474         (decode_coding_big5):
5475         (decode_coding_ucs4):
5476         (decode_coding_utf8):
5477         (decode_coding_iso2022):
5478         (decode_coding_no_conversion):
5479         Make all decoding functions take an Extbyte * arg.
5480         (encode_coding_sjis):
5481         (encode_coding_big5):
5482         (encode_coding_ucs4):
5483         (encode_coding_utf8):
5484         (encode_coding_iso2022):
5485         (encode_coding_no_conversion):
5486         Make all encoding functions take a Bufbyte * arg.
5487         Use size_t instead of unsigned int for memory sizes.
5488         Only cast to unsigned char whenever dereferencing Extbyte *.
5489
5490         * doc.c (unparesseuxify_doc_string): Type correctness.
5491
5492         * console-x.c (split_up_display_spec):
5493         Rewrite without using details of internal string representation.
5494         (x_semi_canonicalize_device_connection): Type correctness.
5495
5496         * config.h.in:
5497         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5498         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5499         (HAVE_XFREE386): Removed.
5500
5501         * buffer.h (DEC_CHARPTR): `const' correctness.
5502         (bufbyte_strcmp): New.
5503         (bufbyte_memcmp): New.
5504
5505         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5506
5507         * buffer.h (XCHAR_OR_CHAR_INT):
5508         Always use inline function.
5509         Remove redundant type checking assert() - XINT will abort quite nicely.
5510
5511 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5512
5513         * search.c (Freplace_match): Set newtext to an empty string.
5514
5515 2000-10-10  Martin Buchholz  <martin@xemacs.org>
5516
5517         * s/decosf1-3.h: Remove #include of stropts.h
5518         * s/ptx.h: Remove #include of stropts.h
5519         * s/usg5-4.h: Remove #include of stropts.h
5520         * sysproc.h:
5521         * config.h.in:
5522         Use stropts.h, not sys/stropts.h.
5523         Use strtio.h, not sys/strtio.h.
5524
5525 2000-10-04  Martin Buchholz <martin@xemacs.org>
5526
5527         * XEmacs 21.2.36 is released.
5528
5529 2000-09-21  Andy Piper  <andy@xemacs.org>
5530
5531         * glyphs-x.c (x_redisplay_widget): make sure non-structural
5532         changes still involve copying the widget tree.
5533         (update_widget_face): make sure a change is register in the widget
5534         tree. Call update_tab_widget_face appropriately.
5535         (update_tab_widget_face): ditto.
5536         (x_tab_control_redisplay): make sure non-structural changes still
5537         involve copying the widget tree.
5538
5539 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
5540
5541         * lread.c (locate_file): Check the path element is non-nil.
5542
5543 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5544
5545         * lisp.h: Warning suppression for SCO compilers.
5546
5547         * redisplay-tty.c (reset_tty_modes): Fix crash.
5548         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5549
5550 2000-09-27  Martin Buchholz  <martin@xemacs.org>
5551
5552         Big signal/process handling overhaul.  Bugs fixed:
5553         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5554         M-x comint-kill-subjob should work for both values nil and t of
5555         process-connection-type. It was broken on most platforms.
5556         Testing on Irix and Cygwin still needed.  Other plaforms tested.
5557         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
5558         * process-unix.c: Signal/Process handling overhaul.
5559         (pty_name): make 64 bytes, as `expect' does, for paranoia.
5560         (allocate_pty): Use all available modern methods of allocating
5561         ptys, falling back to old style BSD allocation as a last resort.
5562         Use allegedly more secure Unix98 pty allocation by default.
5563         (allocate_pty_the_old_fashioned_way): New. the last resort.
5564         (unix_create_process): Push ptem, ldterm, ttcompat where
5565         available.  Autoconfiscate.
5566         (try_to_initialize_subtty): New.
5567         (unix_kill_child_process): Proper signal handling for ptys on most
5568         platforms, using special knowledge of AIX, BSD, etc...
5569         (unix_create_process): Always disconnect_controlling_terminal() for
5570         subprocesses, whether using ptys or not.
5571         * process.h: Remove old getpt-dependent PTY code.
5572         * process.c (Fprocess_send_signal): New, obvious generic function.
5573         (decode_signal): New.
5574         (Finterrupt_process):
5575         (Fkill_process):
5576         (Fquit_process):
5577         (Fstop_process):
5578         (Fcontinue_process):
5579         (Fsignal_process): Use decode_signal.
5580         (process_send_signal):
5581         Many docstring corrections.
5582         Allow any signal to be sent to a process object.
5583         * config.h.in: Add symbols for big signal/process overhaul.
5584         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5585         * sysproc.h: Include process-related headers, where available:
5586         sys/stropts.h sys/strtio.h pty.h libutil.h
5587         * s/irix4-0.h:
5588         * s/irix5-0.h:
5589         * s/cygwin32.h:
5590         * s/gnu.h:
5591         * s/linux.h:
5592         * s/hpux.h:
5593         * s/aix3-1.h:
5594         Remove old S&M pty stuff.
5595         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
5596         * systty.h: Simplify cpp hackery, improve comments.
5597         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
5598
5599         * editfns.c (Fformat_time_string):
5600         Be a little more paranoid with the return value of ctime.
5601
5602         * fileio.c (check_executable):
5603         (check_writable):
5604         Use symbolic constants X_OK, W_OK.
5605
5606         * console-x.c (split_up_display_spec): Fix a warning.
5607
5608 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5609
5610         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
5611         * ntproc.c (sys_spawnve): make_string ==> build_string
5612         Small clarity improvements.
5613
5614 2000-09-30  Martin Buchholz  <martin@xemacs.org>
5615
5616         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
5617
5618         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
5619
5620         * config.h.in (HAVE_STRCASECMP): Remove.
5621
5622 2000-09-29  Martin Buchholz  <martin@xemacs.org>
5623
5624         * redisplay-output.c (redisplay_output_pixmap):
5625         Cleaner and possibly more 64-bit correct code.
5626
5627 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5628
5629         * dumper.c (pdump_load_finish): move restoration of
5630         `noninteractive1' to emacs.c (main_1).
5631         * emacs.c (main_1): protect LISP-visible command-line flags
5632         from pdump_load().
5633
5634 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
5635
5636         * Makefile.in.in (versionclean):  Use EXE_TARGET and
5637         DUMP_TARGET instead of literal program names.
5638
5639 2000-09-20  Martin Buchholz  <martin@xemacs.org>
5640
5641         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
5642
5643 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5644
5645         * *: Spelling mega-patch
5646
5647 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5648
5649         * fns.c (bad_bad_turtle):
5650         Delete "Eek!" comment, since we fixed the bug to which it refers.
5651
5652 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5653
5654         * alloca.c: Replace REGISTER with register.
5655
5656 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
5657
5658         * file-coding.c (ucs_to_char): Use countof.
5659
5660 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5661
5662         * file-coding.c: (ucs_to_char):
5663         (complex_vars_of_file_coding):
5664         Use countof instead of sizeof.
5665         Use CHECK_NATNUM instead of CHECK_INT.
5666
5667         * sysdep.c (strcasecmp): Remove.
5668         * device-x.c (ascii_strcasecmp): New.
5669         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
5670         Avoid using non-standard non-portable strcasecmp.
5671
5672 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5673
5674         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
5675         * font-lock.c: remove reference to emacsfns.h.
5676         * search.c: small doc improvement.
5677         * event-Xt.c: correct file names in comments.
5678         * console-x.h Correct file names in comments.
5679         * frame.c: Correct file names in comments.
5680         * event-stream.c: remove Energize from comments.
5681
5682 2000-09-15  Martin Buchholz  <martin@xemacs.org>
5683
5684         * symeval.h (DEFERROR_STANDARD):
5685         (DEFERROR):
5686         (DEFSYMBOL):
5687         (DEFSYMBOL_NO_DUMP):
5688         (DEFSYMBOL_MULTIWORD_PREDICATE):
5689         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
5690         (DEFKEYWORD):
5691         The construct &##name is not sensible C.
5692         Fixes compilation errors with Unixware native compiler.
5693
5694 2000-09-14  Martin Buchholz  <martin@xemacs.org>
5695
5696         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
5697         (next_frame_internal): Removed.  We now just have next_frame.
5698         (next_frame):
5699         Write a simpler and cleaner one-pass algorithm.
5700         Remove called_from_delete_device arg and #ifdefed-out code.
5701         (previous_frame):
5702         Renamed from prev_frame.  Update callers.
5703         Cleaned up to have an analogous implementation to next_frame.
5704         (other_visible_frames_internal): Remove the
5705         called_from_delete_device bogus arg, and hence, remove this
5706         function.  Just use other_visible_frames().
5707
5708         * window.c (Fnext_window):
5709         Prettify docstring.
5710         Since next_frame() is guaranteed to return a frame, remove check
5711         for nil inserted in previous patch.
5712         (Fprevious_window):
5713         Prettify docstring.
5714         Make code look more like Fnext_window.
5715         (window_loop):
5716         Respect the `console' arg when iterating through windows.
5717         Fixes bug: (get-buffer-window buffer t device) not respecting
5718         the `device' arg.
5719         This function needs more work, as others have pointed out.
5720
5721         * frame.h: Rename prev_frame to previous_frame.
5722         device_matches_console_spec no longer takes a `frame' arg.
5723
5724         * s/gnu.h:
5725         * s/linux.h:
5726         * s/hpux.h:
5727         Use EMACS_BLOCK_SIGNAL instead of sigblock.
5728         From "Golubev I. N." <gin@mo.msk.ru>.
5729
5730         * make-src-depend: Fix typo.
5731
5732 2000-09-13  Martin Buchholz  <martin@xemacs.org>
5733
5734         * window.c (Fnext_window):
5735         next_frame() might return nil, not a frame.
5736         Fixes this crash:
5737         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5738
5739         * frame.c (next_frame_internal):
5740         We've passed a frame if we've passed its device.
5741         Fixes this crash:
5742         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5743 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
5744
5745 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5746
5747         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
5748         Allow option to suppress accelerators in menu/dialog items.
5749         (populate_or_checksum_helper): Pass dialog title through above.
5750
5751 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5752
5753         * event-msw.c (mswindows_key_to_emacs_keysym):
5754         Add "pause" key, fix "menu" key.
5755
5756 2000-09-09  Martin Buchholz  <martin@xemacs.org>
5757
5758         * eval.c (reinit_vars_of_eval):
5759         Increase max_lisp_eval_depth to 1000,
5760         required for thai-xtis.el to byte-compile under some circumstances.
5761
5762 2000-09-04  Martin Buchholz  <martin@xemacs.org>
5763
5764         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
5765         From Kenichi Handa.
5766
5767 2000-09-01  Martin Buchholz  <martin@xemacs.org>
5768
5769         * make-src-depend: Make the generated Makefiles smaller.
5770
5771         * s/hpux.h (SETUP_SLAVE_PTY):
5772         Provide a %d in the format string for the errno argument.
5773
5774         * editfns.c (Ftemp_directory):
5775         Warning fix.
5776         Avoid buffer overrun on very long file name.
5777
5778         * input-method-xlib.c (XIM_init_device):
5779         6th parameter of XRegisterIMInstantiateCallback has different
5780         pointer types on different OSes, so simply cast to (void *).
5781
5782         * unexhp9k800.c: Warning fixes.  Fiddly changes.
5783
5784         * sysdll.c (dll_open):
5785         shl_load will hang hard if passed a NULL filename.
5786         Simply return NULL for compatibility with dlopen.
5787         * sysdll.c: Conform to XEmacs coding standards.
5788
5789         * sysdep.c (get_pty_max_bytes):
5790         Support pty input lines longer than 512 bytes on HP-UX 10.20.
5791
5792 2000-08-31  Martin Buchholz  <martin@xemacs.org>
5793
5794         * tooltalk.c: Add #include <syssignal.h>
5795
5796 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
5797
5798         * s/hpux.h: Don't use undefined function sigunblock().
5799
5800 2000-08-31  Martin Buchholz  <martin@xemacs.org>
5801
5802         * config.h.in: Add HAVE_BALLOON_HELP.
5803         * emacs.c: Use HAVE_BALLOON_HELP.
5804         * Makefile.in.in (x_objs):
5805         Make Balloon Help conditional on finding shape.h.
5806
5807 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
5808
5809         * syntax.c (regex_emacs_buffer_p): New variable.
5810         * syntax.h (regex_emacs_buffer_p): extern.
5811         * search.c (looking_at_1):
5812         (string_match_1):
5813         (fast_string_match):
5814         (search_buffer): Set regex_emacs_buffer_p.
5815         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
5816         when before_dot, at_dot, after_dot.
5817
5818 2000-08-23  Andy Piper  <andy@xemacs.org>
5819
5820         * gui-x.c (popup_selection_callback): Only set action_occurred
5821         when we really have an image instance.
5822         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
5823
5824 2000-08-23  Andy Piper  <andy@xemacs.org>
5825
5826         * gui-msw.c (mswindows_handle_gui_wm_command): set
5827         action_occurred.
5828         * gui-x.c (popup_selection_callback): ditto.
5829
5830         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
5831         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
5832         (struct Lisp_Image_Instance): add action_occurred flag.
5833
5834         * glyphs.c (redisplay_subwindow): use action_occurred flag.
5835         (image_instance_changed): ditto.
5836         (reset_frame_subwindow_instance_cache): only unmap windows - do
5837         not remove them from the cache also.
5838
5839         * glyphs-widget.c (tab_control_update): better debug.
5840         (progress_gauge_update): ditto.
5841         (layout_update): ditto.
5842         (layout_instantiate): ditto.
5843         (tab_control_order_only_changed): cope with null pending items.
5844
5845         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
5846         debug. Force selection of an item when an action occurred. Cope
5847         with null pending_items.
5848         (mswindows_progress_gauge_redisplay): better debug.
5849         * glyphs-x.c (x_tab_control_redisplay): ditto.
5850
5851         * redisplay.c (redisplay_frame): reset the frame cache if the
5852         frame is garbaged.
5853
5854         * window.c (Fset_window_configuration): potentially re-enable
5855         frame cache reset.
5856         (window_unmap_subwindows): need to finalize instances here since
5857         it is only used in mark_window_as_deleted.
5858
5859 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
5860
5861         * nas.c (SndOpenDataForReading):
5862         nas.c (WaveOpenDataForReading):
5863         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
5864         Somehow escaped from the 2000-08-14 patch.
5865
5866 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5867
5868         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
5869         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
5870
5871 2000-08-21  Andy Piper  <andy@xemacs.org>
5872
5873         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
5874         window if it is not already displayed.
5875
5876         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
5877         it is not already displayed.
5878
5879         * window.c (Fset_window_configuration): don't reset the frame
5880         cache.
5881
5882         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
5883         instances from the frame cache if we are actually finalizing them.
5884         (reset_frame_subwindow_instance_cache): reset frame cache only
5885         after unmapping everything.
5886         (map_subwindow): set displayed flag after mapping.
5887
5888 2000-08-21  Martin Buchholz  <martin@xemacs.org>
5889
5890         * data.c (indirect_function):
5891         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
5892
5893         * eval.c (function_argcount):
5894         Use original function when signaling errors.
5895
5896 2000-08-18  Andy Piper  <andy@xemacs.org>
5897
5898         * frame.c (delete_frame_internal): use new
5899         free_frame_subwindow_instances name.
5900
5901         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
5902         (add_tab_item): make return type correct.
5903         (mswindows_tab_control_instantiate): assert index of tab.
5904         (mswindows_tab_control_redisplay): Re-code to use
5905         gui_item_equal_sans_selected and gui_item_list_find_selected.
5906
5907         * glyphs-widget.c (tab_control_update): Correct comment.
5908
5909         * window.c (window_unmap_subwindows): use new
5910         unmap_subwindow_instance_cache_mapper.
5911         (window_unmap_subwindows_cache_mapper): deleted.
5912         (Fset_window_configuration): comparisons should now be with
5913         EQ. Preserve the subwindow instance cache across configuration
5914         changes.
5915         (allocate_window): ditto.
5916         (make_dummy_parent): ditto.
5917
5918         * glyphs.c (free_frame_subwindow_instances): rename from
5919         free_frame_subwindow_instance_cache. finalize all instances rather
5920         than just those in the display cache.
5921         (finalize_all_subwindow_instances): walk windows unmapping and
5922         finalizing subwindows.
5923         (unmap_subwindow_instance_cache_mapper): moved from
5924         window.c. Allow finalization as well as unmapping.
5925
5926         * gui.c (gui_item_list_find_selected): new function.
5927
5928         * gui.h (gui_item_list_find_selected): declare.
5929
5930         * glyphs-x.c (x_tab_control_redisplay): pick tab
5931         explicitly. Re-code to use gui_item_equal_sans_selected and
5932         gui_item_list_find_selected.
5933
5934         * glyphs-x.h: add lwlib-utils.h
5935
5936         * buffer.c (Frecord_buffer): undo previous change.
5937
5938 2000-08-09  Vin Shelton  <acs@xemacs.org>
5939
5940         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
5941         possible.  Create temporary files more securely.  The patch was
5942         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
5943         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
5944         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
5945         for details.
5946
5947 2000-08-07  Ben Wing  <ben@xemacs.org>
5948
5949         * getloadavg.c: remove duplicate (and windows-breaking)
5950         includes of fcntl.h and sys/file.h.
5951
5952         * nt.c: remove duplicate getloadavg() definition.
5953
5954         * sysdll.h (Qdll_filename_encoding): add missing stand-in
5955         encodings.
5956
5957 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5958
5959         * eval.c (function_argcount): If function needs to be autoloaded
5960         actually use the loaded definition.
5961         GCPRO function.
5962
5963 2000-08-05  Ben Wing  <ben@xemacs.org>
5964
5965         * getloadavg.c: add prototype for getloadavg().  remove
5966         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
5967         of the code).  remove duplicate header includes.
5968
5969         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
5970
5971         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
5972         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
5973         useful load average.
5974
5975         * alloc.c (reinit_alloc_once_early): removed references to
5976         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
5977         the lisp vars are the only things referencing the malloc_sbrk_*
5978         vars, and they were already if 0'd out.  these vars only exist
5979         in the older malloc.c, which is basically unused, and they're
5980         only for informational purposes.
5981
5982         * m\*.h: removed useless VIRT_ADDR_VARIES.
5983
5984         * m\powerpc.h: removed stray NO_ARG_ARRAY.
5985
5986 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
5987
5988         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
5989         color if the image is a mono pixmap.
5990
5991 2000-07-30  Ben Wing  <ben@xemacs.org>
5992
5993         * Makefile.in.in (release):
5994         Remove stray @.
5995
5996         * buffer.c (directory_is_current_directory):
5997         * dired-msw.c (mswindows_get_files):
5998         * dired.c:
5999         * dired.c (Fdirectory_files):
6000         * dired.c (file_name_completion_stat):
6001         * dired.c (Ffile_attributes):
6002         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6003         preprocessor tricks, to avoid problems on some machines
6004         (e.g. SCO).
6005
6006         * callproc.c (egetenv): GC docs.
6007
6008         * console-msw.h:
6009         * console-msw.h (struct mswindows_dialog_id):
6010         * lrecord.h (lrecord_type):
6011         New object for use with MSW dialogs.
6012
6013         * console.h (struct console_methods):
6014         New enable/disable frame methods, for proper modal dialogs.
6015
6016         * device-msw.c (msprinter_default_printer): Fix to follow
6017         proper Mule conventions.
6018
6019         * device-msw.c:
6020         * device-msw.c (signal_open_printer_error):
6021         * device-msw.c (msprinter_init_device):
6022         * device-msw.c (ensure_not_printing):
6023         * device-msw.c (plist_get_margin):
6024         * device-msw.c (Fmsprinter_select_settings):
6025         * device-msw.c (finalize_devmode):
6026         * device-msw.c (Fmsprinter_settings_despecialize):
6027         * device-msw.c (signal_enum_priner_error):
6028         * extents.c (decode_extent):
6029         * extents.c (decode_map_extents_flags):
6030         * extents.c (decode_extent_at_flag):
6031         * extents.c (Fextent_at):
6032         * extents.c (Fextents_at):
6033         * extents.c (symbol_to_glyph_layout):
6034         [[[[2]]]] Use structured errors.
6035
6036         * dialog-msw.c:
6037         * dialog-msw.c (mswindows_is_dialog_msg):
6038         * dialog-msw.c (mark_mswindows_dialog_id):
6039         * dialog-msw.c (dialog_proc):
6040         * dialog-msw.c (handle_question_dialog_box):
6041         * dialog-msw.c (syms_of_dialog_mswindows):
6042         Define new object to clean up marking; use it as a dialog identifier.
6043         Call new delete-dialog-box-hook.
6044
6045         * dialog-x.c (dbox_selection_callback):
6046         * dialog-x.c (dbox_descriptor_to_widget_value):
6047         * dialog-x.c (x_make_dialog_box_internal):
6048         Call new delete-dialog-box-hook.
6049         Return an id.
6050
6051         * dialog.c:
6052         * dialog.c (syms_of_dialog):
6053         * dialog.c (vars_of_dialog):
6054         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6055
6056         * eval.c:
6057         * eval.c (signal_call_debugger):
6058         when noninteractive, output stack traces on the console instead
6059         of in a (never-seen) buffer.
6060
6061         * eval.c (signal_type_error):
6062         * eval.c (invalid_argument_2):
6063         * lisp.h:
6064         new funs for use w/structured errors.
6065
6066         * event-Xt.c:
6067         * event-Xt.c (x_to_emacs_keysym):
6068         * event-Xt.c (describe_event):
6069         * event-Xt.c (emacs_Xt_event_handler):
6070         * event-Xt.c (vars_of_event_Xt):
6071         * event-msw.c:
6072         * event-msw.c (mswindows_wnd_proc):
6073         * event-msw.c (vars_of_event_mswindows):
6074         rename {x,mswindows}-debug-events to debug-{}-events for
6075         consistency with other debug-foo variables.
6076
6077         * event-stream.c:
6078         document next-event more clearly.
6079
6080         * fileio.c (Ffile_name_directory):
6081         * fileio.c (Ffile_name_nondirectory):
6082         * fileio.c (Funhandled_file_name_directory):
6083         * fileio.c (file_name_as_directory):
6084         * fileio.c (Ffile_name_as_directory):
6085         * fileio.c (directory_file_name):
6086         * fileio.c (Fdirectory_file_name):
6087         * fileio.c (Fmake_temp_name):
6088         * fileio.c (Ffile_truename):
6089         * fileio.c (Fsubstitute_in_file_name):
6090         * fileio.c (expand_and_dir_to_file):
6091         * fileio.c (barf_or_query_if_file_exists):
6092         * fileio.c (check_executable):
6093         * fileio.c (Ffile_exists_p):
6094         * fileio.c (Ffile_writable_p):
6095         * fileio.c (Ffile_directory_p):
6096         * fileio.c (Ffile_regular_p):
6097         * fileio.c (Ffile_modes):
6098         * fileio.c (Ffile_newer_than_file_p):
6099         * fileio.c (Fverify_visited_file_modtime):
6100         * fileio.c (Fset_visited_file_modtime):
6101         * fileio.c (auto_save_1):
6102         (1). (2).
6103         fix up gcpro's.
6104
6105         * frame-msw.c:
6106         * frame-msw.c (mswindows_init_frame_1):
6107         * frame-msw.c (mswindows_enable_frame):
6108         * frame-msw.c (error_frame_unsizable):
6109         * frame-msw.c (msprinter_init_frame_1):
6110         * frame-msw.c (msprinter_init_frame_3):
6111         * frame-msw.c (console_type_create_frame_mswindows):
6112         (2).
6113         implement new enable/disable frame methods.
6114
6115         * frame-x.c:
6116         * frame-x.c (x_enable_frame):
6117         * frame-x.c (console_type_create_frame_x):
6118         implement new enable/disable frame methods.
6119
6120         * frame.c:
6121         * frame.c (Fdisable_frame):
6122         * frame.c (syms_of_frame):
6123         * frame.h (struct frame):
6124         implement new enable/disable frame methods/functions.
6125
6126         * general-slots.h:
6127         add initial-focus.
6128
6129         * glyphs-msw.c (mswindows_widget_instantiate):
6130         comment that initial-focus should be implemented.
6131
6132         * glyphs-widget.c:
6133         * glyphs-widget.c (check_valid_instantiator):
6134         * glyphs-widget.c (check_valid_orientation):
6135         * glyphs-widget.c (check_valid_tab_orientation):
6136         * glyphs-widget.c (check_valid_justification):
6137         * glyphs-widget.c (check_valid_border):
6138         * glyphs-widget.c (check_valid_callback):
6139         * glyphs-widget.c (check_valid_int_or_function):
6140         * glyphs-widget.c (check_valid_string_or_vector):
6141         * glyphs-widget.c (check_valid_item_list_1):
6142         * glyphs-widget.c (widget_validate):
6143         * glyphs-widget.c (combo_box_validate):
6144         * glyphs-widget.c (widget_instantiate):
6145         * glyphs-widget.c (syms_of_glyphs_widget):
6146         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6147         * glyphs-widget.c (image_instantiator_combo_box):
6148         * glyphs-widget.c (image_instantiator_scrollbar):
6149         * glyphs-widget.c (image_instantiator_tab_control):
6150         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6151         (2).
6152         support (unimplemented) keyword initial-focus.
6153         reindent long macros.
6154
6155         * glyphs-x.c (x_redisplay_widget):
6156         * glyphs-x.c (x_button_instantiate):
6157         * glyphs-x.c (x_button_redisplay):
6158         * glyphs-x.c (x_progress_gauge_instantiate):
6159         * glyphs-x.c (x_edit_field_instantiate):
6160         * glyphs-x.c (x_combo_box_instantiate):
6161         * glyphs-x.c (x_tab_control_instantiate):
6162         * glyphs-x.c (x_label_instantiate):
6163         * gui-x.c:
6164         * gui-x.c (button_item_to_widget_value):
6165         * gui-x.c (gui_items_to_widget_values_1):
6166         * gui-x.c (gui_item_children_to_widget_values):
6167         * gui-x.c (gui_items_to_widget_values):
6168         * gui-x.h:
6169         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6170         add new flag to gui-parsing routines to indicate whether
6171         accelerator specs should be supported.
6172
6173         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6174
6175         * glyphs.h (struct Lisp_Image_Instance):
6176         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6177         add initial-focus flag.
6178
6179         * gui.c:
6180         * gui.c (syms_of_gui):
6181         * gui.c (vars_of_gui):
6182         clean up menu-no-selection-hook.
6183
6184         * gui.h:
6185         support delete-dialog-box-hook.
6186
6187         * lread.c (Fload_internal):
6188         * lread.c (locate_file_in_directory_mapper):
6189         (1).
6190
6191         * lrecord.h:
6192         * lrecord.h (struct toolbar_button):
6193         * lrecord.h (syms_of_toolbar):
6194         document how to create a new object.
6195
6196         * menubar-msw.c (mswindows_char_is_accelerator):
6197         may be called on frames w/o menus.
6198
6199         * menubar.c (vars_of_menubar):
6200         clean up :filter docs.
6201
6202         * nt.c (readdir):
6203         * ntproc.c:
6204         (1).
6205
6206         * process-nt.c:
6207         * process-nt.c (validate_signal_number):
6208         * process-nt.c (signal_cannot_launch):
6209         * process-nt.c (nt_create_process):
6210         * process-nt.c (nt_send_process):
6211         * process-nt.c (nt_kill_child_process):
6212         * process-nt.c (nt_open_network_stream):
6213         * process-nt.c (syms_of_process_nt):
6214         (2).
6215         delete quote-handling.  call new lisp code that does it better.
6216
6217         * process-unix.c (connect_to_file_descriptor):
6218         * process-unix.c (allocate_pty):
6219         * process-unix.c (unix_send_process):
6220         * process-unix.c (unix_kill_child_process):
6221         * process-unix.c (unix_open_network_stream):
6222         * process-unix.c (unix_open_multicast_group):
6223         (1). (2).
6224
6225         * process.c:
6226         * process.c (Fstart_process_internal):
6227         (2).  need to canonicalize process path even if absolute.
6228
6229         * select-msw.c (symbol_to_ms_cf):
6230         * select-msw.c (ms_cf_to_symbol):
6231         * select-msw.c (cf_is_autofreed):
6232         * select-msw.c (mswindows_destroy_selection):
6233         * select.c:
6234         * select.c (syms_of_select):
6235         * select.h:
6236         support dibv5, fix bugs. (from Mike Alexander)
6237
6238         * select.c (Fget_selection_internal):
6239         * select.c (select_convert_out):
6240
6241         * sysdep.c:
6242         * sysdep.c (xemacs_stat):
6243         renamed.
6244
6245         * sysdep.c (mkdir):
6246         * sysdep.c (rmdir):
6247         but keep original stat() here because we provide encapsulation
6248         around these funs.
6249
6250         * sysfile.h:
6251         * sysfile.h (fstat):
6252         remove stat garbage.
6253
6254         * syswindows.h:
6255         fix X/MSW conflict.
6256         don't include tchar.h.  it's inappropriate because it makes
6257         compile-time distinctions when we want runtime distinctions.
6258         (we provide our own tchar replacements)
6259
6260         * toolbar.c:
6261         use default object printer for toolbar-button.
6262
6263         * unexcw.c:
6264         make sure we don't encapsulate.
6265
6266         * window.c (vars_of_window):
6267         emphasize that temp-buffer-show-hook is obsolete.
6268
6269 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6270
6271         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6272         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6273
6274         * events.c (Fevent_timestamp_lessp):
6275         Not 64-bit clean.  Use EMACS_INT, not int.
6276
6277 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6278
6279         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6280         unsigned int and changed the last enum to
6281         lrecord_type_last_built_in_type.
6282         (lrecord_implementations_table): changed prototype to know how
6283         long the array is supposed to be.
6284         (lrecord_type_count): new unsigned int to keep track of the
6285         current number of lisp lrecord types.
6286         (DEFINE_EXTERNAL_LRECORD):
6287         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6288         dynamic-modules to declare new lisp types. They are the same
6289         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6290         int for each new type, and increment lrecord_type_count by 1.
6291
6292         * alloc.c (lrecord_implementations_table): Changed to reference
6293         lrecord_type_last_built_in_type for the size of the array.
6294         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6295
6296 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6297
6298         * glyphs.h (check_valid_item_list): Renamed from
6299         check_valid_item_list_1.
6300
6301 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6302
6303         * select.c (Qselect_coerce): New.
6304         * select.c (Vselection_coercion_alist): New.
6305         * select.c (syms_of_select): Declare.
6306         * select.c (get-selection-internal): Use it.
6307         Use the new select-coerce functionality.
6308
6309         * select.c (select_coerce): New.
6310         * select.h (select_coerce): Declare.
6311         New function to coerce one type of data into another.
6312
6313 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6314
6315         * callproc.c (Fcall_process_internal):
6316         (Fcall_process_internal):
6317         * process-unix.c (unix_create_process):
6318         Save and restore the value of errno, so that error messages are accurate.
6319
6320 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6321
6322         * elhash.c (print_hash_table):
6323         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6324         Prettify docstrings and indentation.
6325
6326 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6327
6328         * window.c (Fwindow_pixel_edges): Subtract frame border and
6329         gutter size.
6330
6331 2000-07-31  Andy Piper  <andy@xemacs.org>
6332
6333         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6334         will acknowledge the change.
6335
6336         * glyphs.h: declare tab_control_order_only_changed.
6337
6338         * glyphs-x.c (x_tab_control_redisplay): use
6339         tab_control_order_only_changed.
6340
6341         * glyphs-widget.c (tab_control_order_only_changed): new function.
6342
6343         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6344         tab_control_order_only_changed.
6345
6346         * gui.c (gui_item_equal_sans_selected): new function.
6347         (gui_item_equal): use it.
6348
6349         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6350         :properties in favor of :items..
6351
6352         * glyphs-widget.c (check_valid_item_list): rename from
6353         check_valid_item_list_1.
6354         (check_valid_item_list_1): renamed.
6355         (combo_box_validate): deprecate :properties in favor of :items.
6356         (widget_instantiate): ditto.
6357         (tab_control_update): ditto.
6358         (image_instantiator_combo_box): ditto.
6359         (image_instantiator_tree_view): ditto.
6360         (image_instantiator_tab_control): ditto.
6361         (layout_post_instantiate): remove dead code.
6362
6363         * print.c (debug_print_no_newline): only write to debugger if in
6364         WIN32_NATIVE.
6365
6366         * elhash.c (Fmake_hash_table): update doc string.
6367
6368         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6369         messages whilst in GC. This at least stops XEmacs crashing but has
6370         the potential for wierd behaviour.
6371
6372 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6373
6374         * config.h.in:
6375         Make existence of s&m files optional.
6376
6377         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6378         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6379         * s/gnu.h: Remove HAVE_GETLOADAVG.
6380         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6381         * s/sol2.h: Remove HAVE_GETLOADAVG.
6382         * lisp.h: Remove getloadavg() declaration.
6383         * fns.c:
6384         Include <sys/loadavg.h> if available.
6385         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6386         * config.h.in:  Group together getloadavg()-related macros.
6387         Use only configure-time tests to detect getloadavg().
6388
6389 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6390
6391         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6392
6393 2000-07-25  Andy Piper  <andy@xemacs.org>
6394
6395         * syswindows.h: add tchar.h for native builds.
6396
6397         * frame.c (syms_of_frame): remove set-glyph-image.
6398
6399         * general-slots.h: add Qset_glyph_image.
6400
6401         * glyphs-widget.c (layout_update): add domain arg to
6402         set-glyph-image.
6403         (syms_of_glyphs_widget): remove set-glyph-image.
6404
6405 2000-07-23  Ben Wing  <ben@xemacs.org>
6406
6407         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6408         Vpopup_frame_list.
6409
6410 2000-07-22  Andy Piper  <andy@xemacs.org>
6411
6412         * symsinit.h: add syms_of_win32().
6413
6414         * gui-msw.c (syms_of_gui_mswindows): remove
6415         Fmswindows_shell_execute.
6416         (Fmswindows_shell_execute): moved to win32.c.
6417
6418         * emacs.c (main_1): add syms_of_win32 ().
6419
6420         * win32.c (init_potentially_nonexistent_functions): rewrite in
6421         compiler-friendly terms.
6422         (Fmswindows_shell_execute): move here from gui-msw.c.
6423         (syms_of_win32): new.
6424
6425         * device-msw.c (Fmswindows_printer_list): clean up args to
6426         EnumPrinters.
6427         Don't include tchar under cygwin or mingw.
6428         (msprinter_default_printer): make cygwin-friendly.
6429
6430 2000-07-21  Andy Piper  <andy@xemacs.org>
6431
6432         * glyphs-widget.c (image_instantiator_tree_view): use tab
6433         control's update function.
6434         (layout_property): new function. Retrieve items.
6435
6436         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6437         function. Re-populate the tree view from the pending items.
6438
6439         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6440         is designated the parent if the domain is an image instance. This
6441         is needed so that dirtiness can be cascade up the hierarchy and
6442         thus for layout children to be redisplayed correctly.
6443         (allocate_image_instance): rename glyph -> parent.
6444
6445         * redisplay.h: change redisplay_output_layout signature.
6446
6447         * redisplay-msw.c (mswindows_output_display_block): use domain
6448         arg.
6449
6450         * redisplay-x.c (x_output_display_block): use domain arg.
6451
6452 2000-07-10  Andy Piper  <andy@xemacs.org>
6453
6454         * window.c (Fset_window_configuration): add comment.
6455
6456         * redisplay-output.c (compare_runes):
6457         (redisplay_output_subwindow): redisplay rather than update subwindow.
6458         (redisplay_output_layout): ditto.
6459
6460         * redisplay-msw.c (mswindows_frame_output_end):
6461         (mswindows_frame_output_end): make defer window pos optional.
6462
6463         * lisp.h: add Flast.
6464
6465         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6466         normalize method. Change update method to be for changed
6467         instantiators. Add redisplay method. Change signature of layout
6468         method.
6469         (struct Lisp_Image_Instance): add instantiator.
6470         (IMAGE_INSTANCE_INSTANTIATOR): new.
6471         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6472         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6473         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6474
6475         * glyphs.c:
6476         (find_instantiator_differences): new function.
6477         (Fset_instantiator_property): new convenience function.
6478         (check_image_instance_structure): strictly check for vector
6479         instantiators.
6480         (normalize_image_instantiator): make non-static.
6481         (instantiate_image_instantiator): pass on dest_mask and use new
6482         signatures for image_instance_layout and friends.
6483         (mark_image_instance): mark the instantiator. Mark the subwindow
6484         face not the widget face.
6485         (image_instance_equal): add instantiator.
6486         (image_instance_hash): ditto.
6487         (allocate_image_instance): ditto.
6488         (Fset_image_instance_property): removed.
6489         (Fimage_instance_file_name): ditto.
6490         (Fcolorize_image_instance): ditto.
6491         (image_instance_layout): add offsets to be set.
6492         (update_image_instance): new function. update an image instance
6493         from its changed instantiator.
6494         (inherit_normalize): add dest_mask.
6495         (xbm_normalize): ditto.
6496         (xface_normalize): ditto.
6497         (xpm_normalize): ditto.
6498         (text_update): set_property -> update.
6499         (image_instantiate): use the glyph identity as a hash key, not the
6500         instantiator.
6501         (glyph_width): use new image_instance_layout signature.
6502         (glyph_ascent): ditto.
6503         (glyph_descent): ditto.
6504         (glyph_height): ditto.
6505         (glyph_query_geometry): ressurrect.
6506         (glyph_layout): ditto.
6507         (redisplay_subwindow): update -> redisplay.
6508         (syms_of_glyphs): add Fset_instantiator_property.
6509         (image_instantiator_format_create): set_property -> update.
6510
6511         * glyphs-x.c:
6512         (autodetect_normalize): add dest_maks to signature.
6513         (x_redisplay_subwindow): update -> redisplay.
6514         (x_redisplay_widget): ditto.
6515         (x_button_redisplay): ditto.
6516         (x_progress_gauge_redisplay): ditto.
6517         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6518         stacking order.
6519         (console_type_create_glyphs_x): update -> redisplay.
6520         (image_instantiator_format_create_glyphs_x): ditto.
6521
6522         * glyphs-widget.c:
6523         (check_valid_instantiator): disallow glyphs in the instantiator,
6524         they must now be vectors.
6525         (check_valid_instantiator_list): ditto.
6526         (glyph_instantiator_to_glyph): use internal symbol rather than
6527         intern.
6528         (widget_update): renamed from widget_set_property. Call cascaded
6529         update methods.
6530         (redisplay_widget): renamed from update_widget.
6531         (widget_layout): image_instance_layout now takes position as well
6532         as size.
6533         (widget_normalize): ditto.
6534         (widget_instantiate): ditto.
6535         (tab_control_query_geometry) ditto.:
6536         (tab_control_update): renamed from tab_control_set_property.
6537         (progress_gauge_update): set_property -> update.
6538         (layout_normalize): rewrite so that child instantiators are
6539         normalized also.
6540         (layout_update): new function. Create glyphs from the normalized
6541         children and cope with any other layout keywords. We do not
6542         instantiate children here that will be take care of by
6543         redisplay_output_layout.
6544         (layout_instantiate): call layout_update and not much else.
6545         (layout_post_instantiate): not sure whether this is needed
6546         anymore.
6547         (layout_query_geometry): query glyph geometry rather than
6548         image_instance geometry.
6549         (layout_layout): set offsets from pass in parameters. Use glyph
6550         geometry and layout functions rather than image instance ones.
6551         (native_layout_layout): ditto.
6552         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6553         (image_instantiator_widget): set_property -> update.
6554         (image_instantiator_buttons): ditto.
6555         (image_instantiator_progress_guage): ditto.
6556         (image_instantiator_tab_control): ditto.
6557         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6558         (image_instantiator_layout): add update method.
6559
6560         * glyphs-msw.c (bmp_normalize):
6561         (mswindows_resource_normalize): add dest_mask so that it can be
6562         proprogated by layout_normalize.
6563         (begin_defer_window_pos): make optional because it may not be the
6564         right thing to do and it introduces differences with X.
6565         (mswindows_unmap_subwindow): ditto.
6566         (mswindows_map_subwindow): ditto.
6567         (mswindows_redisplay_subwindow): renamed from
6568         mswindows_update_subwindow.
6569         (mswindows_redisplay_widget): ditto.
6570         (mswindows_button_redisplay): renamed from
6571         mswindows_button_update. Update is now what the instantiation
6572         function does for a changed instantiator.
6573         (mswindows_progress_gauge_instantiate): set the progress value
6574         here if appropriate.
6575         (mswindows_tab_control_redisplay): cope with re-ordering of the
6576         members of the tab widget by simply selecting the new top
6577         widget. This makes things appear ok if you click on a tab.
6578         (mswindows_combo_box_instantiate): image_instance_layout now takes
6579         position as well as size.
6580         (mswindows_progress_gauge_redisplay): renamed from
6581         mswindows_progress_gauge_update.
6582         (console_type_create_glyphs_mswindows): fix update -> redisplay.
6583         (image_instantiator_format_create_glyphs_mswindows): ditto.
6584
6585         * glyphs-eimage.c (jpeg_normalize):
6586         (gif_normalize):
6587         (png_normalize):
6588         (tiff_normalize): add dest_mask so that it can be proprogated by
6589         layout_normalize.
6590
6591         * elhash.c:
6592         (print_hash_table):
6593         (hash_table_weakness_validate):
6594         (decode_hash_table_weakness):
6595         (Fhash_table_weakness):
6596         (Fhash_table_type):
6597         (syms_of_elhash): use Ben's naming scheme for hashtable types..
6598
6599         * console.h (struct console_methods): move update_* to
6600         redisplay_*.
6601
6602 2000-07-20  Ben Wing  <ben@xemacs.org>
6603
6604         * *.[ch] (XSETOBJ): remove unused middle argument.
6605         lisp-disunion.h: correct wrap_object() to one argument.
6606
6607 2000-07-15  Ben Wing  <ben@xemacs.org>
6608
6609         * s/cygwin32.h:
6610         * s/cygwin32.h (CYGWIN_CONV_PATH):
6611         Add missing logb prototype for v1.1.
6612         Use post-b20 names and alias to pre-b20 names when pre-b20.
6613
6614         * s/windowsnt.h: [5].
6615
6616 2000-07-15  Ben Wing  <ben@xemacs.org>
6617
6618         * Makefile.in.in (x_objs):
6619         * Makefile.in.in (sheap_objs):
6620         * Makefile.in.in (objs):
6621         added win32.o, cosmetic cleanups.
6622
6623         * alloc.c (Fmake_byte_code):
6624         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
6625         etc. macros which declare their own args now.
6626
6627         * alloc.c (syms_of_alloc):
6628         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
6629
6630         * buffer.c:
6631         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
6632
6633         * buffer.c (Fget_file_buffer):
6634         Fixed GCPRO problem.
6635
6636         * buffer.c (get_truename_buffer):
6637         Fixed comment about GC checking.
6638
6639         * buffer.c (syms_of_buffer):
6640         Undeclared those dedicated frame funs.
6641         [2].
6642
6643         * buffer.h:
6644         Define convenience macros for internal/external conversions.
6645         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
6646         and Qenvironment_variable_encoding for cleaner code.
6647
6648         * bufslots.h:
6649         Remove dedicated-frame; in lisp.
6650
6651         * bytecode.c (funcall_compiled_function):
6652         [1].
6653
6654         * bytecode.c (syms_of_bytecode):
6655         [2].
6656
6657         * console-msw.c:
6658         * console-msw.c (mswindows_show_console): Rewrote.
6659
6660         * console-msw.c (Fmswindows_debugging_output): New.
6661         Sends to OutputDebugString (special MSWin debugger interface).
6662
6663         * console-msw.c (Fmswindows_message_box):
6664         Fixed stupid bugs so it works when called from kill-emacs.
6665
6666         * console-msw.c (syms_of_console_mswindows):
6667         Declare Fmswindows_debugging_output.
6668
6669         * console-msw.h:
6670         New MSWin prototypes.
6671
6672         * console-msw.h (struct mswindows_frame):
6673         New entry last-click-mods for improved button-modifier support.
6674
6675         * console-msw.h (FRAME_MSWINDOWS_POPUP):
6676         New struct entry `popup' with corresponding accessor.
6677
6678         * console-x.c:
6679         * console-x.c (split_up_display_spec):
6680         * console-x.c (get_display_arg_connection):
6681         * console-x.c (x_semi_canonicalize_console_connection):
6682         * console-x.c (x_canonicalize_device_connection):
6683         [[[6]]]: Change char to more specific type.
6684         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
6685
6686         * console-x.c (x_semi_canonicalize_console_connection):
6687         * console-x.c (x_canonicalize_device_connection):
6688         [[[9]]]: Fix up error signalling to use new structured error system.
6689
6690         * console-x.h:
6691         [[[4]]]: Define codesys aliases:
6692         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
6693         Qx_color_name_encoding, Qx_display_name_encoding.
6694
6695         * console.h (struct console_methods):
6696         New method make_dialog_box_internal supersedes older
6697         popup_dialog_box method.
6698
6699         * data.c:
6700         Define many new errors, part of new structured errors.
6701
6702         * data.c (init_errors_once_early):
6703         * data.c (syms_of_data):
6704         [2].
6705
6706         * device-msw.c (mswindows_init_device):
6707         [[[5]]]: Cleanup to support NT 3.51.
6708
6709         * device-msw.c (decode_devmode): Cleanup.
6710
6711         * device-msw.c (mswindows_handle_print_setup_dialog_box):
6712         * device-msw.c (mswindows_handle_print_dialog_box):
6713         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6714         * device-msw.c (syms_of_device_mswindows):
6715         Delete the dialog box primitives recently introduced by Kirill and
6716         instead interface to general dialog box interface.
6717
6718         * device-x.c:
6719         * device-x.c (compute_x_app_name):
6720         * device-x.c (x_init_device):
6721         * device-x.c (Fx_valid_keysym_name_p):
6722         * device-x.c (Fx_set_font_path):
6723         [6].
6724         [7].
6725
6726         * device.h (wrap_device): New.
6727         First of its kind; meant to replace XSETDEVICE.
6728
6729         * dialog-msw.c: Many file-dialog symbols.
6730
6731         * dialog-msw.c (mswindows_register_popup_frame): New.
6732         * dialog-msw.c (mswindows_is_dialog_msg): New.
6733         For supporting kbd traversal in dialog boxes.
6734
6735         * dialog-msw.c (dialog_proc):
6736         Support hitting ESC in dialogs.
6737
6738         * dialog-msw.c (struct):
6739         Common dialog box errors.
6740
6741         * dialog-msw.c (handle_file_dialog_box): New.
6742         Add file dialog code.
6743
6744         * dialog-msw.c (handle_question_dialog_box):
6745         Redo existing code to support new question dialog syntax.
6746
6747         * dialog-msw.c (console_type_create_dialog_mswindows):
6748         We support new dialog console method.
6749
6750         * dialog-msw.c (syms_of_dialog_mswindows):
6751         * dialog-msw.c (vars_of_dialog_mswindows):
6752         New file dialog symbols, vars.
6753
6754         * dialog-x.c:
6755         * dialog-x.c (maybe_run_dbox_text_callback):
6756         * dialog-x.c (dbox_descriptor_to_widget_value):
6757         * dialog-x.c (x_make_dialog_box_internal):
6758         * dialog-x.c (console_type_create_dialog_x):
6759         Mule-ize entire file.
6760         Redo to support question dialog syntax.
6761         [6].
6762
6763         * dialog.c:
6764         * dialog.c (Fmake_dialog_box_internal):
6765         * dialog.c (syms_of_dialog):
6766         Kill old popup-dialog-box, replace with new primitive.
6767         Just call device method or signal error.
6768
6769         * eldap.c (Fldap_open):
6770         * eldap.c (Fldap_search_basic):
6771         * eldap.c (Fldap_add):
6772         * eldap.c (Fldap_modify):
6773         [1].
6774         [7].
6775
6776         * emacs.c:
6777         * emacs.c (make_arg_list_1):
6778         * emacs.c (make_arg_list):
6779         Mule-ize call to dll_init().
6780         [6].
6781         [8].
6782
6783         * emacs.c (make_argc_argv):
6784         * emacs.c (free_argc_argv):
6785         * emacs.c (init_cmdargs):
6786         * emacs.c (main_1):
6787         * emacs.c (Fkill_emacs):
6788         * emacs.c (Fdump_emacs):
6789         Update comments about what can be used in syms_* etc.
6790         Call init_win32() when necessary.
6791         Fix up MS Win dialog box in kill-buffer to actually work right.
6792         [7].
6793
6794         * eval.c:
6795         * eval.c (For):
6796         * eval.c (Fand):
6797         * eval.c (Fprogn):
6798         * eval.c (Fprog1):
6799         * eval.c (Fprog2):
6800         * eval.c (FletX):
6801         * eval.c (Flet):
6802         * eval.c (condition_case_3):
6803         * eval.c (Feval):
6804         * eval.c (function_argcount):
6805         * eval.c (funcall_lambda):
6806         [1].
6807
6808         * eval.c (type_error): New.
6809         * eval.c (maybe_type_error): New.
6810         * eval.c (continuable_type_error): New.
6811         * eval.c (maybe_continuable_type_error): New.
6812         * eval.c (type_error_with_frob): New.
6813         * eval.c (maybe_type_error_with_frob): New.
6814         * eval.c (continuable_type_error_with_frob): New.
6815         * eval.c (maybe_continuable_type_error_with_frob): New.
6816         New functions for use with structured errors.
6817
6818         * event-Xt.c:
6819         * event-Xt.c (x_event_to_emacs_event):
6820         Buttons are now modifiers too.
6821
6822         * event-Xt.c (emacs_Xt_current_event_timestamp):
6823         Implement new event method.
6824         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
6825
6826         * event-msw.c:
6827         * event-msw.c (ntpipe_shove_writer): [5].
6828         * event-msw.c (mswindows_enqueue_mouse_button_event):
6829         * event-msw.c (mswindows_drain_windows_queue):
6830         * event-msw.c (mswindows_wnd_proc): [7].
6831         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
6832         * event-msw.c (mswindows_modifier_state):
6833         Throughout: support new button modifiers.
6834
6835         * event-msw.c (emacs_mswindows_current_event_timestamp):
6836         Implement new event method.
6837         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
6838
6839         * event-stream.c:
6840         * event-stream.c (event_stream_current_event_timestamp): New.
6841         * event-stream.c (maybe_kbd_translate): New functionality.
6842         * event-stream.c (vars_of_event_stream):
6843         Document new kbd-translate-table functionality.
6844
6845         * event-stream.c (Fcurrent_event_timestamp): New.
6846         New primitive for use in fabricated events.
6847         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
6848
6849         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
6850
6851         * events.c:
6852         * events.c (Fmake_event):
6853         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
6854         [1].
6855         [9].
6856
6857         * events.c (format_event_object): fix gcc warnings.
6858
6859         * events.c (Fevent_timestamp): Document new primitives.
6860
6861         * events.c (TIMESTAMP_HALFSPACE): New.
6862
6863         * events.c (Fevent_timestamp_lessp): New.  New primitive for
6864         comparing timestamps correctly (half-space algorithm).
6865
6866         * events.c (Fevent_modifier_bits): Doc fix.
6867
6868         * events.c (Fevent_modifiers): Major doc addition.
6869         * events.c (event_x_y_pixel_internal): Typo fix.
6870         * events.c (syms_of_events): Declare new primitives.
6871
6872         * events.h:
6873         Update long comment for button modifiers, timestamps.
6874
6875         * events.h (struct event_stream):
6876         New current_event_timestamp method.
6877
6878         * extents.c:
6879         * extents.c (extent_in_region_p):
6880         * extents.c (decode_extent):
6881         * extents.c (Fset_extent_parent):
6882         * extents.c (decode_map_extents_flags):
6883         Fix gcc warnings.
6884         [9].
6885
6886         * extents.c (struct extent_at_arg):
6887         * extents.c (decode_extent_at_flag):
6888         * extents.c (extent_at_mapper):
6889         * extents.c (extent_at_bytind):
6890         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
6891         * extents.c (Fextents_at): New primitive. [9].
6892         * extents.c (symbol_to_glyph_layout): [9].
6893         Support new primitive `extents-at'.
6894
6895
6896         * extents.c (get_text_property_bytind):
6897         extent_at_bytind has another arg.
6898         [9].
6899
6900         * extents.c (syms_of_extents): New primitive.
6901
6902         * file-coding.c (Fmake_coding_system): [1].
6903         * file-coding.c (subsidiary_coding_system): fix gcc warning
6904         * file-coding.c (syms_of_file_coding): [2].
6905
6906         * fileio.c (Fexpand_file_name):
6907         * fileio.c (Fsysnetunam):
6908         * fileio.c (Ffile_exists_p):
6909         * fileio.c (Ffile_executable_p):
6910         * fileio.c (Fverify_visited_file_modtime):
6911         Clean up GCPROing.
6912
6913         * fileio.c (syms_of_fileio): [2].
6914
6915         * filelock.c (lock_file_1):
6916         * filelock.c (current_lock_owner):
6917         * filelock.c (lock_if_free):
6918         * filelock.c (lock_file):
6919         * filelock.c (unlock_file):
6920         Clean up GCPROing.
6921
6922         * fns.c (concat): Fix gcc warning.
6923
6924         * fns.c (Fmember):
6925         * fns.c (Fold_member):
6926         * fns.c (Fmemq):
6927         * fns.c (Fold_memq):
6928         * fns.c (memq_no_quit):
6929         * fns.c (Fassoc):
6930         * fns.c (Fold_assoc):
6931         * fns.c (Fassq):
6932         * fns.c (Fold_assq):
6933         * fns.c (assq_no_quit):
6934         * fns.c (Frassoc):
6935         * fns.c (Fold_rassoc):
6936         * fns.c (Frassq):
6937         * fns.c (Fold_rassq):
6938         * fns.c (rassq_no_quit):
6939         * fns.c (Fdelete):
6940         * fns.c (Fold_delete):
6941         * fns.c (Fdelq):
6942         * fns.c (Fold_delq):
6943         * fns.c (delq_no_quit):
6944         * fns.c (Fremassoc):
6945         * fns.c (Fremassq):
6946         * fns.c (remassq_no_quit):
6947         * fns.c (Fremrassoc):
6948         * fns.c (Fremrassq):
6949         * fns.c (remrassq_no_quit):
6950         * fns.c (Freverse):
6951         * fns.c (mapcar1):
6952         [1].
6953
6954         * frame-msw.c (mswindows_init_frame_1):
6955         * frame-msw.c (mswindows_delete_frame):
6956         Register popups with dialog code so keyboard traversing works.
6957
6958         * frame-tty.c (tty_raise_frame_no_select): [1].
6959
6960         * frame-x.c:
6961         * frame-x.c (x_set_frame_text_value):
6962         * frame-x.c (x_set_frame_properties):
6963         * frame-x.c (x_create_widgets):
6964         [7].
6965
6966         * frame.c:
6967         * frame.c (Fmouse_pixel_position): Minor doc fixes.
6968
6969         * frame.h (wrap_frame): New.
6970         Macro like wrap_device.
6971
6972         * general.c:
6973         * general.c (SYMBOL):
6974         * general.c (syms_of_general):
6975         Major reorg.  This is now just a wrapper and symbols themselves
6976         are listed in general-slots.h.
6977
6978         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
6979         * glyphs-msw.c (mswindows_resource_instantiate): [5].
6980
6981         * glyphs-msw.c (mswindows_native_layout_instantiate):
6982         Add DS_CONTROL so keyboard traversal will work.
6983
6984         * glyphs-widget.c:
6985         * glyphs-widget.c (syms_of_glyphs_widget):
6986         Move some symbols to general-slots.h.
6987
6988         * glyphs-x.c:
6989         * glyphs-x.c (xbm_instantiate_1):
6990         * glyphs-x.c (x_xbm_instantiate):
6991         * glyphs-x.c (x_xface_instantiate):
6992         * glyphs-x.c (autodetect_instantiate):
6993         * glyphs-x.c (cursor_font_instantiate):
6994         * glyphs-x.c (x_update_widget):
6995         * glyphs-x.c (x_widget_instantiate):
6996         * glyphs.c (bitmap_to_lisp_data):
6997         * glyphs.c (pixmap_to_lisp_data):
6998         [7].
6999
7000         * glyphs.c (syms_of_glyphs):
7001         [2].
7002
7003         * gui-x.c:
7004         * gui-x.c (print_widget_value):
7005         * gui-x.c (menu_separator_style_and_to_external):
7006         * gui-x.c (add_accel_and_to_external):
7007         * gui-x.c (button_item_to_widget_value):
7008         * gui-x.c (gui_items_to_widget_values_1):
7009         * gui-x.c (gui_items_to_widget_values):
7010         * gui-x.c (syms_of_gui_x):
7011         * gui-x.c (vars_of_gui_x):
7012         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7013         [9].
7014
7015         * gui-x.h:
7016         Muleize, prototype changes matching gui-x.c.
7017
7018         * gui.c:
7019         * gui.c (separator_string_p):
7020         * gui.c (gui_item_add_keyval_pair):
7021         * gui.c (make_gui_item_from_keywords_internal):
7022         * gui.c (signal_too_long_error):
7023         * gui.c (parse_gui_item_tree_item):
7024         * gui.c (syms_of_gui):
7025         * gui.c (vars_of_gui):
7026         * gui.h:
7027         menu-no-selection-hook moved here (used by MSWin).
7028         Move some symbols to general-slots.h.
7029         [6].
7030         [9].
7031
7032         * insdel.c (get_buffer_pos_char):
7033         * insdel.c (get_buffer_range_char):
7034         Add GC comments.
7035
7036         * keymap.c (keymap_lookup_directly):
7037         * keymap.c (keymap_store):
7038         * keymap.c (ensure_meta_prefix_char_keymapp):
7039         * keymap.c (describe_map):
7040         * keymap.h:
7041         Support new button modifiers.
7042
7043         * lisp-disunion.h (wrap_object):
7044         * lisp-disunion.h (XSETOBJ):
7045         Rename make_obj to wrap_object.
7046
7047         * lisp-union.h:
7048         * lisp-union.h (make_int):
7049         * lisp-union.h (make_char):
7050         Support wrap_object.
7051
7052         * lisp.h:
7053         * lisp.h (LIST_LOOP):
7054         * lisp.h (EXTERNAL_LIST_LOOP):
7055         * lisp.h (LIST_LOOP_2):
7056         * lisp.h (EXTERNAL_LIST_LOOP_1):
7057         * lisp.h (EXTERNAL_LIST_LOOP_2):
7058         * lisp.h (EXTERNAL_LIST_LOOP_3):
7059         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7060         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7061         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7062         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7063         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7064         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7065         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7066         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7067         * lisp.h (struct Lisp_Symbol):
7068         * lisp.h (maybe_continuable_error_with_frob):
7069         Fix up section comments.
7070         Add new types for char to indicate usage.
7071         Delete symbols auto-generated from general-slots.h.
7072         Add prototypes for structured error functions.
7073         Add long comments describing looping macros and change interface
7074         so that lvalues are automatically declared.
7075         Add NO_DECLARE macro in case callers want to declare lvalues
7076         themselves.
7077
7078         * lread.c (read_syntax_error):
7079         * lread.c (continuable_read_syntax_error):
7080         * lread.c (read_structure):
7081         * lread.c (sequence_reader):
7082         * lread.c (read_list_conser):
7083         * lread.c (read_compiled_function):
7084         Rename syntax_error and continuable_syntax_error to avoid clash
7085         with same-named structured error functions.
7086
7087         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7088         * menubar-msw.c (populate_menu_add_item):
7089         * menubar-msw.c (populate_or_checksum_helper):
7090         [5].
7091         [9].
7092
7093         * menubar-x.c:
7094         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7095         Mule-ize whole file.
7096
7097         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7098
7099         * mule-charset.c (Fmake_charset):
7100         * mule-wnnfns.c (Fwnn_set_param):
7101         [1].
7102
7103         * ntproc.c (create_child):
7104         * ntproc.c (Fwin32_set_current_locale):
7105         Add comments portending doom.
7106
7107         * objects-msw.c:
7108         * objects-msw.c (old_font_enum_callback_2):
7109         * objects-msw.c (font_enum_callback_1):
7110         * objects-msw.c (mswindows_enumerate_fonts):
7111         [5].
7112
7113         * objects-x.c:
7114         * objects-x.c (allocate_nearest_color):
7115         * objects-x.c (x_parse_nearest_color):
7116         * objects-x.c (x_initialize_color_instance):
7117         * objects-x.c (x_print_color_instance):
7118         * objects-x.c (x_finalize_color_instance):
7119         * objects-x.c (x_valid_color_name_p):
7120         * objects-x.c (x_initialize_font_instance):
7121         * objects-x.c (x_print_font_instance):
7122         * objects-x.c (valid_x_font_name_p):
7123         * objects-x.c (truename_via_FONT_prop):
7124         * objects-x.c (truename_via_random_props):
7125         * objects-x.c (truename_via_XListFonts):
7126         * objects-x.c (x_font_truename):
7127         * objects-x.c (x_font_instance_truename):
7128         * objects-x.c (x_font_instance_properties):
7129         * objects-x.c (x_list_fonts):
7130         * objects-x.c (x_find_charset_font):
7131         Mule-ize entire file.
7132         [7].
7133
7134         * objects-x.h:
7135         Mule-verify.
7136
7137         * print.c:
7138         * print.c (std_handle_out_external):
7139         * print.c (debug_print_no_newline):
7140         * print.c (syms_of_print):
7141         Output to all debugger kinds in debug-print.
7142         Fix console-output code under MSWin to actually work.
7143
7144         * process-nt.c (send_signal):
7145         * process-nt.c (nt_create_process):
7146         Use newer Unicode macros.
7147
7148         * process-unix.c (unix_create_process):
7149         * process-unix.c (unix_canonicalize_host_name):
7150         * process-unix.c (unix_open_network_stream):
7151         [7].
7152
7153         * scrollbar-x.c:
7154         Mule-verify.
7155
7156         * search.c (syms_of_search):
7157         [2].
7158
7159         * select-msw.c (mswindows_destroy_selection):
7160         Use LIST_LOOP_2.
7161
7162         * select-x.c (symbol_to_x_atom):
7163         [7].
7164
7165         * select.c (syms_of_select):
7166         [2].
7167
7168         * sound.c (Fplay_sound_file):
7169         [7].
7170
7171         * specifier.c:
7172         * specifier.c (decode_specifier_type):
7173         * specifier.c (Fvalid_specifier_locale_type_p):
7174         * specifier.c (check_valid_locale_or_locale_type):
7175         * specifier.c (decode_locale):
7176         * specifier.c (decode_locale_type):
7177         * specifier.c (decode_locale_list):
7178         * specifier.c (check_valid_domain):
7179         * specifier.c (decode_specifier_tag_set):
7180         * specifier.c (Fcanonicalize_tag_set):
7181         * specifier.c (Fdefine_specifier_tag):
7182         * specifier.c (Fspecifier_tag_predicate):
7183         * specifier.c (check_valid_inst_list):
7184         * specifier.c (check_valid_spec_list):
7185         * specifier.c (decode_how_to_add_specification):
7186         * specifier.c (check_modifiable_specifier):
7187         * specifier.c (specifier_add_spec):
7188         * specifier.c (boolean_validate):
7189         * specifier.c (display_table_validate):
7190         [9].
7191
7192         * specifier.c (syms_of_specifier):
7193         Move some symbols to general-slots.h.
7194         [2].
7195
7196         * symbols.c:
7197         * symbols.c (Fmapatoms):
7198         * symbols.c (Fapropos_internal):
7199         Add GCPROs.
7200
7201         * symbols.c (set_default_buffer_slot_variable):
7202         * symbols.c (set_default_console_slot_variable):
7203         [1].
7204
7205         * symbols.c (defsymbol_massage_name_1):
7206         * symbols.c (defkeyword_massage_name):
7207         * symbols.c (deferror_1):
7208         * symbols.c (deferror):
7209         * symbols.c (deferror_massage_name_and_message):
7210         * symeval.h:
7211         * symeval.h (DEFSYMBOL):
7212         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7213
7214         * symbols.c (syms_of_symbols):
7215         [2].
7216
7217         * symsinit.h:
7218         * symsinit.h (init_win32): New.
7219         Also new is syms_of_dialog_mswindows.
7220
7221         * syswindows.h:
7222         Add new Unicode macros, missing Cygwin wide-char functions,
7223         convenience conversion macros for Qmswindows_tstr, macros for
7224         encapsulating required MSWin <-> Cygwin filename conversions,
7225         prototype for dynamically-extracted (not in NT 3.51) functions.
7226
7227         * toolbar-x.c:
7228         Mule-verify.
7229
7230         * tooltalk.c (Fadd_tooltalk_message_arg):
7231         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7232         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7233         [7].
7234
7235         * tooltalk.c (syms_of_tooltalk):
7236         [2].
7237
7238         * unexnt.c:
7239         * unexnt.c (unexec):
7240         Fix up headers, declaration of unexec() to be more standard.
7241
7242 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7243
7244         * offix.h: Revert change to guard macros - they're used in offix.c!
7245
7246 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7247
7248         * lisp.h: Defsubred Fdelete.
7249
7250         * console-msw.h:  (msprinter_default_printer): Added.
7251
7252         * console-msw.c (msprinter_canonicalize_console_connection):
7253         (msprinter_canonicalize_device_connection): Added.
7254
7255         * device-msw.c (msprinter_default_printer):
7256         (Fmswingows_get_default_printer):
7257         (signal_enum_priner_error):
7258         (Fmswingows_printer_list): Added.
7259
7260 2000-07-19  Martin Buchholz <martin@xemacs.org>
7261
7262         * XEmacs 21.2.35 is released.
7263
7264 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7265
7266         * select-x.c (x_handle_selection_request):
7267         Text selected in xemacs and pasted into xterm failed to appear.
7268         Spelling fixes and cosmetic changes.
7269
7270 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7271
7272         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7273         XEmacs frame (fix for doubling chars in dialog boxes).
7274
7275 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7276
7277         * select.c (select_convert_in, select_convert_out):
7278         Don't call intern() every time.
7279
7280         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7281         * select.c (vars_of_select): Initialise them.
7282
7283 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7284
7285         * select.c (selection-coercible-types): New.
7286
7287         * select.c (own-selection-internal):
7288         * select.c (get-selection-internal):
7289         MULE bug fix - these should default to COMPOUND_TEXT and not
7290         STRING for MULE. I think.
7291
7292         * select.c (select_convert_out): Use selection-coercible-types
7293         to find types that we can attempt to perform coercions on.
7294
7295 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7296
7297         * mule-wnnfns.c:
7298         * mule-canna.c:
7299         Add coding: cookie to identify encoding.
7300
7301         * mule-canna.c (CANNA_mode_keys): make static.
7302         Use proper prototypes, even for functions of no arguments.
7303         Remove external prototype for Fding().
7304
7305         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7306
7307         * select.c (syms_of_select): Add missing DEFSUBR.
7308
7309 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7310
7311         * select.c (get_selection_internal, own_selection_internal):
7312         Make the type default to STRING, rather than placing a nil type
7313         into Vselection_alist.
7314
7315 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7316
7317         * gpmevent.c (tty_selection_exists_p):
7318         * gpmevent.c (tty_own_selection):
7319         Updated parameter lists.
7320
7321 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7322
7323         * select.h (selection-alist): Removed declaration.
7324
7325         * select.h (get_local_selection):
7326         * select.c (get_local_selection):
7327         Made static.
7328
7329         * select.h (convert_selection): Removed declaration.
7330         * select.c (convert_selection): Removed.
7331         This function belongs in Lisp.
7332
7333         * select.h (select_convert_in): Declare.
7334         * select.h (select_convert_out): Declare.
7335         * select.c (select_convert_in): New.
7336         * select.c (select_convert_out): New.
7337         New conversion functions for other files to call.
7338
7339         * select.h (select_notify_buffer_kill): Declare.
7340         * select.c (select_notify_buffer_kill): New.
7341         New functions that get called from kill-buffer.
7342
7343         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7344         X-specific lisp code.
7345
7346         * select.h: Declare some of the lisp-visible functions for
7347         external use.
7348
7349         * select.c (clean_local_selection_data): Removed. This was
7350         a disgusting function, and previously should have been in
7351         select-x.c in any case. The functionality is now provided
7352         in select-convert-from-integer (select.el).
7353
7354         * select.c (available-selection-types): Fixed stupidity where
7355         INTEGER and ATOM got added twice. Also add STRING when we see an
7356         extent.
7357
7358         * select.c (get-selection-internal): Removed symbol stripping. No
7359         longer causes conversion when data comes from the internal cache.
7360
7361         * select.c (syms_of_select): Added new functions.
7362
7363         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7364         error checking - previously this called abort!
7365
7366         * select-x.c (x_own_selection): Changed comment.
7367
7368         * select-x.c (x_handle_selection_request): Use select_convert_out.
7369         Don't mess with selection-alist; it's an internal variable of select.c.
7370
7371         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7372
7373         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7374         rather than messing with selection-alist.
7375
7376         * select-msw.c (mswindows_get_foreign_selection):
7377         Use TO_INTERNAL_FORMAT rather than hacking.
7378
7379 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7380
7381         * process-unix.c (unix_open_multicast_group):
7382         (unix_open_multicast_group): Remove useless casts.
7383
7384 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7385
7386         * sound.c (Fplay_sound): Fix `unused variable' warning.
7387
7388         * emacs.c (main): Use correct type for _environ on SCO5.
7389
7390 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7391
7392         * console.h (own_selection_method):
7393         * console.h (selection_exists_p_method):
7394         * console.h (available_selection_types_method): New.
7395         * console.h (register_selection_data_type_method): New.
7396         * console.h (selection_data_type_name): New.
7397
7398         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7399         function & alist to track GlobalAlloc()'d handles that need
7400         releasing when the clipboard data gets replaced or emptied.
7401
7402         * event-msw.c (mswindows_wnd_proc): Call it.
7403
7404         * lisp.h, general.c (Qappend): New symbol representing a
7405         `how-to-add' mode.
7406
7407         * select.c (own-selection-internal):
7408         * select.c (selection-exists-p):
7409         * select.c (available-selection-types): New.
7410         * select.c (register-selection-data-type): New.
7411         * select.c (selection-data-type-name): New.  New functions to deal
7412         with device-specific selection data formats.
7413         * select.c (selection-converter-out-alist): Renamed.
7414         * select.c (selection-converter-in-alist): New.
7415         * select.c (selection-appender-alist): New.  Added new alists.
7416         * select.c (syms_of_select, vars_of_select): Added new symbols &
7417         variables.
7418         * select.c (get_local_selection): Split.
7419         * select.c: Removed spurious type checking - selections may now be
7420         of any type, not just strings.
7421         * select.c (own-selection-internal):
7422
7423         * select.h, select.c (convert_selection): New. Created
7424         convert_selection() function based on get_local_selection().
7425         * select.h, select.c (QCF_*): New symbols representing mswindows
7426         clipboard formats.
7427         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7428         symbols representing `how-to-add' modes.
7429
7430         * select-msw.c (x_sym_p): New.
7431         * select-msw.c (symbol_to_ms_cf): New.
7432         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7433         symbols & clipboard formats. Can also handle string names.
7434         * select-msw.c (mswindows_own_selection):
7435         * select-msw.c (mswindows_selection_exists_p):
7436         Added `data-type' parameter. Use it.
7437         * select-msw.c (mswindows_available_selection_types): New.
7438         * select-msw.c (mswindows_register_selection_data_type): New.
7439         * select-msw.c (mswindows_selection_data_type_name): New.
7440         * select-msw.c (mswindows_own_selection):
7441         * select-msw.c (mswindows_get_foreign_selection):
7442         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7443         * select-msw.c (console_create_select_mswindows): Added new methods.
7444         * select-msw.c (mswindows_destroy_selection): New.
7445         * select-msw.c (Vhandle_alist): New list.
7446         * select-msw.c (mswindows_own_selection):
7447
7448         * select-x.c (x_own_selection):
7449         * select-x.c (x_selection_exists_p):
7450         * select-x.c: Added some comments about maybe using new
7451         functionality.
7452         * select-x.c (x_own_selection):
7453
7454         * specifier.c: Remove definition of Qappend (now in general.c)
7455         * specifier.c (syms_of_specifier): Remove Qappend.
7456
7457 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7458
7459         * config.h.in: Add socklen_t.
7460
7461         * s/decosf4-0.h: No special compiler flags needed or desired.
7462         In particular, undefine _BSD for DEC OSF 4.0.
7463
7464 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7465
7466         * redisplay-msw.c (msprinter_frame_output_end): Added.
7467         (console_type_create_redisplay_mswindows): Referred the above.
7468
7469         * frame.c (setup_frame_without_minibuffer): Do not create a
7470         default minibuffer frame on a printer device.
7471
7472         * frame-msw.c (apply_dc_geometry): Added.
7473         (msprinter_start_page):
7474         (msprinter_init_frame_3):
7475         (msprinter_eject_page): Use it.
7476
7477         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7478         and removed residual duplex and orientation properties.
7479
7480 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7481
7482         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7483
7484         * unexalpha.c: Remove system prototypes from C sources!
7485
7486 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7487
7488         * eval.c: Remove references to M-x edit-options in DEFUNs for
7489         `defvar' and `defconst'.
7490
7491 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7492
7493         * config.h.in: Remove SMART_INCLUDE hackery.
7494
7495         PostgreSQL hacking:
7496         * config.h.in: Don't use SMART_INCLUDE.
7497
7498         * postgresql.h: Include libpq-fe.h here.  Fix typo.
7499         * inline.c: Simply #include "postgresql.h"
7500         * postgresql.c:
7501         - Don't use SMART_INCLUDE
7502         - Use simply "const".
7503         - Use standard doc string conventions.
7504         - Use correct type for result of PQstatus.
7505
7506 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7507
7508         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7509
7510         C++ compilation changes.
7511         * config.h.in (EXTERN_C): Define.
7512         * config.h.in (not): This is also a C++ keyword.
7513         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7514         * cm.c: Use EXTERN_C.
7515         * redisplay-tty.c: Use EXTERN_C.
7516         * sysdep.c: Use EXTERN_C.  Remove Gould support.
7517
7518 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7519
7520         * general.c: Remove duplicate definition for Qfunction.
7521
7522 2000-07-08  Ben Wing  <ben@xemacs.org>
7523
7524         * device-msw.c (msprinter_init_device):
7525         * device-msw.c (sync_printer_with_devmode):
7526         * device-msw.c (handle_devmode_changes):
7527         * device-msw.c (print_dialog_worker):
7528         * device-msw.c (Fmsprinter_apply_settings):
7529         * device-msw.c (hash_devmode):
7530         * device-msw.c (Fmsprinter_settings_despecialize):
7531         use Qmswindows_tstr, not Qctext.
7532
7533         * vm-limit.c (check_memory_limits):
7534         avoid infinite loop printing warning messages.
7535
7536 2000-07-05  Craig Lanning  <lanning@scra.org>
7537
7538         * Makefile.in.in: Add support for including the Windows resources
7539         when building with the cygwin and mingw targets.
7540
7541         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7542         not set or not correct.
7543         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7544         (init_initial_directory): Don't try to use $PWD on the
7545         WIN32_NATIVE target.
7546
7547         * s\cygwin32.h:
7548         [[Add -mwindows to eliminate console window.]] not required --ben
7549         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7550         (MAIL_USE_POP): removed; now handled by configure.
7551
7552         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7553         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7554         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7555         (MAIL_USE_POP): removed; now handled by configure.
7556         (ENCAPSULATE_STAT): from Dan Holmsand, added.
7557         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7558         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7559         constant string.
7560         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7561         up from <winsock.h> via systime.h.
7562         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7563         (getpagesize): from Dan Holmsand, added.
7564         Added #endif which was left dangling by Ben's mega patch; added
7565         comment to help prevent this in the future.
7566
7567         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7568
7569 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7570
7571         * console-msw.h (struct mswindows_device): Removed unnecessary
7572         cached device geometry values.
7573         Added update_tick and an accessor macro.
7574         (Lisp_Devmode): Added lrecord declaration.
7575         (struct msprinter_device): Contain devmode as a Lisp object.
7576         Added mswindows_get_selected_frame_hwnd();
7577
7578         * console.h (struct console_methods): Indentation nitpicking.
7579
7580         * device-msw.c (mswindows_init_device): Do not initialize geometry
7581         cache. Initialize update tick.
7582         (mswindows_device_system_metrics): Ask the device for its geometry.
7583         (global_free_2_maybe):
7584         (devmode_to_hglobal):
7585         (handle_printer_changes):
7586         (ensure_not_printing):
7587         (print_dialog_worker):
7588         (Fmsprinter_print_setup_dialog):
7589         (Fmsprinter_print_dialog):
7590         (plist_get_margin):
7591         (plist_set_margin):
7592         (Fmsprinter_page_setup_dialog): Added functions.
7593         (sync_printer_with_devmode):
7594         (handle_devmode_changes):
7595         (Fmsprinter_get_settings):
7596         (Fmsprinter_select_settings):
7597         (Fmsprinter_apply_settings):
7598         (allocate_devmode):
7599         (Fmsprinter_settings_copy):
7600         (Fmsprinter_settings_despecialize):
7601         (print_devmode):
7602         (finalize_devmode):
7603         (equal_devmode):
7604         (hash_devmode): Added functions
7605         (syms_of_device_mswindows): Init devmode lrecord class.
7606
7607         * device.h: Added an exfun for find-device.
7608
7609         * event-msw.c (mswindows_wnd_proc): Do not update the cached
7610         geometry; although, recreate the device compatible DC.
7611
7612         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
7613         (msprinter_init_frame_3):
7614         (msprinter_frame_property):
7615         (msprinter_internal_frame_property_p):
7616         (msprinter_frame_properties):
7617         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
7618         print job properties (will move to device settings).
7619
7620         * lisp.h: Added symbols.
7621
7622         * general.c (syms_of_general): Declared them.
7623
7624         * hash.c (string_hash): Added.
7625
7626         * lrecord.h (lrecord_type): Added devmode lrecord type.
7627
7628 2000-07-02  Mike Sperber <mike@xemacs.org>
7629
7630         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
7631         FreeBSD 4.0.
7632
7633 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
7634
7635         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
7636         integer.
7637
7638 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
7639
7640         * data.c (Fstring_to_number): Don't recognize floating point if
7641         base is not 10.
7642
7643 2000-06-22  Martin Buchholz  <martin@xemacs.org>
7644
7645         * glyphs-widget.c (tab_control_query_geometry):
7646         (widget_query_geometry):
7647         (button_query_geometry):
7648         * glyphs.c (text_query_geometry):
7649         Enforce type correctness.
7650
7651 2000-06-18  Martin Buchholz  <martin@xemacs.org>
7652
7653         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
7654         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
7655
7656 2000-06-17  Martin Buchholz  <martin@xemacs.org>
7657
7658         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
7659         conflicts with gcc's fixincluded version of FOO.h.
7660
7661         * glyphs.h (image_instance_geometry): Remove trailing `,'
7662
7663 2000-06-08  Mike Alexander  <mta@arbortext.com>
7664
7665         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
7666         (shove_thread): Don't write the same output twice
7667         (make_ntpipe_output_stream): Increase priority of shove thread
7668         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
7669         chance to run
7670         (ntpipe_shove_closer): Don't delete the pipe until we're done with
7671         it.
7672
7673 2000-06-12  Ben Wing  <ben@xemacs.org>
7674
7675         * s\mingw32.h (sigset):
7676         * s\windowsnt.h (sigset):
7677         rename msw_ to mswindows_ for consistency with general convention.
7678
7679 2000-06-12  Ben Wing  <ben@xemacs.org>
7680
7681         * console-msw.c:
7682         * console-msw.c (mswindows_get_console_hwnd):
7683         * console-msw.c (mswindows_ensure_console_allocated):
7684         * console-msw.c (mswindows_hide_console):
7685         * console-msw.c (mswindows_show_console):
7686         * console-msw.c (mswindows_ensure_console_buffered):
7687         * console-msw.c (mswindows_output_console_string):
7688         * console-msw.c (mswindows_windows9x_p):
7689         * console-msw.h:
7690         * device-msw.c (mswindows_get_workspace_coords):
7691         * device-msw.c (mswindows_device_system_metrics):
7692         * dialog-msw.c (mswindows_popup_dialog_box):
7693         * event-msw.c (mswindows_wnd_proc):
7694         * frame-msw.c (mswindows_size_frame_internal):
7695         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7696         * menubar-msw.c (displayable_menu_item):
7697         * menubar-msw.c (mswindows_char_is_accelerator):
7698         * nt.c:
7699         * nt.c (mswindows_sigset):
7700         * nt.c (mswindows_sigrelse):
7701         * nt.c (mswindows_sigpause):
7702         * nt.c (mswindows_raise):
7703         * nt.c (timer_proc):
7704         * ntproc.c:
7705         * ntproc.c (find_child_console):
7706         * ntproc.c (sys_kill):
7707         * print.c:
7708         * print.c (std_handle_out_external):
7709         * process-nt.c (find_child_console):
7710         * process-nt.c (send_signal_the_95_way):
7711         * process-nt.c (ensure_console_window_exists):
7712         * process-nt.c (nt_create_process):
7713         * syssignal.h:
7714         rename msw_ to mswindows_ for consistency with general convention.
7715
7716         * emacs.c:
7717         * dumper.c:
7718         include nt.h, not syswindows.h.
7719
7720         * nt.c (mswindows_fstat):
7721         * nt.c (mswindows_stat):
7722         prefix mswindows_ instead of attempting to directly override the
7723         library functions.  fix declarations.
7724
7725         * nt.h:
7726         include syswindows.h.  move some sysdep.h stuff here.
7727
7728         * ntheap.h:
7729         include syswindows.h, not <windows.h>.
7730
7731         * ntplay.c:
7732         clean up headers.
7733
7734         * sysdep.c:
7735         clean up headers.
7736
7737         * sysdep.c (sys_fstat):
7738         * sysdep.c (sys_stat):
7739         call mswindows versions when appropriate.
7740
7741         * sysdep.h:
7742         move mswin decls to nt.h.
7743
7744         * syswindows.h:
7745         add long comment describing appropriate use of the various windows
7746         headers.
7747
7748 2000-06-11  Ben Wing  <ben@xemacs.org>
7749
7750         * device-x.c: Correct doc string for sixth arg of x-get-resource.
7751
7752 2000-06-10  Ben Wing  <ben@xemacs.org>
7753
7754         * Makefile.in.in (release):
7755         Correction to make sure xemacs.exe always dumped when correct.
7756
7757         * alloca.c:
7758         * balloon_help.c:
7759         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
7760
7761         * buffer.c (set_buffer_internal):
7762         [[[[2]]]]: Remove HAVE_FEP code.
7763
7764         * buffer.c (init_initial_directory):
7765         [3].
7766
7767         * bytecode.c:
7768         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
7769         individual files.
7770
7771         * callproc.c:
7772         * callproc.c (call_process_cleanup):
7773         * callproc.c (Fold_call_process_internal):
7774         * callproc.c (child_setup):
7775         * callproc.c (getenv_internal):
7776         * callproc.c (init_callproc):
7777         * callproc.c (vars_of_callproc):
7778         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
7779         __CYGWIN32__ -> CYGWIN.
7780         DOS_NT -> WIN32_NATIVE.
7781         Remove MSDOS support/references, converting to WIN32_NATIVE
7782           where correct.
7783         __MINGW32__ -> MINGW.
7784         Fix windows.h includes.
7785         Remove bogus HAVE_NTGUI.
7786
7787         * config.h.in:
7788         [2].
7789
7790         * console-msw.c:
7791         mswindows_message_outputted added for use in allowing startup
7792         errors on the console to be seen.
7793
7794         * console-msw.c (msw_ensure_console_allocated):
7795         * console-msw.c (msw_output_console_string):
7796         * console-msw.c (DHEADER):
7797         * console-msw.c (DOPAQUE_DATA):
7798         * console-msw.c (DEVENT):
7799         * console-msw.c (DCONS):
7800         * console-msw.c (DCONSCDR):
7801         * console-msw.c (DSTRING):
7802         * console-msw.c (DVECTOR):
7803         * console-msw.c (DSYMBOL):
7804         * console-msw.c (DSYMNAME):
7805         Fix warnings.
7806
7807         * console-stream.c (stream_init_console):
7808         Fix text/binary problems.
7809
7810         * device-msw.c:
7811         * device-msw.c (mswindows_finish_init_device):
7812         * device-msw.c (mswindows_delete_device):
7813         [1].
7814
7815         * device.c (handle_asynch_device_change):
7816         [3].
7817
7818         * dgif_lib.c:
7819         * dgif_lib.c (DGifOpenFileName):
7820         * dgif_lib.c (DGifOpenFileHandle):
7821         * dgif_lib.c (DGifGetLine):
7822         * dgif_lib.c (DGifGetPixel):
7823         Added config.h/lisp.h, fix up includes.
7824         [1].
7825
7826         * dired-msw.c:
7827         [4].
7828
7829         * dired.c:
7830         * dired.c (file_name_completion):
7831         * dired.c (Ffile_attributes):
7832         * dired.c (syms_of_dired):
7833         [1].
7834
7835         * dumper.c:
7836         * dumper.c (pdump_file_unmap):
7837         * dumper.c (pdump_load):
7838         [1].
7839
7840         * editfns.c:
7841         * editfns.c (Ftemp_directory):
7842         * editfns.c (user_login_name):
7843         * editfns.c (Fuser_real_login_name):
7844         * editfns.c (get_home_directory):
7845         [1].
7846
7847         * elhash.c (finish_marking_weak_hash_tables):
7848         [[[[5]]]]: Fix GCC warnings.
7849
7850         * emacs.c:
7851         * emacs.c (mswindows_handle_hardware_exceptions):
7852         * emacs.c (make_arg_list_1):
7853         * emacs.c (main_1):
7854         * emacs.c (Fkill_emacs):
7855         * emacs.c (Fdump_emacs):
7856         [1].
7857         Fix problems with nested crashes, add long comment.
7858
7859         * event-Xt.c (init_event_Xt_late):
7860         [1].
7861
7862         * event-msw.c:
7863         * event-msw.c (mswindows_dde_callback):
7864         * event-msw.c (mswindows_handle_sticky_modifiers):
7865         * event-msw.c (mswindows_wnd_proc):
7866         [1].
7867         [5].
7868
7869         * events.c (character_to_event):
7870         [1].
7871
7872         * fileio.c:
7873         * fileio.c (Ffile_name_directory):
7874         * fileio.c (Ffile_name_nondirectory):
7875         * fileio.c (directory_file_name):
7876         * fileio.c (Fexpand_file_name):
7877         * fileio.c (Fsubstitute_in_file_name):
7878         * fileio.c (Ffile_name_absolute_p):
7879         * fileio.c (check_executable):
7880         * fileio.c (Ffile_readable_p):
7881         * fileio.c (Ffile_accessible_directory_p):
7882         * fileio.c (Ffile_modes):
7883         * fileio.c (Funix_sync):
7884         * fileio.c (vars_of_fileio):
7885         [1]. [4].
7886
7887         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
7888
7889         Expand getdefdir defn.
7890         Fix bogus rename() comment.
7891
7892         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
7893         to use standard XEmacs include files, e.g. sysfile.h, rather
7894         than system-specific includes.
7895
7896         * fns.c:
7897         * fns.c (Fsubseq):
7898         [5]. [6].
7899
7900         * frame.c (vars_of_frame):
7901         [1].
7902
7903         * getloadavg.c:
7904         * getloadavg.c (getloadavg):
7905         [1]. [6].
7906         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
7907         (We don't use it elsewhere in the code; just add a comment.)
7908
7909         * gif_io.c:
7910         [6].
7911         Add config.h.
7912
7913         * glyphs-msw.c:
7914         * glyphs-msw.c (mswindows_resource_instantiate):
7915         [1].
7916
7917         * glyphs-x.c (x_native_layout_instantiate):
7918         [5].
7919
7920         * gui-msw.c (Fmswindows_shell_execute):
7921         [1].
7922
7923         * insdel.c:
7924         [4].
7925
7926         * lisp.h:
7927         [4]. [5].
7928
7929         * lread.c (locate_file_in_directory_mapper):
7930         [1].
7931
7932         * lstream.c:
7933         [4].
7934
7935         * mem-limits.h:
7936         * mem-limits.h (get_lim_data):
7937         [1].
7938
7939         * menubar-msw.c:
7940         [4].
7941
7942         * ndir.h:
7943         [1].
7944
7945         * nt.c:
7946         * nt.c (getwd):
7947         * nt.c (closedir):
7948         * nt.c (rva_to_section):
7949         * nt.c (mswindows_executable_type):
7950         [1]. [6].
7951         Fix closedir() defn.
7952
7953         * nt.h:
7954         [[[[8]]]]: *_OK defs moved to sysfile.h.
7955
7956         * ntproc.c:
7957         [6]. [7].
7958
7959         * objects-x.c:
7960         [4].
7961
7962         * print.c:
7963         * print.c (std_handle_out_external):
7964         [1]. [4].
7965
7966         * process-nt.c:
7967         * process-nt.c (nt_create_process):
7968         [6].
7969         try to fix process quoting somewhat.
7970
7971         * process-unix.c (unix_create_process):
7972         [1].
7973
7974         * process.c:
7975         * process.c (vars_of_process):
7976         Add Vnull_device.
7977
7978         * process.h:
7979         [1].
7980
7981         * realpath.c:
7982         * realpath.c (xrealpath):
7983         [1].
7984
7985         * redisplay-tty.c (init_tty_for_redisplay):
7986         [3].
7987
7988         * redisplay.c:
7989         [4]. [6].
7990
7991         * scrollbar-msw.c:
7992         [4].
7993
7994         * sheap.c:
7995         * sheap.c (more_static_core):
7996         * sheap.c (report_sheap_usage):
7997         [5]. [6].
7998
7999         * signal.c:
8000         * signal.c (alarm_signal):
8001         [1]. [6].
8002
8003         * sound.c:
8004         [6].
8005
8006         * strftime.c:
8007         * strftime.c (zone_name):
8008         [1]. [5].
8009
8010         * symsinit.h (init_sunpro):
8011         [1].
8012
8013         * syscommctrl.h:
8014         commctrl.h not in Cygwin b20.1.
8015
8016         * sysdep.c:
8017         * sysdep.c (endif):
8018         * sysdep.c (sys_subshell):
8019         * sysdep.c (init_baud_rate):
8020         * sysdep.c (emacs_get_tty):
8021         * sysdep.c (emacs_set_tty):
8022         * sysdep.c (tty_init_sys_modes_on_device):
8023         * sysdep.c (init_system_name):
8024         * sysdep.c (sys_open):
8025         * sysdep.c (interruptible_open):
8026         * sysdep.c (sys_fopen):
8027         * sysdep.c (sys_mkdir):
8028         * sysdep.c (sys_rename):
8029         * sysdep.c (get_process_times_1):
8030         [1]. [6].
8031
8032         * sysdep.h:
8033         [1].
8034
8035         * sysdir.h:
8036         * sysdir.h (DIRENTRY_NONEMPTY):
8037         [1]. [6].
8038
8039         * sysdll.c (dll_init):
8040         * sysdll.h:
8041         [1].
8042
8043         * sysfile.h:
8044         [1]. [6]. [8].
8045         added text/binary defs.
8046
8047         * sysfloat.h:
8048         [1].
8049
8050         * sysproc.h:
8051         * sysproc.h (EDESTADDRREQ):
8052         * sysproc.h (poll_fds_for_input):
8053         [1]. [6].
8054
8055         * syspwd.h:
8056         [6].
8057
8058         * syssignal.h:
8059         [1].
8060
8061         * systime.h:
8062         [1]. [6].
8063
8064         * systty.h:
8065         [1].
8066
8067         * syswindows.h:
8068         [1].
8069         Always define WIN32_LEAN_AND_MEAN.
8070
8071         * unexcw.c (unexec):
8072         [5].
8073
8074         * unexec.c:
8075         * unexec.c (copy_text_and_data):
8076         * unexec.c (adjust_lnnoptrs):
8077         [1].
8078
8079         * unexnt.c:
8080         * unexnt.c (_start):
8081         [1].
8082
8083 2000-06-07  Ben Wing  <ben@xemacs.org>
8084
8085         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8086         was used only as a model.  We've long since extracted any useful
8087         logic or code out of this. (I just did an exhaustive search.)
8088
8089         * s\msdos.h: Removed.
8090
8091         * s\windows95.h: Removed.
8092
8093 2000-06-10  Ben Wing  <ben@xemacs.org>
8094
8095         * s\cygwin32.h:
8096         [1]. [5].
8097         Don't use extern with fun defs.
8098
8099         * s\mingw32.h:
8100         [1]. [7].
8101         Remove nt\inc include.
8102         Remove getdisk, getdefdir. (The former is unused, the latter
8103         expanded in fileio.h.)
8104
8105         * s\windowsnt.h:
8106         * s\windowsnt.h (WIN32_NATIVE):
8107         * s\windowsnt.h (HAVE_STRCASECMP):
8108         [1]. [7].
8109         Add long comment about preprocessor changes.
8110         Remove getdisk, getdefdir. (The former is unused, the latter
8111         expanded in fileio.h.)
8112
8113 2000-06-10  Ben Wing  <ben@xemacs.org>
8114
8115         * m\arm.h:
8116         * m\delta.h:
8117         * m\intel386.h:
8118         * m\sequent.h:
8119         * m\template.h:
8120         * m\windowsnt.h:
8121         [1].
8122         Remove bogus/unused NO_SOCK_SIGIO.
8123
8124 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8125
8126         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8127         not an Emchar.
8128
8129 2000-06-04  Mike Sperber <mike@xemacs.org>
8130
8131         * casetab.c (set_case_table): For `set-standard-case-table',
8132         actually deposit the new case tables where the rest of XEmacs can
8133         see them.
8134
8135 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8136
8137         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8138
8139 2000-06-05  Ben Wing  <ben@xemacs.org>
8140
8141         * callproc.c (child_setup): Don't do close_load_descs() under
8142         MS Windows.  Put in a comment explaining why.
8143
8144 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8145
8146         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8147         Toolkit shell" which breaks `kill-compilation' on Windows NT
8148         native, retaining STDERR handling improvements.
8149
8150 2000-06-01  Andreas Jaeger  <aj@suse.de>
8151
8152         * s/s390.h: Support for S390, based on a patch by Martin
8153         Schwidefsky <schwidefsky@de.ibm.com>.
8154
8155 2000-05-30  Andy Piper  <andy@xemacs.org>
8156
8157         * window.c (allocate_window):
8158         (make_dummy_parent):
8159         (Fset_window_configuration): use new hashtable type.
8160
8161         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8162         (struct image_instantiator_methods):
8163         (struct Lisp_Image_Instance): make instance geometry signed.
8164
8165         * glyphs.c (instantiate_image_instantiator):
8166         (image_instance_query_geometry):
8167         (image_instance_layout):
8168         (image_instance_layout):
8169         (query_string_geometry):
8170         (text_query_geometry):
8171         (image_instantiate):
8172         (image_instantiate):
8173         (cache_subwindow_instance_in_frame_maybe):
8174         (subwindow_query_geometry): make instance geometry signed.
8175
8176         * glyphs-widget.c (widget_query_geometry):
8177         (widget_layout):
8178         (button_query_geometry):
8179         (tree_view_query_geometry):
8180         (tab_control_query_geometry):
8181         (layout_query_geometry):
8182         (layout_layout):
8183         (native_layout_layout): make instance geometry signed.
8184
8185 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8186
8187         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8188         constant.
8189
8190         * general.c (syms_of_general): Add Qfull_assoc symbol.
8191
8192         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8193         correctly.
8194         (decode_weak_list_type): Decode full-assoc type.
8195         (encode_weak_list_type): Encode full-assoc type.
8196         (Fmake_weak_list): Update doc string.
8197
8198 2000-05-30  Andy Piper  <andy@xemacs.org>
8199
8200         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8201
8202         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8203         (decode_hash_table_weakness): ditto.
8204         (Fhash_table_weakness): ditto.
8205         (Fhash_table_type): ditto.
8206         (finish_marking_weak_hash_tables): ditto.
8207         (hash_table_weakness_validate): ditto.
8208         (syms_of_elhash): ditto.
8209
8210 2000-05-28  Martin Buchholz <martin@xemacs.org>
8211
8212         * XEmacs 21.2.34 is released.
8213
8214 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8215
8216         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8217         start cache.
8218         (updating_line_start_cache): Gone.
8219         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8220         generic code to force a minimum of 1 line laid out in the
8221         CMOTION_DISP case.
8222
8223 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8224
8225         * glyphs.c (instantiate_image_instantiator): Check for initialized
8226         height & width no longer special cases IMAGE_NOTHING.
8227         (nothing_instantiate): Set height and width of instance.
8228
8229 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8230
8231         * unexelf.c (unexec): Search for ".data" section.
8232         Initialize new_data2_offset from old_data_index.
8233         Remove redundant check for ElfW.
8234
8235 2000-05-23  Andy Piper  <andy@xemacs.org>
8236
8237         * glyphs.c (get_image_instantiator_governing_domain): allow more
8238         specific domains as the governing domain rather than expecting an
8239         exact match. This fixes problems with layouts.
8240
8241 2000-05-22  Andy Piper  <andy@xemacs.org>
8242
8243         * redisplay-output.c (compare_runes): check for non-images
8244
8245         * glyphs.c (set_glyph_dirty_p): ditto.
8246         (update_glyph_cachel_data): ditto.
8247
8248         * glyphs-widget.c (layout_post_instantiate): ditto.
8249         (layout_post_instantiate): ditto.
8250
8251         * event-msw.c (mswindows_wnd_proc): warning removal.
8252
8253 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8254
8255         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8256
8257         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8258
8259         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8260
8261         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8262         (mswindows_executable_type): mingw32 now has enough headers for
8263         this to work.
8264
8265 2000-05-20  Andy Piper  <andy@xemacs.org>
8266
8267         * console-msw.c (mswindows_output_last_error): ; -> ,
8268
8269 2000-05-12  Andy Piper  <andy@xemacs.org>
8270
8271         * console-msw.c (FROB): compare ints with ints.
8272
8273 2000-05-11  Andy Piper  <andy@xemacs.org>
8274
8275         * glyphs-x.c (x_finalize_image_instance): make minimal build
8276         happy.
8277
8278 2000-05-20  Ben Wing  <ben@xemacs.org>
8279
8280         * event-Xt.c:
8281         * event-Xt.c (vars_of_event_Xt):
8282         move modifier-keys-are-sticky to event-stream.c.
8283
8284         * event-msw.c:
8285         * event-msw.c (mswindows_enqueue_mouse_button_event):
8286         * event-msw.c (key_needs_default_processing_p):
8287         * event-msw.c (XEMSW_LCONTROL):
8288         * event-msw.c (mswindows_handle_sticky_modifiers):
8289         * event-msw.c (FROB):
8290         * event-msw.c (clear_sticky_modifiers):
8291         * event-msw.c (output_modifier_keyboard_state):
8292         * event-msw.c (output_alt_keyboard_state):
8293         * event-msw.c (mswindows_wnd_proc):
8294         * event-msw.c (mswindows_modifier_state):
8295         * event-msw.c (emacs_mswindows_handle_magic_event):
8296         implement sticky modifiers.
8297
8298         * event-stream.c:
8299         * event-stream.c (vars_of_event_stream):
8300         move modifier-keys-are-sticky here.
8301
8302         * lisp.h:
8303         add CHECK_FUNCTION.
8304
8305         * rangetab.c:
8306         implement map-range-table.
8307
8308
8309 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8310
8311         * redisplay-tty.c (reset_tty_modes):
8312         (tty_redisplay_shutdown): Adjust argument type to
8313         tty_frame_output_end.
8314
8315 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8316
8317         * eval.c (Fbacktrace): Don't output a line with only right
8318         parenthesis.
8319
8320 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8321
8322         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8323         (Fpq_reset_poll): Ditto.
8324
8325 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8326
8327         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8328
8329 2000-05-16  Ben Wing  <ben@xemacs.org>
8330
8331         * buffer.c:
8332         * buffer.c (dfc_convert_to/from_internal_format):
8333         * buffer.c (reinit_vars_of_buffer):
8334         Fix conversion functions to allow reentrancy.
8335
8336         * console-msw.c:
8337         * console-msw.c (mswindows_output_last_error):
8338         New fun, generally useful -- output a human-readable
8339         version of GetLastError() on the console.
8340
8341         * console-msw.h:
8342         * console-msw.h (struct mswindows_frame):
8343         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8344
8345         * console-stream.c (stream_output_begin):
8346         * console-stream.c (stream_output_end):
8347         * console-stream.c (stream_output_vertical_divider):
8348         * console-stream.c (stream_clear_region):
8349         * console-stream.c (stream_flash):
8350         * console-stream.c (console_type_create_stream):
8351         Delete blank stream methods, not needed.
8352
8353         * console.h (struct console_methods):
8354         Split begin/end methods into window and frame.
8355
8356         * event-msw.c:
8357         * event-msw.c (mswindows_handle_paint):
8358         * event-msw.c (output_alt_keyboard_state):
8359         * event-msw.c (mswindows_wnd_proc):
8360         * event-msw.c (vars_of_event_mswindows):
8361         Comment about problems with ignored-expose.
8362         Define mswindows-debug-events; not really implemented.
8363
8364         * frame-msw.c (mswindows_init_frame_1):
8365         random cleanups.
8366
8367         * glyphs-msw.c:
8368         * glyphs-msw.c (begin_defer_window_pos):
8369         * glyphs-msw.c (mswindows_unmap_subwindow):
8370         * glyphs-msw.c (mswindows_map_subwindow):
8371         * glyphs-msw.c (mswindows_resize_subwindow):
8372         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8373
8374         * glyphs.c (make_image_instance_1):
8375         Fix crash.
8376
8377         * gutter.c (Fredisplay_gutter_area):
8378         Use new begin/end methods.
8379
8380         * lisp.h (Dynarr_new2):
8381         New creation fun.
8382
8383         * redisplay-msw.c:
8384         * redisplay-msw.c (mswindows_frame_output_begin):
8385         * redisplay-msw.c (mswindows_frame_output_end):
8386         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8387         New begin/end methods -- handle DeferWindowPos.
8388
8389         * redisplay-output.c (redisplay_move_cursor):
8390         * redisplay-output.c (redraw_cursor_in_window):
8391         * redisplay-output.c (redisplay_update_line):
8392         * redisplay-output.c (redisplay_output_window):
8393         New begin/end methods.
8394
8395         * redisplay-tty.c:
8396         * redisplay-tty.c (tty_frame_output_begin):
8397         * redisplay-tty.c (tty_frame_output_end):
8398         * redisplay-tty.c (console_type_create_redisplay_tty):
8399         New begin/end methods.
8400
8401         * redisplay-x.c:
8402         * redisplay-x.c (x_window_output_begin):
8403         * redisplay-x.c (x_window_output_end):
8404         * redisplay-x.c (console_type_create_redisplay_x):
8405         New begin/end methods.
8406
8407         * redisplay.c (redisplay_frame):
8408         * redisplay.c (Fredisplay_echo_area):
8409         New begin/end methods.
8410         use MAYBE_DEVMETH for clear_frame; it may not exist.
8411
8412         * window.h (WINDOW_XFRAME):
8413         WINDOW_XFOO macros -- get locale and decode struct pointer.
8414
8415
8416 2000-05-12  Ben Wing  <ben@xemacs.org>
8417
8418         * emacs.c:
8419         * emacs.c (ensure_no_quitting_from_now_on):
8420         * emacs.c (fatal_error_signal):
8421         * emacs.c (mswindows_handle_hardware_exceptions):
8422         * emacs.c (main):
8423         * emacs.c (Fkill_emacs):
8424         * emacs.c (shut_down_emacs):
8425         * emacs.c (assert_failed):
8426         various improvements in fatal error handling.
8427
8428         * eval.c:
8429         move preparing_for_armageddon to emacs.c.
8430
8431         * lisp.h:
8432         declare fatal_error_in_progress.
8433
8434         * print.c:
8435         * print.c (std_handle_out_external):
8436         * print.c (std_handle_out_va):
8437         * print.c (stderr_out):
8438         * print.c (stdout_out):
8439         use console under mswin when no standard output.
8440         don't do code conversion during fatal error.
8441
8442         * scrollbar.c (Fscrollbar_page_up):
8443         * scrollbar.c (Fscrollbar_page_down):
8444         fix missing else.  reindent.
8445
8446 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8447
8448         Emergency fix.
8449
8450         * glyphs.h (GLYPH_CACHEL_DESCENT):
8451         (GLYPH_CACHEL_DESCENT):
8452         (GLYPH_CACHEL_DESCENT):
8453         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8454         used in case these are inline functions.
8455         Use more absurd values to error check.
8456
8457         include window.h for error check functions.
8458
8459 2000-05-11  Ben Wing  <ben@xemacs.org>
8460
8461         * cmdloop.c (Freally_early_error_handler):
8462         Display message box under windows; otherwise, message will disappear
8463         before it can be viewed.
8464
8465         * console-msw.c:
8466         * console-msw.c (Fmswindows_message_box):
8467         * console-msw.c (FROB):
8468         * console-msw.c (syms_of_console_mswindows):
8469         Define new fun `mswindows-message-box'.
8470         #### I will merge this into `popup-dialog-box'; just give me
8471         a bit of time.
8472
8473         * general.c:
8474         * general.c (syms_of_general):
8475         Some new symbols used in `mswindows-message-box'.
8476
8477         * glyphs.c:
8478         * glyphs.c (Fset_image_instance_property):
8479         put warning in this fun.
8480
8481         * glyphs.h:
8482         * glyphs.h (GLYPH_CACHEL_WIDTH):
8483         * glyphs.h (GLYPH_CACHEL_ASCENT):
8484         * glyphs.h (GLYPH_CACHEL):
8485         * glyphs.h (GLYPH_CACHEL_GLYPH):
8486         define error-checking versions to try to catch a bug i've seen --
8487         redisplay gets in an infinite loop because the glyph width of the
8488         continuation glyph is 65535.
8489
8490         * lisp.h:
8491         Extern message-box stuff.
8492
8493         * window.c (allocate_window):
8494         * window.c (make_dummy_parent):
8495         * window.c (Fset_window_configuration):
8496         Use EQUAL not EQ for subwindow caches to make them work a bit
8497         better. (Something is still very broken.)
8498
8499
8500 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8501
8502         * glyphs.c (image_instantiate): Suppress gcc warnings.
8503         (Fmake_image_instance): Fix doc string.
8504         * specifier.c (Fmake_specifier): Ditto.
8505
8506 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
8507
8508         * paths.h.in (PATH_LOCK): Removed.
8509         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8510         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8511
8512 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8513
8514         * fns.c (Ffeaturep): Update e-mail address in doc-string.
8515         Document (featurep '(and xemacs 21.02)).
8516
8517 2000-05-09  Ben Wing  <ben@xemacs.org>
8518
8519         * buffer.c (complex_vars_of_buffer):
8520         update modeline-format doc.
8521
8522         * device.h:
8523         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8524
8525         * emacs.c:
8526         timeline of all released versions of Emacs, for use in creating
8527         authorship comments and in synching up.
8528
8529         * glyphs-widget.c (image_instantiator_buttons):
8530         * glyphs-widget.c (image_instantiator_edit_fields):
8531         * glyphs-widget.c (image_instantiator_combo_box):
8532         * glyphs-widget.c (image_instantiator_scrollbar):
8533         * glyphs-widget.c (image_instantiator_progress_guage):
8534         * glyphs-widget.c (image_instantiator_tree_view):
8535         * glyphs-widget.c (image_instantiator_tab_control):
8536         * glyphs-widget.c (image_instantiator_labels):
8537         * glyphs-widget.c (image_instantiator_layout):
8538         * glyphs-widget.c (image_instantiator_native_layout):
8539         rename decode_domain method to governing_domain.
8540
8541         * glyphs.c:
8542         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8543         * glyphs.c (add_entry_to_device_ii_format_list):
8544         make sure we don't put an entry more than once into the list.
8545         * glyphs.c (check_instance_cache_mapper):
8546         *************************************************************
8547         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8548         HAVE BEEN GETTING.
8549         *************************************************************
8550         * glyphs.c (get_image_instantiator_governing_domain):
8551         clean up, expand on new concept of governing domain.
8552         * glyphs.c (instantiate_image_instantiator):
8553         * glyphs.c (allocate_image_instance):
8554         use governing_domain instead of cache_domain in naming.
8555         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8556         * glyphs.c (make_image_instance_1):
8557         * glyphs.c (Fmake_image_instance):
8558         allow for any domain (not just device), and process the
8559         governing domain correctly.  very big doc fix.
8560         * glyphs.c (Fimage_instance_domain):
8561         new primitive, to retrieve the governing domain of an image instance.
8562         * glyphs.c (image_instantiate):
8563         use new governing_domain stuff.  this fixes a crash you could get
8564         by instantiating certain widget glyphs in frame locales. (should
8565         signal an error instead of crashing.)
8566         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8567         * glyphs.c (Fglyphp): clean up doc.
8568         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8569         * glyphs.c (syms_of_glyphs):
8570         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8571         * glyphs.c (image_instantiator_format_create): add some comments about
8572         bogus code.
8573         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8574         for current-display-table. (Apparently Hrjove implemented in 1998 a
8575         design I wrote up in 1996, but didn't update the doc string.)
8576
8577         * glyphs.h: clean up a doc string.
8578         * glyphs.h (governing_domain):
8579         * glyphs.h (struct image_instantiator_methods):
8580         changes for governing_domain stuff.
8581
8582         * gutter.c:
8583         * gutter.c (Fgutter_specifier_p):
8584         * gutter.c (Fgutter_size_specifier_p):
8585         * gutter.c (Fgutter_visible_specifier_p):
8586         * objects.c:
8587         * objects.c (Fcolor_specifier_p):
8588         * objects.c (Ffont_specifier_p):
8589         * objects.c (Fface_boolean_specifier_p):
8590         doc strings moved to make-*-specifier.
8591
8592         * redisplay.c (add_disp_table_entry_runes_1):
8593         * redisplay.c (generate_fstring_runes):
8594         * redisplay.c (screen):
8595         add random comments and doc strings.
8596
8597         * specifier.c:
8598         * specifier.c (Fmake_specifier):
8599         major overhaul of this doc string.
8600
8601         * specifier.c (Fvalid_specifier_domain_p):
8602         comment about the bogosity of image instances being domains.
8603         * specifier.c (decode_domain):
8604         now non-static, used in glyphs.c.
8605         * specifier.c (specifier_instance):
8606         comment about the bogosity of image instances being domains.
8607         * specifier.c (Fgeneric_specifier_p):
8608         move doc string to make-generic-specifier.
8609         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
8610         rebackslashify.
8611
8612         * specifier.h:
8613         * specifier.h (DOMAIN_FRAME):
8614         * specifier.h (DOMAIN_LIVE_P):
8615         * specifier.h (DOMAIN_XDEVICE):
8616         rebackslashify.
8617         add comments about problems with these macros.
8618         prototype for decode_domain.
8619
8620         * toolbar.c:
8621         * toolbar.c (Ftoolbar_specifier_p):
8622         move doc string to `make-toolbar-specifier'.
8623
8624         * window.c (window_unmap_subwindows_cache_mapper):
8625         *************************************************************
8626         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8627         HAVE BEEN GETTING.
8628         *************************************************************
8629
8630 2000-05-09  Andy Piper  <andy@xemacs.org>
8631
8632         * glyphs.h: declare reset_frame_subwindow_instance_cache.
8633
8634         * window.c (Fset_window_configuration): reset the frame subwindow
8635         cache and re-initialize the window subwindow caches.
8636
8637         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
8638
8639 2000-05-09  Ben Wing  <ben@xemacs.org>
8640
8641         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
8642         DWORD.
8643
8644 2000-04-26  Mike Woolley  <mike@bulsara.com>
8645
8646         * ntheap.c: Changed recreate_heap to limit the amount reserved
8647         for the heap to that which is actually available. Also now
8648         displays a message box (with some dignostics) in the event that
8649         it still can't start.
8650
8651 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
8652
8653         * callproc.c (Fold_call_process_internal): GCPRO path
8654
8655 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
8656
8657         Patch by Bill Perry.
8658
8659         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
8660         back data instead of #ifdef.
8661         (Fscrollbar_page_down): ditto.
8662
8663 2000-05-07  Ben Wing  <ben@xemacs.org>
8664
8665         * buffer.h:
8666         Kludge for defining Qmswindows_tstr.
8667
8668         * nt.c:
8669         * nt.c (open_input_file):
8670         * nt.c (open_output_file):
8671         * nt.c (rva_to_section):
8672         * nt.c (mswindows_executable_type):
8673         Move all memory-mapped-file routines here (some were in unexnt.c,
8674         which is bad because they are used by process-nt.c, and unexnt
8675         won't be around when portable dumping).  Synched the above routines
8676         with FSF 20.6.
8677
8678         * nt.h:
8679         Removed ifdef'd out bogus code.
8680         Fixed some prototypes.
8681
8682         * nt.h (file_data):
8683         * nt.h (OFFSET_TO_RVA):
8684         * nt.h (RVA_TO_OFFSET):
8685         * nt.h (RVA_TO_PTR):
8686         Moved the memory-mapped-file structures, macros and prototypes
8687         here, to parallel nt.c.  ntheap.h should really be removed
8688         entirely, and it's a non-portable-dumper specific file.
8689
8690         * ntheap.h (round_to_next):
8691         Moved the memory-mapped-file structures, macros and prototypes
8692         to nt.h.
8693
8694         * ntproc.c (compare_env):
8695         Moved rva_to_section and mswindows_executable_type to nt.c.
8696         Moved compare_env to process-nt.c.
8697         ntproc.c will die, one day.
8698
8699         * ntproc.c (sys_spawnve):
8700         Account for win32_ -> mswindows_.
8701
8702         * process-nt.c:
8703         * process-nt.c (struct nt_process_data):
8704         * process-nt.c (ensure_console_window_exists):
8705         * process-nt.c (compare_env):
8706         * process-nt.c (nt_create_process):
8707         * process-nt.c (nt_kill_process_by_pid):
8708         * process-nt.c (syms_of_process_nt):
8709         * process-nt.c (vars_of_process_nt):
8710         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
8711         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
8712         changes).  Eliminate our old `nt-quote-process-args' mechanism.
8713         Synch up nt_create_process with FSF 20.6 sys_spawnve.
8714         Move compare_env here from ntproc.c.
8715
8716         * process.c (Fprocess_send_region):
8717         Takes an optional fourth argument, BUFFER, which should fix some
8718         problems with call-process.
8719
8720         * syscommctrl.h:
8721         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
8722
8723         * syswindows.h:
8724         Move ICC_BAR_CLASSES to syscommctrl.h.
8725         Add preliminary macros for MSWindows/Mule.  More to come.
8726
8727         * unexnt.c:
8728         * unexnt.c (unexec):
8729         open_output_file moved to nt.c.
8730
8731
8732 2000-05-05  Andy Piper  <andy@xemacs.org>
8733
8734         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
8735         instance from the frame cache also since GC may catch up too late
8736         to make frame deletion sane.
8737
8738 2000-05-04  Andy Piper  <andy@xemacs.org>
8739
8740         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
8741         (x_finalize_image_instance): ungcpro on deletion.
8742
8743         * glyphs.c (image_instantiator_format_create): give pointers a
8744         query geometry method so that the geometry is at least set.
8745
8746         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
8747         initialize layouts if using widgets.
8748
8749 2000-05-03  Andy Piper  <andy@xemacs.org>
8750
8751         * nt.c: remove bogus reference to sysmmsystem.h
8752
8753         * gui-x.c (popup_selection_callback): fix no selection abort.
8754
8755 2000-05-02  Andy Piper  <andy@xemacs.org>
8756
8757         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
8758         (mswindows_widget_instantiate): ditto.
8759
8760         * glyphs-widget.c (initialize_widget_image_instance): initialize
8761         children correctly.
8762         (widget_instantiate): cope with children and items in the same
8763         instance.
8764
8765         * glyphs.c (mark_image_instance): cope with children as a first
8766         class member.
8767         (image_instance_equal): ditto.
8768         (image_instance_hash): ditto.
8769         (image_instance_changed): ditto.
8770
8771 2000-04-30  Andy Piper  <andy@xemacs.org>
8772
8773         * glyphs.c (subwindow_query_geometry): new function. Return some
8774         defaults.
8775         (subwindow_instantiate): don't assign dimensions if none have been
8776         given.
8777         (image_instantiator_format_create): add subwindow_query_geometry.
8778         (print_image_instance): cope with layouts as widgets.
8779
8780 2000-04-29  Andy Piper  <andy@xemacs.org>
8781
8782         * frame.c (delete_frame_internal): call
8783         free_frame_subwindow_instance_cache so that all subwindows are
8784         finalized before their parent.
8785         (mark_frame): remove subwindow_cachels.
8786         (Fmake_frame): remove subwindow_cachel manipulation.
8787         (allocate_frame_core): subwindow_instance_cache is a weak list.
8788         (delete_frame_internal): set subwindow_instance_cache to nil.
8789
8790         * glyphs-msw.c (mswindows_finalize_image_instance): make double
8791         finalization safe.
8792         (mswindows_finalize_image_instance): use the device
8793         not the domain as the domain may have died already.
8794
8795         * glyphs-x.c (x_finalize_image_instance): ditto.
8796         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
8797         HEIGHT.
8798
8799         * redisplay-output.c (redisplay_unmap_subwindows): update for
8800         subwindow instance cache as a weak list.
8801         (redisplay_unmap_subwindows_maybe): ditto.
8802         (redisplay_unmap_subwindows_except_us): ditto.
8803
8804         * glyphs.c (unmap_subwindow): error checking will check the domain
8805         so don't deal with it here. Don't use cachels anymore.
8806         (map_subwindow): ditto.
8807         (update_subwindow_cachel_data): remove old accessor names.
8808         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
8809         (Fresize_subwindow): don't update cachel.
8810         (mark_subwindow_cachels):
8811         (update_subwindow_cachel_data):
8812         (add_subwindow_cachel):
8813         (get_subwindow_cachel_index):
8814         (update_subwindow_cachel):
8815         (reset_subwindow_cachels):
8816         (mark_subwindow_cachels_as_not_updated): deleted.
8817         (cache_subwindow_instance_in_frame_maybe): new function. Add a
8818         subwindow instance to the frame cache.
8819         (find_matching_subwindow): update for subwindow instance cache as
8820         a weak list.
8821         (update_widget_instances): ditto.
8822         (image_instance_type_to_mask):inlined.
8823         (free_frame_subwindow_instance_cache): new function. finalize all
8824         subwindows that are instantiated.
8825
8826         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
8827         of cachel information.
8828         (IMAGE_INSTANCE_DISPLAY_X):
8829         (IMAGE_INSTANCE_DISPLAY_Y):
8830         (IMAGE_INSTANCE_DISPLAY_WIDTH):
8831         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
8832         (XIMAGE_INSTANCE_DISPLAY_X):
8833         (XIMAGE_INSTANCE_DISPLAY_Y):
8834         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
8835         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
8836         remove subwindow_cachel structure and function references.
8837         (image_instance_type_to_mask): inline from glyphs.c
8838
8839         * redisplay.c (redisplay_frame): remove subwindow_cachel
8840         references.
8841
8842         * frame.h (struct frame): remove subwindow_cachels.
8843         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
8844
8845         * frameslots.h: add subwindow_instance_cache.
8846
8847         * window.c (replace_window): check subwindow cache of replacement.
8848         (window_unmap_subwindows_cache_mapper):
8849         (window_unmap_subwindows): new functions. Unmap all subwindows
8850         cached on this window.
8851         (mark_window_as_deleted): unmap all subwindows.
8852
8853 2000-04-27  Andy Piper  <andy@xemacs.org>
8854
8855         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
8856
8857         * glyphs-widget.c (widget_layout): return something.
8858         (layout_layout): return something. Fail if not initialized.
8859         (layout_query_geometry): ditto.
8860         (image_instantiator_native_layout): new function. Initialized the
8861         native layout type.
8862         (widget_instantiate): don't do layout stuff here.
8863
8864         * glyphs.c (instantiate_image_instantiator): reorded calling or
8865         instantiate and post_instantiate with layout in between.
8866         (image_instance_layout): be more selective about deciding whether
8867         the layout has been done or not.
8868
8869         * glyphs.h (struct image_instantiator_methods): return a value
8870         from layout_method.
8871
8872 2000-04-26  Andy Piper  <andy@xemacs.org>
8873
8874         * glyphs.c (allocate_image_instance): make initial width and
8875         height unspecified. Set initialized to 0.
8876
8877         * syscommctrl.h new file. Encapsulates commctrl.h.
8878
8879         * syswindows.h new file. Encapsulates windows.h.
8880
8881         * ntplay.c: use new syswindows.h and syscommctrl.h header.
8882         * nt.c: ditto.
8883         * console-msw.h: ditto.
8884
8885         * redisplay-tty.c (tty_output_display_block): remove layout references.
8886
8887         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
8888         window handle rather than just the frame.
8889
8890         * glyphs.c (mark_image_instance): remove layout references.
8891         (print_image_instance): ditto.
8892         (image_instance_equal): ditto.
8893         (image_instance_hash): ditto.
8894         (decode_image_instance_type): ditto.
8895         (encode_image_instance_type): ditto.
8896         (image_instantiate): ditto.
8897         (allocate_glyph): ditto.
8898         (Fimage_instance_height): ditto.
8899         (Fimage_instance_width): ditto.
8900         (update_subwindow): ditto.
8901
8902         * redisplay-x.c (x_output_display_block): recode for layouts as
8903         widgets.
8904
8905         * redisplay-output.c (redisplay_output_layout): recode for layouts
8906         as widgets.
8907         (compare_runes): remove layout references.
8908
8909         * redisplay-msw.c (mswindows_output_display_block): recode for
8910         layouts as widgets.
8911
8912         * glyphs-widget.c (image_instantiator_layout): remove
8913         layout_possible_dest_types.
8914         (layout_possible_dest_types): deleted.
8915
8916         * glyphs.h (image_instance_type): remove layout references.
8917         (struct Lisp_Image_Instance): ditto. Add initialized flag.
8918         (IMAGE_INSTANCE_INITIALIZED): new accessor.
8919         (XIMAGE_INSTANCE_INITIALIZED): ditto.
8920
8921 2000-04-25  Andy Piper  <andy@xemacs.org>
8922
8923         * glyphs-widget.c (image_instantiator_buttons):
8924         (image_instantiator_edit_fields):
8925         (image_instantiator_combo_box):
8926         (image_instantiator_scrollbar):
8927         (image_instantiator_progress_guage):
8928         (image_instantiator_tree_view):
8929         (image_instantiator_tab_control):
8930         (image_instantiator_labels):
8931         (image_instantiator_layout): call default post_instantiate method.
8932         (widget_post_instantiate): new function. Simply lays out the
8933         widgets.
8934
8935         * glyphs.h (struct image_instantiator_methods): add
8936         post_instantiate method.
8937
8938         * glyphs.c (instantiate_image_instantiator): add post_instantiate
8939         method calls.
8940
8941 2000-04-23  Andy Piper  <andy@xemacs.org>
8942
8943         * glyphs.h (struct image_instantiator_methods): add
8944         decode_domain_method.
8945         (struct Lisp_Image_Instance): remove subwindow frame - it can be
8946         derived from the domain.
8947         (IMAGE_INSTANCE_FRAME): new accessor.
8948         (XIMAGE_INSTANCE_FRAME): ditto.
8949
8950         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
8951         instead of _SUBWINDOW_FRAME.
8952         (finalize_image_instance): ditto.
8953         (Fimage_instance_foreground): ditto.
8954         (Fimage_instance_background): ditto.
8955         (image_instantiate): ditto.
8956         (update_subwindow_cachel): ditto.
8957         (update_subwindow): ditto.
8958         (unmap_subwindow): ditto.
8959         (map_subwindow): ditto
8960         (subwindow_instantiate): ditto.
8961         * glyphs-msw.c (mswindows_update_widget): ditto.
8962         (mswindows_progress_gauge_instantiate): ditto.
8963         (mswindows_tab_control_update): ditto.
8964         * glyphs-x.c (x_update_widget): ditto.
8965         (x_widget_instantiate): ditto.
8966         (x_tab_control_instantiate): ditto.
8967         (x_tab_control_update): ditto.
8968         * event-msw.c (mswindows_wnd_proc): ditto
8969
8970         * glyphs-widget.c (image_instantiator_layout): use
8971         subwindow_decode_domain.
8972         (image_instantiator_buttons): ditto.
8973         (image_instantiator_edit_fields): ditto.
8974         (image_instantiator_combo_box): ditto.
8975         (image_instantiator_scrollbar): ditto.
8976         (image_instantiator_progress_guage): ditto.
8977         (image_instantiator_tree_view): ditto.
8978         (image_instantiator_tab_control): ditto.
8979         (image_instantiator_labels): ditto.
8980         (image_instantiator_layout): ditto.
8981
8982         * glyphs.c: add instance error checking to many functions.
8983         (instantiate_image_instantiator): decode device from cache_domain.
8984         (image_instantiate): partially rewrite by using
8985         decode_image_instantiator_domain to determine what domain the
8986         instance needs to be cached in.
8987         (decode_image_instantiator_domain): new function. Determine what
8988         domain the image needs to be cached in.
8989         (check_window_subwindow_cache): new error checking function.
8990         (check_instance_cache_mapper): ditto.
8991         (check_image_instance_structure): ditto.
8992         (subwindow_decode_domain): new function. Encodes a window as a
8993         subwindow's cache domain.
8994         (image_instantiator_format_create): use it for text and
8995         subwindows.
8996
8997 2000-04-21  Andy Piper  <andy@xemacs.org>
8998
8999         * glyphs.c (image_instance_device): new function.
9000         (image_instance_frame): new function.
9001         (image_instance_window): new function.
9002         (image_instance_live_p): new function.
9003
9004         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9005         cache to nil.
9006
9007         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9008         (IMAGE_INSTANCE_DOMAIN): new accessor.
9009         (XIMAGE_INSTANCE_DOMAIN): ditto.
9010
9011         * glyphs-x.c (x_finalize_image_instance): device->domain.
9012
9013         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9014         (mswindows_finalize_image_instance): ditto.
9015
9016         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9017         (gif_instantiate): ditto.
9018         (png_instantiate): ditto.
9019         (tiff_instantiate): ditto.
9020
9021         * glyphs.c (instantiate_image_instantiator): use domain rather
9022         than device.
9023         (mark_image_instance): device -> domain.
9024         (print_image_instance): ditto.
9025         (finalize_image_instance): ditto.
9026         (image_instance_equal): ditto.
9027         (allocate_image_instance): ditto.
9028         (Fcolorize_image_instance): ditto.
9029         (query_string_geometry): ditto.
9030         (image_instantiate): ditto
9031         (query_string_font): ditto.
9032         (image_instantiate): ditto.
9033         (update_subwindow): ditto.
9034         (unmap_subwindow): ditto.
9035         (map_subwindow): ditto.
9036         (subwindow_instantiate): ditto.
9037
9038         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9039         (DOMAIN_FRAME): ditto.
9040         (DOMAIN_WINDOW): ditto.
9041         (DOMAIN_LIVE_P): ditto.
9042         (XDOMAIN_DEVICE): ditto.
9043         (XDOMAIN_FRAME): ditto.
9044         (XDOMAIN_WINDOW): ditto.
9045
9046         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9047         a valid specifier domain.
9048
9049 2000-04-19  Andy Piper  <andy@xemacs.org>
9050
9051         * glyphs-widget.c (syms_of_glyphs_widget): remove
9052         widget-callback-current-channel.
9053         (vars_of_glyphs_widget): ditto.
9054         * glyphs.h: ditto
9055
9056         * gui.c (get_gui_callback): revert to previous behaviour.
9057
9058 2000-04-18  Andy Piper  <andy@xemacs.org>
9059
9060         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9061         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9062         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9063
9064         * glyphs.c (image_instance_equal): add margin_width.
9065         (image_instance_hash): ditto.
9066
9067         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9068         (layout_query_geometry): ditto.
9069         (layout_layout): ditto.
9070         (syms_of_glyphs_widget): add margin-width.
9071         (image_instantiator_layout): allow margin-width.
9072
9073         * glyphs.c (update_widget_instances): make a normal function.
9074         (syms_of_glyphs): remove Qupdate_widget_instances.
9075         * glyphs.h: ditto.
9076
9077         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9078         so that we don't corrupt ideas about the last event or
9079         command. Remove widget-callback-current-channel fiddling.
9080         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9081
9082 2000-05-01  Martin Buchholz <martin@xemacs.org>
9083
9084         * XEmacs 21.2.33 is released.
9085
9086 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9087
9088         * make-src-depend: Allow dots in header file name.
9089
9090 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9091
9092         * mule-charset.h (struct charset_lookup): Add
9093         next_allocated_1_byte_leading_byte and
9094         next_allocated_2_byte_leading_byte.
9095         * mule-charset.c: Move above two variables so that those values
9096         will be dumped.
9097
9098 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9099
9100         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9101         when string length is zero.
9102         (find_charsets_in_emchar_string): Ditto.
9103
9104 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9105
9106         * lisp.h: extern Qdialog and Qmenubar.
9107
9108         * gui-x.c: added events.h.
9109                 also fixed typo which made the file uncompilable.
9110
9111         * general.c: Added Qmenubar and Qdialog
9112
9113 2000-04-28  Ben Wing  <ben@xemacs.org>
9114
9115         * frame-msw.c (mswindows_init_frame_1):
9116         * frame-msw.c (mswindows_mark_frame):
9117         * event-msw.c (mswindows_enqueue_dispatch_event):
9118         * console-msw.h:
9119         * console-msw.h (struct mswindows_frame):
9120         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9121         there are now three hash tables for callbacks.
9122         mswindows_enqueue_dispatch_event is no longer static.
9123
9124         * dialog-x.c (maybe_run_dbox_text_callback):
9125         * dialog-x.c (dbox_descriptor_to_widget_value):
9126         switch to new cons3 form for callbacks.
9127
9128         * glyphs-msw.c (mswindows_register_gui_item):
9129         * glyphs-msw.c (mswindows_widget_instantiate):
9130         * glyphs-msw.c (add_tree_item):
9131         * glyphs-msw.c (add_tab_item):
9132         new image instance parameter, so it can be passed to callback-ex.
9133         respect :callback-ex as well as :callback.
9134
9135         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9136         add :callback-ex.
9137
9138         * glyphs.c (print_image_instance):
9139         prettify, e.g. now prints widget type.
9140
9141         * gui-x.h:
9142         certain funs have new image instance parameter.
9143
9144         * gui.c:
9145         * gui.c (get_gui_callback):
9146         * gui.c (gui_item_add_keyval_pair):
9147         * gui.c (gui_item_init):
9148         * gui.c (gui_add_item_keywords_to_plist):
9149         * gui.c (mark_gui_item):
9150         * gui.c (gui_item_hash):
9151         * gui.c (gui_item_equal):
9152         * gui.c (copy_gui_item):
9153         * gui.c (syms_of_gui):
9154         recognize callback-ex in a number of places.
9155         also, fix the annoying "can't get out of yes-no dialog" bug.
9156
9157         * gui.h:
9158         * gui.h (struct Lisp_Gui_Item):
9159         recognize callback-ex in a number of places.
9160
9161         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9162         new parameter in button_item_to_widget_value.
9163
9164         * glyphs-x.c (x_update_widget):
9165         * glyphs-x.c (x_button_instantiate):
9166         * glyphs-x.c (x_button_update):
9167         * glyphs-x.c (x_progress_gauge_instantiate):
9168         * glyphs-x.c (x_edit_field_instantiate):
9169         * glyphs-x.c (x_combo_box_instantiate):
9170         * glyphs-x.c (x_tab_control_instantiate):
9171         * glyphs-x.c (x_label_instantiate):
9172         new image instance parameter in various places.
9173
9174         * event-Xt.c:
9175         * event-Xt.c (enqueue_Xt_dispatch_event):
9176         this fun gets exported.
9177
9178         * gui-msw.c:
9179         * gui-msw.c (mswindows_handle_gui_wm_command):
9180         handle both :callback and :callback-ex, and generate our own
9181         event because it's one of the callback-ex arguments.
9182
9183         * gui-x.c:
9184         * gui-x.c (popup_selection_callback):
9185         handle both :callback and :callback-ex, and generate our own
9186         event because it's one of the callback-ex arguments.
9187         * gui-x.c (button_item_to_widget_value):
9188         * gui-x.c (gui_items_to_widget_values_1):
9189         * gui-x.c (gui_item_children_to_widget_values):
9190         * gui-x.c (gui_items_to_widget_values):
9191         new image instance parameter in various places.
9192
9193         * fns.c (Freplace_list):
9194         fix small typo in doc string.
9195
9196         * lisp.h:
9197         declare enqueue_Xt_dispatch_event.
9198
9199 2000-04-28  Ben Wing  <ben@xemacs.org>
9200
9201         * buffer.c:
9202         * buffer.c (Frecord_buffer):
9203         * buffer.c (syms_of_buffer):
9204         delete record-buffer-hook.
9205
9206         * fns.c:
9207         * fns.c (Freplace_list):
9208         * fns.c (syms_of_fns):
9209         new primitive replace-list.
9210
9211         * frameslots.h:
9212         slot for old buffer-alist.
9213
9214         * lisp.h:
9215         exfun replace-list.
9216
9217         * redisplay.c:
9218         * redisplay.c (redisplay_frame):
9219         * redisplay.c (syms_of_redisplay):
9220         * redisplay.c (vars_of_redisplay):
9221         new hook buffer-list-changed-hook.
9222         call it.
9223
9224 2000-04-27  Ben Wing  <ben@xemacs.org>
9225
9226         * extents.h: extern in_modeline_generation.
9227
9228         * redisplay.c (generate_formatted_string_db): set
9229         in_modeline_generation.
9230
9231         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9232         flags if in modeline generation.  otherwise frame-modified-tick
9233         is ticked far too often.
9234         Declare in_modeline_generation.
9235
9236 2000-04-26  Ben Wing  <ben@xemacs.org>
9237
9238         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9239         option.
9240         (vars_of_emacs): add quick-build as an error-checking option.
9241         A bit kludgy, but there doesn't seem much point in creating
9242         a real var for this.
9243
9244         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9245
9246 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9247
9248         * redisplay.h (struct display_line): Add a new variable,
9249         line_continuation.
9250
9251         * redisplay.c (create_text_block): Set dl->line_continuation if
9252         the line continues.
9253         (create_string_text_block): Ditto.
9254         (regenerate_window_incrementally): Use line_continuation instead
9255         of searching continuation glyph.
9256         (add_margin_runes): Call add_glyph_rune.
9257         (add_glyph_rune): Handle margin glyph.
9258
9259 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9260
9261         * filelock.c (fill_in_lock_file_name):
9262         ANSIfy.
9263         Check for IS_ANY_SEP instead of '/'.
9264         (lock_file_1):
9265         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9266         Never check errno without first seeing that system call failed.
9267         (unlock_file): Add GCPRO.
9268         (Flock_buffer): Fix docstring.
9269         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9270
9271 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9272
9273         * sysdep.c (get_pty_max_bytes):
9274         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9275         strings longer than 252 bytes.
9276
9277         * md5.c: Unconditionally include ANSI header <limits.h>
9278
9279         * glyphs-x.c (convert_EImage_to_XImage):
9280         * lisp-union.h (union Lisp_Object):
9281         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9282
9283 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9284
9285         * filelock.c (current_lock_owner): Remove unused variable o, p.
9286
9287 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9288
9289         * callint.c: Remove multiply defined symbol Qlet
9290         (syms_of_callint): ditto.
9291
9292 2000-04-14  Andy Piper  <andy@xemacs.org>
9293
9294         * general.c (syms_of_general): add last-command, this-command, let
9295         and funcall.
9296
9297         * lisp.h: declare various symbols.
9298
9299         * glyphs.h: declare Qwidget_callback_current_channel;
9300
9301         * glyphs-widget.c (syms_of_glyphs_widget): add
9302         Qgui_callback_current_channel.
9303         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9304
9305         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9306         widget-callback-current-channel when invoking the interactive
9307         arg. Also bind last-command and next-command when invoking the
9308         widget updates.
9309         * gui-x.c (popup_selection_callback): ditto.
9310
9311         * gui.c (get_gui_callback): massage args so that we are always
9312         calling eval. This allows us to add our own variable bindings
9313         outside.
9314
9315         * glyphs-x.c (x_button_instantiate): use
9316         gui_items_to_widget_values since this is GC safe.
9317         (x_progress_gauge_instantiate): ditto.
9318         (x_edit_field_instantiate): ditto.
9319         (x_label_instantiate): ditto.
9320
9321         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9322         (emacs_Xt_event_widget_focus_out): new function
9323         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9324         focus.
9325         (emacs_Xt_event_add_widget_actions): new function. add focus
9326         functions as actions.
9327         (init_event_Xt_late): use it.
9328
9329 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9330
9331         * event-stream.c (Fdispatch_event): Doc fix.
9332
9333 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9334
9335         * postgresql.c: Remove all references to PQsetenv*.
9336
9337         * postgresql.h: Remove references to PGsetenvHandler object.
9338         * lrecord.h (lrecord_type): Ditto.
9339
9340 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9341
9342         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9343         real_heigh and real_width members, and accessor macros for these.
9344
9345         * glyphs-msw.c (init_image_instance_geometry): New function.
9346         (init_image_instance_from_dibitmap): Use it.
9347         (mswindows_resource_instantiate): Use it.
9348         (init_image_instance_from_xbm_inline): Use it.
9349         (mswindows_initialize_image_instance_mask): Use real bitmap
9350         geometry.
9351         (mswindows_create_resized_bitmap): Ditto.
9352         (mswindows_create_resized_mask): Ditto.
9353
9354         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9355         and bitmap to their surface size.
9356
9357 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9358
9359         * process-unix.c (unix_send_process): Guard against process MIA
9360         after Faccept_process_output.
9361
9362 2000-04-11  Ben Wing  <ben@xemacs.org>
9363
9364         * eval.c (unbind_to_hairy): fix brokenness introduced by
9365         nanosecond speed improvements.
9366
9367 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9368
9369         * sunplay.c (init_device): To play sounds correctly, the device
9370         apparently needs to be initialized at least once by XEmacs.  Make
9371         it so.
9372
9373 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9374
9375         * redisplay.c (add_margin_runes): Add text image glyph
9376           handling.
9377
9378 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9379
9380         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9381         gcc is newer than 2.5.
9382
9383 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9384
9385         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9386
9387         * fns.c (size_bit_vector):
9388         * alloc.c (size_vector):
9389         (make_vector_internal):
9390         (make_bit_vector_internal):
9391         (sweep_bit_vectors_1):
9392         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9393
9394 2000-04-06  Andy Piper  <andy@xemacs.org>
9395
9396         * gmalloc.c (malloc): undo previous change.
9397         (malloc): ditto.
9398         (free): ditto.
9399         (realloc): ditto.
9400
9401 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9402
9403         * line-number.c (buffer_line_number): Revert to former version.
9404
9405 2000-04-06  Andy Piper  <andy@xemacs.org>
9406
9407         * gmalloc.c (malloc): add error checking.
9408         (malloc): ditto.
9409         (free): ditto.
9410         (realloc): ditto.
9411
9412         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9413         button_item_to_widget_value arg.
9414
9415         * glyphs-x.c (x_button_instantiate): add extra
9416         button_item_to_widget_value arg.
9417         (x_progress_gauge_instantiate): ditto.
9418         (x_edit_field_instantiate): ditto.
9419         (x_label_instantiate): ditto.
9420
9421         * gui-x.c (gui_items_to_widget_values_1): add extra
9422         button_item_to_widget_value arg.
9423         (button_item_to_widget_value): add extra menu_item_p arg.
9424
9425         * gui-x.h: change signature of button_item_to_widget_value.
9426
9427         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9428         button_item_to_widget_value arg.
9429
9430 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9431
9432         * buffer.h (struct buffer): auto_save_modified should be long.
9433
9434 2000-04-05  Andy Piper  <andy@xemacs.org>
9435
9436         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9437         type.
9438         (button_query_geometry): give a little more room so that athena
9439         buttons fit.
9440
9441 2000-04-05  Andy Piper  <andy@xemacs.org>
9442
9443         * faces.c (complex_vars_of_faces): The widget face should inherit
9444         the font of the gui-element face.
9445
9446 2000-04-04  Andy Piper  <andy@xemacs.org>
9447
9448         * glyphs-x.c (x_button_update): new function. unconditionally
9449         update a button's state when the instance is dirty.
9450         (image_instantiator_format_create_glyphs_x): add x_button_update.
9451         (x_widget_instantiate): remove old resize cruft.
9452
9453 2000-04-02  Andy Piper  <andy@xemacs.org>
9454
9455         * frame.c (change_frame_size_1): The introduction of gutters means
9456         that we need to allow 0 as a potential frame dimension.
9457
9458 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9459
9460         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9461         image glyph if allow_cursor.
9462         (add_hscroll_rune): Don't allow cursor to border glyph.
9463         (create_text_block): Ditto.
9464
9465         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9466         text not in buffer.
9467         (redisplay_output_layout): Call ensure_face_cachel_complete for
9468         text image glyph.
9469
9470
9471 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9472
9473         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9474
9475         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9476         not in buffer
9477
9478         * redisplay-tty.c (tty_output_display_block): Delete the routine
9479         for text image glyph
9480         * redisplay-x.c (x_output_display_block): ditto
9481         * redisplay-msw.c (mswindows_output_display_block): ditto
9482
9483 2000-02-02  Mike Alexander  <mta@arbortext.com>
9484
9485         Note: Some of these were committed by accident as part of other
9486         patches.
9487
9488         * regex.c (regex_compile): Avoid compiler warnings.
9489
9490         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9491
9492         * nt.h: Declare term_ntproc correctly.
9493
9494         * nt.c: Remove incorrect declaration of get_home_directory which
9495         is declared correctly in lisp.h.
9496
9497         * keymap.c (get_keyelt): Avoid compiler warnings.
9498         (raw_lookup_key_mapper): Avoid compiler warnings.
9499
9500         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9501
9502         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9503
9504         * filemode.c (mode_string): Avoid compiler warnings.
9505
9506         * file-coding.c (Fcoding_system_aliasee): Add return statement to
9507         avoid warning.
9508
9509         * events-mod.h: Undef some things that winuser.h defines differently.
9510
9511         * data.c (Faset): Avoid compiler warnings.
9512
9513         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9514
9515 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9516
9517         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9518         Fall through to simple beep on error.
9519         Replace "extern" by real header file.
9520
9521         * linuxplay.c: Use nativesound.h
9522         (play_sound_data): Return error code. Be less verbose on error.
9523
9524         * sunplay.c: Use nativesound.h
9525         (play_sound_data): Return error code. Be less verbose on error.
9526
9527         * ntplay.c: Use nativesound.h
9528         (play_sound_data): Return fake error code
9529
9530         * sgiplay.c: Use nativesound.h
9531         (play_sound_data): Return error code
9532
9533         * hpplay.c: Use nativesound.h, partially implement
9534         new error code. Break compilation until finished.
9535         (play_sound_data): error code.
9536
9537         * nativesound.h (play_sound_file):
9538           (play_sound_data): Prototype in new header.
9539
9540 2000-03-31  Andy Piper  <andy@xemacs.org>
9541
9542         * glyphs-widget.c: (button_query_geometry): new function. Adjust
9543         for toggle and radio buttons.
9544         (image_instantiator_buttons): use it.
9545
9546 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9547
9548         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9549         (x_update_horizontal_scrollbar_callback): Return if no mirror was
9550         found. Scrollbar event probably belonged to some old config.
9551
9552 2000-03-31  Andy Piper  <andy@xemacs.org>
9553
9554         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9555         than 1.
9556         (initialize_widget_image_instance): default layout to
9557         LAYOUT_HORIZONTAL rather than 0.
9558         (widget_instantiate): reverse the item list at the end rather than
9559         every iteration.
9560         (layout_layout): re-code for the border text at the front of the
9561         item list rather than at the end.
9562         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9563         provided by the user.
9564         (widget_query_geometry): comment.
9565
9566 2000-03-30  Andy Piper  <andy@xemacs.org>
9567
9568         * glyphs-widget.c (image_instantiator_layout): allow standard
9569         widget keywords in layouts.
9570
9571         * gutter.c (output_gutter): cope with nil gutter contents.
9572
9573         * frame.c (Fset_frame_properties): add gutter docs.
9574
9575 2000-03-29  Andy Piper  <andy@xemacs.org>
9576
9577         * toolbar-msw.c (TBSTYLE_FLAT): add.
9578         (mswindows_output_toolbar): minor fiddling.
9579
9580 2000-03-29  Andy Piper  <andy@xemacs.org>
9581
9582         * gutter.c (output_gutter): force gutter size recalculation if
9583         what we are trying to display won't fit.
9584         (update_gutter_geometry): new function. A per-gutter version of
9585         update_frame_gutter_geometry.
9586         (update_frame_gutter_geometry): use it.
9587         (redraw_exposed_gutter): add extra debugging output.
9588
9589 2000-03-28  Mike Alexander  <mta@arbortext.com>
9590
9591         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9592         (pdump_file_unmap): Implement it on Windows
9593         (pdump_file_get): Save alocated handles for pdump_file_unmap
9594
9595 2000-03-28  Andy Piper  <andy@xemacs.org>
9596
9597         * gui.c (get_gui_callback): treat Quit specially.
9598
9599 2000-03-27  Andy Piper  <andy@xemacs.org>
9600
9601         * glyphs.c (image_instantiate): be careful to check in the same
9602         way we assigned.
9603
9604 2000-03-27  Didier Verna  <didier@xemacs.org>
9605
9606         * config.h.in: define the proper SMART_INCLUDE macro.
9607         handle renaming of `foo_h_path' to `foo_h_file'.
9608
9609         * database.c: ditto.
9610
9611         * emacs.c: ditto.
9612
9613         * linuxplay.c: ditto.
9614
9615         * terminfo.c: ditto.
9616
9617         * tooltalk.h: ditto.
9618
9619 2000-03-27  Andy Piper  <andy@xemacs.org>
9620
9621         * glyphs-msw.c (mswindows_update_widget): make sure the widget
9622         gets updated whenever the face might have changed.
9623
9624 2000-03-26  Mike Alexander  <mta@arbortext.com>
9625
9626         * dumper.c (pdump_resource_free): Fix the comment.
9627
9628 2000-03-21  Olivier Galibert  <galibert@pobox.com>
9629
9630         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
9631
9632 2000-03-22  Mike Alexander  <mta@arbortext.com>
9633
9634         * dumper.c: Include Windows headers on Windows
9635         (pdump_resource_free): Add a body to the function
9636         (pdump_load): exe_name -> exe_path and add some comments.
9637
9638 2000-03-25  Mike Alexander  <mta@arbortext.com>
9639
9640         * gui.c (copy_gui_item_tree): Return a value in all cases
9641
9642 2000-03-21  Didier Verna  <didier@xemacs.org>
9643
9644         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
9645         lwlib/config.h.in.
9646         (SMART_INCLUDE): new macro.
9647         (POSTGRES_INCLUDE): new macro to include postgresql headers from
9648         the proper location.
9649
9650         * postgresql.c: use it.
9651
9652         * inline.c: ditto.
9653
9654 2000-03-24  Andy Piper  <andy@xemacs.org>
9655
9656         * gutter.c (redraw_exposed_gutters): must be "in display" when we
9657         do this.
9658
9659 2000-03-24  Andy Piper  <andy@xemacs.org>
9660
9661         * redisplay-output.c (compare_runes): use image_instance_changed
9662         to detect changes. Do not depend on glyphs_changed, only depend on
9663         dirtiness.
9664          (redisplay_output_layout): add debug messages.
9665         (compare_runes): ditto.
9666
9667         * glyphs.h: declare new functions.
9668         (struct Lisp_Image_Instance): remove percent and associated
9669         accessors.
9670
9671         * gui.h: declare new copying functions.
9672
9673         * gui.c (copy_gui_item_tree): new function.
9674         (copy_gui_item): new function.
9675         (gui_item_id_hash): revert to standard hash.
9676         (gui_item_hash): ditto.
9677         (gui_item_hash_internal): deleted.
9678         (mark_gui_item): mark value.
9679         (gui_item_add_keyval_pair): add value.
9680         (gui_item_init): ditto.
9681         (gui_add_item_keywords_to_plist): ditto.
9682         (gui_item_equal): ditto.
9683         (syms_of_gui): add Q_value.
9684
9685         * glyphs-x.c (x_progress_gauge_update): use pending items and
9686         value for setting the state.
9687         (x_update_widget): don't set items from pending here.
9688
9689         * glyphs-widget.c (update_widget): update items here.
9690         (progress_gauge_set_property): use items for storing value. Put
9691         new value in pending items.
9692
9693         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
9694         items for new value. Convert percent -> value.
9695         (mswindows_tab_control_update): don't update items here.
9696
9697         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
9698         (update_subwindow): ditto.
9699         (image_instance_changed): new function. Compare hash values and
9700         past and present widget items.
9701         (image_instantiate): We more careful about where we instantiate
9702         things.
9703         (image_instantiate): add error checking.
9704
9705         * gutter.c (syms_of_gutter): use -hook.
9706
9707 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
9708
9709         * console-tty.c (Fset_console_tty_input_coding_system): Use
9710         Qkeyboard.
9711         (Fset_console_tty_output_coding_system): Use Qterminal.
9712         (tty_init_console): Use Qkeyboard and Qterminal.
9713
9714 2000-03-21  Ben Wing  <ben@xemacs.org>
9715
9716         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
9717         From Mike Alexander <mta@arbortext.com>.
9718
9719 2000-03-21  Ben Wing  <ben@xemacs.org>
9720
9721         * event-msw.c (mswindows_need_event): Horrible kludge to fix
9722         process brokenness.  Proper implementation to come.
9723         * callproc.c:
9724         Rename call-process-internal to old-call-process-internal.
9725         New impl. in process.el.
9726
9727 2000-03-21  Martin Buchholz  <martin@xemacs.org>
9728
9729         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
9730
9731 2000-03-20  Andy Piper  <andy@xemacs.org>
9732
9733         * glyphs.c (full_list_hash): make hashes of the same elements in
9734         different orders return different values.
9735
9736 2000-03-20  Martin Buchholz <martin@xemacs.org>
9737
9738         * XEmacs 21.2.32 is released.
9739
9740 2000-03-20  Martin Buchholz  <martin@xemacs.org>
9741
9742         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
9743         (DFC_MALLOC_USE_CONVERTED_DATA):
9744         Add aliasing-safe casts to allow use with char* or unsigned char*
9745         lvalues.
9746
9747         * eldap.c (Fldap_open):
9748         (Fldap_search_basic):
9749         (Fldap_add):
9750         (Fldap_modify):
9751         Make C++-compilable.
9752         Make sure GCPRO'ed variables are initialized.
9753         Use temp variables to avoid repeated calls to Flength.
9754
9755 2000-03-16  Martin Buchholz  <martin@xemacs.org>
9756
9757         * sysfile.h:
9758         Make sure PATH_MAX is always defined.
9759         Include limits.h for PATH_MAX.
9760         Deprecate use of MAXPATHLEN.
9761
9762 2000-03-10  Martin Buchholz  <martin@xemacs.org>
9763
9764         * emacs.c: Add reinit_vars_of_fileio.
9765         * symsinit.h: Add reinit_vars_of_fileio.
9766         * fileio.c (reinit_vars_of_fileio): New.
9767         * fileio.c (Fmake_temp_name):
9768         Initialize temp_name random number from microseconds to make
9769         collisions even less likely.  Initialize always at process startup
9770         time.  (make-temp-name) used to return the same file name twice in
9771         a row when PDUMP.
9772         Random stylistic fiddling.
9773         Comment fixes.
9774
9775 2000-03-20  Andy Piper  <andy@xemacs.org>
9776
9777         * glyphs.c (image_instantiate): allow text glyphs to be
9778         instantiated in the minibuffer window.
9779
9780 2000-03-19  Andy Piper  <andy@xemacs.org>
9781
9782         * glyphs.c (image_instance_hash): be careful about which items we
9783         hash on.
9784
9785         * glyphs-widget.c (tab_control_set_property): record into pending
9786         items rather than the actual items.
9787
9788         * glyphs-x.c (x_update_widget): use pending items to update with.
9789
9790         * glyphs-msw.c (mswindows_tab_control_update): use pending items
9791         to update with.
9792
9793         * glyphs.c (mark_image_instance): mark pending items.
9794
9795         * window.c (Fset_window_configuration): record the buffer.
9796         (Fselect_window): totally revert previous change which breaks many
9797         things.
9798
9799 2000-03-18  Andy Piper  <andy@xemacs.org>
9800
9801         * glyphs-msw.c (mswindows_tab_control_update): force selected
9802         item.
9803
9804         * glyphs.c (image_instantiate): don't allow the minibuffer as a
9805         window domain cache, otherwise we get inconsistencies at
9806         startup. There is something fishy at startup which can lead to the
9807         minibuffer being the selected window when the gutter content is
9808         instantiated.
9809
9810         * gui.c (parse_gui_item_tree_list): add probably unnecessary
9811         gcpros.
9812         (parse_gui_item_tree_children): ditto.
9813         (parse_gui_item_tree_item): ditto.
9814
9815         * glyphs.c (Fupdate_widget_instances): return something.
9816
9817 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9818
9819         * window.c (Fselect_window): Undo 2000-03-17 change.
9820
9821 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
9822
9823         * postgresql.c (Fpq_setenv): Remove this turkey when linking
9824         against v7.0 libraries.  Insta-coredump city until the postgres
9825         folks fix it.
9826
9827 2000-03-17  Andy Piper  <andy@xemacs.org>
9828
9829         * faces.c (complex_vars_of_faces): don't give the widget face an
9830         inherited background pixmap.
9831
9832         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
9833         selected item.
9834
9835         * event-stream.c (Fdispatch_non_command_events): return something.
9836
9837         * gutter.c (output_gutter): use widget face.
9838         (clear_gutter): ditto.
9839
9840         * NEWS: adjust again.
9841
9842         * window.c (Fselect_window): make sure this runs to completion to
9843         avoid oddities with Fset_window_configuration.
9844         (Fcurrent_window_configuration): in general do not save the
9845         minibuffer as the selected window.
9846
9847         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
9848
9849 2000-03-16  Olivier Galibert  <galibert@pobox.com>
9850
9851         * emacs.c (Frunning_temacs_p): Revert previous patch.
9852         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
9853
9854 2000-03-16  Andy Piper  <andy@xemacs.org>
9855
9856         * glyphs-x.c (x_tab_control_update): if no widget values then
9857         return.
9858
9859         * NEWS: update for new features.
9860
9861         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
9862         synthetic event to the native system.
9863         (reinit_vars_of_event_Xt): set force_event_pending to
9864         emacs_Xt_force_event_pending.
9865
9866         * events.h (struct event_stream): add force_event_pending.
9867
9868         * specifier.c (recompute_one_cached_specifier_in_window): add
9869         comment.
9870
9871         * redisplay.c (redisplay_frame): don't call
9872         update_frame_subwindows. Reset subwindow cachels when
9873         subwindows_changed, removing this was an optimization too far.
9874
9875         * redisplay-output.c (compare_runes): reorganize so that we catch
9876         glyph changes when we want them. Set optimize_output when this
9877         would help layouts.
9878         (redisplay_output_layout): remove frame_really_changed, use
9879         optimize_output instead.
9880
9881         * redisplay-msw.c (mswindows_output_display_block): reset
9882         optimize_output after outputting a glyph.
9883         * redisplay-x.c (x_output_display_block): ditto.
9884         * redisplay-tty.c (tty_output_display_block): ditto.
9885
9886         * gutter.c: (specifier_vars_of_gutter): use new spec changed
9887         functions.
9888         (gutter_specs_changed): do specific gutter positions.
9889         (top_gutter_specs_changed): new function. Only update the
9890         specified gutter specs.
9891         (bottom_gutter_specs_changed): ditto.
9892         (left_gutter_specs_changed): ditto.
9893         (right_gutter_specs_changed): ditto.
9894
9895         * gui.c (gui_item_hash_internal): new function, does a real hash.
9896         (gui_item_id_hash): use it.
9897         (gui_item_hash): hash the eval'ed gui_item.
9898
9899         * gui-x.c (popup_selection_callback): send an eval event to call
9900         Fupdate_widget_instances.
9901
9902         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
9903         to call Fupdate_widget_instances.
9904
9905         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
9906         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
9907
9908         * glyphs.c: (update_frame_subwindows): deleted.
9909         (Fupdate_widget_instances): new function for updating the dirty
9910         state of widgets that might have changed.
9911         (syms_of_glyphs): add Qupdate_widget_instances.
9912         (full_list_hash): hash a list completely.
9913         (image_instance_hash): use it for items and properties.
9914
9915         * frame-msw.c (mswindows_size_frame_internal): remove unused
9916         variable.
9917
9918         * faces.h (struct face_cachel): fix comment.
9919
9920         * event-stream.c (Fdispatch_non_command_events): new
9921         function. Process non-command events, forcing an event cycle
9922         beforehand.
9923         (syms_of_event_stream): declare.
9924         (event_stream_force_event_pending): new function. Force an event
9925         on the native event queue so that an event cycle will occur next
9926         time we check.
9927
9928         * event-msw.c:
9929         (struct ntpipe_shove_stream):
9930         (mswindows_enqueue_dispatch_event):
9931         (mswindows_dequeue_dispatch_event):
9932         (mswindows_cancel_dispatch_event):
9933         (mswindows_pump_outstanding_events):
9934         (mswindows_drain_windows_queue):
9935         (mswindows_handle_paint):
9936         (mswindows_wnd_proc):
9937         (mswindows_key_to_emacs_keysym):
9938         (get_process_input_waitable):
9939         (emacs_mswindows_delete_stream_pair): re-indent file.
9940         (mswindows_need_event): do not process further fds if the windows
9941         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
9942         fixes the 100% cpu problem.
9943         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
9944
9945 2000-03-15  Olivier Galibert  <galibert@pobox.com>
9946
9947         * alloc.h: New.
9948         * dumper.h: New.
9949         * dumper.c: New.
9950
9951         * emacs.c: Moved dump file searching to dumper.c.
9952         (Frunning_temacs_p): Fixed.
9953
9954         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
9955         last_lrecord_type_index_assigned.
9956
9957 2000-02-20  Olivier Galibert  <galibert@pobox.com>
9958
9959         * symsinit.h: Added reinit parameter to init_console_stream
9960         declaration.
9961
9962         * lisp.h: Added file parameter to pdump_load declaration.
9963
9964         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
9965         support.  Added dump file searching.
9966
9967         * config.h.in: Added EMACS_PROGNAME.
9968
9969         * console-stream.c (init_console_stream): Fix reinitialisation
9970         when running from temacs.
9971
9972         * alloc.c (pdump): Add id support.
9973         (pdump_load): Add file parameter and signature/id support.
9974
9975         * Makefile.in.in: Add full pdump support.
9976
9977 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
9978
9979         * postgresql.c: Update documentation to reflect latest code
9980         status.
9981         (print_result): Show tuple counts in printed representation when
9982         appropriate.
9983         (Fpq_put_nbytes): MULE-ize.
9984         (Fpq_get_line_async): Ditto.
9985
9986 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
9987
9988         * postgresql.c (Fpq_lo_import): Fix return value.
9989         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
9990
9991 2000-03-13  Ben Wing  <ben@xemacs.org>
9992
9993         * alloc.c (pdump_load):
9994         Fix compile warning under mswin.
9995
9996 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
9997
9998         * postgresql.c: Mule-ization, bug fixes.
9999         Use PG_CODING to encapsulate coding system name changes.
10000         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10001         (pg-coding-system): Create.
10002
10003         (Fpq_conn_defaults): Mule-ize.
10004         (Fpq_connectdb): Mule-ize & bug fix.
10005         (Fpq_connect_start): Mule-ize.
10006         (Fpq_set_client_encoding): Mule-ize.
10007         (Fpq_finish): Document `DEAD' connection status.
10008         (Fpq_clear): Ditto.
10009         (Fpq_pgconn): Mule-ize.
10010         (Fpq_exec): Mule-ize & bug fix.
10011         (Fpq_send_query): Ditto.
10012         (Fpq_get_result): Ditto.
10013         (Fpq_res_status): Mule-ize.
10014         (Fpq_result_error_message): Mule-ize.
10015         (Fpq_ntuples): fix comments.
10016         (Fpq_fname): Mule-ize.
10017         (Fpq_fnumber): Mule-ize.
10018         (Fpq_ftype): fix comments.
10019         (Fpq_get_value): Mule-ize.
10020         (Fpq_cmd_status): Ditto.
10021         (Fpq_cmd_tuples): Ditto.
10022         (Fpq_oid_value): Ditto.
10023         (Fpq_notifies): Ditto.
10024         (Fpq_lo_import): Ditto.
10025         (Fpq_lo_export): Ditto.
10026         (Fpq_get_line): Ditto.
10027         (Fpq_put_line): Mule-ize and bug fix.
10028         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10029
10030 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10031
10032         * postgresql.c (vars_of_postgresql): Mule-ize.
10033         (Fpq_conn_defaults): Ditto.
10034
10035 2000-03-12  Ben Wing  <ben@xemacs.org>
10036
10037         * alloc.c (Fmake_byte_code):
10038         * alloc.c (debug_string_purity_print):
10039         * alloc.c (pdump_backtrace):
10040         * alloc.c (pdump_get_indirect_count):
10041         * alloc.c (pdump_register_sub):
10042         * alloc.c (pdump_register_object):
10043         * alloc.c (pdump_register_struct):
10044         * alloc.c (pdump_dump_data):
10045         * alloc.c (pdump_reloc_one):
10046         Minor cleanups.
10047
10048         * console-msw.c:
10049         * console-msw.c (GetConsoleHwnd):
10050         * console-msw.c (msw_hide_console):
10051         * console-msw.c (msw_show_console):
10052         * console-msw.c (msw_ensure_console_buffered):
10053         * console-msw.c (msw_output_console_string):
10054         * console-msw.c (console_type_create_mswindows):
10055
10056         a) Added functions to manipulate the console window for use with
10057         shell support.
10058
10059         b) Added support for writing text to the console, which is now
10060         used under Windows when xemacs is not being run non-interactively,
10061         to write text that would otherwise be destined for stdout because
10062         under these circumstances, text written to stdout tends to
10063         disappear and not be seen.
10064
10065         * console-msw.h:
10066         * event-Xt.c:
10067         * event-Xt.c (x_event_to_emacs_event):
10068         * event-Xt.c (describe_event_window):
10069         * events-mod.h (XEMACS_MOD_CONTROL):
10070         * events.c:
10071         * events.c (Fmake_event):
10072         * events.c (character_to_event):
10073         * events.c (event_to_character):
10074         * events.c (format_event_object):
10075         * events.c (Fevent_modifiers):
10076         * events.h:
10077         * events.h (struct key_data):
10078         * events.h (struct button_data):
10079         * events.h (struct misc_user_data):
10080         * frame-x.c (Fcde_start_drag_internal):
10081         * frame-x.c (Foffix_start_drag_internal):
10082         * gpmevent.c (Freceive_gpm_event):
10083         * keymap.c:
10084         * keymap.c (bucky_sym_to_bucky_bit):
10085         * keymap.c (control_meta_superify):
10086         * keymap.c (make_key_description):
10087         * keymap.c (keymap_lookup_directly):
10088         * keymap.c (create_bucky_submap):
10089         * keymap.c (keymap_store):
10090         * keymap.c (define_key_check_and_coerce_keysym):
10091         * keymap.c (define_key_parser):
10092         * keymap.c (define_key_alternate_name):
10093         * keymap.c (Fdefine_key):
10094         * keymap.c (raw_lookup_key_mapper):
10095         * keymap.c (struct map_keymap_unsorted_closure):
10096         * keymap.c (map_keymap_unsorted_mapper):
10097         * keymap.c (map_keymap_sort_predicate):
10098         * keymap.c (map_keymap_sorted):
10099         * keymap.c (accessible_keymaps_mapper_1):
10100         * keymap.c (where_is_recursive_mapper):
10101         * keymap.c (describe_map_mapper):
10102         * keymap.c (describe_map_sort_predicate):
10103         * keymap.c (describe_map):
10104         * keymap.c (complex_vars_of_keymap):
10105         And a number of other files, the key modifier preprocessor
10106         constants that xemacs uses have names that conflict with constants
10107         defined under MS Windows for other purposes, so they were renamed
10108         to begin with the prefix XEMACS_. The variables that hold such
10109         modifiers were changed to consistently be of type int to fix
10110         various compile warnings.
10111
10112         * console.c (complex_vars_of_console):
10113         * device.c:
10114         * device-msw.c:
10115         * device-msw.c (mswindows_finish_init_device):
10116         * device-msw.c (msw_get_workspace_coords):
10117         * device-msw.c (mswindows_device_system_metrics):
10118         and various other files, added support for a new
10119         device property called offset-workspace which returns the position
10120         of the upper left corner of the workspace area and goes along with
10121         the existing size-workspace property.
10122
10123         * dialog-msw.c:
10124         * dialog-msw.c (push_bufbyte_string_as_unicode):
10125         * dialog-msw.c (mswindows_popup_dialog_box):
10126         Added support for XEmacs-style accelerator specifications in
10127         button text.  Note: I didn't add support for this under X Windows,
10128         and somebody needs to do this.
10129
10130         * dialog.c:
10131         * dialog.c (Fpopup_dialog_box):
10132         Documented the support for accelerators that was just mentioned.
10133
10134         editfns.c (get_home_directory): Changed behavior under Windows
10135         when HOME not defined; former behavior was irretrievably broken.
10136
10137         * emacs.c:
10138         * emacs.c (main_1):
10139         * emacs.c (main):
10140         * minibuf.c (clear_echo_area_internal):
10141         * minibuf.c (echo_area_append):
10142         * print.c:
10143         * print.c (std_handle_out_external):
10144         * print.c (std_handle_out_va):
10145         * print.c (fatal):
10146         * print.c (write_string_to_stdio_stream):
10147         * print.c (output_string):
10148         * print.c (debug_print):
10149         * print.c (debug_backtrace):
10150         * print.c (debug_short_backtrace):
10151         Cleaned up the code that prints text to stdout so that this can be
10152         changed to output into a console window instead under MS Windows,
10153         as described above.
10154
10155         * eval.c:
10156         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10157         * eval.c (internal_catch):
10158         * eval.c (unwind_to_catch):
10159         * eval.c (throw_or_bomb_out):
10160         * eval.c (condition_case_1):
10161         * eval.c (signal_1):
10162         * eval.c (check_error_state_sanity):
10163         * eval.c (call_with_suspended_errors_1):
10164         * eval.c (call_with_suspended_errors):
10165         * eval.c (reinit_vars_of_eval):
10166         Added code to catch throw loops and check for a pesky bug that may
10167         be gone now.
10168
10169         * event-msw.c:
10170         * event-msw.c (key_needs_default_processing_p):
10171         * event-msw.c (mswindows_wnd_proc):
10172         * event-msw.c (mswindows_modifier_state):
10173         * event-msw.c (emacs_mswindows_quit_p):
10174         * event-msw.c (vars_of_event_mswindows):
10175         a) Added support for using the alt key to select menu items as is
10176         standard under MS Windows.  This is controlled using the variable
10177         menu-accelerator-enabled, just like under X Windows.  There is an
10178         option on the options menu to turn this support on.  I really
10179         think that it should be on by default under Windows, but I'm not
10180         going to make this change yet.
10181
10182         b)  Added support for dynamic display size changes under Windows.
10183
10184         * event-stream.c:
10185         * event-stream.c (maybe_echo_keys):
10186         * event-stream.c (Fnext_event):
10187         * event-stream.c (command_builder_find_leaf):
10188         * event-stream.c (lookup_command_event):
10189         * event-stream.c (execute_command_event):
10190         * event-stream.c (pre_command_hook):
10191         * event-stream.c (post_command_hook):
10192         * event-stream.c (syms_of_event_stream):
10193         * event-stream.c (vars_of_event_stream):
10194         * event-stream.c (complex_vars_of_event_stream):
10195         * events.h (struct command_builder):
10196
10197         a) Tried to clean up a little bit the horribly written x-specific
10198         accelerator code that crept into this file.  I moved this code
10199         into menubar-x.c where it belongs. I also needed to move the
10200         command builder structure into the file events.h because it is
10201         accessed directly by this accelerator code.  What I didn't do, but
10202         which should be done at some point, is to properly abstract this
10203         code using device methods instead of the kludgy way that it
10204         currently hooks into the event code.
10205
10206         b) Added the lisp variables this-command-properties and
10207         last-command- properties, which should be used to synchronize two
10208         adjacent commands in preference to playing games with the variable
10209         this-command, which is typically what happens.
10210
10211         c) Added some slightly nasty code to hook into the lisp support
10212         for shifted- motion-key selection.  This is actually necessary for
10213         somewhat complicated reasons, which are described in
10214         simple.el. (NB: I think the proper thing would be to have the code
10215         that calls the pre and post command hooks also call out to generic
10216         lisp functions in simple.el, where all built-in stuff could be
10217         added.  I will think about this more.)
10218
10219         * event-unixoid.c (poll_fds_for_input):
10220         * lread.c (readchar):
10221         * redisplay-tty.c (tty_clear_frame):
10222         * redisplay-x.c (x_get_gc):
10223         * signal.c (interrupt_signal):
10224         And a whole bunch of other files: fixed up places that printed
10225         directly to stderr to instead call the function stderr_out so that
10226         the changes I made under Windows work correctly.
10227
10228         * filemode.c (mode_string):
10229         Warning fixes.
10230
10231         * frame-msw.c:
10232         * frame-msw.c (mswindows_size_frame_internal):
10233         Fixed the computation of frame size and position to keep the frame
10234         within the workspace area, rather than within the physical
10235         dimensions of the screen, so that the frame doesn't overlap window
10236         manager decorations, such as the start menu and toolbar, typically
10237         at the bottom of the screen.
10238
10239         * frame.c (vars_of_frame):
10240         Changed the default frame title format under MS Windows to consist
10241         of buffername-XEmacs, which is standard under MS Windows.  I think
10242         it might be a good idea to change this everywhere because I think
10243         it is superior to the current frame title format, but this is the
10244         kind of change that is likely to cause some people to get annoyed,
10245         so I'm not making it.
10246
10247         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10248
10249         * gui-msw.c (mswindows_handle_gui_wm_command):
10250         Fixed compile warnings.
10251
10252         * gui-x.c:
10253         * gui-x.c (strdup_and_add_accel):
10254         * gui-x.c (button_item_to_widget_value):
10255         * gui-x.h:
10256         Added code to automatically put an accelerator onto the beginning
10257         of menu items that don't have one as is now the standard, and is
10258         described more later.  Also fixed things so that the menu item
10259         name can be an evaluated expression, again a new standard.
10260
10261         * gui.c:
10262         * gui.c (gui_item_add_keyval_pair):
10263         * gui.c (make_gui_item_from_keywords_internal):
10264         * gui.c (gui_add_item_keywords_to_plist):
10265         * gui.c (gui_item_accelerator):
10266         * gui.c (gui_name_accelerator):
10267         * gui.c (gui_item_included_p):
10268         * gui.c (gui_item_display_flush_left):
10269         * gui.c (gui_item_display_flush_right):
10270         * gui.c (parse_gui_item_tree_item):
10271         * gui.c (parse_gui_item_tree_children):
10272         * gui.c (parse_gui_item_tree_list):
10273         Mule-ized.  Cleanup.  GCPRO addition.
10274
10275         * line-number.c (buffer_line_number):
10276         * lisp.h:
10277         * lisp.h (EMACS_INT_MAX):
10278         Added the manifest constant EMACS_INT_MIN corresponding to the
10279         existing constant EMACS_INT_MAX.  This is partially to fix compile
10280         warnings under Windows, and partly for cleanliness.
10281
10282         * menubar-msw.c:
10283         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10284         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10285         * menubar-msw.c (displayable_menu_item):
10286         * menubar-msw.c (populate_menu_add_item):
10287         * menubar-msw.c (populate_or_checksum_helper):
10288         * menubar-msw.c (populate_menu):
10289         * menubar-msw.c (update_frame_menubar_maybe):
10290         * menubar-msw.c (prune_menubar):
10291         * menubar-msw.c (msw_char_is_accelerator):
10292         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10293         * menubar-msw.c (mswindows_handle_wm_command):
10294         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10295         * menubar-msw.c (mswindows_handle_wm_initmenu):
10296         * menubar-msw.c (mswindows_update_frame_menubars):
10297         * menubar-msw.c (mswindows_free_frame_menubars):
10298         * menubar-msw.c (mswindows_popup_menu):
10299         Fixed a bug in handling accelerators where an extra character
10300         would be displayed in the menu item.  Also generalized the
10301         function displayable_menu_item because it is now used by the
10302         dialog box code as well.  And finally, added code in the functions
10303         that create the menubar to extract a list of accelerators for the
10304         top level menubar, which is used in the event code to determine
10305         whether a particular alt-key combination should be used to invoke
10306         a menu item, or should be passed through to access the standard
10307         XEmacs keymap binding for this key combination.
10308
10309         Much needed GCPROing.
10310
10311         * menubar-x.c:
10312         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10313         * menubar-x.c (menu_item_descriptor_to_widget_value):
10314         * menubar-x.c (restore_in_menu_callback):
10315         * menubar-x.c (x_popup_menu):
10316         * menubar-x.c (menu_move_up):
10317         * menubar-x.c (menu_move_down):
10318         * menubar-x.c (menu_move_left):
10319         * menubar-x.c (menu_move_right):
10320         * menubar-x.c (menu_select_item):
10321         * menubar-x.c (command_builder_operate_menu_accelerator):
10322         * menubar-x.c (menu_accelerator_junk_on_error):
10323         * menubar-x.c (command_builder_find_menu_accelerator):
10324         * menubar-x.c (Faccelerate_menu):
10325         * menubar.h:
10326         Moved a whole bunch of code here that was previously in
10327         event-stream.c as described above.  There is also code connected
10328         to the new standard of adding an accelerator to the beginning of
10329         menu items that don't have one as described above and below.
10330
10331         * menubar.c:
10332         * menubar.c (menu_parse_submenu_keywords):
10333         * menubar.c (Fmenu_find_real_submenu):
10334         * menubar.c (Fnormalize_menu_item_name):
10335         * menubar.c (syms_of_menubar):
10336         * menubar.c (vars_of_menubar):
10337         * menubar.c (complex_vars_of_menubar):
10338
10339         a) Cleaned up a bunch of documentation and improved it.
10340
10341         b) XEmacs now automatically adds an accelerator onto the beginning
10342         of any menu items that don't have one.  I did this because there
10343         will inevitably be some menu items on the main menubar that don't
10344         have accelerators on them because the package that adds that
10345         particular menu item hasn't yet been fixed up to have accelerators
10346         in them and it looked rather strange to have some items with and
10347         some items without accelerators, especially since even in items
10348         without accelerators, you can, at least under windows, still
10349         access the item through an accelerator corresponding to the first
10350         character in the item's name.  If people don't like this behavior,
10351         I can add a variable to turn it off optionally, but I'm not sure
10352         this is a good idea because we really do need to have accelerators
10353         on all of the menu items, and if a package doesn't like the
10354         accelerators being put on the first character, then it should put
10355         the accelerators where they belong.
10356
10357         c) I made a behavior change, which is that the descriptor that
10358         specifies the text of the menu item, which formerly was just a
10359         string, can now also be an evaluated expression.  This makes this
10360         descriptor parallel with all of the others, which could also be
10361         evaluated expressions.  This also obviates the need for the
10362         keyword :label, which was previously listed in the documentation
10363         as unimplemented, and which was for the same purpose.
10364
10365         d) GCPROing.
10366
10367         * ntproc.c:
10368         * ntproc.c (new_child):
10369         * ntproc.c (sys_spawnve):
10370         * ntproc.c (find_child_console):
10371         * ntproc.c (sys_kill):
10372         Fixed compile warnings.  By the way, this file should really go
10373         away entirely, and this will happen as soon as Kirill makes his
10374         final round of process cleanups, which affect the function
10375         call-process.
10376
10377         * process-nt.c:
10378         * process-nt.c (struct nt_process_data):
10379         * process-nt.c (find_process_from_pid):
10380         * process-nt.c (send_signal_the_nt_way):
10381         * process-nt.c (enable_child_signals):
10382         * process-nt.c (find_child_console):
10383         * process-nt.c (send_signal_the_95_way):
10384         * process-nt.c (nt_finalize_process_data):
10385         * process-nt.c (ensure_console_window_exists):
10386         * process-nt.c (nt_create_process):
10387         * process-nt.c (nt_kill_child_process):
10388         * process-nt.c (nt_kill_process_by_pid):
10389         * process-nt.c (nt_open_network_stream):
10390         * process-nt.c (vars_of_process_nt):
10391         Copied over code from Emacs 20.5 to correctly send signals to sub-
10392         processes under Windows 95.  Also added code to automatically
10393         create and hide console window when a sub-process is created under
10394         Windows 95, which obviates the need for the separate runemacs.exe
10395         executable, and finally implemented some variables that were
10396         implemented in Emacs 20.5, but previously not in XEmacs.  These
10397         include mswindows- start-process-share-console and
10398         mswindows-start-process-inherit-error-mode. (Both of these only
10399         apply to Windows 95.)
10400
10401         * regex.c (regex_compile): Fixed a compile warning.
10402
10403         * select-msw.c:
10404         * select-msw.c (mswindows_own_selection):
10405         * select-msw.c (mswindows_get_foreign_selection):
10406         * select-msw.c (mswindows_disown_selection):
10407         * select-msw.c (console_type_create_select_mswindows):
10408         * select-msw.c (syms_of_select_mswindows):
10409         Cleaned up the file and implemented the device method
10410         selection_exists_p, which had accidentally been left out.  Also
10411         removed four lisp functions that were remnants from before the
10412         time when the selection code was properly device abstracted.
10413         These functions are no longer needed because there are generic
10414         equivalents, and because they were added recently and don't exist
10415         in FSF Emacs, I don't think there's any problem with just deleting
10416         them.
10417
10418         * sysdep.c:
10419         * sysdep.c (sys_subshell):
10420         Fixed a compile warning, although in this case there's probably
10421         something wrong with this code, and it ought to be looked into
10422         more thoroughly by somebody who understands it.
10423
10424         * window.c:
10425         * window.c (Fwindow_text_area_height):
10426         * window.c (Fwindow_width):
10427         * window.c (Fwindow_full_width):
10428         * window.c (Fwindow_pixel_width):
10429         * window.c (debug_print_window):
10430         * window.c (syms_of_window):
10431         Added functions window-text-area-height and window-full-width,
10432         which are functions for returning various width and height
10433         characteristics of a window. (One of these functions is necessary
10434         for making the file dialog box work correctly, and the other one
10435         was added for completeness.)  Also added a table to the
10436         documentation for window-height which describes the entire scheme
10437         for accessing width and height characteristics of a window.
10438
10439 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10440
10441         * nt.c (fstat): Added a comment for another problem with
10442         non-encapsulated [f]stat(), reported by Adrian Aichner
10443         <aichner@ecf.teradyne.com>.
10444
10445 2000-03-11  Andy Piper  <andy@xemacs.org>
10446
10447         * window.c (make_dummy_parent): initialize subwindow instance
10448         cache.
10449         (Fset_window_configuration): zero extent_modiff.
10450
10451 2000-03-10  Andy Piper  <andy@xemacs.org>
10452
10453         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10454         more changes can be triggered.
10455         (Fredisplay_frame): ditto.
10456         (Fredraw_device): ditto.
10457         (Fredisplay_device): ditto.
10458         (redisplay_frame): make non-static.
10459         (redisplay_frame): call update_frame_gutter_geometry outside of
10460         display proper.
10461
10462         * gutter.h: declare update_frame_gutter_geometry.
10463
10464         * redisplay.h: declare redisplay_frame.
10465
10466         * gutter.c (update_frame_gutter_geometry): move geometry changes
10467         in update_frame_gutters here. Geometry changes can only occur
10468         outside of redisplay.
10469         (update_frame_gutters): remove geometry change code.
10470         (Fredisplay_gutter_area): make sure that we are in display when we
10471         update and that we have flushed any size changes.
10472
10473 2000-03-11  Andy Piper  <andy@xemacs.org>
10474
10475         * alloc.c (pdump_dump_data): remove i & count shadows.
10476
10477 2000-02-27  Mike Alexander  <mta@arbortext.com>
10478
10479         * sysdep.h: Declare pdump_read_file
10480
10481         * sysdep.c (pdump_read_file): New function
10482
10483         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10484         dump data
10485
10486 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10487
10488         * lrecord.h: add `lrecord_type_pgsetenv'.
10489
10490 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10491
10492         * symsinit.h: declare (vars|syms)_of* functions.
10493         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10494
10495 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10496
10497         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10498
10499         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10500         GCCs.
10501
10502         * emacs.c (main_1): Call postgres initialization code.
10503
10504         * postgresql.h: New file.  PostgreSQL RDBMS support.
10505         * postgresql.c: New file.
10506
10507 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10508
10509         * redisplay-output.c (redisplay_output_display_block): Disable
10510         redundant code.
10511
10512 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10513
10514         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10515         (Fcanna_henkan_next): Ditto.
10516         (Fcanna_bunsetu_henkou): Ditto.
10517         (Fcanna_henkan_kakutei): Ditto.
10518         (Fcanna_henkan_end): Ditto.
10519         (Fcanna_henkan_quit): Ditto.
10520         (Fcanna_henkan_next): Set retun value correctly.
10521         (c2mu): Use unsigned char instead of signed char.
10522
10523 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10524
10525         * emacs.c (main_1): Always call syms_of_gui.
10526         * inline.c: include gui.h
10527
10528 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10529
10530         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10531         converted to Lisp_Object.
10532         (Qtop_bottom): New variable.
10533         (syms_of_redisplay): Initialize it.
10534         * redisplay.h (Vvisible_bell): Ditto.
10535         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10536         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10537         only flash top and bottom.
10538
10539 2000-03-08  Andy Piper  <andy@xemacs.org>
10540
10541         * buffer.c (Frename_buffer): record new buffer name the right way.
10542
10543 2000-03-08  Andy Piper  <andy@xemacs.org>
10544
10545         * glyphs.c (update_subwindow): increase hash depth so that widget
10546         items get picked up properly.
10547
10548         * redisplay-output.c (compare_runes): increase hash depth so that
10549         widget items get picked up properly.
10550
10551 2000-03-08  Andy Piper  <andy@xemacs.org>
10552
10553         * gutter.c (output_gutter): add some debug.
10554
10555         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10556         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10557         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10558
10559         * redisplay-output.c (compare_runes): use display_hash to
10560         determine if glyphs really are not the same.
10561
10562         * glyphs.c (update_subwindow): check display_hash to see if
10563         anything really needs to be updated. If not then do
10564         nothing. Record the display_hash after updating.
10565         (image_instance_equal): compare the image_instance face also.
10566
10567 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
10568
10569         * redisplay.h: Fix comment style.
10570
10571 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10572
10573         * consle-msw.h (struct mswindows_frame):
10574         Added new member paint_pending to indicate whether a WM_PAINT
10575         magic event has been queued for this frame.
10576
10577         * event-msw.c (mswindows_drain_windows_queue):
10578         Don't queue a WM_PAINT magic event if one is already queued.
10579         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10580
10581         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10582
10583 2000-03-07  Didier Verna  <didier@xemacs.org>
10584
10585         * dired.c: #include `regex.h' after `sysfile.h'.
10586
10587 2000-03-06  Martin Buchholz  <martin@xemacs.org>
10588
10589         * sound.c (init_nas_sound): Fix compiler warning.
10590
10591         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10592         (FREE_STRUCT_P):
10593         (MARK_STRUCT_AS_FREE):
10594         (MARK_STRUCT_AS_NOT_FREE):
10595         Make `gcc -fstrict-aliasing' work properly.
10596
10597 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10598
10599         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
10600         (mswindows_delete_device): Call CoUnnitialize().
10601
10602         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
10603
10604 2000-02-25    <CraigL@DyCon.com>
10605
10606         * process-nt.c: MinGW now has <shellapi.h>, but still needs
10607         <errno.h>.
10608
10609         * sysdep.c: This extern declaration for environ prevents MinGW
10610         from finding the variable in CRTDLL.DLL.
10611
10612         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
10613         windows headers.
10614         (SHGFI_EXETYPE): ..
10615         (WM_MOUSEWHEEL): ..
10616         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
10617         definitions.
10618         (MMRESULT): Removed, now defined in cygwin's windows headers.
10619         (TIMECAPS): ..
10620         (uid_t,gid_t,pid_t,ssize_t): ..
10621         (_timeb): Removed, MinGW defines both _timeb and timeb.
10622         (HAVE_H_ERRNO): Added.
10623         (HAVE_TZNAME): Added, configure is not detecting this.
10624
10625 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
10626
10627         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
10628         * syntax.c (syntax_match): Use it.
10629
10630         * cmds.c: Import auto-fill-chars from FSF Emacs.
10631         (Vauto_fill_chars): New variables.
10632         (internal_self_insert): Check Vauto_fill_chars.
10633         (vars_of_cmds):
10634         Declare auto-fill-chars as a Lisp variable and initialize it.
10635
10636 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10637
10638         * fileio.c (Fmake_symbolic_link):
10639         (Ffile_symlink_p):
10640         Run handlers even if local machine doesn't have symlinks.
10641
10642 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10643
10644         * event-msw.c (mswindows_drain_windows_queue):
10645         Don't generate paint magic events for non-XEmacs frames.
10646
10647 2000-03-05  Andy Piper  <andy@xemacs.org>
10648
10649         * redisplay.c (redisplay_frame): generate_displayable_area and
10650         friends assumes that we are not in GC, we therefore have to make
10651         sure that this doesn't happen.
10652
10653         * gutter.c (calculate_gutter_size): generate_displayable_area
10654         assumes that we are not in GC, we therefore have to make sure that
10655         this doesn't happen.
10656
10657 2000-03-05  Martin Buchholz  <martin@xemacs.org>
10658
10659         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
10660
10661 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10662
10663         * redisplay.c (regenerate_window): Make sure we set a sane value
10664         for end_pos even if we jump out of the loop.
10665         (regenerate_window): Answer Ben's question :-).
10666         (start_end_of_last_line): Add may_error argument.
10667         (start_of_last_line):
10668         (end_of_last_line): Pass may_error = 0.
10669         (end_of_last_line_may_error): New function.
10670         (pixel_to_glyph_translation): Use it, so we don't crash in
10671         event_to_glyph.
10672
10673 2000-03-04  Andy Piper  <andy@xemacs.org>
10674
10675         * window.h (struct window): add gutter_extent_modiff.
10676
10677         * window.c (allocate_window): zero out gutter_extent_modiff.
10678
10679         * redisplay.h: declare sync_display_line_structs.
10680
10681         * redisplay.c (add_glyph_rune): add a better comment.
10682
10683         * redisplay-output.c (sync_display_line_structs): made non-static.
10684         (compare_runes): remove unneccesary glyph cachel access.
10685
10686         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
10687
10688         * gutter.c (output_gutter): don't output the gutter if extent
10689         changes only involve extents in buffers. use 4 sets of display
10690         lines.
10691         (gutter_extent_signal_changed_region_maybe): new function. Mark
10692         extents in gutters as changed.
10693         (update_frame_gutters): use 4 sets of display lines.
10694         (reset_gutter_display_lines): ditto.
10695         (free_frame_gutters): ditto.
10696         (redraw_exposed_gutter): force output of gutters.
10697
10698         * frame.h (struct frame): add 4 sets of gutter display lines.
10699
10700         * extents.c: (extent_changed_for_redisplay): signal changes to
10701         extents in strings in the gutter as well as extents in buffers.
10702
10703 2000-03-02  Andy Piper  <andy@xemacs.org>
10704
10705         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
10706
10707         * frame.c (Fmake_frame): make sure the gutters get initialized
10708         after the frame is visible.
10709         (set_frame_selected_window): re-arrange compilation macros a
10710         little.
10711         (change_frame_size_1): mark gutters changed.
10712
10713         * device.c (Fset_device_class): mark gutters changed.
10714
10715 2000-03-01  Andy Piper  <andy@xemacs.org>
10716
10717         * window.c (window_top_frame_gutter_height): deleted.
10718         (window_bottom_frame_gutter_height): ditto.
10719         (window_left_frame_gutter_height): ditto.
10720         (window_right_frame_gutter_height): ditto.
10721         (window_top_gutter_height): don't use them.
10722         (window_bottom_gutter_height): ditto.
10723         (window_left_gutter_width): ditto.
10724         (window_right_gutter_width): ditto.
10725         (Fsplit_window): ditto.
10726         (Fwindow_pixel_edges): don't use border dimensions here.
10727
10728         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
10729         (update_scrollbar_instance): ditto.
10730
10731         * redisplay.c (generate_modeline): don't take gutters into account.
10732         (generate_modeline): ditto.
10733         (redisplay_frame): small gutter display optimization.
10734
10735         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
10736
10737         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
10738         gutters into account.
10739
10740         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
10741         for window position and type.
10742
10743         * gutter.c (get_gutter_coords): fix for frame gutters.
10744         (update_frame_gutters): update frame geometry if the gutters have
10745         changed.
10746         (init_frame_gutters): record current gutter geometries.
10747
10748         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
10749         var.
10750         (mswindows_widget_instantiate): ditto.
10751
10752         * frame.h (struct frame): add current_gutter_bounds.
10753
10754         * frame.c (change_frame_size_1): position window and minibuffer
10755         appropriately taking into account the frame gutters.
10756
10757         * frame-x.c: (x_initialize_frame_size): take into account the
10758         frame gutters.
10759
10760 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
10761
10762         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
10763
10764 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
10765
10766         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
10767
10768 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10769
10770         * file-coding.c (reset_decoding_stream): Clear previous
10771         detection state when autodetect.
10772
10773 2000-02-29  Didier Verna  <didier@xemacs.org>
10774
10775         * extents.c (set_extent_glyph_1): don't require extents to be
10776         attached.
10777
10778 2000-02-27  Andy Piper  <andy@xemacs.org>
10779
10780         * gutter.c (Fset_default_gutter_position): don't default left and
10781         right gutter visibility to t.
10782         (Fset_default_gutter_position): run
10783         default-gutter-position-changed-hook.
10784         (syms_of_gutter): add default-gutter-position-changed-hook.
10785
10786 2000-02-26  Andy Piper  <andy@xemacs.org>
10787
10788         * specifier.c (Fmake_specifier): add gutter references.
10789
10790         * gutter.h (RAW_WINDOW_GUTTER): new macro.
10791
10792         * lisp.h: declare Fvalid_plist_p.
10793
10794         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
10795         as changed.
10796         (default_gutter_visible_p_changed_in_window): invalidate gutter as
10797         well as its visibility so that it gets reconstructed.
10798         (construct_window_gutter_spec): new function. Construct a string
10799         to be displayed in the gutter from a plist of strings. Take care
10800         to only use elements that are declared as visible.
10801         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
10802         WINDOW_GUTTER.
10803         (gutter_validate): allow plists of strings in the specifier.
10804         (gutter_specs_changed): construct the real_gutter from the gutter
10805         specs using construct_window_gutter_spec.
10806         (gutter_visible_validate): gutter-visible is a new specifier type.
10807         (Fgutter_visible_specifier_p): new function for the new specifier.
10808         (syms_of_gutter): declare gutter-visible and
10809         Fgutter_visible_specifier_p.
10810         (specifier_type_create_gutter): intitalize new gutter-visible
10811         specifier.
10812         (reinit_specifier_type_create_gutter): ditto.
10813         (specifier_vars_of_gutter): use new specifier type for gutter
10814         visibility.
10815         (init_frame_gutters): construct real_gutter correctly.
10816         (Fgutter_specifier_p): beef up documentation.
10817         (Fgutter_size_specifier_p): ditto.
10818
10819         * winslots.h: add real_gutter slots.
10820
10821 2000-02-25  Andy Piper  <andy@xemacs.org>
10822
10823         * device-msw.c: Be kind to older cygwin versions. From Raymond
10824         Toy <toy@rtp.ericsson.se>.
10825
10826         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
10827         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
10828
10829 2000-02-25  Martin Buchholz  <martin@xemacs.org>
10830
10831         * elhash.c (MARK_OBJ): Practice macro hygiene.
10832
10833 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10834
10835         * miscplay.c: s/__inline__/inline/g;
10836         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
10837         (get_device_compdc): INLINE ==> static inline
10838         * *.[ch]: Change INLINE to INLINE_HEADER globally.
10839         find -name '*.h' | \
10840         xargs global-replace \
10841         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
10842
10843 2000-02-25  Andy Piper  <andy@xemacs.org>
10844
10845         * window.c (window_top_frame_gutter_height): new function.
10846         (window_top_window_gutter_height): ditto.
10847         (window_top_gutter_height): use them.
10848         (window_bottom_frame_gutter_height): new function.
10849         (window_bottom_window_gutter_height): ditto.
10850         (window_bottom_gutter_height): use them.
10851         (window_left_window_gutter_width): new function.
10852         (window_left_frame_gutter_width): ditto.
10853         (window_left_gutter_width): use them.
10854         (window_right_window_gutter_width): new function.
10855         (window_right_frame_gutter_width): ditto.
10856         (window_right_gutter_width): use them.
10857         (window_pixel_height): new function. calulate window pixel height
10858         with frame gutter involvement.
10859         (Fsplit_window): calculate new sizes taking frame gutters into
10860         account.
10861         (window_char_height_to_pixel_height): don't include frame gutters.
10862         (window_char_height): use window_pixel_height.
10863         (window_pixheight): rename from window_pixel_height.
10864         (change_window_height): use it.
10865         (window_pixel_height_to_char_height): don't include frame gutters.
10866         (window_char_width_to_pixel_width): ditto.
10867
10868 2000-02-25  Andy Piper  <andy@xemacs.org>
10869
10870         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
10871         if it is.
10872
10873 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10874
10875         * alloc.c (staticpro):
10876         (staticpro_nodump):
10877         (dumpstruct):
10878         (dumpopaque):
10879         (pdump_wire):
10880         (pdump_wire_list):
10881         (compact_string_chars):
10882         (pdump_dump_wired):
10883         Convert:  if (foo) abort();  ==>  assert (! foo);
10884
10885         * eldap.c (Fldap_search_basic):
10886         (Fldap_add):
10887         (Fldap_modify):
10888         (Fldap_delete):
10889         Fix compiler warnings, and possible crashes if (random) return
10890         value were to be used.
10891
10892 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10893
10894         * device-msw.c: Workaround ResetDC failure.
10895
10896         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
10897         applying a devmode.
10898
10899         * redisplay-msw.c (get_frame_dc): Added start_page_p.
10900         (mswindows_text_width): Do not start printer page.
10901
10902         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
10903
10904         * glyphs-msw.c: Added image methods to msprinter console and
10905         msprinter-specific image instantiation.
10906
10907 2000-02-20  Mike Alexander  <mta@arbortext.com>
10908
10909         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
10910         to avoid crashes when selection-sets-clipboard is on
10911         (mswindows_own_selection): ditto
10912
10913 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10914
10915         * glyphs-msw.c:
10916         * redisplay-msw.c (get_frame_dc):
10917         (get_frame_compdc):
10918         * console-msw.h:
10919         * device-msw.c (mswindows_init_device):
10920         (mswindows_delete_device):
10921         (msprinter_init_device):
10922         (msprinter_delete_device):
10923         * frame-msw.c (mswindows_init_frame_1):
10924         (mswindows_delete_frame):
10925         (msprinter_init_frame_3):
10926         (msprinter_delete_frame): Move compatible DC to device object from
10927         frame object, for both mswindows and msprinter. Only one at a time
10928         is needed, it is a real waste to have one per frame!
10929
10930 2000-02-23  Andy Piper  <andy@xemacs.org>
10931
10932         * glyphs.c: add dynamic width and height elements.
10933         (image_instance_equal): ditto.
10934
10935         * glyphs-widget.c (widget_query_geometry): calculate width and
10936         height dynamically if required.
10937         (initialize_widget_image_instance): initialize dynamic dimensions.
10938         (widget_instantiate): pick-up dynamic dimensions.
10939
10940         * glyphs.h (struct Lisp_Image_Instance): add width and height for
10941         dynamic determination. Add appropriate macros.
10942
10943         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
10944         dimensions safe.
10945         (WINDOW_GUTTER_SIZE): ditto.
10946         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
10947
10948         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
10949         inline.
10950         (get_frame_dc): ditto.
10951
10952         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
10953         here.
10954
10955 2000-02-23  Martin Buchholz <martin@xemacs.org>
10956
10957         * XEmacs 21.2.31 is released.
10958
10959 2000-02-22  Ben Wing <ben@xemacs.org>
10960
10961         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
10962
10963 2000-02-22  Andy Piper  <andy@xemacs.org>
10964
10965         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
10966
10967 2000-02-21  Mike Sperber <mike@xemacs.org>
10968
10969         * .dbxrc:
10970         * .gdbinit:
10971         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
10972         variables.
10973
10974 2000-02-21  Mike Sperber <mike@xemacs.org>
10975
10976         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
10977
10978 2000-02-21  Martin Buchholz <martin@xemacs.org>
10979
10980         * XEmacs 21.2.30 is released.
10981
10982 2000-02-20  Martin Buchholz  <martin@xemacs.org>
10983
10984         Performance hacking.
10985         * *.c (syms_of_*):
10986         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
10987         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
10988         * emacs.c (main_1):
10989         * lisp.h (DEFUN):
10990         * console.c (DEFVAR_CONSOLE_LOCAL_1):
10991         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
10992         * symeval.h (DEFVAR_SYMVAL_FWD):
10993         * symbols.c (guts_of_unbound_marker):
10994         Make all c_readonly objects also lisp_readonly and marked for life.
10995         * lrecord.h (struct lrecord_implementation):
10996         Document flags better.
10997         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
10998         * lrecord.h (DECLARE_LRECORD):
10999         * lrecord.h (XSETRECORD):
11000         * lrecord.h (RECORDP):
11001         * lrecord.h (RECORD_TYPEP):
11002         * lrecord.h (RECORD_MARKER): New.
11003         * lrecord.h (error_check_*):
11004         * lrecord.h (CONCHECK_NONRECORD):
11005         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11006         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11007         * lrecord.h (set_lheader_implementation):
11008         * lrecord.h (enum lrecord_type): New.
11009         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11010         * alloc.c (disksave_object_finalization_1):
11011         * alloc.c (mark_object):
11012         * alloc.c (lrecord_type_index):
11013         * alloc.c (tick_lcrecord_stats):
11014         * alloc.c (Fgarbage_collect):
11015         * alloc.c (init_alloc_once_early):
11016         * alloc.c (pdump_load):
11017         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11018         * alloc.c (lrecord_type_index): Delete.
11019         Make lisp object type indexes be constant.
11020           Makes (byte-compile) 5% faster.
11021         Put all marker functions into their own array.
11022           Makes (garbage-collect) 5% faster.
11023         Optimize SYMBOL_VALUE_MAGIC_P.
11024           Makes (byte-compile) 2-3% faster.
11025         * config.h.in (gc_checking_assert): New.
11026         * alloc.c: Use gc_checking_assert().
11027         * .dbxrc: Make compatible with new object type implementation.
11028         * .gdbinit: Make compatible with new object type implementation.
11029         * alloc.c: Delete all symbols defined only for debugging, such as
11030         Lisp_Type_Vector and lrecord_charset.
11031
11032 2000-02-21  Andy Piper  <andy@xemacs.org>
11033
11034         * gui-msw.c (Fmswindows_shell_execute): fix file location
11035         problems.
11036
11037         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11038         unshowing so that set_window_buffer doesn't undo
11039         kill_buffer_hook's hard work.
11040
11041         * glyphs-widget.c (tab_control_query_geometry): don't count the
11042         first item when calculating geometry.
11043
11044         * glyphs.c (map_subwindow): remove redundant code.
11045         (update_frame_subwindows): be more circumspect about when to
11046         update subwindows.
11047
11048         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11049         when items haven't changed. Update faces if faces have changed as
11050         well as just the widget face.
11051         (x_tab_control_update): Update faces if faces have changed as well
11052         as just the widget face.
11053
11054 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11055
11056         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11057         registration.
11058         (build_syscolor_string): Use mswindows_color_to_string to try to
11059         get a named color.
11060         (mswindows_device_system_metrics): Reverse the foreground and
11061         background colors so that they match the documentation.
11062
11063         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11064         they match the default Windows palette.
11065         (mswindows_color_to_string): New function.
11066
11067 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11068
11069         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11070
11071 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11072
11073         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11074         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11075
11076         * symbols.c (init_symbols_once_early): Removed obsolete
11077         DATA_SEG_BITS related kludge.
11078         (defvar_magic): Ditto.
11079
11080         * malloc.c: Removed obsolete DATA_SEG_BITS
11081         * ralloc.c: Ditto.
11082         * mem-limits.h: Ditto.
11083
11084         * Makefile.in.in: Removed obsolete HAVE_SHM
11085         * emacs.c: Ditto.
11086
11087 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11088
11089         *  device-msw.c (mswindows_delete_device): Free DDE string
11090         handles.
11091
11092 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11093
11094         * keymap.c (get_keyelt):
11095         * unexnt.c (unexec):
11096         * vm-limit.c (memory_warnings):
11097         * ntheap.c (recreate_heap):
11098         * ntheap.h (UNINIT_PTR):
11099         * select-msw.c (Fmswindows_get_clipboard):
11100         (Fmswindows_set_clipboard):
11101         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11102         * objects-msw.c:
11103         * menubar-msw.c (displayable_menu_item):
11104         * glyphs-msw.c:
11105         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11106         * sysdep.c (sys_subshell):
11107         * process-nt.c (nt_create_process):
11108         * nt.c (normalize_filename):
11109         (dostounix_filename):
11110         (unixtodos_filename):
11111         * ntproc.c (win32_executable_type):
11112         * ntplay.c (play_sound_data_1):
11113         (play_sound_file):
11114         * editfns.c (get_home_directory):
11115         * event-msw.c (struct winsock_stream):
11116         (mswindows_dde_callback):
11117         * device-msw.c (msprinter_init_device):
11118         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11119
11120         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11121         mswindows_clear_toolbar were swapped!
11122
11123         * objects-msw.c:(colormap_t):
11124         (fontmap_t):
11125         * emacs.c (struct standard_args): Fixed const jumble.
11126
11127         * glyphs-widget.c (update_widget): Fixed comparison notation.
11128
11129         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11130
11131         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11132         __declspec(noreturn) syntax.
11133
11134 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11135
11136         * eldap.c (Fldap_open):
11137         (Fldap_search_basic):
11138         (Fldap_add):
11139         (Fldap_modify):
11140         Use new coding system conversion macros.
11141
11142 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11143
11144         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11145
11146 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11147
11148         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11149         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11150
11151         * eldap.c (Qadd, Qreplace): New constant symbols
11152         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11153         interruptions by XEmacs signals
11154         Remove unnecessary calls to slow_down_interrupts and
11155         speed_up_interrupts
11156         (Fldap_search_basic): Renamed from Fldap_search_internal
11157         Added new optional parameter VERBOSE that triggers the
11158         display of progress messages
11159         Remove unnecessary calls to slow_down_interrupts and
11160         speed_up_interrupts
11161         LDAP result code analysis rewritten
11162         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11163         (syms_of_eldap): Define the new symbols and functions
11164
11165
11166 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11167
11168         * realpath.c: Determine PATH_MAX maximally portably.
11169
11170         * insdel.c (bytecount_to_charcount): Optimize.
11171         The function used to be optimized for entirely ASCII sequences.
11172         Now it is optimized for successive characters from the same
11173         charset.  This also wins big for _mostly_ ASCII sequences.
11174
11175         * fileio.c (Ffile_truename): convert return from realpath() using
11176         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11177         - Rewrite GCPROing slightly.
11178
11179         * sysdep.c (sys_open): Do filename conversion, like all other
11180         sys_* functions.  Fixes bug:
11181         (let ((file-name-coding-system 'iso-8859-2))
11182            (write-region x y latin2-name))
11183         ==> writes filename using internal encoding.
11184
11185 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11186
11187         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11188         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11189         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11190         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11191         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11192         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11193         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11194         (CONST_IF_NOT_DEBUG): Delete.
11195         * alloc.c (this_one_is_unmarkable): Delete.
11196         (mark_object): Don't check for this_one_is_unmarkable. Use the
11197         c_readonly flag instead.
11198         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11199
11200 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11201
11202         * event-msw.c (mswindows_drain_windows_queue):
11203         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11204         away redundant repaint events.
11205
11206 2000-02-17  Andy Piper  <andy@xemacs.org>
11207
11208         * redisplay.h: declare mark_redisplay_structs.
11209
11210         * redisplay.c (redisplay_window):
11211         (redisplay_frame): don't check subwindows_state_changed.
11212         (mark_redisplay): mark gutters here.
11213
11214         * glyphs.c: (instantiate_image_instantiator): always layout if we
11215         haven't done so already.
11216         (allocate_image_instance): don't mark as dirty.
11217         (update_subwindow): bind inhibit_quit.
11218
11219         * gutter.c (mark_gutters): new function.
11220
11221         * glyphs-x.c (x_update_widget): Always resize to get round a
11222         widget bug.
11223
11224         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11225         breaking absolutely everything.
11226
11227         * gutter.h: declare mark_gutters.
11228
11229 2000-02-16  Martin Buchholz <martin@xemacs.org>
11230
11231         * XEmacs 21.2.29 is released.
11232
11233 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11234
11235         * fns.c (size_bit_vector): Fix computation of the size.
11236
11237 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11238
11239         * *.[ch]: Change CONST to const globally.
11240         find -name '*.[ch]' | \
11241         xargs global-replace \
11242         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11243         - Remove vestigial references to CONST_IS_LOSING
11244
11245 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11246
11247         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11248         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11249         events instead of dispatching them directly.
11250         (mswindows_handle_paint): New function to do repainting.
11251         (mswindows_wnd_proc):
11252         (emacs_mswindows_handle_magic_event): Call above function.
11253
11254 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11255
11256         * objects-msw.c (mswindows_create_font_variant): Return the new
11257         font handle.
11258         (initialize_font_instance): Get font metrics from the underlined
11259         variant of the font to cope with the case where the underlined
11260         font has a bigger descent.
11261
11262 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11263
11264         * gui.c (gui_item_accelerator): Return the first underlined
11265         character in item name.
11266
11267 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11268
11269         * lisp.h: Added Qprinter.
11270
11271         * general.c (syms_of_general): Initialized it.
11272
11273         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11274         (get_frame_dc):
11275         (get_frame_compdc): Made inline.
11276
11277         * console.h (struct console_methods): Added eject_page method.
11278
11279         * frame.h: Added FRAME_DISPLAY_P and friends.
11280         Aligned backslahes in many macros in more readable fashion.
11281         Added page_number to struct frame, and an accessor macro
11282         for it.
11283
11284         * defice.h: Added DEVICE_DISPLAY_P and friends.
11285
11286         * device.c (Fdevice_printer_p): Used these.
11287
11288         * frame.c (allocate_frame_core): Initialize page number.
11289         (Fprint_job_page_number):
11290         (Fprint_job_eject_page): Implemented.
11291
11292         * frame-msw.c (msprinter_eject_page): Added method.
11293         (msprinter_start_page): Added.
11294
11295         * window.c (Fwindow_truncated_p): Fixed docstring.
11296         (Fwindow_last_line_visible_height): Implemented.
11297
11298 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11299
11300         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11301
11302 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11303
11304         * syntax.c (scan_words): Always advance at least one character.
11305
11306 2000-02-13  Andy Piper  <andy@xemacs.org>
11307
11308         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11309         to make sure the glyph is in the cachels.
11310
11311         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11312         global image instance flag.
11313         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11314         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11315
11316         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11317         (Fset_image_instance_property): mark layout as changed.
11318         (invalidate_glyph_geometry_maybe): mark layout as changed.
11319         (glyph_width): use new NEEDS_LAYOUT macro.
11320         (glyph_ascent): ditto.
11321         (glyph_descent): ditto.
11322         (glyph_height): ditto.
11323         (image_instance_layout): mark layout as clean after laying out.
11324         (update_subwindow): don't mark layout as clean here.
11325
11326         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11327         should no longer be needed.
11328
11329         * glyphs-x.c (x_update_widget): sanitize asserts.
11330         (x_finalize_image_instance): sanitize assignment to widgets.
11331
11332         * glyphs-widget.c (widget_instantiate): don't need to clear the
11333         layout flag here.
11334
11335 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11336
11337         * sysdep.c (getcwd): Use standard prototype.
11338         * sysdep.h (getcwd): Use standard prototype.
11339
11340         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11341         (sequence, start, end).
11342         Remove redundant type checking.
11343         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11344         view of `caller-protects') to avoid a crash where the real fix was
11345         found elsewhere.
11346
11347 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11348
11349         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11350
11351         * s/sol2.h: Remove feature macro initialization.
11352
11353         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11354         (vector_hash): New.  Code from internal_hash.
11355         * lrecord.h:
11356         Fix up allocation subsystem comments.
11357
11358         * config.h.in: Add __EXTENSIONS__ for Solaris.
11359
11360         * systime.h (EMACS_GETTIMEOFDAY): New.
11361         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11362         Remove Solaris-specific code.
11363         Use void* for the (ignored) second arg for gettimeofday().
11364
11365         * elhash.c (hash_table_hash): Implement it, finally.
11366         * elhash.c:  Use hashcode_t.
11367
11368         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11369         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11370
11371         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11372         * fns.c (size_bit_vector):
11373         * alloc.c (size_vector):
11374         (make_vector_internal):
11375         (make_bit_vector_internal):
11376         (sweep_bit_vectors_1):
11377         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11378
11379 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11380
11381         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11382         Include strings.h to avoid warnings for bzero and strcasecmp.
11383
11384 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11385
11386         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11387         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11388
11389         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11390         sequence.
11391
11392 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11393
11394         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11395         use a value field instead.
11396         (symbol_value_forward_forward): Use value field.
11397         (DEFVAR_SYMVAL_FWD): Use value field.
11398         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11399         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11400         (DEFVAR_CONST_INT): Ditto.
11401         (DEFVAR_BOOL): Ditto.
11402         (DEFVAR_CONST_BOOL): Ditto.
11403         (DEFVAR_INT_MAGIC): Ditto.
11404         (DEFVAR_BOOL_MAGIC): Ditto.
11405
11406         * symbols.c (guts_of_unbound_marker): Use value field.
11407         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11408         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11409
11410         * lisp.h: Declare dumpopaque and noninteractive1.
11411
11412         * alloc.c (dumpopaque): Added.
11413         (pdump_dump_opaquevec): Added.
11414         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11415         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11416         noninteractive.
11417
11418 2000-02-10  Andy Piper  <andy@xemacs.org>
11419
11420         * glyphs.c (image_instance_layout): if the size changes, mark it
11421         as such.
11422
11423         * redisplay-output.c (redisplay_output_layout): Update the
11424         subwindow here.
11425         (redisplay_output_subwindow): ditto.
11426
11427         * glyphs.c (update_subwindow): make sure we reset flags for
11428         layouts as well as everything else.
11429
11430         * glyphs-widget.c (layout_layout): don't need to set the instances
11431         dimensions here.
11432
11433 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11434
11435         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11436         not HAVE_DLOPEN, which is a lower-level thing.
11437
11438         * .cvsignore: Ignore gmon.out
11439
11440 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11441
11442         * .cvsignore: Ignore portable dumper xemacs.dmp file
11443
11444 2000-02-09  Andy Piper  <andy@xemacs.org>
11445
11446         * redisplay-output.c (redisplay_output_layout): be more clever
11447         about when we output based on the changed flags.
11448
11449         * glyphs.h (struct image_instantiator_methods): add update_method.
11450         (struct Lisp_Image_Instance): add changed flags. Declare new
11451         macros for manipulating them.
11452
11453         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11454         (image_instance_parent_glyph): find an image_instance's parent
11455         glyph or image_instance.
11456         (image_instance_layout): mark the size as changed.
11457         (set_image_instance_dirty_p): new function. mark an image
11458         instance, plus all of its parents, as dirty.
11459         (Fset_image_instance_property): use it.
11460         (Fglyph_animated_timeout_handler): use it.
11461         (update_subwindow): call update_widget and device methods for
11462         update_subwindow. Mark all changed flags as clean.
11463         (Fresize_subwindow): mark size as changed.
11464
11465         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11466         failures.
11467         (x_update_subwindow): only resize subwindows here.
11468         (x_update_widget): new function. Update all changed properties of
11469         a widget.
11470         (x_resize_subwindow): deleted.
11471         (x_widget_set_property): deleted.
11472         (x_progress_gauge_set_property): deleted.
11473         (x_progress_gauge_update): new function. Implement recorded
11474         changes.
11475         (x_tab_control_update): ditto.
11476         (x_tab_control_set_property): deleted.
11477         (console_type_create_glyphs_x): declare new functions.
11478         (image_instantiator_format_create_glyphs_x): ditto.
11479
11480         * glyphs-widget.c (widget_set_property): mark text changed.
11481         (update_widget): new function. Update properties of a widget.
11482         (widget_instantiate): for layouts make sure we set their
11483         children's parent correctly.
11484         (tab_control_set_property): new function. Record changes that will
11485         take place under redisplay's control.
11486         (progress_gauge_set_property): ditto.
11487         (image_instantiator_progress_guage): declare new functions.
11488         (image_instantiator_tab_control): ditto.
11489
11490         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11491         now.
11492         (mswindows_update_widget): new function. Update all properties on
11493         a widget that have changed.
11494         (mswindows_button_update): new function. Update a button's set
11495         state.
11496         (mswindows_tab_control_update): new function. Update the items in
11497         a tab.
11498         (mswindows_tab_control_set_property): deleted.
11499         (mswindows_progress_gauge_update): new function. Update the
11500         progress gauge's progress.
11501         (mswindows_widget_set_property): deleted. This is all done
11502         asynchronously now.
11503         (mswindows_progress_gauge_set_property): ditto.
11504         (console_type_create_glyphs_mswindows): declare new methods.
11505         (image_instantiator_format_create_glyphs_mswindows): ditto.
11506
11507         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11508         (msprinter_set_frame_properties): ditto.
11509
11510         * console.h (struct console_methods): Add update_widget_method.
11511
11512 2000-02-09  Andy Piper  <andy@xemacs.org>
11513
11514         * gui-msw.c (Fmswindows_shell_execute): Make
11515         mswindows-shell-execute industrial strength.
11516
11517 2000-02-08  Martin Buchholz  <martin@xemacs.org>
11518
11519         * lrecord.h: Make macro argument `props' match member function `plist'.
11520         * fns.c (Fget):
11521         * fns.c (Fput):
11522         * fns.c (Fremprop):
11523         * fns.c (Fobject_plist):
11524         * alloc.c:
11525         * symbols.c:
11526         Object property list frobbing cleanup.
11527         - Allow any lisp object (compared with `eq'), not just symbols, as
11528           keys in object plists.
11529         - Move symbol plist frobbing into symbols.c, where it belongs.
11530         - Move string plist frobbing into alloc.c, where it belongs.
11531         - Everything's an lrecord now, so no need to test for symbolp, etc.
11532         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11533
11534         * extents.c: Reorder code to remove declarations.
11535
11536         * frame.h (store_in_alist): Remove useless declaration.
11537
11538 2000-02-07  Martin Buchholz  <martin@xemacs.org>
11539
11540         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11541         * config.h.in: Add HAVE_XCONVERTCASE.
11542
11543 2000-02-07  Andy Piper  <andy@xemacs.org>
11544
11545         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11546         it breaks many things.
11547
11548 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11549
11550         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11551         actually can start a common comment type.
11552         * src/syntax.h (SYNTAX_END_P): ditto for end.
11553
11554 2000-02-07  Martin Buchholz <martin@xemacs.org>
11555
11556         * XEmacs 21.2.28 is released.
11557
11558 2000-02-06  Martin Buchholz  <martin@xemacs.org>
11559
11560         * event-Xt.c (x_keysym_to_character): New.
11561         (maybe_define_x_key_as_self_inserting_character): New.
11562         (x_has_keysym): New.
11563         Auto-define all keys on the keyboard as self-insert-key.
11564
11565 2000-02-02  Martin Buchholz  <martin@xemacs.org>
11566
11567         * menubar.c (vars_of_menubar): A small code simplification.
11568
11569         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11570
11571         * ExternalShell.c:
11572         * ExternalClient.c:
11573         * EmacsShell-sub.c:
11574         * EmacsManager.c:
11575         * EmacsFrame.c:
11576         Use consistent style for specifying X resources.
11577
11578         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11579         This makes (dontusethis-set-symbol-value-handler) actually usable.
11580
11581         * lrecord.h (lrecord_decription_type):
11582         * alloc.c (pdump_register_sub):
11583         (pdump_dump_data):
11584         (pdump_reloc_one):
11585         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11586         Comply with XEmacs coding style.
11587         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11588         args, and XD_LISP_OBJECT_ARRAY with 3 args.
11589
11590         * keymap.c (Faccessible_keymaps):
11591         Make (accessible-keymaps map "\C-h") do the Right Thing.
11592         Make (accessible-keymaps map []) do the Right Thing.
11593         Make (accessible-keymaps map "") do the Right Thing.
11594         (check_keymap_definition_loop): New function.
11595         (keymap_store_internal): Keep luser from shooting self in foot,
11596           via (define-key ctl-x-4-map "p" global-map).
11597         Remove fullness slot from struct Lisp_Keymap, since hash tables
11598         are now reliable.
11599         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
11600
11601 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11602
11603         * redisplay.c (init_redisplay): Fix small memory leak.
11604         * elhash.h:
11605         * elhash.c (pdump_reorganize_hash_table):
11606         Rename from reorganize_hash_table. Change prototype.
11607         Reuse the original memory for hentries.  Save 100k.
11608         * alloc.c (PDUMP_READ): new macro.
11609         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
11610         * alloc.c: No need to #ifndef before #undef.
11611
11612         * print.c: Allow debug_print() to print readably by modifying
11613         debug_print_readably.  Use consistent variable names.
11614
11615         * .dbxrc: Try to get things to work even if stopped in a function
11616         without source available by explicitly specifying source files.
11617 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11618
11619         * unexnt.c (_start): Removed bogus code which caused loading heap
11620         from differrent executable file.
11621         Removed bogus assignment to _fmode, which caused inconsistencies.
11622
11623 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11624
11625         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
11626         Have spawnve encapsulation regard DONT_ENCAPSULATE.
11627         Do not preliminary `#define signal sigset'.
11628
11629         * systime.h: Do not prototype environ on windows nt and cygwin,
11630         this conflicts with system header.
11631
11632         * syssignal.h: Use correct define for WINDOWSNT
11633
11634         * sysdep.h: Do not prototype environ on windows nt, this conflicts
11635         with system header.
11636
11637         * sysdep.c (near start of file): Fixed commentary and rearranged
11638         ifdefs in readable order.
11639         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
11640         (start_of_text):
11641         (end_of_text):
11642         (end_of_data): Do not compile in if using PDUMP.
11643
11644         * symsinit.h: Prototyped vars_of_nt().
11645
11646         * ntproc.c (windows9x_p): Added, instead of os_subtype.
11647         (find_child_console): Use it.
11648         (sys_kill): Use it.
11649
11650         * ntheap.h: Do not extern os_subtype.
11651
11652         * ntheap.c (cache_system_info): Do not cache unneeded:
11653         nt_major_version, nt_minor_version and os_subtype.
11654         (recreate_heap): Do not compile in when PDUMPing.
11655
11656         * nt.c (geteuid and friends): Use the new varibale
11657         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
11658         (init_user_info): Removed the above mentioned hackery.
11659         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
11660         stat has been fixed in the C runtime.
11661         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
11662
11663         * file-coding.c (struct file_coding_dump): Do not define
11664         ucs_to_mule_table in the struct if not MULE.
11665         (struct struct lrecord_description fcd_description_1): Do not dump
11666         the above.
11667
11668         * emacs.c (main_1): Call vars_of_nt().
11669         (right before Fdump_emacs_data): Don't need lastfile if using both
11670         portabe dumper and system malloc.
11671
11672         * alloc.c (Fmemory_limit): Conditionalized out.
11673         (pdump): Use OPEN_BINARY for the portable dump file.
11674         (pdump_load): Ditto.
11675
11676 2000-02-02  Mike Alexander  <mta@arbortext.com>
11677
11678         * nt.c (convert_time): Set tm_isdst before calling mktime and
11679         avoid calling it at all if the compiler supports 64 bit integers.
11680         Also initialize utc_base_ft before using it.
11681
11682 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11683
11684         * frame.c (change_frame_size_1): Take f->internal_border_width
11685         into consideration when calculating the width of the frame.
11686
11687 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11688
11689         * window.c (frame_min_height):
11690         (frame_size_valid_p):
11691         (frame_pixsize_valid_p): Added.
11692         (check_frame_size): Generalized.
11693
11694         * window.h: Prototyped the above.
11695
11696         * lisp.h:
11697         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
11698         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
11699         Deleted Vwin32_* and Vbinary_process_* unused variables.
11700
11701         * device-msw.c (msprinter_init_device): Do not get printer font
11702         list; Added DEVMODE functions.
11703
11704         * frame-msw.c: Added lots of printer code.
11705
11706         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
11707         general.c.
11708
11709         * console-msw.h: Added more msprinter device private slots.
11710
11711 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11712
11713         * event-msw.c (key_needs_default_processing_p): Added.
11714         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
11715
11716 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11717
11718         * glyphs.c (image_instance_layout): Mark image instance as clean
11719         after layout.
11720         (glyph_dirty_p): Removed redundant function.
11721         (invalidate_glyph_geometry_maybe): Added.
11722         (update_glyph_cachel_data): Call it.
11723
11724         * glyphs.h: Prototyped it.
11725
11726         * redisplay.c (add_glyph_rune): Call it.
11727         (redisplay_window): Reset glyphs cachels when frame faces have
11728         changed, thus forcing recomputation of built-in border glyphs.
11729
11730 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11731
11732         * Makefile.in.in: Make portable dumper and purify play well together.
11733         Add imperfect, but better than nothing, support for pdump.
11734         Remove xemacs.dmp when temacs is re-generated.
11735         Don't ignore errors when dumping xemacs.
11736
11737         * symbols.c (maybe_call_magic_handler): Remove one magic number.
11738
11739 2000-01-28  Andy Piper  <andy@xemacs.org>
11740
11741         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
11742         (setup_normal_frame): ditto.
11743         (setup_frame_without_minibuffer): ditto.
11744         (setup_minibuffer_frame): ditto.
11745         (delete_frame_internal): ditto.
11746         (Fmake_frame_invisible): ditto.
11747         (Ficonify_frame): ditto.
11748
11749         * window.h: change Fset_window_buffer signature.
11750
11751         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
11752         (Fset_window_buffer): allow recording of buffer if the window is
11753         the selected window.
11754         (window_loop): Use new Fset_window signature.
11755
11756 2000-01-23  Daniel Pittman  <daniel@danann.net>
11757
11758         * config.h.in: Added template for `HAVE_ATHENA_3D'
11759
11760 2000-01-29  Andy Piper  <andy@xemacs.org>
11761
11762         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
11763
11764         * gutter.c (output_gutter): Don't output if the window isn't live.
11765
11766 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11767
11768         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
11769         of 01/12/00: Moved SetFocus back here where it belongs.
11770
11771 2000-01-23  Andy Piper  <andy@xemacs.org>
11772
11773         * s/cygwin32.h: declare printer things.
11774
11775 2000-01-26  Andy Piper  <andy@xemacs.org>
11776
11777         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
11778         Alexander.
11779
11780 2000-01-24  Andy Piper  <andy@xemacs.org>
11781
11782         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
11783         (mswindows_button_instantiate): Make sure glyph is a pixmap.
11784
11785         * glyphs-widget.c (widget_instantiate): Avoid shadows.
11786
11787         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
11788
11789         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
11790
11791         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
11792         (mswindows_output_display_block): Avoid local shadows.
11793
11794         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
11795         (mswindows_enqueue_mouse_button_event): ditto.
11796         (mswindows_handle_gui_wm_command): remove declaration.
11797
11798         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
11799         warnings.
11800
11801         * console-msw.h: Avoid shadows.
11802         (mswindows_get_toolbar_button_text):
11803         (emacs_mswindows_create_stream_pair):
11804         (emacs_mswindows_delete_stream_pair):
11805         (mswindows_handle_toolbar_wm_command): declare.
11806
11807         * device-msw.c (build_syscolor_string): Avoid shadows.
11808
11809 2000-01-23  Andy Piper  <andy@xemacs.org>
11810
11811         * glyphs-widget.c (widget_instantiate): reverse the items for
11812         layouts so that children are in the expected order.
11813
11814 2000-01-28  Martin Buchholz  <martin@xemacs.org>
11815
11816         * ralloc.c: safe_bcopy ==> memmove
11817         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
11818         * s/msdos.h: Remove BCOPY macros.
11819         * insdel.c (gap_right): Remove BCOPY conditional code.
11820         * insdel.c (gap_left): Remove BCOPY conditional code.
11821         XEmacs demands a working ANSI C compiler - hence memmove.
11822
11823         * regex.c (regex_compile): Remove accidental use of trigraphs.
11824
11825 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11826
11827         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
11828         event timestamp.
11829
11830 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11831
11832         * event-msw.c (mswindows_drain_windows_queue): Added the
11833         parameter.
11834         (mswindows_need_event): Commented the call to
11835         mswindows_drain_windows_queue().
11836         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
11837         only.
11838
11839         * console-msw.h: Moved a few function prototypes here from
11840         event-msw.c.
11841
11842         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
11843         parameter from unsigned short to unsigned long.
11844         (Fmswindows_shell_execute): Added return value.
11845
11846 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11847
11848         * sysdep.c (init_system_name):
11849           process-unix.c (unix_canonicalized_host_name):
11850         Don't call freeaddrinfo() if getaddrinfo() fails.
11851
11852         * process-unix.c (unix_open_unix_network_stream):
11853         Moved the code to get a port # into address loop.
11854
11855 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11856
11857         * buffer.c (reinit_vars_of_buffer):
11858         The right place to initialize conversion_in_dynarr and
11859         conversion_out_dynarr.
11860
11861         * alloc.c (pdump): Use the real open() till sys_open() is functional.
11862
11863         * process-unix.c (unix_canonicalize_host_name): Muleize.
11864         (unix_open_network_stream): Muleize.
11865
11866         * buffer.h: Fix up prototypes for ralloc.c functions.
11867
11868 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11869         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
11870         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
11871                 instead of gethostbyname()
11872         * process-unix.c: In unix_canonicalize_host_name() and
11873                 unix_open_network_stream(), add code to use getaddrinfo()
11874                 instead of gethostbyname().
11875
11876 2000-01-27  Daniel Pittman <daniel@danann.net>
11877
11878         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
11879         libs when built with flat Athena.
11880
11881 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11882
11883         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
11884         Use coding standards for function prototypes.
11885
11886 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11887
11888         * dialog-msw.c (push_lisp_string_as_unicode):
11889         * doc.c (unparesseuxify_doc_string):
11890         * dired.c (Fuser_name_completion_1):
11891         * dired.c (Fuser_name_all_completions):
11892         * dired.c (free_user_cache):
11893         * dired.c (user_name_completion):
11894         * console-x.c (get_display_arg_connection):
11895         * minibuf.c (clear_echo_area_internal):
11896         * minibuf.c (echo_area_append):
11897         * eldap.c (Fldap_open):
11898         * eldap.c (Fldap_search_internal):
11899         * frame-x.c (x_set_frame_text_value):
11900         * frame-x.c (x_set_frame_properties):
11901         * frame-x.c (x_create_widgets):
11902         * redisplay-tty.c (term_get_fkeys_1):
11903         * objects-x.c (x_parse_nearest_color):
11904         * objects-x.c (x_valid_color_name_p):
11905         * objects-x.c (x_initialize_font_instance):
11906         * objects-x.c (x_list_fonts):
11907         * objects-x.c (x_find_charset_font):
11908         * tooltalk.c (Fadd_tooltalk_message_arg):
11909         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11910         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11911         * process-unix.c (unix_create_process):
11912         * ntproc.c (sys_spawnve):
11913         * sound.c (Fplay_sound_file):
11914         * sound.c (Fplay_sound):
11915         * buffer.c (init_initial_directory):
11916         * buffer.c (init_buffer):
11917         * editfns.c (init_editfns):
11918         * editfns.c (Ftemp_directory):
11919         * editfns.c (Fuser_full_name):
11920         * editfns.c (uncache_home_directory):
11921         * editfns.c (get_home_directory):
11922         * editfns.c (Fuser_home_directory):
11923         * editfns.c (Fformat_time_string):
11924         * editfns.c (Fcurrent_time_string):
11925         * gui-x.c (button_item_to_widget_value):
11926         * database.c (Fopen_database):
11927         * event-Xt.c (x_to_emacs_keysym):
11928         * event-Xt.c (x_event_to_emacs_event):
11929         * event-Xt.c (describe_event_window):
11930         * event-msw.c (mswindows_wnd_proc):
11931         * glyphs-eimage.c (jpeg_instantiate):
11932         * glyphs-eimage.c (gif_instantiate):
11933         * glyphs-eimage.c (png_instantiate):
11934         * glyphs-eimage.c (tiff_instantiate):
11935         * glyphs-x.c (xbm_instantiate_1):
11936         * glyphs-x.c (x_xbm_instantiate):
11937         * glyphs-x.c (x_xface_instantiate):
11938         * glyphs-x.c (autodetect_instantiate):
11939         * glyphs-x.c (cursor_font_instantiate):
11940         * glyphs-x.c (x_widget_instantiate):
11941         * glyphs-x.c (x_widget_set_property):
11942         * glyphs-x.c (x_widget_property):
11943         * glyphs-x.c (BUILD_GLYPH_INST):
11944         * print.c (write_string_to_stdio_stream):
11945         * print.c (output_string):
11946         * print.c (Falternate_debugging_output):
11947         * print.c (Fexternal_debugging_output):
11948         * glyphs-msw.c (extract_xpm_color_names):
11949         * glyphs-msw.c (mswindows_xpm_instantiate):
11950         * glyphs-msw.c (bmp_instantiate):
11951         * glyphs-msw.c (resource_name_to_resource):
11952         * glyphs-msw.c (mswindows_resource_instantiate):
11953         * glyphs-msw.c (xbm_instantiate_1):
11954         * glyphs-msw.c (mswindows_xbm_instantiate):
11955         * glyphs-msw.c (mswindows_xface_instantiate):
11956         * glyphs-msw.c (mswindows_widget_instantiate):
11957         * glyphs-msw.c (add_tree_item):
11958         * glyphs-msw.c (add_tab_item):
11959         * glyphs-msw.c (mswindows_combo_box_instantiate):
11960         * glyphs-msw.c (mswindows_widget_property):
11961         * glyphs-msw.c (mswindows_combo_box_property):
11962         * glyphs-msw.c (mswindows_widget_set_property):
11963         * console.c (stuff_buffered_input):
11964         * objects-msw.c (mswindows_initialize_color_instance):
11965         * objects-msw.c (mswindows_valid_color_name_p):
11966         * objects-msw.c (mswindows_list_fonts):
11967         * objects-msw.c (mswindows_font_instance_truename):
11968         * bytecode.c (optimize_compiled_function):
11969         * select-x.c (symbol_to_x_atom):
11970         * select-x.c (x_atom_to_symbol):
11971         * select-x.c (hack_motif_clipboard_selection):
11972         * select-x.c (selection_data_to_lisp_data):
11973         * select-x.c (lisp_data_to_selection_data):
11974         * select-x.c (Fx_get_cutbuffer_internal):
11975         * select-x.c (Fx_store_cutbuffer_internal):
11976         * buffer.h (TO_EXTERNAL_FORMAT): New function.
11977         * buffer.h (TO_INTERNAL_FORMAT): New function.
11978         * emacs.c (make_arg_list_1):
11979         * emacs.c (make_argc_argv):
11980         * emacs.c (main_1):
11981         * emacs.c (Fdump_emacs):
11982         * emacs.c (split_string_by_emchar_1):
11983         * file-coding.h:
11984         * lisp.h:
11985         * lstream.h:
11986         * symsinit.h:
11987         * device-x.c (x_init_device):
11988         * device-x.c (Fx_valid_keysym_name_p):
11989         * device-x.c (Fx_get_font_path):
11990         * device-x.c (Fx_set_font_path):
11991         * glyphs.c (bitmap_to_lisp_data):
11992         * glyphs.c (pixmap_to_lisp_data):
11993         * alloc.c (make_ext_string): Use coding system arguments.  Update
11994         all callers.
11995         * alloc.c (build_string):
11996         * callproc.c (child_setup):
11997         * callproc.c (init_callproc):
11998         * fileio.c (lisp_strerror):
11999         * fileio.c (directory_file_name):
12000         * fileio.c (Fexpand_file_name):
12001         * fileio.c (Ffile_truename):
12002         * fileio.c (Fsysnetunam):
12003         * fileio.c (Fdo_auto_save):
12004         * sysdep.c (sys_readdir):
12005         * tests.c: New file.  Allow adding C tests.
12006         Replace GET_* macros with a more comprehensible and flexible
12007         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12008         Modify all calls.
12009         Any coding system can be used to do format conversion.
12010         Eliminate enum external_data_format.
12011         Eliminate convert_to_external_format.
12012         Eliminate convert_to_internal_format.
12013         Make sure file-name, keyboard, terminal, and ctext are always
12014         defined as coding systems or aliases.  Make
12015         file-name-coding-system, terminal-coding-system, and
12016         keyboard-coding-system magical variables that are equivalent to
12017         defining the corresponding coding system aliases.
12018
12019         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12020         * file-coding.c (Fcoding_system_alias_p): New function.
12021         * file-coding.c (Fcoding_system_aliasee): New function.
12022         * file-coding.c (append_suffix_to_symbol): New function.
12023         * file-coding.c (dangling_coding_system_alias_p): New function.
12024         * file-coding.c (Ffind_coding_system):
12025         * file-coding.c (Fcopy_coding_system):
12026         * file-coding.c (encode_coding_no_conversion):
12027         * file-coding.c (syms_of_file_coding):
12028         * file-coding.c (vars_of_file_coding):
12029         Rewrite coding system alias code.
12030         Allow nested aliases, like symbolic links.
12031         Allow redefinition of coding system aliases.
12032         Prevent existence of dangling coding system aliases.
12033
12034         * dired.c (Fuser_name_completion_1):
12035         * dired.c (Fuser_name_all_completions):
12036         A crash would happen if user did QUIT in the middle of building
12037         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12038
12039         * lisp.h:
12040         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12041
12042         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12043         an unsigned char *.  Update all callers.
12044
12045 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12046
12047         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12048
12049 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12050
12051         * elhash.c (hentry_description): Use more portable definition.
12052         (resize_hash_table): Initialize new hentries using
12053         xnew_array_and_zero, thereby simplifying the code.
12054
12055         * mule-charset.c (make_charset): Make sure entire object is
12056         initialized, to avoid Purify warnings.
12057
12058         * alloc.c (resize_string): Fix unlikely crash with big strings.
12059
12060 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12061
12062         * realpath.c (xrealpath):
12063         Don't call getwd().
12064
12065 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12066
12067         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12068
12069 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12070
12071         * unexelfsgi.c (unexec): Change the way we decide which segment
12072         should be extended.
12073
12074         Assumption that .bss section should be outside the PT_LOADable
12075         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12076         it's present) is inside the 'data' segment. This would fail the
12077         test which was used to find a segment to grow and cover new
12078         heap. Instead of this assumption, I created another one - on IRIX
12079         the segment to grow should start below .bss and it's address
12080         should extent above the end of .bss. Once this segment is
12081         identified, it's grown to accommodate the new heap and new
12082         zero-length .bss section is added at the end of .data2.
12083
12084 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12085
12086         * eval.c (Feval): Wrong number of arguments should use original
12087         function, not the indirect_function version of it.
12088
12089 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12090
12091         * glyphs-x.c (x_button_instantiate): Don't add image if
12092         it is not a pixmap.
12093         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12094         is relative.
12095
12096 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12097
12098         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12099         declaration.
12100         (DEFVAR_INT_MAGIC): Ditto.
12101         (DEFVAR_BOOL_MAGIC): Ditto.
12102         * glyphs.h: Reindent backslash.
12103
12104 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12105
12106         * glyphs-widget.c (layout_query_geometry):
12107         (layout_layout): Use correct types for gheight, gwidth.
12108
12109 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12110
12111         * EmacsManager.c (QueryGeometry): Purified.
12112
12113 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12114
12115         * alloc.c (make_float): Make sure entire object is initialized, to
12116         avoid Purify warnings.
12117         (pdump_register_sub): Remove useless assignment.
12118         (pdump): Use xmalloc, not malloc.
12119         (pdump_load): Use xmalloc, not malloc.
12120
12121 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12122
12123         * callproc.c:
12124         * dired-msw.c:
12125         * fileio.c:
12126         * process-nt.c:
12127         * redisplay-msw.c:
12128         * sysdep.c: Removed redundant #include <windows.h>
12129
12130 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12131
12132         * frame.c (delete_frame_internal): Do not delete device when its
12133         implementation so declares.
12134         (delete_frame_internal): Set device selected frame to nil when
12135         last frame goes away.
12136
12137         * device-msw.c (msprinter_device_system_metrics): Implemented.
12138         (mswindows_device_system_metrics): Added 'device-dpi property.
12139
12140         * device.c: (Fdevice_printer_p): Added.
12141         Added 'offset-workspace device metric.
12142
12143         * console.h (device_metrics): Declared DM_offset_workspace.
12144
12145 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12146
12147         * fileio.c (Ffile_truename): Remove pointless and confusing
12148         initialization of elen.
12149
12150         * glyphs-widget.c: Compiler warning fixes.
12151
12152 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12153
12154         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12155         instead of a Lisp_Object as argument to make it consistent with
12156         the other LIVE_P macros.
12157         (CHECK_LIVE_PROCESS): New macro.
12158
12159         * process.c: Declare Qprocess_live_p.
12160         (Fprocess_live_p): New function.
12161         (create_process): Use PROCESS_LIVE_P.
12162         (read_process_output): Ditto.
12163         (set_process_filter): Ditto.
12164         (Fdelete_process): Ditto.
12165         (kill_buffer_processes): Ditto
12166         (process_send_signal): Use CHECK_LIVE_PROCESS.
12167         (Fprocess_input_coding_system): Check whether process is still
12168         alive (fix PR#1061).
12169         (Fprocess_output_coding_system): Ditto.
12170         (Fprocess_coding_system): Ditto.
12171         (Fset_process_input_coding_system): Ditto.
12172         (Fset_process_output_coding_system): Ditto.
12173
12174 2000-01-23  Andy Piper  <andy@xemacs.org>
12175
12176         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12177         layout and widget.
12178
12179         * glyphs.c (mark_image_instance): take into account changed
12180         image_instance format.
12181         (image_instance_equal): ditto.
12182         (image_instance_hash): ditto.
12183
12184         * glyphs-widget.c (widget_instantiate): Incorporate layout
12185         instantiation here. Delay layout of the layout until later.
12186         (layout_instantiate): deleted.
12187         (layout_query_geometry): new function. get the geometry of a
12188         layout.
12189         (layout_layout): layout a layout dynamically.
12190         (image_instantiator_widget): New function - splitting up
12191         image_instantiator_format_create_glyphs_widget for netwinder
12192         compilation.
12193         (image_instantiator_buttons):
12194         (image_instantiator_edit_fields):
12195         (image_instantiator_combo_box):
12196         (image_instantiator_scrollbar):
12197         (image_instantiator_progress_guage):
12198         (image_instantiator_tree_view):
12199         (image_instantiator_tab_control):
12200         (image_instantiator_labels):
12201         (image_instantiator_layout): ditto.
12202         (image_instantiator_format_create_glyphs_widget): Call preceding
12203         functions.
12204
12205 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12206
12207         * process.c (Fset_process_coding_system):
12208         * device-x.c (Fx_keysym_hash_table):
12209         Docstring fixes.
12210
12211         * lstream.c (Lstream_write): Return documented value, not 0.
12212
12213         * fileio.c (directory_file_name):
12214         (Fsubstitute_in_file_name):
12215         (Fsubstitute_insert_file_contents_internal):
12216         (Fwrite_region_internal):
12217         * emacs.c:
12218         * sysdep.c:
12219         * getloadavg.c:
12220         * systty.h:
12221         Remove vestigial APOLLO-conditional code.
12222
12223 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12224
12225         * getpagesize.h: Add guard macros.
12226         * libsst.h: Add guard macros.
12227         * libst.h: Add guard macros.
12228         * line-number.h: Add guard macros.
12229         * ndir.h: Add guard macros.
12230         * sysfloat.h: Add guard macros.
12231         * sysfile.h: Add guard macros.
12232         * sysproc.h: Add guard macros.
12233         * syswait.h: Add guard macros.
12234         * xintrinsic.h: Add guard macros.
12235         * xintrinsicp.h: Add guard macros.
12236         * xmmanager.h: Add guard macros.
12237         * xmmanagerp.h: Add guard macros.
12238         * xmprimitive.h: Add guard macros.
12239         * xmu.h: Add guard macros.
12240         * gpmevent.h: Add copyright statement. Add guard macros.
12241         * miscplay.h: Add guard macros.
12242         * *.h: Use consistent C-standards-approved guard macro names.
12243
12244         * opaque.c (make_opaque): Switch parameter order.
12245         * opaque.h (make_opaque): Switch parameter order.
12246         Update all callers.
12247         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12248
12249         * config.h.in (type_checking_assert): Added.
12250         (bufpos_checking_assert): Added.
12251
12252 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12253
12254         * alloc.c: Harmless pdump changes.
12255         - Use countof().
12256         - spell alignment correctly.
12257         * sysdep.c: Use countof()
12258
12259 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12260
12261         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12262         initially_selected_for_input() console method, default to 0.
12263         (semi_canonicalize_console_connection): Try to delegate to
12264         canonicalize_console_connection if no such console method.
12265         (canonicalize_console_connection): Vice versa.
12266         (print_console): Do not print nil connection.
12267
12268         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12269         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12270         (XDEVIMPF_FRAMELESS_OK): Added.
12271         (CONSOLE_INHERITS_METHOD): Added.
12272
12273         * console-msw.c (mswindows_canonicalize_console_connection):
12274         Added.
12275         (mswindows_canonicalize_device_connection): Added.
12276
12277         * console-msw.h (struct msprinter_device): Added this struct and
12278         accessor macros.
12279         (mswindows_device): Made fontlist a lisp object.
12280
12281         * device.c (semi_canonicalize_device_connection):  Try to delegate
12282         to canonicalize_device_connection if no such console method.
12283         (canonicalize_device_connection): Vice versa.
12284         (print_device): Do not print nil connection.
12285
12286         * device-msw.c (mswindows_init_device): Call InitCommonControls
12287         when have widgets.
12288         (mswindows_delete_device): Removed fontlist deallocation.
12289         (mswindows_mark_device): Added.
12290
12291         * events.c (event_equal): Added abort() at unreached code.
12292         (event_hash): Ditto.
12293
12294         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12295         fallback tags of Windows devices.
12296
12297         * general.c (syms_of_general): Initialized Qmsprinter.
12298
12299         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12300         of fallback tags of Windows devices.
12301
12302         * lisp.h: Declared Qmsprinter.
12303
12304         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12305         of strings.
12306         (mswindows_list_fonts): Ditto.
12307         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12308         that it can be used by both mswindows and msprinter devices.
12309         (initialize_font_instance): Added.
12310         (mswindows_initialize_font_instance): Use it.
12311         (msprinter_initialize_font_instance): Added.
12312
12313         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12314         and implementation flags check.
12315         (redisplay_without_hooks): Changed the call to the above.
12316         (Fredraw_device): Ditto.
12317         (Fredisplay_device): Ditto.
12318
12319         * redisplay-msw.c (get_frame_dc): Implemented.
12320         (get_frame_compdc): Implemented.
12321         (many functions): Use the two functions above to get device
12322         contexts, ether for a window or a printer.
12323
12324 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12325
12326         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12327         initialization here.
12328         (init_symbols_once_early): Call it.
12329         * emacs.c (main_1): Call it.
12330         * symsinit.h: Declare it.
12331
12332 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12333
12334         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12335         Lisp_Object.
12336         (pdump_backtrace): Ditto.
12337         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12338         (pdump_get_entry): Abort if trying to register a null pointer.
12339         (pdump_dump_data): Cleanup types when relocating.
12340         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12341         (pdump_dump_rtables): Remove bad casts.
12342         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12343         Lisp_Object instead of a EMACS_INT for the hashtable
12344         reorganization.
12345
12346 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12347
12348         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12349
12350         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12351
12352         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12353
12354         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12355
12356 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12357
12358         * faces.h (FACE_STRIKETHRU_P): Added.
12359
12360         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12361         of font variants.
12362
12363         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12364         (mswindows_set_dc_font): New function, aware of font variants,
12365         separated from mswindows_update_dc.
12366
12367         * objects-msw.h (struct mswindows_font_instance_data): Added
12368         definition.
12369
12370         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12371         cached fonts and the data structure.
12372         (mswindows_initialize_font_instance): Added creation of font data
12373         structure.
12374         (mswindows_print_font_instance): Print at least something.
12375         (mswindows_create_font_variant): Implemented.
12376         (mswindows_get_hfont): Implemented.
12377
12378 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12379
12380         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12381         prototyping problem with msvc.
12382
12383         * emacs.c (main_1): added syms_of_gui_mswindows() call
12384
12385         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12386         syms_of_gui_mswindows() function
12387
12388         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12389
12390 2000-01-18  Martin Buchholz <martin@xemacs.org>
12391
12392         * XEmacs 21.2.27 is released.
12393
12394 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12395
12396         * glyphs-eimage.c (struct tiff_error_struct):
12397         (tiff_error_func):
12398         (tiff_warning_func):
12399         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12400
12401         * unexmips.c:
12402         * unexhp9k3.c:
12403         * unexfreebsd.c:
12404         * unexec.c: Remove vestigial Lucid C code.
12405         * unexalpha.c:
12406         * unexaix.c:
12407         * termcap.c:
12408         * libsst.c: Ansify.
12409         Remove declarations of errno and strerror().
12410
12411         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12412
12413         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12414
12415 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12416
12417         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12418         Optimize.
12419
12420 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12421
12422         * md5.c:
12423         * file-coding.c:
12424         * file-coding.h:
12425         Change enum eol_type to eol_type_t.
12426
12427 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12428
12429         * gui.c (get_gui_callback): Check cons before accessing car.
12430
12431 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12432
12433         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12434         (XSETSPECIFIER_TYPE): Ditto.
12435
12436 2000-01-17  Didier Verna  <didier@xemacs.org>
12437
12438         * redisplay.c (generate_fstring_runes): compute string size in
12439         characters, not bytes.
12440
12441 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12442
12443         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12444
12445 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12446
12447         * print.c (print_error_message): Call print_prepare().
12448
12449 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12450
12451         * .dbxrc: Renamed from dbxrc.
12452
12453         * events.c (event_to_character):
12454         Use `assert (foo)' instead of `if (!foo) abort()'
12455
12456         * .gdbinit (xtype): Add documentation.
12457         * .gdbinit (check-temacs): New function.
12458         * .gdbinit (check-xemacs): New function.
12459         * dbxrc (check-xemacs): New function.
12460         * dbxrc (check-xemacs): New function.
12461
12462 2000-01-14  Andy Piper  <andy@xemacs.org>
12463
12464         * glyphs-widget.c (widget_query_geometry): Make sure that we
12465         calculate default dimensions correctly.
12466
12467 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12468
12469         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12470
12471         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12472         pdump_wire'd variable.
12473
12474         * emacs.c: (main_1): Conditionalized calls to
12475         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12476
12477 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12478
12479         * window.c (Fset_window_configuration):
12480         * sysdep.c (_start):
12481         * input-method-motif.c (res):
12482         * event-Xt.c (Xt_process_to_emacs_event):
12483         Simple compiler warning fixes.
12484
12485         * bytecode.c (funcall_compiled_function): Use the original
12486         function symbol on the backtrace list in preference to the
12487         compiled_function object in error messages.
12488
12489 2000-01-13  Andy Piper  <andy@xemacs.org>
12490
12491         * glyphs-x.c (update_widget_face): Make sure we update the widget
12492         background as well as foreground.
12493
12494 2000-01-13  Andy Piper  <andy@xemacs.org>
12495
12496         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12497         fields to subwindow.
12498         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12499         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12500         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12501         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12502
12503         * glyphs-widget.c (check_valid_tab_orientation): new function.
12504         (initialize_widget_image_instance): zero orientation and
12505         justification.
12506         (widget_instantiate): pick up orientation.
12507         (tab_control_query_geometry): return appropriate values for
12508         vertical tabs.
12509
12510         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12511         appropriate creation flags for left, right and bottom tabs.
12512
12513         * s/cygwin32.h: add tab definitions.
12514
12515 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12516
12517         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12518         frame upon hiding a subwindow.
12519         (mswindows_button_instantiate): Changed the push button style to
12520         BS_PUSHBUTTON.
12521         (mswindows_button_instantiate): Removed button BS_NOTIFY
12522         style.
12523         (mswindows_button_instantiate): Removed redundant check for
12524         a disabled gui item.
12525         (mswindows_button_instantiate): Made use of WS_TABSTOP
12526         consistent: "operable" controls (edit, button, tree, scroll) have
12527         this style, "display-only" ones (static, progress gauge) do
12528         not. This style is currently ignored by XEmacs though. Also,
12529         removed the WS_EX_CONTROLPARENT style - it is not for children,
12530         it is for their parents!
12531         (mswindows_edit_field_instantiate): Ditto.
12532         (mswindows_progress_gauge_instantiate): Ditto.
12533         (mswindows_tree_view_instantiate): Ditto.
12534         (mswindows_tab_control_instantiate): Ditto.
12535         (mswindows_scrollbar_instantiate): Ditto.
12536         (mswindows_combo_box_instantiate): Ditto.
12537         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12538         style to the "clip" window.
12539         (mswindows_button_instantiate): Removed compilation warning by
12540         equally typing terms of the ?: operator.
12541
12542 2000-01-12  Didier Verna  <didier@xemacs.org>
12543
12544         * redisplay.c (generate_fstring_runes): new parameter holding the
12545         last modeline-format extent.
12546         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12547         extent, fill the glyph block with it.
12548         (generate_fstring_runes): handle these parameters.
12549         (generate_formatted_string_db): ditto.
12550
12551         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12552         glyphs'extents in the modeline.
12553
12554 1999-01-11  Mike Woolley  <mike@bulsara.com>
12555
12556         * ntheap.c: Reduced the reserved heap space from 1Gb down to
12557         256Mb, as a workaround for the non-starting problem many people
12558         have experienced.
12559
12560 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12561
12562         * console-tty.c (Fset_console_tty_output_coding_system):
12563         Force redrawing tty frame.
12564
12565 2000-01-10  Didier Verna  <didier@xemacs.org>
12566
12567         * redisplay.c (generate_fstring_runes): fix size computation bug.
12568
12569 2000-01-09  William M. Perry <wmperry@aventail.com>
12570
12571         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12572
12573 2000-01-09  Andy Piper  <andy@xemacs.org>
12574
12575         * glyphs-msw.c: index -> i to avoid shadows.
12576         (xbm_create_bitmap_from_data): make static.
12577         (check_valid_string_or_int): deleted.
12578         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12579
12580         * glyphs-x.c (x_update_subwindow): remove unused args.
12581
12582         * glyphs.c (glyph_image_instance): return the thing. Don't set the
12583         back pointer - this is done in allocate_image_instance.
12584         (query_string_font): return Qnil to make the compiler happy.
12585         (unmap_subwindow): set to ~0 to make the compiler happy.
12586         (glyph_query_geometry): comment out until used.
12587         (glyph_layout): ditto.
12588
12589 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12590
12591         * insdel.c (signal_after_change): Remove extraneous unbind_to().