Sync up with r21-2-44.
[chise/xemacs-chise.git-] / src / ChangeLog
1 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2
3         * mule-charset.c (decode_builtin_char): Support mother charsets.
4
5 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
6
7         * mule-charset.c (Q94x94x60): New variable.
8         (charset_code_point): Support conversion `94x94x60'.
9         (Fmake_charset): Likewise.
10         (syms_of_mule_charset): Add new symbol `94x94x60'.
11
12         * char-ucs.h (CONVERSION_94x94x60): New macro.
13
14 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
15
16         * mule-charset.c (charset_code_point): Unify code about
17         `code-offset'.
18
19 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
20
21         * mule-charset.c (charset_code_point): Merge code about builtin
22         characters into code about mother charsets; don't use
23         `range_charset_code_point'.
24         (range_charset_code_point): Deleted.
25
26 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
27
28         * mule-charset.c (Qcode_offset): New variable.
29         (Fmake_charset): Use `XUINT' to get value of `min-code' and
30         `max-code'; accept new property `code-offset'.
31         (syms_of_mule_charset): Add new symbol `code-offset'.
32
33 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
34
35         * mule-charset.c (range_charset_code_point): Fixed.
36
37 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
38
39         * mule-charset.c (decode_builtin_char): Change semantics of
40         code-offset of coded-charset.
41         (charset_code_point): Likewise.
42         (range_charset_code_point): Likewise.
43         (complex_vars_of_mule_charset): Modify for the change.
44
45 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
46
47         * mule-charset.c (Fencode_char): Reverse arguments.
48
49         * mule-charset.c (charset_code_point): Fixed.
50
51 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
52
53         * mule-charset.c (Vcharset_mojikyo): Deleted.
54         (Vcharset_mojikyo_2022_1): Deleted.
55         (Vcharset_mojikyo_pj_{1..21}): Deleted.
56         (Qmin_code): New variable in UTF-2000.
57         (Qmax_code): Likewise.
58         (Qmother): Likewise.
59         (Qconversion): Likewise.
60         (Q94x60): Likewise.
61         (Qmojikyo): Deleted.
62         (Qmojikyo_2022_1): Deleted.
63         (Qmojikyo_pj_{1..22}): Deleted.
64         (mark_charset): Mark `cs->mother'.
65         (charset_description): Add description for `mother'.
66         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
67         new arguments `mother' and `conversion'; use
68         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
69         (charset_code_point): Moved from char-ucs.h; support `mother'
70         charset feature.
71         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
72         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
73         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
74         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
75         allow 2 as the value of `graphic' in UTF-2000; add new properties
76         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
77         require `final' in UTF-2000; modify for `make_charset'.
78         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
79         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
80         (Fcharset_property): Support `mother', `min-code' and `max-code'.
81         (Fencode_char): New function.
82         (syms_of_mule_charset): Add new builtin function `encode-char' in
83         UTF-2000; add new symbols `min-code', `max-code', `mother',
84         `conversion' and `94x60'; delete symbols `mojikyo',
85         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
86         (complex_vars_of_mule_charset): Modify for `make_charset' change;
87         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
88         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
89
90         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
91         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
92
93         * char-ucs.h (Vcharset_mojikyo): Deleted.
94         (Vcharset_mojikyo_2022_1): Deleted.
95         (LEADING_BYTE_MOJIKYO): Deleted.
96         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
97         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
98         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
99         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
100         add new member `mother'; add new member `conversion'.
101         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
102         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
103         (CHARSET_MOTHER): New macro.
104         (CHARSET_CONVERSION): New macro.
105         (CONVERSION_IDENTICAL): New macro.
106         (CONVERSION_94x60): New macro.
107         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
108         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
109         (XCHARSET_MOTHER): New macro.
110         (XCHARSET_CONVERSION): New macro.
111         (MIN_CHAR_MOJIKYO): Deleted.
112         (MAX_CHAR_MOJIKYO): Deleted.
113         (DECODE_MOJIKYO_2022): Deleted.
114         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
115         (charset_code_point): Changed to non-inline function.
116         (encode_char_1): Use `charset_code_point'.
117         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
118
119 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
120
121         * lread.c (read_compiled_function): Fix prototype.
122         (read_vector): Likewise.
123
124 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
125
126         * lrecord.h (struct lrecord_header): Delete `older'.
127         (set_lheader_implementation): Delete code for `older'.
128         (set_lheader_older_implementation): Deleted.
129         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
130         (OLDER_RECORD_P): Deleted.
131         (OLDER_RECORD_HEADER_P): Deleted.
132         (alloc_older_lcrecord): Deleted.
133         (alloc_older_lcrecord_type): Deleted.
134
135         * alloc.c (all_older_lcrecords): Deleted.
136         (alloc_older_lcrecord): Deleted.
137         (disksave_object_finalization_1): Delete code for older objects.
138         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
139         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
140
141 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
142
143         * mule-charset.c (decoding_table_put_char): Use `make_vector'
144         instead of `make_older_vector'.
145         (put_char_ccs_code_point): Likewise.
146         (mark_charset): Mark `cs->decoding_table'.
147         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
148
149         * lisp.h (make_older_vector): Deleted.
150         (make_vector_newer): Deleted.
151
152         * config.h.in (HAVE_GGC): Deleted.
153
154         * alloc.c (make_older_vector): Deleted.
155         (make_vector_newer_1): Deleted.
156         (make_vector_newer): Deleted.
157
158 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
159
160         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
161         (Qideograph_daikanwa_2): New variable.
162         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
163         (complex_vars_of_mule_charset): Add new coded-charset
164         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
165         `LEADING_BYTE_DAIKANWA'.
166
167         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
168         (LEADING_BYTE_DAIKANWA_1): New macro.
169         (LEADING_BYTE_DAIKANWA_2): New macro.
170         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
171
172 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
173
174         * mule-charset.c (complex_vars_of_mule_charset): Change
175         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
176         the second revised version.
177
178 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
179
180         * mule-charset.c (Vcharset_ucs_smp): New variable.
181         (Vcharset_ucs_sip): New variable.
182         (Qucs_smp): New variable.
183         (Qucs_sip): New variable.
184         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
185         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
186         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
187         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
188         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
189         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
190
191         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
192         (LEADING_BYTE_UCS_SIP): New macro.
193         (MIN_CHAR_SMP): New macro.
194         (MAX_CHAR_SMP): New macro.
195         (MIN_CHAR_SIP): New macro.
196         (MAX_CHAR_SIP): New macro.
197
198 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
199
200         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
201         utf-2000.
202
203 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
204
205         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
206         value; don't store value into `encoding_table' of `Lisp_Charset'.
207         (mark_charset): `encoding_table' was deleted.
208         (charset_description): Likewise.
209         (make_charset): Likewise.
210         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
211         `put_char_ccs_code_point'.
212
213         * chartab.h (Fput_char_attribute): New EXFUN.
214
215         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
216         is unified with normal symbol space.
217         (Fget_char_attribute): Likewise.
218         (Fput_char_attribute): Likewise; behavior of
219         `put_char_ccs_code_point' is changed.
220
221         * char-ucs.h: Include "elhash.h".
222         (Vchar_attribute_hash_table): New external variable.
223         (struct Lisp_Charset): Delete `encoding_table'.
224         (CHARSET_ENCODING_TABLE): New implementation; refer
225         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
226         `Lisp_Charset'.
227
228 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
229
230         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
231         (cs) == 0.
232
233 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
234
235         * text-coding.c (char_encode_big5): Prefer charset-g1 than
236         `chinese-big5'.
237
238 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
239
240         * chartab.c (uint8_byte_table_description): New constant.
241         (uint8-byte-table): Use `uint8_byte_table_description'.
242         (uint16_byte_table_description): New constant.
243         (uint16-byte-table): Use `uint16_byte_table_description'.
244
245 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
246
247         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
248         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
249
250 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
251
252         * mule-charset.c (Vcharset_ucs_ks): New variable.
253         (Qucs_ks): New variable.
254         (syms_of_mule_charset): Add new symbol `ucs-ks'.
255         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
256
257         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
258
259 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
260
261         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
262         (Fdecode_char): Likewise.
263
264         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
265         chartab.h.
266         (Fdefine_char): Modify for Fdecode_char.
267         (Ffind_char): Likewise.
268
269         * mule-charset.c (Fdecode_char): Add new optional argument
270         `defined-only'.
271         (Fdecode_builtin_char): Modify for `Fdecode_char'.
272
273 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
274
275         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
276         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
277         (allocate_coding_system): Initialize initial-charsets of
278         CODESYS_BIG5 in XEmacs UTF-2000.
279         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
280         CODESYS_BIG5 in XEmacs UTF-2000.
281         (decode_coding_big5): Use initial-charset-g0 and -g1 of
282         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
283
284         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
285         variables.
286         (Qideograph_hanziku_{1 .. 12}): Likewise.
287         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
288         .. 12}'.
289         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
290         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
291         `ideograph-hanziku-{1 .. 12}'.
292
293         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
294         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
295         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
296         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
297         (DECODE_DEFINED_CHAR): New inline function.
298         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
299
300 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
301
302         * mule-charset.c (Vcharset_china3_jef): Renamed from
303         `Vcharset_japanese_jef_china3'.
304         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
305         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
306         `{MIN|MAX}_CHAR_JEF_CHINA3'..
307         (syms_of_mule_charset): Rename `china3-jef' from
308         `japanese-jef-china3'.
309         (complex_vars_of_mule_charset): Likewise; rename
310         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
311
312         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
313         `LEADING_BYTE_JEF_CHINA3'.
314         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
315         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
316
317 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
318
319         * mule-charset.c (encode_builtin_char_1): Comment out special code
320         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
321
322         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
323         (MAX_CHAR_MOJIKYO_0): Comment out.
324         (MIN_CHAR_CBETA): Changed to 0x00E20000.
325         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
326         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
327         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
328
329 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
330
331         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
332         (Qideograph_cbeta): New variable.
333         (encode_builtin_char_1): Comment out special code for
334         coded-charset `mojikyo' and `japanese-jef-china3'.
335         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
336         (complex_vars_of_mule_charset): Add new coded-charset
337         `ideograph-cbeta'.
338
339         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
340         (MIN_CHAR_CBETA): New macro.
341         (MAX_CHAR_CBETA): New macro.
342
343 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
344
345         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
346         (LEADING_BYTE_JEF_CHINA3): New macro.
347         (MIN_CHAR_JEF_CHINA3): New macro.
348         (MAX_CHAR_JEF_CHINA3): Likewise.
349         (DECODE_CHAR): Fixed.
350
351 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
352
353         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
354         (Qjapanese_jef_china3): New variable.
355         (encode_builtin_char_1): Support `japanese-jef-china3'.
356         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
357         (complex_vars_of_mule_charset): Add new coded-charset
358         `japanese-jef-china3'.
359
360 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
361
362         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
363         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
364         94^4, 96^3, 96^4, 128^n and 256^n set.
365         (put_char_table): Use `XCHARSET_CELL_RANGE'.
366         (map_char_table): Likewise.
367
368 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
369
370         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
371         UTF-2000.
372
373 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
374
375         * chartab.h (get_char_id_table): New inline function.
376
377         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
378         function.
379
380 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
381
382         * chartab.h (decode_char_table_range): New prototype in XEmacs
383         UTF-2000.
384         (put_char_id_table): New inline function in XEmacs UTF-2000.
385
386         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
387         function.
388         (decode_char_table_range): Delete static declaration in XEmacs
389         UTF-2000.
390
391 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
392
393         * chartab.c (put_char_id_table): Use `put_char_table'.
394
395 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
396
397         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
398         (map_over_uint16_byte_table): Likewise.
399         (map_over_byte_table): Likewise.
400         (map_char_table): Modify for `map_over_uint8_byte_table',
401         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
402         UTF-2000.
403
404 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
405
406         * chartab.c (struct map_char_table_for_charset_arg): New
407         structure.
408         (map_char_table_for_charset_fun): New function.
409         (map_char_table): Use `map_char_table' for encoding_table of
410         `range->charset'.
411
412 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
413
414         * chartab.c (map_char_table): Check a character is found in
415         range->charset instead of non default value is defined in
416         char-table when range is CHARTAB_RANGE_ROW.
417
418 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
419
420         * chartab.c (map_char_id_table): Deleted.
421         (Fmap_char_attribute): Use `map_char_table' instead of
422         `map_char_id_table'.
423
424 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
425
426         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
427         UTF-2000.
428         (update_syntax_table): Deleted in XEmacs UTF-2000.
429
430         * syntax.c (find_defun_start): Use `syntax_table' instead of
431         `mirror_syntax_table' in XEmacs UTF-2000.
432         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
433         UTF-2000.
434         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
435         XEmacs UTF-2000.
436         (Fmatching_paren): Likewise.
437         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
438         in XEmacs UTF-2000.
439         (find_start_of_comment): Likewise.
440         (find_end_of_comment): Likewise.
441         (Fforward_comment): Likewise.
442         (scan_lists): Likewise.
443         (char_quoted): Likewise.
444         (Fbackward_prefix_chars): Likewise.
445         (scan_sexps_forward): Likewise.
446         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
447         (update_syntax_table): Likewise.
448
449         * search.c (skip_chars): Use `syntax_table' instead of
450         `mirror_syntax_table' in XEmacs UTF-2000.
451         (wordify): Likewise.
452         (Freplace_match): Likewise.
453
454         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
455         `mirror_syntax_table' in XEmacs UTF-2000.
456         (WORDCHAR_P_UNSAFE): Likewise.
457         (re_match_2_internal): Likewise.
458
459         * font-lock.c (find_context): Use `buf->syntax_table' instead of
460         `buf->mirror_syntax_table' in XEmacs UTF-2000.
461
462         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
463         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
464
465         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
466         XEmacs UTF-2000.
467
468         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
469         UTF-2000.
470         (print_char_table): Print `default_value' in XEmacs UTF-2000.
471         (char_table_description): Delete `mirror_table' in XEmacs
472         UTF-2000.
473         (fill_char_table): Don't call `update_syntax_table' in XEmacs
474         UTF-2000.
475         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
476         (Fcopy_char_table): Likewise.
477         (put_char_table): Don't call `update_syntax_table' in XEmacs
478         UTF-2000.
479
480         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
481         `buf->mirror_syntax_table' in XEmacs UTF-2000.
482         (casify_region_internal): Likewise.
483
484         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
485
486         * buffer.c (common_init_complex_vars_of_buffer): Don't use
487         `mirror_syntax_table' in XEmacs UTF-2000.
488
489         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
490         `buf->mirror_syntax_table' in XEmacs UTF-2000.
491         (Fexpand_abbrev): Likewise.
492
493 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
494
495         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
496
497 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
498
499         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
500         (map_over_uint16_byte_table): Likewise.
501         (map_over_byte_table): Likewise.
502         (get_char_id_table): Refer `cit->default_value'.
503         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
504         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
505         of character-id ranges.
506         (mark_char_table): Mark `ct->default_value'.
507         (char_table_description): Add `default_value'.
508         (fill_char_table): Use `default_value'.
509         (decode_char_table_range): Decode `nil' as
510         `CHARTAB_RANGE_DEFAULT'.
511         (get_char_id_table): Refer `cit->default_value'.
512         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
513         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
514         temporary hack; check value of char-table is bound or not.
515         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
516
517         * chartab.h (struct Lisp_Char_Table): Add new member
518         `default_value' in XEmacs UTF-2000.
519         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
520         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
521         UTF-2000.
522
523 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
524
525         * chartab.h (Lisp_Char_ID_Table): Deleted.
526
527         * chartab.c (char_table_description): Fix typo.
528         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
529         `Lisp_Char_ID_Table'.
530
531 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
532
533         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
534         `CHAR_ID_TABLE_P'.
535
536         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
537         `CHAR_ID_TABLE_P'.
538
539         * chartab.h (XCHAR_ID_TABLE): Deleted.
540         (XSETCHAR_ID_TABLE): Deleted.
541         (CHAR_ID_TABLE_P): Deleted.
542
543         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
544         `CHAR_ID_TABLE_P'.
545         (Fget_composite_char): Likewise.
546         (put_char_table): Likewise.
547         (add_char_attribute_alist_mapper): Fixed.
548         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
549         `CHAR_ID_TABLE_P'.
550         (Fget_char_attribute): Likewise.
551         (Fget_char_attribute): Likewise.
552         (Fmap_char_attribute): Likewise.
553
554         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
555         `CHAR_ID_TABLE_P'.
556         (encode_char_1): Likewise.
557
558 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
559
560         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
561         `XCHAR_ID_TABLE'.
562
563         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
564         instead of `XCHAR_ID_TABLE'.
565         (remove_char_ccs): Likewise.
566
567         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
568         `XCHAR_ID_TABLE'.
569         (Fget_composite_char): Likewise.
570         (Fchar_variants): Likewise.
571         (put_char_table): Likewise.
572         (add_char_attribute_alist_mapper): Likewise.
573         (Fchar_attribute_alist): Likewise.
574         (Fget_char_attribute): Likewise.
575         (Fput_char_attribute): Likewise.
576         (Fmap_char_attribute): Likewise.
577         (Fmap_char_attribute): Likewise.
578
579         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
580         `XCHAR_ID_TABLE'.
581         (encode_char_1): Likewise.
582
583 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
584
585         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
586         `Lisp_Char_ID_Table'.
587         (mark_char_id_table): Deleted.
588         (print_char_id_table): Likewise.
589         (char_id_table_equal): Likewise.
590         (char_id_table_hash): Likewise.
591         (char_id_table_description): Likewise.
592         (char_id_table): Likewise.
593         (make_char_id_table): Use `Fmake_char_table' and
594         `fill_char_table'.
595         (get_char_id_table): Use `Lisp_Char_Table' instead of
596         `Lisp_Char_ID_Table'.
597         (put_char_id_table): Likewise.
598         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
599         `XCHAR_ID_TABLE'.
600         (Fremove_char_attribute): Likewise.
601         (syms_of_chartab): Don't define type `char-id-table'.
602
603         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
604         (char_id_table): Likewise.
605         (GC_CHAR_ID_TABLE_P): Likewise.
606         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
607         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
608         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
609         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
610         (get_char_id_table): Use `Lisp_Char_Table' instead of
611         `Lisp_Char_ID_Table'.
612         (put_char_id_table_0): Likewise.
613         (put_char_id_table): Likewise.
614
615 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
616
617         * chartab.h: Lisp_Byte_Table related codes are moved from
618         chartab.h.
619
620         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
621
622 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
623
624         * chartab.h: Don't include "chartab.h".
625         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
626         (Lisp_Char_ID_Table): Likewise.
627         (char_id_table): Likewise.
628         (XCHAR_ID_TABLE): Likewise.
629         (XSETCHAR_ID_TABLE): Likewise.
630         (CHAR_ID_TABLE_P): Likewise.
631         (GC_CHAR_ID_TABLE_P): Likewise.
632         (get_char_id_table): Likewise.
633
634         * char-ucs.h: Include "chartab.h".
635         (struct Lisp_Char_ID_Table): Moved to chartab.h.
636         (Lisp_Char_ID_Table): Likewise.
637         (char_id_table): Likewise.
638         (XCHAR_ID_TABLE): Likewise.
639         (XSETCHAR_ID_TABLE): Likewise.
640         (CHAR_ID_TABLE_P): Likewise.
641         (GC_CHAR_ID_TABLE_P): Likewise.
642         (get_char_id_table): Likewise.
643
644 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
645
646         * chartab.c (copy_uint8_byte_table): New function.
647         (copy_uint16_byte_table): New function.
648         (copy_byte_table): New function.
649         (map_over_uint8_byte_table): Modify to avoid huge numbers of
650         characters to call.
651         (map_over_uint16_byte_table): Likewise.
652         (map_over_byte_table): Likewise.
653         (get_byte_table): Move prototype to chartab.h.
654         (put_byte_table): Likewise.
655         (put_char_id_table_0): Moved to chartab.h.
656         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
657         (char_table_entry_equal): Likewise.
658         (char_table_entry_hash): Likewise.
659         (char_table_entry_description): Likewise.
660         (char_table_entry): Likewise.
661         (make_char_table_entry): Likewise.
662         (copy_char_table_entry): Likewise.
663         (get_non_ascii_char_table_value): Likewise.
664         (map_over_charset_ascii): Likewise.
665         (map_over_charset_control_1): Likewise.
666         (map_over_charset_row): Likewise.
667         (map_over_other_charset): Likewise.
668         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
669         (print_char_table): Likewise.
670         (char_table_equal): Likewise.
671         (char_table_hash): Likewise.
672         (char_table_description): Likewise.
673         (fill_char_table): Likewise.
674         (Fcopy_char_table): Likewise.
675         (get_char_table): Likewise.
676         (Fget_range_char_table): Likewise.
677         (put_char_table): Likewise.
678         (map_char_table): Likewise.
679         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
680         UTF-2000.
681
682 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
683
684         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
685         `Vauto_fill_chars' in XEmacs UTF-2000.
686
687         * chartab.h (get_byte_table): New prototype [moved from
688         chartab.c].
689         (put_byte_table): Likewise [moved from chartab.c].
690         (put_char_id_table_0): New inline function [moved from chartab.c].
691         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
692         (Lisp_Char_Table_Entry): Likewise.
693         (char_table_entry): Likewise.
694         (XCHAR_TABLE_ENTRY): Likewise.
695         (XSETCHAR_TABLE_ENTRY): Likewise.
696         (CHAR_TABLE_ENTRYP): Likewise.
697         (CHECK_CHAR_TABLE_ENTRY): Likewise.
698         (NUM_ASCII_CHARS): Likewise.
699         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
700         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
701
702 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
703
704         * chartab.c (get_char_id_table): Change interface.
705         (put_char_id_table_0): New function.
706         (put_char_id_table): Change interface; new implementation.
707         (Fget_composite_char): Modify for interface change of
708         `get_char_id_table'.
709         (Fchar_variants): Likewise.
710         (add_char_attribute_alist_mapper): Likewise.
711         (Fchar_attribute_alist): Likewise.
712         (Fget_char_attribute): Likewise.
713         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
714         as same as character as the first argument like `put-char-table';
715         modify for interface change of `put_char_id_table'.
716         (Fremove_char_attribute): Modify for interface change of
717         `put_char_id_table'.
718
719 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
720
721         * text-coding.c: Sync up with XEmacs 21.2.41.
722         (COMPOSE_ADD_CHAR): Modify for interface change of
723         `get_char_id_table'.
724
725         * mule-charset.c (put_char_ccs_code_point): Modify for interface
726         change of `put_char_id_table'.
727         (remove_char_ccs): Likewise.
728
729         * chartab.h (put_char_id_table): Change interface.
730
731         * char-ucs.h (get_char_id_table): Change interface.
732         (charset_code_point): Modify for interface change of
733         `get_char_id_table'.
734         (encode_char_1): Likewise.
735
736 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
737
738         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
739         argument `ccs'.
740         (map_over_uint16_byte_table): Likewise.
741         (map_over_byte_table): Likewise.
742         (map_char_id_table): Add new argument `range' like
743         `map_char_table'.
744         (Fmap_char_attribute): Add new argument `range' like
745         `Fmap_char_table'.
746
747 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
748
749         * chartab.c (map_over_uint8_byte_table): Change interface of
750         mapping function to use struct chartab_range instead of Emchar.
751         (map_over_uint16_byte_table): Likewise.
752         (map_over_byte_table): Likewise.
753         (map_char_id_table): Likewise.
754         (struct slow_map_char_id_table_arg): Deleted.
755         (slow_map_char_id_table_fun): Deleted.
756         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
757         function `slow_map_char_table_fun' instead of struct
758         `slow_map_char_id_table_arg' and function
759         `slow_map_char_id_table_fun'.
760
761 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
762
763         * mule-charset.c: Move char-it-table related codes to chartab.c.
764         (Vutf_2000_version): Moved to chartab.c.
765         (Fdefine_char): Likewise.
766         (Ffind_char): Likewise.
767         (syms_of_mule_charset): Move types `uint8-byte-table',
768         `uint16-byte-table', `byte-table' and `char-id-table' to
769         chartab.c; move functions `char_attribute_list,
770         `find_char_attribute_table, `char_attribute_alist,
771         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
772         `map_char_attribute, `define_char, `find_char, `char_variants and
773         `get_composite_char to chartab.c; move symbols `=>ucs',
774         `->decomposition', `compat', `isolated', `initial', `medial',
775         `final', `vertical', `noBreak', `fraction', `super', `sub',
776         `circle', `square', `wide', `narrow', `small' and `font' to
777         chartab.c.
778         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
779         setting codes for `Vcharacter_composition_table' and
780         `Vcharacter_variant_table' to chartab.c.
781         (complex_vars_of_mule_charset): Move setting code for
782         `Vchar_attribute_hash_table' to chartab.c.
783
784         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
785         (make_char_id_table): New prototype.
786         (put_char_id_table): Likewise.
787         (Fget_char_attribute): Likewise.
788
789         * chartab.c: Move char-id-table related code from mule-charset.c.
790         (Vutf_2000_version): Moved from mule-charset.c.
791
792         * char-ucs.h (Qucs): New external variable.
793         (put_char_ccs_code_point): New prototype.
794         (remove_char_ccs): Likewise.
795
796 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
797
798         * mule-charset.c (Vcharset_ucs_jis): New variable.
799         (Qucs_jis): Likewise.
800         (syms_of_mule_charset): Add new symbol `ucs-jis'.
801         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
802
803         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
804
805 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
806
807         * mule-charset.c (map_over_uint8_byte_table): New function.
808         (map_over_uint16_byte_table): Likewise.
809         (map_over_byte_table): Likewise.
810         (map_char_id_table): Likewise.
811         (slow_map_char_id_table_fun): Likewise.
812         (Fmap_char_attribute): Likewise.
813         (syms_of_mule_charset): Add new function `map-char-attribute'.
814
815 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
816
817         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
818         (syms_of_mule_charset): Add new function `find-char'.
819
820 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
821
822         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
823         XEmacs UTF-2000.
824         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
825         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
826         XEmacs UTF-2000.
827         (complex_vars_of_mule_charset): Add new coded-charset
828         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
829         `ideograph-gt-pj-*'.
830
831         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
832
833 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
834
835         * mule-charset.c (encode_builtin_char_1): Purge codes about
836         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
837         {MIN|MAX}_CHAR_HEBREW.
838         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
839         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
840
841         * char-ucs.h (MIN_CHAR_GREEK): Purged.
842         (MAX_CHAR_GREEK): Purged.
843         (MIN_CHAR_CYRILLIC): Purged.
844         (MAX_CHAR_CYRILLIC): Purged.
845         (MIN_CHAR_HEBREW): Commented out.
846         (MAX_CHAR_HEBREW): Likewise.
847
848 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
849
850         * mule-charset.c (Qto_ucs): New variable.
851         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
852         (Fdefine_char): Likewise.
853         (syms_of_mule_charset): Add new symbol `=>ucs'.
854
855 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
856
857         * mule-charset.c (Fdecode_char): Fixed.
858
859 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
860
861         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
862         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
863         "tcvn5712-1".
864
865 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
866
867         * mule-charset.c (Vcharset_ucs_big5): New variable.
868         (Qucs_big5): Likewise.
869         (syms_of_mule_charset): Add new symbol `ucs-big5'.
870         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
871
872         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
873
874 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
875
876         * mule-charset.c (decode_builtin_char): Check Big5 code range
877         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
878
879 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
880
881         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
882         (Qchinese_gb12345): Likewise.
883         (Fdecode_builtin_char): Fixed.
884         (syms_of_mule_charset): Add `chinese-gb12345'.
885         (complex_vars_of_mule_charset): Add coded-charset
886         `chinese-gb12345'.
887
888         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
889         (LEADING_BYTE_CHINESE_GB12345): New macro.
890
891 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
892
893         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
894         and `latin-viscii-upper' for `latin-viscii'.
895
896 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
897
898         * mule-charset.c (Fdecode_builtin_char): Comment out
899         regularization code for ISO-IR GR representation.
900
901 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
902
903         * mule-charset.c (decode_builtin_char): New function; renamed from
904         `make_builtin_char'; return -1 instead of signal.
905         (Fdecode_builtin_char): Use `decode_builtin_char'.
906
907         * char-ucs.h (decode_builtin_char): New prototype; renamed from
908         `make_builtin_char'.
909         (DECODE_CHAR): Use `decode_builtin_char' instead of
910         `make_builtin_char'; use mapping table of `chinese-big5' for
911         `chinese-big5-{1,2}'.
912
913 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
914
915         * text-coding.c (char_encode_big5): New function.
916         (char_finish_big5): Likewise.
917         (reset_encoding_stream): Use `char_encode_big5' and
918         `char_finish_big5' for CODESYS_BIG5.
919         (mule_encode): Don't use `encode_coding_big5'.
920         (encode_coding_big5): Deleted.
921
922 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
923
924         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
925         0x81- in XEmacs UTF-2000.
926         (detect_coding_big5): Likewise.
927
928 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
929
930         * mule-charset.c (Fdefine_char): Don't use a CCS property to
931         generate character-id if the CCS property does not have
932         corresponding predefined character.
933         (make_builtin_char): Return -1 if corresponding predefined
934         character is not found.
935         (Fdecode_char): Return nil if corresponding character is not
936         found.
937         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
938         don't map to builtin ucs space.
939
940 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
941
942         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
943         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
944
945 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
946
947         * mule-charset.c (Vcharset_ideograph_gt): New variable.
948         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
949         (Qideograph_gt): Likewise.
950         (Qideograph_gt_pj_{1..11}): Likewise.
951         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
952         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
953         `ideograph-gt-pj-11'.
954         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
955         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
956         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
957
958         * char-ucs.h (LEADING_BYTE_GT): New macro.
959         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
960         (MIN_CHAR_GT): Likewise.
961         (MAX_CHAR_GT): Likewise.
962
963 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
964
965         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
966         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
967
968         * doprnt.c (unsigned_int_converters): Add `c'.
969         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
970
971         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
972         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
973         `MIN_CHAR_MOJIKYO'.
974         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
975         (MAX_CHAR_MOJIKYO_0): New macro.
976         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
977
978 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
979
980         * mule-charset.c (Fdefine_char): Delete cemented out code.
981         (encode_builtin_char_1): Modify for new allocation of builtin
982         Mojikyo characters.
983
984         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
985
986 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
987
988         * mule-charset.c (Vcharset_ucs_cns): New variable.
989         (Qucs_cns): New variable.
990         (syms_of_mule_charset): Add new symbol `ucs-cns'.
991         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
992
993 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
994
995         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
996
997 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
998
999         * search.c (search_buffer): Make `charset_base_code' as
1000         character-id >> 6 to eliminate the corresponding last byte in
1001         UTF-8 representation [I'm not sure it is right thing].
1002         (boyer_moore): Likewise.
1003
1004 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
1005
1006         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1007         representation in MULE.
1008
1009 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1010
1011         * text-coding.c (Fmake_coding_system): Use
1012         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1013         `EXTERNAL_PROPERTY_LIST_LOOP'.
1014
1015 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1016
1017         * text-coding.c (decode_output_utf8_partial_char): New function.
1018         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1019
1020 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1021
1022         * text-coding.c (decode_coding_utf8): Output original byte
1023         sequence if it is broken; change order of conditions.
1024
1025         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1026         of conditions.
1027
1028         * mb-multibyte.h (BYTE_ASCII_P):
1029         Use bit ops for char-signedness safety.
1030         (BYTE_C0_P): Use bit ops for char-signedness safety.
1031         (BYTE_C1_P): Use bit ops for char-signedness safety.
1032
1033         * character.h: (XCHAR_OR_CHAR_INT):
1034         Always use inline function.
1035         Remove redundant type checking assert() - XINT will abort quite
1036         nicely.
1037
1038 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1039
1040         * text-coding.c: (Fencode_shift_jis_char):
1041         (Fencode_big5_char):
1042         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
1043         Replace 0 with '\0' when working with bytes.
1044         Replace initial "(" with "\(" in docstrings.
1045
1046         (Fmake_coding_system):
1047         When type is ccl and value is vector, register it with a proper
1048         symbol.  And checks whether the given ccl program is valid.
1049         (mule_decode): When calling ccl_driver, if src indicates
1050         NULL pointer, set an empty string instead.
1051         (mule_encode): Likewise.
1052
1053         (detect_eol_type):
1054         (detect_coding_sjis):
1055         (decode_coding_sjis):
1056         (detect_coding_big5):
1057         (decode_coding_big5):
1058         (detect_coding_ucs4):
1059         (decode_coding_ucs4):
1060         (detect_coding_utf8):
1061         (decode_coding_utf8):
1062         (detect_coding_iso2022):
1063         (decode_coding_iso2022):
1064         (decode_coding_no_conversion):
1065         (mule_decode):
1066         Make all detecting and decoding functions take an Extbyte * arg.
1067         (text_encode_generic):
1068         (encode_coding_big5):
1069         (encode_coding_no_conversion):
1070         (mule_encode):
1071         Make all encoding functions take a Bufbyte * arg.
1072         Use size_t instead of unsigned int for memory sizes.
1073         Only cast to unsigned char whenever dereferencing Extbyte *.
1074
1075         (struct lrecord_description fcd_description_1): Use countof.
1076         (complex_vars_of_file_coding):
1077         Use countof instead of sizeof.
1078         Use CHECK_NATNUM instead of CHECK_INT.
1079
1080 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1081
1082         * mule-charset.c (Fget_char_attribute): Add new optional argument
1083         `default-value'.
1084         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1085         (remove_char_ccs): Likewise.
1086
1087 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1088
1089         * text-coding.c (char_encode_shift_jis): New implementation in
1090         UTF-2000.
1091         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1092         ...)'.
1093
1094         * mule-charset.c (Vcharset_chinese_big5): New variable in
1095         UTF-2000.
1096         (Qchinese_big5): New variable in UTF-2000.
1097         (BIG5_SAME_ROW): New macro in UTF-2000.
1098         (make_builtin_char): Use builtin characters of
1099         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1100         characters of `Vcharset_chinese_big5'.
1101         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1102         (complex_vars_of_mule_charset): Add new coded-charset
1103         `chinese-big5' in UTF-2000.
1104
1105         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1106         (Vcharset_chinese_big5): New external variable declaration.
1107         (Vcharset_japanese_jisx0208_1990): Likewise.
1108
1109 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1110
1111         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1112         function.
1113         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1114
1115 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1116
1117         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1118         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1119         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1120         `mojikyo-pj-*'.
1121
1122 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1123
1124         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1125
1126 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1127
1128         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1129         to 0.17.
1130
1131 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1132
1133         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1134         for `CHARSET_BY_ATTRIBUTES'.
1135         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1136         `CHARSET_BY_ATTRIBUTES'.
1137
1138         * text-coding.c (struct decoding_stream): Rename member `CH' to
1139         `CPOS'.
1140         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1141         (decode_coding_sjis): Likewise.
1142         (decode_coding_big5): Likewise.
1143         (decode_coding_ucs4): Likewise.
1144         (decode_coding_utf8): Likewise.
1145         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1146         `CHARSET_BY_ATTRIBUTES'.
1147         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1148         `str->counter'; decode 3, 4 bytes sets.
1149         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1150         sets.
1151         (decode_coding_no_conversion): Use `str->cpos' instead of
1152         `str->ch'.
1153
1154         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1155         (Qmojikyo_2022_1): New variable.
1156         (make_charset): Don't use `CHARSET_TYPE_*'.
1157         (range_charset_code_point): Support coded-charset
1158         `mojikyo-2022-1'.
1159         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1160         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1161         `CHARSET_BY_ATTRIBUTES'.
1162         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1163         `CHARSET_BY_ATTRIBUTES'.
1164         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1165         (complex_vars_of_mule_charset): Add new coded-charset
1166         `mojikyo-2022-1'.
1167
1168         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1169         interface; changed to inline function.
1170
1171         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1172         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1173         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1174         (CHARSET_TYPE_94): Deleted.
1175         (CHARSET_TYPE_94X94): Deleted.
1176         (CHARSET_TYPE_96): Deleted.
1177         (CHARSET_TYPE_96X96): Deleted.
1178         (CHARSET_TYPE_128): Deleted.
1179         (CHARSET_TYPE_128X128): Deleted.
1180         (CHARSET_TYPE_256): Deleted.
1181         (CHARSET_TYPE_256X256): Deleted.
1182         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1183         to inline function.
1184         (DECODE_MOJIKYO_2022): New inline function.
1185         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1186         `Vcharset_mojikyo_2022_1'.
1187
1188 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1189
1190         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1191         instead of `EQ'.
1192         (put_byte_table): Likewise.
1193         (char_id_table_equal): Use `get_byte_table' [new implementation].
1194
1195 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1196
1197         * mule-charset.c: Include <limits.h> in UTF-2000.
1198         (BT_UINT8_MIN): New macro in UTF-2000.
1199         (BT_UINT8_MAX): New macro in UTF-2000.
1200         (BT_UINT8_t): New macro in UTF-2000.
1201         (BT_UINT8_nil): New macro in UTF-2000.
1202         (BT_UINT8_unbound): New macro in UTF-2000.
1203         (INT_UINT8_P): New inline function in UTF-2000.
1204         (UINT8_VALUE_P): New inline function in UTF-2000.
1205         (UINT8_ENCODE): New inline function in UTF-2000.
1206         (UINT8_DECODE): New inline function in UTF-2000.
1207         (mark_uint8_byte_table): New function in UTF-2000.
1208         (print_uint8_byte_table): New function in UTF-2000.
1209         (uint8_byte_table_equal): New function in UTF-2000.
1210         (uint8_byte_table_hash): New function in UTF-2000.
1211         (make_uint8_byte_table): New function in UTF-2000.
1212         (uint8_byte_table_same_value_p): New function in UTF-2000.
1213         (BT_UINT16_MIN): New macro in UTF-2000.
1214         (BT_UINT16_MAX): New macro in UTF-2000.
1215         (BT_UINT16_t): New macro in UTF-2000.
1216         (BT_UINT16_nil): New macro in UTF-2000.
1217         (BT_UINT16_unbound): New macro in UTF-2000.
1218         (INT_UINT16_P): New inline function in UTF-2000.
1219         (UINT16_VALUE_P): New inline function in UTF-2000.
1220         (UINT16_ENCODE): New inline function in UTF-2000.
1221         (UINT16_DECODE): New inline function in UTF-2000.
1222         (UINT8_TO_UINT16): New inline function in UTF-2000.
1223         (mark_uint16_byte_table): New function in UTF-2000.
1224         (print_uint16_byte_table): New function in UTF-2000.
1225         (uint16_byte_table_equal): New function in UTF-2000.
1226         (uint16_byte_table_hash): New function in UTF-2000.
1227         (make_uint16_byte_table): New function in UTF-2000.
1228         (uint16_byte_table_same_value_p): New function in UTF-2000.
1229         (print_byte_table): New function in UTF-2000.
1230         (byte-table): Use `print_byte_table' as printer.
1231         (make_byte_table): Delete second argument `older'.
1232         (byte_table_same_value_p): New function in UTF-2000.
1233         (copy_byte_table): Deleted.
1234         (get_byte_table): New function in UTF-2000.
1235         (put_byte_table): New function in UTF-2000.
1236         (print_char_id_table): New function in UTF-2000.
1237         (char-id-table): Use `print_char_id_table' as printer.
1238         (make_char_id_table): Delete second argument `older'.
1239         (get_char_id_table): Use `get_byte_table [new implementation].
1240         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1241         implementation].
1242         (Ffind_char_attribute_table): New function in UTF-2000.
1243         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1244         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1245         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1246         (syms_of_mule_charset): Add new function
1247         `find-char-attribute-table' in UTF-2000.
1248
1249         * lrecord.h (enum lrecord_type): Add
1250         `lrecord_type_uint16_byte_table' and
1251         `lrecord_type_uint8_byte_table'.
1252
1253         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1254         (Lisp_Uint8_Byte_Table): New type.
1255         (XUINT8_BYTE_TABLE): New macro.
1256         (XSETUINT8_BYTE_TABLE): New macro.
1257         (UINT8_BYTE_TABLE_P): New macro.
1258         (GC_UINT8_BYTE_TABLE_P): New macro.
1259         (struct Lisp_Uint16_Byte_Table): New structure.
1260         (Lisp_Uint16_Byte_Table): New type.
1261         (XUINT16_BYTE_TABLE): New macro.
1262         (XSETUINT16_BYTE_TABLE): New macro.
1263         (UINT16_BYTE_TABLE_P): New macro.
1264         (GC_UINT16_BYTE_TABLE_P): New macro.
1265
1266 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1267
1268         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1269         (Vcharacter_ideographic_strokes_table): Deleted.
1270         (Vcharacter_total_strokes_table): Deleted.
1271         (Vcharacter_morohashi_daikanwa_table): Deleted.
1272         (Vcharacter_decomposition_table): Deleted.
1273         (Qname): Deleted because it is duplicated.
1274         (Qideographic_radical): Deleted.
1275         (Qideographic_strokes): Deleted.
1276         (Qtotal_strokes): Deleted.
1277         (Qmorohashi_daikanwa): Deleted.
1278         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1279         `ideographic-radical', `ideographic-strokes', `total-strokes',
1280         `morohashi-daikanwa' and `->decomposition'.
1281         (Fget_char_attribute): Likewise.
1282         (Fput_char_attribute): Likewise; use `make-vector' instead of
1283         `make_older_vector' for `->decomposition' value.
1284         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1285         `ideograph-daikanwa'.
1286         (syms_of_mule_charset): Delete builtin symbols `name',
1287         `ideographic-radical', `ideographic-strokes', `total-strokes' and
1288         `morohashi-daikanwa'.
1289         (vars_of_mule_charset): Don't setup
1290         `Vcharacter_ideographic_radical_table',
1291         `Vcharacter_ideographic_strokes_table',
1292         `Vcharacter_total_strokes_table',
1293         `Vcharacter_morohashi_daikanwa_table' and
1294         `Vcharacter_decomposition_table'.
1295
1296 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1297
1298         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1299         `make_older_vector', `make_vector_newer_1' and
1300         `make_vector_newer'.
1301
1302         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1303         `make_older_vector' and `make_vector_newer'.
1304
1305         * config.h.in (HAVE_GGC): New macro.
1306
1307 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1308
1309         * mule-charset.c (struct char_attribute_list_closure): New
1310         structure in UTF-2000.
1311         (add_char_attribute_to_list_mapper): New function in UTF-2000.
1312         (Fchar_attribute_list): Likewise.
1313         (Fset_charset_mapping_table): Use `make_vector_newer'.
1314         (Fdecode_builtin_char): New function in UTF-2000.
1315         (syms_of_mule_charset): Add new function `char-attribute-list' and
1316         `decode-builtin-char' in UTF-2000.
1317
1318         * lisp.h (make_vector_newer): New prototype.
1319
1320         * alloc.c (make_vector_newer_1): New function.
1321         (make_vector_newer): New function.
1322
1323 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1324
1325         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1326         50100)'.
1327
1328 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1329
1330         * mule-charset.c (Vchar_attribute_hash_table): New variable.
1331         (Vcharacter_attribute_table): Deleted.
1332         (Vcharacter_name_table): Deleted.
1333         (put_char_attribute): Deleted.
1334         (remove_char_attribute): Deleted.
1335         (struct char_attribute_alist_closure): New structure.
1336         (add_char_attribute_alist_mapper): New function.
1337         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1338         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1339         (Fget_char_attribute): Likewise.
1340         (Fput_char_attribute): Likewise.
1341         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1342         of `remove_char_attribute'.
1343         (Fdefine_char): Return character.
1344         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1345         and `Vcharacter_name_table'.
1346         (complex_vars_of_mule_charset): Likewise
1347         `Vchar_attribute_hash_table'.
1348
1349 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1350
1351         * character.h (CHARC_CHARSET): New macro.
1352         (CHARC_CHARSET_ID): New macro.
1353         (CHARC_CODE_POINT): New macro.
1354         (CHARC_COLUMNS): New macro.
1355         (CHARC_TO_CHAR): New inline function.
1356         (CHARC_EQ): New inline function.
1357         (CHARC_ASCII_EQ): New inline function.
1358         (CHARC_IS_SPACE): New inline function.
1359         (ASCII_TO_CHARC): New inline function.
1360
1361         * char-ucs.h (encode_char_2): Deleted.
1362         (ENCODE_CHAR): Use `encode_char_1' again.
1363         (breakup_char_1): Likewise.
1364         (CHAR_TO_CHARC): New inline function.
1365
1366         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1367
1368 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1369
1370         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1371         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1372         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1373         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1374         (create_string_text_block): Use `CHARC_ASCII_EQ' and
1375         `CHARC_IS_SPACE'.
1376         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1377
1378         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1379         `CHARC_CODE_POINT'.
1380         (x_output_display_block): Use `CHARC_CHARSET' and
1381         `CHARC_ASCII_EQ'.
1382
1383         * redisplay-tty.c (tty_output_display_block): Use
1384         `CHARC_ASCII_EQ'.
1385         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1386
1387         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1388
1389         * insdel.c (find_charsets_in_charc_string): Use
1390         `CHARC_CHARSET_ID'.
1391         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1392         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1393         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1394         (convert_charc_string_into_malloced_string): Likewise.
1395
1396 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1397
1398         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1399         instead of <Emchar_dynarr *> for buf; use
1400         `convert_bufbyte_string_into_charc_dynarr' instead of
1401         `convert_bufbyte_string_into_emchar_dynarr'; use
1402         `find_charsets_in_charc_string' instead of
1403         `find_charsets_in_emchar_string'.
1404
1405         * redisplay.h:
1406         - Include "character.h".
1407         (struct rune): New member `cglyph'; delete member `chr'.
1408
1409         * redisplay.c (redisplay_text_width_charc_string): New function;
1410         delete `redisplay_text_width_emchar_string'.
1411         (rtw_charc_dynarr): New variable; renamed from
1412         `rtw_emchar_dynarr'.
1413         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1414         `rtw_emchar_dynarr'; use
1415         `convert_bufbyte_string_into_charc_dynarr' instead of
1416         `convert_bufbyte_string_into_emchar_dynarr'; use
1417         `redisplay_text_width_charc_string' instead of
1418         `redisplay_text_width_emchar_string'.
1419         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1420         instead of `rtw_emchar_dynarr'; use
1421         `convert_bufbyte_string_into_charc_dynarr' instead of
1422         `convert_bufbyte_string_into_emchar_dynarr'.
1423         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1424         `redisplay_text_width_charc_string' instead of
1425         `redisplay_text_width_emchar_string'.
1426         (create_text_block): Modify for <struct rune> change.
1427         (generate_formatted_string_db): Likewise.
1428         (create_string_text_block): Likewise.
1429         (pixel_to_glyph_translation): Likewise.
1430
1431         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1432         instead of <const Emchar *>.
1433         (x_text_width): Likewise.
1434         (x_output_display_block): Use <Charc_dynarr *> instead
1435         <Emchar_dynarr *>; modify for <structure rune> change.
1436         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1437         *>.
1438
1439         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1440         <const Emchar *>; use `charc_string_displayed_columns' instead of
1441         `emchar_string_displayed_columns'.
1442         (tty_output_display_block): Use <Charc_dynarr *> instead of
1443         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1444         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1445         (tty_output_charc_dynarr_dynarr): New variable; renamed from
1446         `tty_output_emchar_dynarr_dynarr'.
1447         (tty_output_charc_dynarr): New function; delete
1448         `tty_output_charc_dynarr'.
1449
1450         * redisplay-output.c (compare_runes): Modify for `struct rune'.
1451         (redisplay_output_layout): Use <Charc_dynarr *> instead of
1452         <Emchar_dynarr *> for buf; use
1453         `convert_bufbyte_string_into_charc_dynarr' instead of
1454         `convert_bufbyte_string_into_emchar_dynarr'.
1455
1456         * frame.c (title_string_charc_dynarr): New variable; renamed from
1457         `title_string_emchar_dynarr'.
1458         (generate_title_string): Use `title_string_charc_dynarr' instead
1459         of `title_string_emchar_dynarr'; use
1460         `convert_charc_string_into_malloced_string' instead of
1461         `convert_emchar_string_into_malloced_string'.
1462         (init_frame): Use `title_string_charc_dynarr' instead of
1463         `title_string_emchar_dynarr'.
1464
1465         * console.h:
1466         - Include "character.h".
1467         (struct console_methods): Use <const Charc *> instead of <const
1468         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1469         <Emchar_dynarr *> in output_string_method.
1470
1471         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1472         <Emchar_dynarr *>.
1473
1474         * console-stream.c (stream_text_width): Use <const Charc *>
1475         instead of <const Emchar *>.
1476
1477         * character.h (Charc_dynarr): New type.
1478
1479         * char-ucs.h (structure Charc): New structure; define new type
1480         `Charc'.
1481
1482         * char-lb.h (DECODE_CHAR): New inline function.
1483         (encode_char_1): New inline function.
1484         (ENCODE_CHAR): New macro.
1485         (structure Charc): New structure; define new type `Charc'.
1486
1487         * char-1byte.h (Vcharset_control_1): New macro.
1488         (Vcharset_latin_iso8859_1): New macro.
1489         (DECODE_CHAR): New inline function.
1490         (encode_char_1): New inline function.
1491         (ENCODE_CHAR): New macro.
1492         (structure Charc): New structure; define new type `Charc'.
1493
1494         * insdel.c (find_charsets_in_charc_string): New function; delete
1495         `find_charsets_in_emchar_string'.
1496         (charc_string_displayed_columns): New function; delete
1497         `emchar_string_displayed_columns'.
1498         (convert_bufbyte_string_into_charc_dynarr): New function; delete
1499         `convert_bufbyte_string_into_emchar_dynarr'.
1500         (convert_charc_string_into_bufbyte_dynarr): New function; delete
1501         `convert_charc_string_into_bufbyte_dynarr'.
1502         (convert_charc_string_into_malloced_string): New function; delete
1503         `convert_charc_string_into_malloced_string'.
1504
1505         * buffer.h (find_charsets_in_charc_string): New prototype; delete
1506         `find_charsets_in_emchar_string'.
1507         (charc_string_displayed_columns): New prototype; delete
1508         `emchar_string_displayed_columns'.
1509         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1510         `convert_charc_string_into_bufbyte_dynarr'.
1511         (convert_charc_string_into_malloced_string): New prototype; delete
1512         `convert_charc_string_into_malloced_string'.
1513
1514 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1515
1516         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1517
1518 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1519
1520         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1521
1522         * char-ucs.h: Use <short> for <Charset_ID>.
1523
1524         * mule-charset.h, char-1byte.h: Use <unsigned char> for
1525         <Charset_ID>.
1526
1527 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1528
1529         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1530         to 0.16.
1531
1532 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1533
1534         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1535         variable.
1536         (Qmorohashi_daikanwa): New variable.
1537         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1538         for `morohashi-daikanwa' attribute.
1539         (Fget_char_attribute): Likewise.
1540         (Fput_char_attribute): Likewise.
1541         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1542         has the same value of `ideograph-daikanwa'.
1543         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1544         (vars_of_mule_charset): Setup
1545         `Vcharacter_morohashi_daikanwa_table'.
1546
1547 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1548
1549         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1550         attributes.
1551         (add_charset_to_list_mapper): Add `key' instead of
1552         `XCHARSET_NAME (value)' to return aliases.
1553
1554 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1555
1556         * mule-charset.c (Vcharacter_ideographic_radical_table): New
1557         variable.
1558         (Vcharacter_ideographic_strokes_table): New variable.
1559         (Qideographic_radical): New variable.
1560         (Qideographic_strokes): New variable.
1561         (Fchar_attribute_alist): Use
1562         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1563         attribute; use `Vcharacter_ideographic_strokes_table' for
1564         `ideographic-strokes' attribute.
1565         (Fget_char_attribute): Likewise.
1566         (Fput_char_attribute): Likewise.
1567         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1568         `ideographic-strokes'.
1569         (vars_of_mule_charset): Setup
1570         `Vcharacter_ideographic_radical_table' and
1571         `Vcharacter_ideographic_strokes_table'.
1572
1573 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1574
1575         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1576         (Qtotal_strokes): New variable.
1577         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1578         `total-strokes' attribute.
1579         (Fget_char_attribute): Likewise.
1580         (Fput_char_attribute): Likewise.
1581         (syms_of_mule_charset): Add new symbol `total-strokes'.
1582         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1583
1584 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1585
1586         * mule-charset.c (Vcharacter_decomposition_table): New variable.
1587         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1588         are found.
1589         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1590         `->decomposition' attribute.
1591         (Fput_char_attribute): Likewise.
1592         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1593
1594 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1595
1596         * mule-charset.c (decoding_table_check_elements): New function.
1597         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1598
1599 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1600
1601         * mule-charset.c (Fset_charset_mapping_table): Use
1602         `put_char_ccs_code_point'.
1603
1604 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1605
1606         * mule-charset.c (decoding_table_put_char): New inline function.
1607         (put_char_ccs_code_point): Use `decoding_table_put_char'.
1608
1609 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1610
1611         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1612         (XCHARSET_BYTE_SIZE): New macro.
1613         (decoding_table_remove_char): New inline function.
1614         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1615         `decoding_table_remove_char'.
1616         (remove_char_ccs): Use `decoding_table_remove_char'.
1617         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1618
1619 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1620
1621         * mule-charset.c (Vcharacter_name_table): New variable.
1622         (Qname): New variable.
1623         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1624         attribute.
1625         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1626         `Vcharacter_name_table' for `name' attribute.
1627         (Fremove_char_attribute): Use function `remove_char_ccs'.
1628         (put_char_ccs_code_point): New function.
1629         (remove_char_ccs): New function.
1630         (syms_of_mule_charset): Add new symbol `name'.
1631         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1632
1633 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1634
1635         * mule-charset.c (make_byte_table): Add new argument `older'.
1636         (make_char_id_table): Likewise.
1637         (copy_char_id_table): Comment out because it is not used.
1638         (put_char_id_table): Modify for `make_byte_table'.
1639         (Fput_char_attribute): Make encoding_table as older object;
1640         inherit older bit of `Vcharacter_composition_table'.
1641         (mark_charset): Don't mark `cs->encoding_table'.
1642         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
1643         normal object; make `Vcharacter_composition_table' as an older
1644         object; delete staticpro for `Vcharacter_composition_table'; make
1645         `Vcharacter_variant_table' as a normal object.
1646
1647         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
1648         (mark_object): Don't check older object in UTF-2000.
1649
1650         * lrecord.h (struct lrecord_header): Add new member `older' in
1651         UTF-2000.
1652         (set_lheader_implementation): Setup `SLI_header->older' in
1653         UTF-2000.
1654         (set_lheader_older_implementation): New macro in UTF-2000.
1655         (OLDER_RECORD_P): New macro in UTF-2000.
1656         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
1657         (alloc_older_lcrecord): New prototype in UTF-2000.
1658         (alloc_older_lcrecord_type): New macro in UTF-2000.
1659
1660 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1661
1662         * mule-charset.c (byte_table_description): Use
1663         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
1664         (char_id_table_description): Delete bogus `, 1'.
1665         (Fget_char_attribute): Refer encoding_table of each coded-charset
1666         to get value of coded-charset attribute of a character.
1667         (Fput_char_attribute): Use `make_older_vector' instead of
1668         `make_vector'; use encoding_table of each coded-charset to store
1669         value of coded-charset attribute of a character.
1670         (Fremove_char_attribute): Use encoding_table of each coded-charset
1671         to store value of coded-charset attribute of a character.
1672         (mark_charset): Mark `cs->encoding_table'; don't mark
1673         `cs->decoding_table'.
1674         (charset_description): Add description of new member
1675         `encoding_table'.
1676         (make_charset): Initialize `encoding_table'.
1677
1678         * char-ucs.h (struct Lisp_Charset): Add new member
1679         `encoding_table'.
1680         (CHARSET_ENCODING_TABLE): New macro.
1681         (XCHARSET_ENCODING_TABLE): New macro.
1682         (charset_code_point): New implementation.
1683         (encode_char_1): Likewise.
1684
1685         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
1686         (disksave_object_finalization_1): Call finalizers of
1687         `all_older_lcrecords' in UTF-2000.
1688         (make_older_vector): New function in UTF-2000.
1689         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
1690         UTF-2000.
1691
1692         * lisp.h (make_older_vector): New prototype in UTF-2000.
1693
1694 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1695
1696         * lrecord.h (enum lrecord_type): Rename
1697         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
1698
1699         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
1700         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
1701         `get_char_code_table'.
1702
1703         * mule-charset.c (mark_char_id_table): Renamed from
1704         `mark_char_code_table'.
1705         (char_id_table_equal): Renamed from `char_code_table_equal'.
1706         (char_id_table_hash): Renamed from `char_code_table_hash'.
1707         (make_char_id_table): Renamed from `make_char_code_table'.
1708         (copy_char_id_table): Renamed from `copy_char_code_table'.
1709         (get_char_id_table): Renamed from `get_char_code_table'.
1710         (put_char_id_table): Renamed from `put_char_code_table'.
1711         (to_char_id): Renamed from `to_char_code'.
1712
1713         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
1714         `Lisp_Char_Code_Table'.
1715         (char_id_table): Renamed from `char_code_table'.
1716         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
1717         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
1718         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
1719         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
1720         (get_char_id_table): Renamed from `get_char_code_table'.
1721
1722 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1723
1724         * lrecord.h (enum lrecord_type): Rename
1725         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
1726
1727         * mule-charset.c (mark_byte_table): Renamed from
1728         `mark_char_byte_table'.
1729         (byte_table_equal): Renamed from `char_byte_table_equal'.
1730         (byte_table_hash): Renamed from `byte_table_hash'.
1731         (make_byte_table): Renamed from `make_byte_table'.
1732         (copy_byte_table): Renamed from `copy_char_byte_table'.
1733
1734         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
1735         `Lisp_Char_Byte_Table'.
1736         (byte_table): Renamed from `char_byte_table'.
1737         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
1738         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
1739         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
1740         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
1741
1742 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1743
1744         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
1745         (dfc_convert_to_internal_format): Likewise.
1746         
1747         * text-coding.c (Fcoding_system_canonical_name_p): New function.
1748         * text-coding.c (Fcoding_system_alias_p): New function.
1749         * text-coding.c (Fcoding_system_aliasee): New function.
1750         * text-coding.c (append_suffix_to_symbol): New function.
1751         * text-coding.c (dangling_coding_system_alias_p): New function.
1752         * text-coding.c (Ffind_coding_system):
1753         * text-coding.c (Fcopy_coding_system):
1754         * text-coding.c (encode_coding_no_conversion):
1755         * text-coding.c (syms_of_file_coding):
1756         * text-coding.c (vars_of_file_coding):
1757         Rewrite coding system alias code.
1758         Allow nested aliases, like symbolic links.
1759         Allow redefinition of coding system aliases.
1760         Prevent existence of dangling coding system aliases.
1761         Eliminate convert_to_external_format.
1762         Eliminate convert_to_internal_format.
1763         
1764         * text-coding.c: Change enum eol_type to eol_type_t.
1765
1766 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1767
1768         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
1769         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1770
1771         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
1772         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
1773
1774 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1775
1776         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
1777         `ideograph-daikanwa'.
1778
1779         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
1780         (Vcharset_ucs_bmp): Likewise.
1781         (Vcharset_mojikyo): Add new extern variable definition.
1782         (Vcharset_latin_iso8859_2): Deleted because it is not used.
1783         (Vcharset_latin_iso8859_3): Likewise.
1784         (Vcharset_latin_iso8859_4): Likewise.
1785         (Vcharset_latin_iso8859_9): Likewise.
1786         (Vcharset_latin_viscii_lower): Likewise.
1787         (Vcharset_latin_viscii_upper): Likewise.
1788         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
1789         `mojikyo' code-point is used to decode.
1790         (encode_char_2): New function [to convert `mojikyo' code-point to
1791         Mojikyo font encoding].
1792         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
1793         (breakup_char_1): Likewise.
1794         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
1795
1796 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1797
1798         * text-coding.c (Fmake_coding_system): Add document about
1799         `disable-composition' property.
1800
1801 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1802
1803         * text-coding.c (Qdisable_composition): New variable; delete
1804         `Qcomposite'.
1805         (Fmake_coding_system): Add new property `disable-composite';
1806         delete property `composite'.
1807         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
1808         instead of `!CODING_SYSTEM_COMPOSITE'.
1809         (syms_of_file_coding): Add new symbol `disable-composition';
1810         delete symbol `composite'.
1811
1812         * file-coding.h (struct Lisp_Coding_System): Add
1813         `disable_composition'; delete `enable_composition'.
1814         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1815         `CODING_SYSTEM_COMPOSITE'.
1816         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
1817         `XCODING_SYSTEM_COMPOSITE'.
1818
1819 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1820
1821         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1822         to 0.15.
1823
1824 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1825
1826         * text-coding.c (Qcomposite): New variable.
1827         (Fmake_coding_system): Add new property `composite'.
1828         (struct decoding_stream): Add `combined_char_count',
1829         `combined_chars' and `combining_table' in UTF-2000.
1830         (COMPOSE_FLUSH_CHARS): New macro.
1831         (COMPOSE_ADD_CHAR): New macro.
1832         (reset_decoding_stream): Reset `str->combined_char_count' and
1833         `str->combining_table' in UTF-2000.
1834         (decode_coding_iso2022): Modify for character-decomposition.
1835         (syms_of_file_coding): Add new symbol `composite'.
1836
1837 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1838
1839         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
1840         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
1841         of `Vcharacter_composition_table' if `->decomposition' property
1842         has only 1 element.
1843         (Qlatin_tcvn5712): New variable.
1844         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
1845         (complex_vars_of_mule_charset): Add new coded-charset
1846         `latin-tcvn5712'.
1847
1848         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
1849
1850 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1851
1852         * file-coding.h (struct Lisp_Coding_System): Add
1853         `enable_composition'.
1854         (CODING_SYSTEM_COMPOSITE): New macro.
1855         (XCODING_SYSTEM_COMPOSITE): New macro.
1856
1857 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
1858
1859         * mule-canna.c (c2mu): Fix problem with UTF-2000.
1860
1861 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
1862
1863         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
1864         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
1865
1866 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
1867
1868         * mule-charset.c (Vcharset_mojikyo): New variable.
1869         (Fdefine_char): Don't use coded-charset which does not have
1870         non-builtin character range to allocate character-id.
1871         (Qmojikyo): New variable.
1872         (syms_of_mule_charset): Add new symbol `mojikyo'.
1873         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
1874
1875         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
1876         (LEADING_BYTE_MOJIKYO): New macro.
1877         (MIN_CHAR_MOJIKYO): New macro.
1878         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
1879         (MAX_CHAR_MOJIKYO): New macro.
1880
1881 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
1882
1883         * mule-charset.c (remove_char_attribute): Fixed.
1884
1885 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
1886
1887         * mule-charset.c (remove_char_attribute): New function.
1888         (Fremove_char_attribute): New function.
1889         (encode_builtin_char_1): Comment out builtin-support for
1890         greek-iso8859-7 and cyrillic-iso8859-5.
1891         (Fdecode_char): Check `code' is an integer.
1892         (syms_of_mule_charset): Add `remove-char-attribute'.
1893         (MIN_CHAR_GREEK): Deleted.
1894         (MAX_CHAR_GREEK): Likewise.
1895         (MIN_CHAR_CYRILLIC): Likewise.
1896         (MAX_CHAR_CYRILLIC): Likewise.
1897         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
1898         MAX_CHAR_GREEK for `greek-iso8859-7'.
1899
1900         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
1901         (MAX_CHAR_GREEK): Likewise.
1902         (MIN_CHAR_CYRILLIC): Likewise.
1903         (MAX_CHAR_CYRILLIC): Likewise.
1904
1905 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
1906
1907         * mule-charset.c (Fdefine_char): Fix problem when new code-point
1908         format is used without `ucs' property.
1909         (Fdecode_char): Fix problem with GR representation.
1910         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
1911         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
1912
1913 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
1914
1915         * mule-charset.c (make_builtin_char): New function.
1916         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
1917         (Fset_charset_mapping_table): Modify for new representation of
1918         code-point.
1919         (Fdecode_char): New function.
1920         (syms_of_mule_charset): Add new builtin function `decode-char' in
1921         UTF-2000.
1922
1923         * char-ucs.h (make_builtin_char): New prototype.
1924         (DECODE_CHAR): New inline function.
1925         (MAKE_CHAR): Use `DECODE_CHAR'.
1926
1927 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
1928
1929         * text-coding.c (parse_charset_conversion_specs): Use
1930         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
1931         `XCHARSET_TYPE'.
1932         (iso2022_designate): Likewise.
1933
1934         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
1935         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
1936
1937         * mule-charset.c (Vcharset_ucs): New variable.
1938         (print_charset): Change design; use `CHARSET_CHARS' and
1939         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
1940         (make_charset): Change signature to specify `chars' and
1941         `dimension' instead of `type'.
1942         (range_charset_code_point): Modify for 256^n-set.
1943         (encode_builtin_char_1): Encode as `ucs' in default.
1944         (Fmake_charset): Modify for `make_charset'.
1945         (Fmake_reverse_direction_charset): Likewise.
1946         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
1947         UTF-2000.
1948         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
1949         for `make_charset'.
1950
1951         * char-ucs.h (Vcharset_ucs): New variable.
1952         (LEADING_BYTE_UCS): New macro.
1953         (struct Lisp_Charset): Delete `type'; change type of `dimension'
1954         and `chars' to `unsigned short' from `unsigned int'.
1955         (CHARSET_TYPE): Deleted.
1956         (XCHARSET_TYPE): Deleted.
1957
1958 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
1959
1960         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
1961
1962         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
1963         (ENCODE_CHAR): New macro.
1964
1965 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1966
1967         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1968         to 0.14 (Kawachi-Katakami).
1969
1970 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
1971
1972         * text-coding.c (char_encode_shift_jis): Modify for
1973         `charset_code_point'.
1974         (char_encode_iso2022): Likewise.
1975
1976         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
1977         (integer) instead of list of <Lisp_Object>s (integers) as the
1978         format of code-point of a coded-charset.
1979         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1980         (encode_builtin_char_1): New function; delete
1981         `split_builtin_char'.
1982         (charset_code_point): Return <int> instead of <Lisp_Object>.
1983         (Fsplit_char): Don't use `SPLIT_CHAR'.
1984
1985         * char-ucs.h (encode_builtin_char_1): New prototype; delete
1986         prototype for `split_builtin_char'.
1987         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
1988         (charset_code_point): Likewise.
1989         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
1990         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
1991
1992 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
1993
1994         * mule-charset.c (complex_vars_of_mule_charset): Don't define
1995         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
1996
1997 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
1998
1999         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2000
2001         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2002         (MAX_CHAR_OBS_94x94): Deleted.
2003
2004 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2005
2006         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2007
2008         * char-ucs.h (MAX_CHAR_BMP): New macro.
2009
2010 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2011
2012         * text-coding.c: Sync with r21-2-24.
2013
2014 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2015
2016         * file-coding.c: Modify for UTF-2000.
2017
2018 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2019
2020         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2021         to 0.13 (Takaida).
2022
2023 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
2024
2025         * mule-charset.c (split_builtin_char): Delete builtin support for
2026         `katakana-jisx0201'.
2027         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2028         BMP area in builtin representation.
2029
2030         * char-ucs.h (MAKE_CHAR): Delete builtin support for
2031         `Vcharset_katakana_jisx0201'.
2032
2033 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
2034
2035         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2036         (Qisolated): New variable.
2037         (Qinitial): New variable.
2038         (Qmedial): New variable.
2039         (Qfinal): New variable.
2040         (Qvertical): New variable.
2041         (Qsmall): New variable.
2042         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2043         `Qvertical' and `Qsmall'.
2044         (Qmojikyo_pj_[1 .. 21]): New variable.
2045         (syms_of_mule_charset): Add new symbols `isolated', `initial',
2046         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2047         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2048         .. 21]'.
2049
2050 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2051
2052         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2053         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2054         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2055
2056 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2057
2058         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2059         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2060         BMP.
2061         (Qjapanese_jisx0208_1990): New variable.
2062         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2063         (complex_vars_of_mule_charset): Add new coded-charset
2064         `japanese-jisx0208-1990'.
2065
2066         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2067         (MIN_CHAR_JIS_X0208_1990): New macro.
2068         (MAX_CHAR_JIS_X0208_1990): New macro.
2069
2070 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2071
2072         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2073         coded-charset is not found.
2074
2075 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2076
2077         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2078         (Fdefine_char): Use `Fmake_char'.
2079
2080 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2081
2082         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2083         (Vcharset_hiragana_jisx0208): Deleted.
2084         (Vcharset_katakana_jisx0208): Deleted.
2085         (Qideograph_daikanwa): New variable.
2086         (Qhiragana_jisx0208): Deleted.
2087         (Qkatakana_jisx0208): Deleted.
2088         (split_builtin_char): Split `ideograph-daikanwa'.
2089         (Fsplit_char): New implementation for UTF-2000.
2090         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2091         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2092         (complex_vars_of_mule_charset): Add new coded-charset
2093         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2094         `katakana-jisx0208'.
2095
2096         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2097         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2098         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2099         (MIN_CHAR_DAIKANWA): New macro.
2100         (MAX_CHAR_DAIKANWA): New macro.
2101
2102 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2103
2104         * data.c (Fstring_to_number): Don't recognize floating point if
2105         base is not 10.
2106
2107 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2108
2109         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2110
2111 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2112
2113         * mule-charset.c (Qsquare): New variable.
2114         (to_char_code): Add `Qsquare'.
2115         (syms_of_mule_charset): Add new symbol `square'.
2116
2117 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2118
2119         * mule-charset.c (Qcircle): New variable.
2120         (to_char_code): Add `Qcircle'.
2121         (syms_of_mule_charset): Add new symbol `circle'.
2122
2123 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2124
2125         * mule-charset.c (Qfont): New variable.
2126         (to_char_code): Add `Qfont'.
2127         (syms_of_mule_charset): Add new symbol `font'.
2128
2129 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2130
2131         * mule-charset.c (Qsub): New variable.
2132         (to_char_code): Add `Qsub'.
2133         (syms_of_mule_charset): Add new symbol `sub'.
2134
2135 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2136
2137         * mule-charset.c (Fput_char_attribute): Convert each element of
2138         VALUE to GL position if ATTRIBUTE is a GR-set,
2139
2140 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2141
2142         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2143         coded-charset is a GR-set.
2144
2145 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2146
2147         * mule-charset.c (Fput_char_attribute): Check each element of
2148         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2149
2150 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2151
2152         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2153         UTF-2000.
2154         (Qethiopic_ucs): New variable in UTF-2000.
2155         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2156         (complex_vars_of_mule_charset): Add new coded-charset
2157         `ethiopic-ucs' in UTF-2000.
2158
2159         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2160         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2161         9)'.
2162         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2163         10)'.
2164         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2165
2166 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2167
2168         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2169         `ascii'.
2170
2171 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2172
2173         * mule-charset.c (Vcharacter_variant_table): New variable.
2174         (Q_ucs): New variable.
2175         (Fchar_variants): New function.
2176         (Fput_char_attribute): Register `->ucs' value to
2177         `Vcharacter_variant_table'.
2178         (syms_of_mule_charset): Add new function `char-variants' and new
2179         symbol `->ucs'.
2180         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2181
2182 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2183
2184         * mule-charset.c (get_char_code_table): Allow negative character
2185         code.
2186         (put_char_code_table): Likewise.
2187         (Vcharacter_composition_table): New variable.
2188         (Q_decomposition): New variable.
2189         (Qwide): New variable.
2190         (Qnarrow): New variable.
2191         (Qcompat): New variable.
2192         (QnoBreak): New variable.
2193         (Qsuper): New variable.
2194         (Qfraction): New variable.
2195         (to_char_code): New function.
2196         (Fget_composite_char): New function.
2197         (Fput_char_attribute): Register `->decomposition' value to
2198         `Vcharacter_composition_table'.
2199         (syms_of_mule_charset): Add new function `get-composite-char', new
2200         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2201         `super' and `fraction'.
2202         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2203
2204 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2205
2206         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2207         character; copy the return value.
2208
2209 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2210
2211         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2212
2213         * mule-charset.c (range_charset_code_point): Must use make_int.
2214         (split_builtin_char): New function.
2215
2216 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2217
2218         * mule-charset.c (char_byte_table): Change name from
2219         "char-code-table" to "char-byte-table".
2220         (mark_char_code_table): New function.
2221         (char_code_table_equal): New function.
2222         (char_code_table_hash): New function.
2223         (char_code_table_description): New constant.
2224         (char_code_table): New type.
2225         (make_char_code_table): New function.
2226         (copy_char_code_table): New function.
2227         (get_char_code_table): Modify for `char_code_table' type.
2228         (put_char_code_table): Likewise.
2229         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2230         (Kashiwara).
2231
2232         * char-ucs.h (char_code_table): New type.
2233         (XCHAR_CODE_TABLE): New macro.
2234         (XSETCHAR_CODE_TABLE): New macro.
2235         (CHAR_CODE_TABLE_P): New macro.
2236         (GC_CHAR_CODE_TABLE_P): New macro.
2237         (struct Lisp_Char_Code_Table): New structure.
2238
2239 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2240
2241         * mule-charset.c (Fmake_charset): Setup byte_offset for
2242         {94|96}^n-set.
2243
2244 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2245
2246         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2247         character.
2248
2249 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2250
2251         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2252         is found.
2253
2254 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2255
2256         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2257         charset, it is regarded as a charset.
2258         (put_char_attribute): New function in UTF-2000.
2259         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2260         charset, mapping-table of the charset is modified.
2261         (Fdefine_char): New function in UTF-2000.
2262         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2263         `Fput_char_attribute'.
2264         (syms_of_mule_charset): Add new function `define-char' and new
2265         symbol `ucs' in UTF-2000.
2266         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2267
2268 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2269
2270         * mule-charset.c (Fcharset_name): Define `byte_offset' in
2271         non-UTF-2000 configuration.
2272
2273 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2274
2275         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2276         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2277
2278         * mule-charset.c (mark_charset): `cs->encoding_table' has been
2279         deleted.
2280         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2281         (Fset_charset_mapping_table): Likewise.
2282
2283         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2284         (CHARSET_ENCODING_TABLE): Delete.
2285         (XCHARSET_ENCODING_TABLE): Delete.
2286         (charset_code_point): New interface.
2287
2288 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
2289
2290         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2291         instead of `charset_get_byte1' and `charset_get_byte2'.
2292
2293         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2294         (charset_get_byte2): Deleted.
2295
2296 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
2297
2298         * char-ucs.h (SPLIT_CHAR): New inline function.
2299         (breakup_char_1): Use `SPLIT_CHAR'.
2300
2301         * mule-charset.c (range_charset_code_point): New function.
2302         (charset_code_point): New function.
2303
2304         * char-ucs.h (range_charset_code_point): New interface.
2305         (breakup_char_1): Use `range_charset_code_point'.
2306
2307 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2308
2309         * mule-charset.c (Fmake_charset): Delete unused local variable
2310         `code_offset'.
2311
2312         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2313         (breakup_char_1): Find a charset and code-point in
2314         `Vcharacter_attribute_table'.
2315
2316 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2317
2318         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2319         to 0.10 (Yao).
2320
2321 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
2322
2323         * mule-charset.c (Vcharacter_attribute_table): New variable.
2324         (Fchar_attribute_alist): New function.
2325         (Fget_char_attribute): New function.
2326         (Fput_char_attribute): New function.
2327         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2328         too.
2329         (syms_of_mule_charset): Add new function `char-attribute-alist',
2330         `get-char-attribute' and `put-char-attribute'.
2331         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2332
2333 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
2334
2335         * mule-charset.c (Fmake_charset): Just use
2336         `get_unallocated_leading_byte'.
2337
2338         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2339         sets; don't use final-byte based number for private sets.
2340
2341 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2342
2343         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2344         integer.
2345
2346 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
2347
2348         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2349         to 0.9.
2350
2351 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2352
2353         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2354         of `CHAR_LEADING_BYTE' in UTF-2000.
2355
2356         * insdel.c (find_charsets_in_bufbyte_string): Use
2357         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2358         (find_charsets_in_emchar_string): Likewise.
2359
2360         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2361         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2362
2363         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2364         (CHAR_CHARSET_ID): New macro.
2365
2366 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2367
2368         * chartab.c (get_char_table): Don't use type `Charset_ID' for
2369         charset-id - MIN_LEADING_BYTE.
2370         (put_char_table): Likewise.
2371
2372 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2373
2374         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2375         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2376         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2377         (CHARSET_ID_OFFSET): New macro.
2378         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2379         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2380         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2381         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2382         4).
2383         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2384         5).
2385         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2386         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2387         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2388         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2389         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2390
2391 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2392
2393         * mule-charset.c (next_allocated_leading_byte): New variable in
2394         UTF-2000.
2395         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2396         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2397         (get_unallocated_leading_byte): Simply use
2398         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2399         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2400         UTF-2000.
2401
2402         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2403         (MAX_LEADING_BYTE_PRIVATE): New macro.
2404         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2405         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2406
2407 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2408
2409         * mule-charset.c (Fmake_charset): Allocate final-byte based
2410         charset-id for 94-set, 96-set and 94x94-set.
2411
2412 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2413
2414         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2415         ambiguous `else'.
2416         (Fmake_charset): Likewise.
2417         (complex_vars_of_mule_charset): Modify the font registry of
2418         `ucs-bmp' not to match `Ethiopic-Unicode'.
2419
2420 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2421
2422         * mule-charset.c (complex_vars_of_mule_charset): Add font
2423         registory of `ucs-bmp'.
2424
2425 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2426
2427         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2428         coded-charsets in `default-coded-charset-priority-list' when
2429         breaking up a character.
2430
2431         * mule-charset.c (Vcharset_latin_viscii): New variable.
2432         (Qlatin_viscii): New variable.
2433         (make_charset): Don't use `decoding_table'.
2434         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2435         byte_offset.
2436         (Fset_charset_mapping_table): New implementation.
2437         (syms_of_mule_charset): Add new symbol `latin-viscii'.
2438         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2439         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2440         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2441         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2442         charset `latin_viscii'.
2443
2444         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2445         (CHARSET_TYPE_94X94): Change to 1 from 2.
2446         (CHARSET_TYPE_96): Change to 2 from 1.
2447         (CHARSET_TYPE_128): New macro.
2448         (CHARSET_TYPE_128X128): Change to 5 from 4.
2449         (CHARSET_TYPE_256): New macro.
2450         (CHARSET_TYPE_256X256): Change to 7 from 5.
2451         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2452
2453 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2454
2455         * text-coding.c (char_encode_shift_jis): Refer
2456         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2457         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2458
2459         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2460         (char_byte_table_equal): New function in UTF-2000.
2461         (char_byte_table_hash): New function in UTF-2000.
2462         (char_byte_table_description): New constant in UTF-2000.
2463         (char_byte_table): New type in UTF-2000.
2464         (make_char_byte_table): New function in UTF-2000.
2465         (copy_char_byte_table): New function in UTF-2000.
2466         (make_char_code_table): New macro in UTF-2000.
2467         (get_char_code_table): New function in UTF-2000.
2468         (put_char_code_table): New function in UTF-2000.
2469         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2470         (charset_description): Add setting in UTF-2000.
2471         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2472         `CHARSET_TO_BYTE1_TABLE(cs)'.
2473         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2474         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2475         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2476         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2477         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2478         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2479         `CHARSET_TO_BYTE2_TABLE(cs)'.
2480
2481         * char-ucs.h (char_byte_table): New type.
2482         (XCHAR_BYTE_TABLE): New macro.
2483         (XSETCHAR_BYTE_TABLE): New macro.
2484         (CHAR_BYTE_TABLE_P): New macro.
2485         (GC_CHAR_BYTE_TABLE_P): New macro.
2486         (struct Lisp_Char_Byte_Table): New structure.
2487         (get_char_code_table): New interface.
2488         (Emchar_to_byte_table): Deleted.
2489         (get_byte_from_character_table): Deleted.
2490         (struct Lisp_Charset): Add `encoding_table'; delete
2491         `to_byte1_table' and `to_byte2_table'.
2492         (CHARSET_ENCODING_TABLE): New macro.
2493         (CHARSET_TO_BYTE1_TABLE): Deleted.
2494         (CHARSET_TO_BYTE2_TABLE): Deleted.
2495         (XCHARSET_ENCODING_TABLE): New macro.
2496         (XCHARSET_TO_BYTE1_TABLE): Deleted.
2497         (XCHARSET_TO_BYTE2_TABLE): Deleted.
2498
2499 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2500
2501         * mule-charset.c (syms_of_mule_charset): Delete charset alias
2502         `vietnamese-viscii-*'.
2503
2504 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2505
2506         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2507         (Qvietnamese_viscii_upper): New variable.
2508         (Fdefine_charset_alias): New function.
2509         (syms_of_mule_charset): Add new function `define-charset-alias'.
2510         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2511         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2512         `latin-viscii-*'.
2513
2514 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
2515
2516         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2517         (MAX_CHAR_OBS_94x94): New macro.
2518         (breakup_char_1): Support obsolete XEmacs-UCS private code space
2519         for 94x94 sets.
2520
2521         * mule-charset.c (put_byte_from_character_table): Change unit size
2522         from 128 to 256.
2523         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2524         not defined.
2525         (Fmake_reverse_direction_charset): Modify dummy argument of
2526         `make_charset' for non-UTF-2000 environment.
2527
2528 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2529
2530         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2531
2532         * mule-charset.c (destroy_byte_from_character_table): New macro.
2533         (latin_jisx0201_to_ucs): Deleted.
2534         (latin_iso8859_2_to_ucs): Deleted.
2535         (latin_iso8859_3_to_ucs): Deleted.
2536         (latin_iso8859_4_to_ucs): Deleted.
2537         (latin_iso8859_9_to_ucs): Deleted.
2538         (latin_viscii_lower_to_ucs): Deleted.
2539         (latin_viscii_upper_to_ucs): Deleted.
2540         (mark_charset): Mark `cs->decoding_table'.
2541         (Fcharset_mapping_table): Fix DOC-string.
2542         (Fset_charset_mapping_table): New function.
2543         (syms_of_mule_charset): Add nwe function
2544         `set-charset-mapping-table'.
2545         (complex_vars_of_mule_charset): Don't setup and use
2546         `latin_*_to_ucs'.
2547
2548 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2549
2550         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2551         charset.
2552
2553 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2554
2555         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2556         (Vcharset_katakana_jisx0208): New variable.
2557         (Qhiragana_jisx0208): New variable.
2558         (Qkatakana_jisx0208): New variable.
2559         (make_charset): Add new argument `byte_offset'.
2560         (charset_get_byte1): Modify for new coded-charset definition; use
2561         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2562         `XCHARSET_BYTE_OFFSET'.
2563         (Fmake_charset): Modify for `make_charset'.
2564         (Fmake_reverse_direction_charset): Likewise.
2565         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2566         `katakana-jisx0208'.
2567         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2568         `.'  in font registry of charset `katakana-jisx0201',
2569         `latin-jisx0201', `vietnamese-viscii-lower' and
2570         `vietnamese-viscii-upper'; modify DOC-string of charset
2571         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2572         registry of charset `japanese-jisx0208' not to use font for JIS
2573         X0208:1990; add new charset `hiragana-jisx0208' and
2574         `katakana-jisx0208'.
2575
2576         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2577         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2578         (struct Lisp_Charset): Add `byte_offset'.
2579         (CHARSET_BYTE_OFFSET): New macro.
2580         (XCHARSET_UCS_MIN): New macro.
2581         (XCHARSET_UCS_MAX): New macro.
2582         (XCHARSET_CODE_OFFSET): New macro.
2583         (XCHARSET_BYTE_OFFSET): New macro.
2584         (MIN_CHAR_HIRAGANA): New macro.
2585         (MAX_CHAR_HIRAGANA): New macro.
2586         (MIN_CHAR_KATAKANA): New macro.
2587         (MAX_CHAR_KATAKANA): New macro.
2588         (MAKE_CHAR): Modify for new coded-charset definition; use
2589         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2590         `XCHARSET_BYTE_OFFSET'.
2591
2592 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
2593
2594         * mule-charset.c (CHAR96): Deleted.
2595         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2596         <Lisp_Object>.
2597         (latin_iso8859_2_to_ucs): Likewise.
2598         (latin_iso8859_3_to_ucs): Likewise.
2599         (latin_iso8859_4_to_ucs): Likewise.
2600         (latin_iso8859_9_to_ucs): Likewise.
2601         (latin_viscii_lower_to_ucs): Likewise.
2602         (latin_viscii_upper_to_ucs): Likewise.
2603         (latin_tcvn5712_to_ucs): Commented out.
2604         (make_charset): Change type of argument `decoding_table' from
2605         <Emchar*> to <Lisp_Object> [vector of characters].
2606         (Fmake_charset): Modify for `make_charset'.
2607         (Fmake_reverse_direction_charset): Likewise.
2608         (Fcharset_mapping_table): New function in UTF-2000.
2609         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2610         UTF-2000.
2611         (complex_vars_of_mule_charset): Modify for type change of
2612         `*_to_ucs'; modify for `make_charset'.
2613
2614         * char-ucs.h (struct Lisp_Charset): Change type of
2615         `decoding_table' from <Emchar*> to <Lisp_Object>.
2616         (MAKE_CHAR): Modify for new specification of `decoding_table'.
2617
2618 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
2619
2620         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2621         error with non-UTF-2000-Mule.
2622
2623 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
2624
2625         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2626         in lisp again].
2627         (Vcharset_chinese_cns11643_4): Likewise.
2628         (Vcharset_chinese_cns11643_5): Likewise.
2629         (Vcharset_chinese_cns11643_6): Likewise.
2630         (Vcharset_chinese_cns11643_7): Likewise.
2631         (Qchinese_cns11643_3): Likewise.
2632         (Qchinese_cns11643_4): Likewise.
2633         (Qchinese_cns11643_5): Likewise.
2634         (Qchinese_cns11643_6): Likewise.
2635         (Qchinese_cns11643_7): Likewise.
2636         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2637         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2638         and `chinese-cns11643-7' to lisp/mule/chinese.el.
2639         (complex_vars_of_mule_charset): Likewise.
2640
2641 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
2642
2643         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
2644         96-set.
2645         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
2646         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
2647
2648 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
2649
2650         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
2651         0xFF60.
2652         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
2653         (breakup_char_1): Likewise.
2654
2655         * text-coding.c (char_encode_iso2022): Keep designated charsets if
2656         one of them includes the specified character.
2657
2658 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2659
2660         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
2661
2662 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2663
2664         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
2665
2666 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2667
2668         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
2669         definition for non-UTF-2000 Mule.
2670         (latin_iso8859_3_to_ucs): Likewise.
2671         (latin_iso8859_4_to_ucs): Likewise.
2672         (latin_iso8859_9_to_ucs): Likewise.
2673         (latin_jisx0201_to_ucs): Likewise.
2674         (MIN_CHAR_THAI): Likewise.
2675         (MAX_CHAR_THAI): Likewise.
2676         (MIN_CHAR_GREEK): Likewise.
2677         (MAX_CHAR_GREEK): Likewise.
2678         (MIN_CHAR_HEBREW): Likewise.
2679         (MAX_CHAR_HEBREW): Likewise.
2680         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
2681         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
2682         (MIN_CHAR_CYRILLIC): Likewise.
2683         (MAX_CHAR_CYRILLIC): Likewise.
2684
2685 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
2686
2687         * char-ucs.h (breakup_char_1): Use
2688         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
2689         thai-tis620 and katakana-jisx0201 area.
2690
2691 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2692
2693         * char-ucs.h (breakup_char_1): Use
2694         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
2695         area.
2696
2697         * text-coding.c (reset_encoding_stream): Fixed.
2698         (char_encode_ucs4): Delete `& 255'.
2699
2700         * char-ucs.h (breakup_char_1): Use
2701         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
2702
2703 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2704
2705         * file-coding.c (Fmake_coding_system): Don't set up
2706         `codesys->fixed.size'.
2707         (encode_coding_no_conversion): Don't refer
2708         `str->codesys->fixed.size'.
2709
2710 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2711
2712         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
2713         (latin_a_char_to_byte1): Deleted.
2714         (latin_a_char_to_byte2): Deleted.
2715
2716 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2717
2718         * mule-charset.c (make_charset): Add new argument `ucs_min',
2719         `ucs_max' and `code_offset'.
2720         (charset_get_byte1): New implementation [delete specific charset
2721         depended implementations].
2722         (Fmake_charset): Modify for `make_charset'.
2723         (Fmake_reverse_direction_charset): Likewise.
2724         (complex_vars_of_mule_charset): Likewise.
2725
2726         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
2727         `code_offset'.
2728         (CHARSET_UCS_MIN): New macro.
2729         (CHARSET_UCS_MAX): New macro.
2730         (CHARSET_CODE_OFFSET): New macro.
2731         (MAKE_CHAR): Delete charset depended definitions [except
2732         katakana-jisx0201].
2733
2734 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
2735
2736         * char-ucs.h (breakup_char_1): Use
2737         `Vdefault_coded_charset_priority_list' for C0-Controls,
2738         Basic-Latin, C1-Controls and Latin-1-Supplement area.
2739
2740 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2741
2742         * char-ucs.h (charset_get_byte1): New function.
2743         (XCHARSET_GET_BYTE1): Deleted.
2744         (charset_get_byte2): New function.
2745         (XCHARSET_GET_BYTE2): Deleted.
2746         (Vdefault_coded_charset_priority_list): New external variable.
2747         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
2748         `Vdefault_preferred_coded_charset_list'.
2749
2750         * mule-charset.c (charset_get_byte1): New function.
2751         (charset_get_byte2): New function.
2752         (Vdefault_coded_charset_priority_list): New variable.
2753         (vars_of_mule_charset): Add new variable
2754         `default-coded-charset-priority-list'.
2755
2756 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2757
2758         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
2759         (XCHARSET_GET_BYTE2): New inline function.
2760         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
2761         `XCHARSET_GET_BYTE2'.
2762
2763 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2764
2765         * mule-charset.c (make_charset): Initialize
2766         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
2767         NULL if table is not defined.
2768
2769 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2770
2771         * text-coding.c (char_encode_shift_jis): Use
2772         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
2773         `ucs_to_latin_jisx0201'.
2774
2775         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
2776         (ucs_to_latin_iso8859_2): Deleted.
2777         (ucs_to_latin_iso8859_3): Deleted.
2778         (ucs_to_latin_iso8859_4): Deleted.
2779         (ucs_to_latin_iso8859_9): Deleted.
2780         (ucs_to_latin_viscii_lower): Deleted.
2781         (ucs_to_latin_viscii_upper): Deleted.
2782         (ucs_to_latin_tcvn5712): Deleted.
2783         (make_charset): Add new argument `decoding_table'; set up
2784         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
2785         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
2786         `decoding_table' is defined in UTF-2000.
2787         (Fmake_charset): Modify for `make_charset'.
2788         (Fmake_reverse_direction_charset): Likewise.
2789         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
2790         and `GENERATE_96_SET'.
2791
2792         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
2793         (ucs_to_latin_jisx0201): Deleted.
2794         (latin_iso8859_2_to_ucs): Deleted.
2795         (ucs_to_latin_iso8859_2): Deleted.
2796         (latin_iso8859_3_to_ucs): Deleted.
2797         (ucs_to_latin_iso8859_3): Deleted.
2798         (latin_iso8859_4_to_ucs): Deleted.
2799         (ucs_to_latin_iso8859_4): Deleted.
2800         (latin_iso8859_9_to_ucs): Deleted.
2801         (ucs_to_latin_iso8859_9): Deleted.
2802         (latin_viscii_lower_to_ucs): Deleted.
2803         (ucs_to_latin_viscii_lower): Deleted.
2804         (latin_viscii_upper_to_ucs): Deleted.
2805         (ucs_to_latin_viscii_upper): Deleted.
2806         (struct Lisp_Charset): Renamed `encoding_table' to
2807         `to_byte1_table'; add `to_byte2_table'.
2808         (CHARSET_DECODING_TABLE): New macro.
2809         (CHARSET_TO_BYTE1_TABLE): New macro.
2810         (CHARSET_TO_BYTE2_TABLE): New macro.
2811         (XCHARSET_DECODING_TABLE): New macro.
2812         (XCHARSET_TO_BYTE1_TABLE): New macro.
2813         (XCHARSET_TO_BYTE2_TABLE): New macro.
2814         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
2815         tables.
2816         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
2817         don't use `ucs_to_*' tables.
2818
2819 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
2820
2821         * text-coding.c (Fmake_coding_system): Don't set up
2822         `codesys->fixed.size'.
2823         (encode_coding_no_conversion): Use `if' instead of `switch'.
2824
2825         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
2826
2827 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2828
2829         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
2830         (Fmake_charset): Modify for `make_charset'.
2831         (Fmake_reverse_direction_charset): Likewise.
2832         (complex_vars_of_mule_charset): Likewise.
2833
2834 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2835
2836         * text-coding.c (char_encode_shift_jis): Use table
2837         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
2838
2839 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
2840
2841         * text-coding.c (text_encode_generic): Use `if' instead of
2842         `switch'.
2843         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
2844         decode JIS-Latin.
2845
2846 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2847
2848         * text-coding.c (encode_coding_sjis): Deleted.
2849         (char_encode_shift_jis): New function.
2850         (char_finish_shift_jis): New function.
2851         (reset_encoding_stream): Set up `encode_char' and `finish' for
2852         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
2853         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
2854         (char_encode_utf8): Treat `eol_type'.
2855
2856 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2857
2858         * file-coding.c (decode_coding_iso2022): Use
2859         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
2860
2861 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2862
2863         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2864         to 0.7 (Hirano).
2865
2866 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
2867
2868         * char-lb.h (CHAR_COLUMNS): New macro.
2869
2870 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2871
2872         * text-coding.c (char_encode_ucs4): New function.
2873         (char_finish_ucs4): New function.
2874         (encode_coding_ucs4): Deleted.
2875         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
2876         (text_encode_generic): Delete local variable `charset' and `half'.
2877         (ucs_to_mule_table): Deleted.
2878         (mule_to_ucs_table): Deleted.
2879         (Fset_ucs_char): Deleted.
2880         (ucs_to_char): Deleted.
2881         (Fucs_char): Deleted.
2882         (Fset_char_ucs): Deleted.
2883         (Fchar_ucs): Deleted.
2884         (decode_ucs4): Deleted.
2885         (mule_char_to_ucs4): Deleted.
2886         (encode_ucs4): Deleted.
2887         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
2888         (decode_coding_utf8): Likewise.
2889         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
2890         (char_encode_iso2022): Fixed.
2891         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
2892         `Fset_char_ucs' and `Fchar_ucs'.
2893         (complex_vars_of_file_coding): Don't initialize
2894         `ucs_to_mule_table'.
2895
2896         * objects-tty.c (tty_initialize_font_instance): Don't use
2897         `XCHARSET_COLUMNS'.
2898
2899         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
2900         UTF-2000.
2901
2902         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
2903         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2904
2905         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
2906         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2907         (emchar_string_displayed_columns): Likewise.
2908
2909         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
2910         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
2911         (string_column_at_point): Likewise.
2912         (Fmove_to_column): Likewise.
2913
2914         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
2915         `encoding_table' and `decoding_table'.
2916         (CHARSET_REP_BYTES): Deleted.
2917         (XCHARSET_REP_BYTES): Deleted.
2918         (XCHARSET_COLUMNS): Deleted.
2919         (CHAR_COLUMNS): New macro.
2920         (lookup_composite_char): Deleted unconditionally.
2921         (composite_char_string): Likewise.
2922
2923 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
2924
2925         * char-ucs.h (Emchar_to_byte_table): New type.
2926         (get_byte_from_character_table): New function interface.
2927         (Vcharset_latin_jisx0201): New variable.
2928         (latin_jisx0201_to_ucs): New variable.
2929         (ucs_to_latin_jisx0201): New variable.
2930         (Vcharset_latin_iso8859_2): New variable.
2931         (latin_iso8859_2_to_ucs): New variable.
2932         (ucs_to_latin_iso8859_2): New variable.
2933         (Vcharset_latin_iso8859_3): New variable.
2934         (latin_iso8859_3_to_ucs): New variable.
2935         (ucs_to_latin_iso8859_3): New variable.
2936         (Vcharset_latin_iso8859_4): New variable.
2937         (latin_iso8859_4_to_ucs): New variable.
2938         (ucs_to_latin_iso8859_4): New variable.
2939         (Vcharset_latin_iso8859_9): New variable.
2940         (latin_iso8859_9_to_ucs): New variable.
2941         (ucs_to_latin_iso8859_9): New variable.
2942         (Vcharset_latin_viscii_lower): New variable.
2943         (latin_viscii_lower_to_ucs): New variable.
2944         (ucs_to_latin_viscii_lower): New variable.
2945         (Vcharset_latin_viscii_upper): New variable.
2946         (latin_viscii_upper_to_ucs): New variable.
2947         (ucs_to_latin_viscii_upper): New variable.
2948         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
2949         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
2950         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
2951         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
2952         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
2953         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
2954         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
2955         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
2956         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
2957         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
2958
2959         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
2960         (Vcharset_latin_viscii_upper): New variable.
2961         (make_byte_from_character_table): New function.
2962         (put_byte_from_character_table): New function.
2963         (get_byte_from_character_table): New function.
2964         (CHAR96): New macro.
2965         (ucs_to_latin_jisx0201): New variable.
2966         (latin_jisx0201_to_ucs): New variable.
2967         (ucs_to_latin_iso8859_2): New variable.
2968         (latin_iso8859_2_to_ucs): New variable.
2969         (ucs_to_latin_iso8859_3): New variable.
2970         (latin_iso8859_3_to_ucs): New variable.
2971         (ucs_to_latin_iso8859_4): New variable.
2972         (latin_iso8859_4_to_ucs): New variable.
2973         (ucs_to_latin_iso8859_9): New variable.
2974         (latin_iso8859_9_to_ucs): New variable.
2975         (ucs_to_latin_viscii_lower): New variable.
2976         (latin_viscii_lower_to_ucs): New variable.
2977         (ucs_to_latin_viscii_upper): New variable.
2978         (latin_viscii_upper_to_ucs): New variable.
2979         (ucs_to_latin_tcvn5712): New variable.
2980         (latin_tcvn5712_to_ucs): New variable.
2981         (Qlatin_viscii_lower): New variable.
2982         (Qlatin_viscii_upper): New variable.
2983         (syms_of_mule_charset): Set up new symbol
2984         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
2985         (complex_vars_of_mule_charset): Set up new charset
2986         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
2987         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
2988         `ucs_to_<CHARSET>' tables.
2989
2990 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
2991
2992         * text-coding.c: New file.
2993
2994 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
2995
2996         * mule-charset.c (Fmake_char): Fix problem of 256-set.
2997
2998         * char-ucs.h (Vcharset_ucs_bmp): New variable.
2999         (MAKE_CHAR): Modify for `ucs-bmp'.
3000         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3001         non-MULE characters of BMP.
3002
3003 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
3004
3005         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3006         to 0.6.
3007
3008 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3009
3010         * lstream.h:
3011         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3012         - Include character.h for `CHAR_ASCII_P'.
3013
3014         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3015
3016         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3017         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3018
3019         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3020         (BYTE_C0_P): Likewise.
3021         (BYTE_C1_P): Likewise.
3022         (Lstream_get_emchar_1): Likewise.
3023         (Lstream_fput_emchar): Likewise.
3024         (Lstream_funget_emchar): Likewise.
3025         (copy_internal_to_external): Likewise.
3026         (copy_external_to_internal): Likewise.
3027
3028         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3029         (BYTE_C0_P): Likewise.
3030         (BYTE_C1_P): Likewise.
3031         (Lstream_get_emchar_1): Likewise.
3032         (Lstream_fput_emchar): Likewise.
3033         (Lstream_funget_emchar): Likewise.
3034         (copy_internal_to_external): Likewise.
3035         (copy_external_to_internal): Likewise.
3036
3037         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3038         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3039
3040         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3041         (BYTE_ASCII_P): Moved to mb-1byte.h.
3042
3043 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3044
3045         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3046
3047         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3048         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3049         (VALID_CHARPTR_P): Moved to mb-*byte.h.
3050         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3051         (VALIDATE_CHARPTR_FORWARD): Likewise.
3052         (simple_charptr_emchar): Moved to mb-multibyte.h.
3053         (simple_set_charptr_emchar): Likewise.
3054         (simple_charptr_copy_char): Likewise.
3055         (non_ascii_charptr_emchar): Likewise.
3056         (non_ascii_set_charptr_emchar): Likewise.
3057         (non_ascii_charptr_copy_char): Likewise.
3058         (charptr_emchar): Moved to mb-*byte.h.
3059         (set_charptr_emchar): Likewise.
3060         (charptr_copy_char): Likewise.
3061
3062         * mb-1byte.h, mb-multibyte.h: New files.
3063
3064 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3065
3066         * mb-utf-8.h (MULTIBYTE): New macro.
3067         (MAX_EMCHAR_LEN): Moved from buffer.h.
3068         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3069
3070         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3071
3072         * mb-lb.h, multibyte.h: New files.
3073
3074         * char-1byte.h (Charset_ID): Moved from buffer.h.
3075         (MIN_LEADING_BYTE): Likewise.
3076         (LEADING_BYTE_ASCII): Likewise.
3077         (NUM_LEADING_BYTES): Likewise.
3078         (CHARSETP): Likewise.
3079         (CHARSET_BY_LEADING_BYTE): Likewise.
3080         (XCHARSET_LEADING_BYTE): Likewise.
3081         (XCHARSET_GRAPHIC): Likewise.
3082         (XCHARSET_COLUMNS): Likewise.
3083         (XCHARSET_DIMENSION): Likewise.
3084         (CHAR_CHARSET): Likewise.
3085         (CHAR_LEADING_BYTE): Likewise.
3086         (BREAKUP_CHAR): Likewise.
3087         (Vcharset_ascii): Likewise.
3088
3089         * buffer.h: Include multibyte.h unconditionally.
3090         (VALID_CHARPTR_P): Moved to multibyte.h.
3091         (ASSERT_VALID_CHARPTR): Likewise.
3092         (REAL_INC_CHARPTR): Likewise.
3093         (REAL_INC_CHARBYTIND): Likewise.
3094         (REAL_DEC_CHARPTR): Likewise.
3095         (INC_CHARPTR): Likewise.
3096         (INC_CHARBYTIND): Likewise.
3097         (DEC_CHARPTR): Likewise.
3098         (VALIDATE_CHARPTR_BACKWARD): Likewise.
3099         (VALIDATE_CHARPTR_FORWARD): Likewise.
3100         (charptr_n_addr): Likewise.
3101         (MAX_EMCHAR_LEN): Moved to mb-*.h.
3102         (simple_charptr_emchar): Moved to multibyte.h.
3103         (simple_set_charptr_emchar): Likewise.
3104         (simple_charptr_copy_char): Likewise.
3105         (non_ascii_charptr_emchar): Likewise.
3106         (non_ascii_set_charptr_emchar): Likewise.
3107         (non_ascii_charptr_copy_char): Likewise.
3108         (charptr_emchar): Likewise.
3109         (set_charptr_emchar): Likewise.
3110         (charptr_copy_char): Likewise.
3111         (charptr_emchar_n): Likewise.
3112         (Charset_ID): Moved to char-1byte.h.
3113         (Vcharset_ascii): Likewise.
3114         (CHAR_CHARSET): Likewise.
3115         (CHAR_LEADING_BYTE): Likewise.
3116         (LEADING_BYTE_ASCII): Likewise.
3117         (NUM_LEADING_BYTES): Likewise.
3118         (MIN_LEADING_BYTE): Likewise.
3119         (CHARSETP): Likewise.
3120         (CHARSET_BY_LEADING_BYTE): Likewise.
3121         (XCHARSET_LEADING_BYTE): Likewise.
3122         (XCHARSET_GRAPHIC): Likewise.
3123         (XCHARSET_COLUMNS): Likewise.
3124         (XCHARSET_DIMENSION): Likewise.
3125         (BREAKUP_CHAR): Likewise.
3126
3127 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3128
3129         * character.h: Add document about interface for characters.
3130
3131         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3132         (MAKE_CHAR): Delete comment about
3133         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3134         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3135         (BREAKUP_CHAR): Modify name of arguments.
3136         (CHAR_CHARSET): Modify name of argument.
3137
3138         * buffer.h: Delete document about Emchar accessors.
3139
3140 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3141
3142         * character.h (CHAR_INTP): Moved from buffer.h
3143         (CHAR_OR_CHAR_INTP): Likewise.
3144         (XCHAR_OR_CHAR_INT): Likewise.
3145         (CHECK_CHAR_COERCE_INT): Likewise.
3146
3147         * buffer.h (CHAR_INTP): Moved to character.h
3148         (CHAR_OR_CHAR_INTP): Likewise.
3149         (XCHAR_OR_CHAR_INT): Likewise.
3150         (CHECK_CHAR_COERCE_INT): Likewise.
3151
3152 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3153
3154         * character.h:
3155         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3156         - Include char-1byte.h, char-lb.h or char-ucs.h.
3157
3158         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3159
3160         * buffer.h: Include character unconditionally.
3161         (valid_char_p): Moved to char-*.h.
3162         (non_ascii_valid_char_p): Moved to char-lb.h.
3163
3164         * char-1byte.h, char-lb.h, char-ucs.h: New files.
3165
3166 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
3167
3168         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3169         in UTF-2000 because it is not ported yet and not to use
3170         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3171         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3172         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3173
3174         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3175         (CHAR_ASCII_P): Moved from character.h.
3176
3177         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3178         (CHAR_ASCII_P): Likewise.
3179         (CHAR_FIELD1_MASK): Deleted.
3180         (CHAR_FIELD2_MASK): Deleted.
3181         (CHAR_FIELD3_MASK): Deleted.
3182         (MAX_CHAR_BASIC_LATIN): New macro.
3183         (CHAR_FIELD1): Deleted.
3184         (CHAR_FIELD2_INTERNAL): Deleted.
3185         (CHAR_FIELD3_INTERNAL): Deleted.
3186         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3187         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3188         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3189         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3190         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3191         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3192         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3193         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3194         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3195         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3196         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3197         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3198         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3199         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3200         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3201         (MIN_CHAR_COMPOSITION): Deleted.
3202         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3203         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3204
3205 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
3206
3207         * buffer.h: Include mb-utf-8.h in UTF-2000.
3208
3209         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3210
3211         * mb-utf-8.h: New file.
3212
3213 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
3214
3215         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3216         instead of `int'.
3217
3218         * mule-charset.h, buffer.h (Charset_ID): New type.
3219
3220 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3221
3222         * mule-canna.c (c2mu): Use `MAKE_CHAR',
3223         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3224         instead of `MULE_CHAR_PRIVATE_OFFSET',
3225         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3226         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3227         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3228
3229         * character.h (Vcharset_japanese_jisx0212): New variable
3230         definition.
3231
3232 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
3233
3234         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3235         (charset_by_attributes): Delete array about direction.
3236         (latin_a_char_to_charset): New variable in UTF-2000.
3237         (latin_a_char_to_byte1): New variable in UTF-2000.
3238         (latin_a_char_to_byte2): New variable in UTF-2000.
3239         (Qucs_bmp): New variable.
3240         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3241         `Bufbyte'.
3242         (next_allocated_2_byte_leading_byte): Likewise.
3243         (non_ascii_set_charptr_emchar): Likewise.
3244         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3245         `CHARSET_TYPE_256X256' in UTF-2000; modify for
3246         `charset_by_attributes'.
3247         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3248         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3249         and `CHARSET_BY_LEADING_BYTE'.
3250         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3251         `utf-2000-version' to `vars_of_mule_charset'.
3252         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3253         define `leading-code-private-11' in UTF-2000; move setting of
3254         `utf-2000-version' from `syms_of_mule_charset'.
3255         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3256         UTF-2000.
3257
3258         * character.h (Charset_ID): New type.
3259         (LEADING_BYTE_UCS_BMP): New macro.
3260         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3261         (CHARSET_ID_OFFSET_94): New macro.
3262         (MIN_CHARSET_ID_PRIVATE_94): New macro.
3263         (MAX_CHARSET_ID_PRIVATE_94): New macro.
3264         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3265         final-byte.
3266         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3267         (LEADING_BYTE_LATIN_JISX0201): Likewise.
3268         (CHARSET_ID_OFFSET_96): New macro.
3269         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3270         CHARSET_ID_OFFSET_96 and final-byte.
3271         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3272         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3273         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3274         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3275         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3276         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3277         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3278         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3279         (LEADING_BYTE_THAI_TIS620): Likewise.
3280         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3281         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3282         (CHARSET_ID_OFFSET_94x94): New macro.
3283         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3284         CHARSET_ID_OFFSET_94x94 and final-byte.
3285         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3286         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3287         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3288         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3289         (LEADING_BYTE_CHINESE_GB2312): Likewise.
3290         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3291         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3292         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3293         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3294         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3295         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3296         (CHARSET_TYPE_128X128): New macro.
3297         (CHARSET_TYPE_256X256): New macro.
3298         (XCHARSET_PRIVATE_P): Delete unconditionally.
3299         (charset_by_attributes): Delete array about direction.
3300         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3301         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3302         (MIN_CHAR_94): New macro.
3303         (MAX_CHAR_94): New macro.
3304         (MIN_CHAR_96): New macro.
3305         (MAX_CHAR_96): New macro.
3306         (MIN_CHAR_94x94): New macro.
3307         (MAX_CHAR_94x94): New macro.
3308         (MIN_CHAR_96x96): New macro.
3309         (MAX_CHAR_96x96): New macro.
3310         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3311         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3312         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3313         - 32)'.
3314         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3315         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3316         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3317         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3318         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3319         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3320         `XCHARSET_LEADING_BYTE' to make code-point.
3321         (latin_a_char_to_charset): New variable.
3322         (latin_a_char_to_byte1): New variable.
3323         (latin_a_char_to_byte2): New variable.
3324         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3325         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3326         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3327
3328         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3329         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3330         (find_charsets_in_emchar_string): Likewise.
3331         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3332
3333         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3334         `int'.
3335         (decode_coding_iso2022): Likewise.
3336
3337         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3338         of `unsigned char'.
3339
3340         * redisplay.c (redisplay_text_width_emchar_string): Use
3341         `Charset_ID' instead of `unsigned char'.
3342         (redisplay_frame_text_width_string): Likewise.
3343
3344         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3345         `unsigned char'.
3346
3347         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3348         instead of `unsigned char'.
3349         (face_cachel_charset_font_metric_info): Likewise.
3350
3351         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3352         (get_non_ascii_char_table_value): Likewise.
3353         (get_char_table): Likewise.
3354         (put_char_table): Likewise.
3355         (map_over_other_charset): Likewise.
3356         (map_char_table): Likewise.
3357
3358         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3359         instead of `unsigned char'.
3360
3361 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
3362
3363         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3364         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3365
3366         * mule-charset.c (leading_code_private_11): Don't define in
3367         UTF-2000.
3368
3369         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3370         in UTF-2000 because it is not ported yet and not to use
3371         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3372
3373 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
3374
3375         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3376
3377 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3378
3379         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3380         in UTF-2000.
3381
3382         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3383         of unsigned char to store leading-byte.
3384
3385         * chartab.c (get_non_ascii_char_table_value): Don't use
3386         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3387
3388         * file-coding.c (encode_coding_big5): Delete bogus implementation
3389         in UTF2000.
3390
3391         * character.h (LEADING_BYTE_*): Delete definition for
3392         non-UTF-2000.
3393         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3394         (LEADING_BYTE_PREFIX_P): Deleted.
3395         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3396         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3397         (BUFBYTE_LEADING_BYTE_P): Deleted.
3398         (CHARSET_PRIVATE_P): Deleted unconditionally.
3399         (rep_bytes_by_first_byte): Deleted unconditionally.
3400         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3401         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3402         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3403         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3404         (CHAR_FIELD2): Deleted.
3405         (CHAR_FIELD3): Deleted.
3406         (MAKE_CHAR): Delete definition for non-UTF-2000.
3407         (BREAKUP_CHAR_1_UNSAFE): Deleted.
3408         (breakup_char_1): New implementation.
3409         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3410         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3411
3412 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
3413
3414         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3415         condition.
3416
3417 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3418
3419         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3420         (CHARSET_PRIVATE_P): Likewise.
3421         (XCHARSET_PRIVATE_P): Likewise.
3422         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3423
3424         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3425         UTF2000.
3426         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3427
3428 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3429
3430         * character.h (LEADING_BYTE_*): Changed in UTF2000.
3431         (NUM_LEADING_BYTES): Changed from 128 to 256.
3432         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3433         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3434         UTF2000.
3435         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3436
3437         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3438         UTF2000.
3439         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3440         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3441         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3442         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3443         (Qchinese_cns11643_3): New variable in UTF2000.
3444         (Qchinese_cns11643_4): New variable in UTF2000.
3445         (Qchinese_cns11643_5): New variable in UTF2000.
3446         (Qchinese_cns11643_6): New variable in UTF2000.
3447         (Qchinese_cns11643_7): New variable in UTF2000.
3448         (syms_of_mule_charset): Define `chinese-cns11643-3',
3449         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3450         and `chinese-cns11643-7' in UTF2000.
3451         (vars_of_mule_charset): Initialize
3452         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3453         + 1 in UTF2000.
3454         (complex_vars_of_mule_charset): Setup charset
3455         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3456         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3457
3458 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3459
3460         * mule-charset.c: Move setting for `leading-code-private-11' from
3461         `syms_of_mule_charset' to `vars_of_mule_charset'.
3462
3463 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3464
3465         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3466         and `NUM_LEADING_BYTES' in assert.
3467
3468 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
3469
3470         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3471         instead of 128.
3472         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3473         `NUM_LEADING_BYTES' instead of 128.
3474
3475 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
3476
3477         * mule-charset.h (charset_by_leading_byte): Use
3478         `NUM_LEADING_BYTES' instead of 128.
3479         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3480
3481         * mule-charset.c (charset_by_leading_byte): Use
3482         `NUM_LEADING_BYTES' instead of 128.
3483         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3484
3485         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3486         128.
3487
3488 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
3489
3490         * mule-charset.c (syms_of_mule_charset): Update to
3491         0.4 (Shin-Imamiya).
3492
3493 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3494
3495         * file-coding.c (encode_coding_sjis): New implementation for
3496         UTF2000.  (decode_coding_sjis): Ditto.
3497
3498 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3499
3500         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3501         Don't define in UTF2000.
3502
3503         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3504         defined.
3505
3506         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3507         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3508         MULE.
3509
3510 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
3511
3512         * config.h.in (CHAR_IS_UCS4): New macro.
3513
3514         * mule-charset.c (rep_bytes_by_first_byte): Modify for
3515         conventional MULE representation.
3516         (syms_of_mule_charset): Update to 0.3 (Imamiya).
3517
3518         * mule-charset.h: Reverted to original.
3519
3520         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3521         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3522         "mule-charset.h" if CHAR_IS_UCS4 is defined.
3523
3524         * character.h: New file.
3525
3526         * file-coding.c (Fmake_coding_system): Set 1 to
3527         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3528         defined.
3529         (encode_coding_no_conversion): New implementation for UTF2000.
3530
3531         * file-coding.h (struct Lisp_Coding_System): Add new member
3532         `fixed.size'.
3533
3534 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
3535
3536         * file-coding.c (decode_coding_iso2022): Code-point arguments of
3537         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3538         (encode_coding_iso2022): New implementation for UTF2000.
3539
3540 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3541
3542         * mule-canna.c (c2mu): New implementation for UTF2000.
3543         (m2c): Likewise.
3544
3545 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3546
3547         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3548
3549 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3550
3551         * file-coding.c (reset_encoding_stream): Set 0 to
3552         `str->iso2022.current_char_boundary' in UTF2000.
3553         (encode_utf8): Don't define in UTF2000.
3554         (encode_coding_utf8): New implementation for UTF-8 representation
3555         of UTF2000.
3556         (complex_vars_of_file_coding): Define coding-system `utf-8'.
3557
3558 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
3559
3560         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3561
3562         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3563         UTF2000.
3564         (REP_BYTES_BY_FIRST_BYTE): Likewise.
3565
3566         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3567
3568         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3569         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3570         as UTF-8 in UTF2000.
3571         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3572         (non_ascii_valid_char_p): Don't define in UTF2000.
3573         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3574         (Lstream_get_emchar_1): Likewise.
3575         (utf-2000-version): New variable in UTF2000.
3576
3577         * lread.c (read_escape): Add new reader `u'.
3578
3579         * insdel.c (three_to_one_table): Don't define in UTF2000.
3580         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3581         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3582         UTF2000.
3583         (bytind_to_bufpos_func): Likewise.
3584         (buffer_mule_signal_inserted_region): Likewise.
3585         (vars_of_insdel): Don't initialize `three_to_one_table'.
3586         (init_buffer_text): Use `buf->text->mule_size' instead of
3587         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3588         UTF2000.
3589
3590         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3591         UTF-8 representation in UTF2000.
3592         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3593         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3594         (decode_coding_iso2022): Don't define local variable `lb' in
3595         UTF2000; don't use LEADING_BYTE in UTF2000; use
3596         `DECODE_ADD_UCS_CHAR' in UTF2000.
3597         (convert_to_external_format): Decode as UTF-8 in UTF2000.
3598
3599         * config.h.in (UTF2000): New macro.
3600
3601         * buffer.h (struct buffer_text): Add new member `mule_size' and
3602         don't add `mule_shifter' and `mule_three_p' in UTF2000.
3603         (valid_char_p): Return always 1 in UTF2000.
3604         (MAX_EMCHAR_LEN): 6 in UTF2000.
3605         (three_to_one_table): Don't define in UTF2000.
3606         (real_bufpos_to_bytind): Modify for UTF-8 representation in
3607         UTF2000.
3608         (real_bytind_to_bufpos): Likewise.
3609
3610         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3611
3612 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
3613
3614         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3615         representation change.
3616         (Vutf_2000_version): New variable.
3617         (leading_code_private_11): New variable.
3618         (syms_of_mule_charset): Add new variables `utf-2000-version' and
3619         `leading-code-private-11'.
3620
3621         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3622         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3623         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3624         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3625         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3626         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3627         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3628         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3629         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3630         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3631         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3632         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3633         (MIN_CHAR_GREEK): New macro.
3634         (MAX_CHAR_GREEK): New macro.
3635         (MIN_CHAR_CYRILLIC): New macro.
3636         (MAX_CHAR_CYRILLIC): New macro.
3637         (MIN_CHAR_HEBREW): New macro.
3638         (MAX_CHAR_HEBREW): New macro.
3639         (MIN_CHAR_THAI): New macro.
3640         (MAX_CHAR_THAI): New macro.
3641         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
3642         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
3643         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
3644         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
3645         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
3646         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
3647         (CHAR_FIELD2): New inline function.
3648         (CHAR_FIELD3): New inline function.
3649         (MULE_CHAR_PRIVATE_OFFSET): New macro.
3650         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
3651         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
3652         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
3653         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
3654         (MIN_CHAR_COMPOSITION): Likewise.
3655         (CHAR_LEADING_BYTE): Modified for character representation change.
3656         (MAKE_CHAR): Likewise.
3657
3658         * lisp.h (Vcharset_latin_iso8859_1): New variable.
3659         (Vcharset_greek_iso8859_7): Likewise.
3660         (Vcharset_cyrillic_iso8859_5): Likewise.
3661         (Vcharset_hebrew_iso8859_8): Likewise.
3662         (Vcharset_thai_tis620): Likewise.
3663         (Vcharset_katakana_jisx0201): Likewise.
3664
3665 2001-02-08  Martin Buchholz <martin@xemacs.org>
3666
3667         * XEmacs 21.2.44 "Thalia" is released.
3668
3669 2001-02-06  Martin Buchholz  <martin@xemacs.org>
3670
3671         Fixes crashes in kill-emacs on some systems.
3672         * process-unix.c (unix_kill_child_process):
3673         It's OK for kill() to fail with ESRCH.
3674
3675 2001-02-07  Martin Buchholz  <martin@xemacs.org>
3676
3677         Contortions to make .gdbinit tricks work on most systems.
3678         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
3679         * alloc.c (dbg_valmask): Make non-const.
3680         * alloc.c (dbg_typemask): Make non-const.
3681         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
3682         * alloc.c (dbg_valbits): Make non-const.
3683         * alloc.c (dbg_gctypebits): Make non-const.
3684         * .gdbinit (decode_object): Make it work with AIX cc.
3685
3686 2001-02-06  Martin Buchholz  <martin@xemacs.org>
3687
3688         * elhash.c (make_general_lisp_hash_table):
3689         Use simpler and more efficient calloc to clear entries.
3690
3691 2001-02-07  Martin Buchholz  <martin@xemacs.org>
3692
3693         * window.c (window_scroll): Work around an AIX C compiler bug.
3694         Fixes 'scroll-up' does nothing problem with xlC.
3695
3696 2001-02-05  Martin Buchholz  <martin@xemacs.org>
3697
3698         * .gdbinit: Remove obsolete comment.
3699
3700 2001-01-31  Mike Alexander  <mta@arbortext.com>
3701
3702         * select.c (Fown_selection_internal): Set owned_p for device
3703         method correctly.
3704
3705 2001-02-01  Martin Buchholz  <martin@xemacs.org>
3706
3707         Port to g++ 2.97.
3708         "not" cannot be used as a macro name as it is an operator in C++
3709         * config.h.in: Stop #defining `not'.
3710         * chartab.c (check_category_char): not ==> not_p
3711         * chartab.h: Likewise.
3712         * regex.c (re_match_2_internal): Likewise.
3713
3714 2001-02-02  Martin Buchholz  <martin@xemacs.org>
3715
3716         * lisp-disunion.h: Fix up comments.
3717
3718 2001-01-31  Martin Buchholz  <martin@xemacs.org>
3719
3720         * keymap.c (define_key_check_and_coerce_keysym):
3721         (syms_of_keymap):
3722         Support mouse-6 and mouse-7 bindings in the obvious way.
3723
3724 2001-02-01  Martin Buchholz  <martin@xemacs.org>
3725
3726         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
3727
3728 2001-01-30  Martin Buchholz  <martin@xemacs.org>
3729
3730         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
3731         Previous patch missed DEFVAR_INT_MAGIC.
3732         Make sure future DEFVAR_foo use correct types.
3733         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
3734         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
3735         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
3736         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
3737         * (DEFVAR_INT): Likewise.
3738         * redisplay.c (vertical_clip): Should be of type Fixnum.
3739         * redisplay.c (horizontal_clip): Likewise.
3740         * lisp.h (dump_add_opaque_int): New.
3741         (dump_add_opaque_fixnum): New.
3742
3743 2001-01-29  Andy Piper  <andy@xemacs.org>
3744
3745         * glyphs-widget.c (check_valid_int_or_function): allow symbols
3746         since they can be eval'ed
3747
3748 2001-01-29  Martin Buchholz  <martin@xemacs.org>
3749
3750         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
3751         Oops, XEmacs redefines `class'.  Use `typename' instead.
3752
3753 2001-01-28  Martin Buchholz  <martin@xemacs.org>
3754
3755         * dumper.c: Fix C++ compile errors.
3756
3757 2001-01-29  Martin Buchholz  <martin@xemacs.org>
3758
3759         * tparam.c: Use correct prototypes.
3760
3761 2001-01-28  Martin Buchholz  <martin@xemacs.org>
3762
3763         * sysproc.h: #include util.h for NetBSD's openpty.
3764
3765 2001-01-27  Martin Buchholz  <martin@xemacs.org>
3766
3767         More 64-bit correctness.
3768         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
3769         Use a typedef `fixnum' for the type used for DEFVAR_INT.
3770         Fix up comments.
3771         This finally finishes the 64-bit SGI port.
3772         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
3773         * symbols.c: Fix up comments and type casts.
3774         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
3775         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
3776         * symeval.h (Fixnum): New type.
3777         * symeval.h (symbol_value_type): Fix up comment.
3778
3779         * commands.h:
3780         * nt.c:
3781         * emacs.c:
3782         * data.c:
3783         * redisplay.c:
3784         * abbrev.c:
3785         * dired-msw.c:
3786         * event-Xt.c:
3787         * eldap.c:
3788         * window.c:
3789         * sound.c:
3790         * event-stream.c:
3791         * eval.c:
3792         * buffer.c:
3793         * mule-canna.c: A million DEFVAR_INTs here...
3794         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
3795         * extents.c:
3796         * cmdloop.c:
3797         * lisp.h:
3798         * select-x.c:
3799         * console-x.h:
3800         * event-msw.c:
3801         * mule-wnnfns.c:
3802         * hpplay.c:
3803         * ralloc.c:
3804         * alloc.c:
3805         * keymap.c:
3806         * profile.c:
3807         s/int/Fixnum/g in DEFVAR_INT declarations.
3808
3809 2001-01-26  Martin Buchholz  <martin@xemacs.org>
3810
3811         Port pdump to SGI alignment-sensitive environment.
3812         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
3813         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
3814         properly aligned.
3815         Define and use aligned reading and writing macros.
3816         Use buffered stdio instead of posix i/o for faster dumping.
3817         Eliminate kludgy 256 byte space for header.
3818         Read and write from dump file using structs for alignment safety.
3819         * dumper.c (pdump_align_stream): New.
3820         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
3821         * dumper.c (PDUMP_READ_ALIGNED): New.
3822         * dumper.c (PDUMP_WRITE_ALIGNED): New.
3823         * dumper.c (pdump_static_Lisp_Object): New struct.
3824         * dumper.c (pdump_static_pointer): New struct.
3825         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
3826         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
3827         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
3828         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
3829
3830         * dumper.c (pdump_backtrace):
3831         * dumper.c (pdump_get_indirect_count):
3832         * dumper.c (pdump_register_object):
3833         * dumper.c (pdump_register_struct):
3834         * dumper.c (pdump_reloc_one):
3835         * dumper.c (pdump_scan_by_alignment):
3836         * dumper.c (pdump_dump_from_root_struct_ptrs):
3837         * dumper.c (pdump_dump_opaques):
3838         * dumper.c (pdump_dump_rtables):
3839         * dumper.c (pdump_dump_from_root_objects):
3840         * dumper.c (pdump):
3841         * dumper.c (pdump_load_finish):
3842         Use aligned reading and writing.
3843
3844         * dumper.c (pdump_free): Make static.
3845         * dumper.c (pdump_hFile): Likewise.
3846         * dumper.c (pdump_hMap): Likewise.
3847
3848 2001-01-26  Martin Buchholz <martin@xemacs.org>
3849
3850         * XEmacs 21.2.43 "Terspichore" is released.
3851
3852 2001-01-25  Martin Buchholz  <martin@xemacs.org>
3853
3854         Type fiddling for window_config.saved_windows_count
3855         * window.c (struct window_config): 
3856         Make saved_windows_count member unsigned.
3857         * window.c (sizeof_window_config_for_n_windows): 
3858         Make parameter unsigned.
3859         * window.c (mark_window_config):
3860         * window.c (window_config_equal):
3861         * window.c (free_window_configuration):
3862         * window.c (Fset_window_configuration):
3863         * window.c (count_windows):
3864         * window.c (Fcurrent_window_configuration):
3865         * window.c (reinit_vars_of_window):
3866         Update all callers and users.
3867
3868 2001-01-25  Martin Buchholz  <martin@xemacs.org>
3869
3870         Alignment correctness for flexible arrays.
3871         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
3872         Make alignment-correct. Add interesting comments.
3873         * alloc.c (size_vector):
3874         * alloc.c (make_vector_internal):
3875         * alloc.c (make_bit_vector_internal):
3876         * alloc.c (sweep_bit_vectors_1):
3877         * fns.c (size_bit_vector):
3878         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
3879         * window.c (sizeof_window_config_for_n_windows): 
3880         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
3881
3882 2001-01-24  Martin Buchholz  <martin@xemacs.org>
3883
3884         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
3885
3886 2001-01-23  Andy Piper  <andy@xemacs.org>
3887
3888         * select.c (Fown_selection_internal): pass owned_p
3889
3890         * select-msw.c (mswindows_own_selection): New Signature.
3891
3892         * console.h (struct console_methods): add owned_p to
3893         _own_selection.
3894
3895         * select-x.c (x_own_selection): pass owned_p
3896         (hack_motif_clipboard_selection): use owned_p
3897         (vars_of_select_x): new variable -
3898         x_selection_strict_motif_ownership.
3899
3900 2001-01-23  Martin Buchholz  <martin@xemacs.org>
3901
3902         * specifier.h (specifier_data_offset): Remove pointless parens.
3903         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
3904
3905 2001-01-24  Martin Buchholz  <martin@xemacs.org>
3906
3907         Make Lisp_Object sizeof methods be alignment-correct.
3908         pdump must restore objects to the same alignment as the C compiler
3909         assumes.  It really matters on SGIs.
3910         * lstream.c (aligned_sizeof_lstream): New.
3911         (sizeof_lstream): Use aligned_sizeof_lstream.
3912         (Lstream_new): Likewise.
3913         * opaque.c (aligned_sizeof_opaque): New.
3914         (sizeof_opaque): Use aligned_sizeof_opaque.
3915         (make_opaque): Likewise.
3916         * specifier.c (aligned_sizeof_specifier): New.
3917         (sizeof_specifier): Use aligned_sizeof_specifier.
3918         (make_specifier_internal): Likewise.
3919
3920 2001-01-23  Martin Buchholz  <martin@xemacs.org>
3921
3922         * lstream.h (struct lstream): Use max_align_t for trailing data.
3923         * specifier.h (struct Lisp_Specifier): Likewise.
3924
3925 2001-01-22  Martin Buchholz  <martin@xemacs.org>
3926
3927         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
3928         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
3929         (CCL_SUSPEND): Likewise.
3930         (CCL_INVALID_CMD): Likewise.
3931         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
3932         (ccl_driver): Likewise.
3933         (CCL_WRITE_CHAR): Macro hygiene.
3934         (CCL_WRITE_STRING): Macro hygiene.
3935
3936 2001-01-22  Martin Buchholz  <martin@xemacs.org>
3937
3938         Port "portable" dumper to SunOS 4 and HP-UX.
3939         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
3940         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
3941         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
3942
3943 2001-01-22  Martin Buchholz  <martin@xemacs.org>
3944
3945         * lisp.h (ALIGNOF): A better definition for C++.
3946
3947 2001-01-20  Martin Buchholz  <martin@xemacs.org>
3948
3949         Macro hygiene.
3950         Fix printf warnings: int format, long int arg.
3951         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
3952         (PUSH_FAILURE_POINT): Use correct printf formats.
3953         (POP_FAILURE_POINT): Use correct printf formats.  
3954         Use do {...} while (0)
3955
3956 2001-01-20  Martin Buchholz <martin@xemacs.org>
3957
3958         * XEmacs 21.2.42 "Poseidon" is released.
3959
3960 2001-01-20  Martin Buchholz  <martin@xemacs.org>
3961
3962         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
3963
3964 2001-01-19  Martin Buchholz  <martin@xemacs.org>
3965
3966         De-kludgify FIXED_TYPE free list frobbing.
3967         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
3968         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
3969         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
3970         * alloc.c (Lisp_Free): New pseudo lisp object definition.
3971         * alloc.c (LRECORD_FREE_P): New.
3972         * alloc.c (MARK_LRECORD_AS_FREE): New.
3973         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
3974         * alloc.c (STRUCT_FREE_P): Deleted.
3975         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
3976         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
3977         * alloc.c (STRING_CHARS_FREE_P): New.
3978         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
3979         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
3980         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
3981         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
3982         * alloc.c (resize_string): Use new definitions.
3983         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
3984         * alloc.c (verify_string_chars_integrity): Use new definitions.
3985         * alloc.c (compact_string_chars): Use new definitions.
3986         * alloc.c: Update monster comments.
3987         * lrecord.h (lrecord_type): Add some new lrecord types for
3988         alloc.c's use.
3989
3990 2001-01-18  Martin Buchholz  <martin@xemacs.org>
3991
3992         Improve alignment hackery.
3993         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
3994         (max_align_t): Moved from opaque.h - general purpose.
3995         (ALIGN_PTR): Use size_t, not long.
3996         * opaque.h (max_align_t): Move to lisp.h.
3997
3998 2001-01-18  Norbert Koch  <nk@LF.net>
3999
4000         * gui.h: Fix and add prototypes to fix build problems.
4001
4002 2001-01-18  Martin Buchholz  <martin@xemacs.org>
4003
4004         temacs is going away, so `dump-temacs' is now a bad name.
4005         * .dbxrc (dump-temacs): Rename to `dmp'.
4006         * .gdbinit (dump-temacs): Rename to `dmp'.
4007
4008 2001-01-17  Andy Piper  <andy@xemacs.org>
4009
4010         * glyphs.c (print_image_instance): comment to make martin happy.
4011
4012         * glyphs-x.c (x_redisplay_widget): update faces after a frame
4013         change.
4014
4015         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4016         activation.
4017         (mswindows_tab_control_redisplay): warning suppression.
4018
4019         * glyphs-widget.c (widget_update): re-write to cope with updated
4020         items.
4021         (widget_instantiate): use new gui_item functions.
4022         (tab_control_update): deleted.
4023         (progress_gauge_update): deleted.
4024         (image_instantiator_progress_guage): take out update reference.
4025         (image_instantiator_tree_view): ditto.
4026         (image_instantiator_tab_control): ditto.
4027
4028         * gui.c (widget_gui_parse_item_keywords): new function. Do things
4029         Right the new way.
4030         (gui_item_add_keyval_pair): re-write to cope with descriptors and
4031         return whether anything was changed.
4032         (update_gui_item_keywords): as it sounds.
4033
4034         * gui.h: declare widget_gui_parse_item_keywords.
4035
4036         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4037         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4038
4039 2001-01-17  Martin Buchholz <martin@xemacs.org>
4040
4041         * XEmacs 21.2.41 "Polyhymnia" is released.
4042
4043 2001-01-16  Didier Verna  <didier@xemacs.org>
4044
4045         * glyphs.c (image_instantiate): don't use fallbacks when
4046         instantiating a face's background pixmap by inheritance.
4047
4048 2001-01-14  Mike Sperber <mike@xemacs.org>
4049
4050         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4051         Conditionalize accordingly.
4052
4053 2001-01-16  Martin Buchholz  <martin@xemacs.org>
4054
4055         * dumper.c (pdump_file_get): Fix a compiler warning.
4056
4057 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4058
4059         Make Purify happy when pdumping.
4060         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4061         iniitalizing all bits of new lisp object memory.
4062         * symbols.c (Fmake_local_variable): Likewise.
4063         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4064         * symbols.c (Fdefvaralias): Likewise.
4065         * mule-charset.c (vars_of_mule_charset): Likewise.
4066
4067 2001-01-15  Martin Buchholz  <martin@xemacs.org>
4068         Add the `-nd' flag when running pre-dump operations under the debugger.
4069         * .dbxrc (run-temacs): Add `-nd'.
4070         * .dbxrc (update-elc): Likewise.
4071         * .dbxrc (dump-temacs): Likewise.
4072         * .gdbinit (run-temacs): Likewise.
4073         * .gdbinit (check-temacs): Likewise.
4074         * .gdbinit (update-elc): Likewise.
4075         * .gdbinit (dump-temacs): Likewise.
4076
4077 2001-01-14  Martin Buchholz  <martin@xemacs.org>
4078
4079         Allow building 64-bit executables on AIX with GNU malloc, e.g.
4080         export OBJECT_MODE=64
4081         configure --pdump --use-union-type=no
4082         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4083         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4084
4085         * miscplay.c (sndcnv8U_2mono):
4086         Avoid two uses of `++' in the same expression.
4087         Suppresses a GCC warning.
4088
4089 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4090
4091         Make sure future compilers don't miscompile alloc.c.
4092         * alloc.c:
4093         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4094         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4095
4096 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4097
4098         * dumper.c: A little post-pdump-rename comment fixup.
4099
4100 2001-01-09  Jerry James  <james@eecs.ku.edu>
4101
4102         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4103
4104 2001-01-13  Martin Buchholz  <martin@xemacs.org>
4105
4106         * *.[ch]: Globally rename symbols using the following `pdump-rename'
4107         script:
4108         #!/bin/sh
4109         replace_symbol () {
4110           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4111         }
4112
4113         replace_symbol pdump_wire_lists pdump_weak_object_chains
4114         replace_symbol pdump_wire_list dump_add_weak_object_chain
4115
4116         replace_symbol pdump_wires pdump_root_objects
4117         replace_symbol pdump_wire dump_add_root_object
4118
4119         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4120         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4121
4122         replace_symbol dumpstructinfos pdump_root_struct_ptrs
4123         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4124         replace_symbol dumpstructinfo pdump_root_struct_ptr
4125         replace_symbol dumpstruct dump_add_root_struct_ptr
4126
4127         replace_symbol dumpopaque dump_add_opaque
4128         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4129         replace_symbol dumpopaqueinfos pdump_opaques
4130         replace_symbol dumpopaqueinfo pdump_opaque
4131
4132         replace_symbol nb_structdump nb_root_struct_ptrs
4133         replace_symbol nb_opaquedump nb_opaques
4134
4135         replace_symbol align_table pdump_align_table
4136         replace_symbol dump_header pdump_header
4137
4138         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4139         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4140
4141
4142 2001-01-12  Martin Buchholz  <martin@xemacs.org>
4143
4144         * s/aix4.h: Keep the C for AIX compiler from overaggressively
4145         optimizing bytecount_to_charcount().
4146
4147 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4148
4149         * config.h.in:
4150         (HAVE_DLFCN_H): Removed.
4151         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4152
4153 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4154
4155         Portable dumper maintainability improvements.
4156         * alloc.c (staticpro):
4157         * alloc.c (staticpro_nodump):
4158         * alloc.c (garbage_collect_1):
4159         * alloc.c (reinit_alloc_once_early):
4160         * alloc.c (init_alloc_once_early):
4161         * alloc.c: Move dumper functions to alloc.c.
4162         * dumper.c (pdump_backtrace):
4163         * dumper.c (pdump_dump_structs):
4164         * dumper.c (pdump_dump_opaques):
4165         * dumper.c (pdump_dump_rtables):
4166         * dumper.c (pdump_dump_wired):
4167         * dumper.c (pdump):
4168         * dumper.c (pdump_load_check):
4169         * dumper.c (pdump_load_finish):
4170         * dumper.c (pdump_file_unmap):
4171         * dumper.c (pdump_file_get):
4172         * dumper.c (pdump_resource_free):
4173         * dumper.c (pdump_resource_get):
4174         * dumper.c (pdump_file_free):
4175         * dumper.c (pdump_file_try):
4176         * dumper.c (pdump_load):
4177         Remove fixed size limits on staticpro(), staticpro_nodump(),
4178         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4179         Remove custom code for dumping lrecord_implementations_table - use
4180         dumpopaque instead.
4181         Remove (most of the) custom code for dumping staticpros - dump it
4182         like any other dynarr.
4183
4184         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
4185         * dumper.c: Moved functions from alloc.c.
4186         * alloc.c (dumpstruct): Moved to dumper.c.
4187         * alloc.c (dumpopaque): Likewise.
4188         * alloc.c (pdump_wire): Likewise.
4189         * alloc.c (pdump_wire_list): Likewise.
4190
4191         * lisp.h (Dynarr_sizeof): New.
4192         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
4193         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
4194         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
4195
4196         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4197         * lisp.h (dumpopaque): ditto.
4198         * lisp.h (pdump_wire): ditto.
4199         * lisp.h (pdump_wire_list): ditto.
4200
4201 2001-01-09  Martin Buchholz  <martin@xemacs.org>
4202
4203         * make-src-depend (PrintPatternDeps):
4204         Use `sort' to make output independent of perl version.
4205
4206 2001-01-08  Martin Buchholz  <martin@xemacs.org>
4207
4208         Port to Netbsd 1.5.
4209         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4210         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4211
4212 2001-01-03  Didier Verna  <didier@xemacs.org>
4213
4214         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4215         that `focus_frame' is alive before thinking of calling
4216         `redisplay_redraw_cursor' on it.
4217
4218 2001-01-08  Martin Buchholz <martin@xemacs.org>
4219
4220         * XEmacs 21.2.40 is released.
4221
4222 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
4223
4224         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4225
4226 2001-01-06  Martin Buchholz  <martin@xemacs.org>
4227
4228         * alloc.c (dbg_valmask): Make const.
4229         * alloc.c (dbg_typemask): Make const.
4230         * alloc.c (dbg_USE_UNION_TYPE): Make const.
4231         * alloc.c (dbg_valbits): Make const.
4232         * alloc.c (dbg_gctypebits): Make const.
4233
4234 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
4235
4236         * redisplay-x.c (x_bevel_area):
4237         redisplay.h (struct rune):
4238         Typo fixes in comments.
4239
4240 2001-01-05  Andy Piper  <andy@xemacs.org>
4241
4242         * glyphs-x.c (x_redisplay_widget): use size changed for offset
4243         adjustment.
4244
4245         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4246
4247 2001-01-05  Martin Buchholz  <martin@xemacs.org>
4248
4249         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4250
4251         * mule-ccl.c (stack_idx_of_map_multiple):
4252         Non const global data must not be initialized!
4253         Found by MIYASHITA Hisashi.
4254
4255 2001-01-02  Andy Piper  <andy@xemacs.org>
4256
4257         * frame.c (change_frame_size): make sure frame size is always
4258         marked as changed.
4259
4260         * glyphs.c (image_instance_layout): minor code reuse.
4261
4262         * window.c (Fcurrent_window_configuration): revert previous
4263         change.
4264
4265 2001-01-02  Martin Buchholz  <martin@xemacs.org>
4266
4267         * glyphs.h:
4268         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4269
4270 2000-12-31  Andy Piper  <andy@xemacs.org>
4271
4272         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4273         when widget gets unmapped.
4274
4275         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4276         function. Make sure widgets losing focus don't just drop it.
4277         (handle_focus_event_1): record the widget with focus.
4278
4279 2000-12-31  Andy Piper  <andy@xemacs.org>
4280
4281         * window.c (allocate_window): use
4282         make_image_instance_cache_hash_table.
4283         (make_dummy_parent): ditto.
4284         (Fset_window_configuration): ditto.
4285
4286         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
4287
4288         * glyphs.c (process_image_string_instantiator): use
4289         INSTANTIATOR_TYPE.
4290         (get_image_instantiator_governing_domain): ditto.
4291         (normalize_image_instantiator): ditto.
4292         (instantiate_image_instantiator): ditto.
4293         (make_image_instance_1): ditto.
4294         (image_instantiate): ditto. Key on glyph *and* instantiator type.
4295         (instantiator_eq_equal): new function for use with instance hash
4296         tables.
4297         (instantiator_eq_hash): ditto.
4298         (make_image_instance_cache_hash_table): create a suitable hash
4299         table for storing image instances.
4300
4301         * elhash.h (hash_table_weakness): new internal weakness type
4302         HASH_TABLE_KEY_CAR_VALUE_WEAK.
4303         declare new functions.
4304
4305         * elhash.c (finish_marking_weak_hash_tables): introduce yet
4306         another weakness type for glyphs.
4307         (make_standard_lisp_hash_table): new function split out from
4308         make_general_lisp_hash_table.
4309         (make_lisp_hash_table): call make_standard_lisp_hash_table.
4310         (hash_table_instantiate): ditto.
4311         (Fmake_hash_table): ditto.
4312
4313 2000-12-31  Martin Buchholz <martin@xemacs.org>
4314
4315         * XEmacs 21.2.39 is released.
4316
4317 2000-12-29  Andy Piper  <andy@xemacs.org>
4318
4319         * menubar.c (menubar_visible_p_changed): signal the frame changed.
4320
4321         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4322         the frame has changed so that we pick up geometry changes such as
4323         menubar visibility.
4324
4325 2000-12-28  Andy Piper  <andy@xemacs.org>
4326
4327         * lastfile.c (my_ebss): make a char array so we can pad the
4328         bss. Fixes cygwin unexec.
4329
4330         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4331
4332 2000-12-26  Andy Piper  <andy@xemacs.org>
4333
4334         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4335         comments and try and be more precise about a non-/SIGIO world.
4336         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4337         SIGIO.
4338
4339         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4340         we don't normalize to zero width or height.
4341
4342 2000-12-24  Andy Piper  <andy@xemacs.org>
4343
4344         * Makefile.in.in (ldflags): add -mwindows when appropriate.
4345
4346 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
4347
4348         * s/sco5.h: SCO 5 has pty support.
4349
4350 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
4351
4352         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4353         input-method-xlib.c contains whole contents of input-method-xfs.c,
4354         so we can use input-method-xlib.c's code for USE_XFONTSET
4355         using #ifdefs.
4356         * input-method-xfs.c: removed.
4357
4358 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
4359
4360         * file-coding.h (enum coding_category_type): reorder enumerators to
4361         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
4362         (now one greater than largest real coding_category_type enumerator).
4363         * file-coding.c (coding_category_symbol, coding_category_by_priority,
4364         coding_category_system, fcd_descriptihon_1, decode_coding_category,
4365         Fcoding_category_list, Fset_coding_priority_list,
4366         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4367         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4368
4369 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4370
4371         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4372         * redisplay-output.c (redisplay_output_window): Clear top of window
4373         when face is changed.
4374         * redisplay-x.c (x_redraw_exposed_window): Call
4375         redisplay_clear_top_of_window.
4376         * redisplay.h: Publish redisplay_clear_top_of_window.
4377
4378 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
4379
4380         * buffer.c (Fkill_buffer): Map over all devices.
4381         * window.c (window_loop): Remove UNSHOW_BUFFER code.
4382         (list_windows): New function.
4383         (list_all_windows): Ditto.
4384         (Freplace_buffer_in_windows): Use them.
4385
4386 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4387
4388         * database.c (berkdb_subtype): Recognize new subtype `queue'.
4389         (Fopen_database): Use `db_create' instead of `db_open'.
4390         (syms_of_database): Initialize Qqueue.
4391
4392 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4393
4394         * buffer.c (common_init_complex_vars_of_buffer): Initialize
4395         buffer_local_face_property.
4396         * buffer.h (struct buffer): New member buffer_local_face_property.
4397         * window.c (Fset_window_buffer):  Mark window's face as changed
4398         when buffer has buffer local face.
4399         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4400         * objects.c (color_after_change): Set buffer_local_face_property
4401         when locale of face specifier is buffer.
4402         * objects.c (font_after_change): Ditto.
4403         * objects.c (face_boolean_after_change): Ditto.
4404         * glyphs.c (image_after_change): Ditto.
4405
4406 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4407
4408         * nt.c (mswindows_fstat): Report file permissions, volume serial
4409         number, etc. Code adapted from FSF Emacs 20.7.
4410
4411 2000-12-09  Dan Holmsand  <dan@eyebee.com>
4412
4413         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4414         of stat when we don't have symbolic links, to make sure
4415         mswindows_stat is called on mswindows.
4416
4417 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
4418
4419         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4420
4421 2000-12-12  Martin Buchholz  <martin@xemacs.org>
4422
4423         * doprnt.c (emacs_doprnt_1): More printing fixes.
4424         Make printing of numbers compatible with libc and FSF Emacs.
4425         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4426         Use the system printf to do most of the hard work of formatting,
4427         instead of doprnt_1().
4428         Calculate memory to allocate for format string.
4429         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4430         (doprnt_1): Cleaner code and documentation.
4431
4432 2000-12-01  Jerry James  <james@eecs.ukans.edu>
4433
4434         * Makefile.in.in: Use the loop variable to install headers.
4435
4436 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4437
4438         * window.c (Fsplit_window): Don't invalidate face cache.
4439
4440 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4441
4442         * minibuf.c (Fall_completions): Undo the previous change
4443         which removed checking elements start with space.
4444
4445 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4446
4447         * mule-canna.c: Didier suppression.
4448
4449 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
4450
4451         * mule-canna.c: rename static unsigned char buf[] to key_buffer
4452         (warning suppression).  Add English comment translations.
4453
4454 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4455
4456         * unexelfsgi.c (unexec): Better test for mmap failure.
4457
4458 2000-12-05  Martin Buchholz <martin@xemacs.org>
4459
4460         * XEmacs 21.2.38 is released.
4461
4462 2000-12-05  Martin Buchholz  <martin@xemacs.org>
4463
4464         * redisplay.c (bar-cursor): Make a user variable.
4465
4466         * symsinit.h: Add init_postgresql_from_environment.
4467
4468 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
4469
4470         * regex.c: Convert to clean C.
4471
4472 2000-12-05  Dan Holmsand  <dan@eyebee.com>
4473
4474         * realpath.c:
4475         Don't #include sysfile.h. Revert to duplicating PATH_MAX
4476         initialization.
4477         (sys_readlink): renamed to system_readlink to avoid conflict with
4478         the other sys_readlink.
4479
4480 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
4481
4482         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4483
4484 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
4485
4486         * postgresql.c (init_postgresql_from_environment): new function.
4487         (vars_of_postgresql): Move code initializing Lisp variables out and
4488         into init_postgresql_from_environment.
4489         emacs.c (main_1): Call init_postgresql_from_environment if and only
4490         if running a dumped XEmacs.
4491
4492 2000-08-31  Dan Holmsand  <dan@eyebee.com>
4493
4494         * buffer.c: Make find-file-compare-truenames default to true on
4495         windows.
4496
4497         * realpath.c (win32_abs_start):
4498         (cygwin_readlink):
4499         (win32_readlink): New functions.
4500         (xrealpath): Return really real filenames on windows.
4501
4502         * fileio.c (Ffile_truename): Make file-truename work on windows.
4503
4504 2000-11-29  Didier Verna  <didier@xemacs.org>
4505
4506         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4507         * faces.c (update_face_cachel_data): use it.
4508         * faces.c (add_face_cachel): use it. Complete background pixmap
4509         frobbing in face cache if `update_face_cachel_data' has not done so.
4510
4511 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
4512
4513         * search.c (string_match_1): Don't set last_thing_searched
4514         when search failed.
4515
4516 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
4517
4518         * buffer.c: Include casetab.h
4519         (common_init_complex_vars_of_buffer): Use new case-table object.
4520         * buffer.h: Include casetab.h
4521         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4522         (DOWNCASE_TABLE_OF): Ditto.
4523         * bufslots.h: Remove char-tables and add case-table.
4524         * casetab.c: Include casetab.h
4525         (CASE_TABLE_P): Removed.
4526         (mark_case_table): New function.
4527         (allocate_case_table): New function.
4528         (Fcase_table_p): Use new case-table.
4529         (case_table_char): New function.
4530         (Fget_case_table): Ditto.
4531         (Fput_case_table): Ditto.
4532         (Fput_case_table_pair): Ditto.
4533         (Fcopy_case_table): Ditto.
4534         (Fcurrent_case_table): Return case-table.
4535         (Fstandard_case_table): Return case-table.
4536         (Fset_case_table): Fix doc-string.
4537         (set_case_table): Use case-table
4538         (syms_of_casetab): DEFSUBR new functions.
4539         (complex_vars_of_casetab): Set up standard case-table.
4540         * casetab.h: New file.
4541         * editfns.c: Include casetab.h
4542         (Fcompare_buffer_substrings): Use case-table.
4543         * inline.c: Include casetab.h
4544         * lisp.h: Remove bogus extern.
4545         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4546         * search.c: Include casetab.h
4547         (TRANSLATE_ASCII): Removed.
4548         (TRANSLATE): Unconditionally translate character.
4549         (looking_at_1): Use case-table.
4550         (string_match_1): Ditto.
4551         (fast_string_match): Ditto.
4552         (search_command): Ditto.
4553         (search_buffer): Separate boyer_moore.  Check whether
4554         boyer_moore is possible.
4555         (simple_search): New function.
4556         (boyer_moore): Separated from search_buffer. Translate char.
4557
4558 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
4559
4560         * regex.c (RE_TR_ASCII): Removed.
4561         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4562         (PATFETCH): Call PATFETCH_RAW.
4563         (PATFETCH_RAW): Fetch Emchar.
4564         (PATUNFETCH): Decrement charptr.
4565         (GET_BUFFER_SPACE): Rename b to buf_end.
4566         (BUF_PUSH): Ditto.
4567         (BUF_PUSH_2): Ditto.
4568         (BUF_PUSH_3): Ditto.
4569         (EXTEND_BUFFER): Ditto.
4570         (SET_LIST_BIT): Ditto.
4571         (regex_compile): Ditto.  Translate non ASCII char.
4572         (compile_range): Ditto.
4573         (re_search_2): Ditto.
4574         (re_match_2_internal): Compare Emchar.
4575         (bcmp_translate): Ditto.
4576
4577 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
4578
4579         * lisp.h (basic char/int typedefs):  comment improvement.
4580
4581 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
4582
4583         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
4584         unstomp inhibit_site_lisp.  Improve comments.
4585
4586 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
4587
4588         * mule-charset.c (Fcharset_property):  improve type checking, comments.
4589
4590 2000-11-28  Andy Piper  <andy@xemacs.org>
4591
4592         * redisplay-output.c (redisplay_output_subwindow): make sure we do
4593         clipped display for windows in the gutter also.
4594         (redisplay_display_boxes_in_window_p): change semantics of return
4595         codes to be more intuitive.
4596
4597         * gutter.h: declare display_boxes_in_gutter_p.
4598
4599         * gutter.c (display_boxes_in_gutter_p): new function for
4600         redisplay.
4601
4602 2000-11-22  Andy Piper  <andy@xemacs.org>
4603
4604         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
4605         autodetect domain.
4606
4607 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
4608
4609         * callproc.c (Fold_call_process_internal):
4610         * gpm.c (Freceive_gpm_event):
4611         (tty_get_foreign_selection): Might be just warning supression.
4612         * fileio.c (Fwrite_region_internal):
4613         (Fset_visited_file_modtime):
4614         * keymap.c (event_matches_key_specifier_p):
4615         Initialize GCPROed variable.
4616
4617         * menubar-x.c (command_builder_find_menu_accelerator):
4618         Initialize before use.
4619
4620 2000-11-23  Andy Piper  <andy@xemacs.org>
4621
4622         * unexcw.c (unexec): make the resulting executable executable.
4623
4624 2000-11-21  Martin Buchholz  <martin@xemacs.org>
4625
4626         * doc.c (get_doc_string):
4627         Use size_t, not int, for result of XSTRING_LENGTH.
4628
4629         * cmds.c (Fdelete_char):
4630         * cmds.c (Fpoint_at_eol):
4631         * cmds.c (Fself_insert_command):
4632         Use EMACS_INT, not int, for result of XINT.
4633         Someday, someone will want to insert more than 2**31 identical characters.
4634
4635         * cmds.c (Fdelete_char):
4636         * cmds.c (Fdelete_backward_char):
4637         * syntax.c (Fforward_word):
4638         * syntax.c (Fforward_comment):
4639         Make COUNT argument optional, for consistency with forward-char et al.
4640
4641 2000-11-22  Martin Buchholz  <martin@xemacs.org>
4642
4643         * lisp.h:
4644         * print.c (long_to_string):
4645         Return a useful value: the pointer at end of data written.
4646
4647         * doprnt.c:
4648         Use `static const char * const' for constant strings.
4649         (union printf_arg): Delete `i', `ui' members.
4650         (get_doprnt_args):
4651         (emacs_doprnt_1):
4652         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
4653         Do all printf-ing via the `l' specifier.
4654         Use EMACS_INT instead of int.
4655         Optimize.
4656
4657 2000-11-20  Didier Verna  <didier@xemacs.org>
4658
4659         * faces.c (update_face_cachel_data): don't frob the background
4660         pixmap when the window is being created. The face is needed but
4661         does not exist yet.
4662
4663 2000-11-20  Andy Piper  <andy@xemacs.org>
4664
4665         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
4666         messing with a debug environment.
4667
4668 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4669
4670         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
4671
4672 2000-11-20  Martin Buchholz  <martin@xemacs.org>
4673
4674         * casetab.c (Fcase_table_p): Fix compile error and crash.
4675
4676 2000-11-18  Philip Aston  <philipa@mail.com>
4677
4678         * s/cygwin32.h: Cygwin has SVR4-like pty support.
4679
4680 2000-11-18  Martin Buchholz  <martin@xemacs.org>
4681
4682         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
4683         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
4684
4685 2000-11-17  Martin Buchholz  <martin@xemacs.org>
4686
4687         * config.h.in: Define HAVE_ELF_H if elf.h exists.
4688         * unexelf.c: Use HAVE_ELF_H.
4689         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
4690         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
4691         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
4692         Greg Harrington <greg_harrington@hotmail.com> provided a machine
4693         for testing.
4694         So this is an unexelfsgi.c from a different line of development.
4695
4696 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4697
4698         * regex.c (RE_TR_ASCII): New function.
4699         (RE_TRANSLATE): Call it.
4700
4701 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
4702
4703         * buffer.h (TRT_TABLE_OF): Remove assert.
4704         (IN_TRT_TABLE_DOMAIN): Removed.
4705
4706 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
4707
4708         * free-hook.c (log_gcpro):
4709         (show_gcprohist): Add support for GCPRO5.
4710
4711 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
4712
4713         * emacs.c (main_1): Improve -sd error message when --pdump=no.
4714
4715 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
4716
4717         * symeval.h: Declare flush_all_buffer_local_cache.
4718
4719         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
4720         (flush_buffer_local_cache): Added.
4721         (flush_all_buffer_local_cache): Added.
4722
4723         * lrecord.h: Remove unused XD_LO_RESET_NIL.
4724
4725         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
4726         (pdump_dump_data): Ditto.
4727         (pdump_reloc_one): Ditto.
4728         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
4729         before dumping.
4730
4731
4732 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
4733
4734         * buffer.c: Remove if 0'ed entry.
4735         * buffer.h: Rewrite TRT to use char-table.
4736         * bufslots.h: Remove mirror tables.
4737         * casetab.c: Remove mirror tables.
4738         (CASE_TABLE_P): New macro.
4739         (Fcase_table_p): Element of a case table is string or char-table.
4740         (make_mirror_trt_table): Removed.
4741         (set_case_table): Setup char-table from strings for backward
4742         compatibility.
4743         * dired.c (Fdirectory_files):
4744         * dired-msw.c: (mswindows_get_files):
4745         * lisp.h: Change prototype of re_pattern_buffer.
4746         * regex.c: (RE_TRANSLATE): New macro.
4747         (TRANSLATE_P): Ditto.
4748         Change translate to type RE_TRANSLATE_TYPE.
4749         * regex.h: Define RE_TRANSLATE_TYPE
4750         * search.c (TRANSLATE): New macro.
4751         (TRANSLATE_ASCII): New macro.
4752         Translate table is changed to Lisp_Object.
4753         (signal_failure): Inhibit return.
4754
4755 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
4756
4757         * device-msw.c:
4758         * eldap.c:
4759         * event-Xt.c:
4760         * event-stream.c:
4761         * print.c:
4762         Do UNGCPRO before return.
4763
4764 2000-11-14  Martin Buchholz <martin@xemacs.org>
4765
4766         * XEmacs 21.2.37 is released.
4767
4768 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
4769
4770         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
4771         Add comments about discarded return value.
4772
4773 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
4774
4775         * callint.c:
4776         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
4777
4778 2000-10-27  Andy Piper  <andy@xemacs.org>
4779
4780         * gutter.c (Fset_default_gutter_position): default left and right
4781         gutters to visible.
4782         (calculate_gutter_size): calculate resonable heuristic for left
4783         and right gutter sizes.
4784         (specifier_vars_of_gutter): change left and right gutter sizes to
4785         autodetect.
4786         (calculate_gutter_size_from_display_lines): new function.
4787         (output_gutter): check for resizing on left and right gutters.
4788         (clear_gutter): don't special case top and left gutters.
4789         (specifier_vars_of_gutter): use new signature for
4790         set_specifier_caching.
4791
4792         * glyphs-x.c (x_redisplay_widget): spelling fix.
4793         * glyphs.c (specifier_vars_of_glyphs):
4794         * menubar.c (specifier_vars_of_menubar):
4795         * redisplay.c (specifier_vars_of_redisplay):
4796         * toolbar.c (specifier_vars_of_toolbar):
4797         * window.c (specifier_vars_of_window):
4798         * scrollbar.c (specifier_vars_of_scrollbar):
4799         (complex_vars_of_scrollbar): use new signature for
4800         set_specifier_caching.
4801
4802         * specifier.c (set_specifier_caching): include recompute flag.
4803         (recompute_one_cached_specifier_in_window): always recompute if
4804         flag set.
4805         (recompute_one_cached_specifier_in_frame): ditto.
4806
4807         * specifier.h (struct specifier_caching): add recompute flag.
4808
4809 2000-10-24  Andy Piper  <andy@xemacs.org>
4810
4811         * unexcw.c (copy_executable_and_dump_data_section): add new
4812         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
4813         5.0 happy.
4814
4815 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4816
4817         * console-x.h (x_device): New member modifier_release_time.
4818         * event-Xt.c (x_handle_sticky_modifiers):
4819         Bound interval modifier keys are sticky.
4820         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
4821         * events.h: extern it.
4822
4823 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4824
4825         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
4826
4827 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
4828
4829         * event-stream.c (execute_command_event): Preserve current_events
4830         and the like when event is misc-user-event.
4831         Inhibit quit during the call to maybe_echo_keys.
4832
4833 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
4834
4835         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
4836         symlink when buffer is killed.
4837         (inhibit_clash_detection): New variable.
4838
4839 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
4840
4841         * console.c (Fset_input_method): Trigger redisplay on tty.
4842
4843 2000-11-07  Martin Buchholz  <martin@xemacs.org>
4844
4845         * process.c (Fprocess_status): Revert to previous behavior:
4846         (process-status "nosuchprocess") ==> nil
4847
4848 2000-11-06  Martin Buchholz  <martin@xemacs.org>
4849
4850         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
4851         Work around another GCC 2.95.2 optimizer bug.
4852
4853 2000-11-02  Martin Buchholz  <martin@xemacs.org>
4854
4855         * process.c (Fget_process): Use LIST_LOOP_2.
4856         (kill_buffer_processes): Use LIST_LOOP_2.
4857
4858         * minibuf.c (Fall_completions):
4859         Delete old non-functional code for FSF fourth argument.
4860
4861         * frame.c (frame_matches_frame_spec):
4862         Renamed from `frame_matches_frametype'.  Update all callers.
4863         (device_matches_device_spec):
4864         Renamed from 'device_matches_console_spec'.  Update all callers.
4865
4866         * doc.c (Fsubstitute_command_keys):
4867         Remove buffer overflow crash.  Small code cleanups.
4868
4869         * casetab.c (check_case_table): Simpler code.
4870
4871         * window.c (Freplace_buffer_in_windows):
4872         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
4873         (and similar implementation) as Fdelete_windows_on.
4874         Update all callers.
4875
4876         * alloc.c (Fmake_list):
4877         * alloc.c (make_vector):
4878         * alloc.c (Fmake_vector):
4879         * alloc.c (make_bit_vector):
4880         * alloc.c (Fmake_bit_vector):
4881         * alloc.c (Fbit_vector):
4882         * alloc.c (Fmake_string):
4883         * alloc.c (Fpurecopy):
4884         * alloc.c (Fmemory_limit):
4885         * buffer.c:
4886         * buffer.c (Fget_buffer):
4887         * buffer.c (Fkill_buffer):
4888         * buffer.c (complex_vars_of_buffer):
4889         * bytecode.c (Fcompiled_function_stack_depth):
4890         * callint.c (Fprefix_numeric_value):
4891         * event-stream.c:
4892         * event-stream.c (Fread_key_sequence):
4893         * casetab.c:
4894         * casetab.c (Fcase_table_p):
4895         * casetab.c (check_case_table):
4896         * casetab.c (Fset_case_table):
4897         * casetab.c (Fset_standard_case_table):
4898         * chartab.c:
4899         * chartab.c (Fchar_table_type):
4900         * chartab.c (Freset_char_table):
4901         * chartab.c (Fget_char_table):
4902         * chartab.c (Fget_range_char_table):
4903         * chartab.c (Fput_char_table):
4904         * chartab.c (Fmap_char_table):
4905         * chartab.c (Fcategory_table_p):
4906         * chartab.c (Fcheck_category_at):
4907         * chartab.c (Fchar_in_category_p):
4908         * chartab.c (Fcategory_table):
4909         * chartab.c (Fcopy_category_table):
4910         * chartab.c (Fset_category_table):
4911         * chartab.c (Fcategory_designator_p):
4912         * chartab.c (Fcategory_table_value_p):
4913         * cmds.c (Fdelete_char):
4914         * cmds.c (Fdelete_backward_char):
4915         * cmds.c (Fself_insert_command):
4916         * cmds.c (Fself_insert_internal):
4917         * console.c (Fvalid_console_type_p):
4918         * console.c (Fcdfw_console):
4919         * console.c (Fconsole_type):
4920         * console.c (Fconsole_name):
4921         * console.c (Fconsole_device_list):
4922         * console.c (Fconsole_on_window_system_p):
4923         * data.c:
4924         * data.c (Feq):
4925         * data.c (Fold_eq):
4926         * data.c (Fsubr_interactive):
4927         * data.c (Fchar_to_int):
4928         * data.c (Fint_to_char):
4929         * data.c (Fsetcar):
4930         * data.c (Fsetcdr):
4931         * data.c (Fnumber_to_string):
4932         * data.c (Fstring_to_number):
4933         * data.c (Frem):
4934         * database.c (mark_database):
4935         * database.c (finalize_database):
4936         * database.c (Fdatabase_live_p):
4937         * database.c (Fdatabasep):
4938         * device-x.c (Fx_get_resource):
4939         * device.c (Fdfw_device):
4940         * dired.c:
4941         * dired.c (Ffile_name_completion):
4942         * dired.c (Ffile_name_all_completions):
4943         * dired.c (Fuser_name_completion):
4944         * dired.c (Fuser_name_completion_1):
4945         * dired.c (Fuser_name_all_completions):
4946         * doc.c (Fdocumentation):
4947         * doc.c (Fdocumentation_property):
4948         * doc.c (Fsubstitute_command_keys):
4949         * editfns.c:
4950         * editfns.c (Fchar_to_string):
4951         * editfns.c (Fstring_to_char):
4952         * editfns.c (Ftemp_directory):
4953         * editfns.c (Finsert_char):
4954         * editfns.c (Fbuffer_substring_no_properties):
4955         * editfns.c (Fnarrow_to_region):
4956         * editfns.c (Fchar_equal):
4957         * editfns.c (Fchar_Equal):
4958         * editfns.c (Ftranspose_regions):
4959         * emacs.c (Fdump_emacs):
4960         * eval.c (Fthrow):
4961         * eval.c (Fcommand_execute):
4962         * eval.c (Fautoload):
4963         * eval.c (Fbacktrace):
4964         * eval.c (Fbacktrace_frame):
4965         * events.c:
4966         * events.c (Fcopy_event):
4967         * events.c (Fcharacter_to_event):
4968         * events.c (Fevent_button):
4969         * events.c (Fevent_process):
4970         * extents.c:
4971         * extents.c (Fnext_extent_change):
4972         * extents.c (Fextent_property):
4973         * faces.c (Ffacep):
4974         * faces.c (Fmake_face):
4975         * file-coding.c:
4976         * file-coding.c (Fencode_shift_jis_char):
4977         * file-coding.c (Fencode_big5_char):
4978         * fileio.c (Ffile_name_directory):
4979         * fileio.c (Ffile_name_nondirectory):
4980         * fileio.c (Ffile_name_as_directory):
4981         * fileio.c (Fdirectory_file_name):
4982         * fileio.c (Ffile_truename):
4983         * fileio.c (Fsubstitute_in_file_name):
4984         * fileio.c (Ffile_modes):
4985         * fileio.c (Fset_file_modes):
4986         * fileio.c (Fset_default_file_modes):
4987         * fileio.c (Fverify_visited_file_modtime):
4988         * floatfns.c (Facos):
4989         * floatfns.c (Fasin):
4990         * floatfns.c (Fatan):
4991         * floatfns.c (Fcos):
4992         * floatfns.c (Fsin):
4993         * floatfns.c (Ftan):
4994         * floatfns.c (Fbessel_j0):
4995         * floatfns.c (Fbessel_j1):
4996         * floatfns.c (Fbessel_jn):
4997         * floatfns.c (Fbessel_y0):
4998         * floatfns.c (Fbessel_y1):
4999         * floatfns.c (Fbessel_yn):
5000         * floatfns.c (Ferf):
5001         * floatfns.c (Ferfc):
5002         * floatfns.c (Flog_gamma):
5003         * floatfns.c (Fexp):
5004         * floatfns.c (Fexpt):
5005         * floatfns.c (Flog):
5006         * floatfns.c (Flog10):
5007         * floatfns.c (Fsqrt):
5008         * floatfns.c (Fcube_root):
5009         * floatfns.c (Facosh):
5010         * floatfns.c (Fasinh):
5011         * floatfns.c (Fatanh):
5012         * floatfns.c (Fcosh):
5013         * floatfns.c (Fsinh):
5014         * floatfns.c (Ftanh):
5015         * floatfns.c (Fabs):
5016         * floatfns.c (Ffloat):
5017         * floatfns.c (Flogb):
5018         * floatfns.c (Fceiling):
5019         * floatfns.c (Ffloor):
5020         * floatfns.c (Fround):
5021         * floatfns.c (Ftruncate):
5022         * floatfns.c (Ffceiling):
5023         * floatfns.c (Fffloor):
5024         * floatfns.c (Ffround):
5025         * floatfns.c (Fftruncate):
5026         * fns.c (Fstring_equal):
5027         * fns.c (Fstring_lessp):
5028         * fns.c (concat2):
5029         * fns.c (concat3):
5030         * fns.c (vconcat2):
5031         * fns.c (vconcat3):
5032         * fns.c (Fsubstring):
5033         * fns.c (Fassoc):
5034         * fns.c (Fold_assoc):
5035         * fns.c (assoc_no_quit):
5036         * fns.c (Fassq):
5037         * fns.c (Fold_assq):
5038         * fns.c (assq_no_quit):
5039         * fns.c (Frassoc):
5040         * fns.c (Fold_rassoc):
5041         * fns.c (Frassq):
5042         * fns.c (Fold_rassq):
5043         * fns.c (rassq_no_quit):
5044         * fns.c (Fremassoc):
5045         * fns.c (remassoc_no_quit):
5046         * fns.c (Fremassq):
5047         * fns.c (remassq_no_quit):
5048         * fns.c (Fremrassoc):
5049         * fns.c (Fremrassq):
5050         * fns.c (remrassq_no_quit):
5051         * fns.c (Fsort):
5052         * fns.c (Fplist_get):
5053         * fns.c (Fplist_put):
5054         * fns.c (Fplist_remprop):
5055         * fns.c (Fplist_member):
5056         * fns.c (Flax_plist_get):
5057         * fns.c (Flax_plist_put):
5058         * fns.c (Flax_plist_remprop):
5059         * fns.c (Flax_plist_member):
5060         * fns.c (Fequal):
5061         * fns.c (Fold_equal):
5062         * fns.c (Frequire):
5063         * fns.c (Fbase64_encode_region):
5064         * fns.c (Fbase64_encode_string):
5065         * fns.c (Fbase64_decode_region):
5066         * frame.c:
5067         * frame.c (frame_matches_frame_spec):
5068         * frame.c (device_matches_device_spec):
5069         * frame.c (next_frame):
5070         * frame.c (previous_frame):
5071         * frame.c (Fnext_frame):
5072         * frame.c (Fprevious_frame):
5073         * frame.c (Fframe_property):
5074         * frame.c (Fset_frame_height):
5075         * frame.c (Fset_frame_size):
5076         * frame.h:
5077         * glyphs.c:
5078         * glyphs.c (if):
5079         * glyphs.c (decode_error_behavior_flag):
5080         * glyphs.c (Fmake_image_instance):
5081         * indent.c (Findent_to):
5082         * intl.c (Fignore_defer_gettext):
5083         * keymap.c (Fkeymapp):
5084         * keymap.c (Flookup_key):
5085         * lread.c:
5086         * lread.c (Fload_internal):
5087         * lread.c (Feval_buffer):
5088         * lread.c (Feval_region):
5089         * macros.c (Fexecute_kbd_macro):
5090         * marker.c (set_marker_internal):
5091         * marker.c (Fset_marker):
5092         * marker.c (set_marker_restricted):
5093         * marker.c (Fcopy_marker):
5094         * marker.c (noseeum_copy_marker):
5095         * menubar.c:
5096         * menubar.c (Fpopup_menu):
5097         * minibuf.c:
5098         * mule-charset.c (Fcharset_name):
5099         * mule-charset.c (Fchar_charset):
5100         * mule-charset.c (Fchar_octet):
5101         * mule-charset.c (Fsplit_char):
5102         * mule-wnnfns.c (Fwnn_open):
5103         * mule-wnnfns.c (Fwnn_dict_comment):
5104         * mule-wnnfns.c (Fwnn_quit_henkan):
5105         * mule-wnnfns.c (Fwnn_word_toroku):
5106         * mule-wnnfns.c (Fwnn_word_sakujo):
5107         * mule-wnnfns.c (Fwnn_word_use):
5108         * mule-wnnfns.c (Fwnn_hindo_set):
5109         * objects.c:
5110         * objects.c (Fmake_color_instance):
5111         * objects.c (Fmake_font_instance):
5112         * print.c (Fwrite_char):
5113         * process.c:
5114         * process.c (mark_process):
5115         * process.c (print_process):
5116         * process.c (get_process_from_usid):
5117         * process.c (Fprocessp):
5118         * process.c (Fprocess_live_p):
5119         * process.c (Fget_process):
5120         * process.c (Fget_buffer_process):
5121         * process.c (get_process):
5122         * process.c (Fprocess_id):
5123         * process.c (Fprocess_name):
5124         * process.c (Fprocess_command):
5125         * process.c (init_process_io_handles):
5126         * process.c (start_process_unwind):
5127         * process.c (Fstart_process_internal):
5128         * process.c (Fopen_multicast_group_internal):
5129         * process.c (Fset_process_window_size):
5130         * process.c (read_process_output):
5131         * process.c (send_process):
5132         * process.c (Fprocess_tty_name):
5133         * process.c (Fset_process_buffer):
5134         * process.c (Fprocess_buffer):
5135         * process.c (Fprocess_mark):
5136         * process.c (set_process_filter):
5137         * process.c (Fset_process_filter):
5138         * process.c (Fprocess_filter):
5139         * process.c (Fprocess_send_region):
5140         * process.c (Fprocess_send_string):
5141         * process.c (exec_sentinel):
5142         * process.c (Fset_process_sentinel):
5143         * process.c (Fprocess_sentinel):
5144         * process.c (status_notify):
5145         * process.c (Fprocess_status):
5146         * process.c (Fprocess_exit_status):
5147         * process.c (process_send_signal):
5148         * process.c (Fprocess_send_eof):
5149         * process.c (deactivate_process):
5150         * process.c (remove_process):
5151         * process.c (Fdelete_process):
5152         * process.c (kill_buffer_processes):
5153         * process.c (Fprocess_kill_without_query):
5154         * process.c (Fprocess_kill_without_query_p):
5155         * rangetab.c:
5156         * rangetab.c (Fget_range_table):
5157         * rangetab.c (Fput_range_table):
5158         * rangetab.c (Fremove_range_table):
5159         * rangetab.c (Fclear_range_table):
5160         * search.c:
5161         * search.c (Fskip_chars_forward):
5162         * search.c (Fskip_chars_backward):
5163         * search.c (Fskip_syntax_forward):
5164         * search.c (Fskip_syntax_backward):
5165         * search.c (search_command):
5166         * search.c (Freplace_match):
5167         * search.c (Fregexp_quote):
5168         * select.c (Fown_selection_internal):
5169         * select.c (Fselection_owner_p):
5170         * select.c (Fselection_exists_p):
5171         * select.c (Fget_selection_internal):
5172         * specifier.c:
5173         * symbols.c:
5174         * symbols.c (Fintern):
5175         * symbols.c (Fintern_soft):
5176         * symbols.c (Funintern):
5177         * symbols.c (Fapropos_internal):
5178         * symbols.c (Fset_default):
5179         * syntax.c:
5180         * syntax.c (Fsyntax_table_p):
5181         * syntax.c (Fcopy_syntax_table):
5182         * syntax.c (Fset_syntax_table):
5183         * syntax.c (Fchar_syntax):
5184         * syntax.c (syntax_match):
5185         * syntax.c (Fmatching_paren):
5186         * syntax.c (Fforward_word):
5187         * syntax.c (scan_lists):
5188         * syntax.c (Fscan_lists):
5189         * syntax.c (Fscan_sexps):
5190         * syntax.c (Fparse_partial_sexp):
5191         * toolbar.c (Fcheck_toolbar_button_syntax):
5192         * tooltalk.doc:
5193         * window.c:
5194         * window.c (Fwindowp):
5195         * window.c (Fwindow_live_p):
5196         * window.c (Fwindow_point):
5197         * window.c (Fdelete_window):
5198         * window.c (Fnext_window):
5199         * window.c (Fprevious_window):
5200         * window.c (Fother_window):
5201         * window.c (window_loop):
5202         * window.c (Fget_lru_window):
5203         * window.c (Fsplit_window):
5204         * window.c (Fenlarge_window):
5205         * window.c (Fenlarge_window_pixels):
5206         * window.c (Fshrink_window):
5207         * window.c (Fshrink_window_pixels):
5208         * window.c (change_window_height):
5209         * window.c (Fwindow_configuration_p):
5210         * window.c (Fcurrent_window_configuration):
5211         * window.h:
5212         * casefiddle.c (casify_object):
5213         * casefiddle.c (Fupcase):
5214         * casefiddle.c (Fdowncase):
5215         * casefiddle.c (Fcapitalize):
5216         * casefiddle.c (Fupcase_initials):
5217         * casefiddle.c (casify_region_internal):
5218         * casefiddle.c (casify_region):
5219         * casefiddle.c (Fupcase_region):
5220         * casefiddle.c (Fdowncase_region):
5221         * casefiddle.c (Fcapitalize_region):
5222         * casefiddle.c (Fupcase_initials_region):
5223         * casefiddle.c (Fupcase_word):
5224         * casefiddle.c (Fdowncase_word):
5225         * casefiddle.c (Fcapitalize_word):
5226         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
5227         Replace 0 with '\0' when working with bytes.
5228         Replace initial "(" with "\(" in docstrings.
5229
5230 2000-11-01  Martin Buchholz  <martin@xemacs.org>
5231
5232         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5233
5234         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5235
5236 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5237
5238         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
5239
5240 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5241
5242         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5243         correctly.
5244
5245 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
5246
5247         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5248         (inhibit_auto_save_session): New variable.
5249         (vars_of_fileio): Declare and initialize them.
5250         * fileio.c (Fdo_auto_save): Don't create session file if
5251         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5252
5253 2000-10-31  Martin Buchholz  <martin@xemacs.org>
5254
5255         * sgiplay.c (play_internal): C++ compilability.
5256         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5257         * callproc.c (Fold_call_process_internal):
5258         Remove unused vars `env', `first'.
5259         * scrollbar.c (update_scrollbar_instance):
5260         #### unused var `current_window'.
5261         * redisplay-tty.c: Put currently unused vars insert_mode_on,
5262         etc. within #ifdef NOT_YET.
5263         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5264         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5265         * specifier.c (specifier_instance):
5266         #### unused var `tag'.
5267         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5268
5269 2000-10-27  Martin Buchholz  <martin@xemacs.org>
5270
5271         * fns.c (Fbutlast):
5272         * fns.c (list_sort):
5273         * fns.c (Ffillarray):
5274         * fns.c (bytecode_nconc2):
5275         * fns.c (Fnconc):
5276         * fns.c (mapcar1):
5277         * fns.c (Fmapconcat):
5278         Be pedantically 64-bit correct.  For the time when someone will
5279         want to have a list with length > 2**32.
5280
5281         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5282         Work around MIPSpro compiler bug.
5283
5284         * process-unix.c (unix_kill_child_process): Add snarky comment.
5285         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
5286
5287         * config.h.in: Oops, _getpt ==> _getpty
5288
5289 2000-10-26  Martin Buchholz  <martin@xemacs.org>
5290
5291         * config.h.in:
5292         * regex.c:
5293         Use void*, not char*, as return type of alloca().
5294
5295         * alloc.c (free_marker): Side effect inside assert expression!
5296
5297 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
5298
5299         * mule-charset.c (Fset_charset_ccl_program): To check
5300         if the given ccl program is valid, use setup_ccl_program()
5301         instead of CHECK_VECTOR().
5302         (Fmake_charset): Likewise.
5303
5304 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
5305
5306         * faces.c (get_extent_fragment_face_cache_index):
5307         Fix cachel.merged_faces memory leak.
5308
5309 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
5310
5311         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5312         Reset MSB of octets obtained by DECODE_SJIS
5313         because of the incompatibility with Emacs.
5314         (ccl_driver)<CCL_ENCODE_SJIS>:
5315         Set MSB of octets before passing them to
5316         ENCODE_SJIS because of the incompatibility
5317         with Emacs.
5318
5319 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
5320
5321         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5322         (DECLARE_LRECORD): Undo the last change.
5323         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5324
5325 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
5326
5327         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5328         the implementation to lrecord_implementations_table.
5329
5330 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
5331
5332         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5333         initial value of `lrecord_type_##c_name' and
5334         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5335         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5336         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5337         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5338         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5339
5340 2000-10-17  Martin Buchholz  <martin@xemacs.org>
5341
5342         * miscplay.c (sndcnv8S_2mono):
5343         (sndcnv2monounsigned):
5344         (sndcnvULaw_2linear):
5345         (sndcnv16swap):
5346         Remove implementation-defined behavior.
5347
5348 2000-10-12  Martin Buchholz  <martin@xemacs.org>
5349
5350         * input-method-xlib.c: Warning suppression.
5351
5352 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
5353
5354         * mule-ccl.c: Sync up with Emacs 21.0.90.
5355         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5356         Do nothing.
5357         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5358         Likewise.
5359         (ccl_driver[WriteMultibyteChar2]): Bug fix.
5360         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5361         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5362         leading char belongs to official 2-dimensional charset.
5363         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5364         write the given character as is.  Otherwise,
5365         if it is a multibyte char, convert it by
5366         non_ascii_set_charptr_emchar, then write it.
5367         (CCL_WRITE_STRING): Likewise.
5368         (ccl_get_compiled_code): New function.
5369         (setup_ccl_program): When ccl_prog is invalid,
5370         return -1.
5371         (Fregister_code_conversion_map): New function.
5372         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5373
5374         * mule-ccl.h: Sync up with Emacs 21.0.90.
5375         (Fregister_ccl_program): export it.
5376
5377         * redisplay-msw.c (separate_textual_runs):
5378         If ccl program is not valid, don't do ccl conversion.
5379
5380         * redisplay-x.c (separate_textual_runs): Ditto.
5381
5382         * file-coding.c (Fmake_coding_system):
5383         When type is ccl and value is vector, register it
5384         with a proper symbol.  And checks whether the
5385         given ccl program is valid.
5386         (mule_decode): When calling ccl_driver, if src indicates
5387         NULL pointer, set an empty string instead.
5388         (mule_encode): Likewise.
5389
5390 2000-10-11  Martin Buchholz  <martin@xemacs.org>
5391
5392         The following large batch of changes gets us back to a state of
5393         C++ compilability.  Extbyte is now a char, which means that
5394         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5395
5396         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5397
5398         * sound.c (Fplay_sound): Type correctness.
5399
5400         * select-x.c (hack_motif_clipboard_selection): Type correctness.
5401         (x_get_window_property): Type correctness.
5402         (receive_incremental_selection): unsigned char ==> Extbyte
5403         (selection_data_to_lisp_data): unsigned char ==> Extbyte
5404         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5405         (Fx_store_cutbuffer_internal): Type correctness.
5406
5407         * process-unix.c (try_to_initialize_subtty): Type correctness.
5408
5409         * objects-x.c (x_print_color_instance): Type correctness.
5410         (x_print_font_instance): Type correctness.
5411         (x_list_fonts): SExtbyte ==> Extbyte.
5412         (valid_x_font_name_p): SExtbyte ==> Extbyte.
5413         (x_find_charset_font): SExtbyte ==> Extbyte.
5414         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
5415         (truename_via_XListFonts): SExtbyte ==> Extbyte.
5416         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5417         Use bufbyte_strcmp.
5418
5419         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5420         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5421         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5422         (BYTE_C0_P): Use bit ops for char-signedness safety.
5423         (BYTE_C1_P): Use bit ops for char-signedness safety.
5424         (CHARSET_BY_LEADING_BYTE):
5425         (CHARSET_BY_ATTRIBUTES):
5426         Always use inline function.
5427         Use type_checking_assert.
5428         Hide chlook.
5429
5430         * mule-charset.c (non_ascii_charptr_copy_char):
5431         Modify to work with both ASCII and non-ASCII characters.
5432         Improve docs and variable names.
5433         Replace over-clever fall-through switch with a simple loop.
5434         (Lstream_get_emchar_1):
5435         Replace over-clever fall-through switch with a simple loop.
5436
5437         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5438         Warning suppression.
5439
5440         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5441         the return value of Lstream_getc, which could be EOF as well.
5442
5443         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5444
5445         * lisp.h: Make Extbyte a char, not unsigned char, so that external
5446         APIs can be used on Extbytes without casts.  Risky!
5447         (SExtbyte): Remove.
5448         (UExtbyte): Remove.
5449
5450         * input-method-xlib.c (XIM_init_device):
5451         Use Xlib.h instead of IntrinsicP.h.
5452         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5453         which will break in X11R7.
5454         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5455         to call XRegisterIMInstantiateCallback with correct types.
5456
5457         * gui-x.c (button_item_to_widget_value): Type correctness.
5458
5459         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
5460
5461         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5462         (xbm_instantiate_1): Type correctness.
5463         (BUILD_GLYPH_INST):  Type correctness.
5464
5465         * fileio.c (Fsubstitute_in_file_name): Type correctness.
5466
5467         * file-coding.c:
5468         (decode_coding_sjis):
5469         (decode_coding_big5):
5470         (decode_coding_ucs4):
5471         (decode_coding_utf8):
5472         (decode_coding_iso2022):
5473         (decode_coding_no_conversion):
5474         Make all decoding functions take an Extbyte * arg.
5475         (encode_coding_sjis):
5476         (encode_coding_big5):
5477         (encode_coding_ucs4):
5478         (encode_coding_utf8):
5479         (encode_coding_iso2022):
5480         (encode_coding_no_conversion):
5481         Make all encoding functions take a Bufbyte * arg.
5482         Use size_t instead of unsigned int for memory sizes.
5483         Only cast to unsigned char whenever dereferencing Extbyte *.
5484
5485         * doc.c (unparesseuxify_doc_string): Type correctness.
5486
5487         * console-x.c (split_up_display_spec):
5488         Rewrite without using details of internal string representation.
5489         (x_semi_canonicalize_device_connection): Type correctness.
5490
5491         * config.h.in:
5492         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5493         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5494         (HAVE_XFREE386): Removed.
5495
5496         * buffer.h (DEC_CHARPTR): `const' correctness.
5497         (bufbyte_strcmp): New.
5498         (bufbyte_memcmp): New.
5499
5500         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5501
5502         * buffer.h (XCHAR_OR_CHAR_INT):
5503         Always use inline function.
5504         Remove redundant type checking assert() - XINT will abort quite nicely.
5505
5506 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
5507
5508         * search.c (Freplace_match): Set newtext to an empty string.
5509
5510 2000-10-10  Martin Buchholz  <martin@xemacs.org>
5511
5512         * s/decosf1-3.h: Remove #include of stropts.h
5513         * s/ptx.h: Remove #include of stropts.h
5514         * s/usg5-4.h: Remove #include of stropts.h
5515         * sysproc.h:
5516         * config.h.in:
5517         Use stropts.h, not sys/stropts.h.
5518         Use strtio.h, not sys/strtio.h.
5519
5520 2000-10-04  Martin Buchholz <martin@xemacs.org>
5521
5522         * XEmacs 21.2.36 is released.
5523
5524 2000-09-21  Andy Piper  <andy@xemacs.org>
5525
5526         * glyphs-x.c (x_redisplay_widget): make sure non-structural
5527         changes still involve copying the widget tree.
5528         (update_widget_face): make sure a change is register in the widget
5529         tree. Call update_tab_widget_face appropriately.
5530         (update_tab_widget_face): ditto.
5531         (x_tab_control_redisplay): make sure non-structural changes still
5532         involve copying the widget tree.
5533
5534 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
5535
5536         * lread.c (locate_file): Check the path element is non-nil.
5537
5538 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5539
5540         * lisp.h: Warning suppression for SCO compilers.
5541
5542         * redisplay-tty.c (reset_tty_modes): Fix crash.
5543         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5544
5545 2000-09-27  Martin Buchholz  <martin@xemacs.org>
5546
5547         Big signal/process handling overhaul.  Bugs fixed:
5548         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5549         M-x comint-kill-subjob should work for both values nil and t of
5550         process-connection-type. It was broken on most platforms.
5551         Testing on Irix and Cygwin still needed.  Other plaforms tested.
5552         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
5553         * process-unix.c: Signal/Process handling overhaul.
5554         (pty_name): make 64 bytes, as `expect' does, for paranoia.
5555         (allocate_pty): Use all available modern methods of allocating
5556         ptys, falling back to old style BSD allocation as a last resort.
5557         Use allegedly more secure Unix98 pty allocation by default.
5558         (allocate_pty_the_old_fashioned_way): New. the last resort.
5559         (unix_create_process): Push ptem, ldterm, ttcompat where
5560         available.  Autoconfiscate.
5561         (try_to_initialize_subtty): New.
5562         (unix_kill_child_process): Proper signal handling for ptys on most
5563         platforms, using special knowledge of AIX, BSD, etc...
5564         (unix_create_process): Always disconnect_controlling_terminal() for
5565         subprocesses, whether using ptys or not.
5566         * process.h: Remove old getpt-dependent PTY code.
5567         * process.c (Fprocess_send_signal): New, obvious generic function.
5568         (decode_signal): New.
5569         (Finterrupt_process):
5570         (Fkill_process):
5571         (Fquit_process):
5572         (Fstop_process):
5573         (Fcontinue_process):
5574         (Fsignal_process): Use decode_signal.
5575         (process_send_signal):
5576         Many docstring corrections.
5577         Allow any signal to be sent to a process object.
5578         * config.h.in: Add symbols for big signal/process overhaul.
5579         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5580         * sysproc.h: Include process-related headers, where available:
5581         sys/stropts.h sys/strtio.h pty.h libutil.h
5582         * s/irix4-0.h:
5583         * s/irix5-0.h:
5584         * s/cygwin32.h:
5585         * s/gnu.h:
5586         * s/linux.h:
5587         * s/hpux.h:
5588         * s/aix3-1.h:
5589         Remove old S&M pty stuff.
5590         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
5591         * systty.h: Simplify cpp hackery, improve comments.
5592         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
5593
5594         * editfns.c (Fformat_time_string):
5595         Be a little more paranoid with the return value of ctime.
5596
5597         * fileio.c (check_executable):
5598         (check_writable):
5599         Use symbolic constants X_OK, W_OK.
5600
5601         * console-x.c (split_up_display_spec): Fix a warning.
5602
5603 2000-10-02  Martin Buchholz  <martin@xemacs.org>
5604
5605         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
5606         * ntproc.c (sys_spawnve): make_string ==> build_string
5607         Small clarity improvements.
5608
5609 2000-09-30  Martin Buchholz  <martin@xemacs.org>
5610
5611         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
5612
5613         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
5614
5615         * config.h.in (HAVE_STRCASECMP): Remove.
5616
5617 2000-09-29  Martin Buchholz  <martin@xemacs.org>
5618
5619         * redisplay-output.c (redisplay_output_pixmap):
5620         Cleaner and possibly more 64-bit correct code.
5621
5622 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
5623
5624         * dumper.c (pdump_load_finish): move restoration of
5625         `noninteractive1' to emacs.c (main_1).
5626         * emacs.c (main_1): protect LISP-visible command-line flags
5627         from pdump_load().
5628
5629 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
5630
5631         * Makefile.in.in (versionclean):  Use EXE_TARGET and
5632         DUMP_TARGET instead of literal program names.
5633
5634 2000-09-20  Martin Buchholz  <martin@xemacs.org>
5635
5636         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
5637
5638 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5639
5640         * *: Spelling mega-patch
5641
5642 2000-09-19  Martin Buchholz  <martin@xemacs.org>
5643
5644         * fns.c (bad_bad_turtle):
5645         Delete "Eek!" comment, since we fixed the bug to which it refers.
5646
5647 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5648
5649         * alloca.c: Replace REGISTER with register.
5650
5651 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
5652
5653         * file-coding.c (ucs_to_char): Use countof.
5654
5655 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5656
5657         * file-coding.c: (ucs_to_char):
5658         (complex_vars_of_file_coding):
5659         Use countof instead of sizeof.
5660         Use CHECK_NATNUM instead of CHECK_INT.
5661
5662         * sysdep.c (strcasecmp): Remove.
5663         * device-x.c (ascii_strcasecmp): New.
5664         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
5665         Avoid using non-standard non-portable strcasecmp.
5666
5667 2000-09-16  Martin Buchholz  <martin@xemacs.org>
5668
5669         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
5670         * font-lock.c: remove reference to emacsfns.h.
5671         * search.c: small doc improvement.
5672         * event-Xt.c: correct file names in comments.
5673         * console-x.h Correct file names in comments.
5674         * frame.c: Correct file names in comments.
5675         * event-stream.c: remove Energize from comments.
5676
5677 2000-09-15  Martin Buchholz  <martin@xemacs.org>
5678
5679         * symeval.h (DEFERROR_STANDARD):
5680         (DEFERROR):
5681         (DEFSYMBOL):
5682         (DEFSYMBOL_NO_DUMP):
5683         (DEFSYMBOL_MULTIWORD_PREDICATE):
5684         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
5685         (DEFKEYWORD):
5686         The construct &##name is not sensible C.
5687         Fixes compilation errors with Unixware native compiler.
5688
5689 2000-09-14  Martin Buchholz  <martin@xemacs.org>
5690
5691         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
5692         (next_frame_internal): Removed.  We now just have next_frame.
5693         (next_frame):
5694         Write a simpler and cleaner one-pass algorithm.
5695         Remove called_from_delete_device arg and #ifdefed-out code.
5696         (previous_frame):
5697         Renamed from prev_frame.  Update callers.
5698         Cleaned up to have an analogous implementation to next_frame.
5699         (other_visible_frames_internal): Remove the
5700         called_from_delete_device bogus arg, and hence, remove this
5701         function.  Just use other_visible_frames().
5702
5703         * window.c (Fnext_window):
5704         Prettify docstring.
5705         Since next_frame() is guaranteed to return a frame, remove check
5706         for nil inserted in previous patch.
5707         (Fprevious_window):
5708         Prettify docstring.
5709         Make code look more like Fnext_window.
5710         (window_loop):
5711         Respect the `console' arg when iterating through windows.
5712         Fixes bug: (get-buffer-window buffer t device) not respecting
5713         the `device' arg.
5714         This function needs more work, as others have pointed out.
5715
5716         * frame.h: Rename prev_frame to previous_frame.
5717         device_matches_console_spec no longer takes a `frame' arg.
5718
5719         * s/gnu.h:
5720         * s/linux.h:
5721         * s/hpux.h:
5722         Use EMACS_BLOCK_SIGNAL instead of sigblock.
5723         From "Golubev I. N." <gin@mo.msk.ru>.
5724
5725         * make-src-depend: Fix typo.
5726
5727 2000-09-13  Martin Buchholz  <martin@xemacs.org>
5728
5729         * window.c (Fnext_window):
5730         next_frame() might return nil, not a frame.
5731         Fixes this crash:
5732         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5733
5734         * frame.c (next_frame_internal):
5735         We've passed a frame if we've passed its device.
5736         Fixes this crash:
5737         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5738 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
5739
5740 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5741
5742         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
5743         Allow option to suppress accelerators in menu/dialog items.
5744         (populate_or_checksum_helper): Pass dialog title through above.
5745
5746 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
5747
5748         * event-msw.c (mswindows_key_to_emacs_keysym):
5749         Add "pause" key, fix "menu" key.
5750
5751 2000-09-09  Martin Buchholz  <martin@xemacs.org>
5752
5753         * eval.c (reinit_vars_of_eval):
5754         Increase max_lisp_eval_depth to 1000,
5755         required for thai-xtis.el to byte-compile under some circumstances.
5756
5757 2000-09-04  Martin Buchholz  <martin@xemacs.org>
5758
5759         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
5760         From Kenichi Handa.
5761
5762 2000-09-01  Martin Buchholz  <martin@xemacs.org>
5763
5764         * make-src-depend: Make the generated Makefiles smaller.
5765
5766         * s/hpux.h (SETUP_SLAVE_PTY):
5767         Provide a %d in the format string for the errno argument.
5768
5769         * editfns.c (Ftemp_directory):
5770         Warning fix.
5771         Avoid buffer overrun on very long file name.
5772
5773         * input-method-xlib.c (XIM_init_device):
5774         6th parameter of XRegisterIMInstantiateCallback has different
5775         pointer types on different OSes, so simply cast to (void *).
5776
5777         * unexhp9k800.c: Warning fixes.  Fiddly changes.
5778
5779         * sysdll.c (dll_open):
5780         shl_load will hang hard if passed a NULL filename.
5781         Simply return NULL for compatibility with dlopen.
5782         * sysdll.c: Conform to XEmacs coding standards.
5783
5784         * sysdep.c (get_pty_max_bytes):
5785         Support pty input lines longer than 512 bytes on HP-UX 10.20.
5786
5787 2000-08-31  Martin Buchholz  <martin@xemacs.org>
5788
5789         * tooltalk.c: Add #include <syssignal.h>
5790
5791 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
5792
5793         * s/hpux.h: Don't use undefined function sigunblock().
5794
5795 2000-08-31  Martin Buchholz  <martin@xemacs.org>
5796
5797         * config.h.in: Add HAVE_BALLOON_HELP.
5798         * emacs.c: Use HAVE_BALLOON_HELP.
5799         * Makefile.in.in (x_objs):
5800         Make Balloon Help conditional on finding shape.h.
5801
5802 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
5803
5804         * syntax.c (regex_emacs_buffer_p): New variable.
5805         * syntax.h (regex_emacs_buffer_p): extern.
5806         * search.c (looking_at_1):
5807         (string_match_1):
5808         (fast_string_match):
5809         (search_buffer): Set regex_emacs_buffer_p.
5810         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
5811         when before_dot, at_dot, after_dot.
5812
5813 2000-08-23  Andy Piper  <andy@xemacs.org>
5814
5815         * gui-x.c (popup_selection_callback): Only set action_occurred
5816         when we really have an image instance.
5817         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
5818
5819 2000-08-23  Andy Piper  <andy@xemacs.org>
5820
5821         * gui-msw.c (mswindows_handle_gui_wm_command): set
5822         action_occurred.
5823         * gui-x.c (popup_selection_callback): ditto.
5824
5825         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
5826         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
5827         (struct Lisp_Image_Instance): add action_occurred flag.
5828
5829         * glyphs.c (redisplay_subwindow): use action_occurred flag.
5830         (image_instance_changed): ditto.
5831         (reset_frame_subwindow_instance_cache): only unmap windows - do
5832         not remove them from the cache also.
5833
5834         * glyphs-widget.c (tab_control_update): better debug.
5835         (progress_gauge_update): ditto.
5836         (layout_update): ditto.
5837         (layout_instantiate): ditto.
5838         (tab_control_order_only_changed): cope with null pending items.
5839
5840         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
5841         debug. Force selection of an item when an action occurred. Cope
5842         with null pending_items.
5843         (mswindows_progress_gauge_redisplay): better debug.
5844         * glyphs-x.c (x_tab_control_redisplay): ditto.
5845
5846         * redisplay.c (redisplay_frame): reset the frame cache if the
5847         frame is garbaged.
5848
5849         * window.c (Fset_window_configuration): potentially re-enable
5850         frame cache reset.
5851         (window_unmap_subwindows): need to finalize instances here since
5852         it is only used in mark_window_as_deleted.
5853
5854 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
5855
5856         * nas.c (SndOpenDataForReading):
5857         nas.c (WaveOpenDataForReading):
5858         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
5859         Somehow escaped from the 2000-08-14 patch.
5860
5861 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5862
5863         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
5864         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
5865
5866 2000-08-21  Andy Piper  <andy@xemacs.org>
5867
5868         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
5869         window if it is not already displayed.
5870
5871         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
5872         it is not already displayed.
5873
5874         * window.c (Fset_window_configuration): don't reset the frame
5875         cache.
5876
5877         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
5878         instances from the frame cache if we are actually finalizing them.
5879         (reset_frame_subwindow_instance_cache): reset frame cache only
5880         after unmapping everything.
5881         (map_subwindow): set displayed flag after mapping.
5882
5883 2000-08-21  Martin Buchholz  <martin@xemacs.org>
5884
5885         * data.c (indirect_function):
5886         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
5887
5888         * eval.c (function_argcount):
5889         Use original function when signaling errors.
5890
5891 2000-08-18  Andy Piper  <andy@xemacs.org>
5892
5893         * frame.c (delete_frame_internal): use new
5894         free_frame_subwindow_instances name.
5895
5896         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
5897         (add_tab_item): make return type correct.
5898         (mswindows_tab_control_instantiate): assert index of tab.
5899         (mswindows_tab_control_redisplay): Re-code to use
5900         gui_item_equal_sans_selected and gui_item_list_find_selected.
5901
5902         * glyphs-widget.c (tab_control_update): Correct comment.
5903
5904         * window.c (window_unmap_subwindows): use new
5905         unmap_subwindow_instance_cache_mapper.
5906         (window_unmap_subwindows_cache_mapper): deleted.
5907         (Fset_window_configuration): comparisons should now be with
5908         EQ. Preserve the subwindow instance cache across configuration
5909         changes.
5910         (allocate_window): ditto.
5911         (make_dummy_parent): ditto.
5912
5913         * glyphs.c (free_frame_subwindow_instances): rename from
5914         free_frame_subwindow_instance_cache. finalize all instances rather
5915         than just those in the display cache.
5916         (finalize_all_subwindow_instances): walk windows unmapping and
5917         finalizing subwindows.
5918         (unmap_subwindow_instance_cache_mapper): moved from
5919         window.c. Allow finalization as well as unmapping.
5920
5921         * gui.c (gui_item_list_find_selected): new function.
5922
5923         * gui.h (gui_item_list_find_selected): declare.
5924
5925         * glyphs-x.c (x_tab_control_redisplay): pick tab
5926         explicitly. Re-code to use gui_item_equal_sans_selected and
5927         gui_item_list_find_selected.
5928
5929         * glyphs-x.h: add lwlib-utils.h
5930
5931         * buffer.c (Frecord_buffer): undo previous change.
5932
5933 2000-08-09  Vin Shelton  <acs@xemacs.org>
5934
5935         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
5936         possible.  Create temporary files more securely.  The patch was
5937         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
5938         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
5939         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
5940         for details.
5941
5942 2000-08-07  Ben Wing  <ben@xemacs.org>
5943
5944         * getloadavg.c: remove duplicate (and windows-breaking)
5945         includes of fcntl.h and sys/file.h.
5946
5947         * nt.c: remove duplicate getloadavg() definition.
5948
5949         * sysdll.h (Qdll_filename_encoding): add missing stand-in
5950         encodings.
5951
5952 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
5953
5954         * eval.c (function_argcount): If function needs to be autoloaded
5955         actually use the loaded definition.
5956         GCPRO function.
5957
5958 2000-08-05  Ben Wing  <ben@xemacs.org>
5959
5960         * getloadavg.c: add prototype for getloadavg().  remove
5961         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
5962         of the code).  remove duplicate header includes.
5963
5964         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
5965
5966         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
5967         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
5968         useful load average.
5969
5970         * alloc.c (reinit_alloc_once_early): removed references to
5971         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
5972         the lisp vars are the only things referencing the malloc_sbrk_*
5973         vars, and they were already if 0'd out.  these vars only exist
5974         in the older malloc.c, which is basically unused, and they're
5975         only for informational purposes.
5976
5977         * m\*.h: removed useless VIRT_ADDR_VARIES.
5978
5979         * m\powerpc.h: removed stray NO_ARG_ARRAY.
5980
5981 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
5982
5983         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
5984         color if the image is a mono pixmap.
5985
5986 2000-07-30  Ben Wing  <ben@xemacs.org>
5987
5988         * Makefile.in.in (release):
5989         Remove stray @.
5990
5991         * buffer.c (directory_is_current_directory):
5992         * dired-msw.c (mswindows_get_files):
5993         * dired.c:
5994         * dired.c (Fdirectory_files):
5995         * dired.c (file_name_completion_stat):
5996         * dired.c (Ffile_attributes):
5997         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
5998         preprocessor tricks, to avoid problems on some machines
5999         (e.g. SCO).
6000
6001         * callproc.c (egetenv): GC docs.
6002
6003         * console-msw.h:
6004         * console-msw.h (struct mswindows_dialog_id):
6005         * lrecord.h (lrecord_type):
6006         New object for use with MSW dialogs.
6007
6008         * console.h (struct console_methods):
6009         New enable/disable frame methods, for proper modal dialogs.
6010
6011         * device-msw.c (msprinter_default_printer): Fix to follow
6012         proper Mule conventions.
6013
6014         * device-msw.c:
6015         * device-msw.c (signal_open_printer_error):
6016         * device-msw.c (msprinter_init_device):
6017         * device-msw.c (ensure_not_printing):
6018         * device-msw.c (plist_get_margin):
6019         * device-msw.c (Fmsprinter_select_settings):
6020         * device-msw.c (finalize_devmode):
6021         * device-msw.c (Fmsprinter_settings_despecialize):
6022         * device-msw.c (signal_enum_priner_error):
6023         * extents.c (decode_extent):
6024         * extents.c (decode_map_extents_flags):
6025         * extents.c (decode_extent_at_flag):
6026         * extents.c (Fextent_at):
6027         * extents.c (Fextents_at):
6028         * extents.c (symbol_to_glyph_layout):
6029         [[[[2]]]] Use structured errors.
6030
6031         * dialog-msw.c:
6032         * dialog-msw.c (mswindows_is_dialog_msg):
6033         * dialog-msw.c (mark_mswindows_dialog_id):
6034         * dialog-msw.c (dialog_proc):
6035         * dialog-msw.c (handle_question_dialog_box):
6036         * dialog-msw.c (syms_of_dialog_mswindows):
6037         Define new object to clean up marking; use it as a dialog identifier.
6038         Call new delete-dialog-box-hook.
6039
6040         * dialog-x.c (dbox_selection_callback):
6041         * dialog-x.c (dbox_descriptor_to_widget_value):
6042         * dialog-x.c (x_make_dialog_box_internal):
6043         Call new delete-dialog-box-hook.
6044         Return an id.
6045
6046         * dialog.c:
6047         * dialog.c (syms_of_dialog):
6048         * dialog.c (vars_of_dialog):
6049         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6050
6051         * eval.c:
6052         * eval.c (signal_call_debugger):
6053         when noninteractive, output stack traces on the console instead
6054         of in a (never-seen) buffer.
6055
6056         * eval.c (signal_type_error):
6057         * eval.c (invalid_argument_2):
6058         * lisp.h:
6059         new funs for use w/structured errors.
6060
6061         * event-Xt.c:
6062         * event-Xt.c (x_to_emacs_keysym):
6063         * event-Xt.c (describe_event):
6064         * event-Xt.c (emacs_Xt_event_handler):
6065         * event-Xt.c (vars_of_event_Xt):
6066         * event-msw.c:
6067         * event-msw.c (mswindows_wnd_proc):
6068         * event-msw.c (vars_of_event_mswindows):
6069         rename {x,mswindows}-debug-events to debug-{}-events for
6070         consistency with other debug-foo variables.
6071
6072         * event-stream.c:
6073         document next-event more clearly.
6074
6075         * fileio.c (Ffile_name_directory):
6076         * fileio.c (Ffile_name_nondirectory):
6077         * fileio.c (Funhandled_file_name_directory):
6078         * fileio.c (file_name_as_directory):
6079         * fileio.c (Ffile_name_as_directory):
6080         * fileio.c (directory_file_name):
6081         * fileio.c (Fdirectory_file_name):
6082         * fileio.c (Fmake_temp_name):
6083         * fileio.c (Ffile_truename):
6084         * fileio.c (Fsubstitute_in_file_name):
6085         * fileio.c (expand_and_dir_to_file):
6086         * fileio.c (barf_or_query_if_file_exists):
6087         * fileio.c (check_executable):
6088         * fileio.c (Ffile_exists_p):
6089         * fileio.c (Ffile_writable_p):
6090         * fileio.c (Ffile_directory_p):
6091         * fileio.c (Ffile_regular_p):
6092         * fileio.c (Ffile_modes):
6093         * fileio.c (Ffile_newer_than_file_p):
6094         * fileio.c (Fverify_visited_file_modtime):
6095         * fileio.c (Fset_visited_file_modtime):
6096         * fileio.c (auto_save_1):
6097         (1). (2).
6098         fix up gcpro's.
6099
6100         * frame-msw.c:
6101         * frame-msw.c (mswindows_init_frame_1):
6102         * frame-msw.c (mswindows_enable_frame):
6103         * frame-msw.c (error_frame_unsizable):
6104         * frame-msw.c (msprinter_init_frame_1):
6105         * frame-msw.c (msprinter_init_frame_3):
6106         * frame-msw.c (console_type_create_frame_mswindows):
6107         (2).
6108         implement new enable/disable frame methods.
6109
6110         * frame-x.c:
6111         * frame-x.c (x_enable_frame):
6112         * frame-x.c (console_type_create_frame_x):
6113         implement new enable/disable frame methods.
6114
6115         * frame.c:
6116         * frame.c (Fdisable_frame):
6117         * frame.c (syms_of_frame):
6118         * frame.h (struct frame):
6119         implement new enable/disable frame methods/functions.
6120
6121         * general-slots.h:
6122         add initial-focus.
6123
6124         * glyphs-msw.c (mswindows_widget_instantiate):
6125         comment that initial-focus should be implemented.
6126
6127         * glyphs-widget.c:
6128         * glyphs-widget.c (check_valid_instantiator):
6129         * glyphs-widget.c (check_valid_orientation):
6130         * glyphs-widget.c (check_valid_tab_orientation):
6131         * glyphs-widget.c (check_valid_justification):
6132         * glyphs-widget.c (check_valid_border):
6133         * glyphs-widget.c (check_valid_callback):
6134         * glyphs-widget.c (check_valid_int_or_function):
6135         * glyphs-widget.c (check_valid_string_or_vector):
6136         * glyphs-widget.c (check_valid_item_list_1):
6137         * glyphs-widget.c (widget_validate):
6138         * glyphs-widget.c (combo_box_validate):
6139         * glyphs-widget.c (widget_instantiate):
6140         * glyphs-widget.c (syms_of_glyphs_widget):
6141         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6142         * glyphs-widget.c (image_instantiator_combo_box):
6143         * glyphs-widget.c (image_instantiator_scrollbar):
6144         * glyphs-widget.c (image_instantiator_tab_control):
6145         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6146         (2).
6147         support (unimplemented) keyword initial-focus.
6148         reindent long macros.
6149
6150         * glyphs-x.c (x_redisplay_widget):
6151         * glyphs-x.c (x_button_instantiate):
6152         * glyphs-x.c (x_button_redisplay):
6153         * glyphs-x.c (x_progress_gauge_instantiate):
6154         * glyphs-x.c (x_edit_field_instantiate):
6155         * glyphs-x.c (x_combo_box_instantiate):
6156         * glyphs-x.c (x_tab_control_instantiate):
6157         * glyphs-x.c (x_label_instantiate):
6158         * gui-x.c:
6159         * gui-x.c (button_item_to_widget_value):
6160         * gui-x.c (gui_items_to_widget_values_1):
6161         * gui-x.c (gui_item_children_to_widget_values):
6162         * gui-x.c (gui_items_to_widget_values):
6163         * gui-x.h:
6164         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6165         add new flag to gui-parsing routines to indicate whether
6166         accelerator specs should be supported.
6167
6168         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6169
6170         * glyphs.h (struct Lisp_Image_Instance):
6171         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6172         add initial-focus flag.
6173
6174         * gui.c:
6175         * gui.c (syms_of_gui):
6176         * gui.c (vars_of_gui):
6177         clean up menu-no-selection-hook.
6178
6179         * gui.h:
6180         support delete-dialog-box-hook.
6181
6182         * lread.c (Fload_internal):
6183         * lread.c (locate_file_in_directory_mapper):
6184         (1).
6185
6186         * lrecord.h:
6187         * lrecord.h (struct toolbar_button):
6188         * lrecord.h (syms_of_toolbar):
6189         document how to create a new object.
6190
6191         * menubar-msw.c (mswindows_char_is_accelerator):
6192         may be called on frames w/o menus.
6193
6194         * menubar.c (vars_of_menubar):
6195         clean up :filter docs.
6196
6197         * nt.c (readdir):
6198         * ntproc.c:
6199         (1).
6200
6201         * process-nt.c:
6202         * process-nt.c (validate_signal_number):
6203         * process-nt.c (signal_cannot_launch):
6204         * process-nt.c (nt_create_process):
6205         * process-nt.c (nt_send_process):
6206         * process-nt.c (nt_kill_child_process):
6207         * process-nt.c (nt_open_network_stream):
6208         * process-nt.c (syms_of_process_nt):
6209         (2).
6210         delete quote-handling.  call new lisp code that does it better.
6211
6212         * process-unix.c (connect_to_file_descriptor):
6213         * process-unix.c (allocate_pty):
6214         * process-unix.c (unix_send_process):
6215         * process-unix.c (unix_kill_child_process):
6216         * process-unix.c (unix_open_network_stream):
6217         * process-unix.c (unix_open_multicast_group):
6218         (1). (2).
6219
6220         * process.c:
6221         * process.c (Fstart_process_internal):
6222         (2).  need to canonicalize process path even if absolute.
6223
6224         * select-msw.c (symbol_to_ms_cf):
6225         * select-msw.c (ms_cf_to_symbol):
6226         * select-msw.c (cf_is_autofreed):
6227         * select-msw.c (mswindows_destroy_selection):
6228         * select.c:
6229         * select.c (syms_of_select):
6230         * select.h:
6231         support dibv5, fix bugs. (from Mike Alexander)
6232
6233         * select.c (Fget_selection_internal):
6234         * select.c (select_convert_out):
6235
6236         * sysdep.c:
6237         * sysdep.c (xemacs_stat):
6238         renamed.
6239
6240         * sysdep.c (mkdir):
6241         * sysdep.c (rmdir):
6242         but keep original stat() here because we provide encapsulation
6243         around these funs.
6244
6245         * sysfile.h:
6246         * sysfile.h (fstat):
6247         remove stat garbage.
6248
6249         * syswindows.h:
6250         fix X/MSW conflict.
6251         don't include tchar.h.  it's inappropriate because it makes
6252         compile-time distinctions when we want runtime distinctions.
6253         (we provide our own tchar replacements)
6254
6255         * toolbar.c:
6256         use default object printer for toolbar-button.
6257
6258         * unexcw.c:
6259         make sure we don't encapsulate.
6260
6261         * window.c (vars_of_window):
6262         emphasize that temp-buffer-show-hook is obsolete.
6263
6264 2000-08-05  Martin Buchholz  <martin@xemacs.org>
6265
6266         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6267         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6268
6269         * events.c (Fevent_timestamp_lessp):
6270         Not 64-bit clean.  Use EMACS_INT, not int.
6271
6272 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
6273
6274         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6275         unsigned int and changed the last enum to
6276         lrecord_type_last_built_in_type.
6277         (lrecord_implementations_table): changed prototype to know how
6278         long the array is supposed to be.
6279         (lrecord_type_count): new unsigned int to keep track of the
6280         current number of lisp lrecord types.
6281         (DEFINE_EXTERNAL_LRECORD):
6282         (DECLARE_EXTERNAL_LRECORD): Added these two for external
6283         dynamic-modules to declare new lisp types. They are the same
6284         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6285         int for each new type, and increment lrecord_type_count by 1.
6286
6287         * alloc.c (lrecord_implementations_table): Changed to reference
6288         lrecord_type_last_built_in_type for the size of the array.
6289         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6290
6291 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
6292
6293         * glyphs.h (check_valid_item_list): Renamed from
6294         check_valid_item_list_1.
6295
6296 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6297
6298         * select.c (Qselect_coerce): New.
6299         * select.c (Vselection_coercion_alist): New.
6300         * select.c (syms_of_select): Declare.
6301         * select.c (get-selection-internal): Use it.
6302         Use the new select-coerce functionality.
6303
6304         * select.c (select_coerce): New.
6305         * select.h (select_coerce): Declare.
6306         New function to coerce one type of data into another.
6307
6308 2000-08-03  Martin Buchholz  <martin@xemacs.org>
6309
6310         * callproc.c (Fcall_process_internal):
6311         (Fcall_process_internal):
6312         * process-unix.c (unix_create_process):
6313         Save and restore the value of errno, so that error messages are accurate.
6314
6315 2000-08-01  Martin Buchholz  <martin@xemacs.org>
6316
6317         * elhash.c (print_hash_table):
6318         Fix printing of hash tables to also use `key-and-value' instead of `t'.
6319         Prettify docstrings and indentation.
6320
6321 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
6322
6323         * window.c (Fwindow_pixel_edges): Subtract frame border and
6324         gutter size.
6325
6326 2000-07-31  Andy Piper  <andy@xemacs.org>
6327
6328         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6329         will acknowledge the change.
6330
6331         * glyphs.h: declare tab_control_order_only_changed.
6332
6333         * glyphs-x.c (x_tab_control_redisplay): use
6334         tab_control_order_only_changed.
6335
6336         * glyphs-widget.c (tab_control_order_only_changed): new function.
6337
6338         * glyphs-msw.c (mswindows_tab_control_redisplay): use
6339         tab_control_order_only_changed.
6340
6341         * gui.c (gui_item_equal_sans_selected): new function.
6342         (gui_item_equal): use it.
6343
6344         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6345         :properties in favor of :items..
6346
6347         * glyphs-widget.c (check_valid_item_list): rename from
6348         check_valid_item_list_1.
6349         (check_valid_item_list_1): renamed.
6350         (combo_box_validate): deprecate :properties in favor of :items.
6351         (widget_instantiate): ditto.
6352         (tab_control_update): ditto.
6353         (image_instantiator_combo_box): ditto.
6354         (image_instantiator_tree_view): ditto.
6355         (image_instantiator_tab_control): ditto.
6356         (layout_post_instantiate): remove dead code.
6357
6358         * print.c (debug_print_no_newline): only write to debugger if in
6359         WIN32_NATIVE.
6360
6361         * elhash.c (Fmake_hash_table): update doc string.
6362
6363         * event-msw.c (mswindows_wnd_proc): don't allow processing of
6364         messages whilst in GC. This at least stops XEmacs crashing but has
6365         the potential for wierd behaviour.
6366
6367 2000-07-31  Martin Buchholz  <martin@xemacs.org>
6368
6369         * config.h.in:
6370         Make existence of s&m files optional.
6371
6372         * s/bsd386.h: Remove HAVE_GETLOADAVG.
6373         * s/freebsd.h: Remove HAVE_GETLOADAVG.
6374         * s/gnu.h: Remove HAVE_GETLOADAVG.
6375         * s/netbsd.h: Remove HAVE_GETLOADAVG.
6376         * s/sol2.h: Remove HAVE_GETLOADAVG.
6377         * lisp.h: Remove getloadavg() declaration.
6378         * fns.c:
6379         Include <sys/loadavg.h> if available.
6380         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6381         * config.h.in:  Group together getloadavg()-related macros.
6382         Use only configure-time tests to detect getloadavg().
6383
6384 2000-07-30  Martin Buchholz  <martin@xemacs.org>
6385
6386         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6387
6388 2000-07-25  Andy Piper  <andy@xemacs.org>
6389
6390         * syswindows.h: add tchar.h for native builds.
6391
6392         * frame.c (syms_of_frame): remove set-glyph-image.
6393
6394         * general-slots.h: add Qset_glyph_image.
6395
6396         * glyphs-widget.c (layout_update): add domain arg to
6397         set-glyph-image.
6398         (syms_of_glyphs_widget): remove set-glyph-image.
6399
6400 2000-07-23  Ben Wing  <ben@xemacs.org>
6401
6402         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6403         Vpopup_frame_list.
6404
6405 2000-07-22  Andy Piper  <andy@xemacs.org>
6406
6407         * symsinit.h: add syms_of_win32().
6408
6409         * gui-msw.c (syms_of_gui_mswindows): remove
6410         Fmswindows_shell_execute.
6411         (Fmswindows_shell_execute): moved to win32.c.
6412
6413         * emacs.c (main_1): add syms_of_win32 ().
6414
6415         * win32.c (init_potentially_nonexistent_functions): rewrite in
6416         compiler-friendly terms.
6417         (Fmswindows_shell_execute): move here from gui-msw.c.
6418         (syms_of_win32): new.
6419
6420         * device-msw.c (Fmswindows_printer_list): clean up args to
6421         EnumPrinters.
6422         Don't include tchar under cygwin or mingw.
6423         (msprinter_default_printer): make cygwin-friendly.
6424
6425 2000-07-21  Andy Piper  <andy@xemacs.org>
6426
6427         * glyphs-widget.c (image_instantiator_tree_view): use tab
6428         control's update function.
6429         (layout_property): new function. Retrieve items.
6430
6431         * glyphs-msw.c (mswindows_tree_view_redisplay): new
6432         function. Re-populate the tree view from the pending items.
6433
6434         * glyphs.c (instantiate_image_instantiator): Make sure the domain
6435         is designated the parent if the domain is an image instance. This
6436         is needed so that dirtiness can be cascade up the hierarchy and
6437         thus for layout children to be redisplayed correctly.
6438         (allocate_image_instance): rename glyph -> parent.
6439
6440         * redisplay.h: change redisplay_output_layout signature.
6441
6442         * redisplay-msw.c (mswindows_output_display_block): use domain
6443         arg.
6444
6445         * redisplay-x.c (x_output_display_block): use domain arg.
6446
6447 2000-07-10  Andy Piper  <andy@xemacs.org>
6448
6449         * window.c (Fset_window_configuration): add comment.
6450
6451         * redisplay-output.c (compare_runes):
6452         (redisplay_output_subwindow): redisplay rather than update subwindow.
6453         (redisplay_output_layout): ditto.
6454
6455         * redisplay-msw.c (mswindows_frame_output_end):
6456         (mswindows_frame_output_end): make defer window pos optional.
6457
6458         * lisp.h: add Flast.
6459
6460         * glyphs.h (struct image_instantiator_methods): add dest_mask top
6461         normalize method. Change update method to be for changed
6462         instantiators. Add redisplay method. Change signature of layout
6463         method.
6464         (struct Lisp_Image_Instance): add instantiator.
6465         (IMAGE_INSTANCE_INSTANTIATOR): new.
6466         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6467         (XIMAGE_INSTANCE_INSTANTIATOR): new.
6468         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6469
6470         * glyphs.c:
6471         (find_instantiator_differences): new function.
6472         (Fset_instantiator_property): new convenience function.
6473         (check_image_instance_structure): strictly check for vector
6474         instantiators.
6475         (normalize_image_instantiator): make non-static.
6476         (instantiate_image_instantiator): pass on dest_mask and use new
6477         signatures for image_instance_layout and friends.
6478         (mark_image_instance): mark the instantiator. Mark the subwindow
6479         face not the widget face.
6480         (image_instance_equal): add instantiator.
6481         (image_instance_hash): ditto.
6482         (allocate_image_instance): ditto.
6483         (Fset_image_instance_property): removed.
6484         (Fimage_instance_file_name): ditto.
6485         (Fcolorize_image_instance): ditto.
6486         (image_instance_layout): add offsets to be set.
6487         (update_image_instance): new function. update an image instance
6488         from its changed instantiator.
6489         (inherit_normalize): add dest_mask.
6490         (xbm_normalize): ditto.
6491         (xface_normalize): ditto.
6492         (xpm_normalize): ditto.
6493         (text_update): set_property -> update.
6494         (image_instantiate): use the glyph identity as a hash key, not the
6495         instantiator.
6496         (glyph_width): use new image_instance_layout signature.
6497         (glyph_ascent): ditto.
6498         (glyph_descent): ditto.
6499         (glyph_height): ditto.
6500         (glyph_query_geometry): ressurrect.
6501         (glyph_layout): ditto.
6502         (redisplay_subwindow): update -> redisplay.
6503         (syms_of_glyphs): add Fset_instantiator_property.
6504         (image_instantiator_format_create): set_property -> update.
6505
6506         * glyphs-x.c:
6507         (autodetect_normalize): add dest_maks to signature.
6508         (x_redisplay_subwindow): update -> redisplay.
6509         (x_redisplay_widget): ditto.
6510         (x_button_redisplay): ditto.
6511         (x_progress_gauge_redisplay): ditto.
6512         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6513         stacking order.
6514         (console_type_create_glyphs_x): update -> redisplay.
6515         (image_instantiator_format_create_glyphs_x): ditto.
6516
6517         * glyphs-widget.c:
6518         (check_valid_instantiator): disallow glyphs in the instantiator,
6519         they must now be vectors.
6520         (check_valid_instantiator_list): ditto.
6521         (glyph_instantiator_to_glyph): use internal symbol rather than
6522         intern.
6523         (widget_update): renamed from widget_set_property. Call cascaded
6524         update methods.
6525         (redisplay_widget): renamed from update_widget.
6526         (widget_layout): image_instance_layout now takes position as well
6527         as size.
6528         (widget_normalize): ditto.
6529         (widget_instantiate): ditto.
6530         (tab_control_query_geometry) ditto.:
6531         (tab_control_update): renamed from tab_control_set_property.
6532         (progress_gauge_update): set_property -> update.
6533         (layout_normalize): rewrite so that child instantiators are
6534         normalized also.
6535         (layout_update): new function. Create glyphs from the normalized
6536         children and cope with any other layout keywords. We do not
6537         instantiate children here that will be take care of by
6538         redisplay_output_layout.
6539         (layout_instantiate): call layout_update and not much else.
6540         (layout_post_instantiate): not sure whether this is needed
6541         anymore.
6542         (layout_query_geometry): query glyph geometry rather than
6543         image_instance geometry.
6544         (layout_layout): set offsets from pass in parameters. Use glyph
6545         geometry and layout functions rather than image instance ones.
6546         (native_layout_layout): ditto.
6547         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6548         (image_instantiator_widget): set_property -> update.
6549         (image_instantiator_buttons): ditto.
6550         (image_instantiator_progress_guage): ditto.
6551         (image_instantiator_tab_control): ditto.
6552         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6553         (image_instantiator_layout): add update method.
6554
6555         * glyphs-msw.c (bmp_normalize):
6556         (mswindows_resource_normalize): add dest_mask so that it can be
6557         proprogated by layout_normalize.
6558         (begin_defer_window_pos): make optional because it may not be the
6559         right thing to do and it introduces differences with X.
6560         (mswindows_unmap_subwindow): ditto.
6561         (mswindows_map_subwindow): ditto.
6562         (mswindows_redisplay_subwindow): renamed from
6563         mswindows_update_subwindow.
6564         (mswindows_redisplay_widget): ditto.
6565         (mswindows_button_redisplay): renamed from
6566         mswindows_button_update. Update is now what the instantiation
6567         function does for a changed instantiator.
6568         (mswindows_progress_gauge_instantiate): set the progress value
6569         here if appropriate.
6570         (mswindows_tab_control_redisplay): cope with re-ordering of the
6571         members of the tab widget by simply selecting the new top
6572         widget. This makes things appear ok if you click on a tab.
6573         (mswindows_combo_box_instantiate): image_instance_layout now takes
6574         position as well as size.
6575         (mswindows_progress_gauge_redisplay): renamed from
6576         mswindows_progress_gauge_update.
6577         (console_type_create_glyphs_mswindows): fix update -> redisplay.
6578         (image_instantiator_format_create_glyphs_mswindows): ditto.
6579
6580         * glyphs-eimage.c (jpeg_normalize):
6581         (gif_normalize):
6582         (png_normalize):
6583         (tiff_normalize): add dest_mask so that it can be proprogated by
6584         layout_normalize.
6585
6586         * elhash.c:
6587         (print_hash_table):
6588         (hash_table_weakness_validate):
6589         (decode_hash_table_weakness):
6590         (Fhash_table_weakness):
6591         (Fhash_table_type):
6592         (syms_of_elhash): use Ben's naming scheme for hashtable types..
6593
6594         * console.h (struct console_methods): move update_* to
6595         redisplay_*.
6596
6597 2000-07-20  Ben Wing  <ben@xemacs.org>
6598
6599         * *.[ch] (XSETOBJ): remove unused middle argument.
6600         lisp-disunion.h: correct wrap_object() to one argument.
6601
6602 2000-07-15  Ben Wing  <ben@xemacs.org>
6603
6604         * s/cygwin32.h:
6605         * s/cygwin32.h (CYGWIN_CONV_PATH):
6606         Add missing logb prototype for v1.1.
6607         Use post-b20 names and alias to pre-b20 names when pre-b20.
6608
6609         * s/windowsnt.h: [5].
6610
6611 2000-07-15  Ben Wing  <ben@xemacs.org>
6612
6613         * Makefile.in.in (x_objs):
6614         * Makefile.in.in (sheap_objs):
6615         * Makefile.in.in (objs):
6616         added win32.o, cosmetic cleanups.
6617
6618         * alloc.c (Fmake_byte_code):
6619         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
6620         etc. macros which declare their own args now.
6621
6622         * alloc.c (syms_of_alloc):
6623         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
6624
6625         * buffer.c:
6626         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
6627
6628         * buffer.c (Fget_file_buffer):
6629         Fixed GCPRO problem.
6630
6631         * buffer.c (get_truename_buffer):
6632         Fixed comment about GC checking.
6633
6634         * buffer.c (syms_of_buffer):
6635         Undeclared those dedicated frame funs.
6636         [2].
6637
6638         * buffer.h:
6639         Define convenience macros for internal/external conversions.
6640         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
6641         and Qenvironment_variable_encoding for cleaner code.
6642
6643         * bufslots.h:
6644         Remove dedicated-frame; in lisp.
6645
6646         * bytecode.c (funcall_compiled_function):
6647         [1].
6648
6649         * bytecode.c (syms_of_bytecode):
6650         [2].
6651
6652         * console-msw.c:
6653         * console-msw.c (mswindows_show_console): Rewrote.
6654
6655         * console-msw.c (Fmswindows_debugging_output): New.
6656         Sends to OutputDebugString (special MSWin debugger interface).
6657
6658         * console-msw.c (Fmswindows_message_box):
6659         Fixed stupid bugs so it works when called from kill-emacs.
6660
6661         * console-msw.c (syms_of_console_mswindows):
6662         Declare Fmswindows_debugging_output.
6663
6664         * console-msw.h:
6665         New MSWin prototypes.
6666
6667         * console-msw.h (struct mswindows_frame):
6668         New entry last-click-mods for improved button-modifier support.
6669
6670         * console-msw.h (FRAME_MSWINDOWS_POPUP):
6671         New struct entry `popup' with corresponding accessor.
6672
6673         * console-x.c:
6674         * console-x.c (split_up_display_spec):
6675         * console-x.c (get_display_arg_connection):
6676         * console-x.c (x_semi_canonicalize_console_connection):
6677         * console-x.c (x_canonicalize_device_connection):
6678         [[[6]]]: Change char to more specific type.
6679         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
6680
6681         * console-x.c (x_semi_canonicalize_console_connection):
6682         * console-x.c (x_canonicalize_device_connection):
6683         [[[9]]]: Fix up error signalling to use new structured error system.
6684
6685         * console-x.h:
6686         [[[4]]]: Define codesys aliases:
6687         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
6688         Qx_color_name_encoding, Qx_display_name_encoding.
6689
6690         * console.h (struct console_methods):
6691         New method make_dialog_box_internal supersedes older
6692         popup_dialog_box method.
6693
6694         * data.c:
6695         Define many new errors, part of new structured errors.
6696
6697         * data.c (init_errors_once_early):
6698         * data.c (syms_of_data):
6699         [2].
6700
6701         * device-msw.c (mswindows_init_device):
6702         [[[5]]]: Cleanup to support NT 3.51.
6703
6704         * device-msw.c (decode_devmode): Cleanup.
6705
6706         * device-msw.c (mswindows_handle_print_setup_dialog_box):
6707         * device-msw.c (mswindows_handle_print_dialog_box):
6708         * device-msw.c (mswindows_handle_page_setup_dialog_box):
6709         * device-msw.c (syms_of_device_mswindows):
6710         Delete the dialog box primitives recently introduced by Kirill and
6711         instead interface to general dialog box interface.
6712
6713         * device-x.c:
6714         * device-x.c (compute_x_app_name):
6715         * device-x.c (x_init_device):
6716         * device-x.c (Fx_valid_keysym_name_p):
6717         * device-x.c (Fx_set_font_path):
6718         [6].
6719         [7].
6720
6721         * device.h (wrap_device): New.
6722         First of its kind; meant to replace XSETDEVICE.
6723
6724         * dialog-msw.c: Many file-dialog symbols.
6725
6726         * dialog-msw.c (mswindows_register_popup_frame): New.
6727         * dialog-msw.c (mswindows_is_dialog_msg): New.
6728         For supporting kbd traversal in dialog boxes.
6729
6730         * dialog-msw.c (dialog_proc):
6731         Support hitting ESC in dialogs.
6732
6733         * dialog-msw.c (struct):
6734         Common dialog box errors.
6735
6736         * dialog-msw.c (handle_file_dialog_box): New.
6737         Add file dialog code.
6738
6739         * dialog-msw.c (handle_question_dialog_box):
6740         Redo existing code to support new question dialog syntax.
6741
6742         * dialog-msw.c (console_type_create_dialog_mswindows):
6743         We support new dialog console method.
6744
6745         * dialog-msw.c (syms_of_dialog_mswindows):
6746         * dialog-msw.c (vars_of_dialog_mswindows):
6747         New file dialog symbols, vars.
6748
6749         * dialog-x.c:
6750         * dialog-x.c (maybe_run_dbox_text_callback):
6751         * dialog-x.c (dbox_descriptor_to_widget_value):
6752         * dialog-x.c (x_make_dialog_box_internal):
6753         * dialog-x.c (console_type_create_dialog_x):
6754         Mule-ize entire file.
6755         Redo to support question dialog syntax.
6756         [6].
6757
6758         * dialog.c:
6759         * dialog.c (Fmake_dialog_box_internal):
6760         * dialog.c (syms_of_dialog):
6761         Kill old popup-dialog-box, replace with new primitive.
6762         Just call device method or signal error.
6763
6764         * eldap.c (Fldap_open):
6765         * eldap.c (Fldap_search_basic):
6766         * eldap.c (Fldap_add):
6767         * eldap.c (Fldap_modify):
6768         [1].
6769         [7].
6770
6771         * emacs.c:
6772         * emacs.c (make_arg_list_1):
6773         * emacs.c (make_arg_list):
6774         Mule-ize call to dll_init().
6775         [6].
6776         [8].
6777
6778         * emacs.c (make_argc_argv):
6779         * emacs.c (free_argc_argv):
6780         * emacs.c (init_cmdargs):
6781         * emacs.c (main_1):
6782         * emacs.c (Fkill_emacs):
6783         * emacs.c (Fdump_emacs):
6784         Update comments about what can be used in syms_* etc.
6785         Call init_win32() when necessary.
6786         Fix up MS Win dialog box in kill-buffer to actually work right.
6787         [7].
6788
6789         * eval.c:
6790         * eval.c (For):
6791         * eval.c (Fand):
6792         * eval.c (Fprogn):
6793         * eval.c (Fprog1):
6794         * eval.c (Fprog2):
6795         * eval.c (FletX):
6796         * eval.c (Flet):
6797         * eval.c (condition_case_3):
6798         * eval.c (Feval):
6799         * eval.c (function_argcount):
6800         * eval.c (funcall_lambda):
6801         [1].
6802
6803         * eval.c (type_error): New.
6804         * eval.c (maybe_type_error): New.
6805         * eval.c (continuable_type_error): New.
6806         * eval.c (maybe_continuable_type_error): New.
6807         * eval.c (type_error_with_frob): New.
6808         * eval.c (maybe_type_error_with_frob): New.
6809         * eval.c (continuable_type_error_with_frob): New.
6810         * eval.c (maybe_continuable_type_error_with_frob): New.
6811         New functions for use with structured errors.
6812
6813         * event-Xt.c:
6814         * event-Xt.c (x_event_to_emacs_event):
6815         Buttons are now modifiers too.
6816
6817         * event-Xt.c (emacs_Xt_current_event_timestamp):
6818         Implement new event method.
6819         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
6820
6821         * event-msw.c:
6822         * event-msw.c (ntpipe_shove_writer): [5].
6823         * event-msw.c (mswindows_enqueue_mouse_button_event):
6824         * event-msw.c (mswindows_drain_windows_queue):
6825         * event-msw.c (mswindows_wnd_proc): [7].
6826         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
6827         * event-msw.c (mswindows_modifier_state):
6828         Throughout: support new button modifiers.
6829
6830         * event-msw.c (emacs_mswindows_current_event_timestamp):
6831         Implement new event method.
6832         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
6833
6834         * event-stream.c:
6835         * event-stream.c (event_stream_current_event_timestamp): New.
6836         * event-stream.c (maybe_kbd_translate): New functionality.
6837         * event-stream.c (vars_of_event_stream):
6838         Document new kbd-translate-table functionality.
6839
6840         * event-stream.c (Fcurrent_event_timestamp): New.
6841         New primitive for use in fabricated events.
6842         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
6843
6844         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
6845
6846         * events.c:
6847         * events.c (Fmake_event):
6848         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
6849         [1].
6850         [9].
6851
6852         * events.c (format_event_object): fix gcc warnings.
6853
6854         * events.c (Fevent_timestamp): Document new primitives.
6855
6856         * events.c (TIMESTAMP_HALFSPACE): New.
6857
6858         * events.c (Fevent_timestamp_lessp): New.  New primitive for
6859         comparing timestamps correctly (half-space algorithm).
6860
6861         * events.c (Fevent_modifier_bits): Doc fix.
6862
6863         * events.c (Fevent_modifiers): Major doc addition.
6864         * events.c (event_x_y_pixel_internal): Typo fix.
6865         * events.c (syms_of_events): Declare new primitives.
6866
6867         * events.h:
6868         Update long comment for button modifiers, timestamps.
6869
6870         * events.h (struct event_stream):
6871         New current_event_timestamp method.
6872
6873         * extents.c:
6874         * extents.c (extent_in_region_p):
6875         * extents.c (decode_extent):
6876         * extents.c (Fset_extent_parent):
6877         * extents.c (decode_map_extents_flags):
6878         Fix gcc warnings.
6879         [9].
6880
6881         * extents.c (struct extent_at_arg):
6882         * extents.c (decode_extent_at_flag):
6883         * extents.c (extent_at_mapper):
6884         * extents.c (extent_at_bytind):
6885         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
6886         * extents.c (Fextents_at): New primitive. [9].
6887         * extents.c (symbol_to_glyph_layout): [9].
6888         Support new primitive `extents-at'.
6889
6890
6891         * extents.c (get_text_property_bytind):
6892         extent_at_bytind has another arg.
6893         [9].
6894
6895         * extents.c (syms_of_extents): New primitive.
6896
6897         * file-coding.c (Fmake_coding_system): [1].
6898         * file-coding.c (subsidiary_coding_system): fix gcc warning
6899         * file-coding.c (syms_of_file_coding): [2].
6900
6901         * fileio.c (Fexpand_file_name):
6902         * fileio.c (Fsysnetunam):
6903         * fileio.c (Ffile_exists_p):
6904         * fileio.c (Ffile_executable_p):
6905         * fileio.c (Fverify_visited_file_modtime):
6906         Clean up GCPROing.
6907
6908         * fileio.c (syms_of_fileio): [2].
6909
6910         * filelock.c (lock_file_1):
6911         * filelock.c (current_lock_owner):
6912         * filelock.c (lock_if_free):
6913         * filelock.c (lock_file):
6914         * filelock.c (unlock_file):
6915         Clean up GCPROing.
6916
6917         * fns.c (concat): Fix gcc warning.
6918
6919         * fns.c (Fmember):
6920         * fns.c (Fold_member):
6921         * fns.c (Fmemq):
6922         * fns.c (Fold_memq):
6923         * fns.c (memq_no_quit):
6924         * fns.c (Fassoc):
6925         * fns.c (Fold_assoc):
6926         * fns.c (Fassq):
6927         * fns.c (Fold_assq):
6928         * fns.c (assq_no_quit):
6929         * fns.c (Frassoc):
6930         * fns.c (Fold_rassoc):
6931         * fns.c (Frassq):
6932         * fns.c (Fold_rassq):
6933         * fns.c (rassq_no_quit):
6934         * fns.c (Fdelete):
6935         * fns.c (Fold_delete):
6936         * fns.c (Fdelq):
6937         * fns.c (Fold_delq):
6938         * fns.c (delq_no_quit):
6939         * fns.c (Fremassoc):
6940         * fns.c (Fremassq):
6941         * fns.c (remassq_no_quit):
6942         * fns.c (Fremrassoc):
6943         * fns.c (Fremrassq):
6944         * fns.c (remrassq_no_quit):
6945         * fns.c (Freverse):
6946         * fns.c (mapcar1):
6947         [1].
6948
6949         * frame-msw.c (mswindows_init_frame_1):
6950         * frame-msw.c (mswindows_delete_frame):
6951         Register popups with dialog code so keyboard traversing works.
6952
6953         * frame-tty.c (tty_raise_frame_no_select): [1].
6954
6955         * frame-x.c:
6956         * frame-x.c (x_set_frame_text_value):
6957         * frame-x.c (x_set_frame_properties):
6958         * frame-x.c (x_create_widgets):
6959         [7].
6960
6961         * frame.c:
6962         * frame.c (Fmouse_pixel_position): Minor doc fixes.
6963
6964         * frame.h (wrap_frame): New.
6965         Macro like wrap_device.
6966
6967         * general.c:
6968         * general.c (SYMBOL):
6969         * general.c (syms_of_general):
6970         Major reorg.  This is now just a wrapper and symbols themselves
6971         are listed in general-slots.h.
6972
6973         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
6974         * glyphs-msw.c (mswindows_resource_instantiate): [5].
6975
6976         * glyphs-msw.c (mswindows_native_layout_instantiate):
6977         Add DS_CONTROL so keyboard traversal will work.
6978
6979         * glyphs-widget.c:
6980         * glyphs-widget.c (syms_of_glyphs_widget):
6981         Move some symbols to general-slots.h.
6982
6983         * glyphs-x.c:
6984         * glyphs-x.c (xbm_instantiate_1):
6985         * glyphs-x.c (x_xbm_instantiate):
6986         * glyphs-x.c (x_xface_instantiate):
6987         * glyphs-x.c (autodetect_instantiate):
6988         * glyphs-x.c (cursor_font_instantiate):
6989         * glyphs-x.c (x_update_widget):
6990         * glyphs-x.c (x_widget_instantiate):
6991         * glyphs.c (bitmap_to_lisp_data):
6992         * glyphs.c (pixmap_to_lisp_data):
6993         [7].
6994
6995         * glyphs.c (syms_of_glyphs):
6996         [2].
6997
6998         * gui-x.c:
6999         * gui-x.c (print_widget_value):
7000         * gui-x.c (menu_separator_style_and_to_external):
7001         * gui-x.c (add_accel_and_to_external):
7002         * gui-x.c (button_item_to_widget_value):
7003         * gui-x.c (gui_items_to_widget_values_1):
7004         * gui-x.c (gui_items_to_widget_values):
7005         * gui-x.c (syms_of_gui_x):
7006         * gui-x.c (vars_of_gui_x):
7007         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
7008         [9].
7009
7010         * gui-x.h:
7011         Muleize, prototype changes matching gui-x.c.
7012
7013         * gui.c:
7014         * gui.c (separator_string_p):
7015         * gui.c (gui_item_add_keyval_pair):
7016         * gui.c (make_gui_item_from_keywords_internal):
7017         * gui.c (signal_too_long_error):
7018         * gui.c (parse_gui_item_tree_item):
7019         * gui.c (syms_of_gui):
7020         * gui.c (vars_of_gui):
7021         * gui.h:
7022         menu-no-selection-hook moved here (used by MSWin).
7023         Move some symbols to general-slots.h.
7024         [6].
7025         [9].
7026
7027         * insdel.c (get_buffer_pos_char):
7028         * insdel.c (get_buffer_range_char):
7029         Add GC comments.
7030
7031         * keymap.c (keymap_lookup_directly):
7032         * keymap.c (keymap_store):
7033         * keymap.c (ensure_meta_prefix_char_keymapp):
7034         * keymap.c (describe_map):
7035         * keymap.h:
7036         Support new button modifiers.
7037
7038         * lisp-disunion.h (wrap_object):
7039         * lisp-disunion.h (XSETOBJ):
7040         Rename make_obj to wrap_object.
7041
7042         * lisp-union.h:
7043         * lisp-union.h (make_int):
7044         * lisp-union.h (make_char):
7045         Support wrap_object.
7046
7047         * lisp.h:
7048         * lisp.h (LIST_LOOP):
7049         * lisp.h (EXTERNAL_LIST_LOOP):
7050         * lisp.h (LIST_LOOP_2):
7051         * lisp.h (EXTERNAL_LIST_LOOP_1):
7052         * lisp.h (EXTERNAL_LIST_LOOP_2):
7053         * lisp.h (EXTERNAL_LIST_LOOP_3):
7054         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7055         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7056         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7057         * lisp.h (EXTERNAL_ALIST_LOOP_5):
7058         * lisp.h (EXTERNAL_ALIST_LOOP_6):
7059         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7060         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7061         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7062         * lisp.h (struct Lisp_Symbol):
7063         * lisp.h (maybe_continuable_error_with_frob):
7064         Fix up section comments.
7065         Add new types for char to indicate usage.
7066         Delete symbols auto-generated from general-slots.h.
7067         Add prototypes for structured error functions.
7068         Add long comments describing looping macros and change interface
7069         so that lvalues are automatically declared.
7070         Add NO_DECLARE macro in case callers want to declare lvalues
7071         themselves.
7072
7073         * lread.c (read_syntax_error):
7074         * lread.c (continuable_read_syntax_error):
7075         * lread.c (read_structure):
7076         * lread.c (sequence_reader):
7077         * lread.c (read_list_conser):
7078         * lread.c (read_compiled_function):
7079         Rename syntax_error and continuable_syntax_error to avoid clash
7080         with same-named structured error functions.
7081
7082         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7083         * menubar-msw.c (populate_menu_add_item):
7084         * menubar-msw.c (populate_or_checksum_helper):
7085         [5].
7086         [9].
7087
7088         * menubar-x.c:
7089         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7090         Mule-ize whole file.
7091
7092         * menubar.c (Fnormalize_menu_item_name): Add optimization.
7093
7094         * mule-charset.c (Fmake_charset):
7095         * mule-wnnfns.c (Fwnn_set_param):
7096         [1].
7097
7098         * ntproc.c (create_child):
7099         * ntproc.c (Fwin32_set_current_locale):
7100         Add comments portending doom.
7101
7102         * objects-msw.c:
7103         * objects-msw.c (old_font_enum_callback_2):
7104         * objects-msw.c (font_enum_callback_1):
7105         * objects-msw.c (mswindows_enumerate_fonts):
7106         [5].
7107
7108         * objects-x.c:
7109         * objects-x.c (allocate_nearest_color):
7110         * objects-x.c (x_parse_nearest_color):
7111         * objects-x.c (x_initialize_color_instance):
7112         * objects-x.c (x_print_color_instance):
7113         * objects-x.c (x_finalize_color_instance):
7114         * objects-x.c (x_valid_color_name_p):
7115         * objects-x.c (x_initialize_font_instance):
7116         * objects-x.c (x_print_font_instance):
7117         * objects-x.c (valid_x_font_name_p):
7118         * objects-x.c (truename_via_FONT_prop):
7119         * objects-x.c (truename_via_random_props):
7120         * objects-x.c (truename_via_XListFonts):
7121         * objects-x.c (x_font_truename):
7122         * objects-x.c (x_font_instance_truename):
7123         * objects-x.c (x_font_instance_properties):
7124         * objects-x.c (x_list_fonts):
7125         * objects-x.c (x_find_charset_font):
7126         Mule-ize entire file.
7127         [7].
7128
7129         * objects-x.h:
7130         Mule-verify.
7131
7132         * print.c:
7133         * print.c (std_handle_out_external):
7134         * print.c (debug_print_no_newline):
7135         * print.c (syms_of_print):
7136         Output to all debugger kinds in debug-print.
7137         Fix console-output code under MSWin to actually work.
7138
7139         * process-nt.c (send_signal):
7140         * process-nt.c (nt_create_process):
7141         Use newer Unicode macros.
7142
7143         * process-unix.c (unix_create_process):
7144         * process-unix.c (unix_canonicalize_host_name):
7145         * process-unix.c (unix_open_network_stream):
7146         [7].
7147
7148         * scrollbar-x.c:
7149         Mule-verify.
7150
7151         * search.c (syms_of_search):
7152         [2].
7153
7154         * select-msw.c (mswindows_destroy_selection):
7155         Use LIST_LOOP_2.
7156
7157         * select-x.c (symbol_to_x_atom):
7158         [7].
7159
7160         * select.c (syms_of_select):
7161         [2].
7162
7163         * sound.c (Fplay_sound_file):
7164         [7].
7165
7166         * specifier.c:
7167         * specifier.c (decode_specifier_type):
7168         * specifier.c (Fvalid_specifier_locale_type_p):
7169         * specifier.c (check_valid_locale_or_locale_type):
7170         * specifier.c (decode_locale):
7171         * specifier.c (decode_locale_type):
7172         * specifier.c (decode_locale_list):
7173         * specifier.c (check_valid_domain):
7174         * specifier.c (decode_specifier_tag_set):
7175         * specifier.c (Fcanonicalize_tag_set):
7176         * specifier.c (Fdefine_specifier_tag):
7177         * specifier.c (Fspecifier_tag_predicate):
7178         * specifier.c (check_valid_inst_list):
7179         * specifier.c (check_valid_spec_list):
7180         * specifier.c (decode_how_to_add_specification):
7181         * specifier.c (check_modifiable_specifier):
7182         * specifier.c (specifier_add_spec):
7183         * specifier.c (boolean_validate):
7184         * specifier.c (display_table_validate):
7185         [9].
7186
7187         * specifier.c (syms_of_specifier):
7188         Move some symbols to general-slots.h.
7189         [2].
7190
7191         * symbols.c:
7192         * symbols.c (Fmapatoms):
7193         * symbols.c (Fapropos_internal):
7194         Add GCPROs.
7195
7196         * symbols.c (set_default_buffer_slot_variable):
7197         * symbols.c (set_default_console_slot_variable):
7198         [1].
7199
7200         * symbols.c (defsymbol_massage_name_1):
7201         * symbols.c (defkeyword_massage_name):
7202         * symbols.c (deferror_1):
7203         * symbols.c (deferror):
7204         * symbols.c (deferror_massage_name_and_message):
7205         * symeval.h:
7206         * symeval.h (DEFSYMBOL):
7207         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7208
7209         * symbols.c (syms_of_symbols):
7210         [2].
7211
7212         * symsinit.h:
7213         * symsinit.h (init_win32): New.
7214         Also new is syms_of_dialog_mswindows.
7215
7216         * syswindows.h:
7217         Add new Unicode macros, missing Cygwin wide-char functions,
7218         convenience conversion macros for Qmswindows_tstr, macros for
7219         encapsulating required MSWin <-> Cygwin filename conversions,
7220         prototype for dynamically-extracted (not in NT 3.51) functions.
7221
7222         * toolbar-x.c:
7223         Mule-verify.
7224
7225         * tooltalk.c (Fadd_tooltalk_message_arg):
7226         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7227         * tooltalk.c (Fadd_tooltalk_pattern_arg):
7228         [7].
7229
7230         * tooltalk.c (syms_of_tooltalk):
7231         [2].
7232
7233         * unexnt.c:
7234         * unexnt.c (unexec):
7235         Fix up headers, declaration of unexec() to be more standard.
7236
7237 2000-07-20  Martin Buchholz  <martin@xemacs.org>
7238
7239         * offix.h: Revert change to guard macros - they're used in offix.c!
7240
7241 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7242
7243         * lisp.h: Defsubred Fdelete.
7244
7245         * console-msw.h:  (msprinter_default_printer): Added.
7246
7247         * console-msw.c (msprinter_canonicalize_console_connection):
7248         (msprinter_canonicalize_device_connection): Added.
7249
7250         * device-msw.c (msprinter_default_printer):
7251         (Fmswingows_get_default_printer):
7252         (signal_enum_priner_error):
7253         (Fmswingows_printer_list): Added.
7254
7255 2000-07-19  Martin Buchholz <martin@xemacs.org>
7256
7257         * XEmacs 21.2.35 is released.
7258
7259 2000-07-19  Martin Buchholz  <martin@xemacs.org>
7260
7261         * select-x.c (x_handle_selection_request):
7262         Text selected in xemacs and pasted into xterm failed to appear.
7263         Spelling fixes and cosmetic changes.
7264
7265 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7266
7267         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7268         XEmacs frame (fix for doubling chars in dialog boxes).
7269
7270 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7271
7272         * select.c (select_convert_in, select_convert_out):
7273         Don't call intern() every time.
7274
7275         * select.c (Qselect_convert_in, Qselect_convert_out): New.
7276         * select.c (vars_of_select): Initialise them.
7277
7278 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7279
7280         * select.c (selection-coercible-types): New.
7281
7282         * select.c (own-selection-internal):
7283         * select.c (get-selection-internal):
7284         MULE bug fix - these should default to COMPOUND_TEXT and not
7285         STRING for MULE. I think.
7286
7287         * select.c (select_convert_out): Use selection-coercible-types
7288         to find types that we can attempt to perform coercions on.
7289
7290 2000-07-18  Martin Buchholz  <martin@xemacs.org>
7291
7292         * mule-wnnfns.c:
7293         * mule-canna.c:
7294         Add coding: cookie to identify encoding.
7295
7296         * mule-canna.c (CANNA_mode_keys): make static.
7297         Use proper prototypes, even for functions of no arguments.
7298         Remove external prototype for Fding().
7299
7300         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7301
7302         * select.c (syms_of_select): Add missing DEFSUBR.
7303
7304 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7305
7306         * select.c (get_selection_internal, own_selection_internal):
7307         Make the type default to STRING, rather than placing a nil type
7308         into Vselection_alist.
7309
7310 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7311
7312         * gpmevent.c (tty_selection_exists_p):
7313         * gpmevent.c (tty_own_selection):
7314         Updated parameter lists.
7315
7316 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7317
7318         * select.h (selection-alist): Removed declaration.
7319
7320         * select.h (get_local_selection):
7321         * select.c (get_local_selection):
7322         Made static.
7323
7324         * select.h (convert_selection): Removed declaration.
7325         * select.c (convert_selection): Removed.
7326         This function belongs in Lisp.
7327
7328         * select.h (select_convert_in): Declare.
7329         * select.h (select_convert_out): Declare.
7330         * select.c (select_convert_in): New.
7331         * select.c (select_convert_out): New.
7332         New conversion functions for other files to call.
7333
7334         * select.h (select_notify_buffer_kill): Declare.
7335         * select.c (select_notify_buffer_kill): New.
7336         New functions that get called from kill-buffer.
7337
7338         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7339         X-specific lisp code.
7340
7341         * select.h: Declare some of the lisp-visible functions for
7342         external use.
7343
7344         * select.c (clean_local_selection_data): Removed. This was
7345         a disgusting function, and previously should have been in
7346         select-x.c in any case. The functionality is now provided
7347         in select-convert-from-integer (select.el).
7348
7349         * select.c (available-selection-types): Fixed stupidity where
7350         INTEGER and ATOM got added twice. Also add STRING when we see an
7351         extent.
7352
7353         * select.c (get-selection-internal): Removed symbol stripping. No
7354         longer causes conversion when data comes from the internal cache.
7355
7356         * select.c (syms_of_select): Added new functions.
7357
7358         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7359         error checking - previously this called abort!
7360
7361         * select-x.c (x_own_selection): Changed comment.
7362
7363         * select-x.c (x_handle_selection_request): Use select_convert_out.
7364         Don't mess with selection-alist; it's an internal variable of select.c.
7365
7366         * select-x.c (x_get_foreign_selection): Use select_convert_in.
7367
7368         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7369         rather than messing with selection-alist.
7370
7371         * select-msw.c (mswindows_get_foreign_selection):
7372         Use TO_INTERNAL_FORMAT rather than hacking.
7373
7374 2000-07-14  Martin Buchholz  <martin@xemacs.org>
7375
7376         * process-unix.c (unix_open_multicast_group):
7377         (unix_open_multicast_group): Remove useless casts.
7378
7379 2000-07-13  Martin Buchholz  <martin@xemacs.org>
7380
7381         * sound.c (Fplay_sound): Fix `unused variable' warning.
7382
7383         * emacs.c (main): Use correct type for _environ on SCO5.
7384
7385 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7386
7387         * console.h (own_selection_method):
7388         * console.h (selection_exists_p_method):
7389         * console.h (available_selection_types_method): New.
7390         * console.h (register_selection_data_type_method): New.
7391         * console.h (selection_data_type_name): New.
7392
7393         * console-msw.h (mswindows_destroy_selection): Declare it.  New
7394         function & alist to track GlobalAlloc()'d handles that need
7395         releasing when the clipboard data gets replaced or emptied.
7396
7397         * event-msw.c (mswindows_wnd_proc): Call it.
7398
7399         * lisp.h, general.c (Qappend): New symbol representing a
7400         `how-to-add' mode.
7401
7402         * select.c (own-selection-internal):
7403         * select.c (selection-exists-p):
7404         * select.c (available-selection-types): New.
7405         * select.c (register-selection-data-type): New.
7406         * select.c (selection-data-type-name): New.  New functions to deal
7407         with device-specific selection data formats.
7408         * select.c (selection-converter-out-alist): Renamed.
7409         * select.c (selection-converter-in-alist): New.
7410         * select.c (selection-appender-alist): New.  Added new alists.
7411         * select.c (syms_of_select, vars_of_select): Added new symbols &
7412         variables.
7413         * select.c (get_local_selection): Split.
7414         * select.c: Removed spurious type checking - selections may now be
7415         of any type, not just strings.
7416         * select.c (own-selection-internal):
7417
7418         * select.h, select.c (convert_selection): New. Created
7419         convert_selection() function based on get_local_selection().
7420         * select.h, select.c (QCF_*): New symbols representing mswindows
7421         clipboard formats.
7422         * select.h, select.c (Qreplace_all, Qreplace_existing): New
7423         symbols representing `how-to-add' modes.
7424
7425         * select-msw.c (x_sym_p): New.
7426         * select-msw.c (symbol_to_ms_cf): New.
7427         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7428         symbols & clipboard formats. Can also handle string names.
7429         * select-msw.c (mswindows_own_selection):
7430         * select-msw.c (mswindows_selection_exists_p):
7431         Added `data-type' parameter. Use it.
7432         * select-msw.c (mswindows_available_selection_types): New.
7433         * select-msw.c (mswindows_register_selection_data_type): New.
7434         * select-msw.c (mswindows_selection_data_type_name): New.
7435         * select-msw.c (mswindows_own_selection):
7436         * select-msw.c (mswindows_get_foreign_selection):
7437         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
7438         * select-msw.c (console_create_select_mswindows): Added new methods.
7439         * select-msw.c (mswindows_destroy_selection): New.
7440         * select-msw.c (Vhandle_alist): New list.
7441         * select-msw.c (mswindows_own_selection):
7442
7443         * select-x.c (x_own_selection):
7444         * select-x.c (x_selection_exists_p):
7445         * select-x.c: Added some comments about maybe using new
7446         functionality.
7447         * select-x.c (x_own_selection):
7448
7449         * specifier.c: Remove definition of Qappend (now in general.c)
7450         * specifier.c (syms_of_specifier): Remove Qappend.
7451
7452 2000-07-12  Martin Buchholz  <martin@xemacs.org>
7453
7454         * config.h.in: Add socklen_t.
7455
7456         * s/decosf4-0.h: No special compiler flags needed or desired.
7457         In particular, undefine _BSD for DEC OSF 4.0.
7458
7459 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7460
7461         * redisplay-msw.c (msprinter_frame_output_end): Added.
7462         (console_type_create_redisplay_mswindows): Referred the above.
7463
7464         * frame.c (setup_frame_without_minibuffer): Do not create a
7465         default minibuffer frame on a printer device.
7466
7467         * frame-msw.c (apply_dc_geometry): Added.
7468         (msprinter_start_page):
7469         (msprinter_init_frame_3):
7470         (msprinter_eject_page): Use it.
7471
7472         * console-msw.h (struct msprinter_frame): Added pix_left and top,
7473         and removed residual duplex and orientation properties.
7474
7475 2000-07-11  Martin Buchholz  <martin@xemacs.org>
7476
7477         * eval.c (function_argcount): Work around a DEC CC compiler bug.
7478
7479         * unexalpha.c: Remove system prototypes from C sources!
7480
7481 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
7482
7483         * eval.c: Remove references to M-x edit-options in DEFUNs for
7484         `defvar' and `defconst'.
7485
7486 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7487
7488         * config.h.in: Remove SMART_INCLUDE hackery.
7489
7490         PostgreSQL hacking:
7491         * config.h.in: Don't use SMART_INCLUDE.
7492
7493         * postgresql.h: Include libpq-fe.h here.  Fix typo.
7494         * inline.c: Simply #include "postgresql.h"
7495         * postgresql.c:
7496         - Don't use SMART_INCLUDE
7497         - Use simply "const".
7498         - Use standard doc string conventions.
7499         - Use correct type for result of PQstatus.
7500
7501 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7502
7503         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7504
7505         C++ compilation changes.
7506         * config.h.in (EXTERN_C): Define.
7507         * config.h.in (not): This is also a C++ keyword.
7508         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7509         * cm.c: Use EXTERN_C.
7510         * redisplay-tty.c: Use EXTERN_C.
7511         * sysdep.c: Use EXTERN_C.  Remove Gould support.
7512
7513 2000-07-09  Martin Buchholz  <martin@xemacs.org>
7514
7515         * general.c: Remove duplicate definition for Qfunction.
7516
7517 2000-07-08  Ben Wing  <ben@xemacs.org>
7518
7519         * device-msw.c (msprinter_init_device):
7520         * device-msw.c (sync_printer_with_devmode):
7521         * device-msw.c (handle_devmode_changes):
7522         * device-msw.c (print_dialog_worker):
7523         * device-msw.c (Fmsprinter_apply_settings):
7524         * device-msw.c (hash_devmode):
7525         * device-msw.c (Fmsprinter_settings_despecialize):
7526         use Qmswindows_tstr, not Qctext.
7527
7528         * vm-limit.c (check_memory_limits):
7529         avoid infinite loop printing warning messages.
7530
7531 2000-07-05  Craig Lanning  <lanning@scra.org>
7532
7533         * Makefile.in.in: Add support for including the Windows resources
7534         when building with the cygwin and mingw targets.
7535
7536         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7537         not set or not correct.
7538         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7539         (init_initial_directory): Don't try to use $PWD on the
7540         WIN32_NATIVE target.
7541
7542         * s\cygwin32.h:
7543         [[Add -mwindows to eliminate console window.]] not required --ben
7544         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7545         (MAIL_USE_POP): removed; now handled by configure.
7546
7547         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7548         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7549         (HAVE_NATIVE_SOUND): removed; now handled by configure.
7550         (MAIL_USE_POP): removed; now handled by configure.
7551         (ENCAPSULATE_STAT): from Dan Holmsand, added.
7552         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7553         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7554         constant string.
7555         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7556         up from <winsock.h> via systime.h.
7557         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7558         (getpagesize): from Dan Holmsand, added.
7559         Added #endif which was left dangling by Ben's mega patch; added
7560         comment to help prevent this in the future.
7561
7562         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7563
7564 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7565
7566         * console-msw.h (struct mswindows_device): Removed unnecessary
7567         cached device geometry values.
7568         Added update_tick and an accessor macro.
7569         (Lisp_Devmode): Added lrecord declaration.
7570         (struct msprinter_device): Contain devmode as a Lisp object.
7571         Added mswindows_get_selected_frame_hwnd();
7572
7573         * console.h (struct console_methods): Indentation nitpicking.
7574
7575         * device-msw.c (mswindows_init_device): Do not initialize geometry
7576         cache. Initialize update tick.
7577         (mswindows_device_system_metrics): Ask the device for its geometry.
7578         (global_free_2_maybe):
7579         (devmode_to_hglobal):
7580         (handle_printer_changes):
7581         (ensure_not_printing):
7582         (print_dialog_worker):
7583         (Fmsprinter_print_setup_dialog):
7584         (Fmsprinter_print_dialog):
7585         (plist_get_margin):
7586         (plist_set_margin):
7587         (Fmsprinter_page_setup_dialog): Added functions.
7588         (sync_printer_with_devmode):
7589         (handle_devmode_changes):
7590         (Fmsprinter_get_settings):
7591         (Fmsprinter_select_settings):
7592         (Fmsprinter_apply_settings):
7593         (allocate_devmode):
7594         (Fmsprinter_settings_copy):
7595         (Fmsprinter_settings_despecialize):
7596         (print_devmode):
7597         (finalize_devmode):
7598         (equal_devmode):
7599         (hash_devmode): Added functions
7600         (syms_of_device_mswindows): Init devmode lrecord class.
7601
7602         * device.h: Added an exfun for find-device.
7603
7604         * event-msw.c (mswindows_wnd_proc): Do not update the cached
7605         geometry; although, recreate the device compatible DC.
7606
7607         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
7608         (msprinter_init_frame_3):
7609         (msprinter_frame_property):
7610         (msprinter_internal_frame_property_p):
7611         (msprinter_frame_properties):
7612         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
7613         print job properties (will move to device settings).
7614
7615         * lisp.h: Added symbols.
7616
7617         * general.c (syms_of_general): Declared them.
7618
7619         * hash.c (string_hash): Added.
7620
7621         * lrecord.h (lrecord_type): Added devmode lrecord type.
7622
7623 2000-07-02  Mike Sperber <mike@xemacs.org>
7624
7625         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
7626         FreeBSD 4.0.
7627
7628 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
7629
7630         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
7631         integer.
7632
7633 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
7634
7635         * data.c (Fstring_to_number): Don't recognize floating point if
7636         base is not 10.
7637
7638 2000-06-22  Martin Buchholz  <martin@xemacs.org>
7639
7640         * glyphs-widget.c (tab_control_query_geometry):
7641         (widget_query_geometry):
7642         (button_query_geometry):
7643         * glyphs.c (text_query_geometry):
7644         Enforce type correctness.
7645
7646 2000-06-18  Martin Buchholz  <martin@xemacs.org>
7647
7648         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
7649         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
7650
7651 2000-06-17  Martin Buchholz  <martin@xemacs.org>
7652
7653         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
7654         conflicts with gcc's fixincluded version of FOO.h.
7655
7656         * glyphs.h (image_instance_geometry): Remove trailing `,'
7657
7658 2000-06-08  Mike Alexander  <mta@arbortext.com>
7659
7660         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
7661         (shove_thread): Don't write the same output twice
7662         (make_ntpipe_output_stream): Increase priority of shove thread
7663         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
7664         chance to run
7665         (ntpipe_shove_closer): Don't delete the pipe until we're done with
7666         it.
7667
7668 2000-06-12  Ben Wing  <ben@xemacs.org>
7669
7670         * s\mingw32.h (sigset):
7671         * s\windowsnt.h (sigset):
7672         rename msw_ to mswindows_ for consistency with general convention.
7673
7674 2000-06-12  Ben Wing  <ben@xemacs.org>
7675
7676         * console-msw.c:
7677         * console-msw.c (mswindows_get_console_hwnd):
7678         * console-msw.c (mswindows_ensure_console_allocated):
7679         * console-msw.c (mswindows_hide_console):
7680         * console-msw.c (mswindows_show_console):
7681         * console-msw.c (mswindows_ensure_console_buffered):
7682         * console-msw.c (mswindows_output_console_string):
7683         * console-msw.c (mswindows_windows9x_p):
7684         * console-msw.h:
7685         * device-msw.c (mswindows_get_workspace_coords):
7686         * device-msw.c (mswindows_device_system_metrics):
7687         * dialog-msw.c (mswindows_popup_dialog_box):
7688         * event-msw.c (mswindows_wnd_proc):
7689         * frame-msw.c (mswindows_size_frame_internal):
7690         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7691         * menubar-msw.c (displayable_menu_item):
7692         * menubar-msw.c (mswindows_char_is_accelerator):
7693         * nt.c:
7694         * nt.c (mswindows_sigset):
7695         * nt.c (mswindows_sigrelse):
7696         * nt.c (mswindows_sigpause):
7697         * nt.c (mswindows_raise):
7698         * nt.c (timer_proc):
7699         * ntproc.c:
7700         * ntproc.c (find_child_console):
7701         * ntproc.c (sys_kill):
7702         * print.c:
7703         * print.c (std_handle_out_external):
7704         * process-nt.c (find_child_console):
7705         * process-nt.c (send_signal_the_95_way):
7706         * process-nt.c (ensure_console_window_exists):
7707         * process-nt.c (nt_create_process):
7708         * syssignal.h:
7709         rename msw_ to mswindows_ for consistency with general convention.
7710
7711         * emacs.c:
7712         * dumper.c:
7713         include nt.h, not syswindows.h.
7714
7715         * nt.c (mswindows_fstat):
7716         * nt.c (mswindows_stat):
7717         prefix mswindows_ instead of attempting to directly override the
7718         library functions.  fix declarations.
7719
7720         * nt.h:
7721         include syswindows.h.  move some sysdep.h stuff here.
7722
7723         * ntheap.h:
7724         include syswindows.h, not <windows.h>.
7725
7726         * ntplay.c:
7727         clean up headers.
7728
7729         * sysdep.c:
7730         clean up headers.
7731
7732         * sysdep.c (sys_fstat):
7733         * sysdep.c (sys_stat):
7734         call mswindows versions when appropriate.
7735
7736         * sysdep.h:
7737         move mswin decls to nt.h.
7738
7739         * syswindows.h:
7740         add long comment describing appropriate use of the various windows
7741         headers.
7742
7743 2000-06-11  Ben Wing  <ben@xemacs.org>
7744
7745         * device-x.c: Correct doc string for sixth arg of x-get-resource.
7746
7747 2000-06-10  Ben Wing  <ben@xemacs.org>
7748
7749         * Makefile.in.in (release):
7750         Correction to make sure xemacs.exe always dumped when correct.
7751
7752         * alloca.c:
7753         * balloon_help.c:
7754         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
7755
7756         * buffer.c (set_buffer_internal):
7757         [[[[2]]]]: Remove HAVE_FEP code.
7758
7759         * buffer.c (init_initial_directory):
7760         [3].
7761
7762         * bytecode.c:
7763         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
7764         individual files.
7765
7766         * callproc.c:
7767         * callproc.c (call_process_cleanup):
7768         * callproc.c (Fold_call_process_internal):
7769         * callproc.c (child_setup):
7770         * callproc.c (getenv_internal):
7771         * callproc.c (init_callproc):
7772         * callproc.c (vars_of_callproc):
7773         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
7774         __CYGWIN32__ -> CYGWIN.
7775         DOS_NT -> WIN32_NATIVE.
7776         Remove MSDOS support/references, converting to WIN32_NATIVE
7777           where correct.
7778         __MINGW32__ -> MINGW.
7779         Fix windows.h includes.
7780         Remove bogus HAVE_NTGUI.
7781
7782         * config.h.in:
7783         [2].
7784
7785         * console-msw.c:
7786         mswindows_message_outputted added for use in allowing startup
7787         errors on the console to be seen.
7788
7789         * console-msw.c (msw_ensure_console_allocated):
7790         * console-msw.c (msw_output_console_string):
7791         * console-msw.c (DHEADER):
7792         * console-msw.c (DOPAQUE_DATA):
7793         * console-msw.c (DEVENT):
7794         * console-msw.c (DCONS):
7795         * console-msw.c (DCONSCDR):
7796         * console-msw.c (DSTRING):
7797         * console-msw.c (DVECTOR):
7798         * console-msw.c (DSYMBOL):
7799         * console-msw.c (DSYMNAME):
7800         Fix warnings.
7801
7802         * console-stream.c (stream_init_console):
7803         Fix text/binary problems.
7804
7805         * device-msw.c:
7806         * device-msw.c (mswindows_finish_init_device):
7807         * device-msw.c (mswindows_delete_device):
7808         [1].
7809
7810         * device.c (handle_asynch_device_change):
7811         [3].
7812
7813         * dgif_lib.c:
7814         * dgif_lib.c (DGifOpenFileName):
7815         * dgif_lib.c (DGifOpenFileHandle):
7816         * dgif_lib.c (DGifGetLine):
7817         * dgif_lib.c (DGifGetPixel):
7818         Added config.h/lisp.h, fix up includes.
7819         [1].
7820
7821         * dired-msw.c:
7822         [4].
7823
7824         * dired.c:
7825         * dired.c (file_name_completion):
7826         * dired.c (Ffile_attributes):
7827         * dired.c (syms_of_dired):
7828         [1].
7829
7830         * dumper.c:
7831         * dumper.c (pdump_file_unmap):
7832         * dumper.c (pdump_load):
7833         [1].
7834
7835         * editfns.c:
7836         * editfns.c (Ftemp_directory):
7837         * editfns.c (user_login_name):
7838         * editfns.c (Fuser_real_login_name):
7839         * editfns.c (get_home_directory):
7840         [1].
7841
7842         * elhash.c (finish_marking_weak_hash_tables):
7843         [[[[5]]]]: Fix GCC warnings.
7844
7845         * emacs.c:
7846         * emacs.c (mswindows_handle_hardware_exceptions):
7847         * emacs.c (make_arg_list_1):
7848         * emacs.c (main_1):
7849         * emacs.c (Fkill_emacs):
7850         * emacs.c (Fdump_emacs):
7851         [1].
7852         Fix problems with nested crashes, add long comment.
7853
7854         * event-Xt.c (init_event_Xt_late):
7855         [1].
7856
7857         * event-msw.c:
7858         * event-msw.c (mswindows_dde_callback):
7859         * event-msw.c (mswindows_handle_sticky_modifiers):
7860         * event-msw.c (mswindows_wnd_proc):
7861         [1].
7862         [5].
7863
7864         * events.c (character_to_event):
7865         [1].
7866
7867         * fileio.c:
7868         * fileio.c (Ffile_name_directory):
7869         * fileio.c (Ffile_name_nondirectory):
7870         * fileio.c (directory_file_name):
7871         * fileio.c (Fexpand_file_name):
7872         * fileio.c (Fsubstitute_in_file_name):
7873         * fileio.c (Ffile_name_absolute_p):
7874         * fileio.c (check_executable):
7875         * fileio.c (Ffile_readable_p):
7876         * fileio.c (Ffile_accessible_directory_p):
7877         * fileio.c (Ffile_modes):
7878         * fileio.c (Funix_sync):
7879         * fileio.c (vars_of_fileio):
7880         [1]. [4].
7881
7882         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
7883
7884         Expand getdefdir defn.
7885         Fix bogus rename() comment.
7886
7887         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
7888         to use standard XEmacs include files, e.g. sysfile.h, rather
7889         than system-specific includes.
7890
7891         * fns.c:
7892         * fns.c (Fsubseq):
7893         [5]. [6].
7894
7895         * frame.c (vars_of_frame):
7896         [1].
7897
7898         * getloadavg.c:
7899         * getloadavg.c (getloadavg):
7900         [1]. [6].
7901         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
7902         (We don't use it elsewhere in the code; just add a comment.)
7903
7904         * gif_io.c:
7905         [6].
7906         Add config.h.
7907
7908         * glyphs-msw.c:
7909         * glyphs-msw.c (mswindows_resource_instantiate):
7910         [1].
7911
7912         * glyphs-x.c (x_native_layout_instantiate):
7913         [5].
7914
7915         * gui-msw.c (Fmswindows_shell_execute):
7916         [1].
7917
7918         * insdel.c:
7919         [4].
7920
7921         * lisp.h:
7922         [4]. [5].
7923
7924         * lread.c (locate_file_in_directory_mapper):
7925         [1].
7926
7927         * lstream.c:
7928         [4].
7929
7930         * mem-limits.h:
7931         * mem-limits.h (get_lim_data):
7932         [1].
7933
7934         * menubar-msw.c:
7935         [4].
7936
7937         * ndir.h:
7938         [1].
7939
7940         * nt.c:
7941         * nt.c (getwd):
7942         * nt.c (closedir):
7943         * nt.c (rva_to_section):
7944         * nt.c (mswindows_executable_type):
7945         [1]. [6].
7946         Fix closedir() defn.
7947
7948         * nt.h:
7949         [[[[8]]]]: *_OK defs moved to sysfile.h.
7950
7951         * ntproc.c:
7952         [6]. [7].
7953
7954         * objects-x.c:
7955         [4].
7956
7957         * print.c:
7958         * print.c (std_handle_out_external):
7959         [1]. [4].
7960
7961         * process-nt.c:
7962         * process-nt.c (nt_create_process):
7963         [6].
7964         try to fix process quoting somewhat.
7965
7966         * process-unix.c (unix_create_process):
7967         [1].
7968
7969         * process.c:
7970         * process.c (vars_of_process):
7971         Add Vnull_device.
7972
7973         * process.h:
7974         [1].
7975
7976         * realpath.c:
7977         * realpath.c (xrealpath):
7978         [1].
7979
7980         * redisplay-tty.c (init_tty_for_redisplay):
7981         [3].
7982
7983         * redisplay.c:
7984         [4]. [6].
7985
7986         * scrollbar-msw.c:
7987         [4].
7988
7989         * sheap.c:
7990         * sheap.c (more_static_core):
7991         * sheap.c (report_sheap_usage):
7992         [5]. [6].
7993
7994         * signal.c:
7995         * signal.c (alarm_signal):
7996         [1]. [6].
7997
7998         * sound.c:
7999         [6].
8000
8001         * strftime.c:
8002         * strftime.c (zone_name):
8003         [1]. [5].
8004
8005         * symsinit.h (init_sunpro):
8006         [1].
8007
8008         * syscommctrl.h:
8009         commctrl.h not in Cygwin b20.1.
8010
8011         * sysdep.c:
8012         * sysdep.c (endif):
8013         * sysdep.c (sys_subshell):
8014         * sysdep.c (init_baud_rate):
8015         * sysdep.c (emacs_get_tty):
8016         * sysdep.c (emacs_set_tty):
8017         * sysdep.c (tty_init_sys_modes_on_device):
8018         * sysdep.c (init_system_name):
8019         * sysdep.c (sys_open):
8020         * sysdep.c (interruptible_open):
8021         * sysdep.c (sys_fopen):
8022         * sysdep.c (sys_mkdir):
8023         * sysdep.c (sys_rename):
8024         * sysdep.c (get_process_times_1):
8025         [1]. [6].
8026
8027         * sysdep.h:
8028         [1].
8029
8030         * sysdir.h:
8031         * sysdir.h (DIRENTRY_NONEMPTY):
8032         [1]. [6].
8033
8034         * sysdll.c (dll_init):
8035         * sysdll.h:
8036         [1].
8037
8038         * sysfile.h:
8039         [1]. [6]. [8].
8040         added text/binary defs.
8041
8042         * sysfloat.h:
8043         [1].
8044
8045         * sysproc.h:
8046         * sysproc.h (EDESTADDRREQ):
8047         * sysproc.h (poll_fds_for_input):
8048         [1]. [6].
8049
8050         * syspwd.h:
8051         [6].
8052
8053         * syssignal.h:
8054         [1].
8055
8056         * systime.h:
8057         [1]. [6].
8058
8059         * systty.h:
8060         [1].
8061
8062         * syswindows.h:
8063         [1].
8064         Always define WIN32_LEAN_AND_MEAN.
8065
8066         * unexcw.c (unexec):
8067         [5].
8068
8069         * unexec.c:
8070         * unexec.c (copy_text_and_data):
8071         * unexec.c (adjust_lnnoptrs):
8072         [1].
8073
8074         * unexnt.c:
8075         * unexnt.c (_start):
8076         [1].
8077
8078 2000-06-07  Ben Wing  <ben@xemacs.org>
8079
8080         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
8081         was used only as a model.  We've long since extracted any useful
8082         logic or code out of this. (I just did an exhaustive search.)
8083
8084         * s\msdos.h: Removed.
8085
8086         * s\windows95.h: Removed.
8087
8088 2000-06-10  Ben Wing  <ben@xemacs.org>
8089
8090         * s\cygwin32.h:
8091         [1]. [5].
8092         Don't use extern with fun defs.
8093
8094         * s\mingw32.h:
8095         [1]. [7].
8096         Remove nt\inc include.
8097         Remove getdisk, getdefdir. (The former is unused, the latter
8098         expanded in fileio.h.)
8099
8100         * s\windowsnt.h:
8101         * s\windowsnt.h (WIN32_NATIVE):
8102         * s\windowsnt.h (HAVE_STRCASECMP):
8103         [1]. [7].
8104         Add long comment about preprocessor changes.
8105         Remove getdisk, getdefdir. (The former is unused, the latter
8106         expanded in fileio.h.)
8107
8108 2000-06-10  Ben Wing  <ben@xemacs.org>
8109
8110         * m\arm.h:
8111         * m\delta.h:
8112         * m\intel386.h:
8113         * m\sequent.h:
8114         * m\template.h:
8115         * m\windowsnt.h:
8116         [1].
8117         Remove bogus/unused NO_SOCK_SIGIO.
8118
8119 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
8120
8121         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8122         not an Emchar.
8123
8124 2000-06-04  Mike Sperber <mike@xemacs.org>
8125
8126         * casetab.c (set_case_table): For `set-standard-case-table',
8127         actually deposit the new case tables where the rest of XEmacs can
8128         see them.
8129
8130 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
8131
8132         * data.c (Faset): Don't cast XCHAR() to unsigned char.
8133
8134 2000-06-05  Ben Wing  <ben@xemacs.org>
8135
8136         * callproc.c (child_setup): Don't do close_load_descs() under
8137         MS Windows.  Put in a comment explaining why.
8138
8139 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
8140
8141         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8142         Toolkit shell" which breaks `kill-compilation' on Windows NT
8143         native, retaining STDERR handling improvements.
8144
8145 2000-06-01  Andreas Jaeger  <aj@suse.de>
8146
8147         * s/s390.h: Support for S390, based on a patch by Martin
8148         Schwidefsky <schwidefsky@de.ibm.com>.
8149
8150 2000-05-30  Andy Piper  <andy@xemacs.org>
8151
8152         * window.c (allocate_window):
8153         (make_dummy_parent):
8154         (Fset_window_configuration): use new hashtable type.
8155
8156         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8157         (struct image_instantiator_methods):
8158         (struct Lisp_Image_Instance): make instance geometry signed.
8159
8160         * glyphs.c (instantiate_image_instantiator):
8161         (image_instance_query_geometry):
8162         (image_instance_layout):
8163         (image_instance_layout):
8164         (query_string_geometry):
8165         (text_query_geometry):
8166         (image_instantiate):
8167         (image_instantiate):
8168         (cache_subwindow_instance_in_frame_maybe):
8169         (subwindow_query_geometry): make instance geometry signed.
8170
8171         * glyphs-widget.c (widget_query_geometry):
8172         (widget_layout):
8173         (button_query_geometry):
8174         (tree_view_query_geometry):
8175         (tab_control_query_geometry):
8176         (layout_query_geometry):
8177         (layout_layout):
8178         (native_layout_layout): make instance geometry signed.
8179
8180 2000-05-29  Olivier Galibert  <galibert@pobox.com>
8181
8182         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8183         constant.
8184
8185         * general.c (syms_of_general): Add Qfull_assoc symbol.
8186
8187         * data.c (finish_marking_weak_lists): Mark full-assoc lists
8188         correctly.
8189         (decode_weak_list_type): Decode full-assoc type.
8190         (encode_weak_list_type): Encode full-assoc type.
8191         (Fmake_weak_list): Update doc string.
8192
8193 2000-05-30  Andy Piper  <andy@xemacs.org>
8194
8195         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8196
8197         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8198         (decode_hash_table_weakness): ditto.
8199         (Fhash_table_weakness): ditto.
8200         (Fhash_table_type): ditto.
8201         (finish_marking_weak_hash_tables): ditto.
8202         (hash_table_weakness_validate): ditto.
8203         (syms_of_elhash): ditto.
8204
8205 2000-05-28  Martin Buchholz <martin@xemacs.org>
8206
8207         * XEmacs 21.2.34 is released.
8208
8209 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8210
8211         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8212         start cache.
8213         (updating_line_start_cache): Gone.
8214         (regenerate_window): Replace resetting of VERTICAL_CLIP by
8215         generic code to force a minimum of 1 line laid out in the
8216         CMOTION_DISP case.
8217
8218 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
8219
8220         * glyphs.c (instantiate_image_instantiator): Check for initialized
8221         height & width no longer special cases IMAGE_NOTHING.
8222         (nothing_instantiate): Set height and width of instance.
8223
8224 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
8225
8226         * unexelf.c (unexec): Search for ".data" section.
8227         Initialize new_data2_offset from old_data_index.
8228         Remove redundant check for ElfW.
8229
8230 2000-05-23  Andy Piper  <andy@xemacs.org>
8231
8232         * glyphs.c (get_image_instantiator_governing_domain): allow more
8233         specific domains as the governing domain rather than expecting an
8234         exact match. This fixes problems with layouts.
8235
8236 2000-05-22  Andy Piper  <andy@xemacs.org>
8237
8238         * redisplay-output.c (compare_runes): check for non-images
8239
8240         * glyphs.c (set_glyph_dirty_p): ditto.
8241         (update_glyph_cachel_data): ditto.
8242
8243         * glyphs-widget.c (layout_post_instantiate): ditto.
8244         (layout_post_instantiate): ditto.
8245
8246         * event-msw.c (mswindows_wnd_proc): warning removal.
8247
8248 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
8249
8250         * s\mingw32.h: Added #undef for CLASH_DETECTION.
8251
8252         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8253
8254         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8255
8256         * nt.c (rva_to_section): mingw32 needs rva_to_section.
8257         (mswindows_executable_type): mingw32 now has enough headers for
8258         this to work.
8259
8260 2000-05-20  Andy Piper  <andy@xemacs.org>
8261
8262         * console-msw.c (mswindows_output_last_error): ; -> ,
8263
8264 2000-05-12  Andy Piper  <andy@xemacs.org>
8265
8266         * console-msw.c (FROB): compare ints with ints.
8267
8268 2000-05-11  Andy Piper  <andy@xemacs.org>
8269
8270         * glyphs-x.c (x_finalize_image_instance): make minimal build
8271         happy.
8272
8273 2000-05-20  Ben Wing  <ben@xemacs.org>
8274
8275         * event-Xt.c:
8276         * event-Xt.c (vars_of_event_Xt):
8277         move modifier-keys-are-sticky to event-stream.c.
8278
8279         * event-msw.c:
8280         * event-msw.c (mswindows_enqueue_mouse_button_event):
8281         * event-msw.c (key_needs_default_processing_p):
8282         * event-msw.c (XEMSW_LCONTROL):
8283         * event-msw.c (mswindows_handle_sticky_modifiers):
8284         * event-msw.c (FROB):
8285         * event-msw.c (clear_sticky_modifiers):
8286         * event-msw.c (output_modifier_keyboard_state):
8287         * event-msw.c (output_alt_keyboard_state):
8288         * event-msw.c (mswindows_wnd_proc):
8289         * event-msw.c (mswindows_modifier_state):
8290         * event-msw.c (emacs_mswindows_handle_magic_event):
8291         implement sticky modifiers.
8292
8293         * event-stream.c:
8294         * event-stream.c (vars_of_event_stream):
8295         move modifier-keys-are-sticky here.
8296
8297         * lisp.h:
8298         add CHECK_FUNCTION.
8299
8300         * rangetab.c:
8301         implement map-range-table.
8302
8303
8304 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
8305
8306         * redisplay-tty.c (reset_tty_modes):
8307         (tty_redisplay_shutdown): Adjust argument type to
8308         tty_frame_output_end.
8309
8310 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8311
8312         * eval.c (Fbacktrace): Don't output a line with only right
8313         parenthesis.
8314
8315 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
8316
8317         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8318         (Fpq_reset_poll): Ditto.
8319
8320 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
8321
8322         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8323
8324 2000-05-16  Ben Wing  <ben@xemacs.org>
8325
8326         * buffer.c:
8327         * buffer.c (dfc_convert_to/from_internal_format):
8328         * buffer.c (reinit_vars_of_buffer):
8329         Fix conversion functions to allow reentrancy.
8330
8331         * console-msw.c:
8332         * console-msw.c (mswindows_output_last_error):
8333         New fun, generally useful -- output a human-readable
8334         version of GetLastError() on the console.
8335
8336         * console-msw.h:
8337         * console-msw.h (struct mswindows_frame):
8338         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
8339
8340         * console-stream.c (stream_output_begin):
8341         * console-stream.c (stream_output_end):
8342         * console-stream.c (stream_output_vertical_divider):
8343         * console-stream.c (stream_clear_region):
8344         * console-stream.c (stream_flash):
8345         * console-stream.c (console_type_create_stream):
8346         Delete blank stream methods, not needed.
8347
8348         * console.h (struct console_methods):
8349         Split begin/end methods into window and frame.
8350
8351         * event-msw.c:
8352         * event-msw.c (mswindows_handle_paint):
8353         * event-msw.c (output_alt_keyboard_state):
8354         * event-msw.c (mswindows_wnd_proc):
8355         * event-msw.c (vars_of_event_mswindows):
8356         Comment about problems with ignored-expose.
8357         Define mswindows-debug-events; not really implemented.
8358
8359         * frame-msw.c (mswindows_init_frame_1):
8360         random cleanups.
8361
8362         * glyphs-msw.c:
8363         * glyphs-msw.c (begin_defer_window_pos):
8364         * glyphs-msw.c (mswindows_unmap_subwindow):
8365         * glyphs-msw.c (mswindows_map_subwindow):
8366         * glyphs-msw.c (mswindows_resize_subwindow):
8367         Use DeferWindowPos to reduce flashing when mapping/unmapping.
8368
8369         * glyphs.c (make_image_instance_1):
8370         Fix crash.
8371
8372         * gutter.c (Fredisplay_gutter_area):
8373         Use new begin/end methods.
8374
8375         * lisp.h (Dynarr_new2):
8376         New creation fun.
8377
8378         * redisplay-msw.c:
8379         * redisplay-msw.c (mswindows_frame_output_begin):
8380         * redisplay-msw.c (mswindows_frame_output_end):
8381         * redisplay-msw.c (console_type_create_redisplay_mswindows):
8382         New begin/end methods -- handle DeferWindowPos.
8383
8384         * redisplay-output.c (redisplay_move_cursor):
8385         * redisplay-output.c (redraw_cursor_in_window):
8386         * redisplay-output.c (redisplay_update_line):
8387         * redisplay-output.c (redisplay_output_window):
8388         New begin/end methods.
8389
8390         * redisplay-tty.c:
8391         * redisplay-tty.c (tty_frame_output_begin):
8392         * redisplay-tty.c (tty_frame_output_end):
8393         * redisplay-tty.c (console_type_create_redisplay_tty):
8394         New begin/end methods.
8395
8396         * redisplay-x.c:
8397         * redisplay-x.c (x_window_output_begin):
8398         * redisplay-x.c (x_window_output_end):
8399         * redisplay-x.c (console_type_create_redisplay_x):
8400         New begin/end methods.
8401
8402         * redisplay.c (redisplay_frame):
8403         * redisplay.c (Fredisplay_echo_area):
8404         New begin/end methods.
8405         use MAYBE_DEVMETH for clear_frame; it may not exist.
8406
8407         * window.h (WINDOW_XFRAME):
8408         WINDOW_XFOO macros -- get locale and decode struct pointer.
8409
8410
8411 2000-05-12  Ben Wing  <ben@xemacs.org>
8412
8413         * emacs.c:
8414         * emacs.c (ensure_no_quitting_from_now_on):
8415         * emacs.c (fatal_error_signal):
8416         * emacs.c (mswindows_handle_hardware_exceptions):
8417         * emacs.c (main):
8418         * emacs.c (Fkill_emacs):
8419         * emacs.c (shut_down_emacs):
8420         * emacs.c (assert_failed):
8421         various improvements in fatal error handling.
8422
8423         * eval.c:
8424         move preparing_for_armageddon to emacs.c.
8425
8426         * lisp.h:
8427         declare fatal_error_in_progress.
8428
8429         * print.c:
8430         * print.c (std_handle_out_external):
8431         * print.c (std_handle_out_va):
8432         * print.c (stderr_out):
8433         * print.c (stdout_out):
8434         use console under mswin when no standard output.
8435         don't do code conversion during fatal error.
8436
8437         * scrollbar.c (Fscrollbar_page_up):
8438         * scrollbar.c (Fscrollbar_page_down):
8439         fix missing else.  reindent.
8440
8441 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
8442
8443         Emergency fix.
8444
8445         * glyphs.h (GLYPH_CACHEL_DESCENT):
8446         (GLYPH_CACHEL_DESCENT):
8447         (GLYPH_CACHEL_DESCENT):
8448         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8449         used in case these are inline functions.
8450         Use more absurd values to error check.
8451
8452         include window.h for error check functions.
8453
8454 2000-05-11  Ben Wing  <ben@xemacs.org>
8455
8456         * cmdloop.c (Freally_early_error_handler):
8457         Display message box under windows; otherwise, message will disappear
8458         before it can be viewed.
8459
8460         * console-msw.c:
8461         * console-msw.c (Fmswindows_message_box):
8462         * console-msw.c (FROB):
8463         * console-msw.c (syms_of_console_mswindows):
8464         Define new fun `mswindows-message-box'.
8465         #### I will merge this into `popup-dialog-box'; just give me
8466         a bit of time.
8467
8468         * general.c:
8469         * general.c (syms_of_general):
8470         Some new symbols used in `mswindows-message-box'.
8471
8472         * glyphs.c:
8473         * glyphs.c (Fset_image_instance_property):
8474         put warning in this fun.
8475
8476         * glyphs.h:
8477         * glyphs.h (GLYPH_CACHEL_WIDTH):
8478         * glyphs.h (GLYPH_CACHEL_ASCENT):
8479         * glyphs.h (GLYPH_CACHEL):
8480         * glyphs.h (GLYPH_CACHEL_GLYPH):
8481         define error-checking versions to try to catch a bug i've seen --
8482         redisplay gets in an infinite loop because the glyph width of the
8483         continuation glyph is 65535.
8484
8485         * lisp.h:
8486         Extern message-box stuff.
8487
8488         * window.c (allocate_window):
8489         * window.c (make_dummy_parent):
8490         * window.c (Fset_window_configuration):
8491         Use EQUAL not EQ for subwindow caches to make them work a bit
8492         better. (Something is still very broken.)
8493
8494
8495 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8496
8497         * glyphs.c (image_instantiate): Suppress gcc warnings.
8498         (Fmake_image_instance): Fix doc string.
8499         * specifier.c (Fmake_specifier): Ditto.
8500
8501 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
8502
8503         * paths.h.in (PATH_LOCK): Removed.
8504         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8505         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8506
8507 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8508
8509         * fns.c (Ffeaturep): Update e-mail address in doc-string.
8510         Document (featurep '(and xemacs 21.02)).
8511
8512 2000-05-09  Ben Wing  <ben@xemacs.org>
8513
8514         * buffer.c (complex_vars_of_buffer):
8515         update modeline-format doc.
8516
8517         * device.h:
8518         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8519
8520         * emacs.c:
8521         timeline of all released versions of Emacs, for use in creating
8522         authorship comments and in synching up.
8523
8524         * glyphs-widget.c (image_instantiator_buttons):
8525         * glyphs-widget.c (image_instantiator_edit_fields):
8526         * glyphs-widget.c (image_instantiator_combo_box):
8527         * glyphs-widget.c (image_instantiator_scrollbar):
8528         * glyphs-widget.c (image_instantiator_progress_guage):
8529         * glyphs-widget.c (image_instantiator_tree_view):
8530         * glyphs-widget.c (image_instantiator_tab_control):
8531         * glyphs-widget.c (image_instantiator_labels):
8532         * glyphs-widget.c (image_instantiator_layout):
8533         * glyphs-widget.c (image_instantiator_native_layout):
8534         rename decode_domain method to governing_domain.
8535
8536         * glyphs.c:
8537         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8538         * glyphs.c (add_entry_to_device_ii_format_list):
8539         make sure we don't put an entry more than once into the list.
8540         * glyphs.c (check_instance_cache_mapper):
8541         *************************************************************
8542         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8543         HAVE BEEN GETTING.
8544         *************************************************************
8545         * glyphs.c (get_image_instantiator_governing_domain):
8546         clean up, expand on new concept of governing domain.
8547         * glyphs.c (instantiate_image_instantiator):
8548         * glyphs.c (allocate_image_instance):
8549         use governing_domain instead of cache_domain in naming.
8550         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8551         * glyphs.c (make_image_instance_1):
8552         * glyphs.c (Fmake_image_instance):
8553         allow for any domain (not just device), and process the
8554         governing domain correctly.  very big doc fix.
8555         * glyphs.c (Fimage_instance_domain):
8556         new primitive, to retrieve the governing domain of an image instance.
8557         * glyphs.c (image_instantiate):
8558         use new governing_domain stuff.  this fixes a crash you could get
8559         by instantiating certain widget glyphs in frame locales. (should
8560         signal an error instead of crashing.)
8561         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8562         * glyphs.c (Fglyphp): clean up doc.
8563         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8564         * glyphs.c (syms_of_glyphs):
8565         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8566         * glyphs.c (image_instantiator_format_create): add some comments about
8567         bogus code.
8568         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8569         for current-display-table. (Apparently Hrjove implemented in 1998 a
8570         design I wrote up in 1996, but didn't update the doc string.)
8571
8572         * glyphs.h: clean up a doc string.
8573         * glyphs.h (governing_domain):
8574         * glyphs.h (struct image_instantiator_methods):
8575         changes for governing_domain stuff.
8576
8577         * gutter.c:
8578         * gutter.c (Fgutter_specifier_p):
8579         * gutter.c (Fgutter_size_specifier_p):
8580         * gutter.c (Fgutter_visible_specifier_p):
8581         * objects.c:
8582         * objects.c (Fcolor_specifier_p):
8583         * objects.c (Ffont_specifier_p):
8584         * objects.c (Fface_boolean_specifier_p):
8585         doc strings moved to make-*-specifier.
8586
8587         * redisplay.c (add_disp_table_entry_runes_1):
8588         * redisplay.c (generate_fstring_runes):
8589         * redisplay.c (screen):
8590         add random comments and doc strings.
8591
8592         * specifier.c:
8593         * specifier.c (Fmake_specifier):
8594         major overhaul of this doc string.
8595
8596         * specifier.c (Fvalid_specifier_domain_p):
8597         comment about the bogosity of image instances being domains.
8598         * specifier.c (decode_domain):
8599         now non-static, used in glyphs.c.
8600         * specifier.c (specifier_instance):
8601         comment about the bogosity of image instances being domains.
8602         * specifier.c (Fgeneric_specifier_p):
8603         move doc string to make-generic-specifier.
8604         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
8605         rebackslashify.
8606
8607         * specifier.h:
8608         * specifier.h (DOMAIN_FRAME):
8609         * specifier.h (DOMAIN_LIVE_P):
8610         * specifier.h (DOMAIN_XDEVICE):
8611         rebackslashify.
8612         add comments about problems with these macros.
8613         prototype for decode_domain.
8614
8615         * toolbar.c:
8616         * toolbar.c (Ftoolbar_specifier_p):
8617         move doc string to `make-toolbar-specifier'.
8618
8619         * window.c (window_unmap_subwindows_cache_mapper):
8620         *************************************************************
8621         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8622         HAVE BEEN GETTING.
8623         *************************************************************
8624
8625 2000-05-09  Andy Piper  <andy@xemacs.org>
8626
8627         * glyphs.h: declare reset_frame_subwindow_instance_cache.
8628
8629         * window.c (Fset_window_configuration): reset the frame subwindow
8630         cache and re-initialize the window subwindow caches.
8631
8632         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
8633
8634 2000-05-09  Ben Wing  <ben@xemacs.org>
8635
8636         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
8637         DWORD.
8638
8639 2000-04-26  Mike Woolley  <mike@bulsara.com>
8640
8641         * ntheap.c: Changed recreate_heap to limit the amount reserved
8642         for the heap to that which is actually available. Also now
8643         displays a message box (with some dignostics) in the event that
8644         it still can't start.
8645
8646 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
8647
8648         * callproc.c (Fold_call_process_internal): GCPRO path
8649
8650 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
8651
8652         Patch by Bill Perry.
8653
8654         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
8655         back data instead of #ifdef.
8656         (Fscrollbar_page_down): ditto.
8657
8658 2000-05-07  Ben Wing  <ben@xemacs.org>
8659
8660         * buffer.h:
8661         Kludge for defining Qmswindows_tstr.
8662
8663         * nt.c:
8664         * nt.c (open_input_file):
8665         * nt.c (open_output_file):
8666         * nt.c (rva_to_section):
8667         * nt.c (mswindows_executable_type):
8668         Move all memory-mapped-file routines here (some were in unexnt.c,
8669         which is bad because they are used by process-nt.c, and unexnt
8670         won't be around when portable dumping).  Synched the above routines
8671         with FSF 20.6.
8672
8673         * nt.h:
8674         Removed ifdef'd out bogus code.
8675         Fixed some prototypes.
8676
8677         * nt.h (file_data):
8678         * nt.h (OFFSET_TO_RVA):
8679         * nt.h (RVA_TO_OFFSET):
8680         * nt.h (RVA_TO_PTR):
8681         Moved the memory-mapped-file structures, macros and prototypes
8682         here, to parallel nt.c.  ntheap.h should really be removed
8683         entirely, and it's a non-portable-dumper specific file.
8684
8685         * ntheap.h (round_to_next):
8686         Moved the memory-mapped-file structures, macros and prototypes
8687         to nt.h.
8688
8689         * ntproc.c (compare_env):
8690         Moved rva_to_section and mswindows_executable_type to nt.c.
8691         Moved compare_env to process-nt.c.
8692         ntproc.c will die, one day.
8693
8694         * ntproc.c (sys_spawnve):
8695         Account for win32_ -> mswindows_.
8696
8697         * process-nt.c:
8698         * process-nt.c (struct nt_process_data):
8699         * process-nt.c (ensure_console_window_exists):
8700         * process-nt.c (compare_env):
8701         * process-nt.c (nt_create_process):
8702         * process-nt.c (nt_kill_process_by_pid):
8703         * process-nt.c (syms_of_process_nt):
8704         * process-nt.c (vars_of_process_nt):
8705         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
8706         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
8707         changes).  Eliminate our old `nt-quote-process-args' mechanism.
8708         Synch up nt_create_process with FSF 20.6 sys_spawnve.
8709         Move compare_env here from ntproc.c.
8710
8711         * process.c (Fprocess_send_region):
8712         Takes an optional fourth argument, BUFFER, which should fix some
8713         problems with call-process.
8714
8715         * syscommctrl.h:
8716         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
8717
8718         * syswindows.h:
8719         Move ICC_BAR_CLASSES to syscommctrl.h.
8720         Add preliminary macros for MSWindows/Mule.  More to come.
8721
8722         * unexnt.c:
8723         * unexnt.c (unexec):
8724         open_output_file moved to nt.c.
8725
8726
8727 2000-05-05  Andy Piper  <andy@xemacs.org>
8728
8729         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
8730         instance from the frame cache also since GC may catch up too late
8731         to make frame deletion sane.
8732
8733 2000-05-04  Andy Piper  <andy@xemacs.org>
8734
8735         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
8736         (x_finalize_image_instance): ungcpro on deletion.
8737
8738         * glyphs.c (image_instantiator_format_create): give pointers a
8739         query geometry method so that the geometry is at least set.
8740
8741         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
8742         initialize layouts if using widgets.
8743
8744 2000-05-03  Andy Piper  <andy@xemacs.org>
8745
8746         * nt.c: remove bogus reference to sysmmsystem.h
8747
8748         * gui-x.c (popup_selection_callback): fix no selection abort.
8749
8750 2000-05-02  Andy Piper  <andy@xemacs.org>
8751
8752         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
8753         (mswindows_widget_instantiate): ditto.
8754
8755         * glyphs-widget.c (initialize_widget_image_instance): initialize
8756         children correctly.
8757         (widget_instantiate): cope with children and items in the same
8758         instance.
8759
8760         * glyphs.c (mark_image_instance): cope with children as a first
8761         class member.
8762         (image_instance_equal): ditto.
8763         (image_instance_hash): ditto.
8764         (image_instance_changed): ditto.
8765
8766 2000-04-30  Andy Piper  <andy@xemacs.org>
8767
8768         * glyphs.c (subwindow_query_geometry): new function. Return some
8769         defaults.
8770         (subwindow_instantiate): don't assign dimensions if none have been
8771         given.
8772         (image_instantiator_format_create): add subwindow_query_geometry.
8773         (print_image_instance): cope with layouts as widgets.
8774
8775 2000-04-29  Andy Piper  <andy@xemacs.org>
8776
8777         * frame.c (delete_frame_internal): call
8778         free_frame_subwindow_instance_cache so that all subwindows are
8779         finalized before their parent.
8780         (mark_frame): remove subwindow_cachels.
8781         (Fmake_frame): remove subwindow_cachel manipulation.
8782         (allocate_frame_core): subwindow_instance_cache is a weak list.
8783         (delete_frame_internal): set subwindow_instance_cache to nil.
8784
8785         * glyphs-msw.c (mswindows_finalize_image_instance): make double
8786         finalization safe.
8787         (mswindows_finalize_image_instance): use the device
8788         not the domain as the domain may have died already.
8789
8790         * glyphs-x.c (x_finalize_image_instance): ditto.
8791         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
8792         HEIGHT.
8793
8794         * redisplay-output.c (redisplay_unmap_subwindows): update for
8795         subwindow instance cache as a weak list.
8796         (redisplay_unmap_subwindows_maybe): ditto.
8797         (redisplay_unmap_subwindows_except_us): ditto.
8798
8799         * glyphs.c (unmap_subwindow): error checking will check the domain
8800         so don't deal with it here. Don't use cachels anymore.
8801         (map_subwindow): ditto.
8802         (update_subwindow_cachel_data): remove old accessor names.
8803         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
8804         (Fresize_subwindow): don't update cachel.
8805         (mark_subwindow_cachels):
8806         (update_subwindow_cachel_data):
8807         (add_subwindow_cachel):
8808         (get_subwindow_cachel_index):
8809         (update_subwindow_cachel):
8810         (reset_subwindow_cachels):
8811         (mark_subwindow_cachels_as_not_updated): deleted.
8812         (cache_subwindow_instance_in_frame_maybe): new function. Add a
8813         subwindow instance to the frame cache.
8814         (find_matching_subwindow): update for subwindow instance cache as
8815         a weak list.
8816         (update_widget_instances): ditto.
8817         (image_instance_type_to_mask):inlined.
8818         (free_frame_subwindow_instance_cache): new function. finalize all
8819         subwindows that are instantiated.
8820
8821         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
8822         of cachel information.
8823         (IMAGE_INSTANCE_DISPLAY_X):
8824         (IMAGE_INSTANCE_DISPLAY_Y):
8825         (IMAGE_INSTANCE_DISPLAY_WIDTH):
8826         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
8827         (XIMAGE_INSTANCE_DISPLAY_X):
8828         (XIMAGE_INSTANCE_DISPLAY_Y):
8829         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
8830         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
8831         remove subwindow_cachel structure and function references.
8832         (image_instance_type_to_mask): inline from glyphs.c
8833
8834         * redisplay.c (redisplay_frame): remove subwindow_cachel
8835         references.
8836
8837         * frame.h (struct frame): remove subwindow_cachels.
8838         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
8839
8840         * frameslots.h: add subwindow_instance_cache.
8841
8842         * window.c (replace_window): check subwindow cache of replacement.
8843         (window_unmap_subwindows_cache_mapper):
8844         (window_unmap_subwindows): new functions. Unmap all subwindows
8845         cached on this window.
8846         (mark_window_as_deleted): unmap all subwindows.
8847
8848 2000-04-27  Andy Piper  <andy@xemacs.org>
8849
8850         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
8851
8852         * glyphs-widget.c (widget_layout): return something.
8853         (layout_layout): return something. Fail if not initialized.
8854         (layout_query_geometry): ditto.
8855         (image_instantiator_native_layout): new function. Initialized the
8856         native layout type.
8857         (widget_instantiate): don't do layout stuff here.
8858
8859         * glyphs.c (instantiate_image_instantiator): reorded calling or
8860         instantiate and post_instantiate with layout in between.
8861         (image_instance_layout): be more selective about deciding whether
8862         the layout has been done or not.
8863
8864         * glyphs.h (struct image_instantiator_methods): return a value
8865         from layout_method.
8866
8867 2000-04-26  Andy Piper  <andy@xemacs.org>
8868
8869         * glyphs.c (allocate_image_instance): make initial width and
8870         height unspecified. Set initialized to 0.
8871
8872         * syscommctrl.h new file. Encapsulates commctrl.h.
8873
8874         * syswindows.h new file. Encapsulates windows.h.
8875
8876         * ntplay.c: use new syswindows.h and syscommctrl.h header.
8877         * nt.c: ditto.
8878         * console-msw.h: ditto.
8879
8880         * redisplay-tty.c (tty_output_display_block): remove layout references.
8881
8882         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
8883         window handle rather than just the frame.
8884
8885         * glyphs.c (mark_image_instance): remove layout references.
8886         (print_image_instance): ditto.
8887         (image_instance_equal): ditto.
8888         (image_instance_hash): ditto.
8889         (decode_image_instance_type): ditto.
8890         (encode_image_instance_type): ditto.
8891         (image_instantiate): ditto.
8892         (allocate_glyph): ditto.
8893         (Fimage_instance_height): ditto.
8894         (Fimage_instance_width): ditto.
8895         (update_subwindow): ditto.
8896
8897         * redisplay-x.c (x_output_display_block): recode for layouts as
8898         widgets.
8899
8900         * redisplay-output.c (redisplay_output_layout): recode for layouts
8901         as widgets.
8902         (compare_runes): remove layout references.
8903
8904         * redisplay-msw.c (mswindows_output_display_block): recode for
8905         layouts as widgets.
8906
8907         * glyphs-widget.c (image_instantiator_layout): remove
8908         layout_possible_dest_types.
8909         (layout_possible_dest_types): deleted.
8910
8911         * glyphs.h (image_instance_type): remove layout references.
8912         (struct Lisp_Image_Instance): ditto. Add initialized flag.
8913         (IMAGE_INSTANCE_INITIALIZED): new accessor.
8914         (XIMAGE_INSTANCE_INITIALIZED): ditto.
8915
8916 2000-04-25  Andy Piper  <andy@xemacs.org>
8917
8918         * glyphs-widget.c (image_instantiator_buttons):
8919         (image_instantiator_edit_fields):
8920         (image_instantiator_combo_box):
8921         (image_instantiator_scrollbar):
8922         (image_instantiator_progress_guage):
8923         (image_instantiator_tree_view):
8924         (image_instantiator_tab_control):
8925         (image_instantiator_labels):
8926         (image_instantiator_layout): call default post_instantiate method.
8927         (widget_post_instantiate): new function. Simply lays out the
8928         widgets.
8929
8930         * glyphs.h (struct image_instantiator_methods): add
8931         post_instantiate method.
8932
8933         * glyphs.c (instantiate_image_instantiator): add post_instantiate
8934         method calls.
8935
8936 2000-04-23  Andy Piper  <andy@xemacs.org>
8937
8938         * glyphs.h (struct image_instantiator_methods): add
8939         decode_domain_method.
8940         (struct Lisp_Image_Instance): remove subwindow frame - it can be
8941         derived from the domain.
8942         (IMAGE_INSTANCE_FRAME): new accessor.
8943         (XIMAGE_INSTANCE_FRAME): ditto.
8944
8945         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
8946         instead of _SUBWINDOW_FRAME.
8947         (finalize_image_instance): ditto.
8948         (Fimage_instance_foreground): ditto.
8949         (Fimage_instance_background): ditto.
8950         (image_instantiate): ditto.
8951         (update_subwindow_cachel): ditto.
8952         (update_subwindow): ditto.
8953         (unmap_subwindow): ditto.
8954         (map_subwindow): ditto
8955         (subwindow_instantiate): ditto.
8956         * glyphs-msw.c (mswindows_update_widget): ditto.
8957         (mswindows_progress_gauge_instantiate): ditto.
8958         (mswindows_tab_control_update): ditto.
8959         * glyphs-x.c (x_update_widget): ditto.
8960         (x_widget_instantiate): ditto.
8961         (x_tab_control_instantiate): ditto.
8962         (x_tab_control_update): ditto.
8963         * event-msw.c (mswindows_wnd_proc): ditto
8964
8965         * glyphs-widget.c (image_instantiator_layout): use
8966         subwindow_decode_domain.
8967         (image_instantiator_buttons): ditto.
8968         (image_instantiator_edit_fields): ditto.
8969         (image_instantiator_combo_box): ditto.
8970         (image_instantiator_scrollbar): ditto.
8971         (image_instantiator_progress_guage): ditto.
8972         (image_instantiator_tree_view): ditto.
8973         (image_instantiator_tab_control): ditto.
8974         (image_instantiator_labels): ditto.
8975         (image_instantiator_layout): ditto.
8976
8977         * glyphs.c: add instance error checking to many functions.
8978         (instantiate_image_instantiator): decode device from cache_domain.
8979         (image_instantiate): partially rewrite by using
8980         decode_image_instantiator_domain to determine what domain the
8981         instance needs to be cached in.
8982         (decode_image_instantiator_domain): new function. Determine what
8983         domain the image needs to be cached in.
8984         (check_window_subwindow_cache): new error checking function.
8985         (check_instance_cache_mapper): ditto.
8986         (check_image_instance_structure): ditto.
8987         (subwindow_decode_domain): new function. Encodes a window as a
8988         subwindow's cache domain.
8989         (image_instantiator_format_create): use it for text and
8990         subwindows.
8991
8992 2000-04-21  Andy Piper  <andy@xemacs.org>
8993
8994         * glyphs.c (image_instance_device): new function.
8995         (image_instance_frame): new function.
8996         (image_instance_window): new function.
8997         (image_instance_live_p): new function.
8998
8999         * window.c (mark_window_as_deleted): reset the subwindow_instance_
9000         cache to nil.
9001
9002         * glyphs.h (struct Lisp_Image_Instance): device->domain.
9003         (IMAGE_INSTANCE_DOMAIN): new accessor.
9004         (XIMAGE_INSTANCE_DOMAIN): ditto.
9005
9006         * glyphs-x.c (x_finalize_image_instance): device->domain.
9007
9008         * glyphs-msw.c (init_image_instance_geometry): device->domain.
9009         (mswindows_finalize_image_instance): ditto.
9010
9011         * glyphs-eimage.c (jpeg_instantiate): device->domain.
9012         (gif_instantiate): ditto.
9013         (png_instantiate): ditto.
9014         (tiff_instantiate): ditto.
9015
9016         * glyphs.c (instantiate_image_instantiator): use domain rather
9017         than device.
9018         (mark_image_instance): device -> domain.
9019         (print_image_instance): ditto.
9020         (finalize_image_instance): ditto.
9021         (image_instance_equal): ditto.
9022         (allocate_image_instance): ditto.
9023         (Fcolorize_image_instance): ditto.
9024         (query_string_geometry): ditto.
9025         (image_instantiate): ditto
9026         (query_string_font): ditto.
9027         (image_instantiate): ditto.
9028         (update_subwindow): ditto.
9029         (unmap_subwindow): ditto.
9030         (map_subwindow): ditto.
9031         (subwindow_instantiate): ditto.
9032
9033         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9034         (DOMAIN_FRAME): ditto.
9035         (DOMAIN_WINDOW): ditto.
9036         (DOMAIN_LIVE_P): ditto.
9037         (XDOMAIN_DEVICE): ditto.
9038         (XDOMAIN_FRAME): ditto.
9039         (XDOMAIN_WINDOW): ditto.
9040
9041         * specifier.c (Fvalid_specifier_domain_p): add image instances as
9042         a valid specifier domain.
9043
9044 2000-04-19  Andy Piper  <andy@xemacs.org>
9045
9046         * glyphs-widget.c (syms_of_glyphs_widget): remove
9047         widget-callback-current-channel.
9048         (vars_of_glyphs_widget): ditto.
9049         * glyphs.h: ditto
9050
9051         * gui.c (get_gui_callback): revert to previous behaviour.
9052
9053 2000-04-18  Andy Piper  <andy@xemacs.org>
9054
9055         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9056         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9057         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9058
9059         * glyphs.c (image_instance_equal): add margin_width.
9060         (image_instance_hash): ditto.
9061
9062         * glyphs-widget.c (widget_instantiate): deal with margin-width.
9063         (layout_query_geometry): ditto.
9064         (layout_layout): ditto.
9065         (syms_of_glyphs_widget): add margin-width.
9066         (image_instantiator_layout): allow margin-width.
9067
9068         * glyphs.c (update_widget_instances): make a normal function.
9069         (syms_of_glyphs): remove Qupdate_widget_instances.
9070         * glyphs.h: ditto.
9071
9072         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9073         so that we don't corrupt ideas about the last event or
9074         command. Remove widget-callback-current-channel fiddling.
9075         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9076
9077 2000-05-01  Martin Buchholz <martin@xemacs.org>
9078
9079         * XEmacs 21.2.33 is released.
9080
9081 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
9082
9083         * make-src-depend: Allow dots in header file name.
9084
9085 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
9086
9087         * mule-charset.h (struct charset_lookup): Add
9088         next_allocated_1_byte_leading_byte and
9089         next_allocated_2_byte_leading_byte.
9090         * mule-charset.c: Move above two variables so that those values
9091         will be dumped.
9092
9093 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
9094
9095         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9096         when string length is zero.
9097         (find_charsets_in_emchar_string): Ditto.
9098
9099 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
9100
9101         * lisp.h: extern Qdialog and Qmenubar.
9102
9103         * gui-x.c: added events.h.
9104                 also fixed typo which made the file uncompilable.
9105
9106         * general.c: Added Qmenubar and Qdialog
9107
9108 2000-04-28  Ben Wing  <ben@xemacs.org>
9109
9110         * frame-msw.c (mswindows_init_frame_1):
9111         * frame-msw.c (mswindows_mark_frame):
9112         * event-msw.c (mswindows_enqueue_dispatch_event):
9113         * console-msw.h:
9114         * console-msw.h (struct mswindows_frame):
9115         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9116         there are now three hash tables for callbacks.
9117         mswindows_enqueue_dispatch_event is no longer static.
9118
9119         * dialog-x.c (maybe_run_dbox_text_callback):
9120         * dialog-x.c (dbox_descriptor_to_widget_value):
9121         switch to new cons3 form for callbacks.
9122
9123         * glyphs-msw.c (mswindows_register_gui_item):
9124         * glyphs-msw.c (mswindows_widget_instantiate):
9125         * glyphs-msw.c (add_tree_item):
9126         * glyphs-msw.c (add_tab_item):
9127         new image instance parameter, so it can be passed to callback-ex.
9128         respect :callback-ex as well as :callback.
9129
9130         * glyphs-widget.c (VALID_GUI_KEYWORDS):
9131         add :callback-ex.
9132
9133         * glyphs.c (print_image_instance):
9134         prettify, e.g. now prints widget type.
9135
9136         * gui-x.h:
9137         certain funs have new image instance parameter.
9138
9139         * gui.c:
9140         * gui.c (get_gui_callback):
9141         * gui.c (gui_item_add_keyval_pair):
9142         * gui.c (gui_item_init):
9143         * gui.c (gui_add_item_keywords_to_plist):
9144         * gui.c (mark_gui_item):
9145         * gui.c (gui_item_hash):
9146         * gui.c (gui_item_equal):
9147         * gui.c (copy_gui_item):
9148         * gui.c (syms_of_gui):
9149         recognize callback-ex in a number of places.
9150         also, fix the annoying "can't get out of yes-no dialog" bug.
9151
9152         * gui.h:
9153         * gui.h (struct Lisp_Gui_Item):
9154         recognize callback-ex in a number of places.
9155
9156         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9157         new parameter in button_item_to_widget_value.
9158
9159         * glyphs-x.c (x_update_widget):
9160         * glyphs-x.c (x_button_instantiate):
9161         * glyphs-x.c (x_button_update):
9162         * glyphs-x.c (x_progress_gauge_instantiate):
9163         * glyphs-x.c (x_edit_field_instantiate):
9164         * glyphs-x.c (x_combo_box_instantiate):
9165         * glyphs-x.c (x_tab_control_instantiate):
9166         * glyphs-x.c (x_label_instantiate):
9167         new image instance parameter in various places.
9168
9169         * event-Xt.c:
9170         * event-Xt.c (enqueue_Xt_dispatch_event):
9171         this fun gets exported.
9172
9173         * gui-msw.c:
9174         * gui-msw.c (mswindows_handle_gui_wm_command):
9175         handle both :callback and :callback-ex, and generate our own
9176         event because it's one of the callback-ex arguments.
9177
9178         * gui-x.c:
9179         * gui-x.c (popup_selection_callback):
9180         handle both :callback and :callback-ex, and generate our own
9181         event because it's one of the callback-ex arguments.
9182         * gui-x.c (button_item_to_widget_value):
9183         * gui-x.c (gui_items_to_widget_values_1):
9184         * gui-x.c (gui_item_children_to_widget_values):
9185         * gui-x.c (gui_items_to_widget_values):
9186         new image instance parameter in various places.
9187
9188         * fns.c (Freplace_list):
9189         fix small typo in doc string.
9190
9191         * lisp.h:
9192         declare enqueue_Xt_dispatch_event.
9193
9194 2000-04-28  Ben Wing  <ben@xemacs.org>
9195
9196         * buffer.c:
9197         * buffer.c (Frecord_buffer):
9198         * buffer.c (syms_of_buffer):
9199         delete record-buffer-hook.
9200
9201         * fns.c:
9202         * fns.c (Freplace_list):
9203         * fns.c (syms_of_fns):
9204         new primitive replace-list.
9205
9206         * frameslots.h:
9207         slot for old buffer-alist.
9208
9209         * lisp.h:
9210         exfun replace-list.
9211
9212         * redisplay.c:
9213         * redisplay.c (redisplay_frame):
9214         * redisplay.c (syms_of_redisplay):
9215         * redisplay.c (vars_of_redisplay):
9216         new hook buffer-list-changed-hook.
9217         call it.
9218
9219 2000-04-27  Ben Wing  <ben@xemacs.org>
9220
9221         * extents.h: extern in_modeline_generation.
9222
9223         * redisplay.c (generate_formatted_string_db): set
9224         in_modeline_generation.
9225
9226         * extents.c (extent_changed_for_redisplay): don't mark redisplay
9227         flags if in modeline generation.  otherwise frame-modified-tick
9228         is ticked far too often.
9229         Declare in_modeline_generation.
9230
9231 2000-04-26  Ben Wing  <ben@xemacs.org>
9232
9233         * emacs.c (vars_of_emacs): document quick-build "error-checking"
9234         option.
9235         (vars_of_emacs): add quick-build as an error-checking option.
9236         A bit kludgy, but there doesn't seem much point in creating
9237         a real var for this.
9238
9239         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9240
9241 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9242
9243         * redisplay.h (struct display_line): Add a new variable,
9244         line_continuation.
9245
9246         * redisplay.c (create_text_block): Set dl->line_continuation if
9247         the line continues.
9248         (create_string_text_block): Ditto.
9249         (regenerate_window_incrementally): Use line_continuation instead
9250         of searching continuation glyph.
9251         (add_margin_runes): Call add_glyph_rune.
9252         (add_glyph_rune): Handle margin glyph.
9253
9254 2000-04-20  Martin Buchholz  <martin@xemacs.org>
9255
9256         * filelock.c (fill_in_lock_file_name):
9257         ANSIfy.
9258         Check for IS_ANY_SEP instead of '/'.
9259         (lock_file_1):
9260         Avoid generating gratuitous garbage.  Call user_login_name() directly.
9261         Never check errno without first seeing that system call failed.
9262         (unlock_file): Add GCPRO.
9263         (Flock_buffer): Fix docstring.
9264         (Ffile_locked_p): Fix docstring.  Add GCPRO.
9265
9266 2000-04-19  Martin Buchholz  <martin@xemacs.org>
9267
9268         * sysdep.c (get_pty_max_bytes):
9269         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9270         strings longer than 252 bytes.
9271
9272         * md5.c: Unconditionally include ANSI header <limits.h>
9273
9274         * glyphs-x.c (convert_EImage_to_XImage):
9275         * lisp-union.h (union Lisp_Object):
9276         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9277
9278 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9279
9280         * filelock.c (current_lock_owner): Remove unused variable o, p.
9281
9282 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
9283
9284         * callint.c: Remove multiply defined symbol Qlet
9285         (syms_of_callint): ditto.
9286
9287 2000-04-14  Andy Piper  <andy@xemacs.org>
9288
9289         * general.c (syms_of_general): add last-command, this-command, let
9290         and funcall.
9291
9292         * lisp.h: declare various symbols.
9293
9294         * glyphs.h: declare Qwidget_callback_current_channel;
9295
9296         * glyphs-widget.c (syms_of_glyphs_widget): add
9297         Qgui_callback_current_channel.
9298         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9299
9300         * gui-msw.c (mswindows_handle_gui_wm_command): bind
9301         widget-callback-current-channel when invoking the interactive
9302         arg. Also bind last-command and next-command when invoking the
9303         widget updates.
9304         * gui-x.c (popup_selection_callback): ditto.
9305
9306         * gui.c (get_gui_callback): massage args so that we are always
9307         calling eval. This allows us to add our own variable bindings
9308         outside.
9309
9310         * glyphs-x.c (x_button_instantiate): use
9311         gui_items_to_widget_values since this is GC safe.
9312         (x_progress_gauge_instantiate): ditto.
9313         (x_edit_field_instantiate): ditto.
9314         (x_label_instantiate): ditto.
9315
9316         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9317         (emacs_Xt_event_widget_focus_out): new function
9318         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9319         focus.
9320         (emacs_Xt_event_add_widget_actions): new function. add focus
9321         functions as actions.
9322         (init_event_Xt_late): use it.
9323
9324 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
9325
9326         * event-stream.c (Fdispatch_event): Doc fix.
9327
9328 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
9329
9330         * postgresql.c: Remove all references to PQsetenv*.
9331
9332         * postgresql.h: Remove references to PGsetenvHandler object.
9333         * lrecord.h (lrecord_type): Ditto.
9334
9335 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
9336
9337         * glyphs-msw.h (struct mswindows_image_instance_data): Added
9338         real_heigh and real_width members, and accessor macros for these.
9339
9340         * glyphs-msw.c (init_image_instance_geometry): New function.
9341         (init_image_instance_from_dibitmap): Use it.
9342         (mswindows_resource_instantiate): Use it.
9343         (init_image_instance_from_xbm_inline): Use it.
9344         (mswindows_initialize_image_instance_mask): Use real bitmap
9345         geometry.
9346         (mswindows_create_resized_bitmap): Ditto.
9347         (mswindows_create_resized_mask): Ditto.
9348
9349         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9350         and bitmap to their surface size.
9351
9352 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
9353
9354         * process-unix.c (unix_send_process): Guard against process MIA
9355         after Faccept_process_output.
9356
9357 2000-04-11  Ben Wing  <ben@xemacs.org>
9358
9359         * eval.c (unbind_to_hairy): fix brokenness introduced by
9360         nanosecond speed improvements.
9361
9362 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
9363
9364         * sunplay.c (init_device): To play sounds correctly, the device
9365         apparently needs to be initialized at least once by XEmacs.  Make
9366         it so.
9367
9368 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9369
9370         * redisplay.c (add_margin_runes): Add text image glyph
9371           handling.
9372
9373 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9374
9375         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9376         gcc is newer than 2.5.
9377
9378 2000-04-06  Colin Rafferty  <colin@xemacs.org>
9379
9380         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9381
9382         * fns.c (size_bit_vector):
9383         * alloc.c (size_vector):
9384         (make_vector_internal):
9385         (make_bit_vector_internal):
9386         (sweep_bit_vectors_1):
9387         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9388
9389 2000-04-06  Andy Piper  <andy@xemacs.org>
9390
9391         * gmalloc.c (malloc): undo previous change.
9392         (malloc): ditto.
9393         (free): ditto.
9394         (realloc): ditto.
9395
9396 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
9397
9398         * line-number.c (buffer_line_number): Revert to former version.
9399
9400 2000-04-06  Andy Piper  <andy@xemacs.org>
9401
9402         * gmalloc.c (malloc): add error checking.
9403         (malloc): ditto.
9404         (free): ditto.
9405         (realloc): ditto.
9406
9407         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9408         button_item_to_widget_value arg.
9409
9410         * glyphs-x.c (x_button_instantiate): add extra
9411         button_item_to_widget_value arg.
9412         (x_progress_gauge_instantiate): ditto.
9413         (x_edit_field_instantiate): ditto.
9414         (x_label_instantiate): ditto.
9415
9416         * gui-x.c (gui_items_to_widget_values_1): add extra
9417         button_item_to_widget_value arg.
9418         (button_item_to_widget_value): add extra menu_item_p arg.
9419
9420         * gui-x.h: change signature of button_item_to_widget_value.
9421
9422         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9423         button_item_to_widget_value arg.
9424
9425 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
9426
9427         * buffer.h (struct buffer): auto_save_modified should be long.
9428
9429 2000-04-05  Andy Piper  <andy@xemacs.org>
9430
9431         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9432         type.
9433         (button_query_geometry): give a little more room so that athena
9434         buttons fit.
9435
9436 2000-04-05  Andy Piper  <andy@xemacs.org>
9437
9438         * faces.c (complex_vars_of_faces): The widget face should inherit
9439         the font of the gui-element face.
9440
9441 2000-04-04  Andy Piper  <andy@xemacs.org>
9442
9443         * glyphs-x.c (x_button_update): new function. unconditionally
9444         update a button's state when the instance is dirty.
9445         (image_instantiator_format_create_glyphs_x): add x_button_update.
9446         (x_widget_instantiate): remove old resize cruft.
9447
9448 2000-04-02  Andy Piper  <andy@xemacs.org>
9449
9450         * frame.c (change_frame_size_1): The introduction of gutters means
9451         that we need to allow 0 as a potential frame dimension.
9452
9453 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9454
9455         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9456         image glyph if allow_cursor.
9457         (add_hscroll_rune): Don't allow cursor to border glyph.
9458         (create_text_block): Ditto.
9459
9460         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9461         text not in buffer.
9462         (redisplay_output_layout): Call ensure_face_cachel_complete for
9463         text image glyph.
9464
9465
9466 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
9467
9468         * redisplay.c (add_glyph_rune): Adding text image as text runes.
9469
9470         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9471         not in buffer
9472
9473         * redisplay-tty.c (tty_output_display_block): Delete the routine
9474         for text image glyph
9475         * redisplay-x.c (x_output_display_block): ditto
9476         * redisplay-msw.c (mswindows_output_display_block): ditto
9477
9478 2000-02-02  Mike Alexander  <mta@arbortext.com>
9479
9480         Note: Some of these were committed by accident as part of other
9481         patches.
9482
9483         * regex.c (regex_compile): Avoid compiler warnings.
9484
9485         * ntproc.c (sys_spawnve): Avoid compiler warnings.
9486
9487         * nt.h: Declare term_ntproc correctly.
9488
9489         * nt.c: Remove incorrect declaration of get_home_directory which
9490         is declared correctly in lisp.h.
9491
9492         * keymap.c (get_keyelt): Avoid compiler warnings.
9493         (raw_lookup_key_mapper): Avoid compiler warnings.
9494
9495         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9496
9497         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9498
9499         * filemode.c (mode_string): Avoid compiler warnings.
9500
9501         * file-coding.c (Fcoding_system_aliasee): Add return statement to
9502         avoid warning.
9503
9504         * events-mod.h: Undef some things that winuser.h defines differently.
9505
9506         * data.c (Faset): Avoid compiler warnings.
9507
9508         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9509
9510 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9511
9512         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9513         Fall through to simple beep on error.
9514         Replace "extern" by real header file.
9515
9516         * linuxplay.c: Use nativesound.h
9517         (play_sound_data): Return error code. Be less verbose on error.
9518
9519         * sunplay.c: Use nativesound.h
9520         (play_sound_data): Return error code. Be less verbose on error.
9521
9522         * ntplay.c: Use nativesound.h
9523         (play_sound_data): Return fake error code
9524
9525         * sgiplay.c: Use nativesound.h
9526         (play_sound_data): Return error code
9527
9528         * hpplay.c: Use nativesound.h, partially implement
9529         new error code. Break compilation until finished.
9530         (play_sound_data): error code.
9531
9532         * nativesound.h (play_sound_file):
9533           (play_sound_data): Prototype in new header.
9534
9535 2000-03-31  Andy Piper  <andy@xemacs.org>
9536
9537         * glyphs-widget.c: (button_query_geometry): new function. Adjust
9538         for toggle and radio buttons.
9539         (image_instantiator_buttons): use it.
9540
9541 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
9542
9543         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9544         (x_update_horizontal_scrollbar_callback): Return if no mirror was
9545         found. Scrollbar event probably belonged to some old config.
9546
9547 2000-03-31  Andy Piper  <andy@xemacs.org>
9548
9549         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9550         than 1.
9551         (initialize_widget_image_instance): default layout to
9552         LAYOUT_HORIZONTAL rather than 0.
9553         (widget_instantiate): reverse the item list at the end rather than
9554         every iteration.
9555         (layout_layout): re-code for the border text at the front of the
9556         item list rather than at the end.
9557         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9558         provided by the user.
9559         (widget_query_geometry): comment.
9560
9561 2000-03-30  Andy Piper  <andy@xemacs.org>
9562
9563         * glyphs-widget.c (image_instantiator_layout): allow standard
9564         widget keywords in layouts.
9565
9566         * gutter.c (output_gutter): cope with nil gutter contents.
9567
9568         * frame.c (Fset_frame_properties): add gutter docs.
9569
9570 2000-03-29  Andy Piper  <andy@xemacs.org>
9571
9572         * toolbar-msw.c (TBSTYLE_FLAT): add.
9573         (mswindows_output_toolbar): minor fiddling.
9574
9575 2000-03-29  Andy Piper  <andy@xemacs.org>
9576
9577         * gutter.c (output_gutter): force gutter size recalculation if
9578         what we are trying to display won't fit.
9579         (update_gutter_geometry): new function. A per-gutter version of
9580         update_frame_gutter_geometry.
9581         (update_frame_gutter_geometry): use it.
9582         (redraw_exposed_gutter): add extra debugging output.
9583
9584 2000-03-28  Mike Alexander  <mta@arbortext.com>
9585
9586         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9587         (pdump_file_unmap): Implement it on Windows
9588         (pdump_file_get): Save alocated handles for pdump_file_unmap
9589
9590 2000-03-28  Andy Piper  <andy@xemacs.org>
9591
9592         * gui.c (get_gui_callback): treat Quit specially.
9593
9594 2000-03-27  Andy Piper  <andy@xemacs.org>
9595
9596         * glyphs.c (image_instantiate): be careful to check in the same
9597         way we assigned.
9598
9599 2000-03-27  Didier Verna  <didier@xemacs.org>
9600
9601         * config.h.in: define the proper SMART_INCLUDE macro.
9602         handle renaming of `foo_h_path' to `foo_h_file'.
9603
9604         * database.c: ditto.
9605
9606         * emacs.c: ditto.
9607
9608         * linuxplay.c: ditto.
9609
9610         * terminfo.c: ditto.
9611
9612         * tooltalk.h: ditto.
9613
9614 2000-03-27  Andy Piper  <andy@xemacs.org>
9615
9616         * glyphs-msw.c (mswindows_update_widget): make sure the widget
9617         gets updated whenever the face might have changed.
9618
9619 2000-03-26  Mike Alexander  <mta@arbortext.com>
9620
9621         * dumper.c (pdump_resource_free): Fix the comment.
9622
9623 2000-03-21  Olivier Galibert  <galibert@pobox.com>
9624
9625         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
9626
9627 2000-03-22  Mike Alexander  <mta@arbortext.com>
9628
9629         * dumper.c: Include Windows headers on Windows
9630         (pdump_resource_free): Add a body to the function
9631         (pdump_load): exe_name -> exe_path and add some comments.
9632
9633 2000-03-25  Mike Alexander  <mta@arbortext.com>
9634
9635         * gui.c (copy_gui_item_tree): Return a value in all cases
9636
9637 2000-03-21  Didier Verna  <didier@xemacs.org>
9638
9639         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
9640         lwlib/config.h.in.
9641         (SMART_INCLUDE): new macro.
9642         (POSTGRES_INCLUDE): new macro to include postgresql headers from
9643         the proper location.
9644
9645         * postgresql.c: use it.
9646
9647         * inline.c: ditto.
9648
9649 2000-03-24  Andy Piper  <andy@xemacs.org>
9650
9651         * gutter.c (redraw_exposed_gutters): must be "in display" when we
9652         do this.
9653
9654 2000-03-24  Andy Piper  <andy@xemacs.org>
9655
9656         * redisplay-output.c (compare_runes): use image_instance_changed
9657         to detect changes. Do not depend on glyphs_changed, only depend on
9658         dirtiness.
9659          (redisplay_output_layout): add debug messages.
9660         (compare_runes): ditto.
9661
9662         * glyphs.h: declare new functions.
9663         (struct Lisp_Image_Instance): remove percent and associated
9664         accessors.
9665
9666         * gui.h: declare new copying functions.
9667
9668         * gui.c (copy_gui_item_tree): new function.
9669         (copy_gui_item): new function.
9670         (gui_item_id_hash): revert to standard hash.
9671         (gui_item_hash): ditto.
9672         (gui_item_hash_internal): deleted.
9673         (mark_gui_item): mark value.
9674         (gui_item_add_keyval_pair): add value.
9675         (gui_item_init): ditto.
9676         (gui_add_item_keywords_to_plist): ditto.
9677         (gui_item_equal): ditto.
9678         (syms_of_gui): add Q_value.
9679
9680         * glyphs-x.c (x_progress_gauge_update): use pending items and
9681         value for setting the state.
9682         (x_update_widget): don't set items from pending here.
9683
9684         * glyphs-widget.c (update_widget): update items here.
9685         (progress_gauge_set_property): use items for storing value. Put
9686         new value in pending items.
9687
9688         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
9689         items for new value. Convert percent -> value.
9690         (mswindows_tab_control_update): don't update items here.
9691
9692         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
9693         (update_subwindow): ditto.
9694         (image_instance_changed): new function. Compare hash values and
9695         past and present widget items.
9696         (image_instantiate): We more careful about where we instantiate
9697         things.
9698         (image_instantiate): add error checking.
9699
9700         * gutter.c (syms_of_gutter): use -hook.
9701
9702 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
9703
9704         * console-tty.c (Fset_console_tty_input_coding_system): Use
9705         Qkeyboard.
9706         (Fset_console_tty_output_coding_system): Use Qterminal.
9707         (tty_init_console): Use Qkeyboard and Qterminal.
9708
9709 2000-03-21  Ben Wing  <ben@xemacs.org>
9710
9711         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
9712         From Mike Alexander <mta@arbortext.com>.
9713
9714 2000-03-21  Ben Wing  <ben@xemacs.org>
9715
9716         * event-msw.c (mswindows_need_event): Horrible kludge to fix
9717         process brokenness.  Proper implementation to come.
9718         * callproc.c:
9719         Rename call-process-internal to old-call-process-internal.
9720         New impl. in process.el.
9721
9722 2000-03-21  Martin Buchholz  <martin@xemacs.org>
9723
9724         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
9725
9726 2000-03-20  Andy Piper  <andy@xemacs.org>
9727
9728         * glyphs.c (full_list_hash): make hashes of the same elements in
9729         different orders return different values.
9730
9731 2000-03-20  Martin Buchholz <martin@xemacs.org>
9732
9733         * XEmacs 21.2.32 is released.
9734
9735 2000-03-20  Martin Buchholz  <martin@xemacs.org>
9736
9737         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
9738         (DFC_MALLOC_USE_CONVERTED_DATA):
9739         Add aliasing-safe casts to allow use with char* or unsigned char*
9740         lvalues.
9741
9742         * eldap.c (Fldap_open):
9743         (Fldap_search_basic):
9744         (Fldap_add):
9745         (Fldap_modify):
9746         Make C++-compilable.
9747         Make sure GCPRO'ed variables are initialized.
9748         Use temp variables to avoid repeated calls to Flength.
9749
9750 2000-03-16  Martin Buchholz  <martin@xemacs.org>
9751
9752         * sysfile.h:
9753         Make sure PATH_MAX is always defined.
9754         Include limits.h for PATH_MAX.
9755         Deprecate use of MAXPATHLEN.
9756
9757 2000-03-10  Martin Buchholz  <martin@xemacs.org>
9758
9759         * emacs.c: Add reinit_vars_of_fileio.
9760         * symsinit.h: Add reinit_vars_of_fileio.
9761         * fileio.c (reinit_vars_of_fileio): New.
9762         * fileio.c (Fmake_temp_name):
9763         Initialize temp_name random number from microseconds to make
9764         collisions even less likely.  Initialize always at process startup
9765         time.  (make-temp-name) used to return the same file name twice in
9766         a row when PDUMP.
9767         Random stylistic fiddling.
9768         Comment fixes.
9769
9770 2000-03-20  Andy Piper  <andy@xemacs.org>
9771
9772         * glyphs.c (image_instantiate): allow text glyphs to be
9773         instantiated in the minibuffer window.
9774
9775 2000-03-19  Andy Piper  <andy@xemacs.org>
9776
9777         * glyphs.c (image_instance_hash): be careful about which items we
9778         hash on.
9779
9780         * glyphs-widget.c (tab_control_set_property): record into pending
9781         items rather than the actual items.
9782
9783         * glyphs-x.c (x_update_widget): use pending items to update with.
9784
9785         * glyphs-msw.c (mswindows_tab_control_update): use pending items
9786         to update with.
9787
9788         * glyphs.c (mark_image_instance): mark pending items.
9789
9790         * window.c (Fset_window_configuration): record the buffer.
9791         (Fselect_window): totally revert previous change which breaks many
9792         things.
9793
9794 2000-03-18  Andy Piper  <andy@xemacs.org>
9795
9796         * glyphs-msw.c (mswindows_tab_control_update): force selected
9797         item.
9798
9799         * glyphs.c (image_instantiate): don't allow the minibuffer as a
9800         window domain cache, otherwise we get inconsistencies at
9801         startup. There is something fishy at startup which can lead to the
9802         minibuffer being the selected window when the gutter content is
9803         instantiated.
9804
9805         * gui.c (parse_gui_item_tree_list): add probably unnecessary
9806         gcpros.
9807         (parse_gui_item_tree_children): ditto.
9808         (parse_gui_item_tree_item): ditto.
9809
9810         * glyphs.c (Fupdate_widget_instances): return something.
9811
9812 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9813
9814         * window.c (Fselect_window): Undo 2000-03-17 change.
9815
9816 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
9817
9818         * postgresql.c (Fpq_setenv): Remove this turkey when linking
9819         against v7.0 libraries.  Insta-coredump city until the postgres
9820         folks fix it.
9821
9822 2000-03-17  Andy Piper  <andy@xemacs.org>
9823
9824         * faces.c (complex_vars_of_faces): don't give the widget face an
9825         inherited background pixmap.
9826
9827         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
9828         selected item.
9829
9830         * event-stream.c (Fdispatch_non_command_events): return something.
9831
9832         * gutter.c (output_gutter): use widget face.
9833         (clear_gutter): ditto.
9834
9835         * NEWS: adjust again.
9836
9837         * window.c (Fselect_window): make sure this runs to completion to
9838         avoid oddities with Fset_window_configuration.
9839         (Fcurrent_window_configuration): in general do not save the
9840         minibuffer as the selected window.
9841
9842         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
9843
9844 2000-03-16  Olivier Galibert  <galibert@pobox.com>
9845
9846         * emacs.c (Frunning_temacs_p): Revert previous patch.
9847         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
9848
9849 2000-03-16  Andy Piper  <andy@xemacs.org>
9850
9851         * glyphs-x.c (x_tab_control_update): if no widget values then
9852         return.
9853
9854         * NEWS: update for new features.
9855
9856         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
9857         synthetic event to the native system.
9858         (reinit_vars_of_event_Xt): set force_event_pending to
9859         emacs_Xt_force_event_pending.
9860
9861         * events.h (struct event_stream): add force_event_pending.
9862
9863         * specifier.c (recompute_one_cached_specifier_in_window): add
9864         comment.
9865
9866         * redisplay.c (redisplay_frame): don't call
9867         update_frame_subwindows. Reset subwindow cachels when
9868         subwindows_changed, removing this was an optimization too far.
9869
9870         * redisplay-output.c (compare_runes): reorganize so that we catch
9871         glyph changes when we want them. Set optimize_output when this
9872         would help layouts.
9873         (redisplay_output_layout): remove frame_really_changed, use
9874         optimize_output instead.
9875
9876         * redisplay-msw.c (mswindows_output_display_block): reset
9877         optimize_output after outputting a glyph.
9878         * redisplay-x.c (x_output_display_block): ditto.
9879         * redisplay-tty.c (tty_output_display_block): ditto.
9880
9881         * gutter.c: (specifier_vars_of_gutter): use new spec changed
9882         functions.
9883         (gutter_specs_changed): do specific gutter positions.
9884         (top_gutter_specs_changed): new function. Only update the
9885         specified gutter specs.
9886         (bottom_gutter_specs_changed): ditto.
9887         (left_gutter_specs_changed): ditto.
9888         (right_gutter_specs_changed): ditto.
9889
9890         * gui.c (gui_item_hash_internal): new function, does a real hash.
9891         (gui_item_id_hash): use it.
9892         (gui_item_hash): hash the eval'ed gui_item.
9893
9894         * gui-x.c (popup_selection_callback): send an eval event to call
9895         Fupdate_widget_instances.
9896
9897         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
9898         to call Fupdate_widget_instances.
9899
9900         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
9901         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
9902
9903         * glyphs.c: (update_frame_subwindows): deleted.
9904         (Fupdate_widget_instances): new function for updating the dirty
9905         state of widgets that might have changed.
9906         (syms_of_glyphs): add Qupdate_widget_instances.
9907         (full_list_hash): hash a list completely.
9908         (image_instance_hash): use it for items and properties.
9909
9910         * frame-msw.c (mswindows_size_frame_internal): remove unused
9911         variable.
9912
9913         * faces.h (struct face_cachel): fix comment.
9914
9915         * event-stream.c (Fdispatch_non_command_events): new
9916         function. Process non-command events, forcing an event cycle
9917         beforehand.
9918         (syms_of_event_stream): declare.
9919         (event_stream_force_event_pending): new function. Force an event
9920         on the native event queue so that an event cycle will occur next
9921         time we check.
9922
9923         * event-msw.c:
9924         (struct ntpipe_shove_stream):
9925         (mswindows_enqueue_dispatch_event):
9926         (mswindows_dequeue_dispatch_event):
9927         (mswindows_cancel_dispatch_event):
9928         (mswindows_pump_outstanding_events):
9929         (mswindows_drain_windows_queue):
9930         (mswindows_handle_paint):
9931         (mswindows_wnd_proc):
9932         (mswindows_key_to_emacs_keysym):
9933         (get_process_input_waitable):
9934         (emacs_mswindows_delete_stream_pair): re-indent file.
9935         (mswindows_need_event): do not process further fds if the windows
9936         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
9937         fixes the 100% cpu problem.
9938         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
9939
9940 2000-03-15  Olivier Galibert  <galibert@pobox.com>
9941
9942         * alloc.h: New.
9943         * dumper.h: New.
9944         * dumper.c: New.
9945
9946         * emacs.c: Moved dump file searching to dumper.c.
9947         (Frunning_temacs_p): Fixed.
9948
9949         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
9950         last_lrecord_type_index_assigned.
9951
9952 2000-02-20  Olivier Galibert  <galibert@pobox.com>
9953
9954         * symsinit.h: Added reinit parameter to init_console_stream
9955         declaration.
9956
9957         * lisp.h: Added file parameter to pdump_load declaration.
9958
9959         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
9960         support.  Added dump file searching.
9961
9962         * config.h.in: Added EMACS_PROGNAME.
9963
9964         * console-stream.c (init_console_stream): Fix reinitialisation
9965         when running from temacs.
9966
9967         * alloc.c (pdump): Add id support.
9968         (pdump_load): Add file parameter and signature/id support.
9969
9970         * Makefile.in.in: Add full pdump support.
9971
9972 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
9973
9974         * postgresql.c: Update documentation to reflect latest code
9975         status.
9976         (print_result): Show tuple counts in printed representation when
9977         appropriate.
9978         (Fpq_put_nbytes): MULE-ize.
9979         (Fpq_get_line_async): Ditto.
9980
9981 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
9982
9983         * postgresql.c (Fpq_lo_import): Fix return value.
9984         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
9985
9986 2000-03-13  Ben Wing  <ben@xemacs.org>
9987
9988         * alloc.c (pdump_load):
9989         Fix compile warning under mswin.
9990
9991 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
9992
9993         * postgresql.c: Mule-ization, bug fixes.
9994         Use PG_CODING to encapsulate coding system name changes.
9995         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
9996         (pg-coding-system): Create.
9997
9998         (Fpq_conn_defaults): Mule-ize.
9999         (Fpq_connectdb): Mule-ize & bug fix.
10000         (Fpq_connect_start): Mule-ize.
10001         (Fpq_set_client_encoding): Mule-ize.
10002         (Fpq_finish): Document `DEAD' connection status.
10003         (Fpq_clear): Ditto.
10004         (Fpq_pgconn): Mule-ize.
10005         (Fpq_exec): Mule-ize & bug fix.
10006         (Fpq_send_query): Ditto.
10007         (Fpq_get_result): Ditto.
10008         (Fpq_res_status): Mule-ize.
10009         (Fpq_result_error_message): Mule-ize.
10010         (Fpq_ntuples): fix comments.
10011         (Fpq_fname): Mule-ize.
10012         (Fpq_fnumber): Mule-ize.
10013         (Fpq_ftype): fix comments.
10014         (Fpq_get_value): Mule-ize.
10015         (Fpq_cmd_status): Ditto.
10016         (Fpq_cmd_tuples): Ditto.
10017         (Fpq_oid_value): Ditto.
10018         (Fpq_notifies): Ditto.
10019         (Fpq_lo_import): Ditto.
10020         (Fpq_lo_export): Ditto.
10021         (Fpq_get_line): Ditto.
10022         (Fpq_put_line): Mule-ize and bug fix.
10023         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10024
10025 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10026
10027         * postgresql.c (vars_of_postgresql): Mule-ize.
10028         (Fpq_conn_defaults): Ditto.
10029
10030 2000-03-12  Ben Wing  <ben@xemacs.org>
10031
10032         * alloc.c (Fmake_byte_code):
10033         * alloc.c (debug_string_purity_print):
10034         * alloc.c (pdump_backtrace):
10035         * alloc.c (pdump_get_indirect_count):
10036         * alloc.c (pdump_register_sub):
10037         * alloc.c (pdump_register_object):
10038         * alloc.c (pdump_register_struct):
10039         * alloc.c (pdump_dump_data):
10040         * alloc.c (pdump_reloc_one):
10041         Minor cleanups.
10042
10043         * console-msw.c:
10044         * console-msw.c (GetConsoleHwnd):
10045         * console-msw.c (msw_hide_console):
10046         * console-msw.c (msw_show_console):
10047         * console-msw.c (msw_ensure_console_buffered):
10048         * console-msw.c (msw_output_console_string):
10049         * console-msw.c (console_type_create_mswindows):
10050
10051         a) Added functions to manipulate the console window for use with
10052         shell support.
10053
10054         b) Added support for writing text to the console, which is now
10055         used under Windows when xemacs is not being run non-interactively,
10056         to write text that would otherwise be destined for stdout because
10057         under these circumstances, text written to stdout tends to
10058         disappear and not be seen.
10059
10060         * console-msw.h:
10061         * event-Xt.c:
10062         * event-Xt.c (x_event_to_emacs_event):
10063         * event-Xt.c (describe_event_window):
10064         * events-mod.h (XEMACS_MOD_CONTROL):
10065         * events.c:
10066         * events.c (Fmake_event):
10067         * events.c (character_to_event):
10068         * events.c (event_to_character):
10069         * events.c (format_event_object):
10070         * events.c (Fevent_modifiers):
10071         * events.h:
10072         * events.h (struct key_data):
10073         * events.h (struct button_data):
10074         * events.h (struct misc_user_data):
10075         * frame-x.c (Fcde_start_drag_internal):
10076         * frame-x.c (Foffix_start_drag_internal):
10077         * gpmevent.c (Freceive_gpm_event):
10078         * keymap.c:
10079         * keymap.c (bucky_sym_to_bucky_bit):
10080         * keymap.c (control_meta_superify):
10081         * keymap.c (make_key_description):
10082         * keymap.c (keymap_lookup_directly):
10083         * keymap.c (create_bucky_submap):
10084         * keymap.c (keymap_store):
10085         * keymap.c (define_key_check_and_coerce_keysym):
10086         * keymap.c (define_key_parser):
10087         * keymap.c (define_key_alternate_name):
10088         * keymap.c (Fdefine_key):
10089         * keymap.c (raw_lookup_key_mapper):
10090         * keymap.c (struct map_keymap_unsorted_closure):
10091         * keymap.c (map_keymap_unsorted_mapper):
10092         * keymap.c (map_keymap_sort_predicate):
10093         * keymap.c (map_keymap_sorted):
10094         * keymap.c (accessible_keymaps_mapper_1):
10095         * keymap.c (where_is_recursive_mapper):
10096         * keymap.c (describe_map_mapper):
10097         * keymap.c (describe_map_sort_predicate):
10098         * keymap.c (describe_map):
10099         * keymap.c (complex_vars_of_keymap):
10100         And a number of other files, the key modifier preprocessor
10101         constants that xemacs uses have names that conflict with constants
10102         defined under MS Windows for other purposes, so they were renamed
10103         to begin with the prefix XEMACS_. The variables that hold such
10104         modifiers were changed to consistently be of type int to fix
10105         various compile warnings.
10106
10107         * console.c (complex_vars_of_console):
10108         * device.c:
10109         * device-msw.c:
10110         * device-msw.c (mswindows_finish_init_device):
10111         * device-msw.c (msw_get_workspace_coords):
10112         * device-msw.c (mswindows_device_system_metrics):
10113         and various other files, added support for a new
10114         device property called offset-workspace which returns the position
10115         of the upper left corner of the workspace area and goes along with
10116         the existing size-workspace property.
10117
10118         * dialog-msw.c:
10119         * dialog-msw.c (push_bufbyte_string_as_unicode):
10120         * dialog-msw.c (mswindows_popup_dialog_box):
10121         Added support for XEmacs-style accelerator specifications in
10122         button text.  Note: I didn't add support for this under X Windows,
10123         and somebody needs to do this.
10124
10125         * dialog.c:
10126         * dialog.c (Fpopup_dialog_box):
10127         Documented the support for accelerators that was just mentioned.
10128
10129         editfns.c (get_home_directory): Changed behavior under Windows
10130         when HOME not defined; former behavior was irretrievably broken.
10131
10132         * emacs.c:
10133         * emacs.c (main_1):
10134         * emacs.c (main):
10135         * minibuf.c (clear_echo_area_internal):
10136         * minibuf.c (echo_area_append):
10137         * print.c:
10138         * print.c (std_handle_out_external):
10139         * print.c (std_handle_out_va):
10140         * print.c (fatal):
10141         * print.c (write_string_to_stdio_stream):
10142         * print.c (output_string):
10143         * print.c (debug_print):
10144         * print.c (debug_backtrace):
10145         * print.c (debug_short_backtrace):
10146         Cleaned up the code that prints text to stdout so that this can be
10147         changed to output into a console window instead under MS Windows,
10148         as described above.
10149
10150         * eval.c:
10151         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10152         * eval.c (internal_catch):
10153         * eval.c (unwind_to_catch):
10154         * eval.c (throw_or_bomb_out):
10155         * eval.c (condition_case_1):
10156         * eval.c (signal_1):
10157         * eval.c (check_error_state_sanity):
10158         * eval.c (call_with_suspended_errors_1):
10159         * eval.c (call_with_suspended_errors):
10160         * eval.c (reinit_vars_of_eval):
10161         Added code to catch throw loops and check for a pesky bug that may
10162         be gone now.
10163
10164         * event-msw.c:
10165         * event-msw.c (key_needs_default_processing_p):
10166         * event-msw.c (mswindows_wnd_proc):
10167         * event-msw.c (mswindows_modifier_state):
10168         * event-msw.c (emacs_mswindows_quit_p):
10169         * event-msw.c (vars_of_event_mswindows):
10170         a) Added support for using the alt key to select menu items as is
10171         standard under MS Windows.  This is controlled using the variable
10172         menu-accelerator-enabled, just like under X Windows.  There is an
10173         option on the options menu to turn this support on.  I really
10174         think that it should be on by default under Windows, but I'm not
10175         going to make this change yet.
10176
10177         b)  Added support for dynamic display size changes under Windows.
10178
10179         * event-stream.c:
10180         * event-stream.c (maybe_echo_keys):
10181         * event-stream.c (Fnext_event):
10182         * event-stream.c (command_builder_find_leaf):
10183         * event-stream.c (lookup_command_event):
10184         * event-stream.c (execute_command_event):
10185         * event-stream.c (pre_command_hook):
10186         * event-stream.c (post_command_hook):
10187         * event-stream.c (syms_of_event_stream):
10188         * event-stream.c (vars_of_event_stream):
10189         * event-stream.c (complex_vars_of_event_stream):
10190         * events.h (struct command_builder):
10191
10192         a) Tried to clean up a little bit the horribly written x-specific
10193         accelerator code that crept into this file.  I moved this code
10194         into menubar-x.c where it belongs. I also needed to move the
10195         command builder structure into the file events.h because it is
10196         accessed directly by this accelerator code.  What I didn't do, but
10197         which should be done at some point, is to properly abstract this
10198         code using device methods instead of the kludgy way that it
10199         currently hooks into the event code.
10200
10201         b) Added the lisp variables this-command-properties and
10202         last-command- properties, which should be used to synchronize two
10203         adjacent commands in preference to playing games with the variable
10204         this-command, which is typically what happens.
10205
10206         c) Added some slightly nasty code to hook into the lisp support
10207         for shifted- motion-key selection.  This is actually necessary for
10208         somewhat complicated reasons, which are described in
10209         simple.el. (NB: I think the proper thing would be to have the code
10210         that calls the pre and post command hooks also call out to generic
10211         lisp functions in simple.el, where all built-in stuff could be
10212         added.  I will think about this more.)
10213
10214         * event-unixoid.c (poll_fds_for_input):
10215         * lread.c (readchar):
10216         * redisplay-tty.c (tty_clear_frame):
10217         * redisplay-x.c (x_get_gc):
10218         * signal.c (interrupt_signal):
10219         And a whole bunch of other files: fixed up places that printed
10220         directly to stderr to instead call the function stderr_out so that
10221         the changes I made under Windows work correctly.
10222
10223         * filemode.c (mode_string):
10224         Warning fixes.
10225
10226         * frame-msw.c:
10227         * frame-msw.c (mswindows_size_frame_internal):
10228         Fixed the computation of frame size and position to keep the frame
10229         within the workspace area, rather than within the physical
10230         dimensions of the screen, so that the frame doesn't overlap window
10231         manager decorations, such as the start menu and toolbar, typically
10232         at the bottom of the screen.
10233
10234         * frame.c (vars_of_frame):
10235         Changed the default frame title format under MS Windows to consist
10236         of buffername-XEmacs, which is standard under MS Windows.  I think
10237         it might be a good idea to change this everywhere because I think
10238         it is superior to the current frame title format, but this is the
10239         kind of change that is likely to cause some people to get annoyed,
10240         so I'm not making it.
10241
10242         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10243
10244         * gui-msw.c (mswindows_handle_gui_wm_command):
10245         Fixed compile warnings.
10246
10247         * gui-x.c:
10248         * gui-x.c (strdup_and_add_accel):
10249         * gui-x.c (button_item_to_widget_value):
10250         * gui-x.h:
10251         Added code to automatically put an accelerator onto the beginning
10252         of menu items that don't have one as is now the standard, and is
10253         described more later.  Also fixed things so that the menu item
10254         name can be an evaluated expression, again a new standard.
10255
10256         * gui.c:
10257         * gui.c (gui_item_add_keyval_pair):
10258         * gui.c (make_gui_item_from_keywords_internal):
10259         * gui.c (gui_add_item_keywords_to_plist):
10260         * gui.c (gui_item_accelerator):
10261         * gui.c (gui_name_accelerator):
10262         * gui.c (gui_item_included_p):
10263         * gui.c (gui_item_display_flush_left):
10264         * gui.c (gui_item_display_flush_right):
10265         * gui.c (parse_gui_item_tree_item):
10266         * gui.c (parse_gui_item_tree_children):
10267         * gui.c (parse_gui_item_tree_list):
10268         Mule-ized.  Cleanup.  GCPRO addition.
10269
10270         * line-number.c (buffer_line_number):
10271         * lisp.h:
10272         * lisp.h (EMACS_INT_MAX):
10273         Added the manifest constant EMACS_INT_MIN corresponding to the
10274         existing constant EMACS_INT_MAX.  This is partially to fix compile
10275         warnings under Windows, and partly for cleanliness.
10276
10277         * menubar-msw.c:
10278         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10279         * menubar-msw.c (msw_translate_menu_or_dialog_item):
10280         * menubar-msw.c (displayable_menu_item):
10281         * menubar-msw.c (populate_menu_add_item):
10282         * menubar-msw.c (populate_or_checksum_helper):
10283         * menubar-msw.c (populate_menu):
10284         * menubar-msw.c (update_frame_menubar_maybe):
10285         * menubar-msw.c (prune_menubar):
10286         * menubar-msw.c (msw_char_is_accelerator):
10287         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10288         * menubar-msw.c (mswindows_handle_wm_command):
10289         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10290         * menubar-msw.c (mswindows_handle_wm_initmenu):
10291         * menubar-msw.c (mswindows_update_frame_menubars):
10292         * menubar-msw.c (mswindows_free_frame_menubars):
10293         * menubar-msw.c (mswindows_popup_menu):
10294         Fixed a bug in handling accelerators where an extra character
10295         would be displayed in the menu item.  Also generalized the
10296         function displayable_menu_item because it is now used by the
10297         dialog box code as well.  And finally, added code in the functions
10298         that create the menubar to extract a list of accelerators for the
10299         top level menubar, which is used in the event code to determine
10300         whether a particular alt-key combination should be used to invoke
10301         a menu item, or should be passed through to access the standard
10302         XEmacs keymap binding for this key combination.
10303
10304         Much needed GCPROing.
10305
10306         * menubar-x.c:
10307         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10308         * menubar-x.c (menu_item_descriptor_to_widget_value):
10309         * menubar-x.c (restore_in_menu_callback):
10310         * menubar-x.c (x_popup_menu):
10311         * menubar-x.c (menu_move_up):
10312         * menubar-x.c (menu_move_down):
10313         * menubar-x.c (menu_move_left):
10314         * menubar-x.c (menu_move_right):
10315         * menubar-x.c (menu_select_item):
10316         * menubar-x.c (command_builder_operate_menu_accelerator):
10317         * menubar-x.c (menu_accelerator_junk_on_error):
10318         * menubar-x.c (command_builder_find_menu_accelerator):
10319         * menubar-x.c (Faccelerate_menu):
10320         * menubar.h:
10321         Moved a whole bunch of code here that was previously in
10322         event-stream.c as described above.  There is also code connected
10323         to the new standard of adding an accelerator to the beginning of
10324         menu items that don't have one as described above and below.
10325
10326         * menubar.c:
10327         * menubar.c (menu_parse_submenu_keywords):
10328         * menubar.c (Fmenu_find_real_submenu):
10329         * menubar.c (Fnormalize_menu_item_name):
10330         * menubar.c (syms_of_menubar):
10331         * menubar.c (vars_of_menubar):
10332         * menubar.c (complex_vars_of_menubar):
10333
10334         a) Cleaned up a bunch of documentation and improved it.
10335
10336         b) XEmacs now automatically adds an accelerator onto the beginning
10337         of any menu items that don't have one.  I did this because there
10338         will inevitably be some menu items on the main menubar that don't
10339         have accelerators on them because the package that adds that
10340         particular menu item hasn't yet been fixed up to have accelerators
10341         in them and it looked rather strange to have some items with and
10342         some items without accelerators, especially since even in items
10343         without accelerators, you can, at least under windows, still
10344         access the item through an accelerator corresponding to the first
10345         character in the item's name.  If people don't like this behavior,
10346         I can add a variable to turn it off optionally, but I'm not sure
10347         this is a good idea because we really do need to have accelerators
10348         on all of the menu items, and if a package doesn't like the
10349         accelerators being put on the first character, then it should put
10350         the accelerators where they belong.
10351
10352         c) I made a behavior change, which is that the descriptor that
10353         specifies the text of the menu item, which formerly was just a
10354         string, can now also be an evaluated expression.  This makes this
10355         descriptor parallel with all of the others, which could also be
10356         evaluated expressions.  This also obviates the need for the
10357         keyword :label, which was previously listed in the documentation
10358         as unimplemented, and which was for the same purpose.
10359
10360         d) GCPROing.
10361
10362         * ntproc.c:
10363         * ntproc.c (new_child):
10364         * ntproc.c (sys_spawnve):
10365         * ntproc.c (find_child_console):
10366         * ntproc.c (sys_kill):
10367         Fixed compile warnings.  By the way, this file should really go
10368         away entirely, and this will happen as soon as Kirill makes his
10369         final round of process cleanups, which affect the function
10370         call-process.
10371
10372         * process-nt.c:
10373         * process-nt.c (struct nt_process_data):
10374         * process-nt.c (find_process_from_pid):
10375         * process-nt.c (send_signal_the_nt_way):
10376         * process-nt.c (enable_child_signals):
10377         * process-nt.c (find_child_console):
10378         * process-nt.c (send_signal_the_95_way):
10379         * process-nt.c (nt_finalize_process_data):
10380         * process-nt.c (ensure_console_window_exists):
10381         * process-nt.c (nt_create_process):
10382         * process-nt.c (nt_kill_child_process):
10383         * process-nt.c (nt_kill_process_by_pid):
10384         * process-nt.c (nt_open_network_stream):
10385         * process-nt.c (vars_of_process_nt):
10386         Copied over code from Emacs 20.5 to correctly send signals to sub-
10387         processes under Windows 95.  Also added code to automatically
10388         create and hide console window when a sub-process is created under
10389         Windows 95, which obviates the need for the separate runemacs.exe
10390         executable, and finally implemented some variables that were
10391         implemented in Emacs 20.5, but previously not in XEmacs.  These
10392         include mswindows- start-process-share-console and
10393         mswindows-start-process-inherit-error-mode. (Both of these only
10394         apply to Windows 95.)
10395
10396         * regex.c (regex_compile): Fixed a compile warning.
10397
10398         * select-msw.c:
10399         * select-msw.c (mswindows_own_selection):
10400         * select-msw.c (mswindows_get_foreign_selection):
10401         * select-msw.c (mswindows_disown_selection):
10402         * select-msw.c (console_type_create_select_mswindows):
10403         * select-msw.c (syms_of_select_mswindows):
10404         Cleaned up the file and implemented the device method
10405         selection_exists_p, which had accidentally been left out.  Also
10406         removed four lisp functions that were remnants from before the
10407         time when the selection code was properly device abstracted.
10408         These functions are no longer needed because there are generic
10409         equivalents, and because they were added recently and don't exist
10410         in FSF Emacs, I don't think there's any problem with just deleting
10411         them.
10412
10413         * sysdep.c:
10414         * sysdep.c (sys_subshell):
10415         Fixed a compile warning, although in this case there's probably
10416         something wrong with this code, and it ought to be looked into
10417         more thoroughly by somebody who understands it.
10418
10419         * window.c:
10420         * window.c (Fwindow_text_area_height):
10421         * window.c (Fwindow_width):
10422         * window.c (Fwindow_full_width):
10423         * window.c (Fwindow_pixel_width):
10424         * window.c (debug_print_window):
10425         * window.c (syms_of_window):
10426         Added functions window-text-area-height and window-full-width,
10427         which are functions for returning various width and height
10428         characteristics of a window. (One of these functions is necessary
10429         for making the file dialog box work correctly, and the other one
10430         was added for completeness.)  Also added a table to the
10431         documentation for window-height which describes the entire scheme
10432         for accessing width and height characteristics of a window.
10433
10434 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10435
10436         * nt.c (fstat): Added a comment for another problem with
10437         non-encapsulated [f]stat(), reported by Adrian Aichner
10438         <aichner@ecf.teradyne.com>.
10439
10440 2000-03-11  Andy Piper  <andy@xemacs.org>
10441
10442         * window.c (make_dummy_parent): initialize subwindow instance
10443         cache.
10444         (Fset_window_configuration): zero extent_modiff.
10445
10446 2000-03-10  Andy Piper  <andy@xemacs.org>
10447
10448         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10449         more changes can be triggered.
10450         (Fredisplay_frame): ditto.
10451         (Fredraw_device): ditto.
10452         (Fredisplay_device): ditto.
10453         (redisplay_frame): make non-static.
10454         (redisplay_frame): call update_frame_gutter_geometry outside of
10455         display proper.
10456
10457         * gutter.h: declare update_frame_gutter_geometry.
10458
10459         * redisplay.h: declare redisplay_frame.
10460
10461         * gutter.c (update_frame_gutter_geometry): move geometry changes
10462         in update_frame_gutters here. Geometry changes can only occur
10463         outside of redisplay.
10464         (update_frame_gutters): remove geometry change code.
10465         (Fredisplay_gutter_area): make sure that we are in display when we
10466         update and that we have flushed any size changes.
10467
10468 2000-03-11  Andy Piper  <andy@xemacs.org>
10469
10470         * alloc.c (pdump_dump_data): remove i & count shadows.
10471
10472 2000-02-27  Mike Alexander  <mta@arbortext.com>
10473
10474         * sysdep.h: Declare pdump_read_file
10475
10476         * sysdep.c (pdump_read_file): New function
10477
10478         * alloc.c (pdump_load): Call pdump_read_file to get the portable
10479         dump data
10480
10481 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
10482
10483         * lrecord.h: add `lrecord_type_pgsetenv'.
10484
10485 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
10486
10487         * symsinit.h: declare (vars|syms)_of* functions.
10488         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10489
10490 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
10491
10492         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10493
10494         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10495         GCCs.
10496
10497         * emacs.c (main_1): Call postgres initialization code.
10498
10499         * postgresql.h: New file.  PostgreSQL RDBMS support.
10500         * postgresql.c: New file.
10501
10502 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
10503
10504         * redisplay-output.c (redisplay_output_display_block): Disable
10505         redundant code.
10506
10507 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10508
10509         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10510         (Fcanna_henkan_next): Ditto.
10511         (Fcanna_bunsetu_henkou): Ditto.
10512         (Fcanna_henkan_kakutei): Ditto.
10513         (Fcanna_henkan_end): Ditto.
10514         (Fcanna_henkan_quit): Ditto.
10515         (Fcanna_henkan_next): Set retun value correctly.
10516         (c2mu): Use unsigned char instead of signed char.
10517
10518 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10519
10520         * emacs.c (main_1): Always call syms_of_gui.
10521         * inline.c: include gui.h
10522
10523 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10524
10525         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10526         converted to Lisp_Object.
10527         (Qtop_bottom): New variable.
10528         (syms_of_redisplay): Initialize it.
10529         * redisplay.h (Vvisible_bell): Ditto.
10530         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10531         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10532         only flash top and bottom.
10533
10534 2000-03-08  Andy Piper  <andy@xemacs.org>
10535
10536         * buffer.c (Frename_buffer): record new buffer name the right way.
10537
10538 2000-03-08  Andy Piper  <andy@xemacs.org>
10539
10540         * glyphs.c (update_subwindow): increase hash depth so that widget
10541         items get picked up properly.
10542
10543         * redisplay-output.c (compare_runes): increase hash depth so that
10544         widget items get picked up properly.
10545
10546 2000-03-08  Andy Piper  <andy@xemacs.org>
10547
10548         * gutter.c (output_gutter): add some debug.
10549
10550         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10551         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10552         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10553
10554         * redisplay-output.c (compare_runes): use display_hash to
10555         determine if glyphs really are not the same.
10556
10557         * glyphs.c (update_subwindow): check display_hash to see if
10558         anything really needs to be updated. If not then do
10559         nothing. Record the display_hash after updating.
10560         (image_instance_equal): compare the image_instance face also.
10561
10562 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
10563
10564         * redisplay.h: Fix comment style.
10565
10566 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10567
10568         * consle-msw.h (struct mswindows_frame):
10569         Added new member paint_pending to indicate whether a WM_PAINT
10570         magic event has been queued for this frame.
10571
10572         * event-msw.c (mswindows_drain_windows_queue):
10573         Don't queue a WM_PAINT magic event if one is already queued.
10574         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10575
10576         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10577
10578 2000-03-07  Didier Verna  <didier@xemacs.org>
10579
10580         * dired.c: #include `regex.h' after `sysfile.h'.
10581
10582 2000-03-06  Martin Buchholz  <martin@xemacs.org>
10583
10584         * sound.c (init_nas_sound): Fix compiler warning.
10585
10586         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10587         (FREE_STRUCT_P):
10588         (MARK_STRUCT_AS_FREE):
10589         (MARK_STRUCT_AS_NOT_FREE):
10590         Make `gcc -fstrict-aliasing' work properly.
10591
10592 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10593
10594         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
10595         (mswindows_delete_device): Call CoUnnitialize().
10596
10597         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
10598
10599 2000-02-25    <CraigL@DyCon.com>
10600
10601         * process-nt.c: MinGW now has <shellapi.h>, but still needs
10602         <errno.h>.
10603
10604         * sysdep.c: This extern declaration for environ prevents MinGW
10605         from finding the variable in CRTDLL.DLL.
10606
10607         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
10608         windows headers.
10609         (SHGFI_EXETYPE): ..
10610         (WM_MOUSEWHEEL): ..
10611         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
10612         definitions.
10613         (MMRESULT): Removed, now defined in cygwin's windows headers.
10614         (TIMECAPS): ..
10615         (uid_t,gid_t,pid_t,ssize_t): ..
10616         (_timeb): Removed, MinGW defines both _timeb and timeb.
10617         (HAVE_H_ERRNO): Added.
10618         (HAVE_TZNAME): Added, configure is not detecting this.
10619
10620 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
10621
10622         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
10623         * syntax.c (syntax_match): Use it.
10624
10625         * cmds.c: Import auto-fill-chars from FSF Emacs.
10626         (Vauto_fill_chars): New variables.
10627         (internal_self_insert): Check Vauto_fill_chars.
10628         (vars_of_cmds):
10629         Declare auto-fill-chars as a Lisp variable and initialize it.
10630
10631 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10632
10633         * fileio.c (Fmake_symbolic_link):
10634         (Ffile_symlink_p):
10635         Run handlers even if local machine doesn't have symlinks.
10636
10637 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10638
10639         * event-msw.c (mswindows_drain_windows_queue):
10640         Don't generate paint magic events for non-XEmacs frames.
10641
10642 2000-03-05  Andy Piper  <andy@xemacs.org>
10643
10644         * redisplay.c (redisplay_frame): generate_displayable_area and
10645         friends assumes that we are not in GC, we therefore have to make
10646         sure that this doesn't happen.
10647
10648         * gutter.c (calculate_gutter_size): generate_displayable_area
10649         assumes that we are not in GC, we therefore have to make sure that
10650         this doesn't happen.
10651
10652 2000-03-05  Martin Buchholz  <martin@xemacs.org>
10653
10654         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
10655
10656 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
10657
10658         * redisplay.c (regenerate_window): Make sure we set a sane value
10659         for end_pos even if we jump out of the loop.
10660         (regenerate_window): Answer Ben's question :-).
10661         (start_end_of_last_line): Add may_error argument.
10662         (start_of_last_line):
10663         (end_of_last_line): Pass may_error = 0.
10664         (end_of_last_line_may_error): New function.
10665         (pixel_to_glyph_translation): Use it, so we don't crash in
10666         event_to_glyph.
10667
10668 2000-03-04  Andy Piper  <andy@xemacs.org>
10669
10670         * window.h (struct window): add gutter_extent_modiff.
10671
10672         * window.c (allocate_window): zero out gutter_extent_modiff.
10673
10674         * redisplay.h: declare sync_display_line_structs.
10675
10676         * redisplay.c (add_glyph_rune): add a better comment.
10677
10678         * redisplay-output.c (sync_display_line_structs): made non-static.
10679         (compare_runes): remove unneccesary glyph cachel access.
10680
10681         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
10682
10683         * gutter.c (output_gutter): don't output the gutter if extent
10684         changes only involve extents in buffers. use 4 sets of display
10685         lines.
10686         (gutter_extent_signal_changed_region_maybe): new function. Mark
10687         extents in gutters as changed.
10688         (update_frame_gutters): use 4 sets of display lines.
10689         (reset_gutter_display_lines): ditto.
10690         (free_frame_gutters): ditto.
10691         (redraw_exposed_gutter): force output of gutters.
10692
10693         * frame.h (struct frame): add 4 sets of gutter display lines.
10694
10695         * extents.c: (extent_changed_for_redisplay): signal changes to
10696         extents in strings in the gutter as well as extents in buffers.
10697
10698 2000-03-02  Andy Piper  <andy@xemacs.org>
10699
10700         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
10701
10702         * frame.c (Fmake_frame): make sure the gutters get initialized
10703         after the frame is visible.
10704         (set_frame_selected_window): re-arrange compilation macros a
10705         little.
10706         (change_frame_size_1): mark gutters changed.
10707
10708         * device.c (Fset_device_class): mark gutters changed.
10709
10710 2000-03-01  Andy Piper  <andy@xemacs.org>
10711
10712         * window.c (window_top_frame_gutter_height): deleted.
10713         (window_bottom_frame_gutter_height): ditto.
10714         (window_left_frame_gutter_height): ditto.
10715         (window_right_frame_gutter_height): ditto.
10716         (window_top_gutter_height): don't use them.
10717         (window_bottom_gutter_height): ditto.
10718         (window_left_gutter_width): ditto.
10719         (window_right_gutter_width): ditto.
10720         (Fsplit_window): ditto.
10721         (Fwindow_pixel_edges): don't use border dimensions here.
10722
10723         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
10724         (update_scrollbar_instance): ditto.
10725
10726         * redisplay.c (generate_modeline): don't take gutters into account.
10727         (generate_modeline): ditto.
10728         (redisplay_frame): small gutter display optimization.
10729
10730         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
10731
10732         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
10733         gutters into account.
10734
10735         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
10736         for window position and type.
10737
10738         * gutter.c (get_gutter_coords): fix for frame gutters.
10739         (update_frame_gutters): update frame geometry if the gutters have
10740         changed.
10741         (init_frame_gutters): record current gutter geometries.
10742
10743         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
10744         var.
10745         (mswindows_widget_instantiate): ditto.
10746
10747         * frame.h (struct frame): add current_gutter_bounds.
10748
10749         * frame.c (change_frame_size_1): position window and minibuffer
10750         appropriately taking into account the frame gutters.
10751
10752         * frame-x.c: (x_initialize_frame_size): take into account the
10753         frame gutters.
10754
10755 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
10756
10757         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
10758
10759 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
10760
10761         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
10762
10763 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
10764
10765         * file-coding.c (reset_decoding_stream): Clear previous
10766         detection state when autodetect.
10767
10768 2000-02-29  Didier Verna  <didier@xemacs.org>
10769
10770         * extents.c (set_extent_glyph_1): don't require extents to be
10771         attached.
10772
10773 2000-02-27  Andy Piper  <andy@xemacs.org>
10774
10775         * gutter.c (Fset_default_gutter_position): don't default left and
10776         right gutter visibility to t.
10777         (Fset_default_gutter_position): run
10778         default-gutter-position-changed-hook.
10779         (syms_of_gutter): add default-gutter-position-changed-hook.
10780
10781 2000-02-26  Andy Piper  <andy@xemacs.org>
10782
10783         * specifier.c (Fmake_specifier): add gutter references.
10784
10785         * gutter.h (RAW_WINDOW_GUTTER): new macro.
10786
10787         * lisp.h: declare Fvalid_plist_p.
10788
10789         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
10790         as changed.
10791         (default_gutter_visible_p_changed_in_window): invalidate gutter as
10792         well as its visibility so that it gets reconstructed.
10793         (construct_window_gutter_spec): new function. Construct a string
10794         to be displayed in the gutter from a plist of strings. Take care
10795         to only use elements that are declared as visible.
10796         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
10797         WINDOW_GUTTER.
10798         (gutter_validate): allow plists of strings in the specifier.
10799         (gutter_specs_changed): construct the real_gutter from the gutter
10800         specs using construct_window_gutter_spec.
10801         (gutter_visible_validate): gutter-visible is a new specifier type.
10802         (Fgutter_visible_specifier_p): new function for the new specifier.
10803         (syms_of_gutter): declare gutter-visible and
10804         Fgutter_visible_specifier_p.
10805         (specifier_type_create_gutter): intitalize new gutter-visible
10806         specifier.
10807         (reinit_specifier_type_create_gutter): ditto.
10808         (specifier_vars_of_gutter): use new specifier type for gutter
10809         visibility.
10810         (init_frame_gutters): construct real_gutter correctly.
10811         (Fgutter_specifier_p): beef up documentation.
10812         (Fgutter_size_specifier_p): ditto.
10813
10814         * winslots.h: add real_gutter slots.
10815
10816 2000-02-25  Andy Piper  <andy@xemacs.org>
10817
10818         * device-msw.c: Be kind to older cygwin versions. From Raymond
10819         Toy <toy@rtp.ericsson.se>.
10820
10821         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
10822         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
10823
10824 2000-02-25  Martin Buchholz  <martin@xemacs.org>
10825
10826         * elhash.c (MARK_OBJ): Practice macro hygiene.
10827
10828 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10829
10830         * miscplay.c: s/__inline__/inline/g;
10831         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
10832         (get_device_compdc): INLINE ==> static inline
10833         * *.[ch]: Change INLINE to INLINE_HEADER globally.
10834         find -name '*.h' | \
10835         xargs global-replace \
10836         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
10837
10838 2000-02-25  Andy Piper  <andy@xemacs.org>
10839
10840         * window.c (window_top_frame_gutter_height): new function.
10841         (window_top_window_gutter_height): ditto.
10842         (window_top_gutter_height): use them.
10843         (window_bottom_frame_gutter_height): new function.
10844         (window_bottom_window_gutter_height): ditto.
10845         (window_bottom_gutter_height): use them.
10846         (window_left_window_gutter_width): new function.
10847         (window_left_frame_gutter_width): ditto.
10848         (window_left_gutter_width): use them.
10849         (window_right_window_gutter_width): new function.
10850         (window_right_frame_gutter_width): ditto.
10851         (window_right_gutter_width): use them.
10852         (window_pixel_height): new function. calulate window pixel height
10853         with frame gutter involvement.
10854         (Fsplit_window): calculate new sizes taking frame gutters into
10855         account.
10856         (window_char_height_to_pixel_height): don't include frame gutters.
10857         (window_char_height): use window_pixel_height.
10858         (window_pixheight): rename from window_pixel_height.
10859         (change_window_height): use it.
10860         (window_pixel_height_to_char_height): don't include frame gutters.
10861         (window_char_width_to_pixel_width): ditto.
10862
10863 2000-02-25  Andy Piper  <andy@xemacs.org>
10864
10865         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
10866         if it is.
10867
10868 2000-02-24  Martin Buchholz  <martin@xemacs.org>
10869
10870         * alloc.c (staticpro):
10871         (staticpro_nodump):
10872         (dumpstruct):
10873         (dumpopaque):
10874         (pdump_wire):
10875         (pdump_wire_list):
10876         (compact_string_chars):
10877         (pdump_dump_wired):
10878         Convert:  if (foo) abort();  ==>  assert (! foo);
10879
10880         * eldap.c (Fldap_search_basic):
10881         (Fldap_add):
10882         (Fldap_modify):
10883         (Fldap_delete):
10884         Fix compiler warnings, and possible crashes if (random) return
10885         value were to be used.
10886
10887 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10888
10889         * device-msw.c: Workaround ResetDC failure.
10890
10891         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
10892         applying a devmode.
10893
10894         * redisplay-msw.c (get_frame_dc): Added start_page_p.
10895         (mswindows_text_width): Do not start printer page.
10896
10897         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
10898
10899         * glyphs-msw.c: Added image methods to msprinter console and
10900         msprinter-specific image instantiation.
10901
10902 2000-02-20  Mike Alexander  <mta@arbortext.com>
10903
10904         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
10905         to avoid crashes when selection-sets-clipboard is on
10906         (mswindows_own_selection): ditto
10907
10908 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
10909
10910         * glyphs-msw.c:
10911         * redisplay-msw.c (get_frame_dc):
10912         (get_frame_compdc):
10913         * console-msw.h:
10914         * device-msw.c (mswindows_init_device):
10915         (mswindows_delete_device):
10916         (msprinter_init_device):
10917         (msprinter_delete_device):
10918         * frame-msw.c (mswindows_init_frame_1):
10919         (mswindows_delete_frame):
10920         (msprinter_init_frame_3):
10921         (msprinter_delete_frame): Move compatible DC to device object from
10922         frame object, for both mswindows and msprinter. Only one at a time
10923         is needed, it is a real waste to have one per frame!
10924
10925 2000-02-23  Andy Piper  <andy@xemacs.org>
10926
10927         * glyphs.c: add dynamic width and height elements.
10928         (image_instance_equal): ditto.
10929
10930         * glyphs-widget.c (widget_query_geometry): calculate width and
10931         height dynamically if required.
10932         (initialize_widget_image_instance): initialize dynamic dimensions.
10933         (widget_instantiate): pick-up dynamic dimensions.
10934
10935         * glyphs.h (struct Lisp_Image_Instance): add width and height for
10936         dynamic determination. Add appropriate macros.
10937
10938         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
10939         dimensions safe.
10940         (WINDOW_GUTTER_SIZE): ditto.
10941         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
10942
10943         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
10944         inline.
10945         (get_frame_dc): ditto.
10946
10947         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
10948         here.
10949
10950 2000-02-23  Martin Buchholz <martin@xemacs.org>
10951
10952         * XEmacs 21.2.31 is released.
10953
10954 2000-02-22  Ben Wing <ben@xemacs.org>
10955
10956         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
10957
10958 2000-02-22  Andy Piper  <andy@xemacs.org>
10959
10960         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
10961
10962 2000-02-21  Mike Sperber <mike@xemacs.org>
10963
10964         * .dbxrc:
10965         * .gdbinit:
10966         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
10967         variables.
10968
10969 2000-02-21  Mike Sperber <mike@xemacs.org>
10970
10971         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
10972
10973 2000-02-21  Martin Buchholz <martin@xemacs.org>
10974
10975         * XEmacs 21.2.30 is released.
10976
10977 2000-02-20  Martin Buchholz  <martin@xemacs.org>
10978
10979         Performance hacking.
10980         * *.c (syms_of_*):
10981         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
10982         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
10983         * emacs.c (main_1):
10984         * lisp.h (DEFUN):
10985         * console.c (DEFVAR_CONSOLE_LOCAL_1):
10986         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
10987         * symeval.h (DEFVAR_SYMVAL_FWD):
10988         * symbols.c (guts_of_unbound_marker):
10989         Make all c_readonly objects also lisp_readonly and marked for life.
10990         * lrecord.h (struct lrecord_implementation):
10991         Document flags better.
10992         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
10993         * lrecord.h (DECLARE_LRECORD):
10994         * lrecord.h (XSETRECORD):
10995         * lrecord.h (RECORDP):
10996         * lrecord.h (RECORD_TYPEP):
10997         * lrecord.h (RECORD_MARKER): New.
10998         * lrecord.h (error_check_*):
10999         * lrecord.h (CONCHECK_NONRECORD):
11000         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11001         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11002         * lrecord.h (set_lheader_implementation):
11003         * lrecord.h (enum lrecord_type): New.
11004         * symeval.h (SYMBOL_VALUE_MAGIC_P):
11005         * alloc.c (disksave_object_finalization_1):
11006         * alloc.c (mark_object):
11007         * alloc.c (lrecord_type_index):
11008         * alloc.c (tick_lcrecord_stats):
11009         * alloc.c (Fgarbage_collect):
11010         * alloc.c (init_alloc_once_early):
11011         * alloc.c (pdump_load):
11012         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11013         * alloc.c (lrecord_type_index): Delete.
11014         Make lisp object type indexes be constant.
11015           Makes (byte-compile) 5% faster.
11016         Put all marker functions into their own array.
11017           Makes (garbage-collect) 5% faster.
11018         Optimize SYMBOL_VALUE_MAGIC_P.
11019           Makes (byte-compile) 2-3% faster.
11020         * config.h.in (gc_checking_assert): New.
11021         * alloc.c: Use gc_checking_assert().
11022         * .dbxrc: Make compatible with new object type implementation.
11023         * .gdbinit: Make compatible with new object type implementation.
11024         * alloc.c: Delete all symbols defined only for debugging, such as
11025         Lisp_Type_Vector and lrecord_charset.
11026
11027 2000-02-21  Andy Piper  <andy@xemacs.org>
11028
11029         * gui-msw.c (Fmswindows_shell_execute): fix file location
11030         problems.
11031
11032         * buffer.c (Fkill_buffer): remove buffer from alist buffer
11033         unshowing so that set_window_buffer doesn't undo
11034         kill_buffer_hook's hard work.
11035
11036         * glyphs-widget.c (tab_control_query_geometry): don't count the
11037         first item when calculating geometry.
11038
11039         * glyphs.c (map_subwindow): remove redundant code.
11040         (update_frame_subwindows): be more circumspect about when to
11041         update subwindows.
11042
11043         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11044         when items haven't changed. Update faces if faces have changed as
11045         well as just the widget face.
11046         (x_tab_control_update): Update faces if faces have changed as well
11047         as just the widget face.
11048
11049 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11050
11051         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11052         registration.
11053         (build_syscolor_string): Use mswindows_color_to_string to try to
11054         get a named color.
11055         (mswindows_device_system_metrics): Reverse the foreground and
11056         background colors so that they match the documentation.
11057
11058         * objects-msw.c: (mswindows_X_color_map): tweak some values so
11059         they match the default Windows palette.
11060         (mswindows_color_to_string): New function.
11061
11062 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11063
11064         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11065
11066 2000-02-18  Olivier Galibert  <galibert@pobox.com>
11067
11068         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11069         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11070
11071         * symbols.c (init_symbols_once_early): Removed obsolete
11072         DATA_SEG_BITS related kludge.
11073         (defvar_magic): Ditto.
11074
11075         * malloc.c: Removed obsolete DATA_SEG_BITS
11076         * ralloc.c: Ditto.
11077         * mem-limits.h: Ditto.
11078
11079         * Makefile.in.in: Removed obsolete HAVE_SHM
11080         * emacs.c: Ditto.
11081
11082 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11083
11084         *  device-msw.c (mswindows_delete_device): Free DDE string
11085         handles.
11086
11087 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11088
11089         * keymap.c (get_keyelt):
11090         * unexnt.c (unexec):
11091         * vm-limit.c (memory_warnings):
11092         * ntheap.c (recreate_heap):
11093         * ntheap.h (UNINIT_PTR):
11094         * select-msw.c (Fmswindows_get_clipboard):
11095         (Fmswindows_set_clipboard):
11096         * objects-msw.h (MSWINDOWS_BAD_HFONT):
11097         * objects-msw.c:
11098         * menubar-msw.c (displayable_menu_item):
11099         * glyphs-msw.c:
11100         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11101         * sysdep.c (sys_subshell):
11102         * process-nt.c (nt_create_process):
11103         * nt.c (normalize_filename):
11104         (dostounix_filename):
11105         (unixtodos_filename):
11106         * ntproc.c (win32_executable_type):
11107         * ntplay.c (play_sound_data_1):
11108         (play_sound_file):
11109         * editfns.c (get_home_directory):
11110         * event-msw.c (struct winsock_stream):
11111         (mswindows_dde_callback):
11112         * device-msw.c (msprinter_init_device):
11113         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11114
11115         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11116         mswindows_clear_toolbar were swapped!
11117
11118         * objects-msw.c:(colormap_t):
11119         (fontmap_t):
11120         * emacs.c (struct standard_args): Fixed const jumble.
11121
11122         * glyphs-widget.c (update_widget): Fixed comparison notation.
11123
11124         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11125
11126         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11127         __declspec(noreturn) syntax.
11128
11129 2000-02-19  Martin Buchholz  <martin@xemacs.org>
11130
11131         * eldap.c (Fldap_open):
11132         (Fldap_search_basic):
11133         (Fldap_add):
11134         (Fldap_modify):
11135         Use new coding system conversion macros.
11136
11137 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11138
11139         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11140
11141 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
11142
11143         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11144         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11145
11146         * eldap.c (Qadd, Qreplace): New constant symbols
11147         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11148         interruptions by XEmacs signals
11149         Remove unnecessary calls to slow_down_interrupts and
11150         speed_up_interrupts
11151         (Fldap_search_basic): Renamed from Fldap_search_internal
11152         Added new optional parameter VERBOSE that triggers the
11153         display of progress messages
11154         Remove unnecessary calls to slow_down_interrupts and
11155         speed_up_interrupts
11156         LDAP result code analysis rewritten
11157         (Fldap_add, Fldap_modify, Fldap_delete): New functions
11158         (syms_of_eldap): Define the new symbols and functions
11159
11160
11161 2000-02-17  Martin Buchholz  <martin@xemacs.org>
11162
11163         * realpath.c: Determine PATH_MAX maximally portably.
11164
11165         * insdel.c (bytecount_to_charcount): Optimize.
11166         The function used to be optimized for entirely ASCII sequences.
11167         Now it is optimized for successive characters from the same
11168         charset.  This also wins big for _mostly_ ASCII sequences.
11169
11170         * fileio.c (Ffile_truename): convert return from realpath() using
11171         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
11172         - Rewrite GCPROing slightly.
11173
11174         * sysdep.c (sys_open): Do filename conversion, like all other
11175         sys_* functions.  Fixes bug:
11176         (let ((file-name-coding-system 'iso-8859-2))
11177            (write-region x y latin2-name))
11178         ==> writes filename using internal encoding.
11179
11180 2000-02-18  Martin Buchholz  <martin@xemacs.org>
11181
11182         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11183         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11184         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11185         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11186         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11187         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11188         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11189         (CONST_IF_NOT_DEBUG): Delete.
11190         * alloc.c (this_one_is_unmarkable): Delete.
11191         (mark_object): Don't check for this_one_is_unmarkable. Use the
11192         c_readonly flag instead.
11193         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11194
11195 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11196
11197         * event-msw.c (mswindows_drain_windows_queue):
11198         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11199         away redundant repaint events.
11200
11201 2000-02-17  Andy Piper  <andy@xemacs.org>
11202
11203         * redisplay.h: declare mark_redisplay_structs.
11204
11205         * redisplay.c (redisplay_window):
11206         (redisplay_frame): don't check subwindows_state_changed.
11207         (mark_redisplay): mark gutters here.
11208
11209         * glyphs.c: (instantiate_image_instantiator): always layout if we
11210         haven't done so already.
11211         (allocate_image_instance): don't mark as dirty.
11212         (update_subwindow): bind inhibit_quit.
11213
11214         * gutter.c (mark_gutters): new function.
11215
11216         * glyphs-x.c (x_update_widget): Always resize to get round a
11217         widget bug.
11218
11219         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11220         breaking absolutely everything.
11221
11222         * gutter.h: declare mark_gutters.
11223
11224 2000-02-16  Martin Buchholz <martin@xemacs.org>
11225
11226         * XEmacs 21.2.29 is released.
11227
11228 2000-02-15  Olivier Galibert  <galibert@pobox.com>
11229
11230         * fns.c (size_bit_vector): Fix computation of the size.
11231
11232 2000-02-15  Martin Buchholz  <martin@xemacs.org>
11233
11234         * *.[ch]: Change CONST to const globally.
11235         find -name '*.[ch]' | \
11236         xargs global-replace \
11237         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11238         - Remove vestigial references to CONST_IS_LOSING
11239
11240 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11241
11242         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11243         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11244         events instead of dispatching them directly.
11245         (mswindows_handle_paint): New function to do repainting.
11246         (mswindows_wnd_proc):
11247         (emacs_mswindows_handle_magic_event): Call above function.
11248
11249 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11250
11251         * objects-msw.c (mswindows_create_font_variant): Return the new
11252         font handle.
11253         (initialize_font_instance): Get font metrics from the underlined
11254         variant of the font to cope with the case where the underlined
11255         font has a bigger descent.
11256
11257 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11258
11259         * gui.c (gui_item_accelerator): Return the first underlined
11260         character in item name.
11261
11262 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11263
11264         * lisp.h: Added Qprinter.
11265
11266         * general.c (syms_of_general): Initialized it.
11267
11268         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11269         (get_frame_dc):
11270         (get_frame_compdc): Made inline.
11271
11272         * console.h (struct console_methods): Added eject_page method.
11273
11274         * frame.h: Added FRAME_DISPLAY_P and friends.
11275         Aligned backslahes in many macros in more readable fashion.
11276         Added page_number to struct frame, and an accessor macro
11277         for it.
11278
11279         * defice.h: Added DEVICE_DISPLAY_P and friends.
11280
11281         * device.c (Fdevice_printer_p): Used these.
11282
11283         * frame.c (allocate_frame_core): Initialize page number.
11284         (Fprint_job_page_number):
11285         (Fprint_job_eject_page): Implemented.
11286
11287         * frame-msw.c (msprinter_eject_page): Added method.
11288         (msprinter_start_page): Added.
11289
11290         * window.c (Fwindow_truncated_p): Fixed docstring.
11291         (Fwindow_last_line_visible_height): Implemented.
11292
11293 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
11294
11295         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11296
11297 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
11298
11299         * syntax.c (scan_words): Always advance at least one character.
11300
11301 2000-02-13  Andy Piper  <andy@xemacs.org>
11302
11303         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11304         to make sure the glyph is in the cachels.
11305
11306         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11307         global image instance flag.
11308         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11309         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11310
11311         * glyphs.c (allocate_image_instance): set dirty bits correctly.
11312         (Fset_image_instance_property): mark layout as changed.
11313         (invalidate_glyph_geometry_maybe): mark layout as changed.
11314         (glyph_width): use new NEEDS_LAYOUT macro.
11315         (glyph_ascent): ditto.
11316         (glyph_descent): ditto.
11317         (glyph_height): ditto.
11318         (image_instance_layout): mark layout as clean after laying out.
11319         (update_subwindow): don't mark layout as clean here.
11320
11321         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11322         should no longer be needed.
11323
11324         * glyphs-x.c (x_update_widget): sanitize asserts.
11325         (x_finalize_image_instance): sanitize assignment to widgets.
11326
11327         * glyphs-widget.c (widget_instantiate): don't need to clear the
11328         layout flag here.
11329
11330 2000-02-13  Martin Buchholz  <martin@xemacs.org>
11331
11332         * sysdep.c (getcwd): Use standard prototype.
11333         * sysdep.h (getcwd): Use standard prototype.
11334
11335         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11336         (sequence, start, end).
11337         Remove redundant type checking.
11338         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11339         view of `caller-protects') to avoid a crash where the real fix was
11340         found elsewhere.
11341
11342 2000-02-12  Martin Buchholz  <martin@xemacs.org>
11343
11344         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11345
11346         * s/sol2.h: Remove feature macro initialization.
11347
11348         * alloc.c (alloc_lcrecord): Add more type checking assertions.
11349         (vector_hash): New.  Code from internal_hash.
11350         * lrecord.h:
11351         Fix up allocation subsystem comments.
11352
11353         * config.h.in: Add __EXTENSIONS__ for Solaris.
11354
11355         * systime.h (EMACS_GETTIMEOFDAY): New.
11356         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11357         Remove Solaris-specific code.
11358         Use void* for the (ignored) second arg for gettimeofday().
11359
11360         * elhash.c (hash_table_hash): Implement it, finally.
11361         * elhash.c:  Use hashcode_t.
11362
11363         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11364         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11365
11366         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11367         * fns.c (size_bit_vector):
11368         * alloc.c (size_vector):
11369         (make_vector_internal):
11370         (make_bit_vector_internal):
11371         (sweep_bit_vectors_1):
11372         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11373
11374 2000-02-10  Martin Buchholz  <martin@xemacs.org>
11375
11376         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11377         Include strings.h to avoid warnings for bzero and strcasecmp.
11378
11379 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11380
11381         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11382         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11383
11384         * fns.c (size_bit_vector): New.  Declare bit vectors as a
11385         sequence.
11386
11387 2000-02-10  Olivier Galibert  <galibert@pobox.com>
11388
11389         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11390         use a value field instead.
11391         (symbol_value_forward_forward): Use value field.
11392         (DEFVAR_SYMVAL_FWD): Use value field.
11393         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
11394         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11395         (DEFVAR_CONST_INT): Ditto.
11396         (DEFVAR_BOOL): Ditto.
11397         (DEFVAR_CONST_BOOL): Ditto.
11398         (DEFVAR_INT_MAGIC): Ditto.
11399         (DEFVAR_BOOL_MAGIC): Ditto.
11400
11401         * symbols.c (guts_of_unbound_marker): Use value field.
11402         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11403         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11404
11405         * lisp.h: Declare dumpopaque and noninteractive1.
11406
11407         * alloc.c (dumpopaque): Added.
11408         (pdump_dump_opaquevec): Added.
11409         (pdump): Call pdump_dump_opaquevec to dump opaque data.
11410         (pdump_load): Reload opaque data.  Sync noninteractive1 with
11411         noninteractive.
11412
11413 2000-02-10  Andy Piper  <andy@xemacs.org>
11414
11415         * glyphs.c (image_instance_layout): if the size changes, mark it
11416         as such.
11417
11418         * redisplay-output.c (redisplay_output_layout): Update the
11419         subwindow here.
11420         (redisplay_output_subwindow): ditto.
11421
11422         * glyphs.c (update_subwindow): make sure we reset flags for
11423         layouts as well as everything else.
11424
11425         * glyphs-widget.c (layout_layout): don't need to set the instances
11426         dimensions here.
11427
11428 2000-02-09  Martin Buchholz  <martin@xemacs.org>
11429
11430         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
11431         not HAVE_DLOPEN, which is a lower-level thing.
11432
11433         * .cvsignore: Ignore gmon.out
11434
11435 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
11436
11437         * .cvsignore: Ignore portable dumper xemacs.dmp file
11438
11439 2000-02-09  Andy Piper  <andy@xemacs.org>
11440
11441         * redisplay-output.c (redisplay_output_layout): be more clever
11442         about when we output based on the changed flags.
11443
11444         * glyphs.h (struct image_instantiator_methods): add update_method.
11445         (struct Lisp_Image_Instance): add changed flags. Declare new
11446         macros for manipulating them.
11447
11448         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11449         (image_instance_parent_glyph): find an image_instance's parent
11450         glyph or image_instance.
11451         (image_instance_layout): mark the size as changed.
11452         (set_image_instance_dirty_p): new function. mark an image
11453         instance, plus all of its parents, as dirty.
11454         (Fset_image_instance_property): use it.
11455         (Fglyph_animated_timeout_handler): use it.
11456         (update_subwindow): call update_widget and device methods for
11457         update_subwindow. Mark all changed flags as clean.
11458         (Fresize_subwindow): mark size as changed.
11459
11460         * glyphs-x.c (x_finalize_image_instance): try and detect gc
11461         failures.
11462         (x_update_subwindow): only resize subwindows here.
11463         (x_update_widget): new function. Update all changed properties of
11464         a widget.
11465         (x_resize_subwindow): deleted.
11466         (x_widget_set_property): deleted.
11467         (x_progress_gauge_set_property): deleted.
11468         (x_progress_gauge_update): new function. Implement recorded
11469         changes.
11470         (x_tab_control_update): ditto.
11471         (x_tab_control_set_property): deleted.
11472         (console_type_create_glyphs_x): declare new functions.
11473         (image_instantiator_format_create_glyphs_x): ditto.
11474
11475         * glyphs-widget.c (widget_set_property): mark text changed.
11476         (update_widget): new function. Update properties of a widget.
11477         (widget_instantiate): for layouts make sure we set their
11478         children's parent correctly.
11479         (tab_control_set_property): new function. Record changes that will
11480         take place under redisplay's control.
11481         (progress_gauge_set_property): ditto.
11482         (image_instantiator_progress_guage): declare new functions.
11483         (image_instantiator_tab_control): ditto.
11484
11485         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11486         now.
11487         (mswindows_update_widget): new function. Update all properties on
11488         a widget that have changed.
11489         (mswindows_button_update): new function. Update a button's set
11490         state.
11491         (mswindows_tab_control_update): new function. Update the items in
11492         a tab.
11493         (mswindows_tab_control_set_property): deleted.
11494         (mswindows_progress_gauge_update): new function. Update the
11495         progress gauge's progress.
11496         (mswindows_widget_set_property): deleted. This is all done
11497         asynchronously now.
11498         (mswindows_progress_gauge_set_property): ditto.
11499         (console_type_create_glyphs_mswindows): declare new methods.
11500         (image_instantiator_format_create_glyphs_mswindows): ditto.
11501
11502         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11503         (msprinter_set_frame_properties): ditto.
11504
11505         * console.h (struct console_methods): Add update_widget_method.
11506
11507 2000-02-09  Andy Piper  <andy@xemacs.org>
11508
11509         * gui-msw.c (Fmswindows_shell_execute): Make
11510         mswindows-shell-execute industrial strength.
11511
11512 2000-02-08  Martin Buchholz  <martin@xemacs.org>
11513
11514         * lrecord.h: Make macro argument `props' match member function `plist'.
11515         * fns.c (Fget):
11516         * fns.c (Fput):
11517         * fns.c (Fremprop):
11518         * fns.c (Fobject_plist):
11519         * alloc.c:
11520         * symbols.c:
11521         Object property list frobbing cleanup.
11522         - Allow any lisp object (compared with `eq'), not just symbols, as
11523           keys in object plists.
11524         - Move symbol plist frobbing into symbols.c, where it belongs.
11525         - Move string plist frobbing into alloc.c, where it belongs.
11526         - Everything's an lrecord now, so no need to test for symbolp, etc.
11527         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11528
11529         * extents.c: Reorder code to remove declarations.
11530
11531         * frame.h (store_in_alist): Remove useless declaration.
11532
11533 2000-02-07  Martin Buchholz  <martin@xemacs.org>
11534
11535         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11536         * config.h.in: Add HAVE_XCONVERTCASE.
11537
11538 2000-02-07  Andy Piper  <andy@xemacs.org>
11539
11540         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11541         it breaks many things.
11542
11543 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
11544
11545         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11546         actually can start a common comment type.
11547         * src/syntax.h (SYNTAX_END_P): ditto for end.
11548
11549 2000-02-07  Martin Buchholz <martin@xemacs.org>
11550
11551         * XEmacs 21.2.28 is released.
11552
11553 2000-02-06  Martin Buchholz  <martin@xemacs.org>
11554
11555         * event-Xt.c (x_keysym_to_character): New.
11556         (maybe_define_x_key_as_self_inserting_character): New.
11557         (x_has_keysym): New.
11558         Auto-define all keys on the keyboard as self-insert-key.
11559
11560 2000-02-02  Martin Buchholz  <martin@xemacs.org>
11561
11562         * menubar.c (vars_of_menubar): A small code simplification.
11563
11564         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11565
11566         * ExternalShell.c:
11567         * ExternalClient.c:
11568         * EmacsShell-sub.c:
11569         * EmacsManager.c:
11570         * EmacsFrame.c:
11571         Use consistent style for specifying X resources.
11572
11573         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11574         This makes (dontusethis-set-symbol-value-handler) actually usable.
11575
11576         * lrecord.h (lrecord_decription_type):
11577         * alloc.c (pdump_register_sub):
11578         (pdump_dump_data):
11579         (pdump_reloc_one):
11580         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11581         Comply with XEmacs coding style.
11582         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11583         args, and XD_LISP_OBJECT_ARRAY with 3 args.
11584
11585         * keymap.c (Faccessible_keymaps):
11586         Make (accessible-keymaps map "\C-h") do the Right Thing.
11587         Make (accessible-keymaps map []) do the Right Thing.
11588         Make (accessible-keymaps map "") do the Right Thing.
11589         (check_keymap_definition_loop): New function.
11590         (keymap_store_internal): Keep luser from shooting self in foot,
11591           via (define-key ctl-x-4-map "p" global-map).
11592         Remove fullness slot from struct Lisp_Keymap, since hash tables
11593         are now reliable.
11594         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
11595
11596 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11597
11598         * redisplay.c (init_redisplay): Fix small memory leak.
11599         * elhash.h:
11600         * elhash.c (pdump_reorganize_hash_table):
11601         Rename from reorganize_hash_table. Change prototype.
11602         Reuse the original memory for hentries.  Save 100k.
11603         * alloc.c (PDUMP_READ): new macro.
11604         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
11605         * alloc.c: No need to #ifndef before #undef.
11606
11607         * print.c: Allow debug_print() to print readably by modifying
11608         debug_print_readably.  Use consistent variable names.
11609
11610         * .dbxrc: Try to get things to work even if stopped in a function
11611         without source available by explicitly specifying source files.
11612 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11613
11614         * unexnt.c (_start): Removed bogus code which caused loading heap
11615         from differrent executable file.
11616         Removed bogus assignment to _fmode, which caused inconsistencies.
11617
11618 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11619
11620         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
11621         Have spawnve encapsulation regard DONT_ENCAPSULATE.
11622         Do not preliminary `#define signal sigset'.
11623
11624         * systime.h: Do not prototype environ on windows nt and cygwin,
11625         this conflicts with system header.
11626
11627         * syssignal.h: Use correct define for WINDOWSNT
11628
11629         * sysdep.h: Do not prototype environ on windows nt, this conflicts
11630         with system header.
11631
11632         * sysdep.c (near start of file): Fixed commentary and rearranged
11633         ifdefs in readable order.
11634         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
11635         (start_of_text):
11636         (end_of_text):
11637         (end_of_data): Do not compile in if using PDUMP.
11638
11639         * symsinit.h: Prototyped vars_of_nt().
11640
11641         * ntproc.c (windows9x_p): Added, instead of os_subtype.
11642         (find_child_console): Use it.
11643         (sys_kill): Use it.
11644
11645         * ntheap.h: Do not extern os_subtype.
11646
11647         * ntheap.c (cache_system_info): Do not cache unneeded:
11648         nt_major_version, nt_minor_version and os_subtype.
11649         (recreate_heap): Do not compile in when PDUMPing.
11650
11651         * nt.c (geteuid and friends): Use the new varibale
11652         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
11653         (init_user_info): Removed the above mentioned hackery.
11654         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
11655         stat has been fixed in the C runtime.
11656         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
11657
11658         * file-coding.c (struct file_coding_dump): Do not define
11659         ucs_to_mule_table in the struct if not MULE.
11660         (struct struct lrecord_description fcd_description_1): Do not dump
11661         the above.
11662
11663         * emacs.c (main_1): Call vars_of_nt().
11664         (right before Fdump_emacs_data): Don't need lastfile if using both
11665         portabe dumper and system malloc.
11666
11667         * alloc.c (Fmemory_limit): Conditionalized out.
11668         (pdump): Use OPEN_BINARY for the portable dump file.
11669         (pdump_load): Ditto.
11670
11671 2000-02-02  Mike Alexander  <mta@arbortext.com>
11672
11673         * nt.c (convert_time): Set tm_isdst before calling mktime and
11674         avoid calling it at all if the compiler supports 64 bit integers.
11675         Also initialize utc_base_ft before using it.
11676
11677 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
11678
11679         * frame.c (change_frame_size_1): Take f->internal_border_width
11680         into consideration when calculating the width of the frame.
11681
11682 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11683
11684         * window.c (frame_min_height):
11685         (frame_size_valid_p):
11686         (frame_pixsize_valid_p): Added.
11687         (check_frame_size): Generalized.
11688
11689         * window.h: Prototyped the above.
11690
11691         * lisp.h:
11692         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
11693         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
11694         Deleted Vwin32_* and Vbinary_process_* unused variables.
11695
11696         * device-msw.c (msprinter_init_device): Do not get printer font
11697         list; Added DEVMODE functions.
11698
11699         * frame-msw.c: Added lots of printer code.
11700
11701         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
11702         general.c.
11703
11704         * console-msw.h: Added more msprinter device private slots.
11705
11706 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11707
11708         * event-msw.c (key_needs_default_processing_p): Added.
11709         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
11710
11711 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11712
11713         * glyphs.c (image_instance_layout): Mark image instance as clean
11714         after layout.
11715         (glyph_dirty_p): Removed redundant function.
11716         (invalidate_glyph_geometry_maybe): Added.
11717         (update_glyph_cachel_data): Call it.
11718
11719         * glyphs.h: Prototyped it.
11720
11721         * redisplay.c (add_glyph_rune): Call it.
11722         (redisplay_window): Reset glyphs cachels when frame faces have
11723         changed, thus forcing recomputation of built-in border glyphs.
11724
11725 2000-01-30  Martin Buchholz  <martin@xemacs.org>
11726
11727         * Makefile.in.in: Make portable dumper and purify play well together.
11728         Add imperfect, but better than nothing, support for pdump.
11729         Remove xemacs.dmp when temacs is re-generated.
11730         Don't ignore errors when dumping xemacs.
11731
11732         * symbols.c (maybe_call_magic_handler): Remove one magic number.
11733
11734 2000-01-28  Andy Piper  <andy@xemacs.org>
11735
11736         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
11737         (setup_normal_frame): ditto.
11738         (setup_frame_without_minibuffer): ditto.
11739         (setup_minibuffer_frame): ditto.
11740         (delete_frame_internal): ditto.
11741         (Fmake_frame_invisible): ditto.
11742         (Ficonify_frame): ditto.
11743
11744         * window.h: change Fset_window_buffer signature.
11745
11746         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
11747         (Fset_window_buffer): allow recording of buffer if the window is
11748         the selected window.
11749         (window_loop): Use new Fset_window signature.
11750
11751 2000-01-23  Daniel Pittman  <daniel@danann.net>
11752
11753         * config.h.in: Added template for `HAVE_ATHENA_3D'
11754
11755 2000-01-29  Andy Piper  <andy@xemacs.org>
11756
11757         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
11758
11759         * gutter.c (output_gutter): Don't output if the window isn't live.
11760
11761 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11762
11763         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
11764         of 01/12/00: Moved SetFocus back here where it belongs.
11765
11766 2000-01-23  Andy Piper  <andy@xemacs.org>
11767
11768         * s/cygwin32.h: declare printer things.
11769
11770 2000-01-26  Andy Piper  <andy@xemacs.org>
11771
11772         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
11773         Alexander.
11774
11775 2000-01-24  Andy Piper  <andy@xemacs.org>
11776
11777         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
11778         (mswindows_button_instantiate): Make sure glyph is a pixmap.
11779
11780         * glyphs-widget.c (widget_instantiate): Avoid shadows.
11781
11782         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
11783
11784         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
11785
11786         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
11787         (mswindows_output_display_block): Avoid local shadows.
11788
11789         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
11790         (mswindows_enqueue_mouse_button_event): ditto.
11791         (mswindows_handle_gui_wm_command): remove declaration.
11792
11793         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
11794         warnings.
11795
11796         * console-msw.h: Avoid shadows.
11797         (mswindows_get_toolbar_button_text):
11798         (emacs_mswindows_create_stream_pair):
11799         (emacs_mswindows_delete_stream_pair):
11800         (mswindows_handle_toolbar_wm_command): declare.
11801
11802         * device-msw.c (build_syscolor_string): Avoid shadows.
11803
11804 2000-01-23  Andy Piper  <andy@xemacs.org>
11805
11806         * glyphs-widget.c (widget_instantiate): reverse the items for
11807         layouts so that children are in the expected order.
11808
11809 2000-01-28  Martin Buchholz  <martin@xemacs.org>
11810
11811         * ralloc.c: safe_bcopy ==> memmove
11812         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
11813         * s/msdos.h: Remove BCOPY macros.
11814         * insdel.c (gap_right): Remove BCOPY conditional code.
11815         * insdel.c (gap_left): Remove BCOPY conditional code.
11816         XEmacs demands a working ANSI C compiler - hence memmove.
11817
11818         * regex.c (regex_compile): Remove accidental use of trigraphs.
11819
11820 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11821
11822         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
11823         event timestamp.
11824
11825 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
11826
11827         * event-msw.c (mswindows_drain_windows_queue): Added the
11828         parameter.
11829         (mswindows_need_event): Commented the call to
11830         mswindows_drain_windows_queue().
11831         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
11832         only.
11833
11834         * console-msw.h: Moved a few function prototypes here from
11835         event-msw.c.
11836
11837         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
11838         parameter from unsigned short to unsigned long.
11839         (Fmswindows_shell_execute): Added return value.
11840
11841 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11842
11843         * sysdep.c (init_system_name):
11844           process-unix.c (unix_canonicalized_host_name):
11845         Don't call freeaddrinfo() if getaddrinfo() fails.
11846
11847         * process-unix.c (unix_open_unix_network_stream):
11848         Moved the code to get a port # into address loop.
11849
11850 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11851
11852         * buffer.c (reinit_vars_of_buffer):
11853         The right place to initialize conversion_in_dynarr and
11854         conversion_out_dynarr.
11855
11856         * alloc.c (pdump): Use the real open() till sys_open() is functional.
11857
11858         * process-unix.c (unix_canonicalize_host_name): Muleize.
11859         (unix_open_network_stream): Muleize.
11860
11861         * buffer.h: Fix up prototypes for ralloc.c functions.
11862
11863 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
11864         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
11865         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
11866                 instead of gethostbyname()
11867         * process-unix.c: In unix_canonicalize_host_name() and
11868                 unix_open_network_stream(), add code to use getaddrinfo()
11869                 instead of gethostbyname().
11870
11871 2000-01-27  Daniel Pittman <daniel@danann.net>
11872
11873         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
11874         libs when built with flat Athena.
11875
11876 2000-01-27  Martin Buchholz  <martin@xemacs.org>
11877
11878         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
11879         Use coding standards for function prototypes.
11880
11881 2000-01-25  Martin Buchholz  <martin@xemacs.org>
11882
11883         * dialog-msw.c (push_lisp_string_as_unicode):
11884         * doc.c (unparesseuxify_doc_string):
11885         * dired.c (Fuser_name_completion_1):
11886         * dired.c (Fuser_name_all_completions):
11887         * dired.c (free_user_cache):
11888         * dired.c (user_name_completion):
11889         * console-x.c (get_display_arg_connection):
11890         * minibuf.c (clear_echo_area_internal):
11891         * minibuf.c (echo_area_append):
11892         * eldap.c (Fldap_open):
11893         * eldap.c (Fldap_search_internal):
11894         * frame-x.c (x_set_frame_text_value):
11895         * frame-x.c (x_set_frame_properties):
11896         * frame-x.c (x_create_widgets):
11897         * redisplay-tty.c (term_get_fkeys_1):
11898         * objects-x.c (x_parse_nearest_color):
11899         * objects-x.c (x_valid_color_name_p):
11900         * objects-x.c (x_initialize_font_instance):
11901         * objects-x.c (x_list_fonts):
11902         * objects-x.c (x_find_charset_font):
11903         * tooltalk.c (Fadd_tooltalk_message_arg):
11904         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
11905         * tooltalk.c (Fadd_tooltalk_pattern_arg):
11906         * process-unix.c (unix_create_process):
11907         * ntproc.c (sys_spawnve):
11908         * sound.c (Fplay_sound_file):
11909         * sound.c (Fplay_sound):
11910         * buffer.c (init_initial_directory):
11911         * buffer.c (init_buffer):
11912         * editfns.c (init_editfns):
11913         * editfns.c (Ftemp_directory):
11914         * editfns.c (Fuser_full_name):
11915         * editfns.c (uncache_home_directory):
11916         * editfns.c (get_home_directory):
11917         * editfns.c (Fuser_home_directory):
11918         * editfns.c (Fformat_time_string):
11919         * editfns.c (Fcurrent_time_string):
11920         * gui-x.c (button_item_to_widget_value):
11921         * database.c (Fopen_database):
11922         * event-Xt.c (x_to_emacs_keysym):
11923         * event-Xt.c (x_event_to_emacs_event):
11924         * event-Xt.c (describe_event_window):
11925         * event-msw.c (mswindows_wnd_proc):
11926         * glyphs-eimage.c (jpeg_instantiate):
11927         * glyphs-eimage.c (gif_instantiate):
11928         * glyphs-eimage.c (png_instantiate):
11929         * glyphs-eimage.c (tiff_instantiate):
11930         * glyphs-x.c (xbm_instantiate_1):
11931         * glyphs-x.c (x_xbm_instantiate):
11932         * glyphs-x.c (x_xface_instantiate):
11933         * glyphs-x.c (autodetect_instantiate):
11934         * glyphs-x.c (cursor_font_instantiate):
11935         * glyphs-x.c (x_widget_instantiate):
11936         * glyphs-x.c (x_widget_set_property):
11937         * glyphs-x.c (x_widget_property):
11938         * glyphs-x.c (BUILD_GLYPH_INST):
11939         * print.c (write_string_to_stdio_stream):
11940         * print.c (output_string):
11941         * print.c (Falternate_debugging_output):
11942         * print.c (Fexternal_debugging_output):
11943         * glyphs-msw.c (extract_xpm_color_names):
11944         * glyphs-msw.c (mswindows_xpm_instantiate):
11945         * glyphs-msw.c (bmp_instantiate):
11946         * glyphs-msw.c (resource_name_to_resource):
11947         * glyphs-msw.c (mswindows_resource_instantiate):
11948         * glyphs-msw.c (xbm_instantiate_1):
11949         * glyphs-msw.c (mswindows_xbm_instantiate):
11950         * glyphs-msw.c (mswindows_xface_instantiate):
11951         * glyphs-msw.c (mswindows_widget_instantiate):
11952         * glyphs-msw.c (add_tree_item):
11953         * glyphs-msw.c (add_tab_item):
11954         * glyphs-msw.c (mswindows_combo_box_instantiate):
11955         * glyphs-msw.c (mswindows_widget_property):
11956         * glyphs-msw.c (mswindows_combo_box_property):
11957         * glyphs-msw.c (mswindows_widget_set_property):
11958         * console.c (stuff_buffered_input):
11959         * objects-msw.c (mswindows_initialize_color_instance):
11960         * objects-msw.c (mswindows_valid_color_name_p):
11961         * objects-msw.c (mswindows_list_fonts):
11962         * objects-msw.c (mswindows_font_instance_truename):
11963         * bytecode.c (optimize_compiled_function):
11964         * select-x.c (symbol_to_x_atom):
11965         * select-x.c (x_atom_to_symbol):
11966         * select-x.c (hack_motif_clipboard_selection):
11967         * select-x.c (selection_data_to_lisp_data):
11968         * select-x.c (lisp_data_to_selection_data):
11969         * select-x.c (Fx_get_cutbuffer_internal):
11970         * select-x.c (Fx_store_cutbuffer_internal):
11971         * buffer.h (TO_EXTERNAL_FORMAT): New function.
11972         * buffer.h (TO_INTERNAL_FORMAT): New function.
11973         * emacs.c (make_arg_list_1):
11974         * emacs.c (make_argc_argv):
11975         * emacs.c (main_1):
11976         * emacs.c (Fdump_emacs):
11977         * emacs.c (split_string_by_emchar_1):
11978         * file-coding.h:
11979         * lisp.h:
11980         * lstream.h:
11981         * symsinit.h:
11982         * device-x.c (x_init_device):
11983         * device-x.c (Fx_valid_keysym_name_p):
11984         * device-x.c (Fx_get_font_path):
11985         * device-x.c (Fx_set_font_path):
11986         * glyphs.c (bitmap_to_lisp_data):
11987         * glyphs.c (pixmap_to_lisp_data):
11988         * alloc.c (make_ext_string): Use coding system arguments.  Update
11989         all callers.
11990         * alloc.c (build_string):
11991         * callproc.c (child_setup):
11992         * callproc.c (init_callproc):
11993         * fileio.c (lisp_strerror):
11994         * fileio.c (directory_file_name):
11995         * fileio.c (Fexpand_file_name):
11996         * fileio.c (Ffile_truename):
11997         * fileio.c (Fsysnetunam):
11998         * fileio.c (Fdo_auto_save):
11999         * sysdep.c (sys_readdir):
12000         * tests.c: New file.  Allow adding C tests.
12001         Replace GET_* macros with a more comprehensible and flexible
12002         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12003         Modify all calls.
12004         Any coding system can be used to do format conversion.
12005         Eliminate enum external_data_format.
12006         Eliminate convert_to_external_format.
12007         Eliminate convert_to_internal_format.
12008         Make sure file-name, keyboard, terminal, and ctext are always
12009         defined as coding systems or aliases.  Make
12010         file-name-coding-system, terminal-coding-system, and
12011         keyboard-coding-system magical variables that are equivalent to
12012         defining the corresponding coding system aliases.
12013
12014         * file-coding.c (Fcoding_system_canonical_name_p): New function.
12015         * file-coding.c (Fcoding_system_alias_p): New function.
12016         * file-coding.c (Fcoding_system_aliasee): New function.
12017         * file-coding.c (append_suffix_to_symbol): New function.
12018         * file-coding.c (dangling_coding_system_alias_p): New function.
12019         * file-coding.c (Ffind_coding_system):
12020         * file-coding.c (Fcopy_coding_system):
12021         * file-coding.c (encode_coding_no_conversion):
12022         * file-coding.c (syms_of_file_coding):
12023         * file-coding.c (vars_of_file_coding):
12024         Rewrite coding system alias code.
12025         Allow nested aliases, like symbolic links.
12026         Allow redefinition of coding system aliases.
12027         Prevent existence of dangling coding system aliases.
12028
12029         * dired.c (Fuser_name_completion_1):
12030         * dired.c (Fuser_name_all_completions):
12031         A crash would happen if user did QUIT in the middle of building
12032         user_name_cache.  Remove redundant code in mainline and unwind_protect.
12033
12034         * lisp.h:
12035         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
12036
12037         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12038         an unsigned char *.  Update all callers.
12039
12040 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12041
12042         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12043
12044 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12045
12046         * elhash.c (hentry_description): Use more portable definition.
12047         (resize_hash_table): Initialize new hentries using
12048         xnew_array_and_zero, thereby simplifying the code.
12049
12050         * mule-charset.c (make_charset): Make sure entire object is
12051         initialized, to avoid Purify warnings.
12052
12053         * alloc.c (resize_string): Fix unlikely crash with big strings.
12054
12055 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12056
12057         * realpath.c (xrealpath):
12058         Don't call getwd().
12059
12060 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12061
12062         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12063
12064 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
12065
12066         * unexelfsgi.c (unexec): Change the way we decide which segment
12067         should be extended.
12068
12069         Assumption that .bss section should be outside the PT_LOADable
12070         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12071         it's present) is inside the 'data' segment. This would fail the
12072         test which was used to find a segment to grow and cover new
12073         heap. Instead of this assumption, I created another one - on IRIX
12074         the segment to grow should start below .bss and it's address
12075         should extent above the end of .bss. Once this segment is
12076         identified, it's grown to accommodate the new heap and new
12077         zero-length .bss section is added at the end of .data2.
12078
12079 2000-01-25  Martin Buchholz  <martin@xemacs.org>
12080
12081         * eval.c (Feval): Wrong number of arguments should use original
12082         function, not the indirect_function version of it.
12083
12084 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
12085
12086         * glyphs-x.c (x_button_instantiate): Don't add image if
12087         it is not a pixmap.
12088         (x_locate_pixmap_file): Call Fexpand_file_name when file name
12089         is relative.
12090
12091 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
12092
12093         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12094         declaration.
12095         (DEFVAR_INT_MAGIC): Ditto.
12096         (DEFVAR_BOOL_MAGIC): Ditto.
12097         * glyphs.h: Reindent backslash.
12098
12099 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12100
12101         * glyphs-widget.c (layout_query_geometry):
12102         (layout_layout): Use correct types for gheight, gwidth.
12103
12104 2000-01-24  Martin Buchholz  <martin@xemacs.org>
12105
12106         * EmacsManager.c (QueryGeometry): Purified.
12107
12108 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12109
12110         * alloc.c (make_float): Make sure entire object is initialized, to
12111         avoid Purify warnings.
12112         (pdump_register_sub): Remove useless assignment.
12113         (pdump): Use xmalloc, not malloc.
12114         (pdump_load): Use xmalloc, not malloc.
12115
12116 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12117
12118         * callproc.c:
12119         * dired-msw.c:
12120         * fileio.c:
12121         * process-nt.c:
12122         * redisplay-msw.c:
12123         * sysdep.c: Removed redundant #include <windows.h>
12124
12125 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12126
12127         * frame.c (delete_frame_internal): Do not delete device when its
12128         implementation so declares.
12129         (delete_frame_internal): Set device selected frame to nil when
12130         last frame goes away.
12131
12132         * device-msw.c (msprinter_device_system_metrics): Implemented.
12133         (mswindows_device_system_metrics): Added 'device-dpi property.
12134
12135         * device.c: (Fdevice_printer_p): Added.
12136         Added 'offset-workspace device metric.
12137
12138         * console.h (device_metrics): Declared DM_offset_workspace.
12139
12140 2000-01-23  Martin Buchholz  <martin@xemacs.org>
12141
12142         * fileio.c (Ffile_truename): Remove pointless and confusing
12143         initialization of elen.
12144
12145         * glyphs-widget.c: Compiler warning fixes.
12146
12147 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
12148
12149         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12150         instead of a Lisp_Object as argument to make it consistent with
12151         the other LIVE_P macros.
12152         (CHECK_LIVE_PROCESS): New macro.
12153
12154         * process.c: Declare Qprocess_live_p.
12155         (Fprocess_live_p): New function.
12156         (create_process): Use PROCESS_LIVE_P.
12157         (read_process_output): Ditto.
12158         (set_process_filter): Ditto.
12159         (Fdelete_process): Ditto.
12160         (kill_buffer_processes): Ditto
12161         (process_send_signal): Use CHECK_LIVE_PROCESS.
12162         (Fprocess_input_coding_system): Check whether process is still
12163         alive (fix PR#1061).
12164         (Fprocess_output_coding_system): Ditto.
12165         (Fprocess_coding_system): Ditto.
12166         (Fset_process_input_coding_system): Ditto.
12167         (Fset_process_output_coding_system): Ditto.
12168
12169 2000-01-23  Andy Piper  <andy@xemacs.org>
12170
12171         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12172         layout and widget.
12173
12174         * glyphs.c (mark_image_instance): take into account changed
12175         image_instance format.
12176         (image_instance_equal): ditto.
12177         (image_instance_hash): ditto.
12178
12179         * glyphs-widget.c (widget_instantiate): Incorporate layout
12180         instantiation here. Delay layout of the layout until later.
12181         (layout_instantiate): deleted.
12182         (layout_query_geometry): new function. get the geometry of a
12183         layout.
12184         (layout_layout): layout a layout dynamically.
12185         (image_instantiator_widget): New function - splitting up
12186         image_instantiator_format_create_glyphs_widget for netwinder
12187         compilation.
12188         (image_instantiator_buttons):
12189         (image_instantiator_edit_fields):
12190         (image_instantiator_combo_box):
12191         (image_instantiator_scrollbar):
12192         (image_instantiator_progress_guage):
12193         (image_instantiator_tree_view):
12194         (image_instantiator_tab_control):
12195         (image_instantiator_labels):
12196         (image_instantiator_layout): ditto.
12197         (image_instantiator_format_create_glyphs_widget): Call preceding
12198         functions.
12199
12200 2000-01-22  Martin Buchholz  <martin@xemacs.org>
12201
12202         * process.c (Fset_process_coding_system):
12203         * device-x.c (Fx_keysym_hash_table):
12204         Docstring fixes.
12205
12206         * lstream.c (Lstream_write): Return documented value, not 0.
12207
12208         * fileio.c (directory_file_name):
12209         (Fsubstitute_in_file_name):
12210         (Fsubstitute_insert_file_contents_internal):
12211         (Fwrite_region_internal):
12212         * emacs.c:
12213         * sysdep.c:
12214         * getloadavg.c:
12215         * systty.h:
12216         Remove vestigial APOLLO-conditional code.
12217
12218 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12219
12220         * getpagesize.h: Add guard macros.
12221         * libsst.h: Add guard macros.
12222         * libst.h: Add guard macros.
12223         * line-number.h: Add guard macros.
12224         * ndir.h: Add guard macros.
12225         * sysfloat.h: Add guard macros.
12226         * sysfile.h: Add guard macros.
12227         * sysproc.h: Add guard macros.
12228         * syswait.h: Add guard macros.
12229         * xintrinsic.h: Add guard macros.
12230         * xintrinsicp.h: Add guard macros.
12231         * xmmanager.h: Add guard macros.
12232         * xmmanagerp.h: Add guard macros.
12233         * xmprimitive.h: Add guard macros.
12234         * xmu.h: Add guard macros.
12235         * gpmevent.h: Add copyright statement. Add guard macros.
12236         * miscplay.h: Add guard macros.
12237         * *.h: Use consistent C-standards-approved guard macro names.
12238
12239         * opaque.c (make_opaque): Switch parameter order.
12240         * opaque.h (make_opaque): Switch parameter order.
12241         Update all callers.
12242         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12243
12244         * config.h.in (type_checking_assert): Added.
12245         (bufpos_checking_assert): Added.
12246
12247 2000-01-21  Martin Buchholz  <martin@xemacs.org>
12248
12249         * alloc.c: Harmless pdump changes.
12250         - Use countof().
12251         - spell alignment correctly.
12252         * sysdep.c: Use countof()
12253
12254 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12255
12256         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12257         initially_selected_for_input() console method, default to 0.
12258         (semi_canonicalize_console_connection): Try to delegate to
12259         canonicalize_console_connection if no such console method.
12260         (canonicalize_console_connection): Vice versa.
12261         (print_console): Do not print nil connection.
12262
12263         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12264         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12265         (XDEVIMPF_FRAMELESS_OK): Added.
12266         (CONSOLE_INHERITS_METHOD): Added.
12267
12268         * console-msw.c (mswindows_canonicalize_console_connection):
12269         Added.
12270         (mswindows_canonicalize_device_connection): Added.
12271
12272         * console-msw.h (struct msprinter_device): Added this struct and
12273         accessor macros.
12274         (mswindows_device): Made fontlist a lisp object.
12275
12276         * device.c (semi_canonicalize_device_connection):  Try to delegate
12277         to canonicalize_device_connection if no such console method.
12278         (canonicalize_device_connection): Vice versa.
12279         (print_device): Do not print nil connection.
12280
12281         * device-msw.c (mswindows_init_device): Call InitCommonControls
12282         when have widgets.
12283         (mswindows_delete_device): Removed fontlist deallocation.
12284         (mswindows_mark_device): Added.
12285
12286         * events.c (event_equal): Added abort() at unreached code.
12287         (event_hash): Ditto.
12288
12289         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12290         fallback tags of Windows devices.
12291
12292         * general.c (syms_of_general): Initialized Qmsprinter.
12293
12294         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12295         of fallback tags of Windows devices.
12296
12297         * lisp.h: Declared Qmsprinter.
12298
12299         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12300         of strings.
12301         (mswindows_list_fonts): Ditto.
12302         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12303         that it can be used by both mswindows and msprinter devices.
12304         (initialize_font_instance): Added.
12305         (mswindows_initialize_font_instance): Use it.
12306         (msprinter_initialize_font_instance): Added.
12307
12308         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12309         and implementation flags check.
12310         (redisplay_without_hooks): Changed the call to the above.
12311         (Fredraw_device): Ditto.
12312         (Fredisplay_device): Ditto.
12313
12314         * redisplay-msw.c (get_frame_dc): Implemented.
12315         (get_frame_compdc): Implemented.
12316         (many functions): Use the two functions above to get device
12317         contexts, ether for a window or a printer.
12318
12319 2000-01-21  Olivier Galibert  <galibert@pobox.com>
12320
12321         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12322         initialization here.
12323         (init_symbols_once_early): Call it.
12324         * emacs.c (main_1): Call it.
12325         * symsinit.h: Declare it.
12326
12327 2000-01-19  Olivier Galibert  <galibert@pobox.com>
12328
12329         * alloc.c: Use a lrecord_header * in the backtrace instead of a
12330         Lisp_Object.
12331         (pdump_backtrace): Ditto.
12332         (pdump_register_object): Ditto.  Cleanup use of the pointers.
12333         (pdump_get_entry): Abort if trying to register a null pointer.
12334         (pdump_dump_data): Cleanup types when relocating.
12335         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12336         (pdump_dump_rtables): Remove bad casts.
12337         (pdump_load): Cleanup relocation w.r.t union type.  Use a
12338         Lisp_Object instead of a EMACS_INT for the hashtable
12339         reorganization.
12340
12341 2000-01-20  Martin Buchholz  <martin@xemacs.org>
12342
12343         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12344
12345         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12346
12347         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12348
12349         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12350
12351 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12352
12353         * faces.h (FACE_STRIKETHRU_P): Added.
12354
12355         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12356         of font variants.
12357
12358         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12359         (mswindows_set_dc_font): New function, aware of font variants,
12360         separated from mswindows_update_dc.
12361
12362         * objects-msw.h (struct mswindows_font_instance_data): Added
12363         definition.
12364
12365         * objects-msw.c (mswindows_finalize_font_instance): Delete all
12366         cached fonts and the data structure.
12367         (mswindows_initialize_font_instance): Added creation of font data
12368         structure.
12369         (mswindows_print_font_instance): Print at least something.
12370         (mswindows_create_font_variant): Implemented.
12371         (mswindows_get_hfont): Implemented.
12372
12373 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
12374
12375         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12376         prototyping problem with msvc.
12377
12378         * emacs.c (main_1): added syms_of_gui_mswindows() call
12379
12380         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12381         syms_of_gui_mswindows() function
12382
12383         * symsinit.h: added the prototype for syms_of_gui_mswindows()
12384
12385 2000-01-18  Martin Buchholz <martin@xemacs.org>
12386
12387         * XEmacs 21.2.27 is released.
12388
12389 2000-01-18  Martin Buchholz  <martin@xemacs.org>
12390
12391         * glyphs-eimage.c (struct tiff_error_struct):
12392         (tiff_error_func):
12393         (tiff_warning_func):
12394         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12395
12396         * unexmips.c:
12397         * unexhp9k3.c:
12398         * unexfreebsd.c:
12399         * unexec.c: Remove vestigial Lucid C code.
12400         * unexalpha.c:
12401         * unexaix.c:
12402         * termcap.c:
12403         * libsst.c: Ansify.
12404         Remove declarations of errno and strerror().
12405
12406         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
12407
12408         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12409
12410 2000-01-16  Martin Buchholz  <martin@xemacs.org>
12411
12412         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12413         Optimize.
12414
12415 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12416
12417         * md5.c:
12418         * file-coding.c:
12419         * file-coding.h:
12420         Change enum eol_type to eol_type_t.
12421
12422 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12423
12424         * gui.c (get_gui_callback): Check cons before accessing car.
12425
12426 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12427
12428         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12429         (XSETSPECIFIER_TYPE): Ditto.
12430
12431 2000-01-17  Didier Verna  <didier@xemacs.org>
12432
12433         * redisplay.c (generate_fstring_runes): compute string size in
12434         characters, not bytes.
12435
12436 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12437
12438         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12439
12440 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
12441
12442         * print.c (print_error_message): Call print_prepare().
12443
12444 2000-01-14  Martin Buchholz  <martin@xemacs.org>
12445
12446         * .dbxrc: Renamed from dbxrc.
12447
12448         * events.c (event_to_character):
12449         Use `assert (foo)' instead of `if (!foo) abort()'
12450
12451         * .gdbinit (xtype): Add documentation.
12452         * .gdbinit (check-temacs): New function.
12453         * .gdbinit (check-xemacs): New function.
12454         * dbxrc (check-xemacs): New function.
12455         * dbxrc (check-xemacs): New function.
12456
12457 2000-01-14  Andy Piper  <andy@xemacs.org>
12458
12459         * glyphs-widget.c (widget_query_geometry): Make sure that we
12460         calculate default dimensions correctly.
12461
12462 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12463
12464         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12465
12466         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12467         pdump_wire'd variable.
12468
12469         * emacs.c: (main_1): Conditionalized calls to
12470         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12471
12472 2000-01-13  Martin Buchholz  <martin@xemacs.org>
12473
12474         * window.c (Fset_window_configuration):
12475         * sysdep.c (_start):
12476         * input-method-motif.c (res):
12477         * event-Xt.c (Xt_process_to_emacs_event):
12478         Simple compiler warning fixes.
12479
12480         * bytecode.c (funcall_compiled_function): Use the original
12481         function symbol on the backtrace list in preference to the
12482         compiled_function object in error messages.
12483
12484 2000-01-13  Andy Piper  <andy@xemacs.org>
12485
12486         * glyphs-x.c (update_widget_face): Make sure we update the widget
12487         background as well as foreground.
12488
12489 2000-01-13  Andy Piper  <andy@xemacs.org>
12490
12491         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12492         fields to subwindow.
12493         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12494         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12495         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12496         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12497
12498         * glyphs-widget.c (check_valid_tab_orientation): new function.
12499         (initialize_widget_image_instance): zero orientation and
12500         justification.
12501         (widget_instantiate): pick up orientation.
12502         (tab_control_query_geometry): return appropriate values for
12503         vertical tabs.
12504
12505         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12506         appropriate creation flags for left, right and bottom tabs.
12507
12508         * s/cygwin32.h: add tab definitions.
12509
12510 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12511
12512         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12513         frame upon hiding a subwindow.
12514         (mswindows_button_instantiate): Changed the push button style to
12515         BS_PUSHBUTTON.
12516         (mswindows_button_instantiate): Removed button BS_NOTIFY
12517         style.
12518         (mswindows_button_instantiate): Removed redundant check for
12519         a disabled gui item.
12520         (mswindows_button_instantiate): Made use of WS_TABSTOP
12521         consistent: "operable" controls (edit, button, tree, scroll) have
12522         this style, "display-only" ones (static, progress gauge) do
12523         not. This style is currently ignored by XEmacs though. Also,
12524         removed the WS_EX_CONTROLPARENT style - it is not for children,
12525         it is for their parents!
12526         (mswindows_edit_field_instantiate): Ditto.
12527         (mswindows_progress_gauge_instantiate): Ditto.
12528         (mswindows_tree_view_instantiate): Ditto.
12529         (mswindows_tab_control_instantiate): Ditto.
12530         (mswindows_scrollbar_instantiate): Ditto.
12531         (mswindows_combo_box_instantiate): Ditto.
12532         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12533         style to the "clip" window.
12534         (mswindows_button_instantiate): Removed compilation warning by
12535         equally typing terms of the ?: operator.
12536
12537 2000-01-12  Didier Verna  <didier@xemacs.org>
12538
12539         * redisplay.c (generate_fstring_runes): new parameter holding the
12540         last modeline-format extent.
12541         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12542         extent, fill the glyph block with it.
12543         (generate_fstring_runes): handle these parameters.
12544         (generate_formatted_string_db): ditto.
12545
12546         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12547         glyphs'extents in the modeline.
12548
12549 1999-01-11  Mike Woolley  <mike@bulsara.com>
12550
12551         * ntheap.c: Reduced the reserved heap space from 1Gb down to
12552         256Mb, as a workaround for the non-starting problem many people
12553         have experienced.
12554
12555 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
12556
12557         * console-tty.c (Fset_console_tty_output_coding_system):
12558         Force redrawing tty frame.
12559
12560 2000-01-10  Didier Verna  <didier@xemacs.org>
12561
12562         * redisplay.c (generate_fstring_runes): fix size computation bug.
12563
12564 2000-01-09  William M. Perry <wmperry@aventail.com>
12565
12566         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12567
12568 2000-01-09  Andy Piper  <andy@xemacs.org>
12569
12570         * glyphs-msw.c: index -> i to avoid shadows.
12571         (xbm_create_bitmap_from_data): make static.
12572         (check_valid_string_or_int): deleted.
12573         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12574
12575         * glyphs-x.c (x_update_subwindow): remove unused args.
12576
12577         * glyphs.c (glyph_image_instance): return the thing. Don't set the
12578         back pointer - this is done in allocate_image_instance.
12579         (query_string_font): return Qnil to make the compiler happy.
12580         (unmap_subwindow): set to ~0 to make the compiler happy.
12581         (glyph_query_geometry): comment out until used.
12582         (glyph_layout): ditto.
12583
12584 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
12585
12586         * insdel.c (signal_after_change): Remove extraneous unbind_to().