1 2002-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
3 * mule-charset.c (charset_code_point): Fix problem about
6 2002-11-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
8 * mule-charset.c (decode_builtin_char): Reorganized.
10 2002-10-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
12 * text-coding.c (char_encode_shift_jis): Modify for
14 (char_encode_big5): Likewise.
15 (char_encode_utf8): Likewise.
16 (char_encode_iso2022): Likewise.
18 * mule-charset.c (charset_code_point): Add new argument
20 (Fencode_char): Add new optional argument `defined_only'.
22 * chartab.c (put_char_table): Modify for `charset_code_point'.
23 (map_char_table): Likewise.
25 * char-ucs.h (charset_code_point): Add new argument
27 (encode_char_1): Modify for `charset_code_point'.
29 2002-10-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
31 * mule-charset.c (complex_vars_of_mule_charset): Don't specify
32 `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
34 2002-10-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
36 * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
37 (Qjis_x0208): Likewise.
38 (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
39 XCHARSET_FINAL(charset).
40 (charset_code_point): Modify condition for final-byte based
42 (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
43 (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
44 in UTF-2000; specify `=jis-x0208' as the mother of
45 `japanese-jisx0208-1978', `japanese-jisx0208' and
46 `japanese-jisx0208-1990' in UTF-2000.
48 2002-10-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
50 * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
52 2002-07-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
54 * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
55 CONVERSION_IDENTICAL, identical conversion is used even if a CCS
56 is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
57 CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
58 CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
59 CONVERSION_96x96x96x96 are introduced.
60 (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
61 CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
62 instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
64 * char-ucs.h (CONVERSION_94): New macro.
65 (CONVERSION_96): New macro.
66 (CONVERSION_94x94): New macro.
67 (CONVERSION_96x96): New macro.
68 (CONVERSION_94x94x94): New macro.
69 (CONVERSION_96x96x96): New macro.
70 (CONVERSION_94x94x94x60): New macro.
71 (CONVERSION_94x94x94x94): New macro.
72 (CONVERSION_96x96x96x96): New macro.
74 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
76 * lisp.h: Add an EXFUN for `Fchar_ref_p'.
78 * fns.c (Qideographic_structure): New variable.
79 (Qkeyword_char): New variable.
80 (ids_format_unit): New function.
81 (Fideographic_structure_to_ids): New function.
82 (syms_of_fns): Add new symbols `ideographic-structure' and
83 `:char'; add new builtin function `ideographic-structure-to-ids'.
85 * data.c (Fchar_ref_p): New function.
86 (syms_of_data): Add new builtin function `char-ref-p'.
88 * chartab.h: Add an EXFUN for `Ffind_char'.
90 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
92 * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
93 and `COMPOSE_ADD_CHAR'.
94 (decode_coding_iso2022): Use `decode_flush_er_chars'.
96 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
98 * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
99 instead of `DECODE_ADD_UCS_CHAR'.
100 (COMPOSE_ADD_CHAR): Likewise.
102 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
104 * text-coding.c (decode_flush_er_chars): New inline function.
105 (decode_add_er_char): New function.
106 (decode_coding_utf8): Use `decode_flush_er_chars' and
107 `decode_add_er_char'.
109 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
111 * text-coding.c (decode_coding_utf8): Flush for er_buf must be
112 done before `decode_output_utf8_partial_char'.
114 * mule-charset.c (complex_vars_of_mule_charset): Specify
115 `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
116 `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
118 2002-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
120 * mule-charset.c (decode_defined_char): New function; search
122 (decode_builtin_char): Don't search mother if
123 XCHARSET_MAX_CODE(charset) == 0.
124 (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
125 == 0 even if code >= XCHARSET_MAX_CODE(charset).
126 (Fdecode_char): Use `decode_defined_char' instead of
127 `DECODE_DEFINED_CHAR'.
128 (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
129 mother of `Vcharset_ucs_jis'.
131 * text-coding.c (decode_coding_big5): Use `decode_defined_char'
132 instead of `DECODE_DEFINED_CHAR'.
134 * char-ucs.h (decode_defined_char): Renamed from
135 `DECODE_DEFINED_CHAR'; changed to normal function.
136 (DECODE_CHAR): Use `decode_defined_char' instead of
137 `DECODE_DEFINED_CHAR'.
139 * lisp.h: Add `EXFUN' for `Fstring_to_number'.
141 2002-07-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
143 * char-ucs.h: Add `extern' for `Vcharset_ucs'.
145 * text-coding.c (Vcoded_charset_entity_reference_alist): New
147 (Quse_entity_reference): New variable.
151 (coding_system_description): Add description for
153 (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
154 (allocate_coding_system): Initialize `ccs_priority_list' in
156 (Fmake_coding_system): Add description about
157 'use-entity-reference; setup
158 CODING_SYSTEM_USE_ENTITY_REFERENCE(codesys).
159 (Fcoding_system_property): Accept `disable-composition' and
160 `use-entity-reference' in UTF-2000.
161 (struct decoding_stream): Add new member `er_counter' and `er_buf'
163 (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
164 (decode_coding_utf8): Decode entity-reference if
165 CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
166 (char_encode_utf8): Encode non-Unicode characters as
167 entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
169 (syms_of_file_coding): Add new symbols `use-entity-reference',
171 (vars_of_file_coding): Add new variable
172 `coded-charset-entity-reference-alist'.
173 (complex_vars_of_file_coding): Declare `disable-composition' and
174 `use-entity-reference' to be coding-system-properties in UTF-2000.
176 * file-coding.h (struct Lisp_Coding_System): Add new member
177 `use_entity_reference' and `ccs_priority_list'.
178 (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
179 (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
180 (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
182 2002-02-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
184 * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
186 2002-02-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
188 * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
189 `XCHARSET_GRAPHIC(ccs)'.
191 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
193 * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
196 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
198 * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
199 instead of `XCHARSET_CHARS'.
201 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
203 * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
204 (XCHARSET_BYTE_SIZE): Likewise.
206 * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
208 (XCHARSET_BYTE_SIZE): Likewise.
210 2002-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
212 * char-ucs.h (decoding_table_check_elements): Delete prototype.
213 (get_ccs_octet_table): New inline function.
214 (put_ccs_octet_table): Likewise.
215 (decoding_table_put_char): Use `get_ccs_octet_table' and
216 `put_ccs_octet_table'.
217 (decoding_table_remove_char): Use `decoding_table_put_char'.
218 (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
220 * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
222 (make_charset): Use Qunbound instead Qnil as initial value of
225 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
227 * mule-charset.c (put_char_ccs_code_point): Modify for
228 `decoding_table_remove_char' and `decoding_table_put_char'.
229 (remove_char_ccs): Modify for `decoding_table_remove_char'.
231 * char-ucs.h (decoding_table_remove_char): Change arguments to
232 hide decoding_table vector.
233 (decoding_table_put_char): Likewise.
235 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
237 * mule-charset.c (decoding_table_remove_char): Moved to
239 (decoding_table_put_char): Likewise.
241 * char-ucs.h (decoding_table_check_elements): New prototype [moved
242 from mule-charset.c].
243 (decoding_table_remove_char): New inline function [moved from
245 (decoding_table_put_char): Likewise.
247 2002-04-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
249 * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
250 instead of `DECODE_CHAR' for mother; don't use special code for
251 chinese-big5 to use code space of chinese-big5-1 and
253 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
254 `MAX_CHAR_BIG5_CDP' for chinese-big5.
256 * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
257 (MAX_CHAR_BIG5_CDP): Revival.
259 2002-04-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
261 * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
262 the XLFD registry-encoding name of `chinese-big5'.
264 2002-04-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
266 * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
267 (Qchinese_big5_cdp): Deleted.
268 (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
269 (complex_vars_of_mule_charset): Delete coded-charset
272 * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
273 (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
274 `CHARSET_ID_OFFSET - n' for private CCS.
275 (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
276 (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
277 of `MIN_LEADING_BYTE'.
278 (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
279 `(CHARSET_ID_OFFSET - 97)'.
280 (MIN_CHAR_BIG5_CDP): Deleted.
281 (MAX_CHAR_BIG5_CDP): Deleted.
283 2002-01-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
285 * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
288 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
290 * mule-charset.c (decode_builtin_char): Support mother charsets.
292 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
294 * mule-charset.c (Q94x94x60): New variable.
295 (charset_code_point): Support conversion `94x94x60'.
296 (Fmake_charset): Likewise.
297 (syms_of_mule_charset): Add new symbol `94x94x60'.
299 * char-ucs.h (CONVERSION_94x94x60): New macro.
301 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
303 * mule-charset.c (charset_code_point): Unify code about
306 2001-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
308 * mule-charset.c (charset_code_point): Merge code about builtin
309 characters into code about mother charsets; don't use
310 `range_charset_code_point'.
311 (range_charset_code_point): Deleted.
313 2001-12-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
315 * mule-charset.c (Qcode_offset): New variable.
316 (Fmake_charset): Use `XUINT' to get value of `min-code' and
317 `max-code'; accept new property `code-offset'.
318 (syms_of_mule_charset): Add new symbol `code-offset'.
320 2001-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
322 * mule-charset.c (range_charset_code_point): Fixed.
324 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
326 * mule-charset.c (decode_builtin_char): Change semantics of
327 code-offset of coded-charset.
328 (charset_code_point): Likewise.
329 (range_charset_code_point): Likewise.
330 (complex_vars_of_mule_charset): Modify for the change.
332 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
334 * mule-charset.c (Fencode_char): Reverse arguments.
336 * mule-charset.c (charset_code_point): Fixed.
338 2001-12-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
340 * mule-charset.c (Vcharset_mojikyo): Deleted.
341 (Vcharset_mojikyo_2022_1): Deleted.
342 (Vcharset_mojikyo_pj_{1..21}): Deleted.
343 (Qmin_code): New variable in UTF-2000.
344 (Qmax_code): Likewise.
346 (Qconversion): Likewise.
349 (Qmojikyo_2022_1): Deleted.
350 (Qmojikyo_pj_{1..22}): Deleted.
351 (mark_charset): Mark `cs->mother'.
352 (charset_description): Add description for `mother'.
353 (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
354 new arguments `mother' and `conversion'; use
355 `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
356 (charset_code_point): Moved from char-ucs.h; support `mother'
358 (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
359 of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
360 (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
361 UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
362 allow 2 as the value of `graphic' in UTF-2000; add new properties
363 `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
364 require `final' in UTF-2000; modify for `make_charset'.
365 (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
366 instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
367 (Fcharset_property): Support `mother', `min-code' and `max-code'.
368 (Fencode_char): New function.
369 (syms_of_mule_charset): Add new builtin function `encode-char' in
370 UTF-2000; add new symbols `min-code', `max-code', `mother',
371 `conversion' and `94x60'; delete symbols `mojikyo',
372 `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
373 (complex_vars_of_mule_charset): Modify for `make_charset' change;
374 delete coded-charsets `mojikyo', `mojikyo-2022-1' and
375 `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
377 * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
378 `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
380 * char-ucs.h (Vcharset_mojikyo): Deleted.
381 (Vcharset_mojikyo_2022_1): Deleted.
382 (LEADING_BYTE_MOJIKYO): Deleted.
383 (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
384 (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
385 (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
386 (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
387 add new member `mother'; add new member `conversion'.
388 (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
389 (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
390 (CHARSET_MOTHER): New macro.
391 (CHARSET_CONVERSION): New macro.
392 (CONVERSION_IDENTICAL): New macro.
393 (CONVERSION_94x60): New macro.
394 (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
395 (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
396 (XCHARSET_MOTHER): New macro.
397 (XCHARSET_CONVERSION): New macro.
398 (MIN_CHAR_MOJIKYO): Deleted.
399 (MAX_CHAR_MOJIKYO): Deleted.
400 (DECODE_MOJIKYO_2022): Deleted.
401 (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
402 (charset_code_point): Changed to non-inline function.
403 (encode_char_1): Use `charset_code_point'.
404 (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
406 2001-12-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
408 * lread.c (read_compiled_function): Fix prototype.
409 (read_vector): Likewise.
411 2001-12-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
413 * lrecord.h (struct lrecord_header): Delete `older'.
414 (set_lheader_implementation): Delete code for `older'.
415 (set_lheader_older_implementation): Deleted.
416 (enum lrecord_type): Delete `lrecord_type_char_id_table'.
417 (OLDER_RECORD_P): Deleted.
418 (OLDER_RECORD_HEADER_P): Deleted.
419 (alloc_older_lcrecord): Deleted.
420 (alloc_older_lcrecord_type): Deleted.
422 * alloc.c (all_older_lcrecords): Deleted.
423 (alloc_older_lcrecord): Deleted.
424 (disksave_object_finalization_1): Delete code for older objects.
425 (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
426 (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
428 2001-12-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
430 * mule-charset.c (decoding_table_put_char): Use `make_vector'
431 instead of `make_older_vector'.
432 (put_char_ccs_code_point): Likewise.
433 (mark_charset): Mark `cs->decoding_table'.
434 (Fset_charset_mapping_table): Don't use `make_vector_newer'.
436 * lisp.h (make_older_vector): Deleted.
437 (make_vector_newer): Deleted.
439 * config.h.in (HAVE_GGC): Deleted.
441 * alloc.c (make_older_vector): Deleted.
442 (make_vector_newer_1): Deleted.
443 (make_vector_newer): Deleted.
445 2001-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
447 * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
448 (Qideograph_daikanwa_2): New variable.
449 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
450 (complex_vars_of_mule_charset): Add new coded-charset
451 `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
452 `LEADING_BYTE_DAIKANWA'.
454 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
455 (LEADING_BYTE_DAIKANWA_1): New macro.
456 (LEADING_BYTE_DAIKANWA_2): New macro.
457 (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
459 2001-12-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
461 * mule-charset.c (complex_vars_of_mule_charset): Change
462 DOC-strings and registry of `ideograph-daikanwa'; now it indicates
463 the second revised version.
465 2001-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
467 * mule-charset.c (Vcharset_ucs_smp): New variable.
468 (Vcharset_ucs_sip): New variable.
469 (Qucs_smp): New variable.
470 (Qucs_sip): New variable.
471 (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
472 MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
473 (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
474 (complex_vars_of_mule_charset): Modify middle-DOC and registry of
475 `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
476 charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
478 * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
479 (LEADING_BYTE_UCS_SIP): New macro.
480 (MIN_CHAR_SMP): New macro.
481 (MAX_CHAR_SMP): New macro.
482 (MIN_CHAR_SIP): New macro.
483 (MAX_CHAR_SIP): New macro.
485 2001-11-30 Yoshiki Hayashi <yoshiki@xemacs.org>
487 * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
490 2001-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
492 * mule-charset.c (put_char_ccs_code_point): Return canonicalized
493 value; don't store value into `encoding_table' of `Lisp_Charset'.
494 (mark_charset): `encoding_table' was deleted.
495 (charset_description): Likewise.
496 (make_charset): Likewise.
497 (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
498 `put_char_ccs_code_point'.
500 * chartab.h (Fput_char_attribute): New EXFUN.
502 * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
503 is unified with normal symbol space.
504 (Fget_char_attribute): Likewise.
505 (Fput_char_attribute): Likewise; behavior of
506 `put_char_ccs_code_point' is changed.
508 * char-ucs.h: Include "elhash.h".
509 (Vchar_attribute_hash_table): New external variable.
510 (struct Lisp_Charset): Delete `encoding_table'.
511 (CHARSET_ENCODING_TABLE): New implementation; refer
512 `Vchar_attribute_hash_table' instead of `encoding_table' of struct
515 2001-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
517 * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
520 2001-11-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
522 * text-coding.c (char_encode_big5): Prefer charset-g1 than
525 2001-11-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
527 * chartab.c (uint8_byte_table_description): New constant.
528 (uint8-byte-table): Use `uint8_byte_table_description'.
529 (uint16_byte_table_description): New constant.
530 (uint16-byte-table): Use `uint16_byte_table_description'.
532 2001-10-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
534 * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
535 range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
537 2001-10-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
539 * mule-charset.c (Vcharset_ucs_ks): New variable.
540 (Qucs_ks): New variable.
541 (syms_of_mule_charset): Add new symbol `ucs-ks'.
542 (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
544 * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
546 2001-10-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
548 * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
549 (Fdecode_char): Likewise.
551 * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
553 (Fdefine_char): Modify for Fdecode_char.
554 (Ffind_char): Likewise.
556 * mule-charset.c (Fdecode_char): Add new optional argument
558 (Fdecode_builtin_char): Modify for `Fdecode_char'.
560 2001-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
562 * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
563 -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
564 (allocate_coding_system): Initialize initial-charsets of
565 CODESYS_BIG5 in XEmacs UTF-2000.
566 (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
567 CODESYS_BIG5 in XEmacs UTF-2000.
568 (decode_coding_big5): Use initial-charset-g0 and -g1 of
569 CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
571 * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
573 (Qideograph_hanziku_{1 .. 12}): Likewise.
574 (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
576 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
577 `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
578 `ideograph-hanziku-{1 .. 12}'.
580 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
581 (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
582 ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
583 ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
584 (DECODE_DEFINED_CHAR): New inline function.
585 (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
587 2001-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
589 * mule-charset.c (Vcharset_china3_jef): Renamed from
590 `Vcharset_japanese_jef_china3'.
591 (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
592 (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
593 `{MIN|MAX}_CHAR_JEF_CHINA3'..
594 (syms_of_mule_charset): Rename `china3-jef' from
595 `japanese-jef-china3'.
596 (complex_vars_of_mule_charset): Likewise; rename
597 `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
599 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
600 `LEADING_BYTE_JEF_CHINA3'.
601 (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
602 (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
604 2001-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
606 * mule-charset.c (encode_builtin_char_1): Comment out special code
607 for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
609 * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
610 (MAX_CHAR_MOJIKYO_0): Comment out.
611 (MIN_CHAR_CBETA): Changed to 0x00E20000.
612 (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
613 (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
614 (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
616 2001-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
618 * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
619 (Qideograph_cbeta): New variable.
620 (encode_builtin_char_1): Comment out special code for
621 coded-charset `mojikyo' and `japanese-jef-china3'.
622 (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
623 (complex_vars_of_mule_charset): Add new coded-charset
626 * char-ucs.h (LEADING_BYTE_CBETA): New macro.
627 (MIN_CHAR_CBETA): New macro.
628 (MAX_CHAR_CBETA): New macro.
630 2001-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
632 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
633 (LEADING_BYTE_JEF_CHINA3): New macro.
634 (MIN_CHAR_JEF_CHINA3): New macro.
635 (MAX_CHAR_JEF_CHINA3): Likewise.
636 (DECODE_CHAR): Fixed.
638 2001-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
640 * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
641 (Qjapanese_jef_china3): New variable.
642 (encode_builtin_char_1): Support `japanese-jef-china3'.
643 (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
644 (complex_vars_of_mule_charset): Add new coded-charset
645 `japanese-jef-china3'.
647 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
649 * chartab.c (XCHARSET_CELL_RANGE): New inline function.
650 (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
651 94^4, 96^3, 96^4, 128^n and 256^n set.
652 (put_char_table): Use `XCHARSET_CELL_RANGE'.
653 (map_char_table): Likewise.
655 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
657 * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
660 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
662 * chartab.h (get_char_id_table): New inline function.
664 * chartab.c (get_char_id_table): Moved to chartab.h as an inline
667 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
669 * chartab.h (decode_char_table_range): New prototype in XEmacs
671 (put_char_id_table): New inline function in XEmacs UTF-2000.
673 * chartab.c (put_char_id_table): Moved to chartab.h as an inline
675 (decode_char_table_range): Delete static declaration in XEmacs
678 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
680 * chartab.c (put_char_id_table): Use `put_char_table'.
682 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
684 * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
685 (map_over_uint16_byte_table): Likewise.
686 (map_over_byte_table): Likewise.
687 (map_char_table): Modify for `map_over_uint8_byte_table',
688 `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
691 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
693 * chartab.c (struct map_char_table_for_charset_arg): New
695 (map_char_table_for_charset_fun): New function.
696 (map_char_table): Use `map_char_table' for encoding_table of
699 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
701 * chartab.c (map_char_table): Check a character is found in
702 range->charset instead of non default value is defined in
703 char-table when range is CHARTAB_RANGE_ROW.
705 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
707 * chartab.c (map_char_id_table): Deleted.
708 (Fmap_char_attribute): Use `map_char_table' instead of
711 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
713 * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
715 (update_syntax_table): Deleted in XEmacs UTF-2000.
717 * syntax.c (find_defun_start): Use `syntax_table' instead of
718 `mirror_syntax_table' in XEmacs UTF-2000.
719 (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
721 (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
723 (Fmatching_paren): Likewise.
724 (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
726 (find_start_of_comment): Likewise.
727 (find_end_of_comment): Likewise.
728 (Fforward_comment): Likewise.
729 (scan_lists): Likewise.
730 (char_quoted): Likewise.
731 (Fbackward_prefix_chars): Likewise.
732 (scan_sexps_forward): Likewise.
733 (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
734 (update_syntax_table): Likewise.
736 * search.c (skip_chars): Use `syntax_table' instead of
737 `mirror_syntax_table' in XEmacs UTF-2000.
739 (Freplace_match): Likewise.
741 * regex.c (re_compile_fastmap): Use `syntax_table' instead of
742 `mirror_syntax_table' in XEmacs UTF-2000.
743 (WORDCHAR_P_UNSAFE): Likewise.
744 (re_match_2_internal): Likewise.
746 * font-lock.c (find_context): Use `buf->syntax_table' instead of
747 `buf->mirror_syntax_table' in XEmacs UTF-2000.
749 * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
750 of `buf->mirror_syntax_table' in XEmacs UTF-2000.
752 * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
755 * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
757 (print_char_table): Print `default_value' in XEmacs UTF-2000.
758 (char_table_description): Delete `mirror_table' in XEmacs
760 (fill_char_table): Don't call `update_syntax_table' in XEmacs
762 (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
763 (Fcopy_char_table): Likewise.
764 (put_char_table): Don't call `update_syntax_table' in XEmacs
767 * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
768 `buf->mirror_syntax_table' in XEmacs UTF-2000.
769 (casify_region_internal): Likewise.
771 * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
773 * buffer.c (common_init_complex_vars_of_buffer): Don't use
774 `mirror_syntax_table' in XEmacs UTF-2000.
776 * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
777 `buf->mirror_syntax_table' in XEmacs UTF-2000.
778 (Fexpand_abbrev): Likewise.
780 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
782 * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
784 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
786 * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
787 (map_over_uint16_byte_table): Likewise.
788 (map_over_byte_table): Likewise.
789 (get_char_id_table): Refer `cit->default_value'.
790 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
791 (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
792 of character-id ranges.
793 (mark_char_table): Mark `ct->default_value'.
794 (char_table_description): Add `default_value'.
795 (fill_char_table): Use `default_value'.
796 (decode_char_table_range): Decode `nil' as
797 `CHARTAB_RANGE_DEFAULT'.
798 (get_char_id_table): Refer `cit->default_value'.
799 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
800 (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
801 temporary hack; check value of char-table is bound or not.
802 (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
804 * chartab.h (struct Lisp_Char_Table): Add new member
805 `default_value' in XEmacs UTF-2000.
806 (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
807 (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
810 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
812 * chartab.h (Lisp_Char_ID_Table): Deleted.
814 * chartab.c (char_table_description): Fix typo.
815 (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
816 `Lisp_Char_ID_Table'.
818 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
820 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
823 * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
826 * chartab.h (XCHAR_ID_TABLE): Deleted.
827 (XSETCHAR_ID_TABLE): Deleted.
828 (CHAR_ID_TABLE_P): Deleted.
830 * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
832 (Fget_composite_char): Likewise.
833 (put_char_table): Likewise.
834 (add_char_attribute_alist_mapper): Fixed.
835 (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
837 (Fget_char_attribute): Likewise.
838 (Fget_char_attribute): Likewise.
839 (Fmap_char_attribute): Likewise.
841 * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
843 (encode_char_1): Likewise.
845 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
847 * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
850 * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
851 instead of `XCHAR_ID_TABLE'.
852 (remove_char_ccs): Likewise.
854 * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
856 (Fget_composite_char): Likewise.
857 (Fchar_variants): Likewise.
858 (put_char_table): Likewise.
859 (add_char_attribute_alist_mapper): Likewise.
860 (Fchar_attribute_alist): Likewise.
861 (Fget_char_attribute): Likewise.
862 (Fput_char_attribute): Likewise.
863 (Fmap_char_attribute): Likewise.
864 (Fmap_char_attribute): Likewise.
866 * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
868 (encode_char_1): Likewise.
870 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
872 * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
873 `Lisp_Char_ID_Table'.
874 (mark_char_id_table): Deleted.
875 (print_char_id_table): Likewise.
876 (char_id_table_equal): Likewise.
877 (char_id_table_hash): Likewise.
878 (char_id_table_description): Likewise.
879 (char_id_table): Likewise.
880 (make_char_id_table): Use `Fmake_char_table' and
882 (get_char_id_table): Use `Lisp_Char_Table' instead of
883 `Lisp_Char_ID_Table'.
884 (put_char_id_table): Likewise.
885 (Fput_char_attribute): Use `XCHAR_TABLE' instead of
887 (Fremove_char_attribute): Likewise.
888 (syms_of_chartab): Don't define type `char-id-table'.
890 * chartab.h (struct Lisp_Char_ID_Table): Deleted.
891 (char_id_table): Likewise.
892 (GC_CHAR_ID_TABLE_P): Likewise.
893 (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
894 (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
895 (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
896 (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
897 (get_char_id_table): Use `Lisp_Char_Table' instead of
898 `Lisp_Char_ID_Table'.
899 (put_char_id_table_0): Likewise.
900 (put_char_id_table): Likewise.
902 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
904 * chartab.h: Lisp_Byte_Table related codes are moved from
907 * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
909 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
911 * chartab.h: Don't include "chartab.h".
912 (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
913 (Lisp_Char_ID_Table): Likewise.
914 (char_id_table): Likewise.
915 (XCHAR_ID_TABLE): Likewise.
916 (XSETCHAR_ID_TABLE): Likewise.
917 (CHAR_ID_TABLE_P): Likewise.
918 (GC_CHAR_ID_TABLE_P): Likewise.
919 (get_char_id_table): Likewise.
921 * char-ucs.h: Include "chartab.h".
922 (struct Lisp_Char_ID_Table): Moved to chartab.h.
923 (Lisp_Char_ID_Table): Likewise.
924 (char_id_table): Likewise.
925 (XCHAR_ID_TABLE): Likewise.
926 (XSETCHAR_ID_TABLE): Likewise.
927 (CHAR_ID_TABLE_P): Likewise.
928 (GC_CHAR_ID_TABLE_P): Likewise.
929 (get_char_id_table): Likewise.
931 2001-09-01 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
933 * chartab.c (copy_uint8_byte_table): New function.
934 (copy_uint16_byte_table): New function.
935 (copy_byte_table): New function.
936 (map_over_uint8_byte_table): Modify to avoid huge numbers of
938 (map_over_uint16_byte_table): Likewise.
939 (map_over_byte_table): Likewise.
940 (get_byte_table): Move prototype to chartab.h.
941 (put_byte_table): Likewise.
942 (put_char_id_table_0): Moved to chartab.h.
943 (mark_char_table_entry): Don't define in XEmacs UTF-2000.
944 (char_table_entry_equal): Likewise.
945 (char_table_entry_hash): Likewise.
946 (char_table_entry_description): Likewise.
947 (char_table_entry): Likewise.
948 (make_char_table_entry): Likewise.
949 (copy_char_table_entry): Likewise.
950 (get_non_ascii_char_table_value): Likewise.
951 (map_over_charset_ascii): Likewise.
952 (map_over_charset_control_1): Likewise.
953 (map_over_charset_row): Likewise.
954 (map_over_other_charset): Likewise.
955 (mark_char_table): Modify for new structure in XEmacs UTF-2000.
956 (print_char_table): Likewise.
957 (char_table_equal): Likewise.
958 (char_table_hash): Likewise.
959 (char_table_description): Likewise.
960 (fill_char_table): Likewise.
961 (Fcopy_char_table): Likewise.
962 (get_char_table): Likewise.
963 (Fget_range_char_table): Likewise.
964 (put_char_table): Likewise.
965 (map_char_table): Likewise.
966 (syms_of_chartab): Don't define `char_table_entry' in XEmacs
969 2001-08-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
971 * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
972 `Vauto_fill_chars' in XEmacs UTF-2000.
974 * chartab.h (get_byte_table): New prototype [moved from
976 (put_byte_table): Likewise [moved from chartab.c].
977 (put_char_id_table_0): New inline function [moved from chartab.c].
978 (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
979 (Lisp_Char_Table_Entry): Likewise.
980 (char_table_entry): Likewise.
981 (XCHAR_TABLE_ENTRY): Likewise.
982 (XSETCHAR_TABLE_ENTRY): Likewise.
983 (CHAR_TABLE_ENTRYP): Likewise.
984 (CHECK_CHAR_TABLE_ENTRY): Likewise.
985 (NUM_ASCII_CHARS): Likewise.
986 (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
987 (CHAR_TABLE_VALUE_UNSAFE): Likewise.
989 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
991 * chartab.c (get_char_id_table): Change interface.
992 (put_char_id_table_0): New function.
993 (put_char_id_table): Change interface; new implementation.
994 (Fget_composite_char): Modify for interface change of
996 (Fchar_variants): Likewise.
997 (add_char_attribute_alist_mapper): Likewise.
998 (Fchar_attribute_alist): Likewise.
999 (Fget_char_attribute): Likewise.
1000 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1001 as same as character as the first argument like `put-char-table';
1002 modify for interface change of `put_char_id_table'.
1003 (Fremove_char_attribute): Modify for interface change of
1004 `put_char_id_table'.
1006 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1008 * text-coding.c: Sync up with XEmacs 21.2.41.
1009 (COMPOSE_ADD_CHAR): Modify for interface change of
1010 `get_char_id_table'.
1012 * mule-charset.c (put_char_ccs_code_point): Modify for interface
1013 change of `put_char_id_table'.
1014 (remove_char_ccs): Likewise.
1016 * chartab.h (put_char_id_table): Change interface.
1018 * char-ucs.h (get_char_id_table): Change interface.
1019 (charset_code_point): Modify for interface change of
1020 `get_char_id_table'.
1021 (encode_char_1): Likewise.
1023 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1025 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1027 (map_over_uint16_byte_table): Likewise.
1028 (map_over_byte_table): Likewise.
1029 (map_char_id_table): Add new argument `range' like
1031 (Fmap_char_attribute): Add new argument `range' like
1034 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1036 * chartab.c (map_over_uint8_byte_table): Change interface of
1037 mapping function to use struct chartab_range instead of Emchar.
1038 (map_over_uint16_byte_table): Likewise.
1039 (map_over_byte_table): Likewise.
1040 (map_char_id_table): Likewise.
1041 (struct slow_map_char_id_table_arg): Deleted.
1042 (slow_map_char_id_table_fun): Deleted.
1043 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1044 function `slow_map_char_table_fun' instead of struct
1045 `slow_map_char_id_table_arg' and function
1046 `slow_map_char_id_table_fun'.
1048 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1050 * mule-charset.c: Move char-it-table related codes to chartab.c.
1051 (Vutf_2000_version): Moved to chartab.c.
1052 (Fdefine_char): Likewise.
1053 (Ffind_char): Likewise.
1054 (syms_of_mule_charset): Move types `uint8-byte-table',
1055 `uint16-byte-table', `byte-table' and `char-id-table' to
1056 chartab.c; move functions `char_attribute_list,
1057 `find_char_attribute_table, `char_attribute_alist,
1058 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1059 `map_char_attribute, `define_char, `find_char, `char_variants and
1060 `get_composite_char to chartab.c; move symbols `=>ucs',
1061 `->decomposition', `compat', `isolated', `initial', `medial',
1062 `final', `vertical', `noBreak', `fraction', `super', `sub',
1063 `circle', `square', `wide', `narrow', `small' and `font' to
1065 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1066 setting codes for `Vcharacter_composition_table' and
1067 `Vcharacter_variant_table' to chartab.c.
1068 (complex_vars_of_mule_charset): Move setting code for
1069 `Vchar_attribute_hash_table' to chartab.c.
1071 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1072 (make_char_id_table): New prototype.
1073 (put_char_id_table): Likewise.
1074 (Fget_char_attribute): Likewise.
1076 * chartab.c: Move char-id-table related code from mule-charset.c.
1077 (Vutf_2000_version): Moved from mule-charset.c.
1079 * char-ucs.h (Qucs): New external variable.
1080 (put_char_ccs_code_point): New prototype.
1081 (remove_char_ccs): Likewise.
1083 2001-08-14 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1085 * mule-charset.c (Vcharset_ucs_jis): New variable.
1086 (Qucs_jis): Likewise.
1087 (syms_of_mule_charset): Add new symbol `ucs-jis'.
1088 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1090 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1092 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1094 * mule-charset.c (map_over_uint8_byte_table): New function.
1095 (map_over_uint16_byte_table): Likewise.
1096 (map_over_byte_table): Likewise.
1097 (map_char_id_table): Likewise.
1098 (slow_map_char_id_table_fun): Likewise.
1099 (Fmap_char_attribute): Likewise.
1100 (syms_of_mule_charset): Add new function `map-char-attribute'.
1102 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1104 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1105 (syms_of_mule_charset): Add new function `find-char'.
1107 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1109 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1111 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1112 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1114 (complex_vars_of_mule_charset): Add new coded-charset
1115 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1116 `ideograph-gt-pj-*'.
1118 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1120 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1122 * mule-charset.c (encode_builtin_char_1): Purge codes about
1123 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1124 {MIN|MAX}_CHAR_HEBREW.
1125 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1126 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1128 * char-ucs.h (MIN_CHAR_GREEK): Purged.
1129 (MAX_CHAR_GREEK): Purged.
1130 (MIN_CHAR_CYRILLIC): Purged.
1131 (MAX_CHAR_CYRILLIC): Purged.
1132 (MIN_CHAR_HEBREW): Commented out.
1133 (MAX_CHAR_HEBREW): Likewise.
1135 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1137 * mule-charset.c (Qto_ucs): New variable.
1138 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1139 (Fdefine_char): Likewise.
1140 (syms_of_mule_charset): Add new symbol `=>ucs'.
1142 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1144 * mule-charset.c (Fdecode_char): Fixed.
1146 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1148 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1149 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1152 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1154 * mule-charset.c (Vcharset_ucs_big5): New variable.
1155 (Qucs_big5): Likewise.
1156 (syms_of_mule_charset): Add new symbol `ucs-big5'.
1157 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1159 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1161 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1163 * mule-charset.c (decode_builtin_char): Check Big5 code range
1164 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1166 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1168 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1169 (Qchinese_gb12345): Likewise.
1170 (Fdecode_builtin_char): Fixed.
1171 (syms_of_mule_charset): Add `chinese-gb12345'.
1172 (complex_vars_of_mule_charset): Add coded-charset
1175 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1176 (LEADING_BYTE_CHINESE_GB12345): New macro.
1178 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1180 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1181 and `latin-viscii-upper' for `latin-viscii'.
1183 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1185 * mule-charset.c (Fdecode_builtin_char): Comment out
1186 regularization code for ISO-IR GR representation.
1188 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1190 * mule-charset.c (decode_builtin_char): New function; renamed from
1191 `make_builtin_char'; return -1 instead of signal.
1192 (Fdecode_builtin_char): Use `decode_builtin_char'.
1194 * char-ucs.h (decode_builtin_char): New prototype; renamed from
1195 `make_builtin_char'.
1196 (DECODE_CHAR): Use `decode_builtin_char' instead of
1197 `make_builtin_char'; use mapping table of `chinese-big5' for
1198 `chinese-big5-{1,2}'.
1200 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1202 * text-coding.c (char_encode_big5): New function.
1203 (char_finish_big5): Likewise.
1204 (reset_encoding_stream): Use `char_encode_big5' and
1205 `char_finish_big5' for CODESYS_BIG5.
1206 (mule_encode): Don't use `encode_coding_big5'.
1207 (encode_coding_big5): Deleted.
1209 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1211 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1212 0x81- in XEmacs UTF-2000.
1213 (detect_coding_big5): Likewise.
1215 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1217 * mule-charset.c (Fdefine_char): Don't use a CCS property to
1218 generate character-id if the CCS property does not have
1219 corresponding predefined character.
1220 (make_builtin_char): Return -1 if corresponding predefined
1221 character is not found.
1222 (Fdecode_char): Return nil if corresponding character is not
1224 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1225 don't map to builtin ucs space.
1227 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1229 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1230 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1232 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1234 * mule-charset.c (Vcharset_ideograph_gt): New variable.
1235 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1236 (Qideograph_gt): Likewise.
1237 (Qideograph_gt_pj_{1..11}): Likewise.
1238 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1239 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1240 `ideograph-gt-pj-11'.
1241 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1242 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1243 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1245 * char-ucs.h (LEADING_BYTE_GT): New macro.
1246 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1247 (MIN_CHAR_GT): Likewise.
1248 (MAX_CHAR_GT): Likewise.
1250 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1252 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1253 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1255 * doprnt.c (unsigned_int_converters): Add `c'.
1256 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1258 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1259 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1261 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1262 (MAX_CHAR_MOJIKYO_0): New macro.
1263 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1265 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1267 * mule-charset.c (Fdefine_char): Delete cemented out code.
1268 (encode_builtin_char_1): Modify for new allocation of builtin
1271 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1273 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1275 * mule-charset.c (Vcharset_ucs_cns): New variable.
1276 (Qucs_cns): New variable.
1277 (syms_of_mule_charset): Add new symbol `ucs-cns'.
1278 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1280 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1282 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1284 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1286 * search.c (search_buffer): Make `charset_base_code' as
1287 character-id >> 6 to eliminate the corresponding last byte in
1288 UTF-8 representation [I'm not sure it is right thing].
1289 (boyer_moore): Likewise.
1291 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1293 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1294 representation in MULE.
1296 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1298 * text-coding.c (Fmake_coding_system): Use
1299 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1300 `EXTERNAL_PROPERTY_LIST_LOOP'.
1302 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1304 * text-coding.c (decode_output_utf8_partial_char): New function.
1305 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1307 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1309 * text-coding.c (decode_coding_utf8): Output original byte
1310 sequence if it is broken; change order of conditions.
1312 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1315 * mb-multibyte.h (BYTE_ASCII_P):
1316 Use bit ops for char-signedness safety.
1317 (BYTE_C0_P): Use bit ops for char-signedness safety.
1318 (BYTE_C1_P): Use bit ops for char-signedness safety.
1320 * character.h: (XCHAR_OR_CHAR_INT):
1321 Always use inline function.
1322 Remove redundant type checking assert() - XINT will abort quite
1325 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1327 * text-coding.c: (Fencode_shift_jis_char):
1328 (Fencode_big5_char):
1329 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
1330 Replace 0 with '\0' when working with bytes.
1331 Replace initial "(" with "\(" in docstrings.
1333 (Fmake_coding_system):
1334 When type is ccl and value is vector, register it with a proper
1335 symbol. And checks whether the given ccl program is valid.
1336 (mule_decode): When calling ccl_driver, if src indicates
1337 NULL pointer, set an empty string instead.
1338 (mule_encode): Likewise.
1341 (detect_coding_sjis):
1342 (decode_coding_sjis):
1343 (detect_coding_big5):
1344 (decode_coding_big5):
1345 (detect_coding_ucs4):
1346 (decode_coding_ucs4):
1347 (detect_coding_utf8):
1348 (decode_coding_utf8):
1349 (detect_coding_iso2022):
1350 (decode_coding_iso2022):
1351 (decode_coding_no_conversion):
1353 Make all detecting and decoding functions take an Extbyte * arg.
1354 (text_encode_generic):
1355 (encode_coding_big5):
1356 (encode_coding_no_conversion):
1358 Make all encoding functions take a Bufbyte * arg.
1359 Use size_t instead of unsigned int for memory sizes.
1360 Only cast to unsigned char whenever dereferencing Extbyte *.
1362 (struct lrecord_description fcd_description_1): Use countof.
1363 (complex_vars_of_file_coding):
1364 Use countof instead of sizeof.
1365 Use CHECK_NATNUM instead of CHECK_INT.
1367 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1369 * mule-charset.c (Fget_char_attribute): Add new optional argument
1371 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1372 (remove_char_ccs): Likewise.
1374 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1376 * text-coding.c (char_encode_shift_jis): New implementation in
1378 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1381 * mule-charset.c (Vcharset_chinese_big5): New variable in
1383 (Qchinese_big5): New variable in UTF-2000.
1384 (BIG5_SAME_ROW): New macro in UTF-2000.
1385 (make_builtin_char): Use builtin characters of
1386 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1387 characters of `Vcharset_chinese_big5'.
1388 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1389 (complex_vars_of_mule_charset): Add new coded-charset
1390 `chinese-big5' in UTF-2000.
1392 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1393 (Vcharset_chinese_big5): New external variable declaration.
1394 (Vcharset_japanese_jisx0208_1990): Likewise.
1396 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1398 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1400 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1402 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1404 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1405 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1406 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1409 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1411 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1413 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1415 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1418 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1420 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1421 for `CHARSET_BY_ATTRIBUTES'.
1422 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1423 `CHARSET_BY_ATTRIBUTES'.
1425 * text-coding.c (struct decoding_stream): Rename member `CH' to
1427 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1428 (decode_coding_sjis): Likewise.
1429 (decode_coding_big5): Likewise.
1430 (decode_coding_ucs4): Likewise.
1431 (decode_coding_utf8): Likewise.
1432 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1433 `CHARSET_BY_ATTRIBUTES'.
1434 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1435 `str->counter'; decode 3, 4 bytes sets.
1436 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1438 (decode_coding_no_conversion): Use `str->cpos' instead of
1441 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1442 (Qmojikyo_2022_1): New variable.
1443 (make_charset): Don't use `CHARSET_TYPE_*'.
1444 (range_charset_code_point): Support coded-charset
1446 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1447 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1448 `CHARSET_BY_ATTRIBUTES'.
1449 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1450 `CHARSET_BY_ATTRIBUTES'.
1451 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1452 (complex_vars_of_mule_charset): Add new coded-charset
1455 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1456 interface; changed to inline function.
1458 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1459 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1460 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1461 (CHARSET_TYPE_94): Deleted.
1462 (CHARSET_TYPE_94X94): Deleted.
1463 (CHARSET_TYPE_96): Deleted.
1464 (CHARSET_TYPE_96X96): Deleted.
1465 (CHARSET_TYPE_128): Deleted.
1466 (CHARSET_TYPE_128X128): Deleted.
1467 (CHARSET_TYPE_256): Deleted.
1468 (CHARSET_TYPE_256X256): Deleted.
1469 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1471 (DECODE_MOJIKYO_2022): New inline function.
1472 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1473 `Vcharset_mojikyo_2022_1'.
1475 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1477 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1479 (put_byte_table): Likewise.
1480 (char_id_table_equal): Use `get_byte_table' [new implementation].
1482 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1484 * mule-charset.c: Include <limits.h> in UTF-2000.
1485 (BT_UINT8_MIN): New macro in UTF-2000.
1486 (BT_UINT8_MAX): New macro in UTF-2000.
1487 (BT_UINT8_t): New macro in UTF-2000.
1488 (BT_UINT8_nil): New macro in UTF-2000.
1489 (BT_UINT8_unbound): New macro in UTF-2000.
1490 (INT_UINT8_P): New inline function in UTF-2000.
1491 (UINT8_VALUE_P): New inline function in UTF-2000.
1492 (UINT8_ENCODE): New inline function in UTF-2000.
1493 (UINT8_DECODE): New inline function in UTF-2000.
1494 (mark_uint8_byte_table): New function in UTF-2000.
1495 (print_uint8_byte_table): New function in UTF-2000.
1496 (uint8_byte_table_equal): New function in UTF-2000.
1497 (uint8_byte_table_hash): New function in UTF-2000.
1498 (make_uint8_byte_table): New function in UTF-2000.
1499 (uint8_byte_table_same_value_p): New function in UTF-2000.
1500 (BT_UINT16_MIN): New macro in UTF-2000.
1501 (BT_UINT16_MAX): New macro in UTF-2000.
1502 (BT_UINT16_t): New macro in UTF-2000.
1503 (BT_UINT16_nil): New macro in UTF-2000.
1504 (BT_UINT16_unbound): New macro in UTF-2000.
1505 (INT_UINT16_P): New inline function in UTF-2000.
1506 (UINT16_VALUE_P): New inline function in UTF-2000.
1507 (UINT16_ENCODE): New inline function in UTF-2000.
1508 (UINT16_DECODE): New inline function in UTF-2000.
1509 (UINT8_TO_UINT16): New inline function in UTF-2000.
1510 (mark_uint16_byte_table): New function in UTF-2000.
1511 (print_uint16_byte_table): New function in UTF-2000.
1512 (uint16_byte_table_equal): New function in UTF-2000.
1513 (uint16_byte_table_hash): New function in UTF-2000.
1514 (make_uint16_byte_table): New function in UTF-2000.
1515 (uint16_byte_table_same_value_p): New function in UTF-2000.
1516 (print_byte_table): New function in UTF-2000.
1517 (byte-table): Use `print_byte_table' as printer.
1518 (make_byte_table): Delete second argument `older'.
1519 (byte_table_same_value_p): New function in UTF-2000.
1520 (copy_byte_table): Deleted.
1521 (get_byte_table): New function in UTF-2000.
1522 (put_byte_table): New function in UTF-2000.
1523 (print_char_id_table): New function in UTF-2000.
1524 (char-id-table): Use `print_char_id_table' as printer.
1525 (make_char_id_table): Delete second argument `older'.
1526 (get_char_id_table): Use `get_byte_table [new implementation].
1527 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1529 (Ffind_char_attribute_table): New function in UTF-2000.
1530 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1531 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1532 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1533 (syms_of_mule_charset): Add new function
1534 `find-char-attribute-table' in UTF-2000.
1536 * lrecord.h (enum lrecord_type): Add
1537 `lrecord_type_uint16_byte_table' and
1538 `lrecord_type_uint8_byte_table'.
1540 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1541 (Lisp_Uint8_Byte_Table): New type.
1542 (XUINT8_BYTE_TABLE): New macro.
1543 (XSETUINT8_BYTE_TABLE): New macro.
1544 (UINT8_BYTE_TABLE_P): New macro.
1545 (GC_UINT8_BYTE_TABLE_P): New macro.
1546 (struct Lisp_Uint16_Byte_Table): New structure.
1547 (Lisp_Uint16_Byte_Table): New type.
1548 (XUINT16_BYTE_TABLE): New macro.
1549 (XSETUINT16_BYTE_TABLE): New macro.
1550 (UINT16_BYTE_TABLE_P): New macro.
1551 (GC_UINT16_BYTE_TABLE_P): New macro.
1553 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1555 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1556 (Vcharacter_ideographic_strokes_table): Deleted.
1557 (Vcharacter_total_strokes_table): Deleted.
1558 (Vcharacter_morohashi_daikanwa_table): Deleted.
1559 (Vcharacter_decomposition_table): Deleted.
1560 (Qname): Deleted because it is duplicated.
1561 (Qideographic_radical): Deleted.
1562 (Qideographic_strokes): Deleted.
1563 (Qtotal_strokes): Deleted.
1564 (Qmorohashi_daikanwa): Deleted.
1565 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1566 `ideographic-radical', `ideographic-strokes', `total-strokes',
1567 `morohashi-daikanwa' and `->decomposition'.
1568 (Fget_char_attribute): Likewise.
1569 (Fput_char_attribute): Likewise; use `make-vector' instead of
1570 `make_older_vector' for `->decomposition' value.
1571 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1572 `ideograph-daikanwa'.
1573 (syms_of_mule_charset): Delete builtin symbols `name',
1574 `ideographic-radical', `ideographic-strokes', `total-strokes' and
1575 `morohashi-daikanwa'.
1576 (vars_of_mule_charset): Don't setup
1577 `Vcharacter_ideographic_radical_table',
1578 `Vcharacter_ideographic_strokes_table',
1579 `Vcharacter_total_strokes_table',
1580 `Vcharacter_morohashi_daikanwa_table' and
1581 `Vcharacter_decomposition_table'.
1583 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1585 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1586 `make_older_vector', `make_vector_newer_1' and
1587 `make_vector_newer'.
1589 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1590 `make_older_vector' and `make_vector_newer'.
1592 * config.h.in (HAVE_GGC): New macro.
1594 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1596 * mule-charset.c (struct char_attribute_list_closure): New
1597 structure in UTF-2000.
1598 (add_char_attribute_to_list_mapper): New function in UTF-2000.
1599 (Fchar_attribute_list): Likewise.
1600 (Fset_charset_mapping_table): Use `make_vector_newer'.
1601 (Fdecode_builtin_char): New function in UTF-2000.
1602 (syms_of_mule_charset): Add new function `char-attribute-list' and
1603 `decode-builtin-char' in UTF-2000.
1605 * lisp.h (make_vector_newer): New prototype.
1607 * alloc.c (make_vector_newer_1): New function.
1608 (make_vector_newer): New function.
1610 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1612 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1615 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1617 * mule-charset.c (Vchar_attribute_hash_table): New variable.
1618 (Vcharacter_attribute_table): Deleted.
1619 (Vcharacter_name_table): Deleted.
1620 (put_char_attribute): Deleted.
1621 (remove_char_attribute): Deleted.
1622 (struct char_attribute_alist_closure): New structure.
1623 (add_char_attribute_alist_mapper): New function.
1624 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1625 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1626 (Fget_char_attribute): Likewise.
1627 (Fput_char_attribute): Likewise.
1628 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1629 of `remove_char_attribute'.
1630 (Fdefine_char): Return character.
1631 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1632 and `Vcharacter_name_table'.
1633 (complex_vars_of_mule_charset): Likewise
1634 `Vchar_attribute_hash_table'.
1636 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1638 * character.h (CHARC_CHARSET): New macro.
1639 (CHARC_CHARSET_ID): New macro.
1640 (CHARC_CODE_POINT): New macro.
1641 (CHARC_COLUMNS): New macro.
1642 (CHARC_TO_CHAR): New inline function.
1643 (CHARC_EQ): New inline function.
1644 (CHARC_ASCII_EQ): New inline function.
1645 (CHARC_IS_SPACE): New inline function.
1646 (ASCII_TO_CHARC): New inline function.
1648 * char-ucs.h (encode_char_2): Deleted.
1649 (ENCODE_CHAR): Use `encode_char_1' again.
1650 (breakup_char_1): Likewise.
1651 (CHAR_TO_CHARC): New inline function.
1653 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1655 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1657 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1658 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1659 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1660 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1661 (create_string_text_block): Use `CHARC_ASCII_EQ' and
1663 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1665 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1667 (x_output_display_block): Use `CHARC_CHARSET' and
1670 * redisplay-tty.c (tty_output_display_block): Use
1672 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1674 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1676 * insdel.c (find_charsets_in_charc_string): Use
1678 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1679 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1680 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1681 (convert_charc_string_into_malloced_string): Likewise.
1683 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1685 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1686 instead of <Emchar_dynarr *> for buf; use
1687 `convert_bufbyte_string_into_charc_dynarr' instead of
1688 `convert_bufbyte_string_into_emchar_dynarr'; use
1689 `find_charsets_in_charc_string' instead of
1690 `find_charsets_in_emchar_string'.
1693 - Include "character.h".
1694 (struct rune): New member `cglyph'; delete member `chr'.
1696 * redisplay.c (redisplay_text_width_charc_string): New function;
1697 delete `redisplay_text_width_emchar_string'.
1698 (rtw_charc_dynarr): New variable; renamed from
1699 `rtw_emchar_dynarr'.
1700 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1701 `rtw_emchar_dynarr'; use
1702 `convert_bufbyte_string_into_charc_dynarr' instead of
1703 `convert_bufbyte_string_into_emchar_dynarr'; use
1704 `redisplay_text_width_charc_string' instead of
1705 `redisplay_text_width_emchar_string'.
1706 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1707 instead of `rtw_emchar_dynarr'; use
1708 `convert_bufbyte_string_into_charc_dynarr' instead of
1709 `convert_bufbyte_string_into_emchar_dynarr'.
1710 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1711 `redisplay_text_width_charc_string' instead of
1712 `redisplay_text_width_emchar_string'.
1713 (create_text_block): Modify for <struct rune> change.
1714 (generate_formatted_string_db): Likewise.
1715 (create_string_text_block): Likewise.
1716 (pixel_to_glyph_translation): Likewise.
1718 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1719 instead of <const Emchar *>.
1720 (x_text_width): Likewise.
1721 (x_output_display_block): Use <Charc_dynarr *> instead
1722 <Emchar_dynarr *>; modify for <structure rune> change.
1723 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1726 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1727 <const Emchar *>; use `charc_string_displayed_columns' instead of
1728 `emchar_string_displayed_columns'.
1729 (tty_output_display_block): Use <Charc_dynarr *> instead of
1730 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1731 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1732 (tty_output_charc_dynarr_dynarr): New variable; renamed from
1733 `tty_output_emchar_dynarr_dynarr'.
1734 (tty_output_charc_dynarr): New function; delete
1735 `tty_output_charc_dynarr'.
1737 * redisplay-output.c (compare_runes): Modify for `struct rune'.
1738 (redisplay_output_layout): Use <Charc_dynarr *> instead of
1739 <Emchar_dynarr *> for buf; use
1740 `convert_bufbyte_string_into_charc_dynarr' instead of
1741 `convert_bufbyte_string_into_emchar_dynarr'.
1743 * frame.c (title_string_charc_dynarr): New variable; renamed from
1744 `title_string_emchar_dynarr'.
1745 (generate_title_string): Use `title_string_charc_dynarr' instead
1746 of `title_string_emchar_dynarr'; use
1747 `convert_charc_string_into_malloced_string' instead of
1748 `convert_emchar_string_into_malloced_string'.
1749 (init_frame): Use `title_string_charc_dynarr' instead of
1750 `title_string_emchar_dynarr'.
1753 - Include "character.h".
1754 (struct console_methods): Use <const Charc *> instead of <const
1755 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1756 <Emchar_dynarr *> in output_string_method.
1758 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1761 * console-stream.c (stream_text_width): Use <const Charc *>
1762 instead of <const Emchar *>.
1764 * character.h (Charc_dynarr): New type.
1766 * char-ucs.h (structure Charc): New structure; define new type
1769 * char-lb.h (DECODE_CHAR): New inline function.
1770 (encode_char_1): New inline function.
1771 (ENCODE_CHAR): New macro.
1772 (structure Charc): New structure; define new type `Charc'.
1774 * char-1byte.h (Vcharset_control_1): New macro.
1775 (Vcharset_latin_iso8859_1): New macro.
1776 (DECODE_CHAR): New inline function.
1777 (encode_char_1): New inline function.
1778 (ENCODE_CHAR): New macro.
1779 (structure Charc): New structure; define new type `Charc'.
1781 * insdel.c (find_charsets_in_charc_string): New function; delete
1782 `find_charsets_in_emchar_string'.
1783 (charc_string_displayed_columns): New function; delete
1784 `emchar_string_displayed_columns'.
1785 (convert_bufbyte_string_into_charc_dynarr): New function; delete
1786 `convert_bufbyte_string_into_emchar_dynarr'.
1787 (convert_charc_string_into_bufbyte_dynarr): New function; delete
1788 `convert_charc_string_into_bufbyte_dynarr'.
1789 (convert_charc_string_into_malloced_string): New function; delete
1790 `convert_charc_string_into_malloced_string'.
1792 * buffer.h (find_charsets_in_charc_string): New prototype; delete
1793 `find_charsets_in_emchar_string'.
1794 (charc_string_displayed_columns): New prototype; delete
1795 `emchar_string_displayed_columns'.
1796 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1797 `convert_charc_string_into_bufbyte_dynarr'.
1798 (convert_charc_string_into_malloced_string): New prototype; delete
1799 `convert_charc_string_into_malloced_string'.
1801 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1803 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1805 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1807 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1809 * char-ucs.h: Use <short> for <Charset_ID>.
1811 * mule-charset.h, char-1byte.h: Use <unsigned char> for
1814 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1816 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1819 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1821 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1823 (Qmorohashi_daikanwa): New variable.
1824 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1825 for `morohashi-daikanwa' attribute.
1826 (Fget_char_attribute): Likewise.
1827 (Fput_char_attribute): Likewise.
1828 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1829 has the same value of `ideograph-daikanwa'.
1830 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1831 (vars_of_mule_charset): Setup
1832 `Vcharacter_morohashi_daikanwa_table'.
1834 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1836 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1838 (add_charset_to_list_mapper): Add `key' instead of
1839 `XCHARSET_NAME (value)' to return aliases.
1841 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1843 * mule-charset.c (Vcharacter_ideographic_radical_table): New
1845 (Vcharacter_ideographic_strokes_table): New variable.
1846 (Qideographic_radical): New variable.
1847 (Qideographic_strokes): New variable.
1848 (Fchar_attribute_alist): Use
1849 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1850 attribute; use `Vcharacter_ideographic_strokes_table' for
1851 `ideographic-strokes' attribute.
1852 (Fget_char_attribute): Likewise.
1853 (Fput_char_attribute): Likewise.
1854 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1855 `ideographic-strokes'.
1856 (vars_of_mule_charset): Setup
1857 `Vcharacter_ideographic_radical_table' and
1858 `Vcharacter_ideographic_strokes_table'.
1860 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1862 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1863 (Qtotal_strokes): New variable.
1864 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1865 `total-strokes' attribute.
1866 (Fget_char_attribute): Likewise.
1867 (Fput_char_attribute): Likewise.
1868 (syms_of_mule_charset): Add new symbol `total-strokes'.
1869 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1871 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1873 * mule-charset.c (Vcharacter_decomposition_table): New variable.
1874 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1876 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1877 `->decomposition' attribute.
1878 (Fput_char_attribute): Likewise.
1879 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1881 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1883 * mule-charset.c (decoding_table_check_elements): New function.
1884 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1886 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1888 * mule-charset.c (Fset_charset_mapping_table): Use
1889 `put_char_ccs_code_point'.
1891 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1893 * mule-charset.c (decoding_table_put_char): New inline function.
1894 (put_char_ccs_code_point): Use `decoding_table_put_char'.
1896 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1898 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1899 (XCHARSET_BYTE_SIZE): New macro.
1900 (decoding_table_remove_char): New inline function.
1901 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1902 `decoding_table_remove_char'.
1903 (remove_char_ccs): Use `decoding_table_remove_char'.
1904 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1906 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1908 * mule-charset.c (Vcharacter_name_table): New variable.
1909 (Qname): New variable.
1910 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1912 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1913 `Vcharacter_name_table' for `name' attribute.
1914 (Fremove_char_attribute): Use function `remove_char_ccs'.
1915 (put_char_ccs_code_point): New function.
1916 (remove_char_ccs): New function.
1917 (syms_of_mule_charset): Add new symbol `name'.
1918 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1920 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1922 * mule-charset.c (make_byte_table): Add new argument `older'.
1923 (make_char_id_table): Likewise.
1924 (copy_char_id_table): Comment out because it is not used.
1925 (put_char_id_table): Modify for `make_byte_table'.
1926 (Fput_char_attribute): Make encoding_table as older object;
1927 inherit older bit of `Vcharacter_composition_table'.
1928 (mark_charset): Don't mark `cs->encoding_table'.
1929 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
1930 normal object; make `Vcharacter_composition_table' as an older
1931 object; delete staticpro for `Vcharacter_composition_table'; make
1932 `Vcharacter_variant_table' as a normal object.
1934 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
1935 (mark_object): Don't check older object in UTF-2000.
1937 * lrecord.h (struct lrecord_header): Add new member `older' in
1939 (set_lheader_implementation): Setup `SLI_header->older' in
1941 (set_lheader_older_implementation): New macro in UTF-2000.
1942 (OLDER_RECORD_P): New macro in UTF-2000.
1943 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
1944 (alloc_older_lcrecord): New prototype in UTF-2000.
1945 (alloc_older_lcrecord_type): New macro in UTF-2000.
1947 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1949 * mule-charset.c (byte_table_description): Use
1950 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
1951 (char_id_table_description): Delete bogus `, 1'.
1952 (Fget_char_attribute): Refer encoding_table of each coded-charset
1953 to get value of coded-charset attribute of a character.
1954 (Fput_char_attribute): Use `make_older_vector' instead of
1955 `make_vector'; use encoding_table of each coded-charset to store
1956 value of coded-charset attribute of a character.
1957 (Fremove_char_attribute): Use encoding_table of each coded-charset
1958 to store value of coded-charset attribute of a character.
1959 (mark_charset): Mark `cs->encoding_table'; don't mark
1960 `cs->decoding_table'.
1961 (charset_description): Add description of new member
1963 (make_charset): Initialize `encoding_table'.
1965 * char-ucs.h (struct Lisp_Charset): Add new member
1967 (CHARSET_ENCODING_TABLE): New macro.
1968 (XCHARSET_ENCODING_TABLE): New macro.
1969 (charset_code_point): New implementation.
1970 (encode_char_1): Likewise.
1972 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
1973 (disksave_object_finalization_1): Call finalizers of
1974 `all_older_lcrecords' in UTF-2000.
1975 (make_older_vector): New function in UTF-2000.
1976 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
1979 * lisp.h (make_older_vector): New prototype in UTF-2000.
1981 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1983 * lrecord.h (enum lrecord_type): Rename
1984 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
1986 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
1987 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
1988 `get_char_code_table'.
1990 * mule-charset.c (mark_char_id_table): Renamed from
1991 `mark_char_code_table'.
1992 (char_id_table_equal): Renamed from `char_code_table_equal'.
1993 (char_id_table_hash): Renamed from `char_code_table_hash'.
1994 (make_char_id_table): Renamed from `make_char_code_table'.
1995 (copy_char_id_table): Renamed from `copy_char_code_table'.
1996 (get_char_id_table): Renamed from `get_char_code_table'.
1997 (put_char_id_table): Renamed from `put_char_code_table'.
1998 (to_char_id): Renamed from `to_char_code'.
2000 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2001 `Lisp_Char_Code_Table'.
2002 (char_id_table): Renamed from `char_code_table'.
2003 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2004 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2005 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2006 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2007 (get_char_id_table): Renamed from `get_char_code_table'.
2009 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2011 * lrecord.h (enum lrecord_type): Rename
2012 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2014 * mule-charset.c (mark_byte_table): Renamed from
2015 `mark_char_byte_table'.
2016 (byte_table_equal): Renamed from `char_byte_table_equal'.
2017 (byte_table_hash): Renamed from `byte_table_hash'.
2018 (make_byte_table): Renamed from `make_byte_table'.
2019 (copy_byte_table): Renamed from `copy_char_byte_table'.
2021 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2022 `Lisp_Char_Byte_Table'.
2023 (byte_table): Renamed from `char_byte_table'.
2024 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2025 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2026 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2027 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2029 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2031 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2032 (dfc_convert_to_internal_format): Likewise.
2034 * text-coding.c (Fcoding_system_canonical_name_p): New function.
2035 * text-coding.c (Fcoding_system_alias_p): New function.
2036 * text-coding.c (Fcoding_system_aliasee): New function.
2037 * text-coding.c (append_suffix_to_symbol): New function.
2038 * text-coding.c (dangling_coding_system_alias_p): New function.
2039 * text-coding.c (Ffind_coding_system):
2040 * text-coding.c (Fcopy_coding_system):
2041 * text-coding.c (encode_coding_no_conversion):
2042 * text-coding.c (syms_of_file_coding):
2043 * text-coding.c (vars_of_file_coding):
2044 Rewrite coding system alias code.
2045 Allow nested aliases, like symbolic links.
2046 Allow redefinition of coding system aliases.
2047 Prevent existence of dangling coding system aliases.
2048 Eliminate convert_to_external_format.
2049 Eliminate convert_to_internal_format.
2051 * text-coding.c: Change enum eol_type to eol_type_t.
2053 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2055 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2056 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2058 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2059 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2061 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2063 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2064 `ideograph-daikanwa'.
2066 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2067 (Vcharset_ucs_bmp): Likewise.
2068 (Vcharset_mojikyo): Add new extern variable definition.
2069 (Vcharset_latin_iso8859_2): Deleted because it is not used.
2070 (Vcharset_latin_iso8859_3): Likewise.
2071 (Vcharset_latin_iso8859_4): Likewise.
2072 (Vcharset_latin_iso8859_9): Likewise.
2073 (Vcharset_latin_viscii_lower): Likewise.
2074 (Vcharset_latin_viscii_upper): Likewise.
2075 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2076 `mojikyo' code-point is used to decode.
2077 (encode_char_2): New function [to convert `mojikyo' code-point to
2078 Mojikyo font encoding].
2079 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2080 (breakup_char_1): Likewise.
2081 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2083 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2085 * text-coding.c (Fmake_coding_system): Add document about
2086 `disable-composition' property.
2088 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2090 * text-coding.c (Qdisable_composition): New variable; delete
2092 (Fmake_coding_system): Add new property `disable-composite';
2093 delete property `composite'.
2094 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2095 instead of `!CODING_SYSTEM_COMPOSITE'.
2096 (syms_of_file_coding): Add new symbol `disable-composition';
2097 delete symbol `composite'.
2099 * file-coding.h (struct Lisp_Coding_System): Add
2100 `disable_composition'; delete `enable_composition'.
2101 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2102 `CODING_SYSTEM_COMPOSITE'.
2103 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2104 `XCODING_SYSTEM_COMPOSITE'.
2106 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2108 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2111 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2113 * text-coding.c (Qcomposite): New variable.
2114 (Fmake_coding_system): Add new property `composite'.
2115 (struct decoding_stream): Add `combined_char_count',
2116 `combined_chars' and `combining_table' in UTF-2000.
2117 (COMPOSE_FLUSH_CHARS): New macro.
2118 (COMPOSE_ADD_CHAR): New macro.
2119 (reset_decoding_stream): Reset `str->combined_char_count' and
2120 `str->combining_table' in UTF-2000.
2121 (decode_coding_iso2022): Modify for character-decomposition.
2122 (syms_of_file_coding): Add new symbol `composite'.
2124 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2126 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2127 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2128 of `Vcharacter_composition_table' if `->decomposition' property
2130 (Qlatin_tcvn5712): New variable.
2131 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2132 (complex_vars_of_mule_charset): Add new coded-charset
2135 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2137 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2139 * file-coding.h (struct Lisp_Coding_System): Add
2140 `enable_composition'.
2141 (CODING_SYSTEM_COMPOSITE): New macro.
2142 (XCODING_SYSTEM_COMPOSITE): New macro.
2144 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
2146 * mule-canna.c (c2mu): Fix problem with UTF-2000.
2148 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
2150 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2151 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2153 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
2155 * mule-charset.c (Vcharset_mojikyo): New variable.
2156 (Fdefine_char): Don't use coded-charset which does not have
2157 non-builtin character range to allocate character-id.
2158 (Qmojikyo): New variable.
2159 (syms_of_mule_charset): Add new symbol `mojikyo'.
2160 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2162 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2163 (LEADING_BYTE_MOJIKYO): New macro.
2164 (MIN_CHAR_MOJIKYO): New macro.
2165 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2166 (MAX_CHAR_MOJIKYO): New macro.
2168 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
2170 * mule-charset.c (remove_char_attribute): Fixed.
2172 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
2174 * mule-charset.c (remove_char_attribute): New function.
2175 (Fremove_char_attribute): New function.
2176 (encode_builtin_char_1): Comment out builtin-support for
2177 greek-iso8859-7 and cyrillic-iso8859-5.
2178 (Fdecode_char): Check `code' is an integer.
2179 (syms_of_mule_charset): Add `remove-char-attribute'.
2180 (MIN_CHAR_GREEK): Deleted.
2181 (MAX_CHAR_GREEK): Likewise.
2182 (MIN_CHAR_CYRILLIC): Likewise.
2183 (MAX_CHAR_CYRILLIC): Likewise.
2184 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2185 MAX_CHAR_GREEK for `greek-iso8859-7'.
2187 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2188 (MAX_CHAR_GREEK): Likewise.
2189 (MIN_CHAR_CYRILLIC): Likewise.
2190 (MAX_CHAR_CYRILLIC): Likewise.
2192 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
2194 * mule-charset.c (Fdefine_char): Fix problem when new code-point
2195 format is used without `ucs' property.
2196 (Fdecode_char): Fix problem with GR representation.
2197 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2198 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2200 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2202 * mule-charset.c (make_builtin_char): New function.
2203 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2204 (Fset_charset_mapping_table): Modify for new representation of
2206 (Fdecode_char): New function.
2207 (syms_of_mule_charset): Add new builtin function `decode-char' in
2210 * char-ucs.h (make_builtin_char): New prototype.
2211 (DECODE_CHAR): New inline function.
2212 (MAKE_CHAR): Use `DECODE_CHAR'.
2214 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
2216 * text-coding.c (parse_charset_conversion_specs): Use
2217 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2219 (iso2022_designate): Likewise.
2221 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2222 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2224 * mule-charset.c (Vcharset_ucs): New variable.
2225 (print_charset): Change design; use `CHARSET_CHARS' and
2226 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2227 (make_charset): Change signature to specify `chars' and
2228 `dimension' instead of `type'.
2229 (range_charset_code_point): Modify for 256^n-set.
2230 (encode_builtin_char_1): Encode as `ucs' in default.
2231 (Fmake_charset): Modify for `make_charset'.
2232 (Fmake_reverse_direction_charset): Likewise.
2233 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2235 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2238 * char-ucs.h (Vcharset_ucs): New variable.
2239 (LEADING_BYTE_UCS): New macro.
2240 (struct Lisp_Charset): Delete `type'; change type of `dimension'
2241 and `chars' to `unsigned short' from `unsigned int'.
2242 (CHARSET_TYPE): Deleted.
2243 (XCHARSET_TYPE): Deleted.
2245 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
2247 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2249 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2250 (ENCODE_CHAR): New macro.
2252 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2254 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2255 to 0.14 (Kawachi-Katakami).
2257 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2259 * text-coding.c (char_encode_shift_jis): Modify for
2260 `charset_code_point'.
2261 (char_encode_iso2022): Likewise.
2263 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2264 (integer) instead of list of <Lisp_Object>s (integers) as the
2265 format of code-point of a coded-charset.
2266 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2267 (encode_builtin_char_1): New function; delete
2268 `split_builtin_char'.
2269 (charset_code_point): Return <int> instead of <Lisp_Object>.
2270 (Fsplit_char): Don't use `SPLIT_CHAR'.
2272 * char-ucs.h (encode_builtin_char_1): New prototype; delete
2273 prototype for `split_builtin_char'.
2274 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2275 (charset_code_point): Likewise.
2276 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2277 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2279 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
2281 * mule-charset.c (complex_vars_of_mule_charset): Don't define
2282 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2284 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2286 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2288 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2289 (MAX_CHAR_OBS_94x94): Deleted.
2291 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2293 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2295 * char-ucs.h (MAX_CHAR_BMP): New macro.
2297 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2299 * text-coding.c: Sync with r21-2-24.
2301 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
2303 * file-coding.c: Modify for UTF-2000.
2305 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2307 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2310 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2312 * mule-charset.c (split_builtin_char): Delete builtin support for
2313 `katakana-jisx0201'.
2314 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2315 BMP area in builtin representation.
2317 * char-ucs.h (MAKE_CHAR): Delete builtin support for
2318 `Vcharset_katakana_jisx0201'.
2320 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
2322 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2323 (Qisolated): New variable.
2324 (Qinitial): New variable.
2325 (Qmedial): New variable.
2326 (Qfinal): New variable.
2327 (Qvertical): New variable.
2328 (Qsmall): New variable.
2329 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2330 `Qvertical' and `Qsmall'.
2331 (Qmojikyo_pj_[1 .. 21]): New variable.
2332 (syms_of_mule_charset): Add new symbols `isolated', `initial',
2333 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2334 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2337 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
2339 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2340 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2341 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2343 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2345 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2346 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2348 (Qjapanese_jisx0208_1990): New variable.
2349 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2350 (complex_vars_of_mule_charset): Add new coded-charset
2351 `japanese-jisx0208-1990'.
2353 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2354 (MIN_CHAR_JIS_X0208_1990): New macro.
2355 (MAX_CHAR_JIS_X0208_1990): New macro.
2357 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2359 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2360 coded-charset is not found.
2362 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2364 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2365 (Fdefine_char): Use `Fmake_char'.
2367 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2369 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2370 (Vcharset_hiragana_jisx0208): Deleted.
2371 (Vcharset_katakana_jisx0208): Deleted.
2372 (Qideograph_daikanwa): New variable.
2373 (Qhiragana_jisx0208): Deleted.
2374 (Qkatakana_jisx0208): Deleted.
2375 (split_builtin_char): Split `ideograph-daikanwa'.
2376 (Fsplit_char): New implementation for UTF-2000.
2377 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2378 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2379 (complex_vars_of_mule_charset): Add new coded-charset
2380 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2381 `katakana-jisx0208'.
2383 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2384 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2385 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2386 (MIN_CHAR_DAIKANWA): New macro.
2387 (MAX_CHAR_DAIKANWA): New macro.
2389 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2391 * data.c (Fstring_to_number): Don't recognize floating point if
2394 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2396 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2398 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2400 * mule-charset.c (Qsquare): New variable.
2401 (to_char_code): Add `Qsquare'.
2402 (syms_of_mule_charset): Add new symbol `square'.
2404 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2406 * mule-charset.c (Qcircle): New variable.
2407 (to_char_code): Add `Qcircle'.
2408 (syms_of_mule_charset): Add new symbol `circle'.
2410 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2412 * mule-charset.c (Qfont): New variable.
2413 (to_char_code): Add `Qfont'.
2414 (syms_of_mule_charset): Add new symbol `font'.
2416 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2418 * mule-charset.c (Qsub): New variable.
2419 (to_char_code): Add `Qsub'.
2420 (syms_of_mule_charset): Add new symbol `sub'.
2422 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2424 * mule-charset.c (Fput_char_attribute): Convert each element of
2425 VALUE to GL position if ATTRIBUTE is a GR-set,
2427 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2429 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2430 coded-charset is a GR-set.
2432 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2434 * mule-charset.c (Fput_char_attribute): Check each element of
2435 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2437 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2439 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2441 (Qethiopic_ucs): New variable in UTF-2000.
2442 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2443 (complex_vars_of_mule_charset): Add new coded-charset
2444 `ethiopic-ucs' in UTF-2000.
2446 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2447 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2449 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2451 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2453 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
2455 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2458 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2460 * mule-charset.c (Vcharacter_variant_table): New variable.
2461 (Q_ucs): New variable.
2462 (Fchar_variants): New function.
2463 (Fput_char_attribute): Register `->ucs' value to
2464 `Vcharacter_variant_table'.
2465 (syms_of_mule_charset): Add new function `char-variants' and new
2467 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2469 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2471 * mule-charset.c (get_char_code_table): Allow negative character
2473 (put_char_code_table): Likewise.
2474 (Vcharacter_composition_table): New variable.
2475 (Q_decomposition): New variable.
2476 (Qwide): New variable.
2477 (Qnarrow): New variable.
2478 (Qcompat): New variable.
2479 (QnoBreak): New variable.
2480 (Qsuper): New variable.
2481 (Qfraction): New variable.
2482 (to_char_code): New function.
2483 (Fget_composite_char): New function.
2484 (Fput_char_attribute): Register `->decomposition' value to
2485 `Vcharacter_composition_table'.
2486 (syms_of_mule_charset): Add new function `get-composite-char', new
2487 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2488 `super' and `fraction'.
2489 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2491 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2493 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2494 character; copy the return value.
2496 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2498 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2500 * mule-charset.c (range_charset_code_point): Must use make_int.
2501 (split_builtin_char): New function.
2503 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2505 * mule-charset.c (char_byte_table): Change name from
2506 "char-code-table" to "char-byte-table".
2507 (mark_char_code_table): New function.
2508 (char_code_table_equal): New function.
2509 (char_code_table_hash): New function.
2510 (char_code_table_description): New constant.
2511 (char_code_table): New type.
2512 (make_char_code_table): New function.
2513 (copy_char_code_table): New function.
2514 (get_char_code_table): Modify for `char_code_table' type.
2515 (put_char_code_table): Likewise.
2516 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2519 * char-ucs.h (char_code_table): New type.
2520 (XCHAR_CODE_TABLE): New macro.
2521 (XSETCHAR_CODE_TABLE): New macro.
2522 (CHAR_CODE_TABLE_P): New macro.
2523 (GC_CHAR_CODE_TABLE_P): New macro.
2524 (struct Lisp_Char_Code_Table): New structure.
2526 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2528 * mule-charset.c (Fmake_charset): Setup byte_offset for
2531 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
2533 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2536 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2538 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2541 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2543 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2544 charset, it is regarded as a charset.
2545 (put_char_attribute): New function in UTF-2000.
2546 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2547 charset, mapping-table of the charset is modified.
2548 (Fdefine_char): New function in UTF-2000.
2549 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2550 `Fput_char_attribute'.
2551 (syms_of_mule_charset): Add new function `define-char' and new
2552 symbol `ucs' in UTF-2000.
2553 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2555 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2557 * mule-charset.c (Fcharset_name): Define `byte_offset' in
2558 non-UTF-2000 configuration.
2560 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2562 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2563 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2565 * mule-charset.c (mark_charset): `cs->encoding_table' has been
2567 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2568 (Fset_charset_mapping_table): Likewise.
2570 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2571 (CHARSET_ENCODING_TABLE): Delete.
2572 (XCHARSET_ENCODING_TABLE): Delete.
2573 (charset_code_point): New interface.
2575 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2577 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2578 instead of `charset_get_byte1' and `charset_get_byte2'.
2580 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2581 (charset_get_byte2): Deleted.
2583 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2585 * char-ucs.h (SPLIT_CHAR): New inline function.
2586 (breakup_char_1): Use `SPLIT_CHAR'.
2588 * mule-charset.c (range_charset_code_point): New function.
2589 (charset_code_point): New function.
2591 * char-ucs.h (range_charset_code_point): New interface.
2592 (breakup_char_1): Use `range_charset_code_point'.
2594 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2596 * mule-charset.c (Fmake_charset): Delete unused local variable
2599 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2600 (breakup_char_1): Find a charset and code-point in
2601 `Vcharacter_attribute_table'.
2603 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2605 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2608 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
2610 * mule-charset.c (Vcharacter_attribute_table): New variable.
2611 (Fchar_attribute_alist): New function.
2612 (Fget_char_attribute): New function.
2613 (Fput_char_attribute): New function.
2614 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2616 (syms_of_mule_charset): Add new function `char-attribute-alist',
2617 `get-char-attribute' and `put-char-attribute'.
2618 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2620 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
2622 * mule-charset.c (Fmake_charset): Just use
2623 `get_unallocated_leading_byte'.
2625 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2626 sets; don't use final-byte based number for private sets.
2628 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2630 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2633 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2635 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2638 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2640 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2641 of `CHAR_LEADING_BYTE' in UTF-2000.
2643 * insdel.c (find_charsets_in_bufbyte_string): Use
2644 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2645 (find_charsets_in_emchar_string): Likewise.
2647 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2648 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2650 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2651 (CHAR_CHARSET_ID): New macro.
2653 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2655 * chartab.c (get_char_table): Don't use type `Charset_ID' for
2656 charset-id - MIN_LEADING_BYTE.
2657 (put_char_table): Likewise.
2659 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2661 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2662 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2663 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2664 (CHARSET_ID_OFFSET): New macro.
2665 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2666 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2667 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2668 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2670 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2672 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2673 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2674 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2675 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2676 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2678 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2680 * mule-charset.c (next_allocated_leading_byte): New variable in
2682 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2683 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2684 (get_unallocated_leading_byte): Simply use
2685 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2686 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2689 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2690 (MAX_LEADING_BYTE_PRIVATE): New macro.
2691 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2692 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2694 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2696 * mule-charset.c (Fmake_charset): Allocate final-byte based
2697 charset-id for 94-set, 96-set and 94x94-set.
2699 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2701 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2703 (Fmake_charset): Likewise.
2704 (complex_vars_of_mule_charset): Modify the font registry of
2705 `ucs-bmp' not to match `Ethiopic-Unicode'.
2707 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2709 * mule-charset.c (complex_vars_of_mule_charset): Add font
2710 registory of `ucs-bmp'.
2712 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2714 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2715 coded-charsets in `default-coded-charset-priority-list' when
2716 breaking up a character.
2718 * mule-charset.c (Vcharset_latin_viscii): New variable.
2719 (Qlatin_viscii): New variable.
2720 (make_charset): Don't use `decoding_table'.
2721 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2723 (Fset_charset_mapping_table): New implementation.
2724 (syms_of_mule_charset): Add new symbol `latin-viscii'.
2725 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2726 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2727 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2728 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2729 charset `latin_viscii'.
2731 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2732 (CHARSET_TYPE_94X94): Change to 1 from 2.
2733 (CHARSET_TYPE_96): Change to 2 from 1.
2734 (CHARSET_TYPE_128): New macro.
2735 (CHARSET_TYPE_128X128): Change to 5 from 4.
2736 (CHARSET_TYPE_256): New macro.
2737 (CHARSET_TYPE_256X256): Change to 7 from 5.
2738 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2740 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2742 * text-coding.c (char_encode_shift_jis): Refer
2743 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2744 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2746 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2747 (char_byte_table_equal): New function in UTF-2000.
2748 (char_byte_table_hash): New function in UTF-2000.
2749 (char_byte_table_description): New constant in UTF-2000.
2750 (char_byte_table): New type in UTF-2000.
2751 (make_char_byte_table): New function in UTF-2000.
2752 (copy_char_byte_table): New function in UTF-2000.
2753 (make_char_code_table): New macro in UTF-2000.
2754 (get_char_code_table): New function in UTF-2000.
2755 (put_char_code_table): New function in UTF-2000.
2756 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2757 (charset_description): Add setting in UTF-2000.
2758 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2759 `CHARSET_TO_BYTE1_TABLE(cs)'.
2760 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2761 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2762 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2763 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2764 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2765 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2766 `CHARSET_TO_BYTE2_TABLE(cs)'.
2768 * char-ucs.h (char_byte_table): New type.
2769 (XCHAR_BYTE_TABLE): New macro.
2770 (XSETCHAR_BYTE_TABLE): New macro.
2771 (CHAR_BYTE_TABLE_P): New macro.
2772 (GC_CHAR_BYTE_TABLE_P): New macro.
2773 (struct Lisp_Char_Byte_Table): New structure.
2774 (get_char_code_table): New interface.
2775 (Emchar_to_byte_table): Deleted.
2776 (get_byte_from_character_table): Deleted.
2777 (struct Lisp_Charset): Add `encoding_table'; delete
2778 `to_byte1_table' and `to_byte2_table'.
2779 (CHARSET_ENCODING_TABLE): New macro.
2780 (CHARSET_TO_BYTE1_TABLE): Deleted.
2781 (CHARSET_TO_BYTE2_TABLE): Deleted.
2782 (XCHARSET_ENCODING_TABLE): New macro.
2783 (XCHARSET_TO_BYTE1_TABLE): Deleted.
2784 (XCHARSET_TO_BYTE2_TABLE): Deleted.
2786 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2788 * mule-charset.c (syms_of_mule_charset): Delete charset alias
2789 `vietnamese-viscii-*'.
2791 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2793 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2794 (Qvietnamese_viscii_upper): New variable.
2795 (Fdefine_charset_alias): New function.
2796 (syms_of_mule_charset): Add new function `define-charset-alias'.
2797 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2798 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2801 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
2803 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2804 (MAX_CHAR_OBS_94x94): New macro.
2805 (breakup_char_1): Support obsolete XEmacs-UCS private code space
2808 * mule-charset.c (put_byte_from_character_table): Change unit size
2810 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2812 (Fmake_reverse_direction_charset): Modify dummy argument of
2813 `make_charset' for non-UTF-2000 environment.
2815 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
2817 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2819 * mule-charset.c (destroy_byte_from_character_table): New macro.
2820 (latin_jisx0201_to_ucs): Deleted.
2821 (latin_iso8859_2_to_ucs): Deleted.
2822 (latin_iso8859_3_to_ucs): Deleted.
2823 (latin_iso8859_4_to_ucs): Deleted.
2824 (latin_iso8859_9_to_ucs): Deleted.
2825 (latin_viscii_lower_to_ucs): Deleted.
2826 (latin_viscii_upper_to_ucs): Deleted.
2827 (mark_charset): Mark `cs->decoding_table'.
2828 (Fcharset_mapping_table): Fix DOC-string.
2829 (Fset_charset_mapping_table): New function.
2830 (syms_of_mule_charset): Add nwe function
2831 `set-charset-mapping-table'.
2832 (complex_vars_of_mule_charset): Don't setup and use
2835 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
2837 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2840 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
2842 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2843 (Vcharset_katakana_jisx0208): New variable.
2844 (Qhiragana_jisx0208): New variable.
2845 (Qkatakana_jisx0208): New variable.
2846 (make_charset): Add new argument `byte_offset'.
2847 (charset_get_byte1): Modify for new coded-charset definition; use
2848 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2849 `XCHARSET_BYTE_OFFSET'.
2850 (Fmake_charset): Modify for `make_charset'.
2851 (Fmake_reverse_direction_charset): Likewise.
2852 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2853 `katakana-jisx0208'.
2854 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2855 `.' in font registry of charset `katakana-jisx0201',
2856 `latin-jisx0201', `vietnamese-viscii-lower' and
2857 `vietnamese-viscii-upper'; modify DOC-string of charset
2858 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2859 registry of charset `japanese-jisx0208' not to use font for JIS
2860 X0208:1990; add new charset `hiragana-jisx0208' and
2861 `katakana-jisx0208'.
2863 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2864 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2865 (struct Lisp_Charset): Add `byte_offset'.
2866 (CHARSET_BYTE_OFFSET): New macro.
2867 (XCHARSET_UCS_MIN): New macro.
2868 (XCHARSET_UCS_MAX): New macro.
2869 (XCHARSET_CODE_OFFSET): New macro.
2870 (XCHARSET_BYTE_OFFSET): New macro.
2871 (MIN_CHAR_HIRAGANA): New macro.
2872 (MAX_CHAR_HIRAGANA): New macro.
2873 (MIN_CHAR_KATAKANA): New macro.
2874 (MAX_CHAR_KATAKANA): New macro.
2875 (MAKE_CHAR): Modify for new coded-charset definition; use
2876 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2877 `XCHARSET_BYTE_OFFSET'.
2879 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2881 * mule-charset.c (CHAR96): Deleted.
2882 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2884 (latin_iso8859_2_to_ucs): Likewise.
2885 (latin_iso8859_3_to_ucs): Likewise.
2886 (latin_iso8859_4_to_ucs): Likewise.
2887 (latin_iso8859_9_to_ucs): Likewise.
2888 (latin_viscii_lower_to_ucs): Likewise.
2889 (latin_viscii_upper_to_ucs): Likewise.
2890 (latin_tcvn5712_to_ucs): Commented out.
2891 (make_charset): Change type of argument `decoding_table' from
2892 <Emchar*> to <Lisp_Object> [vector of characters].
2893 (Fmake_charset): Modify for `make_charset'.
2894 (Fmake_reverse_direction_charset): Likewise.
2895 (Fcharset_mapping_table): New function in UTF-2000.
2896 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2898 (complex_vars_of_mule_charset): Modify for type change of
2899 `*_to_ucs'; modify for `make_charset'.
2901 * char-ucs.h (struct Lisp_Charset): Change type of
2902 `decoding_table' from <Emchar*> to <Lisp_Object>.
2903 (MAKE_CHAR): Modify for new specification of `decoding_table'.
2905 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
2907 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2908 error with non-UTF-2000-Mule.
2910 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
2912 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2914 (Vcharset_chinese_cns11643_4): Likewise.
2915 (Vcharset_chinese_cns11643_5): Likewise.
2916 (Vcharset_chinese_cns11643_6): Likewise.
2917 (Vcharset_chinese_cns11643_7): Likewise.
2918 (Qchinese_cns11643_3): Likewise.
2919 (Qchinese_cns11643_4): Likewise.
2920 (Qchinese_cns11643_5): Likewise.
2921 (Qchinese_cns11643_6): Likewise.
2922 (Qchinese_cns11643_7): Likewise.
2923 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2924 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2925 and `chinese-cns11643-7' to lisp/mule/chinese.el.
2926 (complex_vars_of_mule_charset): Likewise.
2928 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2930 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
2932 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
2933 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
2935 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
2937 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
2939 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
2940 (breakup_char_1): Likewise.
2942 * text-coding.c (char_encode_iso2022): Keep designated charsets if
2943 one of them includes the specified character.
2945 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2947 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
2949 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2951 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
2953 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2955 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
2956 definition for non-UTF-2000 Mule.
2957 (latin_iso8859_3_to_ucs): Likewise.
2958 (latin_iso8859_4_to_ucs): Likewise.
2959 (latin_iso8859_9_to_ucs): Likewise.
2960 (latin_jisx0201_to_ucs): Likewise.
2961 (MIN_CHAR_THAI): Likewise.
2962 (MAX_CHAR_THAI): Likewise.
2963 (MIN_CHAR_GREEK): Likewise.
2964 (MAX_CHAR_GREEK): Likewise.
2965 (MIN_CHAR_HEBREW): Likewise.
2966 (MAX_CHAR_HEBREW): Likewise.
2967 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
2968 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
2969 (MIN_CHAR_CYRILLIC): Likewise.
2970 (MAX_CHAR_CYRILLIC): Likewise.
2972 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2974 * char-ucs.h (breakup_char_1): Use
2975 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
2976 thai-tis620 and katakana-jisx0201 area.
2978 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2980 * char-ucs.h (breakup_char_1): Use
2981 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
2984 * text-coding.c (reset_encoding_stream): Fixed.
2985 (char_encode_ucs4): Delete `& 255'.
2987 * char-ucs.h (breakup_char_1): Use
2988 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
2990 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2992 * file-coding.c (Fmake_coding_system): Don't set up
2993 `codesys->fixed.size'.
2994 (encode_coding_no_conversion): Don't refer
2995 `str->codesys->fixed.size'.
2997 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2999 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3000 (latin_a_char_to_byte1): Deleted.
3001 (latin_a_char_to_byte2): Deleted.
3003 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3005 * mule-charset.c (make_charset): Add new argument `ucs_min',
3006 `ucs_max' and `code_offset'.
3007 (charset_get_byte1): New implementation [delete specific charset
3008 depended implementations].
3009 (Fmake_charset): Modify for `make_charset'.
3010 (Fmake_reverse_direction_charset): Likewise.
3011 (complex_vars_of_mule_charset): Likewise.
3013 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3015 (CHARSET_UCS_MIN): New macro.
3016 (CHARSET_UCS_MAX): New macro.
3017 (CHARSET_CODE_OFFSET): New macro.
3018 (MAKE_CHAR): Delete charset depended definitions [except
3021 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
3023 * char-ucs.h (breakup_char_1): Use
3024 `Vdefault_coded_charset_priority_list' for C0-Controls,
3025 Basic-Latin, C1-Controls and Latin-1-Supplement area.
3027 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3029 * char-ucs.h (charset_get_byte1): New function.
3030 (XCHARSET_GET_BYTE1): Deleted.
3031 (charset_get_byte2): New function.
3032 (XCHARSET_GET_BYTE2): Deleted.
3033 (Vdefault_coded_charset_priority_list): New external variable.
3034 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3035 `Vdefault_preferred_coded_charset_list'.
3037 * mule-charset.c (charset_get_byte1): New function.
3038 (charset_get_byte2): New function.
3039 (Vdefault_coded_charset_priority_list): New variable.
3040 (vars_of_mule_charset): Add new variable
3041 `default-coded-charset-priority-list'.
3043 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3045 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3046 (XCHARSET_GET_BYTE2): New inline function.
3047 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3048 `XCHARSET_GET_BYTE2'.
3050 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3052 * mule-charset.c (make_charset): Initialize
3053 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3054 NULL if table is not defined.
3056 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3058 * text-coding.c (char_encode_shift_jis): Use
3059 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3060 `ucs_to_latin_jisx0201'.
3062 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3063 (ucs_to_latin_iso8859_2): Deleted.
3064 (ucs_to_latin_iso8859_3): Deleted.
3065 (ucs_to_latin_iso8859_4): Deleted.
3066 (ucs_to_latin_iso8859_9): Deleted.
3067 (ucs_to_latin_viscii_lower): Deleted.
3068 (ucs_to_latin_viscii_upper): Deleted.
3069 (ucs_to_latin_tcvn5712): Deleted.
3070 (make_charset): Add new argument `decoding_table'; set up
3071 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3072 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3073 `decoding_table' is defined in UTF-2000.
3074 (Fmake_charset): Modify for `make_charset'.
3075 (Fmake_reverse_direction_charset): Likewise.
3076 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3077 and `GENERATE_96_SET'.
3079 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3080 (ucs_to_latin_jisx0201): Deleted.
3081 (latin_iso8859_2_to_ucs): Deleted.
3082 (ucs_to_latin_iso8859_2): Deleted.
3083 (latin_iso8859_3_to_ucs): Deleted.
3084 (ucs_to_latin_iso8859_3): Deleted.
3085 (latin_iso8859_4_to_ucs): Deleted.
3086 (ucs_to_latin_iso8859_4): Deleted.
3087 (latin_iso8859_9_to_ucs): Deleted.
3088 (ucs_to_latin_iso8859_9): Deleted.
3089 (latin_viscii_lower_to_ucs): Deleted.
3090 (ucs_to_latin_viscii_lower): Deleted.
3091 (latin_viscii_upper_to_ucs): Deleted.
3092 (ucs_to_latin_viscii_upper): Deleted.
3093 (struct Lisp_Charset): Renamed `encoding_table' to
3094 `to_byte1_table'; add `to_byte2_table'.
3095 (CHARSET_DECODING_TABLE): New macro.
3096 (CHARSET_TO_BYTE1_TABLE): New macro.
3097 (CHARSET_TO_BYTE2_TABLE): New macro.
3098 (XCHARSET_DECODING_TABLE): New macro.
3099 (XCHARSET_TO_BYTE1_TABLE): New macro.
3100 (XCHARSET_TO_BYTE2_TABLE): New macro.
3101 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3103 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3104 don't use `ucs_to_*' tables.
3106 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3108 * text-coding.c (Fmake_coding_system): Don't set up
3109 `codesys->fixed.size'.
3110 (encode_coding_no_conversion): Use `if' instead of `switch'.
3112 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3114 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3116 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3117 (Fmake_charset): Modify for `make_charset'.
3118 (Fmake_reverse_direction_charset): Likewise.
3119 (complex_vars_of_mule_charset): Likewise.
3121 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3123 * text-coding.c (char_encode_shift_jis): Use table
3124 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3126 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3128 * text-coding.c (text_encode_generic): Use `if' instead of
3130 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3133 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3135 * text-coding.c (encode_coding_sjis): Deleted.
3136 (char_encode_shift_jis): New function.
3137 (char_finish_shift_jis): New function.
3138 (reset_encoding_stream): Set up `encode_char' and `finish' for
3139 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3140 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3141 (char_encode_utf8): Treat `eol_type'.
3143 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3145 * file-coding.c (decode_coding_iso2022): Use
3146 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3148 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3150 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3153 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3155 * char-lb.h (CHAR_COLUMNS): New macro.
3157 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3159 * text-coding.c (char_encode_ucs4): New function.
3160 (char_finish_ucs4): New function.
3161 (encode_coding_ucs4): Deleted.
3162 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3163 (text_encode_generic): Delete local variable `charset' and `half'.
3164 (ucs_to_mule_table): Deleted.
3165 (mule_to_ucs_table): Deleted.
3166 (Fset_ucs_char): Deleted.
3167 (ucs_to_char): Deleted.
3168 (Fucs_char): Deleted.
3169 (Fset_char_ucs): Deleted.
3170 (Fchar_ucs): Deleted.
3171 (decode_ucs4): Deleted.
3172 (mule_char_to_ucs4): Deleted.
3173 (encode_ucs4): Deleted.
3174 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3175 (decode_coding_utf8): Likewise.
3176 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3177 (char_encode_iso2022): Fixed.
3178 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3179 `Fset_char_ucs' and `Fchar_ucs'.
3180 (complex_vars_of_file_coding): Don't initialize
3181 `ucs_to_mule_table'.
3183 * objects-tty.c (tty_initialize_font_instance): Don't use
3186 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3189 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3190 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3192 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3193 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3194 (emchar_string_displayed_columns): Likewise.
3196 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3197 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3198 (string_column_at_point): Likewise.
3199 (Fmove_to_column): Likewise.
3201 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3202 `encoding_table' and `decoding_table'.
3203 (CHARSET_REP_BYTES): Deleted.
3204 (XCHARSET_REP_BYTES): Deleted.
3205 (XCHARSET_COLUMNS): Deleted.
3206 (CHAR_COLUMNS): New macro.
3207 (lookup_composite_char): Deleted unconditionally.
3208 (composite_char_string): Likewise.
3210 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3212 * char-ucs.h (Emchar_to_byte_table): New type.
3213 (get_byte_from_character_table): New function interface.
3214 (Vcharset_latin_jisx0201): New variable.
3215 (latin_jisx0201_to_ucs): New variable.
3216 (ucs_to_latin_jisx0201): New variable.
3217 (Vcharset_latin_iso8859_2): New variable.
3218 (latin_iso8859_2_to_ucs): New variable.
3219 (ucs_to_latin_iso8859_2): New variable.
3220 (Vcharset_latin_iso8859_3): New variable.
3221 (latin_iso8859_3_to_ucs): New variable.
3222 (ucs_to_latin_iso8859_3): New variable.
3223 (Vcharset_latin_iso8859_4): New variable.
3224 (latin_iso8859_4_to_ucs): New variable.
3225 (ucs_to_latin_iso8859_4): New variable.
3226 (Vcharset_latin_iso8859_9): New variable.
3227 (latin_iso8859_9_to_ucs): New variable.
3228 (ucs_to_latin_iso8859_9): New variable.
3229 (Vcharset_latin_viscii_lower): New variable.
3230 (latin_viscii_lower_to_ucs): New variable.
3231 (ucs_to_latin_viscii_lower): New variable.
3232 (Vcharset_latin_viscii_upper): New variable.
3233 (latin_viscii_upper_to_ucs): New variable.
3234 (ucs_to_latin_viscii_upper): New variable.
3235 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3236 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3237 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3238 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3239 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3240 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3241 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3242 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3243 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3244 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3246 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3247 (Vcharset_latin_viscii_upper): New variable.
3248 (make_byte_from_character_table): New function.
3249 (put_byte_from_character_table): New function.
3250 (get_byte_from_character_table): New function.
3251 (CHAR96): New macro.
3252 (ucs_to_latin_jisx0201): New variable.
3253 (latin_jisx0201_to_ucs): New variable.
3254 (ucs_to_latin_iso8859_2): New variable.
3255 (latin_iso8859_2_to_ucs): New variable.
3256 (ucs_to_latin_iso8859_3): New variable.
3257 (latin_iso8859_3_to_ucs): New variable.
3258 (ucs_to_latin_iso8859_4): New variable.
3259 (latin_iso8859_4_to_ucs): New variable.
3260 (ucs_to_latin_iso8859_9): New variable.
3261 (latin_iso8859_9_to_ucs): New variable.
3262 (ucs_to_latin_viscii_lower): New variable.
3263 (latin_viscii_lower_to_ucs): New variable.
3264 (ucs_to_latin_viscii_upper): New variable.
3265 (latin_viscii_upper_to_ucs): New variable.
3266 (ucs_to_latin_tcvn5712): New variable.
3267 (latin_tcvn5712_to_ucs): New variable.
3268 (Qlatin_viscii_lower): New variable.
3269 (Qlatin_viscii_upper): New variable.
3270 (syms_of_mule_charset): Set up new symbol
3271 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3272 (complex_vars_of_mule_charset): Set up new charset
3273 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3274 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3275 `ucs_to_<CHARSET>' tables.
3277 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
3279 * text-coding.c: New file.
3281 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3283 * mule-charset.c (Fmake_char): Fix problem of 256-set.
3285 * char-ucs.h (Vcharset_ucs_bmp): New variable.
3286 (MAKE_CHAR): Modify for `ucs-bmp'.
3287 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3288 non-MULE characters of BMP.
3290 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
3292 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3295 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
3298 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3299 - Include character.h for `CHAR_ASCII_P'.
3301 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3303 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3304 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3306 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3307 (BYTE_C0_P): Likewise.
3308 (BYTE_C1_P): Likewise.
3309 (Lstream_get_emchar_1): Likewise.
3310 (Lstream_fput_emchar): Likewise.
3311 (Lstream_funget_emchar): Likewise.
3312 (copy_internal_to_external): Likewise.
3313 (copy_external_to_internal): Likewise.
3315 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3316 (BYTE_C0_P): Likewise.
3317 (BYTE_C1_P): Likewise.
3318 (Lstream_get_emchar_1): Likewise.
3319 (Lstream_fput_emchar): Likewise.
3320 (Lstream_funget_emchar): Likewise.
3321 (copy_internal_to_external): Likewise.
3322 (copy_external_to_internal): Likewise.
3324 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3325 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3327 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3328 (BYTE_ASCII_P): Moved to mb-1byte.h.
3330 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
3332 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3334 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3335 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3336 (VALID_CHARPTR_P): Moved to mb-*byte.h.
3337 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3338 (VALIDATE_CHARPTR_FORWARD): Likewise.
3339 (simple_charptr_emchar): Moved to mb-multibyte.h.
3340 (simple_set_charptr_emchar): Likewise.
3341 (simple_charptr_copy_char): Likewise.
3342 (non_ascii_charptr_emchar): Likewise.
3343 (non_ascii_set_charptr_emchar): Likewise.
3344 (non_ascii_charptr_copy_char): Likewise.
3345 (charptr_emchar): Moved to mb-*byte.h.
3346 (set_charptr_emchar): Likewise.
3347 (charptr_copy_char): Likewise.
3349 * mb-1byte.h, mb-multibyte.h: New files.
3351 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3353 * mb-utf-8.h (MULTIBYTE): New macro.
3354 (MAX_EMCHAR_LEN): Moved from buffer.h.
3355 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3357 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3359 * mb-lb.h, multibyte.h: New files.
3361 * char-1byte.h (Charset_ID): Moved from buffer.h.
3362 (MIN_LEADING_BYTE): Likewise.
3363 (LEADING_BYTE_ASCII): Likewise.
3364 (NUM_LEADING_BYTES): Likewise.
3365 (CHARSETP): Likewise.
3366 (CHARSET_BY_LEADING_BYTE): Likewise.
3367 (XCHARSET_LEADING_BYTE): Likewise.
3368 (XCHARSET_GRAPHIC): Likewise.
3369 (XCHARSET_COLUMNS): Likewise.
3370 (XCHARSET_DIMENSION): Likewise.
3371 (CHAR_CHARSET): Likewise.
3372 (CHAR_LEADING_BYTE): Likewise.
3373 (BREAKUP_CHAR): Likewise.
3374 (Vcharset_ascii): Likewise.
3376 * buffer.h: Include multibyte.h unconditionally.
3377 (VALID_CHARPTR_P): Moved to multibyte.h.
3378 (ASSERT_VALID_CHARPTR): Likewise.
3379 (REAL_INC_CHARPTR): Likewise.
3380 (REAL_INC_CHARBYTIND): Likewise.
3381 (REAL_DEC_CHARPTR): Likewise.
3382 (INC_CHARPTR): Likewise.
3383 (INC_CHARBYTIND): Likewise.
3384 (DEC_CHARPTR): Likewise.
3385 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3386 (VALIDATE_CHARPTR_FORWARD): Likewise.
3387 (charptr_n_addr): Likewise.
3388 (MAX_EMCHAR_LEN): Moved to mb-*.h.
3389 (simple_charptr_emchar): Moved to multibyte.h.
3390 (simple_set_charptr_emchar): Likewise.
3391 (simple_charptr_copy_char): Likewise.
3392 (non_ascii_charptr_emchar): Likewise.
3393 (non_ascii_set_charptr_emchar): Likewise.
3394 (non_ascii_charptr_copy_char): Likewise.
3395 (charptr_emchar): Likewise.
3396 (set_charptr_emchar): Likewise.
3397 (charptr_copy_char): Likewise.
3398 (charptr_emchar_n): Likewise.
3399 (Charset_ID): Moved to char-1byte.h.
3400 (Vcharset_ascii): Likewise.
3401 (CHAR_CHARSET): Likewise.
3402 (CHAR_LEADING_BYTE): Likewise.
3403 (LEADING_BYTE_ASCII): Likewise.
3404 (NUM_LEADING_BYTES): Likewise.
3405 (MIN_LEADING_BYTE): Likewise.
3406 (CHARSETP): Likewise.
3407 (CHARSET_BY_LEADING_BYTE): Likewise.
3408 (XCHARSET_LEADING_BYTE): Likewise.
3409 (XCHARSET_GRAPHIC): Likewise.
3410 (XCHARSET_COLUMNS): Likewise.
3411 (XCHARSET_DIMENSION): Likewise.
3412 (BREAKUP_CHAR): Likewise.
3414 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3416 * character.h: Add document about interface for characters.
3418 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3419 (MAKE_CHAR): Delete comment about
3420 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3421 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3422 (BREAKUP_CHAR): Modify name of arguments.
3423 (CHAR_CHARSET): Modify name of argument.
3425 * buffer.h: Delete document about Emchar accessors.
3427 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3429 * character.h (CHAR_INTP): Moved from buffer.h
3430 (CHAR_OR_CHAR_INTP): Likewise.
3431 (XCHAR_OR_CHAR_INT): Likewise.
3432 (CHECK_CHAR_COERCE_INT): Likewise.
3434 * buffer.h (CHAR_INTP): Moved to character.h
3435 (CHAR_OR_CHAR_INTP): Likewise.
3436 (XCHAR_OR_CHAR_INT): Likewise.
3437 (CHECK_CHAR_COERCE_INT): Likewise.
3439 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3442 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3443 - Include char-1byte.h, char-lb.h or char-ucs.h.
3445 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3447 * buffer.h: Include character unconditionally.
3448 (valid_char_p): Moved to char-*.h.
3449 (non_ascii_valid_char_p): Moved to char-lb.h.
3451 * char-1byte.h, char-lb.h, char-ucs.h: New files.
3453 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3455 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3456 in UTF-2000 because it is not ported yet and not to use
3457 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3458 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3459 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3461 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3462 (CHAR_ASCII_P): Moved from character.h.
3464 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3465 (CHAR_ASCII_P): Likewise.
3466 (CHAR_FIELD1_MASK): Deleted.
3467 (CHAR_FIELD2_MASK): Deleted.
3468 (CHAR_FIELD3_MASK): Deleted.
3469 (MAX_CHAR_BASIC_LATIN): New macro.
3470 (CHAR_FIELD1): Deleted.
3471 (CHAR_FIELD2_INTERNAL): Deleted.
3472 (CHAR_FIELD3_INTERNAL): Deleted.
3473 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3474 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3475 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3476 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3477 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3478 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3479 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3480 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3481 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3482 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3483 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3484 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3485 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3486 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3487 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3488 (MIN_CHAR_COMPOSITION): Deleted.
3489 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3490 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3492 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
3494 * buffer.h: Include mb-utf-8.h in UTF-2000.
3496 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3498 * mb-utf-8.h: New file.
3500 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
3502 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3505 * mule-charset.h, buffer.h (Charset_ID): New type.
3507 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3509 * mule-canna.c (c2mu): Use `MAKE_CHAR',
3510 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3511 instead of `MULE_CHAR_PRIVATE_OFFSET',
3512 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3513 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3514 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3516 * character.h (Vcharset_japanese_jisx0212): New variable
3519 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3521 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3522 (charset_by_attributes): Delete array about direction.
3523 (latin_a_char_to_charset): New variable in UTF-2000.
3524 (latin_a_char_to_byte1): New variable in UTF-2000.
3525 (latin_a_char_to_byte2): New variable in UTF-2000.
3526 (Qucs_bmp): New variable.
3527 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3529 (next_allocated_2_byte_leading_byte): Likewise.
3530 (non_ascii_set_charptr_emchar): Likewise.
3531 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3532 `CHARSET_TYPE_256X256' in UTF-2000; modify for
3533 `charset_by_attributes'.
3534 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3535 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3536 and `CHARSET_BY_LEADING_BYTE'.
3537 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3538 `utf-2000-version' to `vars_of_mule_charset'.
3539 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3540 define `leading-code-private-11' in UTF-2000; move setting of
3541 `utf-2000-version' from `syms_of_mule_charset'.
3542 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3545 * character.h (Charset_ID): New type.
3546 (LEADING_BYTE_UCS_BMP): New macro.
3547 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3548 (CHARSET_ID_OFFSET_94): New macro.
3549 (MIN_CHARSET_ID_PRIVATE_94): New macro.
3550 (MAX_CHARSET_ID_PRIVATE_94): New macro.
3551 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3553 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3554 (LEADING_BYTE_LATIN_JISX0201): Likewise.
3555 (CHARSET_ID_OFFSET_96): New macro.
3556 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3557 CHARSET_ID_OFFSET_96 and final-byte.
3558 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3559 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3560 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3561 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3562 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3563 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3564 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3565 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3566 (LEADING_BYTE_THAI_TIS620): Likewise.
3567 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3568 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3569 (CHARSET_ID_OFFSET_94x94): New macro.
3570 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3571 CHARSET_ID_OFFSET_94x94 and final-byte.
3572 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3573 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3574 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3575 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3576 (LEADING_BYTE_CHINESE_GB2312): Likewise.
3577 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3578 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3579 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3580 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3581 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3582 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3583 (CHARSET_TYPE_128X128): New macro.
3584 (CHARSET_TYPE_256X256): New macro.
3585 (XCHARSET_PRIVATE_P): Delete unconditionally.
3586 (charset_by_attributes): Delete array about direction.
3587 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3588 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3589 (MIN_CHAR_94): New macro.
3590 (MAX_CHAR_94): New macro.
3591 (MIN_CHAR_96): New macro.
3592 (MAX_CHAR_96): New macro.
3593 (MIN_CHAR_94x94): New macro.
3594 (MAX_CHAR_94x94): New macro.
3595 (MIN_CHAR_96x96): New macro.
3596 (MAX_CHAR_96x96): New macro.
3597 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3598 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3599 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3601 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3602 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3603 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3604 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3605 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3606 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3607 `XCHARSET_LEADING_BYTE' to make code-point.
3608 (latin_a_char_to_charset): New variable.
3609 (latin_a_char_to_byte1): New variable.
3610 (latin_a_char_to_byte2): New variable.
3611 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3612 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3613 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3615 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3616 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3617 (find_charsets_in_emchar_string): Likewise.
3618 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3620 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3622 (decode_coding_iso2022): Likewise.
3624 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3627 * redisplay.c (redisplay_text_width_emchar_string): Use
3628 `Charset_ID' instead of `unsigned char'.
3629 (redisplay_frame_text_width_string): Likewise.
3631 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3634 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3635 instead of `unsigned char'.
3636 (face_cachel_charset_font_metric_info): Likewise.
3638 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3639 (get_non_ascii_char_table_value): Likewise.
3640 (get_char_table): Likewise.
3641 (put_char_table): Likewise.
3642 (map_over_other_charset): Likewise.
3643 (map_char_table): Likewise.
3645 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3646 instead of `unsigned char'.
3648 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
3650 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3651 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3653 * mule-charset.c (leading_code_private_11): Don't define in
3656 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3657 in UTF-2000 because it is not ported yet and not to use
3658 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3660 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
3662 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3664 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3666 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3669 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3670 of unsigned char to store leading-byte.
3672 * chartab.c (get_non_ascii_char_table_value): Don't use
3673 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3675 * file-coding.c (encode_coding_big5): Delete bogus implementation
3678 * character.h (LEADING_BYTE_*): Delete definition for
3680 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3681 (LEADING_BYTE_PREFIX_P): Deleted.
3682 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3683 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3684 (BUFBYTE_LEADING_BYTE_P): Deleted.
3685 (CHARSET_PRIVATE_P): Deleted unconditionally.
3686 (rep_bytes_by_first_byte): Deleted unconditionally.
3687 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3688 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3689 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3690 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3691 (CHAR_FIELD2): Deleted.
3692 (CHAR_FIELD3): Deleted.
3693 (MAKE_CHAR): Delete definition for non-UTF-2000.
3694 (BREAKUP_CHAR_1_UNSAFE): Deleted.
3695 (breakup_char_1): New implementation.
3696 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3697 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3699 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3701 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3704 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3706 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3707 (CHARSET_PRIVATE_P): Likewise.
3708 (XCHARSET_PRIVATE_P): Likewise.
3709 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3711 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3713 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3715 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3717 * character.h (LEADING_BYTE_*): Changed in UTF2000.
3718 (NUM_LEADING_BYTES): Changed from 128 to 256.
3719 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3720 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3722 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3724 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3726 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3727 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3728 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3729 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3730 (Qchinese_cns11643_3): New variable in UTF2000.
3731 (Qchinese_cns11643_4): New variable in UTF2000.
3732 (Qchinese_cns11643_5): New variable in UTF2000.
3733 (Qchinese_cns11643_6): New variable in UTF2000.
3734 (Qchinese_cns11643_7): New variable in UTF2000.
3735 (syms_of_mule_charset): Define `chinese-cns11643-3',
3736 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3737 and `chinese-cns11643-7' in UTF2000.
3738 (vars_of_mule_charset): Initialize
3739 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3741 (complex_vars_of_mule_charset): Setup charset
3742 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3743 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3745 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3747 * mule-charset.c: Move setting for `leading-code-private-11' from
3748 `syms_of_mule_charset' to `vars_of_mule_charset'.
3750 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3752 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3753 and `NUM_LEADING_BYTES' in assert.
3755 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3757 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3759 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3760 `NUM_LEADING_BYTES' instead of 128.
3762 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
3764 * mule-charset.h (charset_by_leading_byte): Use
3765 `NUM_LEADING_BYTES' instead of 128.
3766 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3768 * mule-charset.c (charset_by_leading_byte): Use
3769 `NUM_LEADING_BYTES' instead of 128.
3770 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3772 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3775 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
3777 * mule-charset.c (syms_of_mule_charset): Update to
3780 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3782 * file-coding.c (encode_coding_sjis): New implementation for
3783 UTF2000. (decode_coding_sjis): Ditto.
3785 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3787 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3788 Don't define in UTF2000.
3790 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3793 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3794 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3797 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3799 * config.h.in (CHAR_IS_UCS4): New macro.
3801 * mule-charset.c (rep_bytes_by_first_byte): Modify for
3802 conventional MULE representation.
3803 (syms_of_mule_charset): Update to 0.3 (Imamiya).
3805 * mule-charset.h: Reverted to original.
3807 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3808 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3809 "mule-charset.h" if CHAR_IS_UCS4 is defined.
3811 * character.h: New file.
3813 * file-coding.c (Fmake_coding_system): Set 1 to
3814 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3816 (encode_coding_no_conversion): New implementation for UTF2000.
3818 * file-coding.h (struct Lisp_Coding_System): Add new member
3821 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
3823 * file-coding.c (decode_coding_iso2022): Code-point arguments of
3824 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3825 (encode_coding_iso2022): New implementation for UTF2000.
3827 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3829 * mule-canna.c (c2mu): New implementation for UTF2000.
3832 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3834 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3836 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3838 * file-coding.c (reset_encoding_stream): Set 0 to
3839 `str->iso2022.current_char_boundary' in UTF2000.
3840 (encode_utf8): Don't define in UTF2000.
3841 (encode_coding_utf8): New implementation for UTF-8 representation
3843 (complex_vars_of_file_coding): Define coding-system `utf-8'.
3845 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3847 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3849 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3851 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3853 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3855 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3856 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3857 as UTF-8 in UTF2000.
3858 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3859 (non_ascii_valid_char_p): Don't define in UTF2000.
3860 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3861 (Lstream_get_emchar_1): Likewise.
3862 (utf-2000-version): New variable in UTF2000.
3864 * lread.c (read_escape): Add new reader `u'.
3866 * insdel.c (three_to_one_table): Don't define in UTF2000.
3867 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3868 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3870 (bytind_to_bufpos_func): Likewise.
3871 (buffer_mule_signal_inserted_region): Likewise.
3872 (vars_of_insdel): Don't initialize `three_to_one_table'.
3873 (init_buffer_text): Use `buf->text->mule_size' instead of
3874 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3877 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3878 UTF-8 representation in UTF2000.
3879 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3880 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3881 (decode_coding_iso2022): Don't define local variable `lb' in
3882 UTF2000; don't use LEADING_BYTE in UTF2000; use
3883 `DECODE_ADD_UCS_CHAR' in UTF2000.
3884 (convert_to_external_format): Decode as UTF-8 in UTF2000.
3886 * config.h.in (UTF2000): New macro.
3888 * buffer.h (struct buffer_text): Add new member `mule_size' and
3889 don't add `mule_shifter' and `mule_three_p' in UTF2000.
3890 (valid_char_p): Return always 1 in UTF2000.
3891 (MAX_EMCHAR_LEN): 6 in UTF2000.
3892 (three_to_one_table): Don't define in UTF2000.
3893 (real_bufpos_to_bytind): Modify for UTF-8 representation in
3895 (real_bytind_to_bufpos): Likewise.
3897 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3899 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3901 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3902 representation change.
3903 (Vutf_2000_version): New variable.
3904 (leading_code_private_11): New variable.
3905 (syms_of_mule_charset): Add new variables `utf-2000-version' and
3906 `leading-code-private-11'.
3908 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3909 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3910 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3911 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3912 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3913 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3914 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3915 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3916 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3917 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3918 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3919 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3920 (MIN_CHAR_GREEK): New macro.
3921 (MAX_CHAR_GREEK): New macro.
3922 (MIN_CHAR_CYRILLIC): New macro.
3923 (MAX_CHAR_CYRILLIC): New macro.
3924 (MIN_CHAR_HEBREW): New macro.
3925 (MAX_CHAR_HEBREW): New macro.
3926 (MIN_CHAR_THAI): New macro.
3927 (MAX_CHAR_THAI): New macro.
3928 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
3929 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
3930 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
3931 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
3932 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
3933 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
3934 (CHAR_FIELD2): New inline function.
3935 (CHAR_FIELD3): New inline function.
3936 (MULE_CHAR_PRIVATE_OFFSET): New macro.
3937 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
3938 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
3939 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
3940 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
3941 (MIN_CHAR_COMPOSITION): Likewise.
3942 (CHAR_LEADING_BYTE): Modified for character representation change.
3943 (MAKE_CHAR): Likewise.
3945 * lisp.h (Vcharset_latin_iso8859_1): New variable.
3946 (Vcharset_greek_iso8859_7): Likewise.
3947 (Vcharset_cyrillic_iso8859_5): Likewise.
3948 (Vcharset_hebrew_iso8859_8): Likewise.
3949 (Vcharset_thai_tis620): Likewise.
3950 (Vcharset_katakana_jisx0201): Likewise.
3952 2001-02-08 Martin Buchholz <martin@xemacs.org>
3954 * XEmacs 21.2.44 "Thalia" is released.
3956 2001-02-06 Martin Buchholz <martin@xemacs.org>
3958 Fixes crashes in kill-emacs on some systems.
3959 * process-unix.c (unix_kill_child_process):
3960 It's OK for kill() to fail with ESRCH.
3962 2001-02-07 Martin Buchholz <martin@xemacs.org>
3964 Contortions to make .gdbinit tricks work on most systems.
3965 * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
3966 * alloc.c (dbg_valmask): Make non-const.
3967 * alloc.c (dbg_typemask): Make non-const.
3968 * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
3969 * alloc.c (dbg_valbits): Make non-const.
3970 * alloc.c (dbg_gctypebits): Make non-const.
3971 * .gdbinit (decode_object): Make it work with AIX cc.
3973 2001-02-06 Martin Buchholz <martin@xemacs.org>
3975 * elhash.c (make_general_lisp_hash_table):
3976 Use simpler and more efficient calloc to clear entries.
3978 2001-02-07 Martin Buchholz <martin@xemacs.org>
3980 * window.c (window_scroll): Work around an AIX C compiler bug.
3981 Fixes 'scroll-up' does nothing problem with xlC.
3983 2001-02-05 Martin Buchholz <martin@xemacs.org>
3985 * .gdbinit: Remove obsolete comment.
3987 2001-01-31 Mike Alexander <mta@arbortext.com>
3989 * select.c (Fown_selection_internal): Set owned_p for device
3992 2001-02-01 Martin Buchholz <martin@xemacs.org>
3995 "not" cannot be used as a macro name as it is an operator in C++
3996 * config.h.in: Stop #defining `not'.
3997 * chartab.c (check_category_char): not ==> not_p
3998 * chartab.h: Likewise.
3999 * regex.c (re_match_2_internal): Likewise.
4001 2001-02-02 Martin Buchholz <martin@xemacs.org>
4003 * lisp-disunion.h: Fix up comments.
4005 2001-01-31 Martin Buchholz <martin@xemacs.org>
4007 * keymap.c (define_key_check_and_coerce_keysym):
4009 Support mouse-6 and mouse-7 bindings in the obvious way.
4011 2001-02-01 Martin Buchholz <martin@xemacs.org>
4013 * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4015 2001-01-30 Martin Buchholz <martin@xemacs.org>
4017 Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4018 Previous patch missed DEFVAR_INT_MAGIC.
4019 Make sure future DEFVAR_foo use correct types.
4020 * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4021 * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4022 * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4023 * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4024 * (DEFVAR_INT): Likewise.
4025 * redisplay.c (vertical_clip): Should be of type Fixnum.
4026 * redisplay.c (horizontal_clip): Likewise.
4027 * lisp.h (dump_add_opaque_int): New.
4028 (dump_add_opaque_fixnum): New.
4030 2001-01-29 Andy Piper <andy@xemacs.org>
4032 * glyphs-widget.c (check_valid_int_or_function): allow symbols
4033 since they can be eval'ed
4035 2001-01-29 Martin Buchholz <martin@xemacs.org>
4037 * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4038 Oops, XEmacs redefines `class'. Use `typename' instead.
4040 2001-01-28 Martin Buchholz <martin@xemacs.org>
4042 * dumper.c: Fix C++ compile errors.
4044 2001-01-29 Martin Buchholz <martin@xemacs.org>
4046 * tparam.c: Use correct prototypes.
4048 2001-01-28 Martin Buchholz <martin@xemacs.org>
4050 * sysproc.h: #include util.h for NetBSD's openpty.
4052 2001-01-27 Martin Buchholz <martin@xemacs.org>
4054 More 64-bit correctness.
4055 The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4056 Use a typedef `fixnum' for the type used for DEFVAR_INT.
4058 This finally finishes the 64-bit SGI port.
4059 Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4060 * symbols.c: Fix up comments and type casts.
4061 * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4062 * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4063 * symeval.h (Fixnum): New type.
4064 * symeval.h (symbol_value_type): Fix up comment.
4080 * mule-canna.c: A million DEFVAR_INTs here...
4081 * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4094 s/int/Fixnum/g in DEFVAR_INT declarations.
4096 2001-01-26 Martin Buchholz <martin@xemacs.org>
4098 Port pdump to SGI alignment-sensitive environment.
4099 Lisp Object sizeof methods now return aligned sizes. Rely on that.
4100 Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4102 Define and use aligned reading and writing macros.
4103 Use buffered stdio instead of posix i/o for faster dumping.
4104 Eliminate kludgy 256 byte space for header.
4105 Read and write from dump file using structs for alignment safety.
4106 * dumper.c (pdump_align_stream): New.
4107 * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4108 * dumper.c (PDUMP_READ_ALIGNED): New.
4109 * dumper.c (PDUMP_WRITE_ALIGNED): New.
4110 * dumper.c (pdump_static_Lisp_Object): New struct.
4111 * dumper.c (pdump_static_pointer): New struct.
4112 * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4113 * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4114 * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4115 * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4117 * dumper.c (pdump_backtrace):
4118 * dumper.c (pdump_get_indirect_count):
4119 * dumper.c (pdump_register_object):
4120 * dumper.c (pdump_register_struct):
4121 * dumper.c (pdump_reloc_one):
4122 * dumper.c (pdump_scan_by_alignment):
4123 * dumper.c (pdump_dump_from_root_struct_ptrs):
4124 * dumper.c (pdump_dump_opaques):
4125 * dumper.c (pdump_dump_rtables):
4126 * dumper.c (pdump_dump_from_root_objects):
4128 * dumper.c (pdump_load_finish):
4129 Use aligned reading and writing.
4131 * dumper.c (pdump_free): Make static.
4132 * dumper.c (pdump_hFile): Likewise.
4133 * dumper.c (pdump_hMap): Likewise.
4135 2001-01-26 Martin Buchholz <martin@xemacs.org>
4137 * XEmacs 21.2.43 "Terspichore" is released.
4139 2001-01-25 Martin Buchholz <martin@xemacs.org>
4141 Type fiddling for window_config.saved_windows_count
4142 * window.c (struct window_config):
4143 Make saved_windows_count member unsigned.
4144 * window.c (sizeof_window_config_for_n_windows):
4145 Make parameter unsigned.
4146 * window.c (mark_window_config):
4147 * window.c (window_config_equal):
4148 * window.c (free_window_configuration):
4149 * window.c (Fset_window_configuration):
4150 * window.c (count_windows):
4151 * window.c (Fcurrent_window_configuration):
4152 * window.c (reinit_vars_of_window):
4153 Update all callers and users.
4155 2001-01-25 Martin Buchholz <martin@xemacs.org>
4157 Alignment correctness for flexible arrays.
4158 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4159 Make alignment-correct. Add interesting comments.
4160 * alloc.c (size_vector):
4161 * alloc.c (make_vector_internal):
4162 * alloc.c (make_bit_vector_internal):
4163 * alloc.c (sweep_bit_vectors_1):
4164 * fns.c (size_bit_vector):
4165 Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4166 * window.c (sizeof_window_config_for_n_windows):
4167 Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4169 2001-01-24 Martin Buchholz <martin@xemacs.org>
4171 * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4173 2001-01-23 Andy Piper <andy@xemacs.org>
4175 * select.c (Fown_selection_internal): pass owned_p
4177 * select-msw.c (mswindows_own_selection): New Signature.
4179 * console.h (struct console_methods): add owned_p to
4182 * select-x.c (x_own_selection): pass owned_p
4183 (hack_motif_clipboard_selection): use owned_p
4184 (vars_of_select_x): new variable -
4185 x_selection_strict_motif_ownership.
4187 2001-01-23 Martin Buchholz <martin@xemacs.org>
4189 * specifier.h (specifier_data_offset): Remove pointless parens.
4190 * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4192 2001-01-24 Martin Buchholz <martin@xemacs.org>
4194 Make Lisp_Object sizeof methods be alignment-correct.
4195 pdump must restore objects to the same alignment as the C compiler
4196 assumes. It really matters on SGIs.
4197 * lstream.c (aligned_sizeof_lstream): New.
4198 (sizeof_lstream): Use aligned_sizeof_lstream.
4199 (Lstream_new): Likewise.
4200 * opaque.c (aligned_sizeof_opaque): New.
4201 (sizeof_opaque): Use aligned_sizeof_opaque.
4202 (make_opaque): Likewise.
4203 * specifier.c (aligned_sizeof_specifier): New.
4204 (sizeof_specifier): Use aligned_sizeof_specifier.
4205 (make_specifier_internal): Likewise.
4207 2001-01-23 Martin Buchholz <martin@xemacs.org>
4209 * lstream.h (struct lstream): Use max_align_t for trailing data.
4210 * specifier.h (struct Lisp_Specifier): Likewise.
4212 2001-01-22 Martin Buchholz <martin@xemacs.org>
4214 * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4215 (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4216 (CCL_SUSPEND): Likewise.
4217 (CCL_INVALID_CMD): Likewise.
4218 (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4219 (ccl_driver): Likewise.
4220 (CCL_WRITE_CHAR): Macro hygiene.
4221 (CCL_WRITE_STRING): Macro hygiene.
4223 2001-01-22 Martin Buchholz <martin@xemacs.org>
4225 Port "portable" dumper to SunOS 4 and HP-UX.
4226 * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4227 * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4228 * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4230 2001-01-22 Martin Buchholz <martin@xemacs.org>
4232 * lisp.h (ALIGNOF): A better definition for C++.
4234 2001-01-20 Martin Buchholz <martin@xemacs.org>
4237 Fix printf warnings: int format, long int arg.
4238 * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4239 (PUSH_FAILURE_POINT): Use correct printf formats.
4240 (POP_FAILURE_POINT): Use correct printf formats.
4241 Use do {...} while (0)
4243 2001-01-20 Martin Buchholz <martin@xemacs.org>
4245 * XEmacs 21.2.42 "Poseidon" is released.
4247 2001-01-20 Martin Buchholz <martin@xemacs.org>
4249 * console-x.h: typo fix du jour. Remove #if 0'ed code.
4251 2001-01-19 Martin Buchholz <martin@xemacs.org>
4253 De-kludgify FIXED_TYPE free list frobbing.
4254 Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4255 * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4256 * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4257 * alloc.c (Lisp_Free): New pseudo lisp object definition.
4258 * alloc.c (LRECORD_FREE_P): New.
4259 * alloc.c (MARK_LRECORD_AS_FREE): New.
4260 * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4261 * alloc.c (STRUCT_FREE_P): Deleted.
4262 * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4263 * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4264 * alloc.c (STRING_CHARS_FREE_P): New.
4265 * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4266 * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4267 * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4268 * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4269 * alloc.c (resize_string): Use new definitions.
4270 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4271 * alloc.c (verify_string_chars_integrity): Use new definitions.
4272 * alloc.c (compact_string_chars): Use new definitions.
4273 * alloc.c: Update monster comments.
4274 * lrecord.h (lrecord_type): Add some new lrecord types for
4277 2001-01-18 Martin Buchholz <martin@xemacs.org>
4279 Improve alignment hackery.
4280 * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4281 (max_align_t): Moved from opaque.h - general purpose.
4282 (ALIGN_PTR): Use size_t, not long.
4283 * opaque.h (max_align_t): Move to lisp.h.
4285 2001-01-18 Norbert Koch <nk@LF.net>
4287 * gui.h: Fix and add prototypes to fix build problems.
4289 2001-01-18 Martin Buchholz <martin@xemacs.org>
4291 temacs is going away, so `dump-temacs' is now a bad name.
4292 * .dbxrc (dump-temacs): Rename to `dmp'.
4293 * .gdbinit (dump-temacs): Rename to `dmp'.
4295 2001-01-17 Andy Piper <andy@xemacs.org>
4297 * glyphs.c (print_image_instance): comment to make martin happy.
4299 * glyphs-x.c (x_redisplay_widget): update faces after a frame
4302 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4304 (mswindows_tab_control_redisplay): warning suppression.
4306 * glyphs-widget.c (widget_update): re-write to cope with updated
4308 (widget_instantiate): use new gui_item functions.
4309 (tab_control_update): deleted.
4310 (progress_gauge_update): deleted.
4311 (image_instantiator_progress_guage): take out update reference.
4312 (image_instantiator_tree_view): ditto.
4313 (image_instantiator_tab_control): ditto.
4315 * gui.c (widget_gui_parse_item_keywords): new function. Do things
4317 (gui_item_add_keyval_pair): re-write to cope with descriptors and
4318 return whether anything was changed.
4319 (update_gui_item_keywords): as it sounds.
4321 * gui.h: declare widget_gui_parse_item_keywords.
4323 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4324 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4326 2001-01-17 Martin Buchholz <martin@xemacs.org>
4328 * XEmacs 21.2.41 "Polyhymnia" is released.
4330 2001-01-16 Didier Verna <didier@xemacs.org>
4332 * glyphs.c (image_instantiate): don't use fallbacks when
4333 instantiating a face's background pixmap by inheritance.
4335 2001-01-14 Mike Sperber <mike@xemacs.org>
4337 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4338 Conditionalize accordingly.
4340 2001-01-16 Martin Buchholz <martin@xemacs.org>
4342 * dumper.c (pdump_file_get): Fix a compiler warning.
4344 2001-01-15 Martin Buchholz <martin@xemacs.org>
4346 Make Purify happy when pdumping.
4347 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4348 iniitalizing all bits of new lisp object memory.
4349 * symbols.c (Fmake_local_variable): Likewise.
4350 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4351 * symbols.c (Fdefvaralias): Likewise.
4352 * mule-charset.c (vars_of_mule_charset): Likewise.
4354 2001-01-15 Martin Buchholz <martin@xemacs.org>
4355 Add the `-nd' flag when running pre-dump operations under the debugger.
4356 * .dbxrc (run-temacs): Add `-nd'.
4357 * .dbxrc (update-elc): Likewise.
4358 * .dbxrc (dump-temacs): Likewise.
4359 * .gdbinit (run-temacs): Likewise.
4360 * .gdbinit (check-temacs): Likewise.
4361 * .gdbinit (update-elc): Likewise.
4362 * .gdbinit (dump-temacs): Likewise.
4364 2001-01-14 Martin Buchholz <martin@xemacs.org>
4366 Allow building 64-bit executables on AIX with GNU malloc, e.g.
4367 export OBJECT_MODE=64
4368 configure --pdump --use-union-type=no
4369 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4370 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4372 * miscplay.c (sndcnv8U_2mono):
4373 Avoid two uses of `++' in the same expression.
4374 Suppresses a GCC warning.
4376 2001-01-13 Martin Buchholz <martin@xemacs.org>
4378 Make sure future compilers don't miscompile alloc.c.
4380 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4381 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4383 2001-01-12 Martin Buchholz <martin@xemacs.org>
4385 * dumper.c: A little post-pdump-rename comment fixup.
4387 2001-01-09 Jerry James <james@eecs.ku.edu>
4389 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4391 2001-01-13 Martin Buchholz <martin@xemacs.org>
4393 * *.[ch]: Globally rename symbols using the following `pdump-rename'
4397 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4400 replace_symbol pdump_wire_lists pdump_weak_object_chains
4401 replace_symbol pdump_wire_list dump_add_weak_object_chain
4403 replace_symbol pdump_wires pdump_root_objects
4404 replace_symbol pdump_wire dump_add_root_object
4406 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4407 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4409 replace_symbol dumpstructinfos pdump_root_struct_ptrs
4410 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4411 replace_symbol dumpstructinfo pdump_root_struct_ptr
4412 replace_symbol dumpstruct dump_add_root_struct_ptr
4414 replace_symbol dumpopaque dump_add_opaque
4415 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4416 replace_symbol dumpopaqueinfos pdump_opaques
4417 replace_symbol dumpopaqueinfo pdump_opaque
4419 replace_symbol nb_structdump nb_root_struct_ptrs
4420 replace_symbol nb_opaquedump nb_opaques
4422 replace_symbol align_table pdump_align_table
4423 replace_symbol dump_header pdump_header
4425 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4426 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4429 2001-01-12 Martin Buchholz <martin@xemacs.org>
4431 * s/aix4.h: Keep the C for AIX compiler from overaggressively
4432 optimizing bytecount_to_charcount().
4434 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4437 (HAVE_DLFCN_H): Removed.
4438 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4440 2001-01-06 Martin Buchholz <martin@xemacs.org>
4442 Portable dumper maintainability improvements.
4443 * alloc.c (staticpro):
4444 * alloc.c (staticpro_nodump):
4445 * alloc.c (garbage_collect_1):
4446 * alloc.c (reinit_alloc_once_early):
4447 * alloc.c (init_alloc_once_early):
4448 * alloc.c: Move dumper functions to alloc.c.
4449 * dumper.c (pdump_backtrace):
4450 * dumper.c (pdump_dump_structs):
4451 * dumper.c (pdump_dump_opaques):
4452 * dumper.c (pdump_dump_rtables):
4453 * dumper.c (pdump_dump_wired):
4455 * dumper.c (pdump_load_check):
4456 * dumper.c (pdump_load_finish):
4457 * dumper.c (pdump_file_unmap):
4458 * dumper.c (pdump_file_get):
4459 * dumper.c (pdump_resource_free):
4460 * dumper.c (pdump_resource_get):
4461 * dumper.c (pdump_file_free):
4462 * dumper.c (pdump_file_try):
4463 * dumper.c (pdump_load):
4464 Remove fixed size limits on staticpro(), staticpro_nodump(),
4465 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4466 Remove custom code for dumping lrecord_implementations_table - use
4468 Remove (most of the) custom code for dumping staticpros - dump it
4469 like any other dynarr.
4471 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
4472 * dumper.c: Moved functions from alloc.c.
4473 * alloc.c (dumpstruct): Moved to dumper.c.
4474 * alloc.c (dumpopaque): Likewise.
4475 * alloc.c (pdump_wire): Likewise.
4476 * alloc.c (pdump_wire_list): Likewise.
4478 * lisp.h (Dynarr_sizeof): New.
4479 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
4480 * lisp.h (Dynarr_end): New. Very slightly C++oid.
4481 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
4483 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4484 * lisp.h (dumpopaque): ditto.
4485 * lisp.h (pdump_wire): ditto.
4486 * lisp.h (pdump_wire_list): ditto.
4488 2001-01-09 Martin Buchholz <martin@xemacs.org>
4490 * make-src-depend (PrintPatternDeps):
4491 Use `sort' to make output independent of perl version.
4493 2001-01-08 Martin Buchholz <martin@xemacs.org>
4496 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4497 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4499 2001-01-03 Didier Verna <didier@xemacs.org>
4501 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4502 that `focus_frame' is alive before thinking of calling
4503 `redisplay_redraw_cursor' on it.
4505 2001-01-08 Martin Buchholz <martin@xemacs.org>
4507 * XEmacs 21.2.40 is released.
4509 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4511 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4513 2001-01-06 Martin Buchholz <martin@xemacs.org>
4515 * alloc.c (dbg_valmask): Make const.
4516 * alloc.c (dbg_typemask): Make const.
4517 * alloc.c (dbg_USE_UNION_TYPE): Make const.
4518 * alloc.c (dbg_valbits): Make const.
4519 * alloc.c (dbg_gctypebits): Make const.
4521 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
4523 * redisplay-x.c (x_bevel_area):
4524 redisplay.h (struct rune):
4525 Typo fixes in comments.
4527 2001-01-05 Andy Piper <andy@xemacs.org>
4529 * glyphs-x.c (x_redisplay_widget): use size changed for offset
4532 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4534 2001-01-05 Martin Buchholz <martin@xemacs.org>
4536 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4538 * mule-ccl.c (stack_idx_of_map_multiple):
4539 Non const global data must not be initialized!
4540 Found by MIYASHITA Hisashi.
4542 2001-01-02 Andy Piper <andy@xemacs.org>
4544 * frame.c (change_frame_size): make sure frame size is always
4547 * glyphs.c (image_instance_layout): minor code reuse.
4549 * window.c (Fcurrent_window_configuration): revert previous
4552 2001-01-02 Martin Buchholz <martin@xemacs.org>
4555 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4557 2000-12-31 Andy Piper <andy@xemacs.org>
4559 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4560 when widget gets unmapped.
4562 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4563 function. Make sure widgets losing focus don't just drop it.
4564 (handle_focus_event_1): record the widget with focus.
4566 2000-12-31 Andy Piper <andy@xemacs.org>
4568 * window.c (allocate_window): use
4569 make_image_instance_cache_hash_table.
4570 (make_dummy_parent): ditto.
4571 (Fset_window_configuration): ditto.
4573 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
4575 * glyphs.c (process_image_string_instantiator): use
4577 (get_image_instantiator_governing_domain): ditto.
4578 (normalize_image_instantiator): ditto.
4579 (instantiate_image_instantiator): ditto.
4580 (make_image_instance_1): ditto.
4581 (image_instantiate): ditto. Key on glyph *and* instantiator type.
4582 (instantiator_eq_equal): new function for use with instance hash
4584 (instantiator_eq_hash): ditto.
4585 (make_image_instance_cache_hash_table): create a suitable hash
4586 table for storing image instances.
4588 * elhash.h (hash_table_weakness): new internal weakness type
4589 HASH_TABLE_KEY_CAR_VALUE_WEAK.
4590 declare new functions.
4592 * elhash.c (finish_marking_weak_hash_tables): introduce yet
4593 another weakness type for glyphs.
4594 (make_standard_lisp_hash_table): new function split out from
4595 make_general_lisp_hash_table.
4596 (make_lisp_hash_table): call make_standard_lisp_hash_table.
4597 (hash_table_instantiate): ditto.
4598 (Fmake_hash_table): ditto.
4600 2000-12-31 Martin Buchholz <martin@xemacs.org>
4602 * XEmacs 21.2.39 is released.
4604 2000-12-29 Andy Piper <andy@xemacs.org>
4606 * menubar.c (menubar_visible_p_changed): signal the frame changed.
4608 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4609 the frame has changed so that we pick up geometry changes such as
4612 2000-12-28 Andy Piper <andy@xemacs.org>
4614 * lastfile.c (my_ebss): make a char array so we can pad the
4615 bss. Fixes cygwin unexec.
4617 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4619 2000-12-26 Andy Piper <andy@xemacs.org>
4621 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4622 comments and try and be more precise about a non-/SIGIO world.
4623 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4626 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4627 we don't normalize to zero width or height.
4629 2000-12-24 Andy Piper <andy@xemacs.org>
4631 * Makefile.in.in (ldflags): add -mwindows when appropriate.
4633 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
4635 * s/sco5.h: SCO 5 has pty support.
4637 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
4639 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4640 input-method-xlib.c contains whole contents of input-method-xfs.c,
4641 so we can use input-method-xlib.c's code for USE_XFONTSET
4643 * input-method-xfs.c: removed.
4645 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
4647 * file-coding.h (enum coding_category_type): reorder enumerators to
4648 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
4649 (now one greater than largest real coding_category_type enumerator).
4650 * file-coding.c (coding_category_symbol, coding_category_by_priority,
4651 coding_category_system, fcd_descriptihon_1, decode_coding_category,
4652 Fcoding_category_list, Fset_coding_priority_list,
4653 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4654 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4656 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4658 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4659 * redisplay-output.c (redisplay_output_window): Clear top of window
4660 when face is changed.
4661 * redisplay-x.c (x_redraw_exposed_window): Call
4662 redisplay_clear_top_of_window.
4663 * redisplay.h: Publish redisplay_clear_top_of_window.
4665 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4667 * buffer.c (Fkill_buffer): Map over all devices.
4668 * window.c (window_loop): Remove UNSHOW_BUFFER code.
4669 (list_windows): New function.
4670 (list_all_windows): Ditto.
4671 (Freplace_buffer_in_windows): Use them.
4673 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4675 * database.c (berkdb_subtype): Recognize new subtype `queue'.
4676 (Fopen_database): Use `db_create' instead of `db_open'.
4677 (syms_of_database): Initialize Qqueue.
4679 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
4681 * buffer.c (common_init_complex_vars_of_buffer): Initialize
4682 buffer_local_face_property.
4683 * buffer.h (struct buffer): New member buffer_local_face_property.
4684 * window.c (Fset_window_buffer): Mark window's face as changed
4685 when buffer has buffer local face.
4686 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4687 * objects.c (color_after_change): Set buffer_local_face_property
4688 when locale of face specifier is buffer.
4689 * objects.c (font_after_change): Ditto.
4690 * objects.c (face_boolean_after_change): Ditto.
4691 * glyphs.c (image_after_change): Ditto.
4693 2000-12-09 Dan Holmsand <dan@eyebee.com>
4695 * nt.c (mswindows_fstat): Report file permissions, volume serial
4696 number, etc. Code adapted from FSF Emacs 20.7.
4698 2000-12-09 Dan Holmsand <dan@eyebee.com>
4700 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4701 of stat when we don't have symbolic links, to make sure
4702 mswindows_stat is called on mswindows.
4704 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
4706 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4708 2000-12-12 Martin Buchholz <martin@xemacs.org>
4710 * doprnt.c (emacs_doprnt_1): More printing fixes.
4711 Make printing of numbers compatible with libc and FSF Emacs.
4712 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4713 Use the system printf to do most of the hard work of formatting,
4714 instead of doprnt_1().
4715 Calculate memory to allocate for format string.
4716 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4717 (doprnt_1): Cleaner code and documentation.
4719 2000-12-01 Jerry James <james@eecs.ukans.edu>
4721 * Makefile.in.in: Use the loop variable to install headers.
4723 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4725 * window.c (Fsplit_window): Don't invalidate face cache.
4727 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4729 * minibuf.c (Fall_completions): Undo the previous change
4730 which removed checking elements start with space.
4732 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
4734 * mule-canna.c: Didier suppression.
4736 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
4738 * mule-canna.c: rename static unsigned char buf[] to key_buffer
4739 (warning suppression). Add English comment translations.
4741 2000-12-05 Martin Buchholz <martin@xemacs.org>
4743 * unexelfsgi.c (unexec): Better test for mmap failure.
4745 2000-12-05 Martin Buchholz <martin@xemacs.org>
4747 * XEmacs 21.2.38 is released.
4749 2000-12-05 Martin Buchholz <martin@xemacs.org>
4751 * redisplay.c (bar-cursor): Make a user variable.
4753 * symsinit.h: Add init_postgresql_from_environment.
4755 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4757 * regex.c: Convert to clean C.
4759 2000-12-05 Dan Holmsand <dan@eyebee.com>
4762 Don't #include sysfile.h. Revert to duplicating PATH_MAX
4764 (sys_readlink): renamed to system_readlink to avoid conflict with
4765 the other sys_readlink.
4767 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
4769 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4771 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
4773 * postgresql.c (init_postgresql_from_environment): new function.
4774 (vars_of_postgresql): Move code initializing Lisp variables out and
4775 into init_postgresql_from_environment.
4776 emacs.c (main_1): Call init_postgresql_from_environment if and only
4777 if running a dumped XEmacs.
4779 2000-08-31 Dan Holmsand <dan@eyebee.com>
4781 * buffer.c: Make find-file-compare-truenames default to true on
4784 * realpath.c (win32_abs_start):
4786 (win32_readlink): New functions.
4787 (xrealpath): Return really real filenames on windows.
4789 * fileio.c (Ffile_truename): Make file-truename work on windows.
4791 2000-11-29 Didier Verna <didier@xemacs.org>
4793 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4794 * faces.c (update_face_cachel_data): use it.
4795 * faces.c (add_face_cachel): use it. Complete background pixmap
4796 frobbing in face cache if `update_face_cachel_data' has not done so.
4798 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
4800 * search.c (string_match_1): Don't set last_thing_searched
4803 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
4805 * buffer.c: Include casetab.h
4806 (common_init_complex_vars_of_buffer): Use new case-table object.
4807 * buffer.h: Include casetab.h
4808 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4809 (DOWNCASE_TABLE_OF): Ditto.
4810 * bufslots.h: Remove char-tables and add case-table.
4811 * casetab.c: Include casetab.h
4812 (CASE_TABLE_P): Removed.
4813 (mark_case_table): New function.
4814 (allocate_case_table): New function.
4815 (Fcase_table_p): Use new case-table.
4816 (case_table_char): New function.
4817 (Fget_case_table): Ditto.
4818 (Fput_case_table): Ditto.
4819 (Fput_case_table_pair): Ditto.
4820 (Fcopy_case_table): Ditto.
4821 (Fcurrent_case_table): Return case-table.
4822 (Fstandard_case_table): Return case-table.
4823 (Fset_case_table): Fix doc-string.
4824 (set_case_table): Use case-table
4825 (syms_of_casetab): DEFSUBR new functions.
4826 (complex_vars_of_casetab): Set up standard case-table.
4827 * casetab.h: New file.
4828 * editfns.c: Include casetab.h
4829 (Fcompare_buffer_substrings): Use case-table.
4830 * inline.c: Include casetab.h
4831 * lisp.h: Remove bogus extern.
4832 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4833 * search.c: Include casetab.h
4834 (TRANSLATE_ASCII): Removed.
4835 (TRANSLATE): Unconditionally translate character.
4836 (looking_at_1): Use case-table.
4837 (string_match_1): Ditto.
4838 (fast_string_match): Ditto.
4839 (search_command): Ditto.
4840 (search_buffer): Separate boyer_moore. Check whether
4841 boyer_moore is possible.
4842 (simple_search): New function.
4843 (boyer_moore): Separated from search_buffer. Translate char.
4845 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
4847 * regex.c (RE_TR_ASCII): Removed.
4848 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4849 (PATFETCH): Call PATFETCH_RAW.
4850 (PATFETCH_RAW): Fetch Emchar.
4851 (PATUNFETCH): Decrement charptr.
4852 (GET_BUFFER_SPACE): Rename b to buf_end.
4854 (BUF_PUSH_2): Ditto.
4855 (BUF_PUSH_3): Ditto.
4856 (EXTEND_BUFFER): Ditto.
4857 (SET_LIST_BIT): Ditto.
4858 (regex_compile): Ditto. Translate non ASCII char.
4859 (compile_range): Ditto.
4860 (re_search_2): Ditto.
4861 (re_match_2_internal): Compare Emchar.
4862 (bcmp_translate): Ditto.
4864 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
4866 * lisp.h (basic char/int typedefs): comment improvement.
4868 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
4870 * emacs.c (main_1): unconditional pdump unstomping; don't save and
4871 unstomp inhibit_site_lisp. Improve comments.
4873 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
4875 * mule-charset.c (Fcharset_property): improve type checking, comments.
4877 2000-11-28 Andy Piper <andy@xemacs.org>
4879 * redisplay-output.c (redisplay_output_subwindow): make sure we do
4880 clipped display for windows in the gutter also.
4881 (redisplay_display_boxes_in_window_p): change semantics of return
4882 codes to be more intuitive.
4884 * gutter.h: declare display_boxes_in_gutter_p.
4886 * gutter.c (display_boxes_in_gutter_p): new function for
4889 2000-11-22 Andy Piper <andy@xemacs.org>
4891 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
4894 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
4896 * callproc.c (Fold_call_process_internal):
4897 * gpm.c (Freceive_gpm_event):
4898 (tty_get_foreign_selection): Might be just warning supression.
4899 * fileio.c (Fwrite_region_internal):
4900 (Fset_visited_file_modtime):
4901 * keymap.c (event_matches_key_specifier_p):
4902 Initialize GCPROed variable.
4904 * menubar-x.c (command_builder_find_menu_accelerator):
4905 Initialize before use.
4907 2000-11-23 Andy Piper <andy@xemacs.org>
4909 * unexcw.c (unexec): make the resulting executable executable.
4911 2000-11-21 Martin Buchholz <martin@xemacs.org>
4913 * doc.c (get_doc_string):
4914 Use size_t, not int, for result of XSTRING_LENGTH.
4916 * cmds.c (Fdelete_char):
4917 * cmds.c (Fpoint_at_eol):
4918 * cmds.c (Fself_insert_command):
4919 Use EMACS_INT, not int, for result of XINT.
4920 Someday, someone will want to insert more than 2**31 identical characters.
4922 * cmds.c (Fdelete_char):
4923 * cmds.c (Fdelete_backward_char):
4924 * syntax.c (Fforward_word):
4925 * syntax.c (Fforward_comment):
4926 Make COUNT argument optional, for consistency with forward-char et al.
4928 2000-11-22 Martin Buchholz <martin@xemacs.org>
4931 * print.c (long_to_string):
4932 Return a useful value: the pointer at end of data written.
4935 Use `static const char * const' for constant strings.
4936 (union printf_arg): Delete `i', `ui' members.
4939 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
4940 Do all printf-ing via the `l' specifier.
4941 Use EMACS_INT instead of int.
4944 2000-11-20 Didier Verna <didier@xemacs.org>
4946 * faces.c (update_face_cachel_data): don't frob the background
4947 pixmap when the window is being created. The face is needed but
4950 2000-11-20 Andy Piper <andy@xemacs.org>
4952 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
4953 messing with a debug environment.
4955 2000-11-20 Martin Buchholz <martin@xemacs.org>
4957 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
4959 2000-11-20 Martin Buchholz <martin@xemacs.org>
4961 * casetab.c (Fcase_table_p): Fix compile error and crash.
4963 2000-11-18 Philip Aston <philipa@mail.com>
4965 * s/cygwin32.h: Cygwin has SVR4-like pty support.
4967 2000-11-18 Martin Buchholz <martin@xemacs.org>
4969 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
4970 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
4972 2000-11-17 Martin Buchholz <martin@xemacs.org>
4974 * config.h.in: Define HAVE_ELF_H if elf.h exists.
4975 * unexelf.c: Use HAVE_ELF_H.
4976 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
4977 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
4978 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
4979 Greg Harrington <greg_harrington@hotmail.com> provided a machine
4981 So this is an unexelfsgi.c from a different line of development.
4983 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
4985 * regex.c (RE_TR_ASCII): New function.
4986 (RE_TRANSLATE): Call it.
4988 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
4990 * buffer.h (TRT_TABLE_OF): Remove assert.
4991 (IN_TRT_TABLE_DOMAIN): Removed.
4993 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
4995 * free-hook.c (log_gcpro):
4996 (show_gcprohist): Add support for GCPRO5.
4998 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
5000 * emacs.c (main_1): Improve -sd error message when --pdump=no.
5002 2000-11-16 Olivier Galibert <galibert@xemacs.org>
5004 * symeval.h: Declare flush_all_buffer_local_cache.
5006 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5007 (flush_buffer_local_cache): Added.
5008 (flush_all_buffer_local_cache): Added.
5010 * lrecord.h: Remove unused XD_LO_RESET_NIL.
5012 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5013 (pdump_dump_data): Ditto.
5014 (pdump_reloc_one): Ditto.
5015 (pdump): Remove unused pdump_qnil. Flush buffer local caches
5019 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
5021 * buffer.c: Remove if 0'ed entry.
5022 * buffer.h: Rewrite TRT to use char-table.
5023 * bufslots.h: Remove mirror tables.
5024 * casetab.c: Remove mirror tables.
5025 (CASE_TABLE_P): New macro.
5026 (Fcase_table_p): Element of a case table is string or char-table.
5027 (make_mirror_trt_table): Removed.
5028 (set_case_table): Setup char-table from strings for backward
5030 * dired.c (Fdirectory_files):
5031 * dired-msw.c: (mswindows_get_files):
5032 * lisp.h: Change prototype of re_pattern_buffer.
5033 * regex.c: (RE_TRANSLATE): New macro.
5034 (TRANSLATE_P): Ditto.
5035 Change translate to type RE_TRANSLATE_TYPE.
5036 * regex.h: Define RE_TRANSLATE_TYPE
5037 * search.c (TRANSLATE): New macro.
5038 (TRANSLATE_ASCII): New macro.
5039 Translate table is changed to Lisp_Object.
5040 (signal_failure): Inhibit return.
5042 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
5049 Do UNGCPRO before return.
5051 2000-11-14 Martin Buchholz <martin@xemacs.org>
5053 * XEmacs 21.2.37 is released.
5055 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
5057 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5058 Add comments about discarded return value.
5060 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
5063 * event-stream.c: Fix comments. Remove some #if 0'ed part.
5065 2000-10-27 Andy Piper <andy@xemacs.org>
5067 * gutter.c (Fset_default_gutter_position): default left and right
5069 (calculate_gutter_size): calculate resonable heuristic for left
5070 and right gutter sizes.
5071 (specifier_vars_of_gutter): change left and right gutter sizes to
5073 (calculate_gutter_size_from_display_lines): new function.
5074 (output_gutter): check for resizing on left and right gutters.
5075 (clear_gutter): don't special case top and left gutters.
5076 (specifier_vars_of_gutter): use new signature for
5077 set_specifier_caching.
5079 * glyphs-x.c (x_redisplay_widget): spelling fix.
5080 * glyphs.c (specifier_vars_of_glyphs):
5081 * menubar.c (specifier_vars_of_menubar):
5082 * redisplay.c (specifier_vars_of_redisplay):
5083 * toolbar.c (specifier_vars_of_toolbar):
5084 * window.c (specifier_vars_of_window):
5085 * scrollbar.c (specifier_vars_of_scrollbar):
5086 (complex_vars_of_scrollbar): use new signature for
5087 set_specifier_caching.
5089 * specifier.c (set_specifier_caching): include recompute flag.
5090 (recompute_one_cached_specifier_in_window): always recompute if
5092 (recompute_one_cached_specifier_in_frame): ditto.
5094 * specifier.h (struct specifier_caching): add recompute flag.
5096 2000-10-24 Andy Piper <andy@xemacs.org>
5098 * unexcw.c (copy_executable_and_dump_data_section): add new
5099 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5102 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5104 * console-x.h (x_device): New member modifier_release_time.
5105 * event-Xt.c (x_handle_sticky_modifiers):
5106 Bound interval modifier keys are sticky.
5107 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5108 * events.h: extern it.
5110 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5112 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5114 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5116 * event-stream.c (execute_command_event): Preserve current_events
5117 and the like when event is misc-user-event.
5118 Inhibit quit during the call to maybe_echo_keys.
5120 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
5122 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5123 symlink when buffer is killed.
5124 (inhibit_clash_detection): New variable.
5126 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5128 * console.c (Fset_input_method): Trigger redisplay on tty.
5130 2000-11-07 Martin Buchholz <martin@xemacs.org>
5132 * process.c (Fprocess_status): Revert to previous behavior:
5133 (process-status "nosuchprocess") ==> nil
5135 2000-11-06 Martin Buchholz <martin@xemacs.org>
5137 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5138 Work around another GCC 2.95.2 optimizer bug.
5140 2000-11-02 Martin Buchholz <martin@xemacs.org>
5142 * process.c (Fget_process): Use LIST_LOOP_2.
5143 (kill_buffer_processes): Use LIST_LOOP_2.
5145 * minibuf.c (Fall_completions):
5146 Delete old non-functional code for FSF fourth argument.
5148 * frame.c (frame_matches_frame_spec):
5149 Renamed from `frame_matches_frametype'. Update all callers.
5150 (device_matches_device_spec):
5151 Renamed from 'device_matches_console_spec'. Update all callers.
5153 * doc.c (Fsubstitute_command_keys):
5154 Remove buffer overflow crash. Small code cleanups.
5156 * casetab.c (check_case_table): Simpler code.
5158 * window.c (Freplace_buffer_in_windows):
5159 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5160 (and similar implementation) as Fdelete_windows_on.
5163 * alloc.c (Fmake_list):
5164 * alloc.c (make_vector):
5165 * alloc.c (Fmake_vector):
5166 * alloc.c (make_bit_vector):
5167 * alloc.c (Fmake_bit_vector):
5168 * alloc.c (Fbit_vector):
5169 * alloc.c (Fmake_string):
5170 * alloc.c (Fpurecopy):
5171 * alloc.c (Fmemory_limit):
5173 * buffer.c (Fget_buffer):
5174 * buffer.c (Fkill_buffer):
5175 * buffer.c (complex_vars_of_buffer):
5176 * bytecode.c (Fcompiled_function_stack_depth):
5177 * callint.c (Fprefix_numeric_value):
5179 * event-stream.c (Fread_key_sequence):
5181 * casetab.c (Fcase_table_p):
5182 * casetab.c (check_case_table):
5183 * casetab.c (Fset_case_table):
5184 * casetab.c (Fset_standard_case_table):
5186 * chartab.c (Fchar_table_type):
5187 * chartab.c (Freset_char_table):
5188 * chartab.c (Fget_char_table):
5189 * chartab.c (Fget_range_char_table):
5190 * chartab.c (Fput_char_table):
5191 * chartab.c (Fmap_char_table):
5192 * chartab.c (Fcategory_table_p):
5193 * chartab.c (Fcheck_category_at):
5194 * chartab.c (Fchar_in_category_p):
5195 * chartab.c (Fcategory_table):
5196 * chartab.c (Fcopy_category_table):
5197 * chartab.c (Fset_category_table):
5198 * chartab.c (Fcategory_designator_p):
5199 * chartab.c (Fcategory_table_value_p):
5200 * cmds.c (Fdelete_char):
5201 * cmds.c (Fdelete_backward_char):
5202 * cmds.c (Fself_insert_command):
5203 * cmds.c (Fself_insert_internal):
5204 * console.c (Fvalid_console_type_p):
5205 * console.c (Fcdfw_console):
5206 * console.c (Fconsole_type):
5207 * console.c (Fconsole_name):
5208 * console.c (Fconsole_device_list):
5209 * console.c (Fconsole_on_window_system_p):
5213 * data.c (Fsubr_interactive):
5214 * data.c (Fchar_to_int):
5215 * data.c (Fint_to_char):
5218 * data.c (Fnumber_to_string):
5219 * data.c (Fstring_to_number):
5221 * database.c (mark_database):
5222 * database.c (finalize_database):
5223 * database.c (Fdatabase_live_p):
5224 * database.c (Fdatabasep):
5225 * device-x.c (Fx_get_resource):
5226 * device.c (Fdfw_device):
5228 * dired.c (Ffile_name_completion):
5229 * dired.c (Ffile_name_all_completions):
5230 * dired.c (Fuser_name_completion):
5231 * dired.c (Fuser_name_completion_1):
5232 * dired.c (Fuser_name_all_completions):
5233 * doc.c (Fdocumentation):
5234 * doc.c (Fdocumentation_property):
5235 * doc.c (Fsubstitute_command_keys):
5237 * editfns.c (Fchar_to_string):
5238 * editfns.c (Fstring_to_char):
5239 * editfns.c (Ftemp_directory):
5240 * editfns.c (Finsert_char):
5241 * editfns.c (Fbuffer_substring_no_properties):
5242 * editfns.c (Fnarrow_to_region):
5243 * editfns.c (Fchar_equal):
5244 * editfns.c (Fchar_Equal):
5245 * editfns.c (Ftranspose_regions):
5246 * emacs.c (Fdump_emacs):
5248 * eval.c (Fcommand_execute):
5249 * eval.c (Fautoload):
5250 * eval.c (Fbacktrace):
5251 * eval.c (Fbacktrace_frame):
5253 * events.c (Fcopy_event):
5254 * events.c (Fcharacter_to_event):
5255 * events.c (Fevent_button):
5256 * events.c (Fevent_process):
5258 * extents.c (Fnext_extent_change):
5259 * extents.c (Fextent_property):
5261 * faces.c (Fmake_face):
5263 * file-coding.c (Fencode_shift_jis_char):
5264 * file-coding.c (Fencode_big5_char):
5265 * fileio.c (Ffile_name_directory):
5266 * fileio.c (Ffile_name_nondirectory):
5267 * fileio.c (Ffile_name_as_directory):
5268 * fileio.c (Fdirectory_file_name):
5269 * fileio.c (Ffile_truename):
5270 * fileio.c (Fsubstitute_in_file_name):
5271 * fileio.c (Ffile_modes):
5272 * fileio.c (Fset_file_modes):
5273 * fileio.c (Fset_default_file_modes):
5274 * fileio.c (Fverify_visited_file_modtime):
5275 * floatfns.c (Facos):
5276 * floatfns.c (Fasin):
5277 * floatfns.c (Fatan):
5278 * floatfns.c (Fcos):
5279 * floatfns.c (Fsin):
5280 * floatfns.c (Ftan):
5281 * floatfns.c (Fbessel_j0):
5282 * floatfns.c (Fbessel_j1):
5283 * floatfns.c (Fbessel_jn):
5284 * floatfns.c (Fbessel_y0):
5285 * floatfns.c (Fbessel_y1):
5286 * floatfns.c (Fbessel_yn):
5287 * floatfns.c (Ferf):
5288 * floatfns.c (Ferfc):
5289 * floatfns.c (Flog_gamma):
5290 * floatfns.c (Fexp):
5291 * floatfns.c (Fexpt):
5292 * floatfns.c (Flog):
5293 * floatfns.c (Flog10):
5294 * floatfns.c (Fsqrt):
5295 * floatfns.c (Fcube_root):
5296 * floatfns.c (Facosh):
5297 * floatfns.c (Fasinh):
5298 * floatfns.c (Fatanh):
5299 * floatfns.c (Fcosh):
5300 * floatfns.c (Fsinh):
5301 * floatfns.c (Ftanh):
5302 * floatfns.c (Fabs):
5303 * floatfns.c (Ffloat):
5304 * floatfns.c (Flogb):
5305 * floatfns.c (Fceiling):
5306 * floatfns.c (Ffloor):
5307 * floatfns.c (Fround):
5308 * floatfns.c (Ftruncate):
5309 * floatfns.c (Ffceiling):
5310 * floatfns.c (Fffloor):
5311 * floatfns.c (Ffround):
5312 * floatfns.c (Fftruncate):
5313 * fns.c (Fstring_equal):
5314 * fns.c (Fstring_lessp):
5319 * fns.c (Fsubstring):
5321 * fns.c (Fold_assoc):
5322 * fns.c (assoc_no_quit):
5324 * fns.c (Fold_assq):
5325 * fns.c (assq_no_quit):
5327 * fns.c (Fold_rassoc):
5329 * fns.c (Fold_rassq):
5330 * fns.c (rassq_no_quit):
5331 * fns.c (Fremassoc):
5332 * fns.c (remassoc_no_quit):
5334 * fns.c (remassq_no_quit):
5335 * fns.c (Fremrassoc):
5336 * fns.c (Fremrassq):
5337 * fns.c (remrassq_no_quit):
5339 * fns.c (Fplist_get):
5340 * fns.c (Fplist_put):
5341 * fns.c (Fplist_remprop):
5342 * fns.c (Fplist_member):
5343 * fns.c (Flax_plist_get):
5344 * fns.c (Flax_plist_put):
5345 * fns.c (Flax_plist_remprop):
5346 * fns.c (Flax_plist_member):
5348 * fns.c (Fold_equal):
5350 * fns.c (Fbase64_encode_region):
5351 * fns.c (Fbase64_encode_string):
5352 * fns.c (Fbase64_decode_region):
5354 * frame.c (frame_matches_frame_spec):
5355 * frame.c (device_matches_device_spec):
5356 * frame.c (next_frame):
5357 * frame.c (previous_frame):
5358 * frame.c (Fnext_frame):
5359 * frame.c (Fprevious_frame):
5360 * frame.c (Fframe_property):
5361 * frame.c (Fset_frame_height):
5362 * frame.c (Fset_frame_size):
5366 * glyphs.c (decode_error_behavior_flag):
5367 * glyphs.c (Fmake_image_instance):
5368 * indent.c (Findent_to):
5369 * intl.c (Fignore_defer_gettext):
5370 * keymap.c (Fkeymapp):
5371 * keymap.c (Flookup_key):
5373 * lread.c (Fload_internal):
5374 * lread.c (Feval_buffer):
5375 * lread.c (Feval_region):
5376 * macros.c (Fexecute_kbd_macro):
5377 * marker.c (set_marker_internal):
5378 * marker.c (Fset_marker):
5379 * marker.c (set_marker_restricted):
5380 * marker.c (Fcopy_marker):
5381 * marker.c (noseeum_copy_marker):
5383 * menubar.c (Fpopup_menu):
5385 * mule-charset.c (Fcharset_name):
5386 * mule-charset.c (Fchar_charset):
5387 * mule-charset.c (Fchar_octet):
5388 * mule-charset.c (Fsplit_char):
5389 * mule-wnnfns.c (Fwnn_open):
5390 * mule-wnnfns.c (Fwnn_dict_comment):
5391 * mule-wnnfns.c (Fwnn_quit_henkan):
5392 * mule-wnnfns.c (Fwnn_word_toroku):
5393 * mule-wnnfns.c (Fwnn_word_sakujo):
5394 * mule-wnnfns.c (Fwnn_word_use):
5395 * mule-wnnfns.c (Fwnn_hindo_set):
5397 * objects.c (Fmake_color_instance):
5398 * objects.c (Fmake_font_instance):
5399 * print.c (Fwrite_char):
5401 * process.c (mark_process):
5402 * process.c (print_process):
5403 * process.c (get_process_from_usid):
5404 * process.c (Fprocessp):
5405 * process.c (Fprocess_live_p):
5406 * process.c (Fget_process):
5407 * process.c (Fget_buffer_process):
5408 * process.c (get_process):
5409 * process.c (Fprocess_id):
5410 * process.c (Fprocess_name):
5411 * process.c (Fprocess_command):
5412 * process.c (init_process_io_handles):
5413 * process.c (start_process_unwind):
5414 * process.c (Fstart_process_internal):
5415 * process.c (Fopen_multicast_group_internal):
5416 * process.c (Fset_process_window_size):
5417 * process.c (read_process_output):
5418 * process.c (send_process):
5419 * process.c (Fprocess_tty_name):
5420 * process.c (Fset_process_buffer):
5421 * process.c (Fprocess_buffer):
5422 * process.c (Fprocess_mark):
5423 * process.c (set_process_filter):
5424 * process.c (Fset_process_filter):
5425 * process.c (Fprocess_filter):
5426 * process.c (Fprocess_send_region):
5427 * process.c (Fprocess_send_string):
5428 * process.c (exec_sentinel):
5429 * process.c (Fset_process_sentinel):
5430 * process.c (Fprocess_sentinel):
5431 * process.c (status_notify):
5432 * process.c (Fprocess_status):
5433 * process.c (Fprocess_exit_status):
5434 * process.c (process_send_signal):
5435 * process.c (Fprocess_send_eof):
5436 * process.c (deactivate_process):
5437 * process.c (remove_process):
5438 * process.c (Fdelete_process):
5439 * process.c (kill_buffer_processes):
5440 * process.c (Fprocess_kill_without_query):
5441 * process.c (Fprocess_kill_without_query_p):
5443 * rangetab.c (Fget_range_table):
5444 * rangetab.c (Fput_range_table):
5445 * rangetab.c (Fremove_range_table):
5446 * rangetab.c (Fclear_range_table):
5448 * search.c (Fskip_chars_forward):
5449 * search.c (Fskip_chars_backward):
5450 * search.c (Fskip_syntax_forward):
5451 * search.c (Fskip_syntax_backward):
5452 * search.c (search_command):
5453 * search.c (Freplace_match):
5454 * search.c (Fregexp_quote):
5455 * select.c (Fown_selection_internal):
5456 * select.c (Fselection_owner_p):
5457 * select.c (Fselection_exists_p):
5458 * select.c (Fget_selection_internal):
5461 * symbols.c (Fintern):
5462 * symbols.c (Fintern_soft):
5463 * symbols.c (Funintern):
5464 * symbols.c (Fapropos_internal):
5465 * symbols.c (Fset_default):
5467 * syntax.c (Fsyntax_table_p):
5468 * syntax.c (Fcopy_syntax_table):
5469 * syntax.c (Fset_syntax_table):
5470 * syntax.c (Fchar_syntax):
5471 * syntax.c (syntax_match):
5472 * syntax.c (Fmatching_paren):
5473 * syntax.c (Fforward_word):
5474 * syntax.c (scan_lists):
5475 * syntax.c (Fscan_lists):
5476 * syntax.c (Fscan_sexps):
5477 * syntax.c (Fparse_partial_sexp):
5478 * toolbar.c (Fcheck_toolbar_button_syntax):
5481 * window.c (Fwindowp):
5482 * window.c (Fwindow_live_p):
5483 * window.c (Fwindow_point):
5484 * window.c (Fdelete_window):
5485 * window.c (Fnext_window):
5486 * window.c (Fprevious_window):
5487 * window.c (Fother_window):
5488 * window.c (window_loop):
5489 * window.c (Fget_lru_window):
5490 * window.c (Fsplit_window):
5491 * window.c (Fenlarge_window):
5492 * window.c (Fenlarge_window_pixels):
5493 * window.c (Fshrink_window):
5494 * window.c (Fshrink_window_pixels):
5495 * window.c (change_window_height):
5496 * window.c (Fwindow_configuration_p):
5497 * window.c (Fcurrent_window_configuration):
5499 * casefiddle.c (casify_object):
5500 * casefiddle.c (Fupcase):
5501 * casefiddle.c (Fdowncase):
5502 * casefiddle.c (Fcapitalize):
5503 * casefiddle.c (Fupcase_initials):
5504 * casefiddle.c (casify_region_internal):
5505 * casefiddle.c (casify_region):
5506 * casefiddle.c (Fupcase_region):
5507 * casefiddle.c (Fdowncase_region):
5508 * casefiddle.c (Fcapitalize_region):
5509 * casefiddle.c (Fupcase_initials_region):
5510 * casefiddle.c (Fupcase_word):
5511 * casefiddle.c (Fdowncase_word):
5512 * casefiddle.c (Fcapitalize_word):
5513 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
5514 Replace 0 with '\0' when working with bytes.
5515 Replace initial "(" with "\(" in docstrings.
5517 2000-11-01 Martin Buchholz <martin@xemacs.org>
5519 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5521 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5523 2000-10-31 Martin Buchholz <martin@xemacs.org>
5525 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
5527 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5529 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5532 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5534 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5535 (inhibit_auto_save_session): New variable.
5536 (vars_of_fileio): Declare and initialize them.
5537 * fileio.c (Fdo_auto_save): Don't create session file if
5538 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5540 2000-10-31 Martin Buchholz <martin@xemacs.org>
5542 * sgiplay.c (play_internal): C++ compilability.
5543 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5544 * callproc.c (Fold_call_process_internal):
5545 Remove unused vars `env', `first'.
5546 * scrollbar.c (update_scrollbar_instance):
5547 #### unused var `current_window'.
5548 * redisplay-tty.c: Put currently unused vars insert_mode_on,
5549 etc. within #ifdef NOT_YET.
5550 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5551 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5552 * specifier.c (specifier_instance):
5553 #### unused var `tag'.
5554 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5556 2000-10-27 Martin Buchholz <martin@xemacs.org>
5559 * fns.c (list_sort):
5560 * fns.c (Ffillarray):
5561 * fns.c (bytecode_nconc2):
5564 * fns.c (Fmapconcat):
5565 Be pedantically 64-bit correct. For the time when someone will
5566 want to have a list with length > 2**32.
5568 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5569 Work around MIPSpro compiler bug.
5571 * process-unix.c (unix_kill_child_process): Add snarky comment.
5572 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
5574 * config.h.in: Oops, _getpt ==> _getpty
5576 2000-10-26 Martin Buchholz <martin@xemacs.org>
5580 Use void*, not char*, as return type of alloca().
5582 * alloc.c (free_marker): Side effect inside assert expression!
5584 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
5586 * mule-charset.c (Fset_charset_ccl_program): To check
5587 if the given ccl program is valid, use setup_ccl_program()
5588 instead of CHECK_VECTOR().
5589 (Fmake_charset): Likewise.
5591 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
5593 * faces.c (get_extent_fragment_face_cache_index):
5594 Fix cachel.merged_faces memory leak.
5596 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
5598 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5599 Reset MSB of octets obtained by DECODE_SJIS
5600 because of the incompatibility with Emacs.
5601 (ccl_driver)<CCL_ENCODE_SJIS>:
5602 Set MSB of octets before passing them to
5603 ENCODE_SJIS because of the incompatibility
5606 2000-10-18 Daiki Ueno <ueno@unixuser.org>
5608 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5609 (DECLARE_LRECORD): Undo the last change.
5610 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5612 2000-10-17 Daiki Ueno <ueno@unixuser.org>
5614 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5615 the implementation to lrecord_implementations_table.
5617 2000-10-14 Daiki Ueno <ueno@unixuser.org>
5619 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5620 initial value of `lrecord_type_##c_name' and
5621 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5622 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5623 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5624 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5625 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5627 2000-10-17 Martin Buchholz <martin@xemacs.org>
5629 * miscplay.c (sndcnv8S_2mono):
5630 (sndcnv2monounsigned):
5631 (sndcnvULaw_2linear):
5633 Remove implementation-defined behavior.
5635 2000-10-12 Martin Buchholz <martin@xemacs.org>
5637 * input-method-xlib.c: Warning suppression.
5639 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
5641 * mule-ccl.c: Sync up with Emacs 21.0.90.
5642 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5644 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5646 (ccl_driver[WriteMultibyteChar2]): Bug fix.
5647 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5648 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5649 leading char belongs to official 2-dimensional charset.
5650 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5651 write the given character as is. Otherwise,
5652 if it is a multibyte char, convert it by
5653 non_ascii_set_charptr_emchar, then write it.
5654 (CCL_WRITE_STRING): Likewise.
5655 (ccl_get_compiled_code): New function.
5656 (setup_ccl_program): When ccl_prog is invalid,
5658 (Fregister_code_conversion_map): New function.
5659 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5661 * mule-ccl.h: Sync up with Emacs 21.0.90.
5662 (Fregister_ccl_program): export it.
5664 * redisplay-msw.c (separate_textual_runs):
5665 If ccl program is not valid, don't do ccl conversion.
5667 * redisplay-x.c (separate_textual_runs): Ditto.
5669 * file-coding.c (Fmake_coding_system):
5670 When type is ccl and value is vector, register it
5671 with a proper symbol. And checks whether the
5672 given ccl program is valid.
5673 (mule_decode): When calling ccl_driver, if src indicates
5674 NULL pointer, set an empty string instead.
5675 (mule_encode): Likewise.
5677 2000-10-11 Martin Buchholz <martin@xemacs.org>
5679 The following large batch of changes gets us back to a state of
5680 C++ compilability. Extbyte is now a char, which means that
5681 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5683 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5685 * sound.c (Fplay_sound): Type correctness.
5687 * select-x.c (hack_motif_clipboard_selection): Type correctness.
5688 (x_get_window_property): Type correctness.
5689 (receive_incremental_selection): unsigned char ==> Extbyte
5690 (selection_data_to_lisp_data): unsigned char ==> Extbyte
5691 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5692 (Fx_store_cutbuffer_internal): Type correctness.
5694 * process-unix.c (try_to_initialize_subtty): Type correctness.
5696 * objects-x.c (x_print_color_instance): Type correctness.
5697 (x_print_font_instance): Type correctness.
5698 (x_list_fonts): SExtbyte ==> Extbyte.
5699 (valid_x_font_name_p): SExtbyte ==> Extbyte.
5700 (x_find_charset_font): SExtbyte ==> Extbyte.
5701 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
5702 (truename_via_XListFonts): SExtbyte ==> Extbyte.
5703 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5706 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5707 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5708 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5709 (BYTE_C0_P): Use bit ops for char-signedness safety.
5710 (BYTE_C1_P): Use bit ops for char-signedness safety.
5711 (CHARSET_BY_LEADING_BYTE):
5712 (CHARSET_BY_ATTRIBUTES):
5713 Always use inline function.
5714 Use type_checking_assert.
5717 * mule-charset.c (non_ascii_charptr_copy_char):
5718 Modify to work with both ASCII and non-ASCII characters.
5719 Improve docs and variable names.
5720 Replace over-clever fall-through switch with a simple loop.
5721 (Lstream_get_emchar_1):
5722 Replace over-clever fall-through switch with a simple loop.
5724 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5725 Warning suppression.
5727 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5728 the return value of Lstream_getc, which could be EOF as well.
5730 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5732 * lisp.h: Make Extbyte a char, not unsigned char, so that external
5733 APIs can be used on Extbytes without casts. Risky!
5737 * input-method-xlib.c (XIM_init_device):
5738 Use Xlib.h instead of IntrinsicP.h.
5739 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5740 which will break in X11R7.
5741 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5742 to call XRegisterIMInstantiateCallback with correct types.
5744 * gui-x.c (button_item_to_widget_value): Type correctness.
5746 * glyphs.c (bitmap_to_lisp_data): Type correctness.
5748 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5749 (xbm_instantiate_1): Type correctness.
5750 (BUILD_GLYPH_INST): Type correctness.
5752 * fileio.c (Fsubstitute_in_file_name): Type correctness.
5755 (decode_coding_sjis):
5756 (decode_coding_big5):
5757 (decode_coding_ucs4):
5758 (decode_coding_utf8):
5759 (decode_coding_iso2022):
5760 (decode_coding_no_conversion):
5761 Make all decoding functions take an Extbyte * arg.
5762 (encode_coding_sjis):
5763 (encode_coding_big5):
5764 (encode_coding_ucs4):
5765 (encode_coding_utf8):
5766 (encode_coding_iso2022):
5767 (encode_coding_no_conversion):
5768 Make all encoding functions take a Bufbyte * arg.
5769 Use size_t instead of unsigned int for memory sizes.
5770 Only cast to unsigned char whenever dereferencing Extbyte *.
5772 * doc.c (unparesseuxify_doc_string): Type correctness.
5774 * console-x.c (split_up_display_spec):
5775 Rewrite without using details of internal string representation.
5776 (x_semi_canonicalize_device_connection): Type correctness.
5779 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5780 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5781 (HAVE_XFREE386): Removed.
5783 * buffer.h (DEC_CHARPTR): `const' correctness.
5784 (bufbyte_strcmp): New.
5785 (bufbyte_memcmp): New.
5787 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5789 * buffer.h (XCHAR_OR_CHAR_INT):
5790 Always use inline function.
5791 Remove redundant type checking assert() - XINT will abort quite nicely.
5793 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
5795 * search.c (Freplace_match): Set newtext to an empty string.
5797 2000-10-10 Martin Buchholz <martin@xemacs.org>
5799 * s/decosf1-3.h: Remove #include of stropts.h
5800 * s/ptx.h: Remove #include of stropts.h
5801 * s/usg5-4.h: Remove #include of stropts.h
5804 Use stropts.h, not sys/stropts.h.
5805 Use strtio.h, not sys/strtio.h.
5807 2000-10-04 Martin Buchholz <martin@xemacs.org>
5809 * XEmacs 21.2.36 is released.
5811 2000-09-21 Andy Piper <andy@xemacs.org>
5813 * glyphs-x.c (x_redisplay_widget): make sure non-structural
5814 changes still involve copying the widget tree.
5815 (update_widget_face): make sure a change is register in the widget
5816 tree. Call update_tab_widget_face appropriately.
5817 (update_tab_widget_face): ditto.
5818 (x_tab_control_redisplay): make sure non-structural changes still
5819 involve copying the widget tree.
5821 2000-08-31 Daiki Ueno <ueno@unixuser.org>
5823 * lread.c (locate_file): Check the path element is non-nil.
5825 2000-10-02 Martin Buchholz <martin@xemacs.org>
5827 * lisp.h: Warning suppression for SCO compilers.
5829 * redisplay-tty.c (reset_tty_modes): Fix crash.
5830 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5832 2000-09-27 Martin Buchholz <martin@xemacs.org>
5834 Big signal/process handling overhaul. Bugs fixed:
5835 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5836 M-x comint-kill-subjob should work for both values nil and t of
5837 process-connection-type. It was broken on most platforms.
5838 Testing on Irix and Cygwin still needed. Other plaforms tested.
5839 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
5840 * process-unix.c: Signal/Process handling overhaul.
5841 (pty_name): make 64 bytes, as `expect' does, for paranoia.
5842 (allocate_pty): Use all available modern methods of allocating
5843 ptys, falling back to old style BSD allocation as a last resort.
5844 Use allegedly more secure Unix98 pty allocation by default.
5845 (allocate_pty_the_old_fashioned_way): New. the last resort.
5846 (unix_create_process): Push ptem, ldterm, ttcompat where
5847 available. Autoconfiscate.
5848 (try_to_initialize_subtty): New.
5849 (unix_kill_child_process): Proper signal handling for ptys on most
5850 platforms, using special knowledge of AIX, BSD, etc...
5851 (unix_create_process): Always disconnect_controlling_terminal() for
5852 subprocesses, whether using ptys or not.
5853 * process.h: Remove old getpt-dependent PTY code.
5854 * process.c (Fprocess_send_signal): New, obvious generic function.
5855 (decode_signal): New.
5856 (Finterrupt_process):
5860 (Fcontinue_process):
5861 (Fsignal_process): Use decode_signal.
5862 (process_send_signal):
5863 Many docstring corrections.
5864 Allow any signal to be sent to a process object.
5865 * config.h.in: Add symbols for big signal/process overhaul.
5866 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5867 * sysproc.h: Include process-related headers, where available:
5868 sys/stropts.h sys/strtio.h pty.h libutil.h
5876 Remove old S&M pty stuff.
5877 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
5878 * systty.h: Simplify cpp hackery, improve comments.
5879 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
5881 * editfns.c (Fformat_time_string):
5882 Be a little more paranoid with the return value of ctime.
5884 * fileio.c (check_executable):
5886 Use symbolic constants X_OK, W_OK.
5888 * console-x.c (split_up_display_spec): Fix a warning.
5890 2000-10-02 Martin Buchholz <martin@xemacs.org>
5892 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
5893 * ntproc.c (sys_spawnve): make_string ==> build_string
5894 Small clarity improvements.
5896 2000-09-30 Martin Buchholz <martin@xemacs.org>
5898 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
5900 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
5902 * config.h.in (HAVE_STRCASECMP): Remove.
5904 2000-09-29 Martin Buchholz <martin@xemacs.org>
5906 * redisplay-output.c (redisplay_output_pixmap):
5907 Cleaner and possibly more 64-bit correct code.
5909 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
5911 * dumper.c (pdump_load_finish): move restoration of
5912 `noninteractive1' to emacs.c (main_1).
5913 * emacs.c (main_1): protect LISP-visible command-line flags
5916 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
5918 * Makefile.in.in (versionclean): Use EXE_TARGET and
5919 DUMP_TARGET instead of literal program names.
5921 2000-09-20 Martin Buchholz <martin@xemacs.org>
5923 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
5925 2000-09-19 Martin Buchholz <martin@xemacs.org>
5927 * *: Spelling mega-patch
5929 2000-09-19 Martin Buchholz <martin@xemacs.org>
5931 * fns.c (bad_bad_turtle):
5932 Delete "Eek!" comment, since we fixed the bug to which it refers.
5934 2000-09-16 Martin Buchholz <martin@xemacs.org>
5936 * alloca.c: Replace REGISTER with register.
5938 2000-09-16 Daiki Ueno <ueno@unixuser.org>
5940 * file-coding.c (ucs_to_char): Use countof.
5942 2000-09-16 Martin Buchholz <martin@xemacs.org>
5944 * file-coding.c: (ucs_to_char):
5945 (complex_vars_of_file_coding):
5946 Use countof instead of sizeof.
5947 Use CHECK_NATNUM instead of CHECK_INT.
5949 * sysdep.c (strcasecmp): Remove.
5950 * device-x.c (ascii_strcasecmp): New.
5951 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
5952 Avoid using non-standard non-portable strcasecmp.
5954 2000-09-16 Martin Buchholz <martin@xemacs.org>
5956 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
5957 * font-lock.c: remove reference to emacsfns.h.
5958 * search.c: small doc improvement.
5959 * event-Xt.c: correct file names in comments.
5960 * console-x.h Correct file names in comments.
5961 * frame.c: Correct file names in comments.
5962 * event-stream.c: remove Energize from comments.
5964 2000-09-15 Martin Buchholz <martin@xemacs.org>
5966 * symeval.h (DEFERROR_STANDARD):
5969 (DEFSYMBOL_NO_DUMP):
5970 (DEFSYMBOL_MULTIWORD_PREDICATE):
5971 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
5973 The construct &##name is not sensible C.
5974 Fixes compilation errors with Unixware native compiler.
5976 2000-09-14 Martin Buchholz <martin@xemacs.org>
5978 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
5979 (next_frame_internal): Removed. We now just have next_frame.
5981 Write a simpler and cleaner one-pass algorithm.
5982 Remove called_from_delete_device arg and #ifdefed-out code.
5984 Renamed from prev_frame. Update callers.
5985 Cleaned up to have an analogous implementation to next_frame.
5986 (other_visible_frames_internal): Remove the
5987 called_from_delete_device bogus arg, and hence, remove this
5988 function. Just use other_visible_frames().
5990 * window.c (Fnext_window):
5992 Since next_frame() is guaranteed to return a frame, remove check
5993 for nil inserted in previous patch.
5996 Make code look more like Fnext_window.
5998 Respect the `console' arg when iterating through windows.
5999 Fixes bug: (get-buffer-window buffer t device) not respecting
6001 This function needs more work, as others have pointed out.
6003 * frame.h: Rename prev_frame to previous_frame.
6004 device_matches_console_spec no longer takes a `frame' arg.
6009 Use EMACS_BLOCK_SIGNAL instead of sigblock.
6010 From "Golubev I. N." <gin@mo.msk.ru>.
6012 * make-src-depend: Fix typo.
6014 2000-09-13 Martin Buchholz <martin@xemacs.org>
6016 * window.c (Fnext_window):
6017 next_frame() might return nil, not a frame.
6019 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6021 * frame.c (next_frame_internal):
6022 We've passed a frame if we've passed its device.
6024 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6025 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6027 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
6029 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6030 Allow option to suppress accelerators in menu/dialog items.
6031 (populate_or_checksum_helper): Pass dialog title through above.
6033 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
6035 * event-msw.c (mswindows_key_to_emacs_keysym):
6036 Add "pause" key, fix "menu" key.
6038 2000-09-09 Martin Buchholz <martin@xemacs.org>
6040 * eval.c (reinit_vars_of_eval):
6041 Increase max_lisp_eval_depth to 1000,
6042 required for thai-xtis.el to byte-compile under some circumstances.
6044 2000-09-04 Martin Buchholz <martin@xemacs.org>
6046 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6049 2000-09-01 Martin Buchholz <martin@xemacs.org>
6051 * make-src-depend: Make the generated Makefiles smaller.
6053 * s/hpux.h (SETUP_SLAVE_PTY):
6054 Provide a %d in the format string for the errno argument.
6056 * editfns.c (Ftemp_directory):
6058 Avoid buffer overrun on very long file name.
6060 * input-method-xlib.c (XIM_init_device):
6061 6th parameter of XRegisterIMInstantiateCallback has different
6062 pointer types on different OSes, so simply cast to (void *).
6064 * unexhp9k800.c: Warning fixes. Fiddly changes.
6066 * sysdll.c (dll_open):
6067 shl_load will hang hard if passed a NULL filename.
6068 Simply return NULL for compatibility with dlopen.
6069 * sysdll.c: Conform to XEmacs coding standards.
6071 * sysdep.c (get_pty_max_bytes):
6072 Support pty input lines longer than 512 bytes on HP-UX 10.20.
6074 2000-08-31 Martin Buchholz <martin@xemacs.org>
6076 * tooltalk.c: Add #include <syssignal.h>
6078 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
6080 * s/hpux.h: Don't use undefined function sigunblock().
6082 2000-08-31 Martin Buchholz <martin@xemacs.org>
6084 * config.h.in: Add HAVE_BALLOON_HELP.
6085 * emacs.c: Use HAVE_BALLOON_HELP.
6086 * Makefile.in.in (x_objs):
6087 Make Balloon Help conditional on finding shape.h.
6089 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
6091 * syntax.c (regex_emacs_buffer_p): New variable.
6092 * syntax.h (regex_emacs_buffer_p): extern.
6093 * search.c (looking_at_1):
6095 (fast_string_match):
6096 (search_buffer): Set regex_emacs_buffer_p.
6097 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6098 when before_dot, at_dot, after_dot.
6100 2000-08-23 Andy Piper <andy@xemacs.org>
6102 * gui-x.c (popup_selection_callback): Only set action_occurred
6103 when we really have an image instance.
6104 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6106 2000-08-23 Andy Piper <andy@xemacs.org>
6108 * gui-msw.c (mswindows_handle_gui_wm_command): set
6110 * gui-x.c (popup_selection_callback): ditto.
6112 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6113 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6114 (struct Lisp_Image_Instance): add action_occurred flag.
6116 * glyphs.c (redisplay_subwindow): use action_occurred flag.
6117 (image_instance_changed): ditto.
6118 (reset_frame_subwindow_instance_cache): only unmap windows - do
6119 not remove them from the cache also.
6121 * glyphs-widget.c (tab_control_update): better debug.
6122 (progress_gauge_update): ditto.
6123 (layout_update): ditto.
6124 (layout_instantiate): ditto.
6125 (tab_control_order_only_changed): cope with null pending items.
6127 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6128 debug. Force selection of an item when an action occurred. Cope
6129 with null pending_items.
6130 (mswindows_progress_gauge_redisplay): better debug.
6131 * glyphs-x.c (x_tab_control_redisplay): ditto.
6133 * redisplay.c (redisplay_frame): reset the frame cache if the
6136 * window.c (Fset_window_configuration): potentially re-enable
6138 (window_unmap_subwindows): need to finalize instances here since
6139 it is only used in mark_window_as_deleted.
6141 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
6143 * nas.c (SndOpenDataForReading):
6144 nas.c (WaveOpenDataForReading):
6145 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6146 Somehow escaped from the 2000-08-14 patch.
6148 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
6150 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6151 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6153 2000-08-21 Andy Piper <andy@xemacs.org>
6155 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6156 window if it is not already displayed.
6158 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6159 it is not already displayed.
6161 * window.c (Fset_window_configuration): don't reset the frame
6164 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6165 instances from the frame cache if we are actually finalizing them.
6166 (reset_frame_subwindow_instance_cache): reset frame cache only
6167 after unmapping everything.
6168 (map_subwindow): set displayed flag after mapping.
6170 2000-08-21 Martin Buchholz <martin@xemacs.org>
6172 * data.c (indirect_function):
6173 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6175 * eval.c (function_argcount):
6176 Use original function when signaling errors.
6178 2000-08-18 Andy Piper <andy@xemacs.org>
6180 * frame.c (delete_frame_internal): use new
6181 free_frame_subwindow_instances name.
6183 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6184 (add_tab_item): make return type correct.
6185 (mswindows_tab_control_instantiate): assert index of tab.
6186 (mswindows_tab_control_redisplay): Re-code to use
6187 gui_item_equal_sans_selected and gui_item_list_find_selected.
6189 * glyphs-widget.c (tab_control_update): Correct comment.
6191 * window.c (window_unmap_subwindows): use new
6192 unmap_subwindow_instance_cache_mapper.
6193 (window_unmap_subwindows_cache_mapper): deleted.
6194 (Fset_window_configuration): comparisons should now be with
6195 EQ. Preserve the subwindow instance cache across configuration
6197 (allocate_window): ditto.
6198 (make_dummy_parent): ditto.
6200 * glyphs.c (free_frame_subwindow_instances): rename from
6201 free_frame_subwindow_instance_cache. finalize all instances rather
6202 than just those in the display cache.
6203 (finalize_all_subwindow_instances): walk windows unmapping and
6204 finalizing subwindows.
6205 (unmap_subwindow_instance_cache_mapper): moved from
6206 window.c. Allow finalization as well as unmapping.
6208 * gui.c (gui_item_list_find_selected): new function.
6210 * gui.h (gui_item_list_find_selected): declare.
6212 * glyphs-x.c (x_tab_control_redisplay): pick tab
6213 explicitly. Re-code to use gui_item_equal_sans_selected and
6214 gui_item_list_find_selected.
6216 * glyphs-x.h: add lwlib-utils.h
6218 * buffer.c (Frecord_buffer): undo previous change.
6220 2000-08-09 Vin Shelton <acs@xemacs.org>
6222 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6223 possible. Create temporary files more securely. The patch was
6224 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6225 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
6226 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6229 2000-08-07 Ben Wing <ben@xemacs.org>
6231 * getloadavg.c: remove duplicate (and windows-breaking)
6232 includes of fcntl.h and sys/file.h.
6234 * nt.c: remove duplicate getloadavg() definition.
6236 * sysdll.h (Qdll_filename_encoding): add missing stand-in
6239 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
6241 * eval.c (function_argcount): If function needs to be autoloaded
6242 actually use the loaded definition.
6245 2000-08-05 Ben Wing <ben@xemacs.org>
6247 * getloadavg.c: add prototype for getloadavg(). remove
6248 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6249 of the code). remove duplicate header includes.
6251 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6253 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6254 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6255 useful load average.
6257 * alloc.c (reinit_alloc_once_early): removed references to
6258 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6259 the lisp vars are the only things referencing the malloc_sbrk_*
6260 vars, and they were already if 0'd out. these vars only exist
6261 in the older malloc.c, which is basically unused, and they're
6262 only for informational purposes.
6264 * m\*.h: removed useless VIRT_ADDR_VARIES.
6266 * m\powerpc.h: removed stray NO_ARG_ARRAY.
6268 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
6270 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6271 color if the image is a mono pixmap.
6273 2000-07-30 Ben Wing <ben@xemacs.org>
6275 * Makefile.in.in (release):
6278 * buffer.c (directory_is_current_directory):
6279 * dired-msw.c (mswindows_get_files):
6281 * dired.c (Fdirectory_files):
6282 * dired.c (file_name_completion_stat):
6283 * dired.c (Ffile_attributes):
6284 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6285 preprocessor tricks, to avoid problems on some machines
6288 * callproc.c (egetenv): GC docs.
6291 * console-msw.h (struct mswindows_dialog_id):
6292 * lrecord.h (lrecord_type):
6293 New object for use with MSW dialogs.
6295 * console.h (struct console_methods):
6296 New enable/disable frame methods, for proper modal dialogs.
6298 * device-msw.c (msprinter_default_printer): Fix to follow
6299 proper Mule conventions.
6302 * device-msw.c (signal_open_printer_error):
6303 * device-msw.c (msprinter_init_device):
6304 * device-msw.c (ensure_not_printing):
6305 * device-msw.c (plist_get_margin):
6306 * device-msw.c (Fmsprinter_select_settings):
6307 * device-msw.c (finalize_devmode):
6308 * device-msw.c (Fmsprinter_settings_despecialize):
6309 * device-msw.c (signal_enum_priner_error):
6310 * extents.c (decode_extent):
6311 * extents.c (decode_map_extents_flags):
6312 * extents.c (decode_extent_at_flag):
6313 * extents.c (Fextent_at):
6314 * extents.c (Fextents_at):
6315 * extents.c (symbol_to_glyph_layout):
6316 [[[[2]]]] Use structured errors.
6319 * dialog-msw.c (mswindows_is_dialog_msg):
6320 * dialog-msw.c (mark_mswindows_dialog_id):
6321 * dialog-msw.c (dialog_proc):
6322 * dialog-msw.c (handle_question_dialog_box):
6323 * dialog-msw.c (syms_of_dialog_mswindows):
6324 Define new object to clean up marking; use it as a dialog identifier.
6325 Call new delete-dialog-box-hook.
6327 * dialog-x.c (dbox_selection_callback):
6328 * dialog-x.c (dbox_descriptor_to_widget_value):
6329 * dialog-x.c (x_make_dialog_box_internal):
6330 Call new delete-dialog-box-hook.
6334 * dialog.c (syms_of_dialog):
6335 * dialog.c (vars_of_dialog):
6336 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6339 * eval.c (signal_call_debugger):
6340 when noninteractive, output stack traces on the console instead
6341 of in a (never-seen) buffer.
6343 * eval.c (signal_type_error):
6344 * eval.c (invalid_argument_2):
6346 new funs for use w/structured errors.
6349 * event-Xt.c (x_to_emacs_keysym):
6350 * event-Xt.c (describe_event):
6351 * event-Xt.c (emacs_Xt_event_handler):
6352 * event-Xt.c (vars_of_event_Xt):
6354 * event-msw.c (mswindows_wnd_proc):
6355 * event-msw.c (vars_of_event_mswindows):
6356 rename {x,mswindows}-debug-events to debug-{}-events for
6357 consistency with other debug-foo variables.
6360 document next-event more clearly.
6362 * fileio.c (Ffile_name_directory):
6363 * fileio.c (Ffile_name_nondirectory):
6364 * fileio.c (Funhandled_file_name_directory):
6365 * fileio.c (file_name_as_directory):
6366 * fileio.c (Ffile_name_as_directory):
6367 * fileio.c (directory_file_name):
6368 * fileio.c (Fdirectory_file_name):
6369 * fileio.c (Fmake_temp_name):
6370 * fileio.c (Ffile_truename):
6371 * fileio.c (Fsubstitute_in_file_name):
6372 * fileio.c (expand_and_dir_to_file):
6373 * fileio.c (barf_or_query_if_file_exists):
6374 * fileio.c (check_executable):
6375 * fileio.c (Ffile_exists_p):
6376 * fileio.c (Ffile_writable_p):
6377 * fileio.c (Ffile_directory_p):
6378 * fileio.c (Ffile_regular_p):
6379 * fileio.c (Ffile_modes):
6380 * fileio.c (Ffile_newer_than_file_p):
6381 * fileio.c (Fverify_visited_file_modtime):
6382 * fileio.c (Fset_visited_file_modtime):
6383 * fileio.c (auto_save_1):
6388 * frame-msw.c (mswindows_init_frame_1):
6389 * frame-msw.c (mswindows_enable_frame):
6390 * frame-msw.c (error_frame_unsizable):
6391 * frame-msw.c (msprinter_init_frame_1):
6392 * frame-msw.c (msprinter_init_frame_3):
6393 * frame-msw.c (console_type_create_frame_mswindows):
6395 implement new enable/disable frame methods.
6398 * frame-x.c (x_enable_frame):
6399 * frame-x.c (console_type_create_frame_x):
6400 implement new enable/disable frame methods.
6403 * frame.c (Fdisable_frame):
6404 * frame.c (syms_of_frame):
6405 * frame.h (struct frame):
6406 implement new enable/disable frame methods/functions.
6411 * glyphs-msw.c (mswindows_widget_instantiate):
6412 comment that initial-focus should be implemented.
6415 * glyphs-widget.c (check_valid_instantiator):
6416 * glyphs-widget.c (check_valid_orientation):
6417 * glyphs-widget.c (check_valid_tab_orientation):
6418 * glyphs-widget.c (check_valid_justification):
6419 * glyphs-widget.c (check_valid_border):
6420 * glyphs-widget.c (check_valid_callback):
6421 * glyphs-widget.c (check_valid_int_or_function):
6422 * glyphs-widget.c (check_valid_string_or_vector):
6423 * glyphs-widget.c (check_valid_item_list_1):
6424 * glyphs-widget.c (widget_validate):
6425 * glyphs-widget.c (combo_box_validate):
6426 * glyphs-widget.c (widget_instantiate):
6427 * glyphs-widget.c (syms_of_glyphs_widget):
6428 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6429 * glyphs-widget.c (image_instantiator_combo_box):
6430 * glyphs-widget.c (image_instantiator_scrollbar):
6431 * glyphs-widget.c (image_instantiator_tab_control):
6432 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6434 support (unimplemented) keyword initial-focus.
6435 reindent long macros.
6437 * glyphs-x.c (x_redisplay_widget):
6438 * glyphs-x.c (x_button_instantiate):
6439 * glyphs-x.c (x_button_redisplay):
6440 * glyphs-x.c (x_progress_gauge_instantiate):
6441 * glyphs-x.c (x_edit_field_instantiate):
6442 * glyphs-x.c (x_combo_box_instantiate):
6443 * glyphs-x.c (x_tab_control_instantiate):
6444 * glyphs-x.c (x_label_instantiate):
6446 * gui-x.c (button_item_to_widget_value):
6447 * gui-x.c (gui_items_to_widget_values_1):
6448 * gui-x.c (gui_item_children_to_widget_values):
6449 * gui-x.c (gui_items_to_widget_values):
6451 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6452 add new flag to gui-parsing routines to indicate whether
6453 accelerator specs should be supported.
6455 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6457 * glyphs.h (struct Lisp_Image_Instance):
6458 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6459 add initial-focus flag.
6462 * gui.c (syms_of_gui):
6463 * gui.c (vars_of_gui):
6464 clean up menu-no-selection-hook.
6467 support delete-dialog-box-hook.
6469 * lread.c (Fload_internal):
6470 * lread.c (locate_file_in_directory_mapper):
6474 * lrecord.h (struct toolbar_button):
6475 * lrecord.h (syms_of_toolbar):
6476 document how to create a new object.
6478 * menubar-msw.c (mswindows_char_is_accelerator):
6479 may be called on frames w/o menus.
6481 * menubar.c (vars_of_menubar):
6482 clean up :filter docs.
6489 * process-nt.c (validate_signal_number):
6490 * process-nt.c (signal_cannot_launch):
6491 * process-nt.c (nt_create_process):
6492 * process-nt.c (nt_send_process):
6493 * process-nt.c (nt_kill_child_process):
6494 * process-nt.c (nt_open_network_stream):
6495 * process-nt.c (syms_of_process_nt):
6497 delete quote-handling. call new lisp code that does it better.
6499 * process-unix.c (connect_to_file_descriptor):
6500 * process-unix.c (allocate_pty):
6501 * process-unix.c (unix_send_process):
6502 * process-unix.c (unix_kill_child_process):
6503 * process-unix.c (unix_open_network_stream):
6504 * process-unix.c (unix_open_multicast_group):
6508 * process.c (Fstart_process_internal):
6509 (2). need to canonicalize process path even if absolute.
6511 * select-msw.c (symbol_to_ms_cf):
6512 * select-msw.c (ms_cf_to_symbol):
6513 * select-msw.c (cf_is_autofreed):
6514 * select-msw.c (mswindows_destroy_selection):
6516 * select.c (syms_of_select):
6518 support dibv5, fix bugs. (from Mike Alexander)
6520 * select.c (Fget_selection_internal):
6521 * select.c (select_convert_out):
6524 * sysdep.c (xemacs_stat):
6529 but keep original stat() here because we provide encapsulation
6533 * sysfile.h (fstat):
6534 remove stat garbage.
6538 don't include tchar.h. it's inappropriate because it makes
6539 compile-time distinctions when we want runtime distinctions.
6540 (we provide our own tchar replacements)
6543 use default object printer for toolbar-button.
6546 make sure we don't encapsulate.
6548 * window.c (vars_of_window):
6549 emphasize that temp-buffer-show-hook is obsolete.
6551 2000-08-05 Martin Buchholz <martin@xemacs.org>
6553 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6554 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6556 * events.c (Fevent_timestamp_lessp):
6557 Not 64-bit clean. Use EMACS_INT, not int.
6559 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
6561 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6562 unsigned int and changed the last enum to
6563 lrecord_type_last_built_in_type.
6564 (lrecord_implementations_table): changed prototype to know how
6565 long the array is supposed to be.
6566 (lrecord_type_count): new unsigned int to keep track of the
6567 current number of lisp lrecord types.
6568 (DEFINE_EXTERNAL_LRECORD):
6569 (DECLARE_EXTERNAL_LRECORD): Added these two for external
6570 dynamic-modules to declare new lisp types. They are the same
6571 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6572 int for each new type, and increment lrecord_type_count by 1.
6574 * alloc.c (lrecord_implementations_table): Changed to reference
6575 lrecord_type_last_built_in_type for the size of the array.
6576 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6578 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
6580 * glyphs.h (check_valid_item_list): Renamed from
6581 check_valid_item_list_1.
6583 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6585 * select.c (Qselect_coerce): New.
6586 * select.c (Vselection_coercion_alist): New.
6587 * select.c (syms_of_select): Declare.
6588 * select.c (get-selection-internal): Use it.
6589 Use the new select-coerce functionality.
6591 * select.c (select_coerce): New.
6592 * select.h (select_coerce): Declare.
6593 New function to coerce one type of data into another.
6595 2000-08-03 Martin Buchholz <martin@xemacs.org>
6597 * callproc.c (Fcall_process_internal):
6598 (Fcall_process_internal):
6599 * process-unix.c (unix_create_process):
6600 Save and restore the value of errno, so that error messages are accurate.
6602 2000-08-01 Martin Buchholz <martin@xemacs.org>
6604 * elhash.c (print_hash_table):
6605 Fix printing of hash tables to also use `key-and-value' instead of `t'.
6606 Prettify docstrings and indentation.
6608 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
6610 * window.c (Fwindow_pixel_edges): Subtract frame border and
6613 2000-07-31 Andy Piper <andy@xemacs.org>
6615 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6616 will acknowledge the change.
6618 * glyphs.h: declare tab_control_order_only_changed.
6620 * glyphs-x.c (x_tab_control_redisplay): use
6621 tab_control_order_only_changed.
6623 * glyphs-widget.c (tab_control_order_only_changed): new function.
6625 * glyphs-msw.c (mswindows_tab_control_redisplay): use
6626 tab_control_order_only_changed.
6628 * gui.c (gui_item_equal_sans_selected): new function.
6629 (gui_item_equal): use it.
6631 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6632 :properties in favor of :items..
6634 * glyphs-widget.c (check_valid_item_list): rename from
6635 check_valid_item_list_1.
6636 (check_valid_item_list_1): renamed.
6637 (combo_box_validate): deprecate :properties in favor of :items.
6638 (widget_instantiate): ditto.
6639 (tab_control_update): ditto.
6640 (image_instantiator_combo_box): ditto.
6641 (image_instantiator_tree_view): ditto.
6642 (image_instantiator_tab_control): ditto.
6643 (layout_post_instantiate): remove dead code.
6645 * print.c (debug_print_no_newline): only write to debugger if in
6648 * elhash.c (Fmake_hash_table): update doc string.
6650 * event-msw.c (mswindows_wnd_proc): don't allow processing of
6651 messages whilst in GC. This at least stops XEmacs crashing but has
6652 the potential for wierd behaviour.
6654 2000-07-31 Martin Buchholz <martin@xemacs.org>
6657 Make existence of s&m files optional.
6659 * s/bsd386.h: Remove HAVE_GETLOADAVG.
6660 * s/freebsd.h: Remove HAVE_GETLOADAVG.
6661 * s/gnu.h: Remove HAVE_GETLOADAVG.
6662 * s/netbsd.h: Remove HAVE_GETLOADAVG.
6663 * s/sol2.h: Remove HAVE_GETLOADAVG.
6664 * lisp.h: Remove getloadavg() declaration.
6666 Include <sys/loadavg.h> if available.
6667 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6668 * config.h.in: Group together getloadavg()-related macros.
6669 Use only configure-time tests to detect getloadavg().
6671 2000-07-30 Martin Buchholz <martin@xemacs.org>
6673 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6675 2000-07-25 Andy Piper <andy@xemacs.org>
6677 * syswindows.h: add tchar.h for native builds.
6679 * frame.c (syms_of_frame): remove set-glyph-image.
6681 * general-slots.h: add Qset_glyph_image.
6683 * glyphs-widget.c (layout_update): add domain arg to
6685 (syms_of_glyphs_widget): remove set-glyph-image.
6687 2000-07-23 Ben Wing <ben@xemacs.org>
6689 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6692 2000-07-22 Andy Piper <andy@xemacs.org>
6694 * symsinit.h: add syms_of_win32().
6696 * gui-msw.c (syms_of_gui_mswindows): remove
6697 Fmswindows_shell_execute.
6698 (Fmswindows_shell_execute): moved to win32.c.
6700 * emacs.c (main_1): add syms_of_win32 ().
6702 * win32.c (init_potentially_nonexistent_functions): rewrite in
6703 compiler-friendly terms.
6704 (Fmswindows_shell_execute): move here from gui-msw.c.
6705 (syms_of_win32): new.
6707 * device-msw.c (Fmswindows_printer_list): clean up args to
6709 Don't include tchar under cygwin or mingw.
6710 (msprinter_default_printer): make cygwin-friendly.
6712 2000-07-21 Andy Piper <andy@xemacs.org>
6714 * glyphs-widget.c (image_instantiator_tree_view): use tab
6715 control's update function.
6716 (layout_property): new function. Retrieve items.
6718 * glyphs-msw.c (mswindows_tree_view_redisplay): new
6719 function. Re-populate the tree view from the pending items.
6721 * glyphs.c (instantiate_image_instantiator): Make sure the domain
6722 is designated the parent if the domain is an image instance. This
6723 is needed so that dirtiness can be cascade up the hierarchy and
6724 thus for layout children to be redisplayed correctly.
6725 (allocate_image_instance): rename glyph -> parent.
6727 * redisplay.h: change redisplay_output_layout signature.
6729 * redisplay-msw.c (mswindows_output_display_block): use domain
6732 * redisplay-x.c (x_output_display_block): use domain arg.
6734 2000-07-10 Andy Piper <andy@xemacs.org>
6736 * window.c (Fset_window_configuration): add comment.
6738 * redisplay-output.c (compare_runes):
6739 (redisplay_output_subwindow): redisplay rather than update subwindow.
6740 (redisplay_output_layout): ditto.
6742 * redisplay-msw.c (mswindows_frame_output_end):
6743 (mswindows_frame_output_end): make defer window pos optional.
6745 * lisp.h: add Flast.
6747 * glyphs.h (struct image_instantiator_methods): add dest_mask top
6748 normalize method. Change update method to be for changed
6749 instantiators. Add redisplay method. Change signature of layout
6751 (struct Lisp_Image_Instance): add instantiator.
6752 (IMAGE_INSTANCE_INSTANTIATOR): new.
6753 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6754 (XIMAGE_INSTANCE_INSTANTIATOR): new.
6755 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6758 (find_instantiator_differences): new function.
6759 (Fset_instantiator_property): new convenience function.
6760 (check_image_instance_structure): strictly check for vector
6762 (normalize_image_instantiator): make non-static.
6763 (instantiate_image_instantiator): pass on dest_mask and use new
6764 signatures for image_instance_layout and friends.
6765 (mark_image_instance): mark the instantiator. Mark the subwindow
6766 face not the widget face.
6767 (image_instance_equal): add instantiator.
6768 (image_instance_hash): ditto.
6769 (allocate_image_instance): ditto.
6770 (Fset_image_instance_property): removed.
6771 (Fimage_instance_file_name): ditto.
6772 (Fcolorize_image_instance): ditto.
6773 (image_instance_layout): add offsets to be set.
6774 (update_image_instance): new function. update an image instance
6775 from its changed instantiator.
6776 (inherit_normalize): add dest_mask.
6777 (xbm_normalize): ditto.
6778 (xface_normalize): ditto.
6779 (xpm_normalize): ditto.
6780 (text_update): set_property -> update.
6781 (image_instantiate): use the glyph identity as a hash key, not the
6783 (glyph_width): use new image_instance_layout signature.
6784 (glyph_ascent): ditto.
6785 (glyph_descent): ditto.
6786 (glyph_height): ditto.
6787 (glyph_query_geometry): ressurrect.
6788 (glyph_layout): ditto.
6789 (redisplay_subwindow): update -> redisplay.
6790 (syms_of_glyphs): add Fset_instantiator_property.
6791 (image_instantiator_format_create): set_property -> update.
6794 (autodetect_normalize): add dest_maks to signature.
6795 (x_redisplay_subwindow): update -> redisplay.
6796 (x_redisplay_widget): ditto.
6797 (x_button_redisplay): ditto.
6798 (x_progress_gauge_redisplay): ditto.
6799 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6801 (console_type_create_glyphs_x): update -> redisplay.
6802 (image_instantiator_format_create_glyphs_x): ditto.
6805 (check_valid_instantiator): disallow glyphs in the instantiator,
6806 they must now be vectors.
6807 (check_valid_instantiator_list): ditto.
6808 (glyph_instantiator_to_glyph): use internal symbol rather than
6810 (widget_update): renamed from widget_set_property. Call cascaded
6812 (redisplay_widget): renamed from update_widget.
6813 (widget_layout): image_instance_layout now takes position as well
6815 (widget_normalize): ditto.
6816 (widget_instantiate): ditto.
6817 (tab_control_query_geometry) ditto.:
6818 (tab_control_update): renamed from tab_control_set_property.
6819 (progress_gauge_update): set_property -> update.
6820 (layout_normalize): rewrite so that child instantiators are
6822 (layout_update): new function. Create glyphs from the normalized
6823 children and cope with any other layout keywords. We do not
6824 instantiate children here that will be take care of by
6825 redisplay_output_layout.
6826 (layout_instantiate): call layout_update and not much else.
6827 (layout_post_instantiate): not sure whether this is needed
6829 (layout_query_geometry): query glyph geometry rather than
6830 image_instance geometry.
6831 (layout_layout): set offsets from pass in parameters. Use glyph
6832 geometry and layout functions rather than image instance ones.
6833 (native_layout_layout): ditto.
6834 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6835 (image_instantiator_widget): set_property -> update.
6836 (image_instantiator_buttons): ditto.
6837 (image_instantiator_progress_guage): ditto.
6838 (image_instantiator_tab_control): ditto.
6839 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6840 (image_instantiator_layout): add update method.
6842 * glyphs-msw.c (bmp_normalize):
6843 (mswindows_resource_normalize): add dest_mask so that it can be
6844 proprogated by layout_normalize.
6845 (begin_defer_window_pos): make optional because it may not be the
6846 right thing to do and it introduces differences with X.
6847 (mswindows_unmap_subwindow): ditto.
6848 (mswindows_map_subwindow): ditto.
6849 (mswindows_redisplay_subwindow): renamed from
6850 mswindows_update_subwindow.
6851 (mswindows_redisplay_widget): ditto.
6852 (mswindows_button_redisplay): renamed from
6853 mswindows_button_update. Update is now what the instantiation
6854 function does for a changed instantiator.
6855 (mswindows_progress_gauge_instantiate): set the progress value
6856 here if appropriate.
6857 (mswindows_tab_control_redisplay): cope with re-ordering of the
6858 members of the tab widget by simply selecting the new top
6859 widget. This makes things appear ok if you click on a tab.
6860 (mswindows_combo_box_instantiate): image_instance_layout now takes
6861 position as well as size.
6862 (mswindows_progress_gauge_redisplay): renamed from
6863 mswindows_progress_gauge_update.
6864 (console_type_create_glyphs_mswindows): fix update -> redisplay.
6865 (image_instantiator_format_create_glyphs_mswindows): ditto.
6867 * glyphs-eimage.c (jpeg_normalize):
6870 (tiff_normalize): add dest_mask so that it can be proprogated by
6875 (hash_table_weakness_validate):
6876 (decode_hash_table_weakness):
6877 (Fhash_table_weakness):
6879 (syms_of_elhash): use Ben's naming scheme for hashtable types..
6881 * console.h (struct console_methods): move update_* to
6884 2000-07-20 Ben Wing <ben@xemacs.org>
6886 * *.[ch] (XSETOBJ): remove unused middle argument.
6887 lisp-disunion.h: correct wrap_object() to one argument.
6889 2000-07-15 Ben Wing <ben@xemacs.org>
6892 * s/cygwin32.h (CYGWIN_CONV_PATH):
6893 Add missing logb prototype for v1.1.
6894 Use post-b20 names and alias to pre-b20 names when pre-b20.
6896 * s/windowsnt.h: [5].
6898 2000-07-15 Ben Wing <ben@xemacs.org>
6900 * Makefile.in.in (x_objs):
6901 * Makefile.in.in (sheap_objs):
6902 * Makefile.in.in (objs):
6903 added win32.o, cosmetic cleanups.
6905 * alloc.c (Fmake_byte_code):
6906 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
6907 etc. macros which declare their own args now.
6909 * alloc.c (syms_of_alloc):
6910 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
6913 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
6915 * buffer.c (Fget_file_buffer):
6916 Fixed GCPRO problem.
6918 * buffer.c (get_truename_buffer):
6919 Fixed comment about GC checking.
6921 * buffer.c (syms_of_buffer):
6922 Undeclared those dedicated frame funs.
6926 Define convenience macros for internal/external conversions.
6927 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
6928 and Qenvironment_variable_encoding for cleaner code.
6931 Remove dedicated-frame; in lisp.
6933 * bytecode.c (funcall_compiled_function):
6936 * bytecode.c (syms_of_bytecode):
6940 * console-msw.c (mswindows_show_console): Rewrote.
6942 * console-msw.c (Fmswindows_debugging_output): New.
6943 Sends to OutputDebugString (special MSWin debugger interface).
6945 * console-msw.c (Fmswindows_message_box):
6946 Fixed stupid bugs so it works when called from kill-emacs.
6948 * console-msw.c (syms_of_console_mswindows):
6949 Declare Fmswindows_debugging_output.
6952 New MSWin prototypes.
6954 * console-msw.h (struct mswindows_frame):
6955 New entry last-click-mods for improved button-modifier support.
6957 * console-msw.h (FRAME_MSWINDOWS_POPUP):
6958 New struct entry `popup' with corresponding accessor.
6961 * console-x.c (split_up_display_spec):
6962 * console-x.c (get_display_arg_connection):
6963 * console-x.c (x_semi_canonicalize_console_connection):
6964 * console-x.c (x_canonicalize_device_connection):
6965 [[[6]]]: Change char to more specific type.
6966 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
6968 * console-x.c (x_semi_canonicalize_console_connection):
6969 * console-x.c (x_canonicalize_device_connection):
6970 [[[9]]]: Fix up error signalling to use new structured error system.
6973 [[[4]]]: Define codesys aliases:
6974 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
6975 Qx_color_name_encoding, Qx_display_name_encoding.
6977 * console.h (struct console_methods):
6978 New method make_dialog_box_internal supersedes older
6979 popup_dialog_box method.
6982 Define many new errors, part of new structured errors.
6984 * data.c (init_errors_once_early):
6985 * data.c (syms_of_data):
6988 * device-msw.c (mswindows_init_device):
6989 [[[5]]]: Cleanup to support NT 3.51.
6991 * device-msw.c (decode_devmode): Cleanup.
6993 * device-msw.c (mswindows_handle_print_setup_dialog_box):
6994 * device-msw.c (mswindows_handle_print_dialog_box):
6995 * device-msw.c (mswindows_handle_page_setup_dialog_box):
6996 * device-msw.c (syms_of_device_mswindows):
6997 Delete the dialog box primitives recently introduced by Kirill and
6998 instead interface to general dialog box interface.
7001 * device-x.c (compute_x_app_name):
7002 * device-x.c (x_init_device):
7003 * device-x.c (Fx_valid_keysym_name_p):
7004 * device-x.c (Fx_set_font_path):
7008 * device.h (wrap_device): New.
7009 First of its kind; meant to replace XSETDEVICE.
7011 * dialog-msw.c: Many file-dialog symbols.
7013 * dialog-msw.c (mswindows_register_popup_frame): New.
7014 * dialog-msw.c (mswindows_is_dialog_msg): New.
7015 For supporting kbd traversal in dialog boxes.
7017 * dialog-msw.c (dialog_proc):
7018 Support hitting ESC in dialogs.
7020 * dialog-msw.c (struct):
7021 Common dialog box errors.
7023 * dialog-msw.c (handle_file_dialog_box): New.
7024 Add file dialog code.
7026 * dialog-msw.c (handle_question_dialog_box):
7027 Redo existing code to support new question dialog syntax.
7029 * dialog-msw.c (console_type_create_dialog_mswindows):
7030 We support new dialog console method.
7032 * dialog-msw.c (syms_of_dialog_mswindows):
7033 * dialog-msw.c (vars_of_dialog_mswindows):
7034 New file dialog symbols, vars.
7037 * dialog-x.c (maybe_run_dbox_text_callback):
7038 * dialog-x.c (dbox_descriptor_to_widget_value):
7039 * dialog-x.c (x_make_dialog_box_internal):
7040 * dialog-x.c (console_type_create_dialog_x):
7041 Mule-ize entire file.
7042 Redo to support question dialog syntax.
7046 * dialog.c (Fmake_dialog_box_internal):
7047 * dialog.c (syms_of_dialog):
7048 Kill old popup-dialog-box, replace with new primitive.
7049 Just call device method or signal error.
7051 * eldap.c (Fldap_open):
7052 * eldap.c (Fldap_search_basic):
7053 * eldap.c (Fldap_add):
7054 * eldap.c (Fldap_modify):
7059 * emacs.c (make_arg_list_1):
7060 * emacs.c (make_arg_list):
7061 Mule-ize call to dll_init().
7065 * emacs.c (make_argc_argv):
7066 * emacs.c (free_argc_argv):
7067 * emacs.c (init_cmdargs):
7069 * emacs.c (Fkill_emacs):
7070 * emacs.c (Fdump_emacs):
7071 Update comments about what can be used in syms_* etc.
7072 Call init_win32() when necessary.
7073 Fix up MS Win dialog box in kill-buffer to actually work right.
7084 * eval.c (condition_case_3):
7086 * eval.c (function_argcount):
7087 * eval.c (funcall_lambda):
7090 * eval.c (type_error): New.
7091 * eval.c (maybe_type_error): New.
7092 * eval.c (continuable_type_error): New.
7093 * eval.c (maybe_continuable_type_error): New.
7094 * eval.c (type_error_with_frob): New.
7095 * eval.c (maybe_type_error_with_frob): New.
7096 * eval.c (continuable_type_error_with_frob): New.
7097 * eval.c (maybe_continuable_type_error_with_frob): New.
7098 New functions for use with structured errors.
7101 * event-Xt.c (x_event_to_emacs_event):
7102 Buttons are now modifiers too.
7104 * event-Xt.c (emacs_Xt_current_event_timestamp):
7105 Implement new event method.
7106 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7109 * event-msw.c (ntpipe_shove_writer): [5].
7110 * event-msw.c (mswindows_enqueue_mouse_button_event):
7111 * event-msw.c (mswindows_drain_windows_queue):
7112 * event-msw.c (mswindows_wnd_proc): [7].
7113 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7114 * event-msw.c (mswindows_modifier_state):
7115 Throughout: support new button modifiers.
7117 * event-msw.c (emacs_mswindows_current_event_timestamp):
7118 Implement new event method.
7119 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7122 * event-stream.c (event_stream_current_event_timestamp): New.
7123 * event-stream.c (maybe_kbd_translate): New functionality.
7124 * event-stream.c (vars_of_event_stream):
7125 Document new kbd-translate-table functionality.
7127 * event-stream.c (Fcurrent_event_timestamp): New.
7128 New primitive for use in fabricated events.
7129 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7131 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7134 * events.c (Fmake_event):
7135 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7139 * events.c (format_event_object): fix gcc warnings.
7141 * events.c (Fevent_timestamp): Document new primitives.
7143 * events.c (TIMESTAMP_HALFSPACE): New.
7145 * events.c (Fevent_timestamp_lessp): New. New primitive for
7146 comparing timestamps correctly (half-space algorithm).
7148 * events.c (Fevent_modifier_bits): Doc fix.
7150 * events.c (Fevent_modifiers): Major doc addition.
7151 * events.c (event_x_y_pixel_internal): Typo fix.
7152 * events.c (syms_of_events): Declare new primitives.
7155 Update long comment for button modifiers, timestamps.
7157 * events.h (struct event_stream):
7158 New current_event_timestamp method.
7161 * extents.c (extent_in_region_p):
7162 * extents.c (decode_extent):
7163 * extents.c (Fset_extent_parent):
7164 * extents.c (decode_map_extents_flags):
7168 * extents.c (struct extent_at_arg):
7169 * extents.c (decode_extent_at_flag):
7170 * extents.c (extent_at_mapper):
7171 * extents.c (extent_at_bytind):
7172 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7173 * extents.c (Fextents_at): New primitive. [9].
7174 * extents.c (symbol_to_glyph_layout): [9].
7175 Support new primitive `extents-at'.
7178 * extents.c (get_text_property_bytind):
7179 extent_at_bytind has another arg.
7182 * extents.c (syms_of_extents): New primitive.
7184 * file-coding.c (Fmake_coding_system): [1].
7185 * file-coding.c (subsidiary_coding_system): fix gcc warning
7186 * file-coding.c (syms_of_file_coding): [2].
7188 * fileio.c (Fexpand_file_name):
7189 * fileio.c (Fsysnetunam):
7190 * fileio.c (Ffile_exists_p):
7191 * fileio.c (Ffile_executable_p):
7192 * fileio.c (Fverify_visited_file_modtime):
7195 * fileio.c (syms_of_fileio): [2].
7197 * filelock.c (lock_file_1):
7198 * filelock.c (current_lock_owner):
7199 * filelock.c (lock_if_free):
7200 * filelock.c (lock_file):
7201 * filelock.c (unlock_file):
7204 * fns.c (concat): Fix gcc warning.
7207 * fns.c (Fold_member):
7209 * fns.c (Fold_memq):
7210 * fns.c (memq_no_quit):
7212 * fns.c (Fold_assoc):
7214 * fns.c (Fold_assq):
7215 * fns.c (assq_no_quit):
7217 * fns.c (Fold_rassoc):
7219 * fns.c (Fold_rassq):
7220 * fns.c (rassq_no_quit):
7222 * fns.c (Fold_delete):
7224 * fns.c (Fold_delq):
7225 * fns.c (delq_no_quit):
7226 * fns.c (Fremassoc):
7228 * fns.c (remassq_no_quit):
7229 * fns.c (Fremrassoc):
7230 * fns.c (Fremrassq):
7231 * fns.c (remrassq_no_quit):
7236 * frame-msw.c (mswindows_init_frame_1):
7237 * frame-msw.c (mswindows_delete_frame):
7238 Register popups with dialog code so keyboard traversing works.
7240 * frame-tty.c (tty_raise_frame_no_select): [1].
7243 * frame-x.c (x_set_frame_text_value):
7244 * frame-x.c (x_set_frame_properties):
7245 * frame-x.c (x_create_widgets):
7249 * frame.c (Fmouse_pixel_position): Minor doc fixes.
7251 * frame.h (wrap_frame): New.
7252 Macro like wrap_device.
7255 * general.c (SYMBOL):
7256 * general.c (syms_of_general):
7257 Major reorg. This is now just a wrapper and symbols themselves
7258 are listed in general-slots.h.
7260 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7261 * glyphs-msw.c (mswindows_resource_instantiate): [5].
7263 * glyphs-msw.c (mswindows_native_layout_instantiate):
7264 Add DS_CONTROL so keyboard traversal will work.
7267 * glyphs-widget.c (syms_of_glyphs_widget):
7268 Move some symbols to general-slots.h.
7271 * glyphs-x.c (xbm_instantiate_1):
7272 * glyphs-x.c (x_xbm_instantiate):
7273 * glyphs-x.c (x_xface_instantiate):
7274 * glyphs-x.c (autodetect_instantiate):
7275 * glyphs-x.c (cursor_font_instantiate):
7276 * glyphs-x.c (x_update_widget):
7277 * glyphs-x.c (x_widget_instantiate):
7278 * glyphs.c (bitmap_to_lisp_data):
7279 * glyphs.c (pixmap_to_lisp_data):
7282 * glyphs.c (syms_of_glyphs):
7286 * gui-x.c (print_widget_value):
7287 * gui-x.c (menu_separator_style_and_to_external):
7288 * gui-x.c (add_accel_and_to_external):
7289 * gui-x.c (button_item_to_widget_value):
7290 * gui-x.c (gui_items_to_widget_values_1):
7291 * gui-x.c (gui_items_to_widget_values):
7292 * gui-x.c (syms_of_gui_x):
7293 * gui-x.c (vars_of_gui_x):
7294 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
7298 Muleize, prototype changes matching gui-x.c.
7301 * gui.c (separator_string_p):
7302 * gui.c (gui_item_add_keyval_pair):
7303 * gui.c (make_gui_item_from_keywords_internal):
7304 * gui.c (signal_too_long_error):
7305 * gui.c (parse_gui_item_tree_item):
7306 * gui.c (syms_of_gui):
7307 * gui.c (vars_of_gui):
7309 menu-no-selection-hook moved here (used by MSWin).
7310 Move some symbols to general-slots.h.
7314 * insdel.c (get_buffer_pos_char):
7315 * insdel.c (get_buffer_range_char):
7318 * keymap.c (keymap_lookup_directly):
7319 * keymap.c (keymap_store):
7320 * keymap.c (ensure_meta_prefix_char_keymapp):
7321 * keymap.c (describe_map):
7323 Support new button modifiers.
7325 * lisp-disunion.h (wrap_object):
7326 * lisp-disunion.h (XSETOBJ):
7327 Rename make_obj to wrap_object.
7330 * lisp-union.h (make_int):
7331 * lisp-union.h (make_char):
7332 Support wrap_object.
7335 * lisp.h (LIST_LOOP):
7336 * lisp.h (EXTERNAL_LIST_LOOP):
7337 * lisp.h (LIST_LOOP_2):
7338 * lisp.h (EXTERNAL_LIST_LOOP_1):
7339 * lisp.h (EXTERNAL_LIST_LOOP_2):
7340 * lisp.h (EXTERNAL_LIST_LOOP_3):
7341 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7342 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7343 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7344 * lisp.h (EXTERNAL_ALIST_LOOP_5):
7345 * lisp.h (EXTERNAL_ALIST_LOOP_6):
7346 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7347 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7348 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7349 * lisp.h (struct Lisp_Symbol):
7350 * lisp.h (maybe_continuable_error_with_frob):
7351 Fix up section comments.
7352 Add new types for char to indicate usage.
7353 Delete symbols auto-generated from general-slots.h.
7354 Add prototypes for structured error functions.
7355 Add long comments describing looping macros and change interface
7356 so that lvalues are automatically declared.
7357 Add NO_DECLARE macro in case callers want to declare lvalues
7360 * lread.c (read_syntax_error):
7361 * lread.c (continuable_read_syntax_error):
7362 * lread.c (read_structure):
7363 * lread.c (sequence_reader):
7364 * lread.c (read_list_conser):
7365 * lread.c (read_compiled_function):
7366 Rename syntax_error and continuable_syntax_error to avoid clash
7367 with same-named structured error functions.
7369 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7370 * menubar-msw.c (populate_menu_add_item):
7371 * menubar-msw.c (populate_or_checksum_helper):
7376 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7377 Mule-ize whole file.
7379 * menubar.c (Fnormalize_menu_item_name): Add optimization.
7381 * mule-charset.c (Fmake_charset):
7382 * mule-wnnfns.c (Fwnn_set_param):
7385 * ntproc.c (create_child):
7386 * ntproc.c (Fwin32_set_current_locale):
7387 Add comments portending doom.
7390 * objects-msw.c (old_font_enum_callback_2):
7391 * objects-msw.c (font_enum_callback_1):
7392 * objects-msw.c (mswindows_enumerate_fonts):
7396 * objects-x.c (allocate_nearest_color):
7397 * objects-x.c (x_parse_nearest_color):
7398 * objects-x.c (x_initialize_color_instance):
7399 * objects-x.c (x_print_color_instance):
7400 * objects-x.c (x_finalize_color_instance):
7401 * objects-x.c (x_valid_color_name_p):
7402 * objects-x.c (x_initialize_font_instance):
7403 * objects-x.c (x_print_font_instance):
7404 * objects-x.c (valid_x_font_name_p):
7405 * objects-x.c (truename_via_FONT_prop):
7406 * objects-x.c (truename_via_random_props):
7407 * objects-x.c (truename_via_XListFonts):
7408 * objects-x.c (x_font_truename):
7409 * objects-x.c (x_font_instance_truename):
7410 * objects-x.c (x_font_instance_properties):
7411 * objects-x.c (x_list_fonts):
7412 * objects-x.c (x_find_charset_font):
7413 Mule-ize entire file.
7420 * print.c (std_handle_out_external):
7421 * print.c (debug_print_no_newline):
7422 * print.c (syms_of_print):
7423 Output to all debugger kinds in debug-print.
7424 Fix console-output code under MSWin to actually work.
7426 * process-nt.c (send_signal):
7427 * process-nt.c (nt_create_process):
7428 Use newer Unicode macros.
7430 * process-unix.c (unix_create_process):
7431 * process-unix.c (unix_canonicalize_host_name):
7432 * process-unix.c (unix_open_network_stream):
7438 * search.c (syms_of_search):
7441 * select-msw.c (mswindows_destroy_selection):
7444 * select-x.c (symbol_to_x_atom):
7447 * select.c (syms_of_select):
7450 * sound.c (Fplay_sound_file):
7454 * specifier.c (decode_specifier_type):
7455 * specifier.c (Fvalid_specifier_locale_type_p):
7456 * specifier.c (check_valid_locale_or_locale_type):
7457 * specifier.c (decode_locale):
7458 * specifier.c (decode_locale_type):
7459 * specifier.c (decode_locale_list):
7460 * specifier.c (check_valid_domain):
7461 * specifier.c (decode_specifier_tag_set):
7462 * specifier.c (Fcanonicalize_tag_set):
7463 * specifier.c (Fdefine_specifier_tag):
7464 * specifier.c (Fspecifier_tag_predicate):
7465 * specifier.c (check_valid_inst_list):
7466 * specifier.c (check_valid_spec_list):
7467 * specifier.c (decode_how_to_add_specification):
7468 * specifier.c (check_modifiable_specifier):
7469 * specifier.c (specifier_add_spec):
7470 * specifier.c (boolean_validate):
7471 * specifier.c (display_table_validate):
7474 * specifier.c (syms_of_specifier):
7475 Move some symbols to general-slots.h.
7479 * symbols.c (Fmapatoms):
7480 * symbols.c (Fapropos_internal):
7483 * symbols.c (set_default_buffer_slot_variable):
7484 * symbols.c (set_default_console_slot_variable):
7487 * symbols.c (defsymbol_massage_name_1):
7488 * symbols.c (defkeyword_massage_name):
7489 * symbols.c (deferror_1):
7490 * symbols.c (deferror):
7491 * symbols.c (deferror_massage_name_and_message):
7493 * symeval.h (DEFSYMBOL):
7494 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7496 * symbols.c (syms_of_symbols):
7500 * symsinit.h (init_win32): New.
7501 Also new is syms_of_dialog_mswindows.
7504 Add new Unicode macros, missing Cygwin wide-char functions,
7505 convenience conversion macros for Qmswindows_tstr, macros for
7506 encapsulating required MSWin <-> Cygwin filename conversions,
7507 prototype for dynamically-extracted (not in NT 3.51) functions.
7512 * tooltalk.c (Fadd_tooltalk_message_arg):
7513 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7514 * tooltalk.c (Fadd_tooltalk_pattern_arg):
7517 * tooltalk.c (syms_of_tooltalk):
7521 * unexnt.c (unexec):
7522 Fix up headers, declaration of unexec() to be more standard.
7524 2000-07-20 Martin Buchholz <martin@xemacs.org>
7526 * offix.h: Revert change to guard macros - they're used in offix.c!
7528 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7530 * lisp.h: Defsubred Fdelete.
7532 * console-msw.h: (msprinter_default_printer): Added.
7534 * console-msw.c (msprinter_canonicalize_console_connection):
7535 (msprinter_canonicalize_device_connection): Added.
7537 * device-msw.c (msprinter_default_printer):
7538 (Fmswingows_get_default_printer):
7539 (signal_enum_priner_error):
7540 (Fmswingows_printer_list): Added.
7542 2000-07-19 Martin Buchholz <martin@xemacs.org>
7544 * XEmacs 21.2.35 is released.
7546 2000-07-19 Martin Buchholz <martin@xemacs.org>
7548 * select-x.c (x_handle_selection_request):
7549 Text selected in xemacs and pasted into xterm failed to appear.
7550 Spelling fixes and cosmetic changes.
7552 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7554 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7555 XEmacs frame (fix for doubling chars in dialog boxes).
7557 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7559 * select.c (select_convert_in, select_convert_out):
7560 Don't call intern() every time.
7562 * select.c (Qselect_convert_in, Qselect_convert_out): New.
7563 * select.c (vars_of_select): Initialise them.
7565 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7567 * select.c (selection-coercible-types): New.
7569 * select.c (own-selection-internal):
7570 * select.c (get-selection-internal):
7571 MULE bug fix - these should default to COMPOUND_TEXT and not
7572 STRING for MULE. I think.
7574 * select.c (select_convert_out): Use selection-coercible-types
7575 to find types that we can attempt to perform coercions on.
7577 2000-07-18 Martin Buchholz <martin@xemacs.org>
7581 Add coding: cookie to identify encoding.
7583 * mule-canna.c (CANNA_mode_keys): make static.
7584 Use proper prototypes, even for functions of no arguments.
7585 Remove external prototype for Fding().
7587 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7589 * select.c (syms_of_select): Add missing DEFSUBR.
7591 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7593 * select.c (get_selection_internal, own_selection_internal):
7594 Make the type default to STRING, rather than placing a nil type
7595 into Vselection_alist.
7597 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7599 * gpmevent.c (tty_selection_exists_p):
7600 * gpmevent.c (tty_own_selection):
7601 Updated parameter lists.
7603 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7605 * select.h (selection-alist): Removed declaration.
7607 * select.h (get_local_selection):
7608 * select.c (get_local_selection):
7611 * select.h (convert_selection): Removed declaration.
7612 * select.c (convert_selection): Removed.
7613 This function belongs in Lisp.
7615 * select.h (select_convert_in): Declare.
7616 * select.h (select_convert_out): Declare.
7617 * select.c (select_convert_in): New.
7618 * select.c (select_convert_out): New.
7619 New conversion functions for other files to call.
7621 * select.h (select_notify_buffer_kill): Declare.
7622 * select.c (select_notify_buffer_kill): New.
7623 New functions that get called from kill-buffer.
7625 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7626 X-specific lisp code.
7628 * select.h: Declare some of the lisp-visible functions for
7631 * select.c (clean_local_selection_data): Removed. This was
7632 a disgusting function, and previously should have been in
7633 select-x.c in any case. The functionality is now provided
7634 in select-convert-from-integer (select.el).
7636 * select.c (available-selection-types): Fixed stupidity where
7637 INTEGER and ATOM got added twice. Also add STRING when we see an
7640 * select.c (get-selection-internal): Removed symbol stripping. No
7641 longer causes conversion when data comes from the internal cache.
7643 * select.c (syms_of_select): Added new functions.
7645 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7646 error checking - previously this called abort!
7648 * select-x.c (x_own_selection): Changed comment.
7650 * select-x.c (x_handle_selection_request): Use select_convert_out.
7651 Don't mess with selection-alist; it's an internal variable of select.c.
7653 * select-x.c (x_get_foreign_selection): Use select_convert_in.
7655 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7656 rather than messing with selection-alist.
7658 * select-msw.c (mswindows_get_foreign_selection):
7659 Use TO_INTERNAL_FORMAT rather than hacking.
7661 2000-07-14 Martin Buchholz <martin@xemacs.org>
7663 * process-unix.c (unix_open_multicast_group):
7664 (unix_open_multicast_group): Remove useless casts.
7666 2000-07-13 Martin Buchholz <martin@xemacs.org>
7668 * sound.c (Fplay_sound): Fix `unused variable' warning.
7670 * emacs.c (main): Use correct type for _environ on SCO5.
7672 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7674 * console.h (own_selection_method):
7675 * console.h (selection_exists_p_method):
7676 * console.h (available_selection_types_method): New.
7677 * console.h (register_selection_data_type_method): New.
7678 * console.h (selection_data_type_name): New.
7680 * console-msw.h (mswindows_destroy_selection): Declare it. New
7681 function & alist to track GlobalAlloc()'d handles that need
7682 releasing when the clipboard data gets replaced or emptied.
7684 * event-msw.c (mswindows_wnd_proc): Call it.
7686 * lisp.h, general.c (Qappend): New symbol representing a
7689 * select.c (own-selection-internal):
7690 * select.c (selection-exists-p):
7691 * select.c (available-selection-types): New.
7692 * select.c (register-selection-data-type): New.
7693 * select.c (selection-data-type-name): New. New functions to deal
7694 with device-specific selection data formats.
7695 * select.c (selection-converter-out-alist): Renamed.
7696 * select.c (selection-converter-in-alist): New.
7697 * select.c (selection-appender-alist): New. Added new alists.
7698 * select.c (syms_of_select, vars_of_select): Added new symbols &
7700 * select.c (get_local_selection): Split.
7701 * select.c: Removed spurious type checking - selections may now be
7702 of any type, not just strings.
7703 * select.c (own-selection-internal):
7705 * select.h, select.c (convert_selection): New. Created
7706 convert_selection() function based on get_local_selection().
7707 * select.h, select.c (QCF_*): New symbols representing mswindows
7709 * select.h, select.c (Qreplace_all, Qreplace_existing): New
7710 symbols representing `how-to-add' modes.
7712 * select-msw.c (x_sym_p): New.
7713 * select-msw.c (symbol_to_ms_cf): New.
7714 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7715 symbols & clipboard formats. Can also handle string names.
7716 * select-msw.c (mswindows_own_selection):
7717 * select-msw.c (mswindows_selection_exists_p):
7718 Added `data-type' parameter. Use it.
7719 * select-msw.c (mswindows_available_selection_types): New.
7720 * select-msw.c (mswindows_register_selection_data_type): New.
7721 * select-msw.c (mswindows_selection_data_type_name): New.
7722 * select-msw.c (mswindows_own_selection):
7723 * select-msw.c (mswindows_get_foreign_selection):
7724 * select-msw.c (mswindows_selection_exists_p): Rewrote.
7725 * select-msw.c (console_create_select_mswindows): Added new methods.
7726 * select-msw.c (mswindows_destroy_selection): New.
7727 * select-msw.c (Vhandle_alist): New list.
7728 * select-msw.c (mswindows_own_selection):
7730 * select-x.c (x_own_selection):
7731 * select-x.c (x_selection_exists_p):
7732 * select-x.c: Added some comments about maybe using new
7734 * select-x.c (x_own_selection):
7736 * specifier.c: Remove definition of Qappend (now in general.c)
7737 * specifier.c (syms_of_specifier): Remove Qappend.
7739 2000-07-12 Martin Buchholz <martin@xemacs.org>
7741 * config.h.in: Add socklen_t.
7743 * s/decosf4-0.h: No special compiler flags needed or desired.
7744 In particular, undefine _BSD for DEC OSF 4.0.
7746 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7748 * redisplay-msw.c (msprinter_frame_output_end): Added.
7749 (console_type_create_redisplay_mswindows): Referred the above.
7751 * frame.c (setup_frame_without_minibuffer): Do not create a
7752 default minibuffer frame on a printer device.
7754 * frame-msw.c (apply_dc_geometry): Added.
7755 (msprinter_start_page):
7756 (msprinter_init_frame_3):
7757 (msprinter_eject_page): Use it.
7759 * console-msw.h (struct msprinter_frame): Added pix_left and top,
7760 and removed residual duplex and orientation properties.
7762 2000-07-11 Martin Buchholz <martin@xemacs.org>
7764 * eval.c (function_argcount): Work around a DEC CC compiler bug.
7766 * unexalpha.c: Remove system prototypes from C sources!
7768 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
7770 * eval.c: Remove references to M-x edit-options in DEFUNs for
7771 `defvar' and `defconst'.
7773 2000-07-09 Martin Buchholz <martin@xemacs.org>
7775 * config.h.in: Remove SMART_INCLUDE hackery.
7778 * config.h.in: Don't use SMART_INCLUDE.
7780 * postgresql.h: Include libpq-fe.h here. Fix typo.
7781 * inline.c: Simply #include "postgresql.h"
7783 - Don't use SMART_INCLUDE
7784 - Use simply "const".
7785 - Use standard doc string conventions.
7786 - Use correct type for result of PQstatus.
7788 2000-07-09 Martin Buchholz <martin@xemacs.org>
7790 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7792 C++ compilation changes.
7793 * config.h.in (EXTERN_C): Define.
7794 * config.h.in (not): This is also a C++ keyword.
7795 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7796 * cm.c: Use EXTERN_C.
7797 * redisplay-tty.c: Use EXTERN_C.
7798 * sysdep.c: Use EXTERN_C. Remove Gould support.
7800 2000-07-09 Martin Buchholz <martin@xemacs.org>
7802 * general.c: Remove duplicate definition for Qfunction.
7804 2000-07-08 Ben Wing <ben@xemacs.org>
7806 * device-msw.c (msprinter_init_device):
7807 * device-msw.c (sync_printer_with_devmode):
7808 * device-msw.c (handle_devmode_changes):
7809 * device-msw.c (print_dialog_worker):
7810 * device-msw.c (Fmsprinter_apply_settings):
7811 * device-msw.c (hash_devmode):
7812 * device-msw.c (Fmsprinter_settings_despecialize):
7813 use Qmswindows_tstr, not Qctext.
7815 * vm-limit.c (check_memory_limits):
7816 avoid infinite loop printing warning messages.
7818 2000-07-05 Craig Lanning <lanning@scra.org>
7820 * Makefile.in.in: Add support for including the Windows resources
7821 when building with the cygwin and mingw targets.
7823 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7824 not set or not correct.
7825 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7826 (init_initial_directory): Don't try to use $PWD on the
7827 WIN32_NATIVE target.
7830 [[Add -mwindows to eliminate console window.]] not required --ben
7831 (HAVE_NATIVE_SOUND): removed; now handled by configure.
7832 (MAIL_USE_POP): removed; now handled by configure.
7834 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7835 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7836 (HAVE_NATIVE_SOUND): removed; now handled by configure.
7837 (MAIL_USE_POP): removed; now handled by configure.
7838 (ENCAPSULATE_STAT): from Dan Holmsand, added.
7839 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7840 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7842 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7843 up from <winsock.h> via systime.h.
7844 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7845 (getpagesize): from Dan Holmsand, added.
7846 Added #endif which was left dangling by Ben's mega patch; added
7847 comment to help prevent this in the future.
7849 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7851 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7853 * console-msw.h (struct mswindows_device): Removed unnecessary
7854 cached device geometry values.
7855 Added update_tick and an accessor macro.
7856 (Lisp_Devmode): Added lrecord declaration.
7857 (struct msprinter_device): Contain devmode as a Lisp object.
7858 Added mswindows_get_selected_frame_hwnd();
7860 * console.h (struct console_methods): Indentation nitpicking.
7862 * device-msw.c (mswindows_init_device): Do not initialize geometry
7863 cache. Initialize update tick.
7864 (mswindows_device_system_metrics): Ask the device for its geometry.
7865 (global_free_2_maybe):
7866 (devmode_to_hglobal):
7867 (handle_printer_changes):
7868 (ensure_not_printing):
7869 (print_dialog_worker):
7870 (Fmsprinter_print_setup_dialog):
7871 (Fmsprinter_print_dialog):
7874 (Fmsprinter_page_setup_dialog): Added functions.
7875 (sync_printer_with_devmode):
7876 (handle_devmode_changes):
7877 (Fmsprinter_get_settings):
7878 (Fmsprinter_select_settings):
7879 (Fmsprinter_apply_settings):
7881 (Fmsprinter_settings_copy):
7882 (Fmsprinter_settings_despecialize):
7886 (hash_devmode): Added functions
7887 (syms_of_device_mswindows): Init devmode lrecord class.
7889 * device.h: Added an exfun for find-device.
7891 * event-msw.c (mswindows_wnd_proc): Do not update the cached
7892 geometry; although, recreate the device compatible DC.
7894 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
7895 (msprinter_init_frame_3):
7896 (msprinter_frame_property):
7897 (msprinter_internal_frame_property_p):
7898 (msprinter_frame_properties):
7899 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
7900 print job properties (will move to device settings).
7902 * lisp.h: Added symbols.
7904 * general.c (syms_of_general): Declared them.
7906 * hash.c (string_hash): Added.
7908 * lrecord.h (lrecord_type): Added devmode lrecord type.
7910 2000-07-02 Mike Sperber <mike@xemacs.org>
7912 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
7915 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
7917 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
7920 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
7922 * data.c (Fstring_to_number): Don't recognize floating point if
7925 2000-06-22 Martin Buchholz <martin@xemacs.org>
7927 * glyphs-widget.c (tab_control_query_geometry):
7928 (widget_query_geometry):
7929 (button_query_geometry):
7930 * glyphs.c (text_query_geometry):
7931 Enforce type correctness.
7933 2000-06-18 Martin Buchholz <martin@xemacs.org>
7935 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
7936 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
7938 2000-06-17 Martin Buchholz <martin@xemacs.org>
7940 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
7941 conflicts with gcc's fixincluded version of FOO.h.
7943 * glyphs.h (image_instance_geometry): Remove trailing `,'
7945 2000-06-08 Mike Alexander <mta@arbortext.com>
7947 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
7948 (shove_thread): Don't write the same output twice
7949 (make_ntpipe_output_stream): Increase priority of shove thread
7950 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
7952 (ntpipe_shove_closer): Don't delete the pipe until we're done with
7955 2000-06-12 Ben Wing <ben@xemacs.org>
7957 * s\mingw32.h (sigset):
7958 * s\windowsnt.h (sigset):
7959 rename msw_ to mswindows_ for consistency with general convention.
7961 2000-06-12 Ben Wing <ben@xemacs.org>
7964 * console-msw.c (mswindows_get_console_hwnd):
7965 * console-msw.c (mswindows_ensure_console_allocated):
7966 * console-msw.c (mswindows_hide_console):
7967 * console-msw.c (mswindows_show_console):
7968 * console-msw.c (mswindows_ensure_console_buffered):
7969 * console-msw.c (mswindows_output_console_string):
7970 * console-msw.c (mswindows_windows9x_p):
7972 * device-msw.c (mswindows_get_workspace_coords):
7973 * device-msw.c (mswindows_device_system_metrics):
7974 * dialog-msw.c (mswindows_popup_dialog_box):
7975 * event-msw.c (mswindows_wnd_proc):
7976 * frame-msw.c (mswindows_size_frame_internal):
7977 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7978 * menubar-msw.c (displayable_menu_item):
7979 * menubar-msw.c (mswindows_char_is_accelerator):
7981 * nt.c (mswindows_sigset):
7982 * nt.c (mswindows_sigrelse):
7983 * nt.c (mswindows_sigpause):
7984 * nt.c (mswindows_raise):
7985 * nt.c (timer_proc):
7987 * ntproc.c (find_child_console):
7988 * ntproc.c (sys_kill):
7990 * print.c (std_handle_out_external):
7991 * process-nt.c (find_child_console):
7992 * process-nt.c (send_signal_the_95_way):
7993 * process-nt.c (ensure_console_window_exists):
7994 * process-nt.c (nt_create_process):
7996 rename msw_ to mswindows_ for consistency with general convention.
8000 include nt.h, not syswindows.h.
8002 * nt.c (mswindows_fstat):
8003 * nt.c (mswindows_stat):
8004 prefix mswindows_ instead of attempting to directly override the
8005 library functions. fix declarations.
8008 include syswindows.h. move some sysdep.h stuff here.
8011 include syswindows.h, not <windows.h>.
8019 * sysdep.c (sys_fstat):
8020 * sysdep.c (sys_stat):
8021 call mswindows versions when appropriate.
8024 move mswin decls to nt.h.
8027 add long comment describing appropriate use of the various windows
8030 2000-06-11 Ben Wing <ben@xemacs.org>
8032 * device-x.c: Correct doc string for sixth arg of x-get-resource.
8034 2000-06-10 Ben Wing <ben@xemacs.org>
8036 * Makefile.in.in (release):
8037 Correction to make sure xemacs.exe always dumped when correct.
8041 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8043 * buffer.c (set_buffer_internal):
8044 [[[[2]]]]: Remove HAVE_FEP code.
8046 * buffer.c (init_initial_directory):
8050 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8054 * callproc.c (call_process_cleanup):
8055 * callproc.c (Fold_call_process_internal):
8056 * callproc.c (child_setup):
8057 * callproc.c (getenv_internal):
8058 * callproc.c (init_callproc):
8059 * callproc.c (vars_of_callproc):
8060 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8061 __CYGWIN32__ -> CYGWIN.
8062 DOS_NT -> WIN32_NATIVE.
8063 Remove MSDOS support/references, converting to WIN32_NATIVE
8065 __MINGW32__ -> MINGW.
8066 Fix windows.h includes.
8067 Remove bogus HAVE_NTGUI.
8073 mswindows_message_outputted added for use in allowing startup
8074 errors on the console to be seen.
8076 * console-msw.c (msw_ensure_console_allocated):
8077 * console-msw.c (msw_output_console_string):
8078 * console-msw.c (DHEADER):
8079 * console-msw.c (DOPAQUE_DATA):
8080 * console-msw.c (DEVENT):
8081 * console-msw.c (DCONS):
8082 * console-msw.c (DCONSCDR):
8083 * console-msw.c (DSTRING):
8084 * console-msw.c (DVECTOR):
8085 * console-msw.c (DSYMBOL):
8086 * console-msw.c (DSYMNAME):
8089 * console-stream.c (stream_init_console):
8090 Fix text/binary problems.
8093 * device-msw.c (mswindows_finish_init_device):
8094 * device-msw.c (mswindows_delete_device):
8097 * device.c (handle_asynch_device_change):
8101 * dgif_lib.c (DGifOpenFileName):
8102 * dgif_lib.c (DGifOpenFileHandle):
8103 * dgif_lib.c (DGifGetLine):
8104 * dgif_lib.c (DGifGetPixel):
8105 Added config.h/lisp.h, fix up includes.
8112 * dired.c (file_name_completion):
8113 * dired.c (Ffile_attributes):
8114 * dired.c (syms_of_dired):
8118 * dumper.c (pdump_file_unmap):
8119 * dumper.c (pdump_load):
8123 * editfns.c (Ftemp_directory):
8124 * editfns.c (user_login_name):
8125 * editfns.c (Fuser_real_login_name):
8126 * editfns.c (get_home_directory):
8129 * elhash.c (finish_marking_weak_hash_tables):
8130 [[[[5]]]]: Fix GCC warnings.
8133 * emacs.c (mswindows_handle_hardware_exceptions):
8134 * emacs.c (make_arg_list_1):
8136 * emacs.c (Fkill_emacs):
8137 * emacs.c (Fdump_emacs):
8139 Fix problems with nested crashes, add long comment.
8141 * event-Xt.c (init_event_Xt_late):
8145 * event-msw.c (mswindows_dde_callback):
8146 * event-msw.c (mswindows_handle_sticky_modifiers):
8147 * event-msw.c (mswindows_wnd_proc):
8151 * events.c (character_to_event):
8155 * fileio.c (Ffile_name_directory):
8156 * fileio.c (Ffile_name_nondirectory):
8157 * fileio.c (directory_file_name):
8158 * fileio.c (Fexpand_file_name):
8159 * fileio.c (Fsubstitute_in_file_name):
8160 * fileio.c (Ffile_name_absolute_p):
8161 * fileio.c (check_executable):
8162 * fileio.c (Ffile_readable_p):
8163 * fileio.c (Ffile_accessible_directory_p):
8164 * fileio.c (Ffile_modes):
8165 * fileio.c (Funix_sync):
8166 * fileio.c (vars_of_fileio):
8169 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8171 Expand getdefdir defn.
8172 Fix bogus rename() comment.
8174 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
8175 to use standard XEmacs include files, e.g. sysfile.h, rather
8176 than system-specific includes.
8182 * frame.c (vars_of_frame):
8186 * getloadavg.c (getloadavg):
8188 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
8189 (We don't use it elsewhere in the code; just add a comment.)
8196 * glyphs-msw.c (mswindows_resource_instantiate):
8199 * glyphs-x.c (x_native_layout_instantiate):
8202 * gui-msw.c (Fmswindows_shell_execute):
8211 * lread.c (locate_file_in_directory_mapper):
8218 * mem-limits.h (get_lim_data):
8230 * nt.c (rva_to_section):
8231 * nt.c (mswindows_executable_type):
8233 Fix closedir() defn.
8236 [[[[8]]]]: *_OK defs moved to sysfile.h.
8245 * print.c (std_handle_out_external):
8249 * process-nt.c (nt_create_process):
8251 try to fix process quoting somewhat.
8253 * process-unix.c (unix_create_process):
8257 * process.c (vars_of_process):
8264 * realpath.c (xrealpath):
8267 * redisplay-tty.c (init_tty_for_redisplay):
8277 * sheap.c (more_static_core):
8278 * sheap.c (report_sheap_usage):
8282 * signal.c (alarm_signal):
8289 * strftime.c (zone_name):
8292 * symsinit.h (init_sunpro):
8296 commctrl.h not in Cygwin b20.1.
8300 * sysdep.c (sys_subshell):
8301 * sysdep.c (init_baud_rate):
8302 * sysdep.c (emacs_get_tty):
8303 * sysdep.c (emacs_set_tty):
8304 * sysdep.c (tty_init_sys_modes_on_device):
8305 * sysdep.c (init_system_name):
8306 * sysdep.c (sys_open):
8307 * sysdep.c (interruptible_open):
8308 * sysdep.c (sys_fopen):
8309 * sysdep.c (sys_mkdir):
8310 * sysdep.c (sys_rename):
8311 * sysdep.c (get_process_times_1):
8318 * sysdir.h (DIRENTRY_NONEMPTY):
8321 * sysdll.c (dll_init):
8327 added text/binary defs.
8333 * sysproc.h (EDESTADDRREQ):
8334 * sysproc.h (poll_fds_for_input):
8351 Always define WIN32_LEAN_AND_MEAN.
8353 * unexcw.c (unexec):
8357 * unexec.c (copy_text_and_data):
8358 * unexec.c (adjust_lnnoptrs):
8362 * unexnt.c (_start):
8365 2000-06-07 Ben Wing <ben@xemacs.org>
8367 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
8368 was used only as a model. We've long since extracted any useful
8369 logic or code out of this. (I just did an exhaustive search.)
8371 * s\msdos.h: Removed.
8373 * s\windows95.h: Removed.
8375 2000-06-10 Ben Wing <ben@xemacs.org>
8379 Don't use extern with fun defs.
8383 Remove nt\inc include.
8384 Remove getdisk, getdefdir. (The former is unused, the latter
8385 expanded in fileio.h.)
8388 * s\windowsnt.h (WIN32_NATIVE):
8389 * s\windowsnt.h (HAVE_STRCASECMP):
8391 Add long comment about preprocessor changes.
8392 Remove getdisk, getdefdir. (The former is unused, the latter
8393 expanded in fileio.h.)
8395 2000-06-10 Ben Wing <ben@xemacs.org>
8404 Remove bogus/unused NO_SOCK_SIGIO.
8406 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
8408 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8411 2000-06-04 Mike Sperber <mike@xemacs.org>
8413 * casetab.c (set_case_table): For `set-standard-case-table',
8414 actually deposit the new case tables where the rest of XEmacs can
8417 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
8419 * data.c (Faset): Don't cast XCHAR() to unsigned char.
8421 2000-06-05 Ben Wing <ben@xemacs.org>
8423 * callproc.c (child_setup): Don't do close_load_descs() under
8424 MS Windows. Put in a comment explaining why.
8426 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
8428 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8429 Toolkit shell" which breaks `kill-compilation' on Windows NT
8430 native, retaining STDERR handling improvements.
8432 2000-06-01 Andreas Jaeger <aj@suse.de>
8434 * s/s390.h: Support for S390, based on a patch by Martin
8435 Schwidefsky <schwidefsky@de.ibm.com>.
8437 2000-05-30 Andy Piper <andy@xemacs.org>
8439 * window.c (allocate_window):
8440 (make_dummy_parent):
8441 (Fset_window_configuration): use new hashtable type.
8443 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8444 (struct image_instantiator_methods):
8445 (struct Lisp_Image_Instance): make instance geometry signed.
8447 * glyphs.c (instantiate_image_instantiator):
8448 (image_instance_query_geometry):
8449 (image_instance_layout):
8450 (image_instance_layout):
8451 (query_string_geometry):
8452 (text_query_geometry):
8453 (image_instantiate):
8454 (image_instantiate):
8455 (cache_subwindow_instance_in_frame_maybe):
8456 (subwindow_query_geometry): make instance geometry signed.
8458 * glyphs-widget.c (widget_query_geometry):
8460 (button_query_geometry):
8461 (tree_view_query_geometry):
8462 (tab_control_query_geometry):
8463 (layout_query_geometry):
8465 (native_layout_layout): make instance geometry signed.
8467 2000-05-29 Olivier Galibert <galibert@pobox.com>
8469 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8472 * general.c (syms_of_general): Add Qfull_assoc symbol.
8474 * data.c (finish_marking_weak_lists): Mark full-assoc lists
8476 (decode_weak_list_type): Decode full-assoc type.
8477 (encode_weak_list_type): Encode full-assoc type.
8478 (Fmake_weak_list): Update doc string.
8480 2000-05-30 Andy Piper <andy@xemacs.org>
8482 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8484 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8485 (decode_hash_table_weakness): ditto.
8486 (Fhash_table_weakness): ditto.
8487 (Fhash_table_type): ditto.
8488 (finish_marking_weak_hash_tables): ditto.
8489 (hash_table_weakness_validate): ditto.
8490 (syms_of_elhash): ditto.
8492 2000-05-28 Martin Buchholz <martin@xemacs.org>
8494 * XEmacs 21.2.34 is released.
8496 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8498 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8500 (updating_line_start_cache): Gone.
8501 (regenerate_window): Replace resetting of VERTICAL_CLIP by
8502 generic code to force a minimum of 1 line laid out in the
8505 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8507 * glyphs.c (instantiate_image_instantiator): Check for initialized
8508 height & width no longer special cases IMAGE_NOTHING.
8509 (nothing_instantiate): Set height and width of instance.
8511 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
8513 * unexelf.c (unexec): Search for ".data" section.
8514 Initialize new_data2_offset from old_data_index.
8515 Remove redundant check for ElfW.
8517 2000-05-23 Andy Piper <andy@xemacs.org>
8519 * glyphs.c (get_image_instantiator_governing_domain): allow more
8520 specific domains as the governing domain rather than expecting an
8521 exact match. This fixes problems with layouts.
8523 2000-05-22 Andy Piper <andy@xemacs.org>
8525 * redisplay-output.c (compare_runes): check for non-images
8527 * glyphs.c (set_glyph_dirty_p): ditto.
8528 (update_glyph_cachel_data): ditto.
8530 * glyphs-widget.c (layout_post_instantiate): ditto.
8531 (layout_post_instantiate): ditto.
8533 * event-msw.c (mswindows_wnd_proc): warning removal.
8535 2000-05-12 Craig Lanning <CraigL@DyCon.com>
8537 * s\mingw32.h: Added #undef for CLASH_DETECTION.
8539 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8541 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8543 * nt.c (rva_to_section): mingw32 needs rva_to_section.
8544 (mswindows_executable_type): mingw32 now has enough headers for
8547 2000-05-20 Andy Piper <andy@xemacs.org>
8549 * console-msw.c (mswindows_output_last_error): ; -> ,
8551 2000-05-12 Andy Piper <andy@xemacs.org>
8553 * console-msw.c (FROB): compare ints with ints.
8555 2000-05-11 Andy Piper <andy@xemacs.org>
8557 * glyphs-x.c (x_finalize_image_instance): make minimal build
8560 2000-05-20 Ben Wing <ben@xemacs.org>
8563 * event-Xt.c (vars_of_event_Xt):
8564 move modifier-keys-are-sticky to event-stream.c.
8567 * event-msw.c (mswindows_enqueue_mouse_button_event):
8568 * event-msw.c (key_needs_default_processing_p):
8569 * event-msw.c (XEMSW_LCONTROL):
8570 * event-msw.c (mswindows_handle_sticky_modifiers):
8571 * event-msw.c (FROB):
8572 * event-msw.c (clear_sticky_modifiers):
8573 * event-msw.c (output_modifier_keyboard_state):
8574 * event-msw.c (output_alt_keyboard_state):
8575 * event-msw.c (mswindows_wnd_proc):
8576 * event-msw.c (mswindows_modifier_state):
8577 * event-msw.c (emacs_mswindows_handle_magic_event):
8578 implement sticky modifiers.
8581 * event-stream.c (vars_of_event_stream):
8582 move modifier-keys-are-sticky here.
8588 implement map-range-table.
8591 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
8593 * redisplay-tty.c (reset_tty_modes):
8594 (tty_redisplay_shutdown): Adjust argument type to
8595 tty_frame_output_end.
8597 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
8599 * eval.c (Fbacktrace): Don't output a line with only right
8602 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
8604 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8605 (Fpq_reset_poll): Ditto.
8607 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
8609 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8611 2000-05-16 Ben Wing <ben@xemacs.org>
8614 * buffer.c (dfc_convert_to/from_internal_format):
8615 * buffer.c (reinit_vars_of_buffer):
8616 Fix conversion functions to allow reentrancy.
8619 * console-msw.c (mswindows_output_last_error):
8620 New fun, generally useful -- output a human-readable
8621 version of GetLastError() on the console.
8624 * console-msw.h (struct mswindows_frame):
8625 Changes for DeferWindowPos. Declare mswindows_output_last_error().
8627 * console-stream.c (stream_output_begin):
8628 * console-stream.c (stream_output_end):
8629 * console-stream.c (stream_output_vertical_divider):
8630 * console-stream.c (stream_clear_region):
8631 * console-stream.c (stream_flash):
8632 * console-stream.c (console_type_create_stream):
8633 Delete blank stream methods, not needed.
8635 * console.h (struct console_methods):
8636 Split begin/end methods into window and frame.
8639 * event-msw.c (mswindows_handle_paint):
8640 * event-msw.c (output_alt_keyboard_state):
8641 * event-msw.c (mswindows_wnd_proc):
8642 * event-msw.c (vars_of_event_mswindows):
8643 Comment about problems with ignored-expose.
8644 Define mswindows-debug-events; not really implemented.
8646 * frame-msw.c (mswindows_init_frame_1):
8650 * glyphs-msw.c (begin_defer_window_pos):
8651 * glyphs-msw.c (mswindows_unmap_subwindow):
8652 * glyphs-msw.c (mswindows_map_subwindow):
8653 * glyphs-msw.c (mswindows_resize_subwindow):
8654 Use DeferWindowPos to reduce flashing when mapping/unmapping.
8656 * glyphs.c (make_image_instance_1):
8659 * gutter.c (Fredisplay_gutter_area):
8660 Use new begin/end methods.
8662 * lisp.h (Dynarr_new2):
8666 * redisplay-msw.c (mswindows_frame_output_begin):
8667 * redisplay-msw.c (mswindows_frame_output_end):
8668 * redisplay-msw.c (console_type_create_redisplay_mswindows):
8669 New begin/end methods -- handle DeferWindowPos.
8671 * redisplay-output.c (redisplay_move_cursor):
8672 * redisplay-output.c (redraw_cursor_in_window):
8673 * redisplay-output.c (redisplay_update_line):
8674 * redisplay-output.c (redisplay_output_window):
8675 New begin/end methods.
8678 * redisplay-tty.c (tty_frame_output_begin):
8679 * redisplay-tty.c (tty_frame_output_end):
8680 * redisplay-tty.c (console_type_create_redisplay_tty):
8681 New begin/end methods.
8684 * redisplay-x.c (x_window_output_begin):
8685 * redisplay-x.c (x_window_output_end):
8686 * redisplay-x.c (console_type_create_redisplay_x):
8687 New begin/end methods.
8689 * redisplay.c (redisplay_frame):
8690 * redisplay.c (Fredisplay_echo_area):
8691 New begin/end methods.
8692 use MAYBE_DEVMETH for clear_frame; it may not exist.
8694 * window.h (WINDOW_XFRAME):
8695 WINDOW_XFOO macros -- get locale and decode struct pointer.
8698 2000-05-12 Ben Wing <ben@xemacs.org>
8701 * emacs.c (ensure_no_quitting_from_now_on):
8702 * emacs.c (fatal_error_signal):
8703 * emacs.c (mswindows_handle_hardware_exceptions):
8705 * emacs.c (Fkill_emacs):
8706 * emacs.c (shut_down_emacs):
8707 * emacs.c (assert_failed):
8708 various improvements in fatal error handling.
8711 move preparing_for_armageddon to emacs.c.
8714 declare fatal_error_in_progress.
8717 * print.c (std_handle_out_external):
8718 * print.c (std_handle_out_va):
8719 * print.c (stderr_out):
8720 * print.c (stdout_out):
8721 use console under mswin when no standard output.
8722 don't do code conversion during fatal error.
8724 * scrollbar.c (Fscrollbar_page_up):
8725 * scrollbar.c (Fscrollbar_page_down):
8726 fix missing else. reindent.
8728 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
8732 * glyphs.h (GLYPH_CACHEL_DESCENT):
8733 (GLYPH_CACHEL_DESCENT):
8734 (GLYPH_CACHEL_DESCENT):
8735 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8736 used in case these are inline functions.
8737 Use more absurd values to error check.
8739 include window.h for error check functions.
8741 2000-05-11 Ben Wing <ben@xemacs.org>
8743 * cmdloop.c (Freally_early_error_handler):
8744 Display message box under windows; otherwise, message will disappear
8745 before it can be viewed.
8748 * console-msw.c (Fmswindows_message_box):
8749 * console-msw.c (FROB):
8750 * console-msw.c (syms_of_console_mswindows):
8751 Define new fun `mswindows-message-box'.
8752 #### I will merge this into `popup-dialog-box'; just give me
8756 * general.c (syms_of_general):
8757 Some new symbols used in `mswindows-message-box'.
8760 * glyphs.c (Fset_image_instance_property):
8761 put warning in this fun.
8764 * glyphs.h (GLYPH_CACHEL_WIDTH):
8765 * glyphs.h (GLYPH_CACHEL_ASCENT):
8766 * glyphs.h (GLYPH_CACHEL):
8767 * glyphs.h (GLYPH_CACHEL_GLYPH):
8768 define error-checking versions to try to catch a bug i've seen --
8769 redisplay gets in an infinite loop because the glyph width of the
8770 continuation glyph is 65535.
8773 Extern message-box stuff.
8775 * window.c (allocate_window):
8776 * window.c (make_dummy_parent):
8777 * window.c (Fset_window_configuration):
8778 Use EQUAL not EQ for subwindow caches to make them work a bit
8779 better. (Something is still very broken.)
8782 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
8784 * glyphs.c (image_instantiate): Suppress gcc warnings.
8785 (Fmake_image_instance): Fix doc string.
8786 * specifier.c (Fmake_specifier): Ditto.
8788 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
8790 * paths.h.in (PATH_LOCK): Removed.
8791 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8792 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8794 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
8796 * fns.c (Ffeaturep): Update e-mail address in doc-string.
8797 Document (featurep '(and xemacs 21.02)).
8799 2000-05-09 Ben Wing <ben@xemacs.org>
8801 * buffer.c (complex_vars_of_buffer):
8802 update modeline-format doc.
8805 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8808 timeline of all released versions of Emacs, for use in creating
8809 authorship comments and in synching up.
8811 * glyphs-widget.c (image_instantiator_buttons):
8812 * glyphs-widget.c (image_instantiator_edit_fields):
8813 * glyphs-widget.c (image_instantiator_combo_box):
8814 * glyphs-widget.c (image_instantiator_scrollbar):
8815 * glyphs-widget.c (image_instantiator_progress_guage):
8816 * glyphs-widget.c (image_instantiator_tree_view):
8817 * glyphs-widget.c (image_instantiator_tab_control):
8818 * glyphs-widget.c (image_instantiator_labels):
8819 * glyphs-widget.c (image_instantiator_layout):
8820 * glyphs-widget.c (image_instantiator_native_layout):
8821 rename decode_domain method to governing_domain.
8824 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8825 * glyphs.c (add_entry_to_device_ii_format_list):
8826 make sure we don't put an entry more than once into the list.
8827 * glyphs.c (check_instance_cache_mapper):
8828 *************************************************************
8829 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8831 *************************************************************
8832 * glyphs.c (get_image_instantiator_governing_domain):
8833 clean up, expand on new concept of governing domain.
8834 * glyphs.c (instantiate_image_instantiator):
8835 * glyphs.c (allocate_image_instance):
8836 use governing_domain instead of cache_domain in naming.
8837 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8838 * glyphs.c (make_image_instance_1):
8839 * glyphs.c (Fmake_image_instance):
8840 allow for any domain (not just device), and process the
8841 governing domain correctly. very big doc fix.
8842 * glyphs.c (Fimage_instance_domain):
8843 new primitive, to retrieve the governing domain of an image instance.
8844 * glyphs.c (image_instantiate):
8845 use new governing_domain stuff. this fixes a crash you could get
8846 by instantiating certain widget glyphs in frame locales. (should
8847 signal an error instead of crashing.)
8848 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8849 * glyphs.c (Fglyphp): clean up doc.
8850 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8851 * glyphs.c (syms_of_glyphs):
8852 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8853 * glyphs.c (image_instantiator_format_create): add some comments about
8855 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8856 for current-display-table. (Apparently Hrjove implemented in 1998 a
8857 design I wrote up in 1996, but didn't update the doc string.)
8859 * glyphs.h: clean up a doc string.
8860 * glyphs.h (governing_domain):
8861 * glyphs.h (struct image_instantiator_methods):
8862 changes for governing_domain stuff.
8865 * gutter.c (Fgutter_specifier_p):
8866 * gutter.c (Fgutter_size_specifier_p):
8867 * gutter.c (Fgutter_visible_specifier_p):
8869 * objects.c (Fcolor_specifier_p):
8870 * objects.c (Ffont_specifier_p):
8871 * objects.c (Fface_boolean_specifier_p):
8872 doc strings moved to make-*-specifier.
8874 * redisplay.c (add_disp_table_entry_runes_1):
8875 * redisplay.c (generate_fstring_runes):
8876 * redisplay.c (screen):
8877 add random comments and doc strings.
8880 * specifier.c (Fmake_specifier):
8881 major overhaul of this doc string.
8883 * specifier.c (Fvalid_specifier_domain_p):
8884 comment about the bogosity of image instances being domains.
8885 * specifier.c (decode_domain):
8886 now non-static, used in glyphs.c.
8887 * specifier.c (specifier_instance):
8888 comment about the bogosity of image instances being domains.
8889 * specifier.c (Fgeneric_specifier_p):
8890 move doc string to make-generic-specifier.
8891 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
8895 * specifier.h (DOMAIN_FRAME):
8896 * specifier.h (DOMAIN_LIVE_P):
8897 * specifier.h (DOMAIN_XDEVICE):
8899 add comments about problems with these macros.
8900 prototype for decode_domain.
8903 * toolbar.c (Ftoolbar_specifier_p):
8904 move doc string to `make-toolbar-specifier'.
8906 * window.c (window_unmap_subwindows_cache_mapper):
8907 *************************************************************
8908 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8910 *************************************************************
8912 2000-05-09 Andy Piper <andy@xemacs.org>
8914 * glyphs.h: declare reset_frame_subwindow_instance_cache.
8916 * window.c (Fset_window_configuration): reset the frame subwindow
8917 cache and re-initialize the window subwindow caches.
8919 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
8921 2000-05-09 Ben Wing <ben@xemacs.org>
8923 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
8926 2000-04-26 Mike Woolley <mike@bulsara.com>
8928 * ntheap.c: Changed recreate_heap to limit the amount reserved
8929 for the heap to that which is actually available. Also now
8930 displays a message box (with some dignostics) in the event that
8931 it still can't start.
8933 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
8935 * callproc.c (Fold_call_process_internal): GCPRO path
8937 2000-05-08 Jan Vroonhof <jan@xemacs.org>
8939 Patch by Bill Perry.
8941 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
8942 back data instead of #ifdef.
8943 (Fscrollbar_page_down): ditto.
8945 2000-05-07 Ben Wing <ben@xemacs.org>
8948 Kludge for defining Qmswindows_tstr.
8951 * nt.c (open_input_file):
8952 * nt.c (open_output_file):
8953 * nt.c (rva_to_section):
8954 * nt.c (mswindows_executable_type):
8955 Move all memory-mapped-file routines here (some were in unexnt.c,
8956 which is bad because they are used by process-nt.c, and unexnt
8957 won't be around when portable dumping). Synched the above routines
8961 Removed ifdef'd out bogus code.
8962 Fixed some prototypes.
8965 * nt.h (OFFSET_TO_RVA):
8966 * nt.h (RVA_TO_OFFSET):
8967 * nt.h (RVA_TO_PTR):
8968 Moved the memory-mapped-file structures, macros and prototypes
8969 here, to parallel nt.c. ntheap.h should really be removed
8970 entirely, and it's a non-portable-dumper specific file.
8972 * ntheap.h (round_to_next):
8973 Moved the memory-mapped-file structures, macros and prototypes
8976 * ntproc.c (compare_env):
8977 Moved rva_to_section and mswindows_executable_type to nt.c.
8978 Moved compare_env to process-nt.c.
8979 ntproc.c will die, one day.
8981 * ntproc.c (sys_spawnve):
8982 Account for win32_ -> mswindows_.
8985 * process-nt.c (struct nt_process_data):
8986 * process-nt.c (ensure_console_window_exists):
8987 * process-nt.c (compare_env):
8988 * process-nt.c (nt_create_process):
8989 * process-nt.c (nt_kill_process_by_pid):
8990 * process-nt.c (syms_of_process_nt):
8991 * process-nt.c (vars_of_process_nt):
8992 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
8993 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
8994 changes). Eliminate our old `nt-quote-process-args' mechanism.
8995 Synch up nt_create_process with FSF 20.6 sys_spawnve.
8996 Move compare_env here from ntproc.c.
8998 * process.c (Fprocess_send_region):
8999 Takes an optional fourth argument, BUFFER, which should fix some
9000 problems with call-process.
9003 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9006 Move ICC_BAR_CLASSES to syscommctrl.h.
9007 Add preliminary macros for MSWindows/Mule. More to come.
9010 * unexnt.c (unexec):
9011 open_output_file moved to nt.c.
9014 2000-05-05 Andy Piper <andy@xemacs.org>
9016 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9017 instance from the frame cache also since GC may catch up too late
9018 to make frame deletion sane.
9020 2000-05-04 Andy Piper <andy@xemacs.org>
9022 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9023 (x_finalize_image_instance): ungcpro on deletion.
9025 * glyphs.c (image_instantiator_format_create): give pointers a
9026 query geometry method so that the geometry is at least set.
9028 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9029 initialize layouts if using widgets.
9031 2000-05-03 Andy Piper <andy@xemacs.org>
9033 * nt.c: remove bogus reference to sysmmsystem.h
9035 * gui-x.c (popup_selection_callback): fix no selection abort.
9037 2000-05-02 Andy Piper <andy@xemacs.org>
9039 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9040 (mswindows_widget_instantiate): ditto.
9042 * glyphs-widget.c (initialize_widget_image_instance): initialize
9044 (widget_instantiate): cope with children and items in the same
9047 * glyphs.c (mark_image_instance): cope with children as a first
9049 (image_instance_equal): ditto.
9050 (image_instance_hash): ditto.
9051 (image_instance_changed): ditto.
9053 2000-04-30 Andy Piper <andy@xemacs.org>
9055 * glyphs.c (subwindow_query_geometry): new function. Return some
9057 (subwindow_instantiate): don't assign dimensions if none have been
9059 (image_instantiator_format_create): add subwindow_query_geometry.
9060 (print_image_instance): cope with layouts as widgets.
9062 2000-04-29 Andy Piper <andy@xemacs.org>
9064 * frame.c (delete_frame_internal): call
9065 free_frame_subwindow_instance_cache so that all subwindows are
9066 finalized before their parent.
9067 (mark_frame): remove subwindow_cachels.
9068 (Fmake_frame): remove subwindow_cachel manipulation.
9069 (allocate_frame_core): subwindow_instance_cache is a weak list.
9070 (delete_frame_internal): set subwindow_instance_cache to nil.
9072 * glyphs-msw.c (mswindows_finalize_image_instance): make double
9074 (mswindows_finalize_image_instance): use the device
9075 not the domain as the domain may have died already.
9077 * glyphs-x.c (x_finalize_image_instance): ditto.
9078 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9081 * redisplay-output.c (redisplay_unmap_subwindows): update for
9082 subwindow instance cache as a weak list.
9083 (redisplay_unmap_subwindows_maybe): ditto.
9084 (redisplay_unmap_subwindows_except_us): ditto.
9086 * glyphs.c (unmap_subwindow): error checking will check the domain
9087 so don't deal with it here. Don't use cachels anymore.
9088 (map_subwindow): ditto.
9089 (update_subwindow_cachel_data): remove old accessor names.
9090 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9091 (Fresize_subwindow): don't update cachel.
9092 (mark_subwindow_cachels):
9093 (update_subwindow_cachel_data):
9094 (add_subwindow_cachel):
9095 (get_subwindow_cachel_index):
9096 (update_subwindow_cachel):
9097 (reset_subwindow_cachels):
9098 (mark_subwindow_cachels_as_not_updated): deleted.
9099 (cache_subwindow_instance_in_frame_maybe): new function. Add a
9100 subwindow instance to the frame cache.
9101 (find_matching_subwindow): update for subwindow instance cache as
9103 (update_widget_instances): ditto.
9104 (image_instance_type_to_mask):inlined.
9105 (free_frame_subwindow_instance_cache): new function. finalize all
9106 subwindows that are instantiated.
9108 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9109 of cachel information.
9110 (IMAGE_INSTANCE_DISPLAY_X):
9111 (IMAGE_INSTANCE_DISPLAY_Y):
9112 (IMAGE_INSTANCE_DISPLAY_WIDTH):
9113 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9114 (XIMAGE_INSTANCE_DISPLAY_X):
9115 (XIMAGE_INSTANCE_DISPLAY_Y):
9116 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9117 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9118 remove subwindow_cachel structure and function references.
9119 (image_instance_type_to_mask): inline from glyphs.c
9121 * redisplay.c (redisplay_frame): remove subwindow_cachel
9124 * frame.h (struct frame): remove subwindow_cachels.
9125 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9127 * frameslots.h: add subwindow_instance_cache.
9129 * window.c (replace_window): check subwindow cache of replacement.
9130 (window_unmap_subwindows_cache_mapper):
9131 (window_unmap_subwindows): new functions. Unmap all subwindows
9132 cached on this window.
9133 (mark_window_as_deleted): unmap all subwindows.
9135 2000-04-27 Andy Piper <andy@xemacs.org>
9137 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9139 * glyphs-widget.c (widget_layout): return something.
9140 (layout_layout): return something. Fail if not initialized.
9141 (layout_query_geometry): ditto.
9142 (image_instantiator_native_layout): new function. Initialized the
9144 (widget_instantiate): don't do layout stuff here.
9146 * glyphs.c (instantiate_image_instantiator): reorded calling or
9147 instantiate and post_instantiate with layout in between.
9148 (image_instance_layout): be more selective about deciding whether
9149 the layout has been done or not.
9151 * glyphs.h (struct image_instantiator_methods): return a value
9154 2000-04-26 Andy Piper <andy@xemacs.org>
9156 * glyphs.c (allocate_image_instance): make initial width and
9157 height unspecified. Set initialized to 0.
9159 * syscommctrl.h new file. Encapsulates commctrl.h.
9161 * syswindows.h new file. Encapsulates windows.h.
9163 * ntplay.c: use new syswindows.h and syscommctrl.h header.
9165 * console-msw.h: ditto.
9167 * redisplay-tty.c (tty_output_display_block): remove layout references.
9169 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9170 window handle rather than just the frame.
9172 * glyphs.c (mark_image_instance): remove layout references.
9173 (print_image_instance): ditto.
9174 (image_instance_equal): ditto.
9175 (image_instance_hash): ditto.
9176 (decode_image_instance_type): ditto.
9177 (encode_image_instance_type): ditto.
9178 (image_instantiate): ditto.
9179 (allocate_glyph): ditto.
9180 (Fimage_instance_height): ditto.
9181 (Fimage_instance_width): ditto.
9182 (update_subwindow): ditto.
9184 * redisplay-x.c (x_output_display_block): recode for layouts as
9187 * redisplay-output.c (redisplay_output_layout): recode for layouts
9189 (compare_runes): remove layout references.
9191 * redisplay-msw.c (mswindows_output_display_block): recode for
9194 * glyphs-widget.c (image_instantiator_layout): remove
9195 layout_possible_dest_types.
9196 (layout_possible_dest_types): deleted.
9198 * glyphs.h (image_instance_type): remove layout references.
9199 (struct Lisp_Image_Instance): ditto. Add initialized flag.
9200 (IMAGE_INSTANCE_INITIALIZED): new accessor.
9201 (XIMAGE_INSTANCE_INITIALIZED): ditto.
9203 2000-04-25 Andy Piper <andy@xemacs.org>
9205 * glyphs-widget.c (image_instantiator_buttons):
9206 (image_instantiator_edit_fields):
9207 (image_instantiator_combo_box):
9208 (image_instantiator_scrollbar):
9209 (image_instantiator_progress_guage):
9210 (image_instantiator_tree_view):
9211 (image_instantiator_tab_control):
9212 (image_instantiator_labels):
9213 (image_instantiator_layout): call default post_instantiate method.
9214 (widget_post_instantiate): new function. Simply lays out the
9217 * glyphs.h (struct image_instantiator_methods): add
9218 post_instantiate method.
9220 * glyphs.c (instantiate_image_instantiator): add post_instantiate
9223 2000-04-23 Andy Piper <andy@xemacs.org>
9225 * glyphs.h (struct image_instantiator_methods): add
9226 decode_domain_method.
9227 (struct Lisp_Image_Instance): remove subwindow frame - it can be
9228 derived from the domain.
9229 (IMAGE_INSTANCE_FRAME): new accessor.
9230 (XIMAGE_INSTANCE_FRAME): ditto.
9232 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9233 instead of _SUBWINDOW_FRAME.
9234 (finalize_image_instance): ditto.
9235 (Fimage_instance_foreground): ditto.
9236 (Fimage_instance_background): ditto.
9237 (image_instantiate): ditto.
9238 (update_subwindow_cachel): ditto.
9239 (update_subwindow): ditto.
9240 (unmap_subwindow): ditto.
9241 (map_subwindow): ditto
9242 (subwindow_instantiate): ditto.
9243 * glyphs-msw.c (mswindows_update_widget): ditto.
9244 (mswindows_progress_gauge_instantiate): ditto.
9245 (mswindows_tab_control_update): ditto.
9246 * glyphs-x.c (x_update_widget): ditto.
9247 (x_widget_instantiate): ditto.
9248 (x_tab_control_instantiate): ditto.
9249 (x_tab_control_update): ditto.
9250 * event-msw.c (mswindows_wnd_proc): ditto
9252 * glyphs-widget.c (image_instantiator_layout): use
9253 subwindow_decode_domain.
9254 (image_instantiator_buttons): ditto.
9255 (image_instantiator_edit_fields): ditto.
9256 (image_instantiator_combo_box): ditto.
9257 (image_instantiator_scrollbar): ditto.
9258 (image_instantiator_progress_guage): ditto.
9259 (image_instantiator_tree_view): ditto.
9260 (image_instantiator_tab_control): ditto.
9261 (image_instantiator_labels): ditto.
9262 (image_instantiator_layout): ditto.
9264 * glyphs.c: add instance error checking to many functions.
9265 (instantiate_image_instantiator): decode device from cache_domain.
9266 (image_instantiate): partially rewrite by using
9267 decode_image_instantiator_domain to determine what domain the
9268 instance needs to be cached in.
9269 (decode_image_instantiator_domain): new function. Determine what
9270 domain the image needs to be cached in.
9271 (check_window_subwindow_cache): new error checking function.
9272 (check_instance_cache_mapper): ditto.
9273 (check_image_instance_structure): ditto.
9274 (subwindow_decode_domain): new function. Encodes a window as a
9275 subwindow's cache domain.
9276 (image_instantiator_format_create): use it for text and
9279 2000-04-21 Andy Piper <andy@xemacs.org>
9281 * glyphs.c (image_instance_device): new function.
9282 (image_instance_frame): new function.
9283 (image_instance_window): new function.
9284 (image_instance_live_p): new function.
9286 * window.c (mark_window_as_deleted): reset the subwindow_instance_
9289 * glyphs.h (struct Lisp_Image_Instance): device->domain.
9290 (IMAGE_INSTANCE_DOMAIN): new accessor.
9291 (XIMAGE_INSTANCE_DOMAIN): ditto.
9293 * glyphs-x.c (x_finalize_image_instance): device->domain.
9295 * glyphs-msw.c (init_image_instance_geometry): device->domain.
9296 (mswindows_finalize_image_instance): ditto.
9298 * glyphs-eimage.c (jpeg_instantiate): device->domain.
9299 (gif_instantiate): ditto.
9300 (png_instantiate): ditto.
9301 (tiff_instantiate): ditto.
9303 * glyphs.c (instantiate_image_instantiator): use domain rather
9305 (mark_image_instance): device -> domain.
9306 (print_image_instance): ditto.
9307 (finalize_image_instance): ditto.
9308 (image_instance_equal): ditto.
9309 (allocate_image_instance): ditto.
9310 (Fcolorize_image_instance): ditto.
9311 (query_string_geometry): ditto.
9312 (image_instantiate): ditto
9313 (query_string_font): ditto.
9314 (image_instantiate): ditto.
9315 (update_subwindow): ditto.
9316 (unmap_subwindow): ditto.
9317 (map_subwindow): ditto.
9318 (subwindow_instantiate): ditto.
9320 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9321 (DOMAIN_FRAME): ditto.
9322 (DOMAIN_WINDOW): ditto.
9323 (DOMAIN_LIVE_P): ditto.
9324 (XDOMAIN_DEVICE): ditto.
9325 (XDOMAIN_FRAME): ditto.
9326 (XDOMAIN_WINDOW): ditto.
9328 * specifier.c (Fvalid_specifier_domain_p): add image instances as
9329 a valid specifier domain.
9331 2000-04-19 Andy Piper <andy@xemacs.org>
9333 * glyphs-widget.c (syms_of_glyphs_widget): remove
9334 widget-callback-current-channel.
9335 (vars_of_glyphs_widget): ditto.
9338 * gui.c (get_gui_callback): revert to previous behaviour.
9340 2000-04-18 Andy Piper <andy@xemacs.org>
9342 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9343 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9344 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9346 * glyphs.c (image_instance_equal): add margin_width.
9347 (image_instance_hash): ditto.
9349 * glyphs-widget.c (widget_instantiate): deal with margin-width.
9350 (layout_query_geometry): ditto.
9351 (layout_layout): ditto.
9352 (syms_of_glyphs_widget): add margin-width.
9353 (image_instantiator_layout): allow margin-width.
9355 * glyphs.c (update_widget_instances): make a normal function.
9356 (syms_of_glyphs): remove Qupdate_widget_instances.
9359 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9360 so that we don't corrupt ideas about the last event or
9361 command. Remove widget-callback-current-channel fiddling.
9362 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9364 2000-05-01 Martin Buchholz <martin@xemacs.org>
9366 * XEmacs 21.2.33 is released.
9368 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
9370 * make-src-depend: Allow dots in header file name.
9372 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
9374 * mule-charset.h (struct charset_lookup): Add
9375 next_allocated_1_byte_leading_byte and
9376 next_allocated_2_byte_leading_byte.
9377 * mule-charset.c: Move above two variables so that those values
9380 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
9382 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9383 when string length is zero.
9384 (find_charsets_in_emchar_string): Ditto.
9386 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
9388 * lisp.h: extern Qdialog and Qmenubar.
9390 * gui-x.c: added events.h.
9391 also fixed typo which made the file uncompilable.
9393 * general.c: Added Qmenubar and Qdialog
9395 2000-04-28 Ben Wing <ben@xemacs.org>
9397 * frame-msw.c (mswindows_init_frame_1):
9398 * frame-msw.c (mswindows_mark_frame):
9399 * event-msw.c (mswindows_enqueue_dispatch_event):
9401 * console-msw.h (struct mswindows_frame):
9402 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9403 there are now three hash tables for callbacks.
9404 mswindows_enqueue_dispatch_event is no longer static.
9406 * dialog-x.c (maybe_run_dbox_text_callback):
9407 * dialog-x.c (dbox_descriptor_to_widget_value):
9408 switch to new cons3 form for callbacks.
9410 * glyphs-msw.c (mswindows_register_gui_item):
9411 * glyphs-msw.c (mswindows_widget_instantiate):
9412 * glyphs-msw.c (add_tree_item):
9413 * glyphs-msw.c (add_tab_item):
9414 new image instance parameter, so it can be passed to callback-ex.
9415 respect :callback-ex as well as :callback.
9417 * glyphs-widget.c (VALID_GUI_KEYWORDS):
9420 * glyphs.c (print_image_instance):
9421 prettify, e.g. now prints widget type.
9424 certain funs have new image instance parameter.
9427 * gui.c (get_gui_callback):
9428 * gui.c (gui_item_add_keyval_pair):
9429 * gui.c (gui_item_init):
9430 * gui.c (gui_add_item_keywords_to_plist):
9431 * gui.c (mark_gui_item):
9432 * gui.c (gui_item_hash):
9433 * gui.c (gui_item_equal):
9434 * gui.c (copy_gui_item):
9435 * gui.c (syms_of_gui):
9436 recognize callback-ex in a number of places.
9437 also, fix the annoying "can't get out of yes-no dialog" bug.
9440 * gui.h (struct Lisp_Gui_Item):
9441 recognize callback-ex in a number of places.
9443 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9444 new parameter in button_item_to_widget_value.
9446 * glyphs-x.c (x_update_widget):
9447 * glyphs-x.c (x_button_instantiate):
9448 * glyphs-x.c (x_button_update):
9449 * glyphs-x.c (x_progress_gauge_instantiate):
9450 * glyphs-x.c (x_edit_field_instantiate):
9451 * glyphs-x.c (x_combo_box_instantiate):
9452 * glyphs-x.c (x_tab_control_instantiate):
9453 * glyphs-x.c (x_label_instantiate):
9454 new image instance parameter in various places.
9457 * event-Xt.c (enqueue_Xt_dispatch_event):
9458 this fun gets exported.
9461 * gui-msw.c (mswindows_handle_gui_wm_command):
9462 handle both :callback and :callback-ex, and generate our own
9463 event because it's one of the callback-ex arguments.
9466 * gui-x.c (popup_selection_callback):
9467 handle both :callback and :callback-ex, and generate our own
9468 event because it's one of the callback-ex arguments.
9469 * gui-x.c (button_item_to_widget_value):
9470 * gui-x.c (gui_items_to_widget_values_1):
9471 * gui-x.c (gui_item_children_to_widget_values):
9472 * gui-x.c (gui_items_to_widget_values):
9473 new image instance parameter in various places.
9475 * fns.c (Freplace_list):
9476 fix small typo in doc string.
9479 declare enqueue_Xt_dispatch_event.
9481 2000-04-28 Ben Wing <ben@xemacs.org>
9484 * buffer.c (Frecord_buffer):
9485 * buffer.c (syms_of_buffer):
9486 delete record-buffer-hook.
9489 * fns.c (Freplace_list):
9490 * fns.c (syms_of_fns):
9491 new primitive replace-list.
9494 slot for old buffer-alist.
9500 * redisplay.c (redisplay_frame):
9501 * redisplay.c (syms_of_redisplay):
9502 * redisplay.c (vars_of_redisplay):
9503 new hook buffer-list-changed-hook.
9506 2000-04-27 Ben Wing <ben@xemacs.org>
9508 * extents.h: extern in_modeline_generation.
9510 * redisplay.c (generate_formatted_string_db): set
9511 in_modeline_generation.
9513 * extents.c (extent_changed_for_redisplay): don't mark redisplay
9514 flags if in modeline generation. otherwise frame-modified-tick
9515 is ticked far too often.
9516 Declare in_modeline_generation.
9518 2000-04-26 Ben Wing <ben@xemacs.org>
9520 * emacs.c (vars_of_emacs): document quick-build "error-checking"
9522 (vars_of_emacs): add quick-build as an error-checking option.
9523 A bit kludgy, but there doesn't seem much point in creating
9524 a real var for this.
9526 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9528 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
9530 * redisplay.h (struct display_line): Add a new variable,
9533 * redisplay.c (create_text_block): Set dl->line_continuation if
9535 (create_string_text_block): Ditto.
9536 (regenerate_window_incrementally): Use line_continuation instead
9537 of searching continuation glyph.
9538 (add_margin_runes): Call add_glyph_rune.
9539 (add_glyph_rune): Handle margin glyph.
9541 2000-04-20 Martin Buchholz <martin@xemacs.org>
9543 * filelock.c (fill_in_lock_file_name):
9545 Check for IS_ANY_SEP instead of '/'.
9547 Avoid generating gratuitous garbage. Call user_login_name() directly.
9548 Never check errno without first seeing that system call failed.
9549 (unlock_file): Add GCPRO.
9550 (Flock_buffer): Fix docstring.
9551 (Ffile_locked_p): Fix docstring. Add GCPRO.
9553 2000-04-19 Martin Buchholz <martin@xemacs.org>
9555 * sysdep.c (get_pty_max_bytes):
9556 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9557 strings longer than 252 bytes.
9559 * md5.c: Unconditionally include ANSI header <limits.h>
9561 * glyphs-x.c (convert_EImage_to_XImage):
9562 * lisp-union.h (union Lisp_Object):
9563 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9565 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
9567 * filelock.c (current_lock_owner): Remove unused variable o, p.
9569 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
9571 * callint.c: Remove multiply defined symbol Qlet
9572 (syms_of_callint): ditto.
9574 2000-04-14 Andy Piper <andy@xemacs.org>
9576 * general.c (syms_of_general): add last-command, this-command, let
9579 * lisp.h: declare various symbols.
9581 * glyphs.h: declare Qwidget_callback_current_channel;
9583 * glyphs-widget.c (syms_of_glyphs_widget): add
9584 Qgui_callback_current_channel.
9585 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9587 * gui-msw.c (mswindows_handle_gui_wm_command): bind
9588 widget-callback-current-channel when invoking the interactive
9589 arg. Also bind last-command and next-command when invoking the
9591 * gui-x.c (popup_selection_callback): ditto.
9593 * gui.c (get_gui_callback): massage args so that we are always
9594 calling eval. This allows us to add our own variable bindings
9597 * glyphs-x.c (x_button_instantiate): use
9598 gui_items_to_widget_values since this is GC safe.
9599 (x_progress_gauge_instantiate): ditto.
9600 (x_edit_field_instantiate): ditto.
9601 (x_label_instantiate): ditto.
9603 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9604 (emacs_Xt_event_widget_focus_out): new function
9605 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9607 (emacs_Xt_event_add_widget_actions): new function. add focus
9608 functions as actions.
9609 (init_event_Xt_late): use it.
9611 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
9613 * event-stream.c (Fdispatch_event): Doc fix.
9615 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
9617 * postgresql.c: Remove all references to PQsetenv*.
9619 * postgresql.h: Remove references to PGsetenvHandler object.
9620 * lrecord.h (lrecord_type): Ditto.
9622 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9624 * glyphs-msw.h (struct mswindows_image_instance_data): Added
9625 real_heigh and real_width members, and accessor macros for these.
9627 * glyphs-msw.c (init_image_instance_geometry): New function.
9628 (init_image_instance_from_dibitmap): Use it.
9629 (mswindows_resource_instantiate): Use it.
9630 (init_image_instance_from_xbm_inline): Use it.
9631 (mswindows_initialize_image_instance_mask): Use real bitmap
9633 (mswindows_create_resized_bitmap): Ditto.
9634 (mswindows_create_resized_mask): Ditto.
9636 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9637 and bitmap to their surface size.
9639 2000-04-11 Jan Vroonhof <jan@xemacs.org>
9641 * process-unix.c (unix_send_process): Guard against process MIA
9642 after Faccept_process_output.
9644 2000-04-11 Ben Wing <ben@xemacs.org>
9646 * eval.c (unbind_to_hairy): fix brokenness introduced by
9647 nanosecond speed improvements.
9649 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
9651 * sunplay.c (init_device): To play sounds correctly, the device
9652 apparently needs to be initialized at least once by XEmacs. Make
9655 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
9657 * redisplay.c (add_margin_runes): Add text image glyph
9660 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
9662 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9663 gcc is newer than 2.5.
9665 2000-04-06 Colin Rafferty <colin@xemacs.org>
9667 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9669 * fns.c (size_bit_vector):
9670 * alloc.c (size_vector):
9671 (make_vector_internal):
9672 (make_bit_vector_internal):
9673 (sweep_bit_vectors_1):
9674 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9676 2000-04-06 Andy Piper <andy@xemacs.org>
9678 * gmalloc.c (malloc): undo previous change.
9683 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
9685 * line-number.c (buffer_line_number): Revert to former version.
9687 2000-04-06 Andy Piper <andy@xemacs.org>
9689 * gmalloc.c (malloc): add error checking.
9694 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9695 button_item_to_widget_value arg.
9697 * glyphs-x.c (x_button_instantiate): add extra
9698 button_item_to_widget_value arg.
9699 (x_progress_gauge_instantiate): ditto.
9700 (x_edit_field_instantiate): ditto.
9701 (x_label_instantiate): ditto.
9703 * gui-x.c (gui_items_to_widget_values_1): add extra
9704 button_item_to_widget_value arg.
9705 (button_item_to_widget_value): add extra menu_item_p arg.
9707 * gui-x.h: change signature of button_item_to_widget_value.
9709 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9710 button_item_to_widget_value arg.
9712 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
9714 * buffer.h (struct buffer): auto_save_modified should be long.
9716 2000-04-05 Andy Piper <andy@xemacs.org>
9718 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9720 (button_query_geometry): give a little more room so that athena
9723 2000-04-05 Andy Piper <andy@xemacs.org>
9725 * faces.c (complex_vars_of_faces): The widget face should inherit
9726 the font of the gui-element face.
9728 2000-04-04 Andy Piper <andy@xemacs.org>
9730 * glyphs-x.c (x_button_update): new function. unconditionally
9731 update a button's state when the instance is dirty.
9732 (image_instantiator_format_create_glyphs_x): add x_button_update.
9733 (x_widget_instantiate): remove old resize cruft.
9735 2000-04-02 Andy Piper <andy@xemacs.org>
9737 * frame.c (change_frame_size_1): The introduction of gutters means
9738 that we need to allow 0 as a potential frame dimension.
9740 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
9742 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9743 image glyph if allow_cursor.
9744 (add_hscroll_rune): Don't allow cursor to border glyph.
9745 (create_text_block): Ditto.
9747 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9749 (redisplay_output_layout): Call ensure_face_cachel_complete for
9753 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
9755 * redisplay.c (add_glyph_rune): Adding text image as text runes.
9757 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9760 * redisplay-tty.c (tty_output_display_block): Delete the routine
9761 for text image glyph
9762 * redisplay-x.c (x_output_display_block): ditto
9763 * redisplay-msw.c (mswindows_output_display_block): ditto
9765 2000-02-02 Mike Alexander <mta@arbortext.com>
9767 Note: Some of these were committed by accident as part of other
9770 * regex.c (regex_compile): Avoid compiler warnings.
9772 * ntproc.c (sys_spawnve): Avoid compiler warnings.
9774 * nt.h: Declare term_ntproc correctly.
9776 * nt.c: Remove incorrect declaration of get_home_directory which
9777 is declared correctly in lisp.h.
9779 * keymap.c (get_keyelt): Avoid compiler warnings.
9780 (raw_lookup_key_mapper): Avoid compiler warnings.
9782 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9784 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9786 * filemode.c (mode_string): Avoid compiler warnings.
9788 * file-coding.c (Fcoding_system_aliasee): Add return statement to
9791 * events-mod.h: Undef some things that winuser.h defines differently.
9793 * data.c (Faset): Avoid compiler warnings.
9795 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9797 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
9799 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9800 Fall through to simple beep on error.
9801 Replace "extern" by real header file.
9803 * linuxplay.c: Use nativesound.h
9804 (play_sound_data): Return error code. Be less verbose on error.
9806 * sunplay.c: Use nativesound.h
9807 (play_sound_data): Return error code. Be less verbose on error.
9809 * ntplay.c: Use nativesound.h
9810 (play_sound_data): Return fake error code
9812 * sgiplay.c: Use nativesound.h
9813 (play_sound_data): Return error code
9815 * hpplay.c: Use nativesound.h, partially implement
9816 new error code. Break compilation until finished.
9817 (play_sound_data): error code.
9819 * nativesound.h (play_sound_file):
9820 (play_sound_data): Prototype in new header.
9822 2000-03-31 Andy Piper <andy@xemacs.org>
9824 * glyphs-widget.c: (button_query_geometry): new function. Adjust
9825 for toggle and radio buttons.
9826 (image_instantiator_buttons): use it.
9828 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
9830 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9831 (x_update_horizontal_scrollbar_callback): Return if no mirror was
9832 found. Scrollbar event probably belonged to some old config.
9834 2000-03-31 Andy Piper <andy@xemacs.org>
9836 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9838 (initialize_widget_image_instance): default layout to
9839 LAYOUT_HORIZONTAL rather than 0.
9840 (widget_instantiate): reverse the item list at the end rather than
9842 (layout_layout): re-code for the border text at the front of the
9843 item list rather than at the end.
9844 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9845 provided by the user.
9846 (widget_query_geometry): comment.
9848 2000-03-30 Andy Piper <andy@xemacs.org>
9850 * glyphs-widget.c (image_instantiator_layout): allow standard
9851 widget keywords in layouts.
9853 * gutter.c (output_gutter): cope with nil gutter contents.
9855 * frame.c (Fset_frame_properties): add gutter docs.
9857 2000-03-29 Andy Piper <andy@xemacs.org>
9859 * toolbar-msw.c (TBSTYLE_FLAT): add.
9860 (mswindows_output_toolbar): minor fiddling.
9862 2000-03-29 Andy Piper <andy@xemacs.org>
9864 * gutter.c (output_gutter): force gutter size recalculation if
9865 what we are trying to display won't fit.
9866 (update_gutter_geometry): new function. A per-gutter version of
9867 update_frame_gutter_geometry.
9868 (update_frame_gutter_geometry): use it.
9869 (redraw_exposed_gutter): add extra debugging output.
9871 2000-03-28 Mike Alexander <mta@arbortext.com>
9873 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9874 (pdump_file_unmap): Implement it on Windows
9875 (pdump_file_get): Save alocated handles for pdump_file_unmap
9877 2000-03-28 Andy Piper <andy@xemacs.org>
9879 * gui.c (get_gui_callback): treat Quit specially.
9881 2000-03-27 Andy Piper <andy@xemacs.org>
9883 * glyphs.c (image_instantiate): be careful to check in the same
9886 2000-03-27 Didier Verna <didier@xemacs.org>
9888 * config.h.in: define the proper SMART_INCLUDE macro.
9889 handle renaming of `foo_h_path' to `foo_h_file'.
9891 * database.c: ditto.
9895 * linuxplay.c: ditto.
9897 * terminfo.c: ditto.
9899 * tooltalk.h: ditto.
9901 2000-03-27 Andy Piper <andy@xemacs.org>
9903 * glyphs-msw.c (mswindows_update_widget): make sure the widget
9904 gets updated whenever the face might have changed.
9906 2000-03-26 Mike Alexander <mta@arbortext.com>
9908 * dumper.c (pdump_resource_free): Fix the comment.
9910 2000-03-21 Olivier Galibert <galibert@pobox.com>
9912 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
9914 2000-03-22 Mike Alexander <mta@arbortext.com>
9916 * dumper.c: Include Windows headers on Windows
9917 (pdump_resource_free): Add a body to the function
9918 (pdump_load): exe_name -> exe_path and add some comments.
9920 2000-03-25 Mike Alexander <mta@arbortext.com>
9922 * gui.c (copy_gui_item_tree): Return a value in all cases
9924 2000-03-21 Didier Verna <didier@xemacs.org>
9926 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
9928 (SMART_INCLUDE): new macro.
9929 (POSTGRES_INCLUDE): new macro to include postgresql headers from
9930 the proper location.
9932 * postgresql.c: use it.
9936 2000-03-24 Andy Piper <andy@xemacs.org>
9938 * gutter.c (redraw_exposed_gutters): must be "in display" when we
9941 2000-03-24 Andy Piper <andy@xemacs.org>
9943 * redisplay-output.c (compare_runes): use image_instance_changed
9944 to detect changes. Do not depend on glyphs_changed, only depend on
9946 (redisplay_output_layout): add debug messages.
9947 (compare_runes): ditto.
9949 * glyphs.h: declare new functions.
9950 (struct Lisp_Image_Instance): remove percent and associated
9953 * gui.h: declare new copying functions.
9955 * gui.c (copy_gui_item_tree): new function.
9956 (copy_gui_item): new function.
9957 (gui_item_id_hash): revert to standard hash.
9958 (gui_item_hash): ditto.
9959 (gui_item_hash_internal): deleted.
9960 (mark_gui_item): mark value.
9961 (gui_item_add_keyval_pair): add value.
9962 (gui_item_init): ditto.
9963 (gui_add_item_keywords_to_plist): ditto.
9964 (gui_item_equal): ditto.
9965 (syms_of_gui): add Q_value.
9967 * glyphs-x.c (x_progress_gauge_update): use pending items and
9968 value for setting the state.
9969 (x_update_widget): don't set items from pending here.
9971 * glyphs-widget.c (update_widget): update items here.
9972 (progress_gauge_set_property): use items for storing value. Put
9973 new value in pending items.
9975 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
9976 items for new value. Convert percent -> value.
9977 (mswindows_tab_control_update): don't update items here.
9979 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
9980 (update_subwindow): ditto.
9981 (image_instance_changed): new function. Compare hash values and
9982 past and present widget items.
9983 (image_instantiate): We more careful about where we instantiate
9985 (image_instantiate): add error checking.
9987 * gutter.c (syms_of_gutter): use -hook.
9989 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
9991 * console-tty.c (Fset_console_tty_input_coding_system): Use
9993 (Fset_console_tty_output_coding_system): Use Qterminal.
9994 (tty_init_console): Use Qkeyboard and Qterminal.
9996 2000-03-21 Ben Wing <ben@xemacs.org>
9998 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
9999 From Mike Alexander <mta@arbortext.com>.
10001 2000-03-21 Ben Wing <ben@xemacs.org>
10003 * event-msw.c (mswindows_need_event): Horrible kludge to fix
10004 process brokenness. Proper implementation to come.
10006 Rename call-process-internal to old-call-process-internal.
10007 New impl. in process.el.
10009 2000-03-21 Martin Buchholz <martin@xemacs.org>
10011 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10013 2000-03-20 Andy Piper <andy@xemacs.org>
10015 * glyphs.c (full_list_hash): make hashes of the same elements in
10016 different orders return different values.
10018 2000-03-20 Martin Buchholz <martin@xemacs.org>
10020 * XEmacs 21.2.32 is released.
10022 2000-03-20 Martin Buchholz <martin@xemacs.org>
10024 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10025 (DFC_MALLOC_USE_CONVERTED_DATA):
10026 Add aliasing-safe casts to allow use with char* or unsigned char*
10029 * eldap.c (Fldap_open):
10030 (Fldap_search_basic):
10033 Make C++-compilable.
10034 Make sure GCPRO'ed variables are initialized.
10035 Use temp variables to avoid repeated calls to Flength.
10037 2000-03-16 Martin Buchholz <martin@xemacs.org>
10040 Make sure PATH_MAX is always defined.
10041 Include limits.h for PATH_MAX.
10042 Deprecate use of MAXPATHLEN.
10044 2000-03-10 Martin Buchholz <martin@xemacs.org>
10046 * emacs.c: Add reinit_vars_of_fileio.
10047 * symsinit.h: Add reinit_vars_of_fileio.
10048 * fileio.c (reinit_vars_of_fileio): New.
10049 * fileio.c (Fmake_temp_name):
10050 Initialize temp_name random number from microseconds to make
10051 collisions even less likely. Initialize always at process startup
10052 time. (make-temp-name) used to return the same file name twice in
10054 Random stylistic fiddling.
10057 2000-03-20 Andy Piper <andy@xemacs.org>
10059 * glyphs.c (image_instantiate): allow text glyphs to be
10060 instantiated in the minibuffer window.
10062 2000-03-19 Andy Piper <andy@xemacs.org>
10064 * glyphs.c (image_instance_hash): be careful about which items we
10067 * glyphs-widget.c (tab_control_set_property): record into pending
10068 items rather than the actual items.
10070 * glyphs-x.c (x_update_widget): use pending items to update with.
10072 * glyphs-msw.c (mswindows_tab_control_update): use pending items
10075 * glyphs.c (mark_image_instance): mark pending items.
10077 * window.c (Fset_window_configuration): record the buffer.
10078 (Fselect_window): totally revert previous change which breaks many
10081 2000-03-18 Andy Piper <andy@xemacs.org>
10083 * glyphs-msw.c (mswindows_tab_control_update): force selected
10086 * glyphs.c (image_instantiate): don't allow the minibuffer as a
10087 window domain cache, otherwise we get inconsistencies at
10088 startup. There is something fishy at startup which can lead to the
10089 minibuffer being the selected window when the gutter content is
10092 * gui.c (parse_gui_item_tree_list): add probably unnecessary
10094 (parse_gui_item_tree_children): ditto.
10095 (parse_gui_item_tree_item): ditto.
10097 * glyphs.c (Fupdate_widget_instances): return something.
10099 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
10101 * window.c (Fselect_window): Undo 2000-03-17 change.
10103 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
10105 * postgresql.c (Fpq_setenv): Remove this turkey when linking
10106 against v7.0 libraries. Insta-coredump city until the postgres
10109 2000-03-17 Andy Piper <andy@xemacs.org>
10111 * faces.c (complex_vars_of_faces): don't give the widget face an
10112 inherited background pixmap.
10114 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10117 * event-stream.c (Fdispatch_non_command_events): return something.
10119 * gutter.c (output_gutter): use widget face.
10120 (clear_gutter): ditto.
10122 * NEWS: adjust again.
10124 * window.c (Fselect_window): make sure this runs to completion to
10125 avoid oddities with Fset_window_configuration.
10126 (Fcurrent_window_configuration): in general do not save the
10127 minibuffer as the selected window.
10129 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10131 2000-03-16 Olivier Galibert <galibert@pobox.com>
10133 * emacs.c (Frunning_temacs_p): Revert previous patch.
10134 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10136 2000-03-16 Andy Piper <andy@xemacs.org>
10138 * glyphs-x.c (x_tab_control_update): if no widget values then
10141 * NEWS: update for new features.
10143 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10144 synthetic event to the native system.
10145 (reinit_vars_of_event_Xt): set force_event_pending to
10146 emacs_Xt_force_event_pending.
10148 * events.h (struct event_stream): add force_event_pending.
10150 * specifier.c (recompute_one_cached_specifier_in_window): add
10153 * redisplay.c (redisplay_frame): don't call
10154 update_frame_subwindows. Reset subwindow cachels when
10155 subwindows_changed, removing this was an optimization too far.
10157 * redisplay-output.c (compare_runes): reorganize so that we catch
10158 glyph changes when we want them. Set optimize_output when this
10159 would help layouts.
10160 (redisplay_output_layout): remove frame_really_changed, use
10161 optimize_output instead.
10163 * redisplay-msw.c (mswindows_output_display_block): reset
10164 optimize_output after outputting a glyph.
10165 * redisplay-x.c (x_output_display_block): ditto.
10166 * redisplay-tty.c (tty_output_display_block): ditto.
10168 * gutter.c: (specifier_vars_of_gutter): use new spec changed
10170 (gutter_specs_changed): do specific gutter positions.
10171 (top_gutter_specs_changed): new function. Only update the
10172 specified gutter specs.
10173 (bottom_gutter_specs_changed): ditto.
10174 (left_gutter_specs_changed): ditto.
10175 (right_gutter_specs_changed): ditto.
10177 * gui.c (gui_item_hash_internal): new function, does a real hash.
10178 (gui_item_id_hash): use it.
10179 (gui_item_hash): hash the eval'ed gui_item.
10181 * gui-x.c (popup_selection_callback): send an eval event to call
10182 Fupdate_widget_instances.
10184 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10185 to call Fupdate_widget_instances.
10187 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10188 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10190 * glyphs.c: (update_frame_subwindows): deleted.
10191 (Fupdate_widget_instances): new function for updating the dirty
10192 state of widgets that might have changed.
10193 (syms_of_glyphs): add Qupdate_widget_instances.
10194 (full_list_hash): hash a list completely.
10195 (image_instance_hash): use it for items and properties.
10197 * frame-msw.c (mswindows_size_frame_internal): remove unused
10200 * faces.h (struct face_cachel): fix comment.
10202 * event-stream.c (Fdispatch_non_command_events): new
10203 function. Process non-command events, forcing an event cycle
10205 (syms_of_event_stream): declare.
10206 (event_stream_force_event_pending): new function. Force an event
10207 on the native event queue so that an event cycle will occur next
10211 (struct ntpipe_shove_stream):
10212 (mswindows_enqueue_dispatch_event):
10213 (mswindows_dequeue_dispatch_event):
10214 (mswindows_cancel_dispatch_event):
10215 (mswindows_pump_outstanding_events):
10216 (mswindows_drain_windows_queue):
10217 (mswindows_handle_paint):
10218 (mswindows_wnd_proc):
10219 (mswindows_key_to_emacs_keysym):
10220 (get_process_input_waitable):
10221 (emacs_mswindows_delete_stream_pair): re-indent file.
10222 (mswindows_need_event): do not process further fds if the windows
10223 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10224 fixes the 100% cpu problem.
10225 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10227 2000-03-15 Olivier Galibert <galibert@pobox.com>
10233 * emacs.c: Moved dump file searching to dumper.c.
10234 (Frunning_temacs_p): Fixed.
10236 * alloc.c: Moved everything pdump-related to dumper.c. Removed
10237 last_lrecord_type_index_assigned.
10239 2000-02-20 Olivier Galibert <galibert@pobox.com>
10241 * symsinit.h: Added reinit parameter to init_console_stream
10244 * lisp.h: Added file parameter to pdump_load declaration.
10246 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10247 support. Added dump file searching.
10249 * config.h.in: Added EMACS_PROGNAME.
10251 * console-stream.c (init_console_stream): Fix reinitialisation
10252 when running from temacs.
10254 * alloc.c (pdump): Add id support.
10255 (pdump_load): Add file parameter and signature/id support.
10257 * Makefile.in.in: Add full pdump support.
10259 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
10261 * postgresql.c: Update documentation to reflect latest code
10263 (print_result): Show tuple counts in printed representation when
10265 (Fpq_put_nbytes): MULE-ize.
10266 (Fpq_get_line_async): Ditto.
10268 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
10270 * postgresql.c (Fpq_lo_import): Fix return value.
10271 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10273 2000-03-13 Ben Wing <ben@xemacs.org>
10275 * alloc.c (pdump_load):
10276 Fix compile warning under mswin.
10278 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
10280 * postgresql.c: Mule-ization, bug fixes.
10281 Use PG_CODING to encapsulate coding system name changes.
10282 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10283 (pg-coding-system): Create.
10285 (Fpq_conn_defaults): Mule-ize.
10286 (Fpq_connectdb): Mule-ize & bug fix.
10287 (Fpq_connect_start): Mule-ize.
10288 (Fpq_set_client_encoding): Mule-ize.
10289 (Fpq_finish): Document `DEAD' connection status.
10290 (Fpq_clear): Ditto.
10291 (Fpq_pgconn): Mule-ize.
10292 (Fpq_exec): Mule-ize & bug fix.
10293 (Fpq_send_query): Ditto.
10294 (Fpq_get_result): Ditto.
10295 (Fpq_res_status): Mule-ize.
10296 (Fpq_result_error_message): Mule-ize.
10297 (Fpq_ntuples): fix comments.
10298 (Fpq_fname): Mule-ize.
10299 (Fpq_fnumber): Mule-ize.
10300 (Fpq_ftype): fix comments.
10301 (Fpq_get_value): Mule-ize.
10302 (Fpq_cmd_status): Ditto.
10303 (Fpq_cmd_tuples): Ditto.
10304 (Fpq_oid_value): Ditto.
10305 (Fpq_notifies): Ditto.
10306 (Fpq_lo_import): Ditto.
10307 (Fpq_lo_export): Ditto.
10308 (Fpq_get_line): Ditto.
10309 (Fpq_put_line): Mule-ize and bug fix.
10310 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10312 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
10314 * postgresql.c (vars_of_postgresql): Mule-ize.
10315 (Fpq_conn_defaults): Ditto.
10317 2000-03-12 Ben Wing <ben@xemacs.org>
10319 * alloc.c (Fmake_byte_code):
10320 * alloc.c (debug_string_purity_print):
10321 * alloc.c (pdump_backtrace):
10322 * alloc.c (pdump_get_indirect_count):
10323 * alloc.c (pdump_register_sub):
10324 * alloc.c (pdump_register_object):
10325 * alloc.c (pdump_register_struct):
10326 * alloc.c (pdump_dump_data):
10327 * alloc.c (pdump_reloc_one):
10331 * console-msw.c (GetConsoleHwnd):
10332 * console-msw.c (msw_hide_console):
10333 * console-msw.c (msw_show_console):
10334 * console-msw.c (msw_ensure_console_buffered):
10335 * console-msw.c (msw_output_console_string):
10336 * console-msw.c (console_type_create_mswindows):
10338 a) Added functions to manipulate the console window for use with
10341 b) Added support for writing text to the console, which is now
10342 used under Windows when xemacs is not being run non-interactively,
10343 to write text that would otherwise be destined for stdout because
10344 under these circumstances, text written to stdout tends to
10345 disappear and not be seen.
10349 * event-Xt.c (x_event_to_emacs_event):
10350 * event-Xt.c (describe_event_window):
10351 * events-mod.h (XEMACS_MOD_CONTROL):
10353 * events.c (Fmake_event):
10354 * events.c (character_to_event):
10355 * events.c (event_to_character):
10356 * events.c (format_event_object):
10357 * events.c (Fevent_modifiers):
10359 * events.h (struct key_data):
10360 * events.h (struct button_data):
10361 * events.h (struct misc_user_data):
10362 * frame-x.c (Fcde_start_drag_internal):
10363 * frame-x.c (Foffix_start_drag_internal):
10364 * gpmevent.c (Freceive_gpm_event):
10366 * keymap.c (bucky_sym_to_bucky_bit):
10367 * keymap.c (control_meta_superify):
10368 * keymap.c (make_key_description):
10369 * keymap.c (keymap_lookup_directly):
10370 * keymap.c (create_bucky_submap):
10371 * keymap.c (keymap_store):
10372 * keymap.c (define_key_check_and_coerce_keysym):
10373 * keymap.c (define_key_parser):
10374 * keymap.c (define_key_alternate_name):
10375 * keymap.c (Fdefine_key):
10376 * keymap.c (raw_lookup_key_mapper):
10377 * keymap.c (struct map_keymap_unsorted_closure):
10378 * keymap.c (map_keymap_unsorted_mapper):
10379 * keymap.c (map_keymap_sort_predicate):
10380 * keymap.c (map_keymap_sorted):
10381 * keymap.c (accessible_keymaps_mapper_1):
10382 * keymap.c (where_is_recursive_mapper):
10383 * keymap.c (describe_map_mapper):
10384 * keymap.c (describe_map_sort_predicate):
10385 * keymap.c (describe_map):
10386 * keymap.c (complex_vars_of_keymap):
10387 And a number of other files, the key modifier preprocessor
10388 constants that xemacs uses have names that conflict with constants
10389 defined under MS Windows for other purposes, so they were renamed
10390 to begin with the prefix XEMACS_. The variables that hold such
10391 modifiers were changed to consistently be of type int to fix
10392 various compile warnings.
10394 * console.c (complex_vars_of_console):
10397 * device-msw.c (mswindows_finish_init_device):
10398 * device-msw.c (msw_get_workspace_coords):
10399 * device-msw.c (mswindows_device_system_metrics):
10400 and various other files, added support for a new
10401 device property called offset-workspace which returns the position
10402 of the upper left corner of the workspace area and goes along with
10403 the existing size-workspace property.
10406 * dialog-msw.c (push_bufbyte_string_as_unicode):
10407 * dialog-msw.c (mswindows_popup_dialog_box):
10408 Added support for XEmacs-style accelerator specifications in
10409 button text. Note: I didn't add support for this under X Windows,
10410 and somebody needs to do this.
10413 * dialog.c (Fpopup_dialog_box):
10414 Documented the support for accelerators that was just mentioned.
10416 editfns.c (get_home_directory): Changed behavior under Windows
10417 when HOME not defined; former behavior was irretrievably broken.
10420 * emacs.c (main_1):
10422 * minibuf.c (clear_echo_area_internal):
10423 * minibuf.c (echo_area_append):
10425 * print.c (std_handle_out_external):
10426 * print.c (std_handle_out_va):
10428 * print.c (write_string_to_stdio_stream):
10429 * print.c (output_string):
10430 * print.c (debug_print):
10431 * print.c (debug_backtrace):
10432 * print.c (debug_short_backtrace):
10433 Cleaned up the code that prints text to stdout so that this can be
10434 changed to output into a console window instead under MS Windows,
10435 as described above.
10438 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10439 * eval.c (internal_catch):
10440 * eval.c (unwind_to_catch):
10441 * eval.c (throw_or_bomb_out):
10442 * eval.c (condition_case_1):
10443 * eval.c (signal_1):
10444 * eval.c (check_error_state_sanity):
10445 * eval.c (call_with_suspended_errors_1):
10446 * eval.c (call_with_suspended_errors):
10447 * eval.c (reinit_vars_of_eval):
10448 Added code to catch throw loops and check for a pesky bug that may
10452 * event-msw.c (key_needs_default_processing_p):
10453 * event-msw.c (mswindows_wnd_proc):
10454 * event-msw.c (mswindows_modifier_state):
10455 * event-msw.c (emacs_mswindows_quit_p):
10456 * event-msw.c (vars_of_event_mswindows):
10457 a) Added support for using the alt key to select menu items as is
10458 standard under MS Windows. This is controlled using the variable
10459 menu-accelerator-enabled, just like under X Windows. There is an
10460 option on the options menu to turn this support on. I really
10461 think that it should be on by default under Windows, but I'm not
10462 going to make this change yet.
10464 b) Added support for dynamic display size changes under Windows.
10467 * event-stream.c (maybe_echo_keys):
10468 * event-stream.c (Fnext_event):
10469 * event-stream.c (command_builder_find_leaf):
10470 * event-stream.c (lookup_command_event):
10471 * event-stream.c (execute_command_event):
10472 * event-stream.c (pre_command_hook):
10473 * event-stream.c (post_command_hook):
10474 * event-stream.c (syms_of_event_stream):
10475 * event-stream.c (vars_of_event_stream):
10476 * event-stream.c (complex_vars_of_event_stream):
10477 * events.h (struct command_builder):
10479 a) Tried to clean up a little bit the horribly written x-specific
10480 accelerator code that crept into this file. I moved this code
10481 into menubar-x.c where it belongs. I also needed to move the
10482 command builder structure into the file events.h because it is
10483 accessed directly by this accelerator code. What I didn't do, but
10484 which should be done at some point, is to properly abstract this
10485 code using device methods instead of the kludgy way that it
10486 currently hooks into the event code.
10488 b) Added the lisp variables this-command-properties and
10489 last-command- properties, which should be used to synchronize two
10490 adjacent commands in preference to playing games with the variable
10491 this-command, which is typically what happens.
10493 c) Added some slightly nasty code to hook into the lisp support
10494 for shifted- motion-key selection. This is actually necessary for
10495 somewhat complicated reasons, which are described in
10496 simple.el. (NB: I think the proper thing would be to have the code
10497 that calls the pre and post command hooks also call out to generic
10498 lisp functions in simple.el, where all built-in stuff could be
10499 added. I will think about this more.)
10501 * event-unixoid.c (poll_fds_for_input):
10502 * lread.c (readchar):
10503 * redisplay-tty.c (tty_clear_frame):
10504 * redisplay-x.c (x_get_gc):
10505 * signal.c (interrupt_signal):
10506 And a whole bunch of other files: fixed up places that printed
10507 directly to stderr to instead call the function stderr_out so that
10508 the changes I made under Windows work correctly.
10510 * filemode.c (mode_string):
10514 * frame-msw.c (mswindows_size_frame_internal):
10515 Fixed the computation of frame size and position to keep the frame
10516 within the workspace area, rather than within the physical
10517 dimensions of the screen, so that the frame doesn't overlap window
10518 manager decorations, such as the start menu and toolbar, typically
10519 at the bottom of the screen.
10521 * frame.c (vars_of_frame):
10522 Changed the default frame title format under MS Windows to consist
10523 of buffername-XEmacs, which is standard under MS Windows. I think
10524 it might be a good idea to change this everywhere because I think
10525 it is superior to the current frame title format, but this is the
10526 kind of change that is likely to cause some people to get annoyed,
10527 so I'm not making it.
10529 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10531 * gui-msw.c (mswindows_handle_gui_wm_command):
10532 Fixed compile warnings.
10535 * gui-x.c (strdup_and_add_accel):
10536 * gui-x.c (button_item_to_widget_value):
10538 Added code to automatically put an accelerator onto the beginning
10539 of menu items that don't have one as is now the standard, and is
10540 described more later. Also fixed things so that the menu item
10541 name can be an evaluated expression, again a new standard.
10544 * gui.c (gui_item_add_keyval_pair):
10545 * gui.c (make_gui_item_from_keywords_internal):
10546 * gui.c (gui_add_item_keywords_to_plist):
10547 * gui.c (gui_item_accelerator):
10548 * gui.c (gui_name_accelerator):
10549 * gui.c (gui_item_included_p):
10550 * gui.c (gui_item_display_flush_left):
10551 * gui.c (gui_item_display_flush_right):
10552 * gui.c (parse_gui_item_tree_item):
10553 * gui.c (parse_gui_item_tree_children):
10554 * gui.c (parse_gui_item_tree_list):
10555 Mule-ized. Cleanup. GCPRO addition.
10557 * line-number.c (buffer_line_number):
10559 * lisp.h (EMACS_INT_MAX):
10560 Added the manifest constant EMACS_INT_MIN corresponding to the
10561 existing constant EMACS_INT_MAX. This is partially to fix compile
10562 warnings under Windows, and partly for cleanliness.
10565 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10566 * menubar-msw.c (msw_translate_menu_or_dialog_item):
10567 * menubar-msw.c (displayable_menu_item):
10568 * menubar-msw.c (populate_menu_add_item):
10569 * menubar-msw.c (populate_or_checksum_helper):
10570 * menubar-msw.c (populate_menu):
10571 * menubar-msw.c (update_frame_menubar_maybe):
10572 * menubar-msw.c (prune_menubar):
10573 * menubar-msw.c (msw_char_is_accelerator):
10574 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10575 * menubar-msw.c (mswindows_handle_wm_command):
10576 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10577 * menubar-msw.c (mswindows_handle_wm_initmenu):
10578 * menubar-msw.c (mswindows_update_frame_menubars):
10579 * menubar-msw.c (mswindows_free_frame_menubars):
10580 * menubar-msw.c (mswindows_popup_menu):
10581 Fixed a bug in handling accelerators where an extra character
10582 would be displayed in the menu item. Also generalized the
10583 function displayable_menu_item because it is now used by the
10584 dialog box code as well. And finally, added code in the functions
10585 that create the menubar to extract a list of accelerators for the
10586 top level menubar, which is used in the event code to determine
10587 whether a particular alt-key combination should be used to invoke
10588 a menu item, or should be passed through to access the standard
10589 XEmacs keymap binding for this key combination.
10591 Much needed GCPROing.
10594 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10595 * menubar-x.c (menu_item_descriptor_to_widget_value):
10596 * menubar-x.c (restore_in_menu_callback):
10597 * menubar-x.c (x_popup_menu):
10598 * menubar-x.c (menu_move_up):
10599 * menubar-x.c (menu_move_down):
10600 * menubar-x.c (menu_move_left):
10601 * menubar-x.c (menu_move_right):
10602 * menubar-x.c (menu_select_item):
10603 * menubar-x.c (command_builder_operate_menu_accelerator):
10604 * menubar-x.c (menu_accelerator_junk_on_error):
10605 * menubar-x.c (command_builder_find_menu_accelerator):
10606 * menubar-x.c (Faccelerate_menu):
10608 Moved a whole bunch of code here that was previously in
10609 event-stream.c as described above. There is also code connected
10610 to the new standard of adding an accelerator to the beginning of
10611 menu items that don't have one as described above and below.
10614 * menubar.c (menu_parse_submenu_keywords):
10615 * menubar.c (Fmenu_find_real_submenu):
10616 * menubar.c (Fnormalize_menu_item_name):
10617 * menubar.c (syms_of_menubar):
10618 * menubar.c (vars_of_menubar):
10619 * menubar.c (complex_vars_of_menubar):
10621 a) Cleaned up a bunch of documentation and improved it.
10623 b) XEmacs now automatically adds an accelerator onto the beginning
10624 of any menu items that don't have one. I did this because there
10625 will inevitably be some menu items on the main menubar that don't
10626 have accelerators on them because the package that adds that
10627 particular menu item hasn't yet been fixed up to have accelerators
10628 in them and it looked rather strange to have some items with and
10629 some items without accelerators, especially since even in items
10630 without accelerators, you can, at least under windows, still
10631 access the item through an accelerator corresponding to the first
10632 character in the item's name. If people don't like this behavior,
10633 I can add a variable to turn it off optionally, but I'm not sure
10634 this is a good idea because we really do need to have accelerators
10635 on all of the menu items, and if a package doesn't like the
10636 accelerators being put on the first character, then it should put
10637 the accelerators where they belong.
10639 c) I made a behavior change, which is that the descriptor that
10640 specifies the text of the menu item, which formerly was just a
10641 string, can now also be an evaluated expression. This makes this
10642 descriptor parallel with all of the others, which could also be
10643 evaluated expressions. This also obviates the need for the
10644 keyword :label, which was previously listed in the documentation
10645 as unimplemented, and which was for the same purpose.
10650 * ntproc.c (new_child):
10651 * ntproc.c (sys_spawnve):
10652 * ntproc.c (find_child_console):
10653 * ntproc.c (sys_kill):
10654 Fixed compile warnings. By the way, this file should really go
10655 away entirely, and this will happen as soon as Kirill makes his
10656 final round of process cleanups, which affect the function
10660 * process-nt.c (struct nt_process_data):
10661 * process-nt.c (find_process_from_pid):
10662 * process-nt.c (send_signal_the_nt_way):
10663 * process-nt.c (enable_child_signals):
10664 * process-nt.c (find_child_console):
10665 * process-nt.c (send_signal_the_95_way):
10666 * process-nt.c (nt_finalize_process_data):
10667 * process-nt.c (ensure_console_window_exists):
10668 * process-nt.c (nt_create_process):
10669 * process-nt.c (nt_kill_child_process):
10670 * process-nt.c (nt_kill_process_by_pid):
10671 * process-nt.c (nt_open_network_stream):
10672 * process-nt.c (vars_of_process_nt):
10673 Copied over code from Emacs 20.5 to correctly send signals to sub-
10674 processes under Windows 95. Also added code to automatically
10675 create and hide console window when a sub-process is created under
10676 Windows 95, which obviates the need for the separate runemacs.exe
10677 executable, and finally implemented some variables that were
10678 implemented in Emacs 20.5, but previously not in XEmacs. These
10679 include mswindows- start-process-share-console and
10680 mswindows-start-process-inherit-error-mode. (Both of these only
10681 apply to Windows 95.)
10683 * regex.c (regex_compile): Fixed a compile warning.
10686 * select-msw.c (mswindows_own_selection):
10687 * select-msw.c (mswindows_get_foreign_selection):
10688 * select-msw.c (mswindows_disown_selection):
10689 * select-msw.c (console_type_create_select_mswindows):
10690 * select-msw.c (syms_of_select_mswindows):
10691 Cleaned up the file and implemented the device method
10692 selection_exists_p, which had accidentally been left out. Also
10693 removed four lisp functions that were remnants from before the
10694 time when the selection code was properly device abstracted.
10695 These functions are no longer needed because there are generic
10696 equivalents, and because they were added recently and don't exist
10697 in FSF Emacs, I don't think there's any problem with just deleting
10701 * sysdep.c (sys_subshell):
10702 Fixed a compile warning, although in this case there's probably
10703 something wrong with this code, and it ought to be looked into
10704 more thoroughly by somebody who understands it.
10707 * window.c (Fwindow_text_area_height):
10708 * window.c (Fwindow_width):
10709 * window.c (Fwindow_full_width):
10710 * window.c (Fwindow_pixel_width):
10711 * window.c (debug_print_window):
10712 * window.c (syms_of_window):
10713 Added functions window-text-area-height and window-full-width,
10714 which are functions for returning various width and height
10715 characteristics of a window. (One of these functions is necessary
10716 for making the file dialog box work correctly, and the other one
10717 was added for completeness.) Also added a table to the
10718 documentation for window-height which describes the entire scheme
10719 for accessing width and height characteristics of a window.
10721 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10723 * nt.c (fstat): Added a comment for another problem with
10724 non-encapsulated [f]stat(), reported by Adrian Aichner
10725 <aichner@ecf.teradyne.com>.
10727 2000-03-11 Andy Piper <andy@xemacs.org>
10729 * window.c (make_dummy_parent): initialize subwindow instance
10731 (Fset_window_configuration): zero extent_modiff.
10733 2000-03-10 Andy Piper <andy@xemacs.org>
10735 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10736 more changes can be triggered.
10737 (Fredisplay_frame): ditto.
10738 (Fredraw_device): ditto.
10739 (Fredisplay_device): ditto.
10740 (redisplay_frame): make non-static.
10741 (redisplay_frame): call update_frame_gutter_geometry outside of
10744 * gutter.h: declare update_frame_gutter_geometry.
10746 * redisplay.h: declare redisplay_frame.
10748 * gutter.c (update_frame_gutter_geometry): move geometry changes
10749 in update_frame_gutters here. Geometry changes can only occur
10750 outside of redisplay.
10751 (update_frame_gutters): remove geometry change code.
10752 (Fredisplay_gutter_area): make sure that we are in display when we
10753 update and that we have flushed any size changes.
10755 2000-03-11 Andy Piper <andy@xemacs.org>
10757 * alloc.c (pdump_dump_data): remove i & count shadows.
10759 2000-02-27 Mike Alexander <mta@arbortext.com>
10761 * sysdep.h: Declare pdump_read_file
10763 * sysdep.c (pdump_read_file): New function
10765 * alloc.c (pdump_load): Call pdump_read_file to get the portable
10768 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
10770 * lrecord.h: add `lrecord_type_pgsetenv'.
10772 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
10774 * symsinit.h: declare (vars|syms)_of* functions.
10775 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10777 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
10779 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10781 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10784 * emacs.c (main_1): Call postgres initialization code.
10786 * postgresql.h: New file. PostgreSQL RDBMS support.
10787 * postgresql.c: New file.
10789 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
10791 * redisplay-output.c (redisplay_output_display_block): Disable
10794 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10796 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10797 (Fcanna_henkan_next): Ditto.
10798 (Fcanna_bunsetu_henkou): Ditto.
10799 (Fcanna_henkan_kakutei): Ditto.
10800 (Fcanna_henkan_end): Ditto.
10801 (Fcanna_henkan_quit): Ditto.
10802 (Fcanna_henkan_next): Set retun value correctly.
10803 (c2mu): Use unsigned char instead of signed char.
10805 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10807 * emacs.c (main_1): Always call syms_of_gui.
10808 * inline.c: include gui.h
10810 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10812 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10813 converted to Lisp_Object.
10814 (Qtop_bottom): New variable.
10815 (syms_of_redisplay): Initialize it.
10816 * redisplay.h (Vvisible_bell): Ditto.
10817 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10818 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10819 only flash top and bottom.
10821 2000-03-08 Andy Piper <andy@xemacs.org>
10823 * buffer.c (Frename_buffer): record new buffer name the right way.
10825 2000-03-08 Andy Piper <andy@xemacs.org>
10827 * glyphs.c (update_subwindow): increase hash depth so that widget
10828 items get picked up properly.
10830 * redisplay-output.c (compare_runes): increase hash depth so that
10831 widget items get picked up properly.
10833 2000-03-08 Andy Piper <andy@xemacs.org>
10835 * gutter.c (output_gutter): add some debug.
10837 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10838 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10839 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10841 * redisplay-output.c (compare_runes): use display_hash to
10842 determine if glyphs really are not the same.
10844 * glyphs.c (update_subwindow): check display_hash to see if
10845 anything really needs to be updated. If not then do
10846 nothing. Record the display_hash after updating.
10847 (image_instance_equal): compare the image_instance face also.
10849 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
10851 * redisplay.h: Fix comment style.
10853 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
10855 * consle-msw.h (struct mswindows_frame):
10856 Added new member paint_pending to indicate whether a WM_PAINT
10857 magic event has been queued for this frame.
10859 * event-msw.c (mswindows_drain_windows_queue):
10860 Don't queue a WM_PAINT magic event if one is already queued.
10861 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10863 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10865 2000-03-07 Didier Verna <didier@xemacs.org>
10867 * dired.c: #include `regex.h' after `sysfile.h'.
10869 2000-03-06 Martin Buchholz <martin@xemacs.org>
10871 * sound.c (init_nas_sound): Fix compiler warning.
10873 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10875 (MARK_STRUCT_AS_FREE):
10876 (MARK_STRUCT_AS_NOT_FREE):
10877 Make `gcc -fstrict-aliasing' work properly.
10879 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
10881 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
10882 (mswindows_delete_device): Call CoUnnitialize().
10884 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
10886 2000-02-25 <CraigL@DyCon.com>
10888 * process-nt.c: MinGW now has <shellapi.h>, but still needs
10891 * sysdep.c: This extern declaration for environ prevents MinGW
10892 from finding the variable in CRTDLL.DLL.
10894 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
10896 (SHGFI_EXETYPE): ..
10897 (WM_MOUSEWHEEL): ..
10898 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
10900 (MMRESULT): Removed, now defined in cygwin's windows headers.
10902 (uid_t,gid_t,pid_t,ssize_t): ..
10903 (_timeb): Removed, MinGW defines both _timeb and timeb.
10904 (HAVE_H_ERRNO): Added.
10905 (HAVE_TZNAME): Added, configure is not detecting this.
10907 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
10909 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
10910 * syntax.c (syntax_match): Use it.
10912 * cmds.c: Import auto-fill-chars from FSF Emacs.
10913 (Vauto_fill_chars): New variables.
10914 (internal_self_insert): Check Vauto_fill_chars.
10916 Declare auto-fill-chars as a Lisp variable and initialize it.
10918 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
10920 * fileio.c (Fmake_symbolic_link):
10922 Run handlers even if local machine doesn't have symlinks.
10924 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
10926 * event-msw.c (mswindows_drain_windows_queue):
10927 Don't generate paint magic events for non-XEmacs frames.
10929 2000-03-05 Andy Piper <andy@xemacs.org>
10931 * redisplay.c (redisplay_frame): generate_displayable_area and
10932 friends assumes that we are not in GC, we therefore have to make
10933 sure that this doesn't happen.
10935 * gutter.c (calculate_gutter_size): generate_displayable_area
10936 assumes that we are not in GC, we therefore have to make sure that
10937 this doesn't happen.
10939 2000-03-05 Martin Buchholz <martin@xemacs.org>
10941 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
10943 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
10945 * redisplay.c (regenerate_window): Make sure we set a sane value
10946 for end_pos even if we jump out of the loop.
10947 (regenerate_window): Answer Ben's question :-).
10948 (start_end_of_last_line): Add may_error argument.
10949 (start_of_last_line):
10950 (end_of_last_line): Pass may_error = 0.
10951 (end_of_last_line_may_error): New function.
10952 (pixel_to_glyph_translation): Use it, so we don't crash in
10955 2000-03-04 Andy Piper <andy@xemacs.org>
10957 * window.h (struct window): add gutter_extent_modiff.
10959 * window.c (allocate_window): zero out gutter_extent_modiff.
10961 * redisplay.h: declare sync_display_line_structs.
10963 * redisplay.c (add_glyph_rune): add a better comment.
10965 * redisplay-output.c (sync_display_line_structs): made non-static.
10966 (compare_runes): remove unneccesary glyph cachel access.
10968 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
10970 * gutter.c (output_gutter): don't output the gutter if extent
10971 changes only involve extents in buffers. use 4 sets of display
10973 (gutter_extent_signal_changed_region_maybe): new function. Mark
10974 extents in gutters as changed.
10975 (update_frame_gutters): use 4 sets of display lines.
10976 (reset_gutter_display_lines): ditto.
10977 (free_frame_gutters): ditto.
10978 (redraw_exposed_gutter): force output of gutters.
10980 * frame.h (struct frame): add 4 sets of gutter display lines.
10982 * extents.c: (extent_changed_for_redisplay): signal changes to
10983 extents in strings in the gutter as well as extents in buffers.
10985 2000-03-02 Andy Piper <andy@xemacs.org>
10987 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
10989 * frame.c (Fmake_frame): make sure the gutters get initialized
10990 after the frame is visible.
10991 (set_frame_selected_window): re-arrange compilation macros a
10993 (change_frame_size_1): mark gutters changed.
10995 * device.c (Fset_device_class): mark gutters changed.
10997 2000-03-01 Andy Piper <andy@xemacs.org>
10999 * window.c (window_top_frame_gutter_height): deleted.
11000 (window_bottom_frame_gutter_height): ditto.
11001 (window_left_frame_gutter_height): ditto.
11002 (window_right_frame_gutter_height): ditto.
11003 (window_top_gutter_height): don't use them.
11004 (window_bottom_gutter_height): ditto.
11005 (window_left_gutter_width): ditto.
11006 (window_right_gutter_width): ditto.
11007 (Fsplit_window): ditto.
11008 (Fwindow_pixel_edges): don't use border dimensions here.
11010 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11011 (update_scrollbar_instance): ditto.
11013 * redisplay.c (generate_modeline): don't take gutters into account.
11014 (generate_modeline): ditto.
11015 (redisplay_frame): small gutter display optimization.
11017 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11019 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11020 gutters into account.
11022 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11023 for window position and type.
11025 * gutter.c (get_gutter_coords): fix for frame gutters.
11026 (update_frame_gutters): update frame geometry if the gutters have
11028 (init_frame_gutters): record current gutter geometries.
11030 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11032 (mswindows_widget_instantiate): ditto.
11034 * frame.h (struct frame): add current_gutter_bounds.
11036 * frame.c (change_frame_size_1): position window and minibuffer
11037 appropriately taking into account the frame gutters.
11039 * frame-x.c: (x_initialize_frame_size): take into account the
11042 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
11044 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
11046 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
11048 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11050 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11052 * file-coding.c (reset_decoding_stream): Clear previous
11053 detection state when autodetect.
11055 2000-02-29 Didier Verna <didier@xemacs.org>
11057 * extents.c (set_extent_glyph_1): don't require extents to be
11060 2000-02-27 Andy Piper <andy@xemacs.org>
11062 * gutter.c (Fset_default_gutter_position): don't default left and
11063 right gutter visibility to t.
11064 (Fset_default_gutter_position): run
11065 default-gutter-position-changed-hook.
11066 (syms_of_gutter): add default-gutter-position-changed-hook.
11068 2000-02-26 Andy Piper <andy@xemacs.org>
11070 * specifier.c (Fmake_specifier): add gutter references.
11072 * gutter.h (RAW_WINDOW_GUTTER): new macro.
11074 * lisp.h: declare Fvalid_plist_p.
11076 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11078 (default_gutter_visible_p_changed_in_window): invalidate gutter as
11079 well as its visibility so that it gets reconstructed.
11080 (construct_window_gutter_spec): new function. Construct a string
11081 to be displayed in the gutter from a plist of strings. Take care
11082 to only use elements that are declared as visible.
11083 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11085 (gutter_validate): allow plists of strings in the specifier.
11086 (gutter_specs_changed): construct the real_gutter from the gutter
11087 specs using construct_window_gutter_spec.
11088 (gutter_visible_validate): gutter-visible is a new specifier type.
11089 (Fgutter_visible_specifier_p): new function for the new specifier.
11090 (syms_of_gutter): declare gutter-visible and
11091 Fgutter_visible_specifier_p.
11092 (specifier_type_create_gutter): intitalize new gutter-visible
11094 (reinit_specifier_type_create_gutter): ditto.
11095 (specifier_vars_of_gutter): use new specifier type for gutter
11097 (init_frame_gutters): construct real_gutter correctly.
11098 (Fgutter_specifier_p): beef up documentation.
11099 (Fgutter_size_specifier_p): ditto.
11101 * winslots.h: add real_gutter slots.
11103 2000-02-25 Andy Piper <andy@xemacs.org>
11105 * device-msw.c: Be kind to older cygwin versions. From Raymond
11106 Toy <toy@rtp.ericsson.se>.
11108 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11109 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11111 2000-02-25 Martin Buchholz <martin@xemacs.org>
11113 * elhash.c (MARK_OBJ): Practice macro hygiene.
11115 2000-02-24 Martin Buchholz <martin@xemacs.org>
11117 * miscplay.c: s/__inline__/inline/g;
11118 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11119 (get_device_compdc): INLINE ==> static inline
11120 * *.[ch]: Change INLINE to INLINE_HEADER globally.
11121 find -name '*.h' | \
11122 xargs global-replace \
11123 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11125 2000-02-25 Andy Piper <andy@xemacs.org>
11127 * window.c (window_top_frame_gutter_height): new function.
11128 (window_top_window_gutter_height): ditto.
11129 (window_top_gutter_height): use them.
11130 (window_bottom_frame_gutter_height): new function.
11131 (window_bottom_window_gutter_height): ditto.
11132 (window_bottom_gutter_height): use them.
11133 (window_left_window_gutter_width): new function.
11134 (window_left_frame_gutter_width): ditto.
11135 (window_left_gutter_width): use them.
11136 (window_right_window_gutter_width): new function.
11137 (window_right_frame_gutter_width): ditto.
11138 (window_right_gutter_width): use them.
11139 (window_pixel_height): new function. calulate window pixel height
11140 with frame gutter involvement.
11141 (Fsplit_window): calculate new sizes taking frame gutters into
11143 (window_char_height_to_pixel_height): don't include frame gutters.
11144 (window_char_height): use window_pixel_height.
11145 (window_pixheight): rename from window_pixel_height.
11146 (change_window_height): use it.
11147 (window_pixel_height_to_char_height): don't include frame gutters.
11148 (window_char_width_to_pixel_width): ditto.
11150 2000-02-25 Andy Piper <andy@xemacs.org>
11152 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11155 2000-02-24 Martin Buchholz <martin@xemacs.org>
11157 * alloc.c (staticpro):
11158 (staticpro_nodump):
11163 (compact_string_chars):
11164 (pdump_dump_wired):
11165 Convert: if (foo) abort(); ==> assert (! foo);
11167 * eldap.c (Fldap_search_basic):
11171 Fix compiler warnings, and possible crashes if (random) return
11172 value were to be used.
11174 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11176 * device-msw.c: Workaround ResetDC failure.
11178 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11179 applying a devmode.
11181 * redisplay-msw.c (get_frame_dc): Added start_page_p.
11182 (mswindows_text_width): Do not start printer page.
11184 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11186 * glyphs-msw.c: Added image methods to msprinter console and
11187 msprinter-specific image instantiation.
11189 2000-02-20 Mike Alexander <mta@arbortext.com>
11191 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11192 to avoid crashes when selection-sets-clipboard is on
11193 (mswindows_own_selection): ditto
11195 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11198 * redisplay-msw.c (get_frame_dc):
11199 (get_frame_compdc):
11201 * device-msw.c (mswindows_init_device):
11202 (mswindows_delete_device):
11203 (msprinter_init_device):
11204 (msprinter_delete_device):
11205 * frame-msw.c (mswindows_init_frame_1):
11206 (mswindows_delete_frame):
11207 (msprinter_init_frame_3):
11208 (msprinter_delete_frame): Move compatible DC to device object from
11209 frame object, for both mswindows and msprinter. Only one at a time
11210 is needed, it is a real waste to have one per frame!
11212 2000-02-23 Andy Piper <andy@xemacs.org>
11214 * glyphs.c: add dynamic width and height elements.
11215 (image_instance_equal): ditto.
11217 * glyphs-widget.c (widget_query_geometry): calculate width and
11218 height dynamically if required.
11219 (initialize_widget_image_instance): initialize dynamic dimensions.
11220 (widget_instantiate): pick-up dynamic dimensions.
11222 * glyphs.h (struct Lisp_Image_Instance): add width and height for
11223 dynamic determination. Add appropriate macros.
11225 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11227 (WINDOW_GUTTER_SIZE): ditto.
11228 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11230 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11232 (get_frame_dc): ditto.
11234 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11237 2000-02-23 Martin Buchholz <martin@xemacs.org>
11239 * XEmacs 21.2.31 is released.
11241 2000-02-22 Ben Wing <ben@xemacs.org>
11243 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11245 2000-02-22 Andy Piper <andy@xemacs.org>
11247 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11249 2000-02-21 Mike Sperber <mike@xemacs.org>
11253 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11256 2000-02-21 Mike Sperber <mike@xemacs.org>
11258 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11260 2000-02-21 Martin Buchholz <martin@xemacs.org>
11262 * XEmacs 21.2.30 is released.
11264 2000-02-20 Martin Buchholz <martin@xemacs.org>
11266 Performance hacking.
11268 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11269 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11270 * emacs.c (main_1):
11272 * console.c (DEFVAR_CONSOLE_LOCAL_1):
11273 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11274 * symeval.h (DEFVAR_SYMVAL_FWD):
11275 * symbols.c (guts_of_unbound_marker):
11276 Make all c_readonly objects also lisp_readonly and marked for life.
11277 * lrecord.h (struct lrecord_implementation):
11278 Document flags better.
11279 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11280 * lrecord.h (DECLARE_LRECORD):
11281 * lrecord.h (XSETRECORD):
11282 * lrecord.h (RECORDP):
11283 * lrecord.h (RECORD_TYPEP):
11284 * lrecord.h (RECORD_MARKER): New.
11285 * lrecord.h (error_check_*):
11286 * lrecord.h (CONCHECK_NONRECORD):
11287 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11288 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11289 * lrecord.h (set_lheader_implementation):
11290 * lrecord.h (enum lrecord_type): New.
11291 * symeval.h (SYMBOL_VALUE_MAGIC_P):
11292 * alloc.c (disksave_object_finalization_1):
11293 * alloc.c (mark_object):
11294 * alloc.c (lrecord_type_index):
11295 * alloc.c (tick_lcrecord_stats):
11296 * alloc.c (Fgarbage_collect):
11297 * alloc.c (init_alloc_once_early):
11298 * alloc.c (pdump_load):
11299 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11300 * alloc.c (lrecord_type_index): Delete.
11301 Make lisp object type indexes be constant.
11302 Makes (byte-compile) 5% faster.
11303 Put all marker functions into their own array.
11304 Makes (garbage-collect) 5% faster.
11305 Optimize SYMBOL_VALUE_MAGIC_P.
11306 Makes (byte-compile) 2-3% faster.
11307 * config.h.in (gc_checking_assert): New.
11308 * alloc.c: Use gc_checking_assert().
11309 * .dbxrc: Make compatible with new object type implementation.
11310 * .gdbinit: Make compatible with new object type implementation.
11311 * alloc.c: Delete all symbols defined only for debugging, such as
11312 Lisp_Type_Vector and lrecord_charset.
11314 2000-02-21 Andy Piper <andy@xemacs.org>
11316 * gui-msw.c (Fmswindows_shell_execute): fix file location
11319 * buffer.c (Fkill_buffer): remove buffer from alist buffer
11320 unshowing so that set_window_buffer doesn't undo
11321 kill_buffer_hook's hard work.
11323 * glyphs-widget.c (tab_control_query_geometry): don't count the
11324 first item when calculating geometry.
11326 * glyphs.c (map_subwindow): remove redundant code.
11327 (update_frame_subwindows): be more circumspect about when to
11330 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11331 when items haven't changed. Update faces if faces have changed as
11332 well as just the widget face.
11333 (x_tab_control_update): Update faces if faces have changed as well
11334 as just the widget face.
11336 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11338 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11340 (build_syscolor_string): Use mswindows_color_to_string to try to
11342 (mswindows_device_system_metrics): Reverse the foreground and
11343 background colors so that they match the documentation.
11345 * objects-msw.c: (mswindows_X_color_map): tweak some values so
11346 they match the default Windows palette.
11347 (mswindows_color_to_string): New function.
11349 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11351 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11353 2000-02-18 Olivier Galibert <galibert@pobox.com>
11355 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11356 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11358 * symbols.c (init_symbols_once_early): Removed obsolete
11359 DATA_SEG_BITS related kludge.
11360 (defvar_magic): Ditto.
11362 * malloc.c: Removed obsolete DATA_SEG_BITS
11364 * mem-limits.h: Ditto.
11366 * Makefile.in.in: Removed obsolete HAVE_SHM
11369 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11371 * device-msw.c (mswindows_delete_device): Free DDE string
11374 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11376 * keymap.c (get_keyelt):
11377 * unexnt.c (unexec):
11378 * vm-limit.c (memory_warnings):
11379 * ntheap.c (recreate_heap):
11380 * ntheap.h (UNINIT_PTR):
11381 * select-msw.c (Fmswindows_get_clipboard):
11382 (Fmswindows_set_clipboard):
11383 * objects-msw.h (MSWINDOWS_BAD_HFONT):
11385 * menubar-msw.c (displayable_menu_item):
11387 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11388 * sysdep.c (sys_subshell):
11389 * process-nt.c (nt_create_process):
11390 * nt.c (normalize_filename):
11391 (dostounix_filename):
11392 (unixtodos_filename):
11393 * ntproc.c (win32_executable_type):
11394 * ntplay.c (play_sound_data_1):
11396 * editfns.c (get_home_directory):
11397 * event-msw.c (struct winsock_stream):
11398 (mswindows_dde_callback):
11399 * device-msw.c (msprinter_init_device):
11400 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11402 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11403 mswindows_clear_toolbar were swapped!
11405 * objects-msw.c:(colormap_t):
11407 * emacs.c (struct standard_args): Fixed const jumble.
11409 * glyphs-widget.c (update_widget): Fixed comparison notation.
11411 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11413 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11414 __declspec(noreturn) syntax.
11416 2000-02-19 Martin Buchholz <martin@xemacs.org>
11418 * eldap.c (Fldap_open):
11419 (Fldap_search_basic):
11422 Use new coding system conversion macros.
11424 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11426 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11428 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
11430 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11431 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11433 * eldap.c (Qadd, Qreplace): New constant symbols
11434 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11435 interruptions by XEmacs signals
11436 Remove unnecessary calls to slow_down_interrupts and
11437 speed_up_interrupts
11438 (Fldap_search_basic): Renamed from Fldap_search_internal
11439 Added new optional parameter VERBOSE that triggers the
11440 display of progress messages
11441 Remove unnecessary calls to slow_down_interrupts and
11442 speed_up_interrupts
11443 LDAP result code analysis rewritten
11444 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11445 (syms_of_eldap): Define the new symbols and functions
11448 2000-02-17 Martin Buchholz <martin@xemacs.org>
11450 * realpath.c: Determine PATH_MAX maximally portably.
11452 * insdel.c (bytecount_to_charcount): Optimize.
11453 The function used to be optimized for entirely ASCII sequences.
11454 Now it is optimized for successive characters from the same
11455 charset. This also wins big for _mostly_ ASCII sequences.
11457 * fileio.c (Ffile_truename): convert return from realpath() using
11458 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
11459 - Rewrite GCPROing slightly.
11461 * sysdep.c (sys_open): Do filename conversion, like all other
11462 sys_* functions. Fixes bug:
11463 (let ((file-name-coding-system 'iso-8859-2))
11464 (write-region x y latin2-name))
11465 ==> writes filename using internal encoding.
11467 2000-02-18 Martin Buchholz <martin@xemacs.org>
11469 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11470 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11471 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11472 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11473 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11474 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11475 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11476 (CONST_IF_NOT_DEBUG): Delete.
11477 * alloc.c (this_one_is_unmarkable): Delete.
11478 (mark_object): Don't check for this_one_is_unmarkable. Use the
11479 c_readonly flag instead.
11480 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11482 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
11484 * event-msw.c (mswindows_drain_windows_queue):
11485 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11486 away redundant repaint events.
11488 2000-02-17 Andy Piper <andy@xemacs.org>
11490 * redisplay.h: declare mark_redisplay_structs.
11492 * redisplay.c (redisplay_window):
11493 (redisplay_frame): don't check subwindows_state_changed.
11494 (mark_redisplay): mark gutters here.
11496 * glyphs.c: (instantiate_image_instantiator): always layout if we
11497 haven't done so already.
11498 (allocate_image_instance): don't mark as dirty.
11499 (update_subwindow): bind inhibit_quit.
11501 * gutter.c (mark_gutters): new function.
11503 * glyphs-x.c (x_update_widget): Always resize to get round a
11506 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11507 breaking absolutely everything.
11509 * gutter.h: declare mark_gutters.
11511 2000-02-16 Martin Buchholz <martin@xemacs.org>
11513 * XEmacs 21.2.29 is released.
11515 2000-02-15 Olivier Galibert <galibert@pobox.com>
11517 * fns.c (size_bit_vector): Fix computation of the size.
11519 2000-02-15 Martin Buchholz <martin@xemacs.org>
11521 * *.[ch]: Change CONST to const globally.
11522 find -name '*.[ch]' | \
11523 xargs global-replace \
11524 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11525 - Remove vestigial references to CONST_IS_LOSING
11527 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11529 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11530 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11531 events instead of dispatching them directly.
11532 (mswindows_handle_paint): New function to do repainting.
11533 (mswindows_wnd_proc):
11534 (emacs_mswindows_handle_magic_event): Call above function.
11536 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11538 * objects-msw.c (mswindows_create_font_variant): Return the new
11540 (initialize_font_instance): Get font metrics from the underlined
11541 variant of the font to cope with the case where the underlined
11542 font has a bigger descent.
11544 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
11546 * gui.c (gui_item_accelerator): Return the first underlined
11547 character in item name.
11549 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11551 * lisp.h: Added Qprinter.
11553 * general.c (syms_of_general): Initialized it.
11555 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11557 (get_frame_compdc): Made inline.
11559 * console.h (struct console_methods): Added eject_page method.
11561 * frame.h: Added FRAME_DISPLAY_P and friends.
11562 Aligned backslahes in many macros in more readable fashion.
11563 Added page_number to struct frame, and an accessor macro
11566 * defice.h: Added DEVICE_DISPLAY_P and friends.
11568 * device.c (Fdevice_printer_p): Used these.
11570 * frame.c (allocate_frame_core): Initialize page number.
11571 (Fprint_job_page_number):
11572 (Fprint_job_eject_page): Implemented.
11574 * frame-msw.c (msprinter_eject_page): Added method.
11575 (msprinter_start_page): Added.
11577 * window.c (Fwindow_truncated_p): Fixed docstring.
11578 (Fwindow_last_line_visible_height): Implemented.
11580 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
11582 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11584 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11586 * syntax.c (scan_words): Always advance at least one character.
11588 2000-02-13 Andy Piper <andy@xemacs.org>
11590 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11591 to make sure the glyph is in the cachels.
11593 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11594 global image instance flag.
11595 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11596 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11598 * glyphs.c (allocate_image_instance): set dirty bits correctly.
11599 (Fset_image_instance_property): mark layout as changed.
11600 (invalidate_glyph_geometry_maybe): mark layout as changed.
11601 (glyph_width): use new NEEDS_LAYOUT macro.
11602 (glyph_ascent): ditto.
11603 (glyph_descent): ditto.
11604 (glyph_height): ditto.
11605 (image_instance_layout): mark layout as clean after laying out.
11606 (update_subwindow): don't mark layout as clean here.
11608 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11609 should no longer be needed.
11611 * glyphs-x.c (x_update_widget): sanitize asserts.
11612 (x_finalize_image_instance): sanitize assignment to widgets.
11614 * glyphs-widget.c (widget_instantiate): don't need to clear the
11617 2000-02-13 Martin Buchholz <martin@xemacs.org>
11619 * sysdep.c (getcwd): Use standard prototype.
11620 * sysdep.h (getcwd): Use standard prototype.
11622 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11623 (sequence, start, end).
11624 Remove redundant type checking.
11625 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11626 view of `caller-protects') to avoid a crash where the real fix was
11629 2000-02-12 Martin Buchholz <martin@xemacs.org>
11631 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11633 * s/sol2.h: Remove feature macro initialization.
11635 * alloc.c (alloc_lcrecord): Add more type checking assertions.
11636 (vector_hash): New. Code from internal_hash.
11638 Fix up allocation subsystem comments.
11640 * config.h.in: Add __EXTENSIONS__ for Solaris.
11642 * systime.h (EMACS_GETTIMEOFDAY): New.
11643 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11644 Remove Solaris-specific code.
11645 Use void* for the (ignored) second arg for gettimeofday().
11647 * elhash.c (hash_table_hash): Implement it, finally.
11648 * elhash.c: Use hashcode_t.
11650 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11651 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11653 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11654 * fns.c (size_bit_vector):
11655 * alloc.c (size_vector):
11656 (make_vector_internal):
11657 (make_bit_vector_internal):
11658 (sweep_bit_vectors_1):
11659 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11661 2000-02-10 Martin Buchholz <martin@xemacs.org>
11663 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11664 Include strings.h to avoid warnings for bzero and strcasecmp.
11666 2000-02-10 Olivier Galibert <galibert@pobox.com>
11668 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11669 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11671 * fns.c (size_bit_vector): New. Declare bit vectors as a
11674 2000-02-10 Olivier Galibert <galibert@pobox.com>
11676 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11677 use a value field instead.
11678 (symbol_value_forward_forward): Use value field.
11679 (DEFVAR_SYMVAL_FWD): Use value field.
11680 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
11681 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11682 (DEFVAR_CONST_INT): Ditto.
11683 (DEFVAR_BOOL): Ditto.
11684 (DEFVAR_CONST_BOOL): Ditto.
11685 (DEFVAR_INT_MAGIC): Ditto.
11686 (DEFVAR_BOOL_MAGIC): Ditto.
11688 * symbols.c (guts_of_unbound_marker): Use value field.
11689 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11690 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11692 * lisp.h: Declare dumpopaque and noninteractive1.
11694 * alloc.c (dumpopaque): Added.
11695 (pdump_dump_opaquevec): Added.
11696 (pdump): Call pdump_dump_opaquevec to dump opaque data.
11697 (pdump_load): Reload opaque data. Sync noninteractive1 with
11700 2000-02-10 Andy Piper <andy@xemacs.org>
11702 * glyphs.c (image_instance_layout): if the size changes, mark it
11705 * redisplay-output.c (redisplay_output_layout): Update the
11707 (redisplay_output_subwindow): ditto.
11709 * glyphs.c (update_subwindow): make sure we reset flags for
11710 layouts as well as everything else.
11712 * glyphs-widget.c (layout_layout): don't need to set the instances
11715 2000-02-09 Martin Buchholz <martin@xemacs.org>
11717 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
11718 not HAVE_DLOPEN, which is a lower-level thing.
11720 * .cvsignore: Ignore gmon.out
11722 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
11724 * .cvsignore: Ignore portable dumper xemacs.dmp file
11726 2000-02-09 Andy Piper <andy@xemacs.org>
11728 * redisplay-output.c (redisplay_output_layout): be more clever
11729 about when we output based on the changed flags.
11731 * glyphs.h (struct image_instantiator_methods): add update_method.
11732 (struct Lisp_Image_Instance): add changed flags. Declare new
11733 macros for manipulating them.
11735 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11736 (image_instance_parent_glyph): find an image_instance's parent
11737 glyph or image_instance.
11738 (image_instance_layout): mark the size as changed.
11739 (set_image_instance_dirty_p): new function. mark an image
11740 instance, plus all of its parents, as dirty.
11741 (Fset_image_instance_property): use it.
11742 (Fglyph_animated_timeout_handler): use it.
11743 (update_subwindow): call update_widget and device methods for
11744 update_subwindow. Mark all changed flags as clean.
11745 (Fresize_subwindow): mark size as changed.
11747 * glyphs-x.c (x_finalize_image_instance): try and detect gc
11749 (x_update_subwindow): only resize subwindows here.
11750 (x_update_widget): new function. Update all changed properties of
11752 (x_resize_subwindow): deleted.
11753 (x_widget_set_property): deleted.
11754 (x_progress_gauge_set_property): deleted.
11755 (x_progress_gauge_update): new function. Implement recorded
11757 (x_tab_control_update): ditto.
11758 (x_tab_control_set_property): deleted.
11759 (console_type_create_glyphs_x): declare new functions.
11760 (image_instantiator_format_create_glyphs_x): ditto.
11762 * glyphs-widget.c (widget_set_property): mark text changed.
11763 (update_widget): new function. Update properties of a widget.
11764 (widget_instantiate): for layouts make sure we set their
11765 children's parent correctly.
11766 (tab_control_set_property): new function. Record changes that will
11767 take place under redisplay's control.
11768 (progress_gauge_set_property): ditto.
11769 (image_instantiator_progress_guage): declare new functions.
11770 (image_instantiator_tab_control): ditto.
11772 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11774 (mswindows_update_widget): new function. Update all properties on
11775 a widget that have changed.
11776 (mswindows_button_update): new function. Update a button's set
11778 (mswindows_tab_control_update): new function. Update the items in
11780 (mswindows_tab_control_set_property): deleted.
11781 (mswindows_progress_gauge_update): new function. Update the
11782 progress gauge's progress.
11783 (mswindows_widget_set_property): deleted. This is all done
11784 asynchronously now.
11785 (mswindows_progress_gauge_set_property): ditto.
11786 (console_type_create_glyphs_mswindows): declare new methods.
11787 (image_instantiator_format_create_glyphs_mswindows): ditto.
11789 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11790 (msprinter_set_frame_properties): ditto.
11792 * console.h (struct console_methods): Add update_widget_method.
11794 2000-02-09 Andy Piper <andy@xemacs.org>
11796 * gui-msw.c (Fmswindows_shell_execute): Make
11797 mswindows-shell-execute industrial strength.
11799 2000-02-08 Martin Buchholz <martin@xemacs.org>
11801 * lrecord.h: Make macro argument `props' match member function `plist'.
11804 * fns.c (Fremprop):
11805 * fns.c (Fobject_plist):
11808 Object property list frobbing cleanup.
11809 - Allow any lisp object (compared with `eq'), not just symbols, as
11810 keys in object plists.
11811 - Move symbol plist frobbing into symbols.c, where it belongs.
11812 - Move string plist frobbing into alloc.c, where it belongs.
11813 - Everything's an lrecord now, so no need to test for symbolp, etc.
11814 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11816 * extents.c: Reorder code to remove declarations.
11818 * frame.h (store_in_alist): Remove useless declaration.
11820 2000-02-07 Martin Buchholz <martin@xemacs.org>
11822 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11823 * config.h.in: Add HAVE_XCONVERTCASE.
11825 2000-02-07 Andy Piper <andy@xemacs.org>
11827 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11828 it breaks many things.
11830 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
11832 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11833 actually can start a common comment type.
11834 * src/syntax.h (SYNTAX_END_P): ditto for end.
11836 2000-02-07 Martin Buchholz <martin@xemacs.org>
11838 * XEmacs 21.2.28 is released.
11840 2000-02-06 Martin Buchholz <martin@xemacs.org>
11842 * event-Xt.c (x_keysym_to_character): New.
11843 (maybe_define_x_key_as_self_inserting_character): New.
11844 (x_has_keysym): New.
11845 Auto-define all keys on the keyboard as self-insert-key.
11847 2000-02-02 Martin Buchholz <martin@xemacs.org>
11849 * menubar.c (vars_of_menubar): A small code simplification.
11851 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11854 * ExternalClient.c:
11855 * EmacsShell-sub.c:
11858 Use consistent style for specifying X resources.
11860 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11861 This makes (dontusethis-set-symbol-value-handler) actually usable.
11863 * lrecord.h (lrecord_decription_type):
11864 * alloc.c (pdump_register_sub):
11867 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11868 Comply with XEmacs coding style.
11869 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11870 args, and XD_LISP_OBJECT_ARRAY with 3 args.
11872 * keymap.c (Faccessible_keymaps):
11873 Make (accessible-keymaps map "\C-h") do the Right Thing.
11874 Make (accessible-keymaps map []) do the Right Thing.
11875 Make (accessible-keymaps map "") do the Right Thing.
11876 (check_keymap_definition_loop): New function.
11877 (keymap_store_internal): Keep luser from shooting self in foot,
11878 via (define-key ctl-x-4-map "p" global-map).
11879 Remove fullness slot from struct Lisp_Keymap, since hash tables
11881 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
11883 2000-01-30 Martin Buchholz <martin@xemacs.org>
11885 * redisplay.c (init_redisplay): Fix small memory leak.
11887 * elhash.c (pdump_reorganize_hash_table):
11888 Rename from reorganize_hash_table. Change prototype.
11889 Reuse the original memory for hentries. Save 100k.
11890 * alloc.c (PDUMP_READ): new macro.
11891 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
11892 * alloc.c: No need to #ifndef before #undef.
11894 * print.c: Allow debug_print() to print readably by modifying
11895 debug_print_readably. Use consistent variable names.
11897 * .dbxrc: Try to get things to work even if stopped in a function
11898 without source available by explicitly specifying source files.
11899 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11901 * unexnt.c (_start): Removed bogus code which caused loading heap
11902 from differrent executable file.
11903 Removed bogus assignment to _fmode, which caused inconsistencies.
11905 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11907 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
11908 Have spawnve encapsulation regard DONT_ENCAPSULATE.
11909 Do not preliminary `#define signal sigset'.
11911 * systime.h: Do not prototype environ on windows nt and cygwin,
11912 this conflicts with system header.
11914 * syssignal.h: Use correct define for WINDOWSNT
11916 * sysdep.h: Do not prototype environ on windows nt, this conflicts
11917 with system header.
11919 * sysdep.c (near start of file): Fixed commentary and rearranged
11920 ifdefs in readable order.
11921 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
11924 (end_of_data): Do not compile in if using PDUMP.
11926 * symsinit.h: Prototyped vars_of_nt().
11928 * ntproc.c (windows9x_p): Added, instead of os_subtype.
11929 (find_child_console): Use it.
11930 (sys_kill): Use it.
11932 * ntheap.h: Do not extern os_subtype.
11934 * ntheap.c (cache_system_info): Do not cache unneeded:
11935 nt_major_version, nt_minor_version and os_subtype.
11936 (recreate_heap): Do not compile in when PDUMPing.
11938 * nt.c (geteuid and friends): Use the new varibale
11939 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
11940 (init_user_info): Removed the above mentioned hackery.
11941 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
11942 stat has been fixed in the C runtime.
11943 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
11945 * file-coding.c (struct file_coding_dump): Do not define
11946 ucs_to_mule_table in the struct if not MULE.
11947 (struct struct lrecord_description fcd_description_1): Do not dump
11950 * emacs.c (main_1): Call vars_of_nt().
11951 (right before Fdump_emacs_data): Don't need lastfile if using both
11952 portabe dumper and system malloc.
11954 * alloc.c (Fmemory_limit): Conditionalized out.
11955 (pdump): Use OPEN_BINARY for the portable dump file.
11956 (pdump_load): Ditto.
11958 2000-02-02 Mike Alexander <mta@arbortext.com>
11960 * nt.c (convert_time): Set tm_isdst before calling mktime and
11961 avoid calling it at all if the compiler supports 64 bit integers.
11962 Also initialize utc_base_ft before using it.
11964 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
11966 * frame.c (change_frame_size_1): Take f->internal_border_width
11967 into consideration when calculating the width of the frame.
11969 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11971 * window.c (frame_min_height):
11972 (frame_size_valid_p):
11973 (frame_pixsize_valid_p): Added.
11974 (check_frame_size): Generalized.
11976 * window.h: Prototyped the above.
11979 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
11980 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
11981 Deleted Vwin32_* and Vbinary_process_* unused variables.
11983 * device-msw.c (msprinter_init_device): Do not get printer font
11984 list; Added DEVMODE functions.
11986 * frame-msw.c: Added lots of printer code.
11988 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
11991 * console-msw.h: Added more msprinter device private slots.
11993 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11995 * event-msw.c (key_needs_default_processing_p): Added.
11996 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
11998 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12000 * glyphs.c (image_instance_layout): Mark image instance as clean
12002 (glyph_dirty_p): Removed redundant function.
12003 (invalidate_glyph_geometry_maybe): Added.
12004 (update_glyph_cachel_data): Call it.
12006 * glyphs.h: Prototyped it.
12008 * redisplay.c (add_glyph_rune): Call it.
12009 (redisplay_window): Reset glyphs cachels when frame faces have
12010 changed, thus forcing recomputation of built-in border glyphs.
12012 2000-01-30 Martin Buchholz <martin@xemacs.org>
12014 * Makefile.in.in: Make portable dumper and purify play well together.
12015 Add imperfect, but better than nothing, support for pdump.
12016 Remove xemacs.dmp when temacs is re-generated.
12017 Don't ignore errors when dumping xemacs.
12019 * symbols.c (maybe_call_magic_handler): Remove one magic number.
12021 2000-01-28 Andy Piper <andy@xemacs.org>
12023 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12024 (setup_normal_frame): ditto.
12025 (setup_frame_without_minibuffer): ditto.
12026 (setup_minibuffer_frame): ditto.
12027 (delete_frame_internal): ditto.
12028 (Fmake_frame_invisible): ditto.
12029 (Ficonify_frame): ditto.
12031 * window.h: change Fset_window_buffer signature.
12033 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12034 (Fset_window_buffer): allow recording of buffer if the window is
12035 the selected window.
12036 (window_loop): Use new Fset_window signature.
12038 2000-01-23 Daniel Pittman <daniel@danann.net>
12040 * config.h.in: Added template for `HAVE_ATHENA_3D'
12042 2000-01-29 Andy Piper <andy@xemacs.org>
12044 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12046 * gutter.c (output_gutter): Don't output if the window isn't live.
12048 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12050 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12051 of 01/12/00: Moved SetFocus back here where it belongs.
12053 2000-01-23 Andy Piper <andy@xemacs.org>
12055 * s/cygwin32.h: declare printer things.
12057 2000-01-26 Andy Piper <andy@xemacs.org>
12059 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12062 2000-01-24 Andy Piper <andy@xemacs.org>
12064 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12065 (mswindows_button_instantiate): Make sure glyph is a pixmap.
12067 * glyphs-widget.c (widget_instantiate): Avoid shadows.
12069 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12071 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12073 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12074 (mswindows_output_display_block): Avoid local shadows.
12076 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12077 (mswindows_enqueue_mouse_button_event): ditto.
12078 (mswindows_handle_gui_wm_command): remove declaration.
12080 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12083 * console-msw.h: Avoid shadows.
12084 (mswindows_get_toolbar_button_text):
12085 (emacs_mswindows_create_stream_pair):
12086 (emacs_mswindows_delete_stream_pair):
12087 (mswindows_handle_toolbar_wm_command): declare.
12089 * device-msw.c (build_syscolor_string): Avoid shadows.
12091 2000-01-23 Andy Piper <andy@xemacs.org>
12093 * glyphs-widget.c (widget_instantiate): reverse the items for
12094 layouts so that children are in the expected order.
12096 2000-01-28 Martin Buchholz <martin@xemacs.org>
12098 * ralloc.c: safe_bcopy ==> memmove
12099 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12100 * s/msdos.h: Remove BCOPY macros.
12101 * insdel.c (gap_right): Remove BCOPY conditional code.
12102 * insdel.c (gap_left): Remove BCOPY conditional code.
12103 XEmacs demands a working ANSI C compiler - hence memmove.
12105 * regex.c (regex_compile): Remove accidental use of trigraphs.
12107 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12109 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12112 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12114 * event-msw.c (mswindows_drain_windows_queue): Added the
12116 (mswindows_need_event): Commented the call to
12117 mswindows_drain_windows_queue().
12118 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12121 * console-msw.h: Moved a few function prototypes here from
12124 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12125 parameter from unsigned short to unsigned long.
12126 (Fmswindows_shell_execute): Added return value.
12128 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12130 * sysdep.c (init_system_name):
12131 process-unix.c (unix_canonicalized_host_name):
12132 Don't call freeaddrinfo() if getaddrinfo() fails.
12134 * process-unix.c (unix_open_unix_network_stream):
12135 Moved the code to get a port # into address loop.
12137 2000-01-27 Martin Buchholz <martin@xemacs.org>
12139 * buffer.c (reinit_vars_of_buffer):
12140 The right place to initialize conversion_in_dynarr and
12141 conversion_out_dynarr.
12143 * alloc.c (pdump): Use the real open() till sys_open() is functional.
12145 * process-unix.c (unix_canonicalize_host_name): Muleize.
12146 (unix_open_network_stream): Muleize.
12148 * buffer.h: Fix up prototypes for ralloc.c functions.
12150 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12151 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12152 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12153 instead of gethostbyname()
12154 * process-unix.c: In unix_canonicalize_host_name() and
12155 unix_open_network_stream(), add code to use getaddrinfo()
12156 instead of gethostbyname().
12158 2000-01-27 Daniel Pittman <daniel@danann.net>
12160 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12161 libs when built with flat Athena.
12163 2000-01-27 Martin Buchholz <martin@xemacs.org>
12165 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12166 Use coding standards for function prototypes.
12168 2000-01-25 Martin Buchholz <martin@xemacs.org>
12170 * dialog-msw.c (push_lisp_string_as_unicode):
12171 * doc.c (unparesseuxify_doc_string):
12172 * dired.c (Fuser_name_completion_1):
12173 * dired.c (Fuser_name_all_completions):
12174 * dired.c (free_user_cache):
12175 * dired.c (user_name_completion):
12176 * console-x.c (get_display_arg_connection):
12177 * minibuf.c (clear_echo_area_internal):
12178 * minibuf.c (echo_area_append):
12179 * eldap.c (Fldap_open):
12180 * eldap.c (Fldap_search_internal):
12181 * frame-x.c (x_set_frame_text_value):
12182 * frame-x.c (x_set_frame_properties):
12183 * frame-x.c (x_create_widgets):
12184 * redisplay-tty.c (term_get_fkeys_1):
12185 * objects-x.c (x_parse_nearest_color):
12186 * objects-x.c (x_valid_color_name_p):
12187 * objects-x.c (x_initialize_font_instance):
12188 * objects-x.c (x_list_fonts):
12189 * objects-x.c (x_find_charset_font):
12190 * tooltalk.c (Fadd_tooltalk_message_arg):
12191 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12192 * tooltalk.c (Fadd_tooltalk_pattern_arg):
12193 * process-unix.c (unix_create_process):
12194 * ntproc.c (sys_spawnve):
12195 * sound.c (Fplay_sound_file):
12196 * sound.c (Fplay_sound):
12197 * buffer.c (init_initial_directory):
12198 * buffer.c (init_buffer):
12199 * editfns.c (init_editfns):
12200 * editfns.c (Ftemp_directory):
12201 * editfns.c (Fuser_full_name):
12202 * editfns.c (uncache_home_directory):
12203 * editfns.c (get_home_directory):
12204 * editfns.c (Fuser_home_directory):
12205 * editfns.c (Fformat_time_string):
12206 * editfns.c (Fcurrent_time_string):
12207 * gui-x.c (button_item_to_widget_value):
12208 * database.c (Fopen_database):
12209 * event-Xt.c (x_to_emacs_keysym):
12210 * event-Xt.c (x_event_to_emacs_event):
12211 * event-Xt.c (describe_event_window):
12212 * event-msw.c (mswindows_wnd_proc):
12213 * glyphs-eimage.c (jpeg_instantiate):
12214 * glyphs-eimage.c (gif_instantiate):
12215 * glyphs-eimage.c (png_instantiate):
12216 * glyphs-eimage.c (tiff_instantiate):
12217 * glyphs-x.c (xbm_instantiate_1):
12218 * glyphs-x.c (x_xbm_instantiate):
12219 * glyphs-x.c (x_xface_instantiate):
12220 * glyphs-x.c (autodetect_instantiate):
12221 * glyphs-x.c (cursor_font_instantiate):
12222 * glyphs-x.c (x_widget_instantiate):
12223 * glyphs-x.c (x_widget_set_property):
12224 * glyphs-x.c (x_widget_property):
12225 * glyphs-x.c (BUILD_GLYPH_INST):
12226 * print.c (write_string_to_stdio_stream):
12227 * print.c (output_string):
12228 * print.c (Falternate_debugging_output):
12229 * print.c (Fexternal_debugging_output):
12230 * glyphs-msw.c (extract_xpm_color_names):
12231 * glyphs-msw.c (mswindows_xpm_instantiate):
12232 * glyphs-msw.c (bmp_instantiate):
12233 * glyphs-msw.c (resource_name_to_resource):
12234 * glyphs-msw.c (mswindows_resource_instantiate):
12235 * glyphs-msw.c (xbm_instantiate_1):
12236 * glyphs-msw.c (mswindows_xbm_instantiate):
12237 * glyphs-msw.c (mswindows_xface_instantiate):
12238 * glyphs-msw.c (mswindows_widget_instantiate):
12239 * glyphs-msw.c (add_tree_item):
12240 * glyphs-msw.c (add_tab_item):
12241 * glyphs-msw.c (mswindows_combo_box_instantiate):
12242 * glyphs-msw.c (mswindows_widget_property):
12243 * glyphs-msw.c (mswindows_combo_box_property):
12244 * glyphs-msw.c (mswindows_widget_set_property):
12245 * console.c (stuff_buffered_input):
12246 * objects-msw.c (mswindows_initialize_color_instance):
12247 * objects-msw.c (mswindows_valid_color_name_p):
12248 * objects-msw.c (mswindows_list_fonts):
12249 * objects-msw.c (mswindows_font_instance_truename):
12250 * bytecode.c (optimize_compiled_function):
12251 * select-x.c (symbol_to_x_atom):
12252 * select-x.c (x_atom_to_symbol):
12253 * select-x.c (hack_motif_clipboard_selection):
12254 * select-x.c (selection_data_to_lisp_data):
12255 * select-x.c (lisp_data_to_selection_data):
12256 * select-x.c (Fx_get_cutbuffer_internal):
12257 * select-x.c (Fx_store_cutbuffer_internal):
12258 * buffer.h (TO_EXTERNAL_FORMAT): New function.
12259 * buffer.h (TO_INTERNAL_FORMAT): New function.
12260 * emacs.c (make_arg_list_1):
12261 * emacs.c (make_argc_argv):
12262 * emacs.c (main_1):
12263 * emacs.c (Fdump_emacs):
12264 * emacs.c (split_string_by_emchar_1):
12269 * device-x.c (x_init_device):
12270 * device-x.c (Fx_valid_keysym_name_p):
12271 * device-x.c (Fx_get_font_path):
12272 * device-x.c (Fx_set_font_path):
12273 * glyphs.c (bitmap_to_lisp_data):
12274 * glyphs.c (pixmap_to_lisp_data):
12275 * alloc.c (make_ext_string): Use coding system arguments. Update
12277 * alloc.c (build_string):
12278 * callproc.c (child_setup):
12279 * callproc.c (init_callproc):
12280 * fileio.c (lisp_strerror):
12281 * fileio.c (directory_file_name):
12282 * fileio.c (Fexpand_file_name):
12283 * fileio.c (Ffile_truename):
12284 * fileio.c (Fsysnetunam):
12285 * fileio.c (Fdo_auto_save):
12286 * sysdep.c (sys_readdir):
12287 * tests.c: New file. Allow adding C tests.
12288 Replace GET_* macros with a more comprehensible and flexible
12289 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12291 Any coding system can be used to do format conversion.
12292 Eliminate enum external_data_format.
12293 Eliminate convert_to_external_format.
12294 Eliminate convert_to_internal_format.
12295 Make sure file-name, keyboard, terminal, and ctext are always
12296 defined as coding systems or aliases. Make
12297 file-name-coding-system, terminal-coding-system, and
12298 keyboard-coding-system magical variables that are equivalent to
12299 defining the corresponding coding system aliases.
12301 * file-coding.c (Fcoding_system_canonical_name_p): New function.
12302 * file-coding.c (Fcoding_system_alias_p): New function.
12303 * file-coding.c (Fcoding_system_aliasee): New function.
12304 * file-coding.c (append_suffix_to_symbol): New function.
12305 * file-coding.c (dangling_coding_system_alias_p): New function.
12306 * file-coding.c (Ffind_coding_system):
12307 * file-coding.c (Fcopy_coding_system):
12308 * file-coding.c (encode_coding_no_conversion):
12309 * file-coding.c (syms_of_file_coding):
12310 * file-coding.c (vars_of_file_coding):
12311 Rewrite coding system alias code.
12312 Allow nested aliases, like symbolic links.
12313 Allow redefinition of coding system aliases.
12314 Prevent existence of dangling coding system aliases.
12316 * dired.c (Fuser_name_completion_1):
12317 * dired.c (Fuser_name_all_completions):
12318 A crash would happen if user did QUIT in the middle of building
12319 user_name_cache. Remove redundant code in mainline and unwind_protect.
12322 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
12324 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12325 an unsigned char *. Update all callers.
12327 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12329 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12331 2000-01-25 Martin Buchholz <martin@xemacs.org>
12333 * elhash.c (hentry_description): Use more portable definition.
12334 (resize_hash_table): Initialize new hentries using
12335 xnew_array_and_zero, thereby simplifying the code.
12337 * mule-charset.c (make_charset): Make sure entire object is
12338 initialized, to avoid Purify warnings.
12340 * alloc.c (resize_string): Fix unlikely crash with big strings.
12342 2000-01-24 Martin Buchholz <martin@xemacs.org>
12344 * realpath.c (xrealpath):
12345 Don't call getwd().
12347 2000-01-25 Martin Buchholz <martin@xemacs.org>
12349 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12351 1999-12-28 Max Matveev <max@melbourne.sgi.com>
12353 * unexelfsgi.c (unexec): Change the way we decide which segment
12354 should be extended.
12356 Assumption that .bss section should be outside the PT_LOADable
12357 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12358 it's present) is inside the 'data' segment. This would fail the
12359 test which was used to find a segment to grow and cover new
12360 heap. Instead of this assumption, I created another one - on IRIX
12361 the segment to grow should start below .bss and it's address
12362 should extent above the end of .bss. Once this segment is
12363 identified, it's grown to accommodate the new heap and new
12364 zero-length .bss section is added at the end of .data2.
12366 2000-01-25 Martin Buchholz <martin@xemacs.org>
12368 * eval.c (Feval): Wrong number of arguments should use original
12369 function, not the indirect_function version of it.
12371 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
12373 * glyphs-x.c (x_button_instantiate): Don't add image if
12374 it is not a pixmap.
12375 (x_locate_pixmap_file): Call Fexpand_file_name when file name
12378 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
12380 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12382 (DEFVAR_INT_MAGIC): Ditto.
12383 (DEFVAR_BOOL_MAGIC): Ditto.
12384 * glyphs.h: Reindent backslash.
12386 2000-01-24 Martin Buchholz <martin@xemacs.org>
12388 * glyphs-widget.c (layout_query_geometry):
12389 (layout_layout): Use correct types for gheight, gwidth.
12391 2000-01-24 Martin Buchholz <martin@xemacs.org>
12393 * EmacsManager.c (QueryGeometry): Purified.
12395 2000-01-23 Martin Buchholz <martin@xemacs.org>
12397 * alloc.c (make_float): Make sure entire object is initialized, to
12398 avoid Purify warnings.
12399 (pdump_register_sub): Remove useless assignment.
12400 (pdump): Use xmalloc, not malloc.
12401 (pdump_load): Use xmalloc, not malloc.
12403 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12410 * sysdep.c: Removed redundant #include <windows.h>
12412 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12414 * frame.c (delete_frame_internal): Do not delete device when its
12415 implementation so declares.
12416 (delete_frame_internal): Set device selected frame to nil when
12417 last frame goes away.
12419 * device-msw.c (msprinter_device_system_metrics): Implemented.
12420 (mswindows_device_system_metrics): Added 'device-dpi property.
12422 * device.c: (Fdevice_printer_p): Added.
12423 Added 'offset-workspace device metric.
12425 * console.h (device_metrics): Declared DM_offset_workspace.
12427 2000-01-23 Martin Buchholz <martin@xemacs.org>
12429 * fileio.c (Ffile_truename): Remove pointless and confusing
12430 initialization of elen.
12432 * glyphs-widget.c: Compiler warning fixes.
12434 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
12436 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12437 instead of a Lisp_Object as argument to make it consistent with
12438 the other LIVE_P macros.
12439 (CHECK_LIVE_PROCESS): New macro.
12441 * process.c: Declare Qprocess_live_p.
12442 (Fprocess_live_p): New function.
12443 (create_process): Use PROCESS_LIVE_P.
12444 (read_process_output): Ditto.
12445 (set_process_filter): Ditto.
12446 (Fdelete_process): Ditto.
12447 (kill_buffer_processes): Ditto
12448 (process_send_signal): Use CHECK_LIVE_PROCESS.
12449 (Fprocess_input_coding_system): Check whether process is still
12450 alive (fix PR#1061).
12451 (Fprocess_output_coding_system): Ditto.
12452 (Fprocess_coding_system): Ditto.
12453 (Fset_process_input_coding_system): Ditto.
12454 (Fset_process_output_coding_system): Ditto.
12456 2000-01-23 Andy Piper <andy@xemacs.org>
12458 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12461 * glyphs.c (mark_image_instance): take into account changed
12462 image_instance format.
12463 (image_instance_equal): ditto.
12464 (image_instance_hash): ditto.
12466 * glyphs-widget.c (widget_instantiate): Incorporate layout
12467 instantiation here. Delay layout of the layout until later.
12468 (layout_instantiate): deleted.
12469 (layout_query_geometry): new function. get the geometry of a
12471 (layout_layout): layout a layout dynamically.
12472 (image_instantiator_widget): New function - splitting up
12473 image_instantiator_format_create_glyphs_widget for netwinder
12475 (image_instantiator_buttons):
12476 (image_instantiator_edit_fields):
12477 (image_instantiator_combo_box):
12478 (image_instantiator_scrollbar):
12479 (image_instantiator_progress_guage):
12480 (image_instantiator_tree_view):
12481 (image_instantiator_tab_control):
12482 (image_instantiator_labels):
12483 (image_instantiator_layout): ditto.
12484 (image_instantiator_format_create_glyphs_widget): Call preceding
12487 2000-01-22 Martin Buchholz <martin@xemacs.org>
12489 * process.c (Fset_process_coding_system):
12490 * device-x.c (Fx_keysym_hash_table):
12493 * lstream.c (Lstream_write): Return documented value, not 0.
12495 * fileio.c (directory_file_name):
12496 (Fsubstitute_in_file_name):
12497 (Fsubstitute_insert_file_contents_internal):
12498 (Fwrite_region_internal):
12503 Remove vestigial APOLLO-conditional code.
12505 2000-01-21 Martin Buchholz <martin@xemacs.org>
12507 * getpagesize.h: Add guard macros.
12508 * libsst.h: Add guard macros.
12509 * libst.h: Add guard macros.
12510 * line-number.h: Add guard macros.
12511 * ndir.h: Add guard macros.
12512 * sysfloat.h: Add guard macros.
12513 * sysfile.h: Add guard macros.
12514 * sysproc.h: Add guard macros.
12515 * syswait.h: Add guard macros.
12516 * xintrinsic.h: Add guard macros.
12517 * xintrinsicp.h: Add guard macros.
12518 * xmmanager.h: Add guard macros.
12519 * xmmanagerp.h: Add guard macros.
12520 * xmprimitive.h: Add guard macros.
12521 * xmu.h: Add guard macros.
12522 * gpmevent.h: Add copyright statement. Add guard macros.
12523 * miscplay.h: Add guard macros.
12524 * *.h: Use consistent C-standards-approved guard macro names.
12526 * opaque.c (make_opaque): Switch parameter order.
12527 * opaque.h (make_opaque): Switch parameter order.
12528 Update all callers.
12529 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12531 * config.h.in (type_checking_assert): Added.
12532 (bufpos_checking_assert): Added.
12534 2000-01-21 Martin Buchholz <martin@xemacs.org>
12536 * alloc.c: Harmless pdump changes.
12538 - spell alignment correctly.
12539 * sysdep.c: Use countof()
12541 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12543 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12544 initially_selected_for_input() console method, default to 0.
12545 (semi_canonicalize_console_connection): Try to delegate to
12546 canonicalize_console_connection if no such console method.
12547 (canonicalize_console_connection): Vice versa.
12548 (print_console): Do not print nil connection.
12550 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12551 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12552 (XDEVIMPF_FRAMELESS_OK): Added.
12553 (CONSOLE_INHERITS_METHOD): Added.
12555 * console-msw.c (mswindows_canonicalize_console_connection):
12557 (mswindows_canonicalize_device_connection): Added.
12559 * console-msw.h (struct msprinter_device): Added this struct and
12561 (mswindows_device): Made fontlist a lisp object.
12563 * device.c (semi_canonicalize_device_connection): Try to delegate
12564 to canonicalize_device_connection if no such console method.
12565 (canonicalize_device_connection): Vice versa.
12566 (print_device): Do not print nil connection.
12568 * device-msw.c (mswindows_init_device): Call InitCommonControls
12570 (mswindows_delete_device): Removed fontlist deallocation.
12571 (mswindows_mark_device): Added.
12573 * events.c (event_equal): Added abort() at unreached code.
12574 (event_hash): Ditto.
12576 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12577 fallback tags of Windows devices.
12579 * general.c (syms_of_general): Initialized Qmsprinter.
12581 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12582 of fallback tags of Windows devices.
12584 * lisp.h: Declared Qmsprinter.
12586 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12588 (mswindows_list_fonts): Ditto.
12589 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12590 that it can be used by both mswindows and msprinter devices.
12591 (initialize_font_instance): Added.
12592 (mswindows_initialize_font_instance): Use it.
12593 (msprinter_initialize_font_instance): Added.
12595 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12596 and implementation flags check.
12597 (redisplay_without_hooks): Changed the call to the above.
12598 (Fredraw_device): Ditto.
12599 (Fredisplay_device): Ditto.
12601 * redisplay-msw.c (get_frame_dc): Implemented.
12602 (get_frame_compdc): Implemented.
12603 (many functions): Use the two functions above to get device
12604 contexts, ether for a window or a printer.
12606 2000-01-21 Olivier Galibert <galibert@pobox.com>
12608 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12609 initialization here.
12610 (init_symbols_once_early): Call it.
12611 * emacs.c (main_1): Call it.
12612 * symsinit.h: Declare it.
12614 2000-01-19 Olivier Galibert <galibert@pobox.com>
12616 * alloc.c: Use a lrecord_header * in the backtrace instead of a
12618 (pdump_backtrace): Ditto.
12619 (pdump_register_object): Ditto. Cleanup use of the pointers.
12620 (pdump_get_entry): Abort if trying to register a null pointer.
12621 (pdump_dump_data): Cleanup types when relocating.
12622 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12623 (pdump_dump_rtables): Remove bad casts.
12624 (pdump_load): Cleanup relocation w.r.t union type. Use a
12625 Lisp_Object instead of a EMACS_INT for the hashtable
12628 2000-01-20 Martin Buchholz <martin@xemacs.org>
12630 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12632 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12634 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12636 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12638 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12640 * faces.h (FACE_STRIKETHRU_P): Added.
12642 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12645 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12646 (mswindows_set_dc_font): New function, aware of font variants,
12647 separated from mswindows_update_dc.
12649 * objects-msw.h (struct mswindows_font_instance_data): Added
12652 * objects-msw.c (mswindows_finalize_font_instance): Delete all
12653 cached fonts and the data structure.
12654 (mswindows_initialize_font_instance): Added creation of font data
12656 (mswindows_print_font_instance): Print at least something.
12657 (mswindows_create_font_variant): Implemented.
12658 (mswindows_get_hfont): Implemented.
12660 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
12662 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12663 prototyping problem with msvc.
12665 * emacs.c (main_1): added syms_of_gui_mswindows() call
12667 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12668 syms_of_gui_mswindows() function
12670 * symsinit.h: added the prototype for syms_of_gui_mswindows()
12672 2000-01-18 Martin Buchholz <martin@xemacs.org>
12674 * XEmacs 21.2.27 is released.
12676 2000-01-18 Martin Buchholz <martin@xemacs.org>
12678 * glyphs-eimage.c (struct tiff_error_struct):
12680 (tiff_warning_func):
12681 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12686 * unexec.c: Remove vestigial Lucid C code.
12690 * libsst.c: Ansify.
12691 Remove declarations of errno and strerror().
12693 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
12695 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12697 2000-01-16 Martin Buchholz <martin@xemacs.org>
12699 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12702 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12707 Change enum eol_type to eol_type_t.
12709 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12711 * gui.c (get_gui_callback): Check cons before accessing car.
12713 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12715 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12716 (XSETSPECIFIER_TYPE): Ditto.
12718 2000-01-17 Didier Verna <didier@xemacs.org>
12720 * redisplay.c (generate_fstring_runes): compute string size in
12721 characters, not bytes.
12723 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
12725 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12727 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
12729 * print.c (print_error_message): Call print_prepare().
12731 2000-01-14 Martin Buchholz <martin@xemacs.org>
12733 * .dbxrc: Renamed from dbxrc.
12735 * events.c (event_to_character):
12736 Use `assert (foo)' instead of `if (!foo) abort()'
12738 * .gdbinit (xtype): Add documentation.
12739 * .gdbinit (check-temacs): New function.
12740 * .gdbinit (check-xemacs): New function.
12741 * dbxrc (check-xemacs): New function.
12742 * dbxrc (check-xemacs): New function.
12744 2000-01-14 Andy Piper <andy@xemacs.org>
12746 * glyphs-widget.c (widget_query_geometry): Make sure that we
12747 calculate default dimensions correctly.
12749 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12751 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12753 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12754 pdump_wire'd variable.
12756 * emacs.c: (main_1): Conditionalized calls to
12757 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12759 2000-01-13 Martin Buchholz <martin@xemacs.org>
12761 * window.c (Fset_window_configuration):
12762 * sysdep.c (_start):
12763 * input-method-motif.c (res):
12764 * event-Xt.c (Xt_process_to_emacs_event):
12765 Simple compiler warning fixes.
12767 * bytecode.c (funcall_compiled_function): Use the original
12768 function symbol on the backtrace list in preference to the
12769 compiled_function object in error messages.
12771 2000-01-13 Andy Piper <andy@xemacs.org>
12773 * glyphs-x.c (update_widget_face): Make sure we update the widget
12774 background as well as foreground.
12776 2000-01-13 Andy Piper <andy@xemacs.org>
12778 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12779 fields to subwindow.
12780 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12781 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12782 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12783 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12785 * glyphs-widget.c (check_valid_tab_orientation): new function.
12786 (initialize_widget_image_instance): zero orientation and
12788 (widget_instantiate): pick up orientation.
12789 (tab_control_query_geometry): return appropriate values for
12792 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12793 appropriate creation flags for left, right and bottom tabs.
12795 * s/cygwin32.h: add tab definitions.
12797 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12799 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12800 frame upon hiding a subwindow.
12801 (mswindows_button_instantiate): Changed the push button style to
12803 (mswindows_button_instantiate): Removed button BS_NOTIFY
12805 (mswindows_button_instantiate): Removed redundant check for
12806 a disabled gui item.
12807 (mswindows_button_instantiate): Made use of WS_TABSTOP
12808 consistent: "operable" controls (edit, button, tree, scroll) have
12809 this style, "display-only" ones (static, progress gauge) do
12810 not. This style is currently ignored by XEmacs though. Also,
12811 removed the WS_EX_CONTROLPARENT style - it is not for children,
12812 it is for their parents!
12813 (mswindows_edit_field_instantiate): Ditto.
12814 (mswindows_progress_gauge_instantiate): Ditto.
12815 (mswindows_tree_view_instantiate): Ditto.
12816 (mswindows_tab_control_instantiate): Ditto.
12817 (mswindows_scrollbar_instantiate): Ditto.
12818 (mswindows_combo_box_instantiate): Ditto.
12819 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12820 style to the "clip" window.
12821 (mswindows_button_instantiate): Removed compilation warning by
12822 equally typing terms of the ?: operator.
12824 2000-01-12 Didier Verna <didier@xemacs.org>
12826 * redisplay.c (generate_fstring_runes): new parameter holding the
12827 last modeline-format extent.
12828 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12829 extent, fill the glyph block with it.
12830 (generate_fstring_runes): handle these parameters.
12831 (generate_formatted_string_db): ditto.
12833 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12834 glyphs'extents in the modeline.
12836 1999-01-11 Mike Woolley <mike@bulsara.com>
12838 * ntheap.c: Reduced the reserved heap space from 1Gb down to
12839 256Mb, as a workaround for the non-starting problem many people
12842 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12844 * console-tty.c (Fset_console_tty_output_coding_system):
12845 Force redrawing tty frame.
12847 2000-01-10 Didier Verna <didier@xemacs.org>
12849 * redisplay.c (generate_fstring_runes): fix size computation bug.
12851 2000-01-09 William M. Perry <wmperry@aventail.com>
12853 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12855 2000-01-09 Andy Piper <andy@xemacs.org>
12857 * glyphs-msw.c: index -> i to avoid shadows.
12858 (xbm_create_bitmap_from_data): make static.
12859 (check_valid_string_or_int): deleted.
12860 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12862 * glyphs-x.c (x_update_subwindow): remove unused args.
12864 * glyphs.c (glyph_image_instance): return the thing. Don't set the
12865 back pointer - this is done in allocate_image_instance.
12866 (query_string_font): return Qnil to make the compiler happy.
12867 (unmap_subwindow): set to ~0 to make the compiler happy.
12868 (glyph_query_geometry): comment out until used.
12869 (glyph_layout): ditto.
12871 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
12873 * insdel.c (signal_after_change): Remove extraneous unbind_to().