1 2002-07-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
3 * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
4 CONVERSION_IDENTICAL, identical conversion is used even if a CCS
5 is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
6 CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
7 CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
8 CONVERSION_96x96x96x96 are introduced.
9 (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
10 CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
11 instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
13 * char-ucs.h (CONVERSION_94): New macro.
14 (CONVERSION_96): New macro.
15 (CONVERSION_94x94): New macro.
16 (CONVERSION_96x96): New macro.
17 (CONVERSION_94x94x94): New macro.
18 (CONVERSION_96x96x96): New macro.
19 (CONVERSION_94x94x94x60): New macro.
20 (CONVERSION_94x94x94x94): New macro.
21 (CONVERSION_96x96x96x96): New macro.
23 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
25 * lisp.h: Add an EXFUN for `Fchar_ref_p'.
27 * fns.c (Qideographic_structure): New variable.
28 (Qkeyword_char): New variable.
29 (ids_format_unit): New function.
30 (Fideographic_structure_to_ids): New function.
31 (syms_of_fns): Add new symbols `ideographic-structure' and
32 `:char'; add new builtin function `ideographic-structure-to-ids'.
34 * data.c (Fchar_ref_p): New function.
35 (syms_of_data): Add new builtin function `char-ref-p'.
37 * chartab.h: Add an EXFUN for `Ffind_char'.
39 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
41 * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
42 and `COMPOSE_ADD_CHAR'.
43 (decode_coding_iso2022): Use `decode_flush_er_chars'.
45 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
47 * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
48 instead of `DECODE_ADD_UCS_CHAR'.
49 (COMPOSE_ADD_CHAR): Likewise.
51 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
53 * text-coding.c (decode_flush_er_chars): New inline function.
54 (decode_add_er_char): New function.
55 (decode_coding_utf8): Use `decode_flush_er_chars' and
58 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
60 * text-coding.c (decode_coding_utf8): Flush for er_buf must be
61 done before `decode_output_utf8_partial_char'.
63 * mule-charset.c (complex_vars_of_mule_charset): Specify
64 `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
65 `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
67 2002-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
69 * mule-charset.c (decode_defined_char): New function; search
71 (decode_builtin_char): Don't search mother if
72 XCHARSET_MAX_CODE(charset) == 0.
73 (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
74 == 0 even if code >= XCHARSET_MAX_CODE(charset).
75 (Fdecode_char): Use `decode_defined_char' instead of
76 `DECODE_DEFINED_CHAR'.
77 (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
78 mother of `Vcharset_ucs_jis'.
80 * text-coding.c (decode_coding_big5): Use `decode_defined_char'
81 instead of `DECODE_DEFINED_CHAR'.
83 * char-ucs.h (decode_defined_char): Renamed from
84 `DECODE_DEFINED_CHAR'; changed to normal function.
85 (DECODE_CHAR): Use `decode_defined_char' instead of
86 `DECODE_DEFINED_CHAR'.
88 * lisp.h: Add `EXFUN' for `Fstring_to_number'.
90 2002-07-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
92 * char-ucs.h: Add `extern' for `Vcharset_ucs'.
94 * text-coding.c (Vcoded_charset_entity_reference_alist): New
96 (Quse_entity_reference): New variable.
100 (coding_system_description): Add description for
102 (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
103 (allocate_coding_system): Initialize `ccs_priority_list' in
105 (Fmake_coding_system): Add description about
106 'use-entity-reference; setup
107 CODING_SYSTEM_USE_ENTITY_REFERENCE(codesys).
108 (Fcoding_system_property): Accept `disable-composition' and
109 `use-entity-reference' in UTF-2000.
110 (struct decoding_stream): Add new member `er_counter' and `er_buf'
112 (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
113 (decode_coding_utf8): Decode entity-reference if
114 CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
115 (char_encode_utf8): Encode non-Unicode characters as
116 entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
118 (syms_of_file_coding): Add new symbols `use-entity-reference',
120 (vars_of_file_coding): Add new variable
121 `coded-charset-entity-reference-alist'.
122 (complex_vars_of_file_coding): Declare `disable-composition' and
123 `use-entity-reference' to be coding-system-properties in UTF-2000.
125 * file-coding.h (struct Lisp_Coding_System): Add new member
126 `use_entity_reference' and `ccs_priority_list'.
127 (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
128 (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
129 (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
131 2002-02-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
133 * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
135 2002-02-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
137 * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
138 `XCHARSET_GRAPHIC(ccs)'.
140 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
142 * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
145 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
147 * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
148 instead of `XCHARSET_CHARS'.
150 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
152 * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
153 (XCHARSET_BYTE_SIZE): Likewise.
155 * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
157 (XCHARSET_BYTE_SIZE): Likewise.
159 2002-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
161 * char-ucs.h (decoding_table_check_elements): Delete prototype.
162 (get_ccs_octet_table): New inline function.
163 (put_ccs_octet_table): Likewise.
164 (decoding_table_put_char): Use `get_ccs_octet_table' and
165 `put_ccs_octet_table'.
166 (decoding_table_remove_char): Use `decoding_table_put_char'.
167 (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
169 * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
171 (make_charset): Use Qunbound instead Qnil as initial value of
174 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
176 * mule-charset.c (put_char_ccs_code_point): Modify for
177 `decoding_table_remove_char' and `decoding_table_put_char'.
178 (remove_char_ccs): Modify for `decoding_table_remove_char'.
180 * char-ucs.h (decoding_table_remove_char): Change arguments to
181 hide decoding_table vector.
182 (decoding_table_put_char): Likewise.
184 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
186 * mule-charset.c (decoding_table_remove_char): Moved to
188 (decoding_table_put_char): Likewise.
190 * char-ucs.h (decoding_table_check_elements): New prototype [moved
191 from mule-charset.c].
192 (decoding_table_remove_char): New inline function [moved from
194 (decoding_table_put_char): Likewise.
196 2002-04-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
198 * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
199 instead of `DECODE_CHAR' for mother; don't use special code for
200 chinese-big5 to use code space of chinese-big5-1 and
202 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
203 `MAX_CHAR_BIG5_CDP' for chinese-big5.
205 * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
206 (MAX_CHAR_BIG5_CDP): Revival.
208 2002-04-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
210 * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
211 the XLFD registry-encoding name of `chinese-big5'.
213 2002-04-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
215 * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
216 (Qchinese_big5_cdp): Deleted.
217 (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
218 (complex_vars_of_mule_charset): Delete coded-charset
221 * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
222 (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
223 `CHARSET_ID_OFFSET - n' for private CCS.
224 (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
225 (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
226 of `MIN_LEADING_BYTE'.
227 (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
228 `(CHARSET_ID_OFFSET - 97)'.
229 (MIN_CHAR_BIG5_CDP): Deleted.
230 (MAX_CHAR_BIG5_CDP): Deleted.
232 2002-01-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
234 * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
237 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
239 * mule-charset.c (decode_builtin_char): Support mother charsets.
241 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
243 * mule-charset.c (Q94x94x60): New variable.
244 (charset_code_point): Support conversion `94x94x60'.
245 (Fmake_charset): Likewise.
246 (syms_of_mule_charset): Add new symbol `94x94x60'.
248 * char-ucs.h (CONVERSION_94x94x60): New macro.
250 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
252 * mule-charset.c (charset_code_point): Unify code about
255 2001-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
257 * mule-charset.c (charset_code_point): Merge code about builtin
258 characters into code about mother charsets; don't use
259 `range_charset_code_point'.
260 (range_charset_code_point): Deleted.
262 2001-12-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
264 * mule-charset.c (Qcode_offset): New variable.
265 (Fmake_charset): Use `XUINT' to get value of `min-code' and
266 `max-code'; accept new property `code-offset'.
267 (syms_of_mule_charset): Add new symbol `code-offset'.
269 2001-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
271 * mule-charset.c (range_charset_code_point): Fixed.
273 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
275 * mule-charset.c (decode_builtin_char): Change semantics of
276 code-offset of coded-charset.
277 (charset_code_point): Likewise.
278 (range_charset_code_point): Likewise.
279 (complex_vars_of_mule_charset): Modify for the change.
281 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
283 * mule-charset.c (Fencode_char): Reverse arguments.
285 * mule-charset.c (charset_code_point): Fixed.
287 2001-12-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
289 * mule-charset.c (Vcharset_mojikyo): Deleted.
290 (Vcharset_mojikyo_2022_1): Deleted.
291 (Vcharset_mojikyo_pj_{1..21}): Deleted.
292 (Qmin_code): New variable in UTF-2000.
293 (Qmax_code): Likewise.
295 (Qconversion): Likewise.
298 (Qmojikyo_2022_1): Deleted.
299 (Qmojikyo_pj_{1..22}): Deleted.
300 (mark_charset): Mark `cs->mother'.
301 (charset_description): Add description for `mother'.
302 (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
303 new arguments `mother' and `conversion'; use
304 `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
305 (charset_code_point): Moved from char-ucs.h; support `mother'
307 (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
308 of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
309 (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
310 UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
311 allow 2 as the value of `graphic' in UTF-2000; add new properties
312 `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
313 require `final' in UTF-2000; modify for `make_charset'.
314 (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
315 instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
316 (Fcharset_property): Support `mother', `min-code' and `max-code'.
317 (Fencode_char): New function.
318 (syms_of_mule_charset): Add new builtin function `encode-char' in
319 UTF-2000; add new symbols `min-code', `max-code', `mother',
320 `conversion' and `94x60'; delete symbols `mojikyo',
321 `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
322 (complex_vars_of_mule_charset): Modify for `make_charset' change;
323 delete coded-charsets `mojikyo', `mojikyo-2022-1' and
324 `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
326 * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
327 `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
329 * char-ucs.h (Vcharset_mojikyo): Deleted.
330 (Vcharset_mojikyo_2022_1): Deleted.
331 (LEADING_BYTE_MOJIKYO): Deleted.
332 (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
333 (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
334 (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
335 (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
336 add new member `mother'; add new member `conversion'.
337 (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
338 (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
339 (CHARSET_MOTHER): New macro.
340 (CHARSET_CONVERSION): New macro.
341 (CONVERSION_IDENTICAL): New macro.
342 (CONVERSION_94x60): New macro.
343 (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
344 (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
345 (XCHARSET_MOTHER): New macro.
346 (XCHARSET_CONVERSION): New macro.
347 (MIN_CHAR_MOJIKYO): Deleted.
348 (MAX_CHAR_MOJIKYO): Deleted.
349 (DECODE_MOJIKYO_2022): Deleted.
350 (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
351 (charset_code_point): Changed to non-inline function.
352 (encode_char_1): Use `charset_code_point'.
353 (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
355 2001-12-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
357 * lread.c (read_compiled_function): Fix prototype.
358 (read_vector): Likewise.
360 2001-12-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
362 * lrecord.h (struct lrecord_header): Delete `older'.
363 (set_lheader_implementation): Delete code for `older'.
364 (set_lheader_older_implementation): Deleted.
365 (enum lrecord_type): Delete `lrecord_type_char_id_table'.
366 (OLDER_RECORD_P): Deleted.
367 (OLDER_RECORD_HEADER_P): Deleted.
368 (alloc_older_lcrecord): Deleted.
369 (alloc_older_lcrecord_type): Deleted.
371 * alloc.c (all_older_lcrecords): Deleted.
372 (alloc_older_lcrecord): Deleted.
373 (disksave_object_finalization_1): Delete code for older objects.
374 (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
375 (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
377 2001-12-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
379 * mule-charset.c (decoding_table_put_char): Use `make_vector'
380 instead of `make_older_vector'.
381 (put_char_ccs_code_point): Likewise.
382 (mark_charset): Mark `cs->decoding_table'.
383 (Fset_charset_mapping_table): Don't use `make_vector_newer'.
385 * lisp.h (make_older_vector): Deleted.
386 (make_vector_newer): Deleted.
388 * config.h.in (HAVE_GGC): Deleted.
390 * alloc.c (make_older_vector): Deleted.
391 (make_vector_newer_1): Deleted.
392 (make_vector_newer): Deleted.
394 2001-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
396 * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
397 (Qideograph_daikanwa_2): New variable.
398 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
399 (complex_vars_of_mule_charset): Add new coded-charset
400 `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
401 `LEADING_BYTE_DAIKANWA'.
403 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
404 (LEADING_BYTE_DAIKANWA_1): New macro.
405 (LEADING_BYTE_DAIKANWA_2): New macro.
406 (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
408 2001-12-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
410 * mule-charset.c (complex_vars_of_mule_charset): Change
411 DOC-strings and registry of `ideograph-daikanwa'; now it indicates
412 the second revised version.
414 2001-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
416 * mule-charset.c (Vcharset_ucs_smp): New variable.
417 (Vcharset_ucs_sip): New variable.
418 (Qucs_smp): New variable.
419 (Qucs_sip): New variable.
420 (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
421 MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
422 (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
423 (complex_vars_of_mule_charset): Modify middle-DOC and registry of
424 `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
425 charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
427 * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
428 (LEADING_BYTE_UCS_SIP): New macro.
429 (MIN_CHAR_SMP): New macro.
430 (MAX_CHAR_SMP): New macro.
431 (MIN_CHAR_SIP): New macro.
432 (MAX_CHAR_SIP): New macro.
434 2001-11-30 Yoshiki Hayashi <yoshiki@xemacs.org>
436 * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
439 2001-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
441 * mule-charset.c (put_char_ccs_code_point): Return canonicalized
442 value; don't store value into `encoding_table' of `Lisp_Charset'.
443 (mark_charset): `encoding_table' was deleted.
444 (charset_description): Likewise.
445 (make_charset): Likewise.
446 (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
447 `put_char_ccs_code_point'.
449 * chartab.h (Fput_char_attribute): New EXFUN.
451 * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
452 is unified with normal symbol space.
453 (Fget_char_attribute): Likewise.
454 (Fput_char_attribute): Likewise; behavior of
455 `put_char_ccs_code_point' is changed.
457 * char-ucs.h: Include "elhash.h".
458 (Vchar_attribute_hash_table): New external variable.
459 (struct Lisp_Charset): Delete `encoding_table'.
460 (CHARSET_ENCODING_TABLE): New implementation; refer
461 `Vchar_attribute_hash_table' instead of `encoding_table' of struct
464 2001-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
466 * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
469 2001-11-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
471 * text-coding.c (char_encode_big5): Prefer charset-g1 than
474 2001-11-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
476 * chartab.c (uint8_byte_table_description): New constant.
477 (uint8-byte-table): Use `uint8_byte_table_description'.
478 (uint16_byte_table_description): New constant.
479 (uint16-byte-table): Use `uint16_byte_table_description'.
481 2001-10-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
483 * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
484 range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
486 2001-10-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
488 * mule-charset.c (Vcharset_ucs_ks): New variable.
489 (Qucs_ks): New variable.
490 (syms_of_mule_charset): Add new symbol `ucs-ks'.
491 (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
493 * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
495 2001-10-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
497 * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
498 (Fdecode_char): Likewise.
500 * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
502 (Fdefine_char): Modify for Fdecode_char.
503 (Ffind_char): Likewise.
505 * mule-charset.c (Fdecode_char): Add new optional argument
507 (Fdecode_builtin_char): Modify for `Fdecode_char'.
509 2001-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
511 * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
512 -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
513 (allocate_coding_system): Initialize initial-charsets of
514 CODESYS_BIG5 in XEmacs UTF-2000.
515 (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
516 CODESYS_BIG5 in XEmacs UTF-2000.
517 (decode_coding_big5): Use initial-charset-g0 and -g1 of
518 CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
520 * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
522 (Qideograph_hanziku_{1 .. 12}): Likewise.
523 (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
525 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
526 `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
527 `ideograph-hanziku-{1 .. 12}'.
529 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
530 (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
531 ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
532 ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
533 (DECODE_DEFINED_CHAR): New inline function.
534 (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
536 2001-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
538 * mule-charset.c (Vcharset_china3_jef): Renamed from
539 `Vcharset_japanese_jef_china3'.
540 (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
541 (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
542 `{MIN|MAX}_CHAR_JEF_CHINA3'..
543 (syms_of_mule_charset): Rename `china3-jef' from
544 `japanese-jef-china3'.
545 (complex_vars_of_mule_charset): Likewise; rename
546 `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
548 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
549 `LEADING_BYTE_JEF_CHINA3'.
550 (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
551 (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
553 2001-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
555 * mule-charset.c (encode_builtin_char_1): Comment out special code
556 for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
558 * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
559 (MAX_CHAR_MOJIKYO_0): Comment out.
560 (MIN_CHAR_CBETA): Changed to 0x00E20000.
561 (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
562 (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
563 (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
565 2001-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
567 * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
568 (Qideograph_cbeta): New variable.
569 (encode_builtin_char_1): Comment out special code for
570 coded-charset `mojikyo' and `japanese-jef-china3'.
571 (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
572 (complex_vars_of_mule_charset): Add new coded-charset
575 * char-ucs.h (LEADING_BYTE_CBETA): New macro.
576 (MIN_CHAR_CBETA): New macro.
577 (MAX_CHAR_CBETA): New macro.
579 2001-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
581 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
582 (LEADING_BYTE_JEF_CHINA3): New macro.
583 (MIN_CHAR_JEF_CHINA3): New macro.
584 (MAX_CHAR_JEF_CHINA3): Likewise.
585 (DECODE_CHAR): Fixed.
587 2001-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
589 * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
590 (Qjapanese_jef_china3): New variable.
591 (encode_builtin_char_1): Support `japanese-jef-china3'.
592 (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
593 (complex_vars_of_mule_charset): Add new coded-charset
594 `japanese-jef-china3'.
596 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
598 * chartab.c (XCHARSET_CELL_RANGE): New inline function.
599 (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
600 94^4, 96^3, 96^4, 128^n and 256^n set.
601 (put_char_table): Use `XCHARSET_CELL_RANGE'.
602 (map_char_table): Likewise.
604 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
606 * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
609 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
611 * chartab.h (get_char_id_table): New inline function.
613 * chartab.c (get_char_id_table): Moved to chartab.h as an inline
616 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
618 * chartab.h (decode_char_table_range): New prototype in XEmacs
620 (put_char_id_table): New inline function in XEmacs UTF-2000.
622 * chartab.c (put_char_id_table): Moved to chartab.h as an inline
624 (decode_char_table_range): Delete static declaration in XEmacs
627 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
629 * chartab.c (put_char_id_table): Use `put_char_table'.
631 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
633 * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
634 (map_over_uint16_byte_table): Likewise.
635 (map_over_byte_table): Likewise.
636 (map_char_table): Modify for `map_over_uint8_byte_table',
637 `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
640 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
642 * chartab.c (struct map_char_table_for_charset_arg): New
644 (map_char_table_for_charset_fun): New function.
645 (map_char_table): Use `map_char_table' for encoding_table of
648 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
650 * chartab.c (map_char_table): Check a character is found in
651 range->charset instead of non default value is defined in
652 char-table when range is CHARTAB_RANGE_ROW.
654 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
656 * chartab.c (map_char_id_table): Deleted.
657 (Fmap_char_attribute): Use `map_char_table' instead of
660 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
662 * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
664 (update_syntax_table): Deleted in XEmacs UTF-2000.
666 * syntax.c (find_defun_start): Use `syntax_table' instead of
667 `mirror_syntax_table' in XEmacs UTF-2000.
668 (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
670 (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
672 (Fmatching_paren): Likewise.
673 (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
675 (find_start_of_comment): Likewise.
676 (find_end_of_comment): Likewise.
677 (Fforward_comment): Likewise.
678 (scan_lists): Likewise.
679 (char_quoted): Likewise.
680 (Fbackward_prefix_chars): Likewise.
681 (scan_sexps_forward): Likewise.
682 (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
683 (update_syntax_table): Likewise.
685 * search.c (skip_chars): Use `syntax_table' instead of
686 `mirror_syntax_table' in XEmacs UTF-2000.
688 (Freplace_match): Likewise.
690 * regex.c (re_compile_fastmap): Use `syntax_table' instead of
691 `mirror_syntax_table' in XEmacs UTF-2000.
692 (WORDCHAR_P_UNSAFE): Likewise.
693 (re_match_2_internal): Likewise.
695 * font-lock.c (find_context): Use `buf->syntax_table' instead of
696 `buf->mirror_syntax_table' in XEmacs UTF-2000.
698 * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
699 of `buf->mirror_syntax_table' in XEmacs UTF-2000.
701 * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
704 * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
706 (print_char_table): Print `default_value' in XEmacs UTF-2000.
707 (char_table_description): Delete `mirror_table' in XEmacs
709 (fill_char_table): Don't call `update_syntax_table' in XEmacs
711 (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
712 (Fcopy_char_table): Likewise.
713 (put_char_table): Don't call `update_syntax_table' in XEmacs
716 * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
717 `buf->mirror_syntax_table' in XEmacs UTF-2000.
718 (casify_region_internal): Likewise.
720 * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
722 * buffer.c (common_init_complex_vars_of_buffer): Don't use
723 `mirror_syntax_table' in XEmacs UTF-2000.
725 * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
726 `buf->mirror_syntax_table' in XEmacs UTF-2000.
727 (Fexpand_abbrev): Likewise.
729 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
731 * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
733 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
735 * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
736 (map_over_uint16_byte_table): Likewise.
737 (map_over_byte_table): Likewise.
738 (get_char_id_table): Refer `cit->default_value'.
739 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
740 (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
741 of character-id ranges.
742 (mark_char_table): Mark `ct->default_value'.
743 (char_table_description): Add `default_value'.
744 (fill_char_table): Use `default_value'.
745 (decode_char_table_range): Decode `nil' as
746 `CHARTAB_RANGE_DEFAULT'.
747 (get_char_id_table): Refer `cit->default_value'.
748 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
749 (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
750 temporary hack; check value of char-table is bound or not.
751 (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
753 * chartab.h (struct Lisp_Char_Table): Add new member
754 `default_value' in XEmacs UTF-2000.
755 (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
756 (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
759 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
761 * chartab.h (Lisp_Char_ID_Table): Deleted.
763 * chartab.c (char_table_description): Fix typo.
764 (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
765 `Lisp_Char_ID_Table'.
767 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
769 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
772 * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
775 * chartab.h (XCHAR_ID_TABLE): Deleted.
776 (XSETCHAR_ID_TABLE): Deleted.
777 (CHAR_ID_TABLE_P): Deleted.
779 * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
781 (Fget_composite_char): Likewise.
782 (put_char_table): Likewise.
783 (add_char_attribute_alist_mapper): Fixed.
784 (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
786 (Fget_char_attribute): Likewise.
787 (Fget_char_attribute): Likewise.
788 (Fmap_char_attribute): Likewise.
790 * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
792 (encode_char_1): Likewise.
794 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
796 * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
799 * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
800 instead of `XCHAR_ID_TABLE'.
801 (remove_char_ccs): Likewise.
803 * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
805 (Fget_composite_char): Likewise.
806 (Fchar_variants): Likewise.
807 (put_char_table): Likewise.
808 (add_char_attribute_alist_mapper): Likewise.
809 (Fchar_attribute_alist): Likewise.
810 (Fget_char_attribute): Likewise.
811 (Fput_char_attribute): Likewise.
812 (Fmap_char_attribute): Likewise.
813 (Fmap_char_attribute): Likewise.
815 * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
817 (encode_char_1): Likewise.
819 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
821 * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
822 `Lisp_Char_ID_Table'.
823 (mark_char_id_table): Deleted.
824 (print_char_id_table): Likewise.
825 (char_id_table_equal): Likewise.
826 (char_id_table_hash): Likewise.
827 (char_id_table_description): Likewise.
828 (char_id_table): Likewise.
829 (make_char_id_table): Use `Fmake_char_table' and
831 (get_char_id_table): Use `Lisp_Char_Table' instead of
832 `Lisp_Char_ID_Table'.
833 (put_char_id_table): Likewise.
834 (Fput_char_attribute): Use `XCHAR_TABLE' instead of
836 (Fremove_char_attribute): Likewise.
837 (syms_of_chartab): Don't define type `char-id-table'.
839 * chartab.h (struct Lisp_Char_ID_Table): Deleted.
840 (char_id_table): Likewise.
841 (GC_CHAR_ID_TABLE_P): Likewise.
842 (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
843 (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
844 (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
845 (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
846 (get_char_id_table): Use `Lisp_Char_Table' instead of
847 `Lisp_Char_ID_Table'.
848 (put_char_id_table_0): Likewise.
849 (put_char_id_table): Likewise.
851 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
853 * chartab.h: Lisp_Byte_Table related codes are moved from
856 * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
858 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
860 * chartab.h: Don't include "chartab.h".
861 (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
862 (Lisp_Char_ID_Table): Likewise.
863 (char_id_table): Likewise.
864 (XCHAR_ID_TABLE): Likewise.
865 (XSETCHAR_ID_TABLE): Likewise.
866 (CHAR_ID_TABLE_P): Likewise.
867 (GC_CHAR_ID_TABLE_P): Likewise.
868 (get_char_id_table): Likewise.
870 * char-ucs.h: Include "chartab.h".
871 (struct Lisp_Char_ID_Table): Moved to chartab.h.
872 (Lisp_Char_ID_Table): Likewise.
873 (char_id_table): Likewise.
874 (XCHAR_ID_TABLE): Likewise.
875 (XSETCHAR_ID_TABLE): Likewise.
876 (CHAR_ID_TABLE_P): Likewise.
877 (GC_CHAR_ID_TABLE_P): Likewise.
878 (get_char_id_table): Likewise.
880 2001-09-01 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
882 * chartab.c (copy_uint8_byte_table): New function.
883 (copy_uint16_byte_table): New function.
884 (copy_byte_table): New function.
885 (map_over_uint8_byte_table): Modify to avoid huge numbers of
887 (map_over_uint16_byte_table): Likewise.
888 (map_over_byte_table): Likewise.
889 (get_byte_table): Move prototype to chartab.h.
890 (put_byte_table): Likewise.
891 (put_char_id_table_0): Moved to chartab.h.
892 (mark_char_table_entry): Don't define in XEmacs UTF-2000.
893 (char_table_entry_equal): Likewise.
894 (char_table_entry_hash): Likewise.
895 (char_table_entry_description): Likewise.
896 (char_table_entry): Likewise.
897 (make_char_table_entry): Likewise.
898 (copy_char_table_entry): Likewise.
899 (get_non_ascii_char_table_value): Likewise.
900 (map_over_charset_ascii): Likewise.
901 (map_over_charset_control_1): Likewise.
902 (map_over_charset_row): Likewise.
903 (map_over_other_charset): Likewise.
904 (mark_char_table): Modify for new structure in XEmacs UTF-2000.
905 (print_char_table): Likewise.
906 (char_table_equal): Likewise.
907 (char_table_hash): Likewise.
908 (char_table_description): Likewise.
909 (fill_char_table): Likewise.
910 (Fcopy_char_table): Likewise.
911 (get_char_table): Likewise.
912 (Fget_range_char_table): Likewise.
913 (put_char_table): Likewise.
914 (map_char_table): Likewise.
915 (syms_of_chartab): Don't define `char_table_entry' in XEmacs
918 2001-08-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
920 * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
921 `Vauto_fill_chars' in XEmacs UTF-2000.
923 * chartab.h (get_byte_table): New prototype [moved from
925 (put_byte_table): Likewise [moved from chartab.c].
926 (put_char_id_table_0): New inline function [moved from chartab.c].
927 (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
928 (Lisp_Char_Table_Entry): Likewise.
929 (char_table_entry): Likewise.
930 (XCHAR_TABLE_ENTRY): Likewise.
931 (XSETCHAR_TABLE_ENTRY): Likewise.
932 (CHAR_TABLE_ENTRYP): Likewise.
933 (CHECK_CHAR_TABLE_ENTRY): Likewise.
934 (NUM_ASCII_CHARS): Likewise.
935 (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
936 (CHAR_TABLE_VALUE_UNSAFE): Likewise.
938 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
940 * chartab.c (get_char_id_table): Change interface.
941 (put_char_id_table_0): New function.
942 (put_char_id_table): Change interface; new implementation.
943 (Fget_composite_char): Modify for interface change of
945 (Fchar_variants): Likewise.
946 (add_char_attribute_alist_mapper): Likewise.
947 (Fchar_attribute_alist): Likewise.
948 (Fget_char_attribute): Likewise.
949 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
950 as same as character as the first argument like `put-char-table';
951 modify for interface change of `put_char_id_table'.
952 (Fremove_char_attribute): Modify for interface change of
955 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
957 * text-coding.c: Sync up with XEmacs 21.2.41.
958 (COMPOSE_ADD_CHAR): Modify for interface change of
961 * mule-charset.c (put_char_ccs_code_point): Modify for interface
962 change of `put_char_id_table'.
963 (remove_char_ccs): Likewise.
965 * chartab.h (put_char_id_table): Change interface.
967 * char-ucs.h (get_char_id_table): Change interface.
968 (charset_code_point): Modify for interface change of
970 (encode_char_1): Likewise.
972 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
974 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
976 (map_over_uint16_byte_table): Likewise.
977 (map_over_byte_table): Likewise.
978 (map_char_id_table): Add new argument `range' like
980 (Fmap_char_attribute): Add new argument `range' like
983 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
985 * chartab.c (map_over_uint8_byte_table): Change interface of
986 mapping function to use struct chartab_range instead of Emchar.
987 (map_over_uint16_byte_table): Likewise.
988 (map_over_byte_table): Likewise.
989 (map_char_id_table): Likewise.
990 (struct slow_map_char_id_table_arg): Deleted.
991 (slow_map_char_id_table_fun): Deleted.
992 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
993 function `slow_map_char_table_fun' instead of struct
994 `slow_map_char_id_table_arg' and function
995 `slow_map_char_id_table_fun'.
997 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
999 * mule-charset.c: Move char-it-table related codes to chartab.c.
1000 (Vutf_2000_version): Moved to chartab.c.
1001 (Fdefine_char): Likewise.
1002 (Ffind_char): Likewise.
1003 (syms_of_mule_charset): Move types `uint8-byte-table',
1004 `uint16-byte-table', `byte-table' and `char-id-table' to
1005 chartab.c; move functions `char_attribute_list,
1006 `find_char_attribute_table, `char_attribute_alist,
1007 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1008 `map_char_attribute, `define_char, `find_char, `char_variants and
1009 `get_composite_char to chartab.c; move symbols `=>ucs',
1010 `->decomposition', `compat', `isolated', `initial', `medial',
1011 `final', `vertical', `noBreak', `fraction', `super', `sub',
1012 `circle', `square', `wide', `narrow', `small' and `font' to
1014 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1015 setting codes for `Vcharacter_composition_table' and
1016 `Vcharacter_variant_table' to chartab.c.
1017 (complex_vars_of_mule_charset): Move setting code for
1018 `Vchar_attribute_hash_table' to chartab.c.
1020 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1021 (make_char_id_table): New prototype.
1022 (put_char_id_table): Likewise.
1023 (Fget_char_attribute): Likewise.
1025 * chartab.c: Move char-id-table related code from mule-charset.c.
1026 (Vutf_2000_version): Moved from mule-charset.c.
1028 * char-ucs.h (Qucs): New external variable.
1029 (put_char_ccs_code_point): New prototype.
1030 (remove_char_ccs): Likewise.
1032 2001-08-14 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1034 * mule-charset.c (Vcharset_ucs_jis): New variable.
1035 (Qucs_jis): Likewise.
1036 (syms_of_mule_charset): Add new symbol `ucs-jis'.
1037 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1039 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1041 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1043 * mule-charset.c (map_over_uint8_byte_table): New function.
1044 (map_over_uint16_byte_table): Likewise.
1045 (map_over_byte_table): Likewise.
1046 (map_char_id_table): Likewise.
1047 (slow_map_char_id_table_fun): Likewise.
1048 (Fmap_char_attribute): Likewise.
1049 (syms_of_mule_charset): Add new function `map-char-attribute'.
1051 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1053 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1054 (syms_of_mule_charset): Add new function `find-char'.
1056 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1058 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1060 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1061 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1063 (complex_vars_of_mule_charset): Add new coded-charset
1064 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1065 `ideograph-gt-pj-*'.
1067 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1069 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1071 * mule-charset.c (encode_builtin_char_1): Purge codes about
1072 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1073 {MIN|MAX}_CHAR_HEBREW.
1074 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1075 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1077 * char-ucs.h (MIN_CHAR_GREEK): Purged.
1078 (MAX_CHAR_GREEK): Purged.
1079 (MIN_CHAR_CYRILLIC): Purged.
1080 (MAX_CHAR_CYRILLIC): Purged.
1081 (MIN_CHAR_HEBREW): Commented out.
1082 (MAX_CHAR_HEBREW): Likewise.
1084 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1086 * mule-charset.c (Qto_ucs): New variable.
1087 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1088 (Fdefine_char): Likewise.
1089 (syms_of_mule_charset): Add new symbol `=>ucs'.
1091 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1093 * mule-charset.c (Fdecode_char): Fixed.
1095 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1097 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1098 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1101 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1103 * mule-charset.c (Vcharset_ucs_big5): New variable.
1104 (Qucs_big5): Likewise.
1105 (syms_of_mule_charset): Add new symbol `ucs-big5'.
1106 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1108 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1110 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1112 * mule-charset.c (decode_builtin_char): Check Big5 code range
1113 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1115 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1117 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1118 (Qchinese_gb12345): Likewise.
1119 (Fdecode_builtin_char): Fixed.
1120 (syms_of_mule_charset): Add `chinese-gb12345'.
1121 (complex_vars_of_mule_charset): Add coded-charset
1124 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1125 (LEADING_BYTE_CHINESE_GB12345): New macro.
1127 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1129 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1130 and `latin-viscii-upper' for `latin-viscii'.
1132 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1134 * mule-charset.c (Fdecode_builtin_char): Comment out
1135 regularization code for ISO-IR GR representation.
1137 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1139 * mule-charset.c (decode_builtin_char): New function; renamed from
1140 `make_builtin_char'; return -1 instead of signal.
1141 (Fdecode_builtin_char): Use `decode_builtin_char'.
1143 * char-ucs.h (decode_builtin_char): New prototype; renamed from
1144 `make_builtin_char'.
1145 (DECODE_CHAR): Use `decode_builtin_char' instead of
1146 `make_builtin_char'; use mapping table of `chinese-big5' for
1147 `chinese-big5-{1,2}'.
1149 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1151 * text-coding.c (char_encode_big5): New function.
1152 (char_finish_big5): Likewise.
1153 (reset_encoding_stream): Use `char_encode_big5' and
1154 `char_finish_big5' for CODESYS_BIG5.
1155 (mule_encode): Don't use `encode_coding_big5'.
1156 (encode_coding_big5): Deleted.
1158 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1160 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1161 0x81- in XEmacs UTF-2000.
1162 (detect_coding_big5): Likewise.
1164 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1166 * mule-charset.c (Fdefine_char): Don't use a CCS property to
1167 generate character-id if the CCS property does not have
1168 corresponding predefined character.
1169 (make_builtin_char): Return -1 if corresponding predefined
1170 character is not found.
1171 (Fdecode_char): Return nil if corresponding character is not
1173 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1174 don't map to builtin ucs space.
1176 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1178 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1179 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1181 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1183 * mule-charset.c (Vcharset_ideograph_gt): New variable.
1184 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1185 (Qideograph_gt): Likewise.
1186 (Qideograph_gt_pj_{1..11}): Likewise.
1187 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1188 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1189 `ideograph-gt-pj-11'.
1190 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1191 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1192 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1194 * char-ucs.h (LEADING_BYTE_GT): New macro.
1195 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1196 (MIN_CHAR_GT): Likewise.
1197 (MAX_CHAR_GT): Likewise.
1199 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1201 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1202 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1204 * doprnt.c (unsigned_int_converters): Add `c'.
1205 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1207 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1208 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1210 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1211 (MAX_CHAR_MOJIKYO_0): New macro.
1212 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1214 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1216 * mule-charset.c (Fdefine_char): Delete cemented out code.
1217 (encode_builtin_char_1): Modify for new allocation of builtin
1220 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1222 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1224 * mule-charset.c (Vcharset_ucs_cns): New variable.
1225 (Qucs_cns): New variable.
1226 (syms_of_mule_charset): Add new symbol `ucs-cns'.
1227 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1229 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1231 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1233 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1235 * search.c (search_buffer): Make `charset_base_code' as
1236 character-id >> 6 to eliminate the corresponding last byte in
1237 UTF-8 representation [I'm not sure it is right thing].
1238 (boyer_moore): Likewise.
1240 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1242 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1243 representation in MULE.
1245 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1247 * text-coding.c (Fmake_coding_system): Use
1248 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1249 `EXTERNAL_PROPERTY_LIST_LOOP'.
1251 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1253 * text-coding.c (decode_output_utf8_partial_char): New function.
1254 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1256 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1258 * text-coding.c (decode_coding_utf8): Output original byte
1259 sequence if it is broken; change order of conditions.
1261 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1264 * mb-multibyte.h (BYTE_ASCII_P):
1265 Use bit ops for char-signedness safety.
1266 (BYTE_C0_P): Use bit ops for char-signedness safety.
1267 (BYTE_C1_P): Use bit ops for char-signedness safety.
1269 * character.h: (XCHAR_OR_CHAR_INT):
1270 Always use inline function.
1271 Remove redundant type checking assert() - XINT will abort quite
1274 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1276 * text-coding.c: (Fencode_shift_jis_char):
1277 (Fencode_big5_char):
1278 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
1279 Replace 0 with '\0' when working with bytes.
1280 Replace initial "(" with "\(" in docstrings.
1282 (Fmake_coding_system):
1283 When type is ccl and value is vector, register it with a proper
1284 symbol. And checks whether the given ccl program is valid.
1285 (mule_decode): When calling ccl_driver, if src indicates
1286 NULL pointer, set an empty string instead.
1287 (mule_encode): Likewise.
1290 (detect_coding_sjis):
1291 (decode_coding_sjis):
1292 (detect_coding_big5):
1293 (decode_coding_big5):
1294 (detect_coding_ucs4):
1295 (decode_coding_ucs4):
1296 (detect_coding_utf8):
1297 (decode_coding_utf8):
1298 (detect_coding_iso2022):
1299 (decode_coding_iso2022):
1300 (decode_coding_no_conversion):
1302 Make all detecting and decoding functions take an Extbyte * arg.
1303 (text_encode_generic):
1304 (encode_coding_big5):
1305 (encode_coding_no_conversion):
1307 Make all encoding functions take a Bufbyte * arg.
1308 Use size_t instead of unsigned int for memory sizes.
1309 Only cast to unsigned char whenever dereferencing Extbyte *.
1311 (struct lrecord_description fcd_description_1): Use countof.
1312 (complex_vars_of_file_coding):
1313 Use countof instead of sizeof.
1314 Use CHECK_NATNUM instead of CHECK_INT.
1316 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1318 * mule-charset.c (Fget_char_attribute): Add new optional argument
1320 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1321 (remove_char_ccs): Likewise.
1323 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1325 * text-coding.c (char_encode_shift_jis): New implementation in
1327 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1330 * mule-charset.c (Vcharset_chinese_big5): New variable in
1332 (Qchinese_big5): New variable in UTF-2000.
1333 (BIG5_SAME_ROW): New macro in UTF-2000.
1334 (make_builtin_char): Use builtin characters of
1335 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1336 characters of `Vcharset_chinese_big5'.
1337 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1338 (complex_vars_of_mule_charset): Add new coded-charset
1339 `chinese-big5' in UTF-2000.
1341 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1342 (Vcharset_chinese_big5): New external variable declaration.
1343 (Vcharset_japanese_jisx0208_1990): Likewise.
1345 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1347 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1349 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1351 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1353 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1354 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1355 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1358 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1360 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1362 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1364 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1367 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1369 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1370 for `CHARSET_BY_ATTRIBUTES'.
1371 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1372 `CHARSET_BY_ATTRIBUTES'.
1374 * text-coding.c (struct decoding_stream): Rename member `CH' to
1376 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1377 (decode_coding_sjis): Likewise.
1378 (decode_coding_big5): Likewise.
1379 (decode_coding_ucs4): Likewise.
1380 (decode_coding_utf8): Likewise.
1381 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1382 `CHARSET_BY_ATTRIBUTES'.
1383 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1384 `str->counter'; decode 3, 4 bytes sets.
1385 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1387 (decode_coding_no_conversion): Use `str->cpos' instead of
1390 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1391 (Qmojikyo_2022_1): New variable.
1392 (make_charset): Don't use `CHARSET_TYPE_*'.
1393 (range_charset_code_point): Support coded-charset
1395 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1396 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1397 `CHARSET_BY_ATTRIBUTES'.
1398 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1399 `CHARSET_BY_ATTRIBUTES'.
1400 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1401 (complex_vars_of_mule_charset): Add new coded-charset
1404 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1405 interface; changed to inline function.
1407 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1408 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1409 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1410 (CHARSET_TYPE_94): Deleted.
1411 (CHARSET_TYPE_94X94): Deleted.
1412 (CHARSET_TYPE_96): Deleted.
1413 (CHARSET_TYPE_96X96): Deleted.
1414 (CHARSET_TYPE_128): Deleted.
1415 (CHARSET_TYPE_128X128): Deleted.
1416 (CHARSET_TYPE_256): Deleted.
1417 (CHARSET_TYPE_256X256): Deleted.
1418 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1420 (DECODE_MOJIKYO_2022): New inline function.
1421 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1422 `Vcharset_mojikyo_2022_1'.
1424 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1426 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1428 (put_byte_table): Likewise.
1429 (char_id_table_equal): Use `get_byte_table' [new implementation].
1431 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1433 * mule-charset.c: Include <limits.h> in UTF-2000.
1434 (BT_UINT8_MIN): New macro in UTF-2000.
1435 (BT_UINT8_MAX): New macro in UTF-2000.
1436 (BT_UINT8_t): New macro in UTF-2000.
1437 (BT_UINT8_nil): New macro in UTF-2000.
1438 (BT_UINT8_unbound): New macro in UTF-2000.
1439 (INT_UINT8_P): New inline function in UTF-2000.
1440 (UINT8_VALUE_P): New inline function in UTF-2000.
1441 (UINT8_ENCODE): New inline function in UTF-2000.
1442 (UINT8_DECODE): New inline function in UTF-2000.
1443 (mark_uint8_byte_table): New function in UTF-2000.
1444 (print_uint8_byte_table): New function in UTF-2000.
1445 (uint8_byte_table_equal): New function in UTF-2000.
1446 (uint8_byte_table_hash): New function in UTF-2000.
1447 (make_uint8_byte_table): New function in UTF-2000.
1448 (uint8_byte_table_same_value_p): New function in UTF-2000.
1449 (BT_UINT16_MIN): New macro in UTF-2000.
1450 (BT_UINT16_MAX): New macro in UTF-2000.
1451 (BT_UINT16_t): New macro in UTF-2000.
1452 (BT_UINT16_nil): New macro in UTF-2000.
1453 (BT_UINT16_unbound): New macro in UTF-2000.
1454 (INT_UINT16_P): New inline function in UTF-2000.
1455 (UINT16_VALUE_P): New inline function in UTF-2000.
1456 (UINT16_ENCODE): New inline function in UTF-2000.
1457 (UINT16_DECODE): New inline function in UTF-2000.
1458 (UINT8_TO_UINT16): New inline function in UTF-2000.
1459 (mark_uint16_byte_table): New function in UTF-2000.
1460 (print_uint16_byte_table): New function in UTF-2000.
1461 (uint16_byte_table_equal): New function in UTF-2000.
1462 (uint16_byte_table_hash): New function in UTF-2000.
1463 (make_uint16_byte_table): New function in UTF-2000.
1464 (uint16_byte_table_same_value_p): New function in UTF-2000.
1465 (print_byte_table): New function in UTF-2000.
1466 (byte-table): Use `print_byte_table' as printer.
1467 (make_byte_table): Delete second argument `older'.
1468 (byte_table_same_value_p): New function in UTF-2000.
1469 (copy_byte_table): Deleted.
1470 (get_byte_table): New function in UTF-2000.
1471 (put_byte_table): New function in UTF-2000.
1472 (print_char_id_table): New function in UTF-2000.
1473 (char-id-table): Use `print_char_id_table' as printer.
1474 (make_char_id_table): Delete second argument `older'.
1475 (get_char_id_table): Use `get_byte_table [new implementation].
1476 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1478 (Ffind_char_attribute_table): New function in UTF-2000.
1479 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1480 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1481 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1482 (syms_of_mule_charset): Add new function
1483 `find-char-attribute-table' in UTF-2000.
1485 * lrecord.h (enum lrecord_type): Add
1486 `lrecord_type_uint16_byte_table' and
1487 `lrecord_type_uint8_byte_table'.
1489 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1490 (Lisp_Uint8_Byte_Table): New type.
1491 (XUINT8_BYTE_TABLE): New macro.
1492 (XSETUINT8_BYTE_TABLE): New macro.
1493 (UINT8_BYTE_TABLE_P): New macro.
1494 (GC_UINT8_BYTE_TABLE_P): New macro.
1495 (struct Lisp_Uint16_Byte_Table): New structure.
1496 (Lisp_Uint16_Byte_Table): New type.
1497 (XUINT16_BYTE_TABLE): New macro.
1498 (XSETUINT16_BYTE_TABLE): New macro.
1499 (UINT16_BYTE_TABLE_P): New macro.
1500 (GC_UINT16_BYTE_TABLE_P): New macro.
1502 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1504 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1505 (Vcharacter_ideographic_strokes_table): Deleted.
1506 (Vcharacter_total_strokes_table): Deleted.
1507 (Vcharacter_morohashi_daikanwa_table): Deleted.
1508 (Vcharacter_decomposition_table): Deleted.
1509 (Qname): Deleted because it is duplicated.
1510 (Qideographic_radical): Deleted.
1511 (Qideographic_strokes): Deleted.
1512 (Qtotal_strokes): Deleted.
1513 (Qmorohashi_daikanwa): Deleted.
1514 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1515 `ideographic-radical', `ideographic-strokes', `total-strokes',
1516 `morohashi-daikanwa' and `->decomposition'.
1517 (Fget_char_attribute): Likewise.
1518 (Fput_char_attribute): Likewise; use `make-vector' instead of
1519 `make_older_vector' for `->decomposition' value.
1520 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1521 `ideograph-daikanwa'.
1522 (syms_of_mule_charset): Delete builtin symbols `name',
1523 `ideographic-radical', `ideographic-strokes', `total-strokes' and
1524 `morohashi-daikanwa'.
1525 (vars_of_mule_charset): Don't setup
1526 `Vcharacter_ideographic_radical_table',
1527 `Vcharacter_ideographic_strokes_table',
1528 `Vcharacter_total_strokes_table',
1529 `Vcharacter_morohashi_daikanwa_table' and
1530 `Vcharacter_decomposition_table'.
1532 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1534 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1535 `make_older_vector', `make_vector_newer_1' and
1536 `make_vector_newer'.
1538 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1539 `make_older_vector' and `make_vector_newer'.
1541 * config.h.in (HAVE_GGC): New macro.
1543 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1545 * mule-charset.c (struct char_attribute_list_closure): New
1546 structure in UTF-2000.
1547 (add_char_attribute_to_list_mapper): New function in UTF-2000.
1548 (Fchar_attribute_list): Likewise.
1549 (Fset_charset_mapping_table): Use `make_vector_newer'.
1550 (Fdecode_builtin_char): New function in UTF-2000.
1551 (syms_of_mule_charset): Add new function `char-attribute-list' and
1552 `decode-builtin-char' in UTF-2000.
1554 * lisp.h (make_vector_newer): New prototype.
1556 * alloc.c (make_vector_newer_1): New function.
1557 (make_vector_newer): New function.
1559 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1561 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1564 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1566 * mule-charset.c (Vchar_attribute_hash_table): New variable.
1567 (Vcharacter_attribute_table): Deleted.
1568 (Vcharacter_name_table): Deleted.
1569 (put_char_attribute): Deleted.
1570 (remove_char_attribute): Deleted.
1571 (struct char_attribute_alist_closure): New structure.
1572 (add_char_attribute_alist_mapper): New function.
1573 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1574 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1575 (Fget_char_attribute): Likewise.
1576 (Fput_char_attribute): Likewise.
1577 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1578 of `remove_char_attribute'.
1579 (Fdefine_char): Return character.
1580 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1581 and `Vcharacter_name_table'.
1582 (complex_vars_of_mule_charset): Likewise
1583 `Vchar_attribute_hash_table'.
1585 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1587 * character.h (CHARC_CHARSET): New macro.
1588 (CHARC_CHARSET_ID): New macro.
1589 (CHARC_CODE_POINT): New macro.
1590 (CHARC_COLUMNS): New macro.
1591 (CHARC_TO_CHAR): New inline function.
1592 (CHARC_EQ): New inline function.
1593 (CHARC_ASCII_EQ): New inline function.
1594 (CHARC_IS_SPACE): New inline function.
1595 (ASCII_TO_CHARC): New inline function.
1597 * char-ucs.h (encode_char_2): Deleted.
1598 (ENCODE_CHAR): Use `encode_char_1' again.
1599 (breakup_char_1): Likewise.
1600 (CHAR_TO_CHARC): New inline function.
1602 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1604 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1606 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1607 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1608 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1609 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1610 (create_string_text_block): Use `CHARC_ASCII_EQ' and
1612 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1614 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1616 (x_output_display_block): Use `CHARC_CHARSET' and
1619 * redisplay-tty.c (tty_output_display_block): Use
1621 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1623 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1625 * insdel.c (find_charsets_in_charc_string): Use
1627 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1628 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1629 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1630 (convert_charc_string_into_malloced_string): Likewise.
1632 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1634 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1635 instead of <Emchar_dynarr *> for buf; use
1636 `convert_bufbyte_string_into_charc_dynarr' instead of
1637 `convert_bufbyte_string_into_emchar_dynarr'; use
1638 `find_charsets_in_charc_string' instead of
1639 `find_charsets_in_emchar_string'.
1642 - Include "character.h".
1643 (struct rune): New member `cglyph'; delete member `chr'.
1645 * redisplay.c (redisplay_text_width_charc_string): New function;
1646 delete `redisplay_text_width_emchar_string'.
1647 (rtw_charc_dynarr): New variable; renamed from
1648 `rtw_emchar_dynarr'.
1649 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1650 `rtw_emchar_dynarr'; use
1651 `convert_bufbyte_string_into_charc_dynarr' instead of
1652 `convert_bufbyte_string_into_emchar_dynarr'; use
1653 `redisplay_text_width_charc_string' instead of
1654 `redisplay_text_width_emchar_string'.
1655 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1656 instead of `rtw_emchar_dynarr'; use
1657 `convert_bufbyte_string_into_charc_dynarr' instead of
1658 `convert_bufbyte_string_into_emchar_dynarr'.
1659 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1660 `redisplay_text_width_charc_string' instead of
1661 `redisplay_text_width_emchar_string'.
1662 (create_text_block): Modify for <struct rune> change.
1663 (generate_formatted_string_db): Likewise.
1664 (create_string_text_block): Likewise.
1665 (pixel_to_glyph_translation): Likewise.
1667 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1668 instead of <const Emchar *>.
1669 (x_text_width): Likewise.
1670 (x_output_display_block): Use <Charc_dynarr *> instead
1671 <Emchar_dynarr *>; modify for <structure rune> change.
1672 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1675 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1676 <const Emchar *>; use `charc_string_displayed_columns' instead of
1677 `emchar_string_displayed_columns'.
1678 (tty_output_display_block): Use <Charc_dynarr *> instead of
1679 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1680 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1681 (tty_output_charc_dynarr_dynarr): New variable; renamed from
1682 `tty_output_emchar_dynarr_dynarr'.
1683 (tty_output_charc_dynarr): New function; delete
1684 `tty_output_charc_dynarr'.
1686 * redisplay-output.c (compare_runes): Modify for `struct rune'.
1687 (redisplay_output_layout): Use <Charc_dynarr *> instead of
1688 <Emchar_dynarr *> for buf; use
1689 `convert_bufbyte_string_into_charc_dynarr' instead of
1690 `convert_bufbyte_string_into_emchar_dynarr'.
1692 * frame.c (title_string_charc_dynarr): New variable; renamed from
1693 `title_string_emchar_dynarr'.
1694 (generate_title_string): Use `title_string_charc_dynarr' instead
1695 of `title_string_emchar_dynarr'; use
1696 `convert_charc_string_into_malloced_string' instead of
1697 `convert_emchar_string_into_malloced_string'.
1698 (init_frame): Use `title_string_charc_dynarr' instead of
1699 `title_string_emchar_dynarr'.
1702 - Include "character.h".
1703 (struct console_methods): Use <const Charc *> instead of <const
1704 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1705 <Emchar_dynarr *> in output_string_method.
1707 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1710 * console-stream.c (stream_text_width): Use <const Charc *>
1711 instead of <const Emchar *>.
1713 * character.h (Charc_dynarr): New type.
1715 * char-ucs.h (structure Charc): New structure; define new type
1718 * char-lb.h (DECODE_CHAR): New inline function.
1719 (encode_char_1): New inline function.
1720 (ENCODE_CHAR): New macro.
1721 (structure Charc): New structure; define new type `Charc'.
1723 * char-1byte.h (Vcharset_control_1): New macro.
1724 (Vcharset_latin_iso8859_1): New macro.
1725 (DECODE_CHAR): New inline function.
1726 (encode_char_1): New inline function.
1727 (ENCODE_CHAR): New macro.
1728 (structure Charc): New structure; define new type `Charc'.
1730 * insdel.c (find_charsets_in_charc_string): New function; delete
1731 `find_charsets_in_emchar_string'.
1732 (charc_string_displayed_columns): New function; delete
1733 `emchar_string_displayed_columns'.
1734 (convert_bufbyte_string_into_charc_dynarr): New function; delete
1735 `convert_bufbyte_string_into_emchar_dynarr'.
1736 (convert_charc_string_into_bufbyte_dynarr): New function; delete
1737 `convert_charc_string_into_bufbyte_dynarr'.
1738 (convert_charc_string_into_malloced_string): New function; delete
1739 `convert_charc_string_into_malloced_string'.
1741 * buffer.h (find_charsets_in_charc_string): New prototype; delete
1742 `find_charsets_in_emchar_string'.
1743 (charc_string_displayed_columns): New prototype; delete
1744 `emchar_string_displayed_columns'.
1745 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1746 `convert_charc_string_into_bufbyte_dynarr'.
1747 (convert_charc_string_into_malloced_string): New prototype; delete
1748 `convert_charc_string_into_malloced_string'.
1750 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1752 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1754 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1756 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1758 * char-ucs.h: Use <short> for <Charset_ID>.
1760 * mule-charset.h, char-1byte.h: Use <unsigned char> for
1763 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1765 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1768 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1770 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
1772 (Qmorohashi_daikanwa): New variable.
1773 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
1774 for `morohashi-daikanwa' attribute.
1775 (Fget_char_attribute): Likewise.
1776 (Fput_char_attribute): Likewise.
1777 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
1778 has the same value of `ideograph-daikanwa'.
1779 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
1780 (vars_of_mule_charset): Setup
1781 `Vcharacter_morohashi_daikanwa_table'.
1783 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1785 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
1787 (add_charset_to_list_mapper): Add `key' instead of
1788 `XCHARSET_NAME (value)' to return aliases.
1790 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1792 * mule-charset.c (Vcharacter_ideographic_radical_table): New
1794 (Vcharacter_ideographic_strokes_table): New variable.
1795 (Qideographic_radical): New variable.
1796 (Qideographic_strokes): New variable.
1797 (Fchar_attribute_alist): Use
1798 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
1799 attribute; use `Vcharacter_ideographic_strokes_table' for
1800 `ideographic-strokes' attribute.
1801 (Fget_char_attribute): Likewise.
1802 (Fput_char_attribute): Likewise.
1803 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
1804 `ideographic-strokes'.
1805 (vars_of_mule_charset): Setup
1806 `Vcharacter_ideographic_radical_table' and
1807 `Vcharacter_ideographic_strokes_table'.
1809 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1811 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
1812 (Qtotal_strokes): New variable.
1813 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
1814 `total-strokes' attribute.
1815 (Fget_char_attribute): Likewise.
1816 (Fput_char_attribute): Likewise.
1817 (syms_of_mule_charset): Add new symbol `total-strokes'.
1818 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
1820 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1822 * mule-charset.c (Vcharacter_decomposition_table): New variable.
1823 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
1825 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
1826 `->decomposition' attribute.
1827 (Fput_char_attribute): Likewise.
1828 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
1830 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1832 * mule-charset.c (decoding_table_check_elements): New function.
1833 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
1835 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1837 * mule-charset.c (Fset_charset_mapping_table): Use
1838 `put_char_ccs_code_point'.
1840 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1842 * mule-charset.c (decoding_table_put_char): New inline function.
1843 (put_char_ccs_code_point): Use `decoding_table_put_char'.
1845 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1847 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
1848 (XCHARSET_BYTE_SIZE): New macro.
1849 (decoding_table_remove_char): New inline function.
1850 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
1851 `decoding_table_remove_char'.
1852 (remove_char_ccs): Use `decoding_table_remove_char'.
1853 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
1855 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1857 * mule-charset.c (Vcharacter_name_table): New variable.
1858 (Qname): New variable.
1859 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
1861 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
1862 `Vcharacter_name_table' for `name' attribute.
1863 (Fremove_char_attribute): Use function `remove_char_ccs'.
1864 (put_char_ccs_code_point): New function.
1865 (remove_char_ccs): New function.
1866 (syms_of_mule_charset): Add new symbol `name'.
1867 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
1869 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1871 * mule-charset.c (make_byte_table): Add new argument `older'.
1872 (make_char_id_table): Likewise.
1873 (copy_char_id_table): Comment out because it is not used.
1874 (put_char_id_table): Modify for `make_byte_table'.
1875 (Fput_char_attribute): Make encoding_table as older object;
1876 inherit older bit of `Vcharacter_composition_table'.
1877 (mark_charset): Don't mark `cs->encoding_table'.
1878 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
1879 normal object; make `Vcharacter_composition_table' as an older
1880 object; delete staticpro for `Vcharacter_composition_table'; make
1881 `Vcharacter_variant_table' as a normal object.
1883 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
1884 (mark_object): Don't check older object in UTF-2000.
1886 * lrecord.h (struct lrecord_header): Add new member `older' in
1888 (set_lheader_implementation): Setup `SLI_header->older' in
1890 (set_lheader_older_implementation): New macro in UTF-2000.
1891 (OLDER_RECORD_P): New macro in UTF-2000.
1892 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
1893 (alloc_older_lcrecord): New prototype in UTF-2000.
1894 (alloc_older_lcrecord_type): New macro in UTF-2000.
1896 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1898 * mule-charset.c (byte_table_description): Use
1899 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
1900 (char_id_table_description): Delete bogus `, 1'.
1901 (Fget_char_attribute): Refer encoding_table of each coded-charset
1902 to get value of coded-charset attribute of a character.
1903 (Fput_char_attribute): Use `make_older_vector' instead of
1904 `make_vector'; use encoding_table of each coded-charset to store
1905 value of coded-charset attribute of a character.
1906 (Fremove_char_attribute): Use encoding_table of each coded-charset
1907 to store value of coded-charset attribute of a character.
1908 (mark_charset): Mark `cs->encoding_table'; don't mark
1909 `cs->decoding_table'.
1910 (charset_description): Add description of new member
1912 (make_charset): Initialize `encoding_table'.
1914 * char-ucs.h (struct Lisp_Charset): Add new member
1916 (CHARSET_ENCODING_TABLE): New macro.
1917 (XCHARSET_ENCODING_TABLE): New macro.
1918 (charset_code_point): New implementation.
1919 (encode_char_1): Likewise.
1921 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
1922 (disksave_object_finalization_1): Call finalizers of
1923 `all_older_lcrecords' in UTF-2000.
1924 (make_older_vector): New function in UTF-2000.
1925 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
1928 * lisp.h (make_older_vector): New prototype in UTF-2000.
1930 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1932 * lrecord.h (enum lrecord_type): Rename
1933 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
1935 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
1936 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
1937 `get_char_code_table'.
1939 * mule-charset.c (mark_char_id_table): Renamed from
1940 `mark_char_code_table'.
1941 (char_id_table_equal): Renamed from `char_code_table_equal'.
1942 (char_id_table_hash): Renamed from `char_code_table_hash'.
1943 (make_char_id_table): Renamed from `make_char_code_table'.
1944 (copy_char_id_table): Renamed from `copy_char_code_table'.
1945 (get_char_id_table): Renamed from `get_char_code_table'.
1946 (put_char_id_table): Renamed from `put_char_code_table'.
1947 (to_char_id): Renamed from `to_char_code'.
1949 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
1950 `Lisp_Char_Code_Table'.
1951 (char_id_table): Renamed from `char_code_table'.
1952 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
1953 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
1954 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
1955 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
1956 (get_char_id_table): Renamed from `get_char_code_table'.
1958 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1960 * lrecord.h (enum lrecord_type): Rename
1961 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
1963 * mule-charset.c (mark_byte_table): Renamed from
1964 `mark_char_byte_table'.
1965 (byte_table_equal): Renamed from `char_byte_table_equal'.
1966 (byte_table_hash): Renamed from `byte_table_hash'.
1967 (make_byte_table): Renamed from `make_byte_table'.
1968 (copy_byte_table): Renamed from `copy_char_byte_table'.
1970 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
1971 `Lisp_Char_Byte_Table'.
1972 (byte_table): Renamed from `char_byte_table'.
1973 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
1974 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
1975 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
1976 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
1978 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1980 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
1981 (dfc_convert_to_internal_format): Likewise.
1983 * text-coding.c (Fcoding_system_canonical_name_p): New function.
1984 * text-coding.c (Fcoding_system_alias_p): New function.
1985 * text-coding.c (Fcoding_system_aliasee): New function.
1986 * text-coding.c (append_suffix_to_symbol): New function.
1987 * text-coding.c (dangling_coding_system_alias_p): New function.
1988 * text-coding.c (Ffind_coding_system):
1989 * text-coding.c (Fcopy_coding_system):
1990 * text-coding.c (encode_coding_no_conversion):
1991 * text-coding.c (syms_of_file_coding):
1992 * text-coding.c (vars_of_file_coding):
1993 Rewrite coding system alias code.
1994 Allow nested aliases, like symbolic links.
1995 Allow redefinition of coding system aliases.
1996 Prevent existence of dangling coding system aliases.
1997 Eliminate convert_to_external_format.
1998 Eliminate convert_to_internal_format.
2000 * text-coding.c: Change enum eol_type to eol_type_t.
2002 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2004 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2005 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2007 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2008 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2010 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2012 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2013 `ideograph-daikanwa'.
2015 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2016 (Vcharset_ucs_bmp): Likewise.
2017 (Vcharset_mojikyo): Add new extern variable definition.
2018 (Vcharset_latin_iso8859_2): Deleted because it is not used.
2019 (Vcharset_latin_iso8859_3): Likewise.
2020 (Vcharset_latin_iso8859_4): Likewise.
2021 (Vcharset_latin_iso8859_9): Likewise.
2022 (Vcharset_latin_viscii_lower): Likewise.
2023 (Vcharset_latin_viscii_upper): Likewise.
2024 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2025 `mojikyo' code-point is used to decode.
2026 (encode_char_2): New function [to convert `mojikyo' code-point to
2027 Mojikyo font encoding].
2028 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2029 (breakup_char_1): Likewise.
2030 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2032 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2034 * text-coding.c (Fmake_coding_system): Add document about
2035 `disable-composition' property.
2037 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2039 * text-coding.c (Qdisable_composition): New variable; delete
2041 (Fmake_coding_system): Add new property `disable-composite';
2042 delete property `composite'.
2043 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2044 instead of `!CODING_SYSTEM_COMPOSITE'.
2045 (syms_of_file_coding): Add new symbol `disable-composition';
2046 delete symbol `composite'.
2048 * file-coding.h (struct Lisp_Coding_System): Add
2049 `disable_composition'; delete `enable_composition'.
2050 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2051 `CODING_SYSTEM_COMPOSITE'.
2052 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2053 `XCODING_SYSTEM_COMPOSITE'.
2055 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2057 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2060 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2062 * text-coding.c (Qcomposite): New variable.
2063 (Fmake_coding_system): Add new property `composite'.
2064 (struct decoding_stream): Add `combined_char_count',
2065 `combined_chars' and `combining_table' in UTF-2000.
2066 (COMPOSE_FLUSH_CHARS): New macro.
2067 (COMPOSE_ADD_CHAR): New macro.
2068 (reset_decoding_stream): Reset `str->combined_char_count' and
2069 `str->combining_table' in UTF-2000.
2070 (decode_coding_iso2022): Modify for character-decomposition.
2071 (syms_of_file_coding): Add new symbol `composite'.
2073 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2075 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2076 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2077 of `Vcharacter_composition_table' if `->decomposition' property
2079 (Qlatin_tcvn5712): New variable.
2080 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2081 (complex_vars_of_mule_charset): Add new coded-charset
2084 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2086 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2088 * file-coding.h (struct Lisp_Coding_System): Add
2089 `enable_composition'.
2090 (CODING_SYSTEM_COMPOSITE): New macro.
2091 (XCODING_SYSTEM_COMPOSITE): New macro.
2093 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
2095 * mule-canna.c (c2mu): Fix problem with UTF-2000.
2097 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
2099 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2100 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2102 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
2104 * mule-charset.c (Vcharset_mojikyo): New variable.
2105 (Fdefine_char): Don't use coded-charset which does not have
2106 non-builtin character range to allocate character-id.
2107 (Qmojikyo): New variable.
2108 (syms_of_mule_charset): Add new symbol `mojikyo'.
2109 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2111 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2112 (LEADING_BYTE_MOJIKYO): New macro.
2113 (MIN_CHAR_MOJIKYO): New macro.
2114 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2115 (MAX_CHAR_MOJIKYO): New macro.
2117 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
2119 * mule-charset.c (remove_char_attribute): Fixed.
2121 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
2123 * mule-charset.c (remove_char_attribute): New function.
2124 (Fremove_char_attribute): New function.
2125 (encode_builtin_char_1): Comment out builtin-support for
2126 greek-iso8859-7 and cyrillic-iso8859-5.
2127 (Fdecode_char): Check `code' is an integer.
2128 (syms_of_mule_charset): Add `remove-char-attribute'.
2129 (MIN_CHAR_GREEK): Deleted.
2130 (MAX_CHAR_GREEK): Likewise.
2131 (MIN_CHAR_CYRILLIC): Likewise.
2132 (MAX_CHAR_CYRILLIC): Likewise.
2133 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2134 MAX_CHAR_GREEK for `greek-iso8859-7'.
2136 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2137 (MAX_CHAR_GREEK): Likewise.
2138 (MIN_CHAR_CYRILLIC): Likewise.
2139 (MAX_CHAR_CYRILLIC): Likewise.
2141 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
2143 * mule-charset.c (Fdefine_char): Fix problem when new code-point
2144 format is used without `ucs' property.
2145 (Fdecode_char): Fix problem with GR representation.
2146 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2147 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2149 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2151 * mule-charset.c (make_builtin_char): New function.
2152 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2153 (Fset_charset_mapping_table): Modify for new representation of
2155 (Fdecode_char): New function.
2156 (syms_of_mule_charset): Add new builtin function `decode-char' in
2159 * char-ucs.h (make_builtin_char): New prototype.
2160 (DECODE_CHAR): New inline function.
2161 (MAKE_CHAR): Use `DECODE_CHAR'.
2163 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
2165 * text-coding.c (parse_charset_conversion_specs): Use
2166 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2168 (iso2022_designate): Likewise.
2170 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2171 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2173 * mule-charset.c (Vcharset_ucs): New variable.
2174 (print_charset): Change design; use `CHARSET_CHARS' and
2175 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2176 (make_charset): Change signature to specify `chars' and
2177 `dimension' instead of `type'.
2178 (range_charset_code_point): Modify for 256^n-set.
2179 (encode_builtin_char_1): Encode as `ucs' in default.
2180 (Fmake_charset): Modify for `make_charset'.
2181 (Fmake_reverse_direction_charset): Likewise.
2182 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2184 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2187 * char-ucs.h (Vcharset_ucs): New variable.
2188 (LEADING_BYTE_UCS): New macro.
2189 (struct Lisp_Charset): Delete `type'; change type of `dimension'
2190 and `chars' to `unsigned short' from `unsigned int'.
2191 (CHARSET_TYPE): Deleted.
2192 (XCHARSET_TYPE): Deleted.
2194 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
2196 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2198 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2199 (ENCODE_CHAR): New macro.
2201 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2203 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2204 to 0.14 (Kawachi-Katakami).
2206 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2208 * text-coding.c (char_encode_shift_jis): Modify for
2209 `charset_code_point'.
2210 (char_encode_iso2022): Likewise.
2212 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2213 (integer) instead of list of <Lisp_Object>s (integers) as the
2214 format of code-point of a coded-charset.
2215 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2216 (encode_builtin_char_1): New function; delete
2217 `split_builtin_char'.
2218 (charset_code_point): Return <int> instead of <Lisp_Object>.
2219 (Fsplit_char): Don't use `SPLIT_CHAR'.
2221 * char-ucs.h (encode_builtin_char_1): New prototype; delete
2222 prototype for `split_builtin_char'.
2223 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2224 (charset_code_point): Likewise.
2225 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2226 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2228 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
2230 * mule-charset.c (complex_vars_of_mule_charset): Don't define
2231 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2233 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2235 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2237 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2238 (MAX_CHAR_OBS_94x94): Deleted.
2240 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2242 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2244 * char-ucs.h (MAX_CHAR_BMP): New macro.
2246 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2248 * text-coding.c: Sync with r21-2-24.
2250 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
2252 * file-coding.c: Modify for UTF-2000.
2254 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2256 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2259 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2261 * mule-charset.c (split_builtin_char): Delete builtin support for
2262 `katakana-jisx0201'.
2263 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2264 BMP area in builtin representation.
2266 * char-ucs.h (MAKE_CHAR): Delete builtin support for
2267 `Vcharset_katakana_jisx0201'.
2269 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
2271 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2272 (Qisolated): New variable.
2273 (Qinitial): New variable.
2274 (Qmedial): New variable.
2275 (Qfinal): New variable.
2276 (Qvertical): New variable.
2277 (Qsmall): New variable.
2278 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2279 `Qvertical' and `Qsmall'.
2280 (Qmojikyo_pj_[1 .. 21]): New variable.
2281 (syms_of_mule_charset): Add new symbols `isolated', `initial',
2282 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2283 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2286 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
2288 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2289 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2290 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2292 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2294 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2295 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2297 (Qjapanese_jisx0208_1990): New variable.
2298 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2299 (complex_vars_of_mule_charset): Add new coded-charset
2300 `japanese-jisx0208-1990'.
2302 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2303 (MIN_CHAR_JIS_X0208_1990): New macro.
2304 (MAX_CHAR_JIS_X0208_1990): New macro.
2306 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2308 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2309 coded-charset is not found.
2311 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2313 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2314 (Fdefine_char): Use `Fmake_char'.
2316 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2318 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2319 (Vcharset_hiragana_jisx0208): Deleted.
2320 (Vcharset_katakana_jisx0208): Deleted.
2321 (Qideograph_daikanwa): New variable.
2322 (Qhiragana_jisx0208): Deleted.
2323 (Qkatakana_jisx0208): Deleted.
2324 (split_builtin_char): Split `ideograph-daikanwa'.
2325 (Fsplit_char): New implementation for UTF-2000.
2326 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2327 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2328 (complex_vars_of_mule_charset): Add new coded-charset
2329 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2330 `katakana-jisx0208'.
2332 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2333 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2334 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2335 (MIN_CHAR_DAIKANWA): New macro.
2336 (MAX_CHAR_DAIKANWA): New macro.
2338 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2340 * data.c (Fstring_to_number): Don't recognize floating point if
2343 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2345 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2347 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2349 * mule-charset.c (Qsquare): New variable.
2350 (to_char_code): Add `Qsquare'.
2351 (syms_of_mule_charset): Add new symbol `square'.
2353 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2355 * mule-charset.c (Qcircle): New variable.
2356 (to_char_code): Add `Qcircle'.
2357 (syms_of_mule_charset): Add new symbol `circle'.
2359 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2361 * mule-charset.c (Qfont): New variable.
2362 (to_char_code): Add `Qfont'.
2363 (syms_of_mule_charset): Add new symbol `font'.
2365 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2367 * mule-charset.c (Qsub): New variable.
2368 (to_char_code): Add `Qsub'.
2369 (syms_of_mule_charset): Add new symbol `sub'.
2371 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2373 * mule-charset.c (Fput_char_attribute): Convert each element of
2374 VALUE to GL position if ATTRIBUTE is a GR-set,
2376 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2378 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2379 coded-charset is a GR-set.
2381 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2383 * mule-charset.c (Fput_char_attribute): Check each element of
2384 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2386 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2388 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2390 (Qethiopic_ucs): New variable in UTF-2000.
2391 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2392 (complex_vars_of_mule_charset): Add new coded-charset
2393 `ethiopic-ucs' in UTF-2000.
2395 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2396 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2398 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2400 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2402 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
2404 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2407 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2409 * mule-charset.c (Vcharacter_variant_table): New variable.
2410 (Q_ucs): New variable.
2411 (Fchar_variants): New function.
2412 (Fput_char_attribute): Register `->ucs' value to
2413 `Vcharacter_variant_table'.
2414 (syms_of_mule_charset): Add new function `char-variants' and new
2416 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2418 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2420 * mule-charset.c (get_char_code_table): Allow negative character
2422 (put_char_code_table): Likewise.
2423 (Vcharacter_composition_table): New variable.
2424 (Q_decomposition): New variable.
2425 (Qwide): New variable.
2426 (Qnarrow): New variable.
2427 (Qcompat): New variable.
2428 (QnoBreak): New variable.
2429 (Qsuper): New variable.
2430 (Qfraction): New variable.
2431 (to_char_code): New function.
2432 (Fget_composite_char): New function.
2433 (Fput_char_attribute): Register `->decomposition' value to
2434 `Vcharacter_composition_table'.
2435 (syms_of_mule_charset): Add new function `get-composite-char', new
2436 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2437 `super' and `fraction'.
2438 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2440 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2442 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2443 character; copy the return value.
2445 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2447 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2449 * mule-charset.c (range_charset_code_point): Must use make_int.
2450 (split_builtin_char): New function.
2452 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2454 * mule-charset.c (char_byte_table): Change name from
2455 "char-code-table" to "char-byte-table".
2456 (mark_char_code_table): New function.
2457 (char_code_table_equal): New function.
2458 (char_code_table_hash): New function.
2459 (char_code_table_description): New constant.
2460 (char_code_table): New type.
2461 (make_char_code_table): New function.
2462 (copy_char_code_table): New function.
2463 (get_char_code_table): Modify for `char_code_table' type.
2464 (put_char_code_table): Likewise.
2465 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2468 * char-ucs.h (char_code_table): New type.
2469 (XCHAR_CODE_TABLE): New macro.
2470 (XSETCHAR_CODE_TABLE): New macro.
2471 (CHAR_CODE_TABLE_P): New macro.
2472 (GC_CHAR_CODE_TABLE_P): New macro.
2473 (struct Lisp_Char_Code_Table): New structure.
2475 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2477 * mule-charset.c (Fmake_charset): Setup byte_offset for
2480 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
2482 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2485 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2487 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2490 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2492 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2493 charset, it is regarded as a charset.
2494 (put_char_attribute): New function in UTF-2000.
2495 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2496 charset, mapping-table of the charset is modified.
2497 (Fdefine_char): New function in UTF-2000.
2498 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2499 `Fput_char_attribute'.
2500 (syms_of_mule_charset): Add new function `define-char' and new
2501 symbol `ucs' in UTF-2000.
2502 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2504 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2506 * mule-charset.c (Fcharset_name): Define `byte_offset' in
2507 non-UTF-2000 configuration.
2509 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2511 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2512 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2514 * mule-charset.c (mark_charset): `cs->encoding_table' has been
2516 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2517 (Fset_charset_mapping_table): Likewise.
2519 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2520 (CHARSET_ENCODING_TABLE): Delete.
2521 (XCHARSET_ENCODING_TABLE): Delete.
2522 (charset_code_point): New interface.
2524 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2526 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2527 instead of `charset_get_byte1' and `charset_get_byte2'.
2529 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2530 (charset_get_byte2): Deleted.
2532 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2534 * char-ucs.h (SPLIT_CHAR): New inline function.
2535 (breakup_char_1): Use `SPLIT_CHAR'.
2537 * mule-charset.c (range_charset_code_point): New function.
2538 (charset_code_point): New function.
2540 * char-ucs.h (range_charset_code_point): New interface.
2541 (breakup_char_1): Use `range_charset_code_point'.
2543 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2545 * mule-charset.c (Fmake_charset): Delete unused local variable
2548 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2549 (breakup_char_1): Find a charset and code-point in
2550 `Vcharacter_attribute_table'.
2552 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2554 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2557 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
2559 * mule-charset.c (Vcharacter_attribute_table): New variable.
2560 (Fchar_attribute_alist): New function.
2561 (Fget_char_attribute): New function.
2562 (Fput_char_attribute): New function.
2563 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2565 (syms_of_mule_charset): Add new function `char-attribute-alist',
2566 `get-char-attribute' and `put-char-attribute'.
2567 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2569 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
2571 * mule-charset.c (Fmake_charset): Just use
2572 `get_unallocated_leading_byte'.
2574 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2575 sets; don't use final-byte based number for private sets.
2577 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2579 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2582 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2584 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2587 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2589 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2590 of `CHAR_LEADING_BYTE' in UTF-2000.
2592 * insdel.c (find_charsets_in_bufbyte_string): Use
2593 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2594 (find_charsets_in_emchar_string): Likewise.
2596 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2597 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2599 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2600 (CHAR_CHARSET_ID): New macro.
2602 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2604 * chartab.c (get_char_table): Don't use type `Charset_ID' for
2605 charset-id - MIN_LEADING_BYTE.
2606 (put_char_table): Likewise.
2608 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2610 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2611 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2612 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2613 (CHARSET_ID_OFFSET): New macro.
2614 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2615 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2616 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2617 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2619 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2621 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2622 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2623 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2624 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2625 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2627 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2629 * mule-charset.c (next_allocated_leading_byte): New variable in
2631 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2632 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2633 (get_unallocated_leading_byte): Simply use
2634 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2635 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2638 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2639 (MAX_LEADING_BYTE_PRIVATE): New macro.
2640 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2641 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2643 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2645 * mule-charset.c (Fmake_charset): Allocate final-byte based
2646 charset-id for 94-set, 96-set and 94x94-set.
2648 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2650 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2652 (Fmake_charset): Likewise.
2653 (complex_vars_of_mule_charset): Modify the font registry of
2654 `ucs-bmp' not to match `Ethiopic-Unicode'.
2656 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2658 * mule-charset.c (complex_vars_of_mule_charset): Add font
2659 registory of `ucs-bmp'.
2661 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2663 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2664 coded-charsets in `default-coded-charset-priority-list' when
2665 breaking up a character.
2667 * mule-charset.c (Vcharset_latin_viscii): New variable.
2668 (Qlatin_viscii): New variable.
2669 (make_charset): Don't use `decoding_table'.
2670 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2672 (Fset_charset_mapping_table): New implementation.
2673 (syms_of_mule_charset): Add new symbol `latin-viscii'.
2674 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2675 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2676 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2677 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2678 charset `latin_viscii'.
2680 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2681 (CHARSET_TYPE_94X94): Change to 1 from 2.
2682 (CHARSET_TYPE_96): Change to 2 from 1.
2683 (CHARSET_TYPE_128): New macro.
2684 (CHARSET_TYPE_128X128): Change to 5 from 4.
2685 (CHARSET_TYPE_256): New macro.
2686 (CHARSET_TYPE_256X256): Change to 7 from 5.
2687 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2689 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2691 * text-coding.c (char_encode_shift_jis): Refer
2692 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2693 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2695 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2696 (char_byte_table_equal): New function in UTF-2000.
2697 (char_byte_table_hash): New function in UTF-2000.
2698 (char_byte_table_description): New constant in UTF-2000.
2699 (char_byte_table): New type in UTF-2000.
2700 (make_char_byte_table): New function in UTF-2000.
2701 (copy_char_byte_table): New function in UTF-2000.
2702 (make_char_code_table): New macro in UTF-2000.
2703 (get_char_code_table): New function in UTF-2000.
2704 (put_char_code_table): New function in UTF-2000.
2705 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2706 (charset_description): Add setting in UTF-2000.
2707 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2708 `CHARSET_TO_BYTE1_TABLE(cs)'.
2709 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2710 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2711 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2712 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2713 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2714 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2715 `CHARSET_TO_BYTE2_TABLE(cs)'.
2717 * char-ucs.h (char_byte_table): New type.
2718 (XCHAR_BYTE_TABLE): New macro.
2719 (XSETCHAR_BYTE_TABLE): New macro.
2720 (CHAR_BYTE_TABLE_P): New macro.
2721 (GC_CHAR_BYTE_TABLE_P): New macro.
2722 (struct Lisp_Char_Byte_Table): New structure.
2723 (get_char_code_table): New interface.
2724 (Emchar_to_byte_table): Deleted.
2725 (get_byte_from_character_table): Deleted.
2726 (struct Lisp_Charset): Add `encoding_table'; delete
2727 `to_byte1_table' and `to_byte2_table'.
2728 (CHARSET_ENCODING_TABLE): New macro.
2729 (CHARSET_TO_BYTE1_TABLE): Deleted.
2730 (CHARSET_TO_BYTE2_TABLE): Deleted.
2731 (XCHARSET_ENCODING_TABLE): New macro.
2732 (XCHARSET_TO_BYTE1_TABLE): Deleted.
2733 (XCHARSET_TO_BYTE2_TABLE): Deleted.
2735 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2737 * mule-charset.c (syms_of_mule_charset): Delete charset alias
2738 `vietnamese-viscii-*'.
2740 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2742 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2743 (Qvietnamese_viscii_upper): New variable.
2744 (Fdefine_charset_alias): New function.
2745 (syms_of_mule_charset): Add new function `define-charset-alias'.
2746 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2747 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2750 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
2752 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2753 (MAX_CHAR_OBS_94x94): New macro.
2754 (breakup_char_1): Support obsolete XEmacs-UCS private code space
2757 * mule-charset.c (put_byte_from_character_table): Change unit size
2759 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2761 (Fmake_reverse_direction_charset): Modify dummy argument of
2762 `make_charset' for non-UTF-2000 environment.
2764 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
2766 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
2768 * mule-charset.c (destroy_byte_from_character_table): New macro.
2769 (latin_jisx0201_to_ucs): Deleted.
2770 (latin_iso8859_2_to_ucs): Deleted.
2771 (latin_iso8859_3_to_ucs): Deleted.
2772 (latin_iso8859_4_to_ucs): Deleted.
2773 (latin_iso8859_9_to_ucs): Deleted.
2774 (latin_viscii_lower_to_ucs): Deleted.
2775 (latin_viscii_upper_to_ucs): Deleted.
2776 (mark_charset): Mark `cs->decoding_table'.
2777 (Fcharset_mapping_table): Fix DOC-string.
2778 (Fset_charset_mapping_table): New function.
2779 (syms_of_mule_charset): Add nwe function
2780 `set-charset-mapping-table'.
2781 (complex_vars_of_mule_charset): Don't setup and use
2784 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
2786 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
2789 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
2791 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
2792 (Vcharset_katakana_jisx0208): New variable.
2793 (Qhiragana_jisx0208): New variable.
2794 (Qkatakana_jisx0208): New variable.
2795 (make_charset): Add new argument `byte_offset'.
2796 (charset_get_byte1): Modify for new coded-charset definition; use
2797 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2798 `XCHARSET_BYTE_OFFSET'.
2799 (Fmake_charset): Modify for `make_charset'.
2800 (Fmake_reverse_direction_charset): Likewise.
2801 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
2802 `katakana-jisx0208'.
2803 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
2804 `.' in font registry of charset `katakana-jisx0201',
2805 `latin-jisx0201', `vietnamese-viscii-lower' and
2806 `vietnamese-viscii-upper'; modify DOC-string of charset
2807 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
2808 registry of charset `japanese-jisx0208' not to use font for JIS
2809 X0208:1990; add new charset `hiragana-jisx0208' and
2810 `katakana-jisx0208'.
2812 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
2813 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
2814 (struct Lisp_Charset): Add `byte_offset'.
2815 (CHARSET_BYTE_OFFSET): New macro.
2816 (XCHARSET_UCS_MIN): New macro.
2817 (XCHARSET_UCS_MAX): New macro.
2818 (XCHARSET_CODE_OFFSET): New macro.
2819 (XCHARSET_BYTE_OFFSET): New macro.
2820 (MIN_CHAR_HIRAGANA): New macro.
2821 (MAX_CHAR_HIRAGANA): New macro.
2822 (MIN_CHAR_KATAKANA): New macro.
2823 (MAX_CHAR_KATAKANA): New macro.
2824 (MAKE_CHAR): Modify for new coded-charset definition; use
2825 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
2826 `XCHARSET_BYTE_OFFSET'.
2828 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2830 * mule-charset.c (CHAR96): Deleted.
2831 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
2833 (latin_iso8859_2_to_ucs): Likewise.
2834 (latin_iso8859_3_to_ucs): Likewise.
2835 (latin_iso8859_4_to_ucs): Likewise.
2836 (latin_iso8859_9_to_ucs): Likewise.
2837 (latin_viscii_lower_to_ucs): Likewise.
2838 (latin_viscii_upper_to_ucs): Likewise.
2839 (latin_tcvn5712_to_ucs): Commented out.
2840 (make_charset): Change type of argument `decoding_table' from
2841 <Emchar*> to <Lisp_Object> [vector of characters].
2842 (Fmake_charset): Modify for `make_charset'.
2843 (Fmake_reverse_direction_charset): Likewise.
2844 (Fcharset_mapping_table): New function in UTF-2000.
2845 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
2847 (complex_vars_of_mule_charset): Modify for type change of
2848 `*_to_ucs'; modify for `make_charset'.
2850 * char-ucs.h (struct Lisp_Charset): Change type of
2851 `decoding_table' from <Emchar*> to <Lisp_Object>.
2852 (MAKE_CHAR): Modify for new specification of `decoding_table'.
2854 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
2856 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
2857 error with non-UTF-2000-Mule.
2859 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
2861 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
2863 (Vcharset_chinese_cns11643_4): Likewise.
2864 (Vcharset_chinese_cns11643_5): Likewise.
2865 (Vcharset_chinese_cns11643_6): Likewise.
2866 (Vcharset_chinese_cns11643_7): Likewise.
2867 (Qchinese_cns11643_3): Likewise.
2868 (Qchinese_cns11643_4): Likewise.
2869 (Qchinese_cns11643_5): Likewise.
2870 (Qchinese_cns11643_6): Likewise.
2871 (Qchinese_cns11643_7): Likewise.
2872 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
2873 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
2874 and `chinese-cns11643-7' to lisp/mule/chinese.el.
2875 (complex_vars_of_mule_charset): Likewise.
2877 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2879 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
2881 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
2882 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
2884 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
2886 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
2888 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
2889 (breakup_char_1): Likewise.
2891 * text-coding.c (char_encode_iso2022): Keep designated charsets if
2892 one of them includes the specified character.
2894 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2896 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
2898 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2900 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
2902 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2904 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
2905 definition for non-UTF-2000 Mule.
2906 (latin_iso8859_3_to_ucs): Likewise.
2907 (latin_iso8859_4_to_ucs): Likewise.
2908 (latin_iso8859_9_to_ucs): Likewise.
2909 (latin_jisx0201_to_ucs): Likewise.
2910 (MIN_CHAR_THAI): Likewise.
2911 (MAX_CHAR_THAI): Likewise.
2912 (MIN_CHAR_GREEK): Likewise.
2913 (MAX_CHAR_GREEK): Likewise.
2914 (MIN_CHAR_HEBREW): Likewise.
2915 (MAX_CHAR_HEBREW): Likewise.
2916 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
2917 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
2918 (MIN_CHAR_CYRILLIC): Likewise.
2919 (MAX_CHAR_CYRILLIC): Likewise.
2921 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
2923 * char-ucs.h (breakup_char_1): Use
2924 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
2925 thai-tis620 and katakana-jisx0201 area.
2927 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2929 * char-ucs.h (breakup_char_1): Use
2930 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
2933 * text-coding.c (reset_encoding_stream): Fixed.
2934 (char_encode_ucs4): Delete `& 255'.
2936 * char-ucs.h (breakup_char_1): Use
2937 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
2939 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2941 * file-coding.c (Fmake_coding_system): Don't set up
2942 `codesys->fixed.size'.
2943 (encode_coding_no_conversion): Don't refer
2944 `str->codesys->fixed.size'.
2946 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2948 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
2949 (latin_a_char_to_byte1): Deleted.
2950 (latin_a_char_to_byte2): Deleted.
2952 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2954 * mule-charset.c (make_charset): Add new argument `ucs_min',
2955 `ucs_max' and `code_offset'.
2956 (charset_get_byte1): New implementation [delete specific charset
2957 depended implementations].
2958 (Fmake_charset): Modify for `make_charset'.
2959 (Fmake_reverse_direction_charset): Likewise.
2960 (complex_vars_of_mule_charset): Likewise.
2962 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
2964 (CHARSET_UCS_MIN): New macro.
2965 (CHARSET_UCS_MAX): New macro.
2966 (CHARSET_CODE_OFFSET): New macro.
2967 (MAKE_CHAR): Delete charset depended definitions [except
2970 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
2972 * char-ucs.h (breakup_char_1): Use
2973 `Vdefault_coded_charset_priority_list' for C0-Controls,
2974 Basic-Latin, C1-Controls and Latin-1-Supplement area.
2976 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2978 * char-ucs.h (charset_get_byte1): New function.
2979 (XCHARSET_GET_BYTE1): Deleted.
2980 (charset_get_byte2): New function.
2981 (XCHARSET_GET_BYTE2): Deleted.
2982 (Vdefault_coded_charset_priority_list): New external variable.
2983 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
2984 `Vdefault_preferred_coded_charset_list'.
2986 * mule-charset.c (charset_get_byte1): New function.
2987 (charset_get_byte2): New function.
2988 (Vdefault_coded_charset_priority_list): New variable.
2989 (vars_of_mule_charset): Add new variable
2990 `default-coded-charset-priority-list'.
2992 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2994 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
2995 (XCHARSET_GET_BYTE2): New inline function.
2996 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
2997 `XCHARSET_GET_BYTE2'.
2999 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3001 * mule-charset.c (make_charset): Initialize
3002 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3003 NULL if table is not defined.
3005 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3007 * text-coding.c (char_encode_shift_jis): Use
3008 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3009 `ucs_to_latin_jisx0201'.
3011 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3012 (ucs_to_latin_iso8859_2): Deleted.
3013 (ucs_to_latin_iso8859_3): Deleted.
3014 (ucs_to_latin_iso8859_4): Deleted.
3015 (ucs_to_latin_iso8859_9): Deleted.
3016 (ucs_to_latin_viscii_lower): Deleted.
3017 (ucs_to_latin_viscii_upper): Deleted.
3018 (ucs_to_latin_tcvn5712): Deleted.
3019 (make_charset): Add new argument `decoding_table'; set up
3020 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3021 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3022 `decoding_table' is defined in UTF-2000.
3023 (Fmake_charset): Modify for `make_charset'.
3024 (Fmake_reverse_direction_charset): Likewise.
3025 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3026 and `GENERATE_96_SET'.
3028 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3029 (ucs_to_latin_jisx0201): Deleted.
3030 (latin_iso8859_2_to_ucs): Deleted.
3031 (ucs_to_latin_iso8859_2): Deleted.
3032 (latin_iso8859_3_to_ucs): Deleted.
3033 (ucs_to_latin_iso8859_3): Deleted.
3034 (latin_iso8859_4_to_ucs): Deleted.
3035 (ucs_to_latin_iso8859_4): Deleted.
3036 (latin_iso8859_9_to_ucs): Deleted.
3037 (ucs_to_latin_iso8859_9): Deleted.
3038 (latin_viscii_lower_to_ucs): Deleted.
3039 (ucs_to_latin_viscii_lower): Deleted.
3040 (latin_viscii_upper_to_ucs): Deleted.
3041 (ucs_to_latin_viscii_upper): Deleted.
3042 (struct Lisp_Charset): Renamed `encoding_table' to
3043 `to_byte1_table'; add `to_byte2_table'.
3044 (CHARSET_DECODING_TABLE): New macro.
3045 (CHARSET_TO_BYTE1_TABLE): New macro.
3046 (CHARSET_TO_BYTE2_TABLE): New macro.
3047 (XCHARSET_DECODING_TABLE): New macro.
3048 (XCHARSET_TO_BYTE1_TABLE): New macro.
3049 (XCHARSET_TO_BYTE2_TABLE): New macro.
3050 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3052 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3053 don't use `ucs_to_*' tables.
3055 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3057 * text-coding.c (Fmake_coding_system): Don't set up
3058 `codesys->fixed.size'.
3059 (encode_coding_no_conversion): Use `if' instead of `switch'.
3061 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3063 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3065 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3066 (Fmake_charset): Modify for `make_charset'.
3067 (Fmake_reverse_direction_charset): Likewise.
3068 (complex_vars_of_mule_charset): Likewise.
3070 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3072 * text-coding.c (char_encode_shift_jis): Use table
3073 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3075 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3077 * text-coding.c (text_encode_generic): Use `if' instead of
3079 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3082 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3084 * text-coding.c (encode_coding_sjis): Deleted.
3085 (char_encode_shift_jis): New function.
3086 (char_finish_shift_jis): New function.
3087 (reset_encoding_stream): Set up `encode_char' and `finish' for
3088 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3089 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3090 (char_encode_utf8): Treat `eol_type'.
3092 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3094 * file-coding.c (decode_coding_iso2022): Use
3095 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3097 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3099 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3102 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3104 * char-lb.h (CHAR_COLUMNS): New macro.
3106 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3108 * text-coding.c (char_encode_ucs4): New function.
3109 (char_finish_ucs4): New function.
3110 (encode_coding_ucs4): Deleted.
3111 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3112 (text_encode_generic): Delete local variable `charset' and `half'.
3113 (ucs_to_mule_table): Deleted.
3114 (mule_to_ucs_table): Deleted.
3115 (Fset_ucs_char): Deleted.
3116 (ucs_to_char): Deleted.
3117 (Fucs_char): Deleted.
3118 (Fset_char_ucs): Deleted.
3119 (Fchar_ucs): Deleted.
3120 (decode_ucs4): Deleted.
3121 (mule_char_to_ucs4): Deleted.
3122 (encode_ucs4): Deleted.
3123 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3124 (decode_coding_utf8): Likewise.
3125 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3126 (char_encode_iso2022): Fixed.
3127 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3128 `Fset_char_ucs' and `Fchar_ucs'.
3129 (complex_vars_of_file_coding): Don't initialize
3130 `ucs_to_mule_table'.
3132 * objects-tty.c (tty_initialize_font_instance): Don't use
3135 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3138 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3139 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3141 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3142 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3143 (emchar_string_displayed_columns): Likewise.
3145 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3146 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3147 (string_column_at_point): Likewise.
3148 (Fmove_to_column): Likewise.
3150 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3151 `encoding_table' and `decoding_table'.
3152 (CHARSET_REP_BYTES): Deleted.
3153 (XCHARSET_REP_BYTES): Deleted.
3154 (XCHARSET_COLUMNS): Deleted.
3155 (CHAR_COLUMNS): New macro.
3156 (lookup_composite_char): Deleted unconditionally.
3157 (composite_char_string): Likewise.
3159 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3161 * char-ucs.h (Emchar_to_byte_table): New type.
3162 (get_byte_from_character_table): New function interface.
3163 (Vcharset_latin_jisx0201): New variable.
3164 (latin_jisx0201_to_ucs): New variable.
3165 (ucs_to_latin_jisx0201): New variable.
3166 (Vcharset_latin_iso8859_2): New variable.
3167 (latin_iso8859_2_to_ucs): New variable.
3168 (ucs_to_latin_iso8859_2): New variable.
3169 (Vcharset_latin_iso8859_3): New variable.
3170 (latin_iso8859_3_to_ucs): New variable.
3171 (ucs_to_latin_iso8859_3): New variable.
3172 (Vcharset_latin_iso8859_4): New variable.
3173 (latin_iso8859_4_to_ucs): New variable.
3174 (ucs_to_latin_iso8859_4): New variable.
3175 (Vcharset_latin_iso8859_9): New variable.
3176 (latin_iso8859_9_to_ucs): New variable.
3177 (ucs_to_latin_iso8859_9): New variable.
3178 (Vcharset_latin_viscii_lower): New variable.
3179 (latin_viscii_lower_to_ucs): New variable.
3180 (ucs_to_latin_viscii_lower): New variable.
3181 (Vcharset_latin_viscii_upper): New variable.
3182 (latin_viscii_upper_to_ucs): New variable.
3183 (ucs_to_latin_viscii_upper): New variable.
3184 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3185 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3186 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3187 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3188 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3189 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3190 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3191 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3192 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3193 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3195 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3196 (Vcharset_latin_viscii_upper): New variable.
3197 (make_byte_from_character_table): New function.
3198 (put_byte_from_character_table): New function.
3199 (get_byte_from_character_table): New function.
3200 (CHAR96): New macro.
3201 (ucs_to_latin_jisx0201): New variable.
3202 (latin_jisx0201_to_ucs): New variable.
3203 (ucs_to_latin_iso8859_2): New variable.
3204 (latin_iso8859_2_to_ucs): New variable.
3205 (ucs_to_latin_iso8859_3): New variable.
3206 (latin_iso8859_3_to_ucs): New variable.
3207 (ucs_to_latin_iso8859_4): New variable.
3208 (latin_iso8859_4_to_ucs): New variable.
3209 (ucs_to_latin_iso8859_9): New variable.
3210 (latin_iso8859_9_to_ucs): New variable.
3211 (ucs_to_latin_viscii_lower): New variable.
3212 (latin_viscii_lower_to_ucs): New variable.
3213 (ucs_to_latin_viscii_upper): New variable.
3214 (latin_viscii_upper_to_ucs): New variable.
3215 (ucs_to_latin_tcvn5712): New variable.
3216 (latin_tcvn5712_to_ucs): New variable.
3217 (Qlatin_viscii_lower): New variable.
3218 (Qlatin_viscii_upper): New variable.
3219 (syms_of_mule_charset): Set up new symbol
3220 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3221 (complex_vars_of_mule_charset): Set up new charset
3222 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3223 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3224 `ucs_to_<CHARSET>' tables.
3226 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
3228 * text-coding.c: New file.
3230 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3232 * mule-charset.c (Fmake_char): Fix problem of 256-set.
3234 * char-ucs.h (Vcharset_ucs_bmp): New variable.
3235 (MAKE_CHAR): Modify for `ucs-bmp'.
3236 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3237 non-MULE characters of BMP.
3239 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
3241 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3244 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
3247 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3248 - Include character.h for `CHAR_ASCII_P'.
3250 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3252 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3253 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3255 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3256 (BYTE_C0_P): Likewise.
3257 (BYTE_C1_P): Likewise.
3258 (Lstream_get_emchar_1): Likewise.
3259 (Lstream_fput_emchar): Likewise.
3260 (Lstream_funget_emchar): Likewise.
3261 (copy_internal_to_external): Likewise.
3262 (copy_external_to_internal): Likewise.
3264 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3265 (BYTE_C0_P): Likewise.
3266 (BYTE_C1_P): Likewise.
3267 (Lstream_get_emchar_1): Likewise.
3268 (Lstream_fput_emchar): Likewise.
3269 (Lstream_funget_emchar): Likewise.
3270 (copy_internal_to_external): Likewise.
3271 (copy_external_to_internal): Likewise.
3273 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3274 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3276 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3277 (BYTE_ASCII_P): Moved to mb-1byte.h.
3279 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
3281 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3283 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3284 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3285 (VALID_CHARPTR_P): Moved to mb-*byte.h.
3286 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3287 (VALIDATE_CHARPTR_FORWARD): Likewise.
3288 (simple_charptr_emchar): Moved to mb-multibyte.h.
3289 (simple_set_charptr_emchar): Likewise.
3290 (simple_charptr_copy_char): Likewise.
3291 (non_ascii_charptr_emchar): Likewise.
3292 (non_ascii_set_charptr_emchar): Likewise.
3293 (non_ascii_charptr_copy_char): Likewise.
3294 (charptr_emchar): Moved to mb-*byte.h.
3295 (set_charptr_emchar): Likewise.
3296 (charptr_copy_char): Likewise.
3298 * mb-1byte.h, mb-multibyte.h: New files.
3300 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3302 * mb-utf-8.h (MULTIBYTE): New macro.
3303 (MAX_EMCHAR_LEN): Moved from buffer.h.
3304 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3306 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3308 * mb-lb.h, multibyte.h: New files.
3310 * char-1byte.h (Charset_ID): Moved from buffer.h.
3311 (MIN_LEADING_BYTE): Likewise.
3312 (LEADING_BYTE_ASCII): Likewise.
3313 (NUM_LEADING_BYTES): Likewise.
3314 (CHARSETP): Likewise.
3315 (CHARSET_BY_LEADING_BYTE): Likewise.
3316 (XCHARSET_LEADING_BYTE): Likewise.
3317 (XCHARSET_GRAPHIC): Likewise.
3318 (XCHARSET_COLUMNS): Likewise.
3319 (XCHARSET_DIMENSION): Likewise.
3320 (CHAR_CHARSET): Likewise.
3321 (CHAR_LEADING_BYTE): Likewise.
3322 (BREAKUP_CHAR): Likewise.
3323 (Vcharset_ascii): Likewise.
3325 * buffer.h: Include multibyte.h unconditionally.
3326 (VALID_CHARPTR_P): Moved to multibyte.h.
3327 (ASSERT_VALID_CHARPTR): Likewise.
3328 (REAL_INC_CHARPTR): Likewise.
3329 (REAL_INC_CHARBYTIND): Likewise.
3330 (REAL_DEC_CHARPTR): Likewise.
3331 (INC_CHARPTR): Likewise.
3332 (INC_CHARBYTIND): Likewise.
3333 (DEC_CHARPTR): Likewise.
3334 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3335 (VALIDATE_CHARPTR_FORWARD): Likewise.
3336 (charptr_n_addr): Likewise.
3337 (MAX_EMCHAR_LEN): Moved to mb-*.h.
3338 (simple_charptr_emchar): Moved to multibyte.h.
3339 (simple_set_charptr_emchar): Likewise.
3340 (simple_charptr_copy_char): Likewise.
3341 (non_ascii_charptr_emchar): Likewise.
3342 (non_ascii_set_charptr_emchar): Likewise.
3343 (non_ascii_charptr_copy_char): Likewise.
3344 (charptr_emchar): Likewise.
3345 (set_charptr_emchar): Likewise.
3346 (charptr_copy_char): Likewise.
3347 (charptr_emchar_n): Likewise.
3348 (Charset_ID): Moved to char-1byte.h.
3349 (Vcharset_ascii): Likewise.
3350 (CHAR_CHARSET): Likewise.
3351 (CHAR_LEADING_BYTE): Likewise.
3352 (LEADING_BYTE_ASCII): Likewise.
3353 (NUM_LEADING_BYTES): Likewise.
3354 (MIN_LEADING_BYTE): Likewise.
3355 (CHARSETP): Likewise.
3356 (CHARSET_BY_LEADING_BYTE): Likewise.
3357 (XCHARSET_LEADING_BYTE): Likewise.
3358 (XCHARSET_GRAPHIC): Likewise.
3359 (XCHARSET_COLUMNS): Likewise.
3360 (XCHARSET_DIMENSION): Likewise.
3361 (BREAKUP_CHAR): Likewise.
3363 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3365 * character.h: Add document about interface for characters.
3367 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3368 (MAKE_CHAR): Delete comment about
3369 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3370 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3371 (BREAKUP_CHAR): Modify name of arguments.
3372 (CHAR_CHARSET): Modify name of argument.
3374 * buffer.h: Delete document about Emchar accessors.
3376 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3378 * character.h (CHAR_INTP): Moved from buffer.h
3379 (CHAR_OR_CHAR_INTP): Likewise.
3380 (XCHAR_OR_CHAR_INT): Likewise.
3381 (CHECK_CHAR_COERCE_INT): Likewise.
3383 * buffer.h (CHAR_INTP): Moved to character.h
3384 (CHAR_OR_CHAR_INTP): Likewise.
3385 (XCHAR_OR_CHAR_INT): Likewise.
3386 (CHECK_CHAR_COERCE_INT): Likewise.
3388 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3391 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3392 - Include char-1byte.h, char-lb.h or char-ucs.h.
3394 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3396 * buffer.h: Include character unconditionally.
3397 (valid_char_p): Moved to char-*.h.
3398 (non_ascii_valid_char_p): Moved to char-lb.h.
3400 * char-1byte.h, char-lb.h, char-ucs.h: New files.
3402 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3404 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3405 in UTF-2000 because it is not ported yet and not to use
3406 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3407 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3408 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3410 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3411 (CHAR_ASCII_P): Moved from character.h.
3413 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3414 (CHAR_ASCII_P): Likewise.
3415 (CHAR_FIELD1_MASK): Deleted.
3416 (CHAR_FIELD2_MASK): Deleted.
3417 (CHAR_FIELD3_MASK): Deleted.
3418 (MAX_CHAR_BASIC_LATIN): New macro.
3419 (CHAR_FIELD1): Deleted.
3420 (CHAR_FIELD2_INTERNAL): Deleted.
3421 (CHAR_FIELD3_INTERNAL): Deleted.
3422 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3423 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3424 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3425 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3426 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3427 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3428 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3429 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3430 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3431 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3432 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3433 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3434 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3435 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3436 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3437 (MIN_CHAR_COMPOSITION): Deleted.
3438 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3439 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3441 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
3443 * buffer.h: Include mb-utf-8.h in UTF-2000.
3445 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3447 * mb-utf-8.h: New file.
3449 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
3451 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3454 * mule-charset.h, buffer.h (Charset_ID): New type.
3456 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3458 * mule-canna.c (c2mu): Use `MAKE_CHAR',
3459 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3460 instead of `MULE_CHAR_PRIVATE_OFFSET',
3461 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3462 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3463 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3465 * character.h (Vcharset_japanese_jisx0212): New variable
3468 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3470 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3471 (charset_by_attributes): Delete array about direction.
3472 (latin_a_char_to_charset): New variable in UTF-2000.
3473 (latin_a_char_to_byte1): New variable in UTF-2000.
3474 (latin_a_char_to_byte2): New variable in UTF-2000.
3475 (Qucs_bmp): New variable.
3476 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3478 (next_allocated_2_byte_leading_byte): Likewise.
3479 (non_ascii_set_charptr_emchar): Likewise.
3480 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3481 `CHARSET_TYPE_256X256' in UTF-2000; modify for
3482 `charset_by_attributes'.
3483 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3484 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3485 and `CHARSET_BY_LEADING_BYTE'.
3486 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3487 `utf-2000-version' to `vars_of_mule_charset'.
3488 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3489 define `leading-code-private-11' in UTF-2000; move setting of
3490 `utf-2000-version' from `syms_of_mule_charset'.
3491 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3494 * character.h (Charset_ID): New type.
3495 (LEADING_BYTE_UCS_BMP): New macro.
3496 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3497 (CHARSET_ID_OFFSET_94): New macro.
3498 (MIN_CHARSET_ID_PRIVATE_94): New macro.
3499 (MAX_CHARSET_ID_PRIVATE_94): New macro.
3500 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3502 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3503 (LEADING_BYTE_LATIN_JISX0201): Likewise.
3504 (CHARSET_ID_OFFSET_96): New macro.
3505 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3506 CHARSET_ID_OFFSET_96 and final-byte.
3507 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3508 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3509 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3510 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3511 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3512 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3513 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3514 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3515 (LEADING_BYTE_THAI_TIS620): Likewise.
3516 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3517 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3518 (CHARSET_ID_OFFSET_94x94): New macro.
3519 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3520 CHARSET_ID_OFFSET_94x94 and final-byte.
3521 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3522 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3523 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3524 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3525 (LEADING_BYTE_CHINESE_GB2312): Likewise.
3526 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3527 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3528 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3529 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3530 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3531 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3532 (CHARSET_TYPE_128X128): New macro.
3533 (CHARSET_TYPE_256X256): New macro.
3534 (XCHARSET_PRIVATE_P): Delete unconditionally.
3535 (charset_by_attributes): Delete array about direction.
3536 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3537 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3538 (MIN_CHAR_94): New macro.
3539 (MAX_CHAR_94): New macro.
3540 (MIN_CHAR_96): New macro.
3541 (MAX_CHAR_96): New macro.
3542 (MIN_CHAR_94x94): New macro.
3543 (MAX_CHAR_94x94): New macro.
3544 (MIN_CHAR_96x96): New macro.
3545 (MAX_CHAR_96x96): New macro.
3546 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3547 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3548 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3550 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3551 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3552 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3553 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3554 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3555 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3556 `XCHARSET_LEADING_BYTE' to make code-point.
3557 (latin_a_char_to_charset): New variable.
3558 (latin_a_char_to_byte1): New variable.
3559 (latin_a_char_to_byte2): New variable.
3560 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3561 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3562 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3564 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3565 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3566 (find_charsets_in_emchar_string): Likewise.
3567 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3569 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3571 (decode_coding_iso2022): Likewise.
3573 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3576 * redisplay.c (redisplay_text_width_emchar_string): Use
3577 `Charset_ID' instead of `unsigned char'.
3578 (redisplay_frame_text_width_string): Likewise.
3580 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3583 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3584 instead of `unsigned char'.
3585 (face_cachel_charset_font_metric_info): Likewise.
3587 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3588 (get_non_ascii_char_table_value): Likewise.
3589 (get_char_table): Likewise.
3590 (put_char_table): Likewise.
3591 (map_over_other_charset): Likewise.
3592 (map_char_table): Likewise.
3594 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3595 instead of `unsigned char'.
3597 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
3599 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3600 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3602 * mule-charset.c (leading_code_private_11): Don't define in
3605 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3606 in UTF-2000 because it is not ported yet and not to use
3607 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3609 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
3611 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3613 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3615 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3618 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3619 of unsigned char to store leading-byte.
3621 * chartab.c (get_non_ascii_char_table_value): Don't use
3622 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3624 * file-coding.c (encode_coding_big5): Delete bogus implementation
3627 * character.h (LEADING_BYTE_*): Delete definition for
3629 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3630 (LEADING_BYTE_PREFIX_P): Deleted.
3631 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3632 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3633 (BUFBYTE_LEADING_BYTE_P): Deleted.
3634 (CHARSET_PRIVATE_P): Deleted unconditionally.
3635 (rep_bytes_by_first_byte): Deleted unconditionally.
3636 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3637 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3638 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3639 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3640 (CHAR_FIELD2): Deleted.
3641 (CHAR_FIELD3): Deleted.
3642 (MAKE_CHAR): Delete definition for non-UTF-2000.
3643 (BREAKUP_CHAR_1_UNSAFE): Deleted.
3644 (breakup_char_1): New implementation.
3645 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3646 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3648 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3650 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3653 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3655 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3656 (CHARSET_PRIVATE_P): Likewise.
3657 (XCHARSET_PRIVATE_P): Likewise.
3658 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3660 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3662 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3664 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3666 * character.h (LEADING_BYTE_*): Changed in UTF2000.
3667 (NUM_LEADING_BYTES): Changed from 128 to 256.
3668 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3669 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3671 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3673 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3675 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3676 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3677 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3678 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3679 (Qchinese_cns11643_3): New variable in UTF2000.
3680 (Qchinese_cns11643_4): New variable in UTF2000.
3681 (Qchinese_cns11643_5): New variable in UTF2000.
3682 (Qchinese_cns11643_6): New variable in UTF2000.
3683 (Qchinese_cns11643_7): New variable in UTF2000.
3684 (syms_of_mule_charset): Define `chinese-cns11643-3',
3685 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3686 and `chinese-cns11643-7' in UTF2000.
3687 (vars_of_mule_charset): Initialize
3688 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3690 (complex_vars_of_mule_charset): Setup charset
3691 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3692 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3694 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3696 * mule-charset.c: Move setting for `leading-code-private-11' from
3697 `syms_of_mule_charset' to `vars_of_mule_charset'.
3699 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3701 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3702 and `NUM_LEADING_BYTES' in assert.
3704 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3706 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3708 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3709 `NUM_LEADING_BYTES' instead of 128.
3711 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
3713 * mule-charset.h (charset_by_leading_byte): Use
3714 `NUM_LEADING_BYTES' instead of 128.
3715 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3717 * mule-charset.c (charset_by_leading_byte): Use
3718 `NUM_LEADING_BYTES' instead of 128.
3719 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3721 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3724 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
3726 * mule-charset.c (syms_of_mule_charset): Update to
3729 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3731 * file-coding.c (encode_coding_sjis): New implementation for
3732 UTF2000. (decode_coding_sjis): Ditto.
3734 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3736 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3737 Don't define in UTF2000.
3739 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3742 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3743 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3746 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3748 * config.h.in (CHAR_IS_UCS4): New macro.
3750 * mule-charset.c (rep_bytes_by_first_byte): Modify for
3751 conventional MULE representation.
3752 (syms_of_mule_charset): Update to 0.3 (Imamiya).
3754 * mule-charset.h: Reverted to original.
3756 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3757 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3758 "mule-charset.h" if CHAR_IS_UCS4 is defined.
3760 * character.h: New file.
3762 * file-coding.c (Fmake_coding_system): Set 1 to
3763 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
3765 (encode_coding_no_conversion): New implementation for UTF2000.
3767 * file-coding.h (struct Lisp_Coding_System): Add new member
3770 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
3772 * file-coding.c (decode_coding_iso2022): Code-point arguments of
3773 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
3774 (encode_coding_iso2022): New implementation for UTF2000.
3776 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3778 * mule-canna.c (c2mu): New implementation for UTF2000.
3781 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3783 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
3785 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3787 * file-coding.c (reset_encoding_stream): Set 0 to
3788 `str->iso2022.current_char_boundary' in UTF2000.
3789 (encode_utf8): Don't define in UTF2000.
3790 (encode_coding_utf8): New implementation for UTF-8 representation
3792 (complex_vars_of_file_coding): Define coding-system `utf-8'.
3794 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
3796 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
3798 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
3800 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3802 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
3804 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
3805 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
3806 as UTF-8 in UTF2000.
3807 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
3808 (non_ascii_valid_char_p): Don't define in UTF2000.
3809 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
3810 (Lstream_get_emchar_1): Likewise.
3811 (utf-2000-version): New variable in UTF2000.
3813 * lread.c (read_escape): Add new reader `u'.
3815 * insdel.c (three_to_one_table): Don't define in UTF2000.
3816 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
3817 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3819 (bytind_to_bufpos_func): Likewise.
3820 (buffer_mule_signal_inserted_region): Likewise.
3821 (vars_of_insdel): Don't initialize `three_to_one_table'.
3822 (init_buffer_text): Use `buf->text->mule_size' instead of
3823 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
3826 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
3827 UTF-8 representation in UTF2000.
3828 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
3829 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
3830 (decode_coding_iso2022): Don't define local variable `lb' in
3831 UTF2000; don't use LEADING_BYTE in UTF2000; use
3832 `DECODE_ADD_UCS_CHAR' in UTF2000.
3833 (convert_to_external_format): Decode as UTF-8 in UTF2000.
3835 * config.h.in (UTF2000): New macro.
3837 * buffer.h (struct buffer_text): Add new member `mule_size' and
3838 don't add `mule_shifter' and `mule_three_p' in UTF2000.
3839 (valid_char_p): Return always 1 in UTF2000.
3840 (MAX_EMCHAR_LEN): 6 in UTF2000.
3841 (three_to_one_table): Don't define in UTF2000.
3842 (real_bufpos_to_bytind): Modify for UTF-8 representation in
3844 (real_bytind_to_bufpos): Likewise.
3846 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
3848 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3850 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
3851 representation change.
3852 (Vutf_2000_version): New variable.
3853 (leading_code_private_11): New variable.
3854 (syms_of_mule_charset): Add new variables `utf-2000-version' and
3855 `leading-code-private-11'.
3857 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
3858 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
3859 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
3860 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
3861 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
3862 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
3863 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
3864 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
3865 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
3866 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
3867 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
3868 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
3869 (MIN_CHAR_GREEK): New macro.
3870 (MAX_CHAR_GREEK): New macro.
3871 (MIN_CHAR_CYRILLIC): New macro.
3872 (MAX_CHAR_CYRILLIC): New macro.
3873 (MIN_CHAR_HEBREW): New macro.
3874 (MAX_CHAR_HEBREW): New macro.
3875 (MIN_CHAR_THAI): New macro.
3876 (MAX_CHAR_THAI): New macro.
3877 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
3878 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
3879 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
3880 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
3881 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
3882 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
3883 (CHAR_FIELD2): New inline function.
3884 (CHAR_FIELD3): New inline function.
3885 (MULE_CHAR_PRIVATE_OFFSET): New macro.
3886 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
3887 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
3888 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
3889 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
3890 (MIN_CHAR_COMPOSITION): Likewise.
3891 (CHAR_LEADING_BYTE): Modified for character representation change.
3892 (MAKE_CHAR): Likewise.
3894 * lisp.h (Vcharset_latin_iso8859_1): New variable.
3895 (Vcharset_greek_iso8859_7): Likewise.
3896 (Vcharset_cyrillic_iso8859_5): Likewise.
3897 (Vcharset_hebrew_iso8859_8): Likewise.
3898 (Vcharset_thai_tis620): Likewise.
3899 (Vcharset_katakana_jisx0201): Likewise.
3901 2001-02-08 Martin Buchholz <martin@xemacs.org>
3903 * XEmacs 21.2.44 "Thalia" is released.
3905 2001-02-06 Martin Buchholz <martin@xemacs.org>
3907 Fixes crashes in kill-emacs on some systems.
3908 * process-unix.c (unix_kill_child_process):
3909 It's OK for kill() to fail with ESRCH.
3911 2001-02-07 Martin Buchholz <martin@xemacs.org>
3913 Contortions to make .gdbinit tricks work on most systems.
3914 * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
3915 * alloc.c (dbg_valmask): Make non-const.
3916 * alloc.c (dbg_typemask): Make non-const.
3917 * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
3918 * alloc.c (dbg_valbits): Make non-const.
3919 * alloc.c (dbg_gctypebits): Make non-const.
3920 * .gdbinit (decode_object): Make it work with AIX cc.
3922 2001-02-06 Martin Buchholz <martin@xemacs.org>
3924 * elhash.c (make_general_lisp_hash_table):
3925 Use simpler and more efficient calloc to clear entries.
3927 2001-02-07 Martin Buchholz <martin@xemacs.org>
3929 * window.c (window_scroll): Work around an AIX C compiler bug.
3930 Fixes 'scroll-up' does nothing problem with xlC.
3932 2001-02-05 Martin Buchholz <martin@xemacs.org>
3934 * .gdbinit: Remove obsolete comment.
3936 2001-01-31 Mike Alexander <mta@arbortext.com>
3938 * select.c (Fown_selection_internal): Set owned_p for device
3941 2001-02-01 Martin Buchholz <martin@xemacs.org>
3944 "not" cannot be used as a macro name as it is an operator in C++
3945 * config.h.in: Stop #defining `not'.
3946 * chartab.c (check_category_char): not ==> not_p
3947 * chartab.h: Likewise.
3948 * regex.c (re_match_2_internal): Likewise.
3950 2001-02-02 Martin Buchholz <martin@xemacs.org>
3952 * lisp-disunion.h: Fix up comments.
3954 2001-01-31 Martin Buchholz <martin@xemacs.org>
3956 * keymap.c (define_key_check_and_coerce_keysym):
3958 Support mouse-6 and mouse-7 bindings in the obvious way.
3960 2001-02-01 Martin Buchholz <martin@xemacs.org>
3962 * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
3964 2001-01-30 Martin Buchholz <martin@xemacs.org>
3966 Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
3967 Previous patch missed DEFVAR_INT_MAGIC.
3968 Make sure future DEFVAR_foo use correct types.
3969 * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
3970 * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
3971 * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
3972 * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
3973 * (DEFVAR_INT): Likewise.
3974 * redisplay.c (vertical_clip): Should be of type Fixnum.
3975 * redisplay.c (horizontal_clip): Likewise.
3976 * lisp.h (dump_add_opaque_int): New.
3977 (dump_add_opaque_fixnum): New.
3979 2001-01-29 Andy Piper <andy@xemacs.org>
3981 * glyphs-widget.c (check_valid_int_or_function): allow symbols
3982 since they can be eval'ed
3984 2001-01-29 Martin Buchholz <martin@xemacs.org>
3986 * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
3987 Oops, XEmacs redefines `class'. Use `typename' instead.
3989 2001-01-28 Martin Buchholz <martin@xemacs.org>
3991 * dumper.c: Fix C++ compile errors.
3993 2001-01-29 Martin Buchholz <martin@xemacs.org>
3995 * tparam.c: Use correct prototypes.
3997 2001-01-28 Martin Buchholz <martin@xemacs.org>
3999 * sysproc.h: #include util.h for NetBSD's openpty.
4001 2001-01-27 Martin Buchholz <martin@xemacs.org>
4003 More 64-bit correctness.
4004 The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4005 Use a typedef `fixnum' for the type used for DEFVAR_INT.
4007 This finally finishes the 64-bit SGI port.
4008 Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4009 * symbols.c: Fix up comments and type casts.
4010 * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4011 * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4012 * symeval.h (Fixnum): New type.
4013 * symeval.h (symbol_value_type): Fix up comment.
4029 * mule-canna.c: A million DEFVAR_INTs here...
4030 * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4043 s/int/Fixnum/g in DEFVAR_INT declarations.
4045 2001-01-26 Martin Buchholz <martin@xemacs.org>
4047 Port pdump to SGI alignment-sensitive environment.
4048 Lisp Object sizeof methods now return aligned sizes. Rely on that.
4049 Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4051 Define and use aligned reading and writing macros.
4052 Use buffered stdio instead of posix i/o for faster dumping.
4053 Eliminate kludgy 256 byte space for header.
4054 Read and write from dump file using structs for alignment safety.
4055 * dumper.c (pdump_align_stream): New.
4056 * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4057 * dumper.c (PDUMP_READ_ALIGNED): New.
4058 * dumper.c (PDUMP_WRITE_ALIGNED): New.
4059 * dumper.c (pdump_static_Lisp_Object): New struct.
4060 * dumper.c (pdump_static_pointer): New struct.
4061 * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4062 * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4063 * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4064 * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4066 * dumper.c (pdump_backtrace):
4067 * dumper.c (pdump_get_indirect_count):
4068 * dumper.c (pdump_register_object):
4069 * dumper.c (pdump_register_struct):
4070 * dumper.c (pdump_reloc_one):
4071 * dumper.c (pdump_scan_by_alignment):
4072 * dumper.c (pdump_dump_from_root_struct_ptrs):
4073 * dumper.c (pdump_dump_opaques):
4074 * dumper.c (pdump_dump_rtables):
4075 * dumper.c (pdump_dump_from_root_objects):
4077 * dumper.c (pdump_load_finish):
4078 Use aligned reading and writing.
4080 * dumper.c (pdump_free): Make static.
4081 * dumper.c (pdump_hFile): Likewise.
4082 * dumper.c (pdump_hMap): Likewise.
4084 2001-01-26 Martin Buchholz <martin@xemacs.org>
4086 * XEmacs 21.2.43 "Terspichore" is released.
4088 2001-01-25 Martin Buchholz <martin@xemacs.org>
4090 Type fiddling for window_config.saved_windows_count
4091 * window.c (struct window_config):
4092 Make saved_windows_count member unsigned.
4093 * window.c (sizeof_window_config_for_n_windows):
4094 Make parameter unsigned.
4095 * window.c (mark_window_config):
4096 * window.c (window_config_equal):
4097 * window.c (free_window_configuration):
4098 * window.c (Fset_window_configuration):
4099 * window.c (count_windows):
4100 * window.c (Fcurrent_window_configuration):
4101 * window.c (reinit_vars_of_window):
4102 Update all callers and users.
4104 2001-01-25 Martin Buchholz <martin@xemacs.org>
4106 Alignment correctness for flexible arrays.
4107 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4108 Make alignment-correct. Add interesting comments.
4109 * alloc.c (size_vector):
4110 * alloc.c (make_vector_internal):
4111 * alloc.c (make_bit_vector_internal):
4112 * alloc.c (sweep_bit_vectors_1):
4113 * fns.c (size_bit_vector):
4114 Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4115 * window.c (sizeof_window_config_for_n_windows):
4116 Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4118 2001-01-24 Martin Buchholz <martin@xemacs.org>
4120 * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4122 2001-01-23 Andy Piper <andy@xemacs.org>
4124 * select.c (Fown_selection_internal): pass owned_p
4126 * select-msw.c (mswindows_own_selection): New Signature.
4128 * console.h (struct console_methods): add owned_p to
4131 * select-x.c (x_own_selection): pass owned_p
4132 (hack_motif_clipboard_selection): use owned_p
4133 (vars_of_select_x): new variable -
4134 x_selection_strict_motif_ownership.
4136 2001-01-23 Martin Buchholz <martin@xemacs.org>
4138 * specifier.h (specifier_data_offset): Remove pointless parens.
4139 * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4141 2001-01-24 Martin Buchholz <martin@xemacs.org>
4143 Make Lisp_Object sizeof methods be alignment-correct.
4144 pdump must restore objects to the same alignment as the C compiler
4145 assumes. It really matters on SGIs.
4146 * lstream.c (aligned_sizeof_lstream): New.
4147 (sizeof_lstream): Use aligned_sizeof_lstream.
4148 (Lstream_new): Likewise.
4149 * opaque.c (aligned_sizeof_opaque): New.
4150 (sizeof_opaque): Use aligned_sizeof_opaque.
4151 (make_opaque): Likewise.
4152 * specifier.c (aligned_sizeof_specifier): New.
4153 (sizeof_specifier): Use aligned_sizeof_specifier.
4154 (make_specifier_internal): Likewise.
4156 2001-01-23 Martin Buchholz <martin@xemacs.org>
4158 * lstream.h (struct lstream): Use max_align_t for trailing data.
4159 * specifier.h (struct Lisp_Specifier): Likewise.
4161 2001-01-22 Martin Buchholz <martin@xemacs.org>
4163 * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4164 (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4165 (CCL_SUSPEND): Likewise.
4166 (CCL_INVALID_CMD): Likewise.
4167 (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4168 (ccl_driver): Likewise.
4169 (CCL_WRITE_CHAR): Macro hygiene.
4170 (CCL_WRITE_STRING): Macro hygiene.
4172 2001-01-22 Martin Buchholz <martin@xemacs.org>
4174 Port "portable" dumper to SunOS 4 and HP-UX.
4175 * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4176 * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4177 * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4179 2001-01-22 Martin Buchholz <martin@xemacs.org>
4181 * lisp.h (ALIGNOF): A better definition for C++.
4183 2001-01-20 Martin Buchholz <martin@xemacs.org>
4186 Fix printf warnings: int format, long int arg.
4187 * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4188 (PUSH_FAILURE_POINT): Use correct printf formats.
4189 (POP_FAILURE_POINT): Use correct printf formats.
4190 Use do {...} while (0)
4192 2001-01-20 Martin Buchholz <martin@xemacs.org>
4194 * XEmacs 21.2.42 "Poseidon" is released.
4196 2001-01-20 Martin Buchholz <martin@xemacs.org>
4198 * console-x.h: typo fix du jour. Remove #if 0'ed code.
4200 2001-01-19 Martin Buchholz <martin@xemacs.org>
4202 De-kludgify FIXED_TYPE free list frobbing.
4203 Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4204 * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4205 * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4206 * alloc.c (Lisp_Free): New pseudo lisp object definition.
4207 * alloc.c (LRECORD_FREE_P): New.
4208 * alloc.c (MARK_LRECORD_AS_FREE): New.
4209 * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4210 * alloc.c (STRUCT_FREE_P): Deleted.
4211 * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4212 * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4213 * alloc.c (STRING_CHARS_FREE_P): New.
4214 * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4215 * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4216 * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4217 * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4218 * alloc.c (resize_string): Use new definitions.
4219 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4220 * alloc.c (verify_string_chars_integrity): Use new definitions.
4221 * alloc.c (compact_string_chars): Use new definitions.
4222 * alloc.c: Update monster comments.
4223 * lrecord.h (lrecord_type): Add some new lrecord types for
4226 2001-01-18 Martin Buchholz <martin@xemacs.org>
4228 Improve alignment hackery.
4229 * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4230 (max_align_t): Moved from opaque.h - general purpose.
4231 (ALIGN_PTR): Use size_t, not long.
4232 * opaque.h (max_align_t): Move to lisp.h.
4234 2001-01-18 Norbert Koch <nk@LF.net>
4236 * gui.h: Fix and add prototypes to fix build problems.
4238 2001-01-18 Martin Buchholz <martin@xemacs.org>
4240 temacs is going away, so `dump-temacs' is now a bad name.
4241 * .dbxrc (dump-temacs): Rename to `dmp'.
4242 * .gdbinit (dump-temacs): Rename to `dmp'.
4244 2001-01-17 Andy Piper <andy@xemacs.org>
4246 * glyphs.c (print_image_instance): comment to make martin happy.
4248 * glyphs-x.c (x_redisplay_widget): update faces after a frame
4251 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4253 (mswindows_tab_control_redisplay): warning suppression.
4255 * glyphs-widget.c (widget_update): re-write to cope with updated
4257 (widget_instantiate): use new gui_item functions.
4258 (tab_control_update): deleted.
4259 (progress_gauge_update): deleted.
4260 (image_instantiator_progress_guage): take out update reference.
4261 (image_instantiator_tree_view): ditto.
4262 (image_instantiator_tab_control): ditto.
4264 * gui.c (widget_gui_parse_item_keywords): new function. Do things
4266 (gui_item_add_keyval_pair): re-write to cope with descriptors and
4267 return whether anything was changed.
4268 (update_gui_item_keywords): as it sounds.
4270 * gui.h: declare widget_gui_parse_item_keywords.
4272 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4273 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4275 2001-01-17 Martin Buchholz <martin@xemacs.org>
4277 * XEmacs 21.2.41 "Polyhymnia" is released.
4279 2001-01-16 Didier Verna <didier@xemacs.org>
4281 * glyphs.c (image_instantiate): don't use fallbacks when
4282 instantiating a face's background pixmap by inheritance.
4284 2001-01-14 Mike Sperber <mike@xemacs.org>
4286 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4287 Conditionalize accordingly.
4289 2001-01-16 Martin Buchholz <martin@xemacs.org>
4291 * dumper.c (pdump_file_get): Fix a compiler warning.
4293 2001-01-15 Martin Buchholz <martin@xemacs.org>
4295 Make Purify happy when pdumping.
4296 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4297 iniitalizing all bits of new lisp object memory.
4298 * symbols.c (Fmake_local_variable): Likewise.
4299 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4300 * symbols.c (Fdefvaralias): Likewise.
4301 * mule-charset.c (vars_of_mule_charset): Likewise.
4303 2001-01-15 Martin Buchholz <martin@xemacs.org>
4304 Add the `-nd' flag when running pre-dump operations under the debugger.
4305 * .dbxrc (run-temacs): Add `-nd'.
4306 * .dbxrc (update-elc): Likewise.
4307 * .dbxrc (dump-temacs): Likewise.
4308 * .gdbinit (run-temacs): Likewise.
4309 * .gdbinit (check-temacs): Likewise.
4310 * .gdbinit (update-elc): Likewise.
4311 * .gdbinit (dump-temacs): Likewise.
4313 2001-01-14 Martin Buchholz <martin@xemacs.org>
4315 Allow building 64-bit executables on AIX with GNU malloc, e.g.
4316 export OBJECT_MODE=64
4317 configure --pdump --use-union-type=no
4318 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4319 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4321 * miscplay.c (sndcnv8U_2mono):
4322 Avoid two uses of `++' in the same expression.
4323 Suppresses a GCC warning.
4325 2001-01-13 Martin Buchholz <martin@xemacs.org>
4327 Make sure future compilers don't miscompile alloc.c.
4329 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4330 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4332 2001-01-12 Martin Buchholz <martin@xemacs.org>
4334 * dumper.c: A little post-pdump-rename comment fixup.
4336 2001-01-09 Jerry James <james@eecs.ku.edu>
4338 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4340 2001-01-13 Martin Buchholz <martin@xemacs.org>
4342 * *.[ch]: Globally rename symbols using the following `pdump-rename'
4346 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4349 replace_symbol pdump_wire_lists pdump_weak_object_chains
4350 replace_symbol pdump_wire_list dump_add_weak_object_chain
4352 replace_symbol pdump_wires pdump_root_objects
4353 replace_symbol pdump_wire dump_add_root_object
4355 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4356 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4358 replace_symbol dumpstructinfos pdump_root_struct_ptrs
4359 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4360 replace_symbol dumpstructinfo pdump_root_struct_ptr
4361 replace_symbol dumpstruct dump_add_root_struct_ptr
4363 replace_symbol dumpopaque dump_add_opaque
4364 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4365 replace_symbol dumpopaqueinfos pdump_opaques
4366 replace_symbol dumpopaqueinfo pdump_opaque
4368 replace_symbol nb_structdump nb_root_struct_ptrs
4369 replace_symbol nb_opaquedump nb_opaques
4371 replace_symbol align_table pdump_align_table
4372 replace_symbol dump_header pdump_header
4374 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4375 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4378 2001-01-12 Martin Buchholz <martin@xemacs.org>
4380 * s/aix4.h: Keep the C for AIX compiler from overaggressively
4381 optimizing bytecount_to_charcount().
4383 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4386 (HAVE_DLFCN_H): Removed.
4387 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4389 2001-01-06 Martin Buchholz <martin@xemacs.org>
4391 Portable dumper maintainability improvements.
4392 * alloc.c (staticpro):
4393 * alloc.c (staticpro_nodump):
4394 * alloc.c (garbage_collect_1):
4395 * alloc.c (reinit_alloc_once_early):
4396 * alloc.c (init_alloc_once_early):
4397 * alloc.c: Move dumper functions to alloc.c.
4398 * dumper.c (pdump_backtrace):
4399 * dumper.c (pdump_dump_structs):
4400 * dumper.c (pdump_dump_opaques):
4401 * dumper.c (pdump_dump_rtables):
4402 * dumper.c (pdump_dump_wired):
4404 * dumper.c (pdump_load_check):
4405 * dumper.c (pdump_load_finish):
4406 * dumper.c (pdump_file_unmap):
4407 * dumper.c (pdump_file_get):
4408 * dumper.c (pdump_resource_free):
4409 * dumper.c (pdump_resource_get):
4410 * dumper.c (pdump_file_free):
4411 * dumper.c (pdump_file_try):
4412 * dumper.c (pdump_load):
4413 Remove fixed size limits on staticpro(), staticpro_nodump(),
4414 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4415 Remove custom code for dumping lrecord_implementations_table - use
4417 Remove (most of the) custom code for dumping staticpros - dump it
4418 like any other dynarr.
4420 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
4421 * dumper.c: Moved functions from alloc.c.
4422 * alloc.c (dumpstruct): Moved to dumper.c.
4423 * alloc.c (dumpopaque): Likewise.
4424 * alloc.c (pdump_wire): Likewise.
4425 * alloc.c (pdump_wire_list): Likewise.
4427 * lisp.h (Dynarr_sizeof): New.
4428 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
4429 * lisp.h (Dynarr_end): New. Very slightly C++oid.
4430 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
4432 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4433 * lisp.h (dumpopaque): ditto.
4434 * lisp.h (pdump_wire): ditto.
4435 * lisp.h (pdump_wire_list): ditto.
4437 2001-01-09 Martin Buchholz <martin@xemacs.org>
4439 * make-src-depend (PrintPatternDeps):
4440 Use `sort' to make output independent of perl version.
4442 2001-01-08 Martin Buchholz <martin@xemacs.org>
4445 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4446 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4448 2001-01-03 Didier Verna <didier@xemacs.org>
4450 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4451 that `focus_frame' is alive before thinking of calling
4452 `redisplay_redraw_cursor' on it.
4454 2001-01-08 Martin Buchholz <martin@xemacs.org>
4456 * XEmacs 21.2.40 is released.
4458 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4460 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4462 2001-01-06 Martin Buchholz <martin@xemacs.org>
4464 * alloc.c (dbg_valmask): Make const.
4465 * alloc.c (dbg_typemask): Make const.
4466 * alloc.c (dbg_USE_UNION_TYPE): Make const.
4467 * alloc.c (dbg_valbits): Make const.
4468 * alloc.c (dbg_gctypebits): Make const.
4470 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
4472 * redisplay-x.c (x_bevel_area):
4473 redisplay.h (struct rune):
4474 Typo fixes in comments.
4476 2001-01-05 Andy Piper <andy@xemacs.org>
4478 * glyphs-x.c (x_redisplay_widget): use size changed for offset
4481 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4483 2001-01-05 Martin Buchholz <martin@xemacs.org>
4485 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4487 * mule-ccl.c (stack_idx_of_map_multiple):
4488 Non const global data must not be initialized!
4489 Found by MIYASHITA Hisashi.
4491 2001-01-02 Andy Piper <andy@xemacs.org>
4493 * frame.c (change_frame_size): make sure frame size is always
4496 * glyphs.c (image_instance_layout): minor code reuse.
4498 * window.c (Fcurrent_window_configuration): revert previous
4501 2001-01-02 Martin Buchholz <martin@xemacs.org>
4504 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4506 2000-12-31 Andy Piper <andy@xemacs.org>
4508 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4509 when widget gets unmapped.
4511 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4512 function. Make sure widgets losing focus don't just drop it.
4513 (handle_focus_event_1): record the widget with focus.
4515 2000-12-31 Andy Piper <andy@xemacs.org>
4517 * window.c (allocate_window): use
4518 make_image_instance_cache_hash_table.
4519 (make_dummy_parent): ditto.
4520 (Fset_window_configuration): ditto.
4522 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
4524 * glyphs.c (process_image_string_instantiator): use
4526 (get_image_instantiator_governing_domain): ditto.
4527 (normalize_image_instantiator): ditto.
4528 (instantiate_image_instantiator): ditto.
4529 (make_image_instance_1): ditto.
4530 (image_instantiate): ditto. Key on glyph *and* instantiator type.
4531 (instantiator_eq_equal): new function for use with instance hash
4533 (instantiator_eq_hash): ditto.
4534 (make_image_instance_cache_hash_table): create a suitable hash
4535 table for storing image instances.
4537 * elhash.h (hash_table_weakness): new internal weakness type
4538 HASH_TABLE_KEY_CAR_VALUE_WEAK.
4539 declare new functions.
4541 * elhash.c (finish_marking_weak_hash_tables): introduce yet
4542 another weakness type for glyphs.
4543 (make_standard_lisp_hash_table): new function split out from
4544 make_general_lisp_hash_table.
4545 (make_lisp_hash_table): call make_standard_lisp_hash_table.
4546 (hash_table_instantiate): ditto.
4547 (Fmake_hash_table): ditto.
4549 2000-12-31 Martin Buchholz <martin@xemacs.org>
4551 * XEmacs 21.2.39 is released.
4553 2000-12-29 Andy Piper <andy@xemacs.org>
4555 * menubar.c (menubar_visible_p_changed): signal the frame changed.
4557 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4558 the frame has changed so that we pick up geometry changes such as
4561 2000-12-28 Andy Piper <andy@xemacs.org>
4563 * lastfile.c (my_ebss): make a char array so we can pad the
4564 bss. Fixes cygwin unexec.
4566 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4568 2000-12-26 Andy Piper <andy@xemacs.org>
4570 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4571 comments and try and be more precise about a non-/SIGIO world.
4572 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4575 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4576 we don't normalize to zero width or height.
4578 2000-12-24 Andy Piper <andy@xemacs.org>
4580 * Makefile.in.in (ldflags): add -mwindows when appropriate.
4582 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
4584 * s/sco5.h: SCO 5 has pty support.
4586 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
4588 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4589 input-method-xlib.c contains whole contents of input-method-xfs.c,
4590 so we can use input-method-xlib.c's code for USE_XFONTSET
4592 * input-method-xfs.c: removed.
4594 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
4596 * file-coding.h (enum coding_category_type): reorder enumerators to
4597 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
4598 (now one greater than largest real coding_category_type enumerator).
4599 * file-coding.c (coding_category_symbol, coding_category_by_priority,
4600 coding_category_system, fcd_descriptihon_1, decode_coding_category,
4601 Fcoding_category_list, Fset_coding_priority_list,
4602 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4603 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4605 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4607 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4608 * redisplay-output.c (redisplay_output_window): Clear top of window
4609 when face is changed.
4610 * redisplay-x.c (x_redraw_exposed_window): Call
4611 redisplay_clear_top_of_window.
4612 * redisplay.h: Publish redisplay_clear_top_of_window.
4614 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4616 * buffer.c (Fkill_buffer): Map over all devices.
4617 * window.c (window_loop): Remove UNSHOW_BUFFER code.
4618 (list_windows): New function.
4619 (list_all_windows): Ditto.
4620 (Freplace_buffer_in_windows): Use them.
4622 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4624 * database.c (berkdb_subtype): Recognize new subtype `queue'.
4625 (Fopen_database): Use `db_create' instead of `db_open'.
4626 (syms_of_database): Initialize Qqueue.
4628 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
4630 * buffer.c (common_init_complex_vars_of_buffer): Initialize
4631 buffer_local_face_property.
4632 * buffer.h (struct buffer): New member buffer_local_face_property.
4633 * window.c (Fset_window_buffer): Mark window's face as changed
4634 when buffer has buffer local face.
4635 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4636 * objects.c (color_after_change): Set buffer_local_face_property
4637 when locale of face specifier is buffer.
4638 * objects.c (font_after_change): Ditto.
4639 * objects.c (face_boolean_after_change): Ditto.
4640 * glyphs.c (image_after_change): Ditto.
4642 2000-12-09 Dan Holmsand <dan@eyebee.com>
4644 * nt.c (mswindows_fstat): Report file permissions, volume serial
4645 number, etc. Code adapted from FSF Emacs 20.7.
4647 2000-12-09 Dan Holmsand <dan@eyebee.com>
4649 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4650 of stat when we don't have symbolic links, to make sure
4651 mswindows_stat is called on mswindows.
4653 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
4655 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4657 2000-12-12 Martin Buchholz <martin@xemacs.org>
4659 * doprnt.c (emacs_doprnt_1): More printing fixes.
4660 Make printing of numbers compatible with libc and FSF Emacs.
4661 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4662 Use the system printf to do most of the hard work of formatting,
4663 instead of doprnt_1().
4664 Calculate memory to allocate for format string.
4665 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4666 (doprnt_1): Cleaner code and documentation.
4668 2000-12-01 Jerry James <james@eecs.ukans.edu>
4670 * Makefile.in.in: Use the loop variable to install headers.
4672 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4674 * window.c (Fsplit_window): Don't invalidate face cache.
4676 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4678 * minibuf.c (Fall_completions): Undo the previous change
4679 which removed checking elements start with space.
4681 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
4683 * mule-canna.c: Didier suppression.
4685 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
4687 * mule-canna.c: rename static unsigned char buf[] to key_buffer
4688 (warning suppression). Add English comment translations.
4690 2000-12-05 Martin Buchholz <martin@xemacs.org>
4692 * unexelfsgi.c (unexec): Better test for mmap failure.
4694 2000-12-05 Martin Buchholz <martin@xemacs.org>
4696 * XEmacs 21.2.38 is released.
4698 2000-12-05 Martin Buchholz <martin@xemacs.org>
4700 * redisplay.c (bar-cursor): Make a user variable.
4702 * symsinit.h: Add init_postgresql_from_environment.
4704 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4706 * regex.c: Convert to clean C.
4708 2000-12-05 Dan Holmsand <dan@eyebee.com>
4711 Don't #include sysfile.h. Revert to duplicating PATH_MAX
4713 (sys_readlink): renamed to system_readlink to avoid conflict with
4714 the other sys_readlink.
4716 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
4718 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4720 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
4722 * postgresql.c (init_postgresql_from_environment): new function.
4723 (vars_of_postgresql): Move code initializing Lisp variables out and
4724 into init_postgresql_from_environment.
4725 emacs.c (main_1): Call init_postgresql_from_environment if and only
4726 if running a dumped XEmacs.
4728 2000-08-31 Dan Holmsand <dan@eyebee.com>
4730 * buffer.c: Make find-file-compare-truenames default to true on
4733 * realpath.c (win32_abs_start):
4735 (win32_readlink): New functions.
4736 (xrealpath): Return really real filenames on windows.
4738 * fileio.c (Ffile_truename): Make file-truename work on windows.
4740 2000-11-29 Didier Verna <didier@xemacs.org>
4742 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4743 * faces.c (update_face_cachel_data): use it.
4744 * faces.c (add_face_cachel): use it. Complete background pixmap
4745 frobbing in face cache if `update_face_cachel_data' has not done so.
4747 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
4749 * search.c (string_match_1): Don't set last_thing_searched
4752 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
4754 * buffer.c: Include casetab.h
4755 (common_init_complex_vars_of_buffer): Use new case-table object.
4756 * buffer.h: Include casetab.h
4757 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4758 (DOWNCASE_TABLE_OF): Ditto.
4759 * bufslots.h: Remove char-tables and add case-table.
4760 * casetab.c: Include casetab.h
4761 (CASE_TABLE_P): Removed.
4762 (mark_case_table): New function.
4763 (allocate_case_table): New function.
4764 (Fcase_table_p): Use new case-table.
4765 (case_table_char): New function.
4766 (Fget_case_table): Ditto.
4767 (Fput_case_table): Ditto.
4768 (Fput_case_table_pair): Ditto.
4769 (Fcopy_case_table): Ditto.
4770 (Fcurrent_case_table): Return case-table.
4771 (Fstandard_case_table): Return case-table.
4772 (Fset_case_table): Fix doc-string.
4773 (set_case_table): Use case-table
4774 (syms_of_casetab): DEFSUBR new functions.
4775 (complex_vars_of_casetab): Set up standard case-table.
4776 * casetab.h: New file.
4777 * editfns.c: Include casetab.h
4778 (Fcompare_buffer_substrings): Use case-table.
4779 * inline.c: Include casetab.h
4780 * lisp.h: Remove bogus extern.
4781 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
4782 * search.c: Include casetab.h
4783 (TRANSLATE_ASCII): Removed.
4784 (TRANSLATE): Unconditionally translate character.
4785 (looking_at_1): Use case-table.
4786 (string_match_1): Ditto.
4787 (fast_string_match): Ditto.
4788 (search_command): Ditto.
4789 (search_buffer): Separate boyer_moore. Check whether
4790 boyer_moore is possible.
4791 (simple_search): New function.
4792 (boyer_moore): Separated from search_buffer. Translate char.
4794 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
4796 * regex.c (RE_TR_ASCII): Removed.
4797 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
4798 (PATFETCH): Call PATFETCH_RAW.
4799 (PATFETCH_RAW): Fetch Emchar.
4800 (PATUNFETCH): Decrement charptr.
4801 (GET_BUFFER_SPACE): Rename b to buf_end.
4803 (BUF_PUSH_2): Ditto.
4804 (BUF_PUSH_3): Ditto.
4805 (EXTEND_BUFFER): Ditto.
4806 (SET_LIST_BIT): Ditto.
4807 (regex_compile): Ditto. Translate non ASCII char.
4808 (compile_range): Ditto.
4809 (re_search_2): Ditto.
4810 (re_match_2_internal): Compare Emchar.
4811 (bcmp_translate): Ditto.
4813 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
4815 * lisp.h (basic char/int typedefs): comment improvement.
4817 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
4819 * emacs.c (main_1): unconditional pdump unstomping; don't save and
4820 unstomp inhibit_site_lisp. Improve comments.
4822 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
4824 * mule-charset.c (Fcharset_property): improve type checking, comments.
4826 2000-11-28 Andy Piper <andy@xemacs.org>
4828 * redisplay-output.c (redisplay_output_subwindow): make sure we do
4829 clipped display for windows in the gutter also.
4830 (redisplay_display_boxes_in_window_p): change semantics of return
4831 codes to be more intuitive.
4833 * gutter.h: declare display_boxes_in_gutter_p.
4835 * gutter.c (display_boxes_in_gutter_p): new function for
4838 2000-11-22 Andy Piper <andy@xemacs.org>
4840 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
4843 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
4845 * callproc.c (Fold_call_process_internal):
4846 * gpm.c (Freceive_gpm_event):
4847 (tty_get_foreign_selection): Might be just warning supression.
4848 * fileio.c (Fwrite_region_internal):
4849 (Fset_visited_file_modtime):
4850 * keymap.c (event_matches_key_specifier_p):
4851 Initialize GCPROed variable.
4853 * menubar-x.c (command_builder_find_menu_accelerator):
4854 Initialize before use.
4856 2000-11-23 Andy Piper <andy@xemacs.org>
4858 * unexcw.c (unexec): make the resulting executable executable.
4860 2000-11-21 Martin Buchholz <martin@xemacs.org>
4862 * doc.c (get_doc_string):
4863 Use size_t, not int, for result of XSTRING_LENGTH.
4865 * cmds.c (Fdelete_char):
4866 * cmds.c (Fpoint_at_eol):
4867 * cmds.c (Fself_insert_command):
4868 Use EMACS_INT, not int, for result of XINT.
4869 Someday, someone will want to insert more than 2**31 identical characters.
4871 * cmds.c (Fdelete_char):
4872 * cmds.c (Fdelete_backward_char):
4873 * syntax.c (Fforward_word):
4874 * syntax.c (Fforward_comment):
4875 Make COUNT argument optional, for consistency with forward-char et al.
4877 2000-11-22 Martin Buchholz <martin@xemacs.org>
4880 * print.c (long_to_string):
4881 Return a useful value: the pointer at end of data written.
4884 Use `static const char * const' for constant strings.
4885 (union printf_arg): Delete `i', `ui' members.
4888 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
4889 Do all printf-ing via the `l' specifier.
4890 Use EMACS_INT instead of int.
4893 2000-11-20 Didier Verna <didier@xemacs.org>
4895 * faces.c (update_face_cachel_data): don't frob the background
4896 pixmap when the window is being created. The face is needed but
4899 2000-11-20 Andy Piper <andy@xemacs.org>
4901 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
4902 messing with a debug environment.
4904 2000-11-20 Martin Buchholz <martin@xemacs.org>
4906 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
4908 2000-11-20 Martin Buchholz <martin@xemacs.org>
4910 * casetab.c (Fcase_table_p): Fix compile error and crash.
4912 2000-11-18 Philip Aston <philipa@mail.com>
4914 * s/cygwin32.h: Cygwin has SVR4-like pty support.
4916 2000-11-18 Martin Buchholz <martin@xemacs.org>
4918 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
4919 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
4921 2000-11-17 Martin Buchholz <martin@xemacs.org>
4923 * config.h.in: Define HAVE_ELF_H if elf.h exists.
4924 * unexelf.c: Use HAVE_ELF_H.
4925 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
4926 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
4927 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
4928 Greg Harrington <greg_harrington@hotmail.com> provided a machine
4930 So this is an unexelfsgi.c from a different line of development.
4932 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
4934 * regex.c (RE_TR_ASCII): New function.
4935 (RE_TRANSLATE): Call it.
4937 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
4939 * buffer.h (TRT_TABLE_OF): Remove assert.
4940 (IN_TRT_TABLE_DOMAIN): Removed.
4942 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
4944 * free-hook.c (log_gcpro):
4945 (show_gcprohist): Add support for GCPRO5.
4947 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
4949 * emacs.c (main_1): Improve -sd error message when --pdump=no.
4951 2000-11-16 Olivier Galibert <galibert@xemacs.org>
4953 * symeval.h: Declare flush_all_buffer_local_cache.
4955 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
4956 (flush_buffer_local_cache): Added.
4957 (flush_all_buffer_local_cache): Added.
4959 * lrecord.h: Remove unused XD_LO_RESET_NIL.
4961 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
4962 (pdump_dump_data): Ditto.
4963 (pdump_reloc_one): Ditto.
4964 (pdump): Remove unused pdump_qnil. Flush buffer local caches
4968 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
4970 * buffer.c: Remove if 0'ed entry.
4971 * buffer.h: Rewrite TRT to use char-table.
4972 * bufslots.h: Remove mirror tables.
4973 * casetab.c: Remove mirror tables.
4974 (CASE_TABLE_P): New macro.
4975 (Fcase_table_p): Element of a case table is string or char-table.
4976 (make_mirror_trt_table): Removed.
4977 (set_case_table): Setup char-table from strings for backward
4979 * dired.c (Fdirectory_files):
4980 * dired-msw.c: (mswindows_get_files):
4981 * lisp.h: Change prototype of re_pattern_buffer.
4982 * regex.c: (RE_TRANSLATE): New macro.
4983 (TRANSLATE_P): Ditto.
4984 Change translate to type RE_TRANSLATE_TYPE.
4985 * regex.h: Define RE_TRANSLATE_TYPE
4986 * search.c (TRANSLATE): New macro.
4987 (TRANSLATE_ASCII): New macro.
4988 Translate table is changed to Lisp_Object.
4989 (signal_failure): Inhibit return.
4991 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
4998 Do UNGCPRO before return.
5000 2000-11-14 Martin Buchholz <martin@xemacs.org>
5002 * XEmacs 21.2.37 is released.
5004 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
5006 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5007 Add comments about discarded return value.
5009 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
5012 * event-stream.c: Fix comments. Remove some #if 0'ed part.
5014 2000-10-27 Andy Piper <andy@xemacs.org>
5016 * gutter.c (Fset_default_gutter_position): default left and right
5018 (calculate_gutter_size): calculate resonable heuristic for left
5019 and right gutter sizes.
5020 (specifier_vars_of_gutter): change left and right gutter sizes to
5022 (calculate_gutter_size_from_display_lines): new function.
5023 (output_gutter): check for resizing on left and right gutters.
5024 (clear_gutter): don't special case top and left gutters.
5025 (specifier_vars_of_gutter): use new signature for
5026 set_specifier_caching.
5028 * glyphs-x.c (x_redisplay_widget): spelling fix.
5029 * glyphs.c (specifier_vars_of_glyphs):
5030 * menubar.c (specifier_vars_of_menubar):
5031 * redisplay.c (specifier_vars_of_redisplay):
5032 * toolbar.c (specifier_vars_of_toolbar):
5033 * window.c (specifier_vars_of_window):
5034 * scrollbar.c (specifier_vars_of_scrollbar):
5035 (complex_vars_of_scrollbar): use new signature for
5036 set_specifier_caching.
5038 * specifier.c (set_specifier_caching): include recompute flag.
5039 (recompute_one_cached_specifier_in_window): always recompute if
5041 (recompute_one_cached_specifier_in_frame): ditto.
5043 * specifier.h (struct specifier_caching): add recompute flag.
5045 2000-10-24 Andy Piper <andy@xemacs.org>
5047 * unexcw.c (copy_executable_and_dump_data_section): add new
5048 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5051 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5053 * console-x.h (x_device): New member modifier_release_time.
5054 * event-Xt.c (x_handle_sticky_modifiers):
5055 Bound interval modifier keys are sticky.
5056 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5057 * events.h: extern it.
5059 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5061 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5063 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5065 * event-stream.c (execute_command_event): Preserve current_events
5066 and the like when event is misc-user-event.
5067 Inhibit quit during the call to maybe_echo_keys.
5069 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
5071 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5072 symlink when buffer is killed.
5073 (inhibit_clash_detection): New variable.
5075 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5077 * console.c (Fset_input_method): Trigger redisplay on tty.
5079 2000-11-07 Martin Buchholz <martin@xemacs.org>
5081 * process.c (Fprocess_status): Revert to previous behavior:
5082 (process-status "nosuchprocess") ==> nil
5084 2000-11-06 Martin Buchholz <martin@xemacs.org>
5086 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5087 Work around another GCC 2.95.2 optimizer bug.
5089 2000-11-02 Martin Buchholz <martin@xemacs.org>
5091 * process.c (Fget_process): Use LIST_LOOP_2.
5092 (kill_buffer_processes): Use LIST_LOOP_2.
5094 * minibuf.c (Fall_completions):
5095 Delete old non-functional code for FSF fourth argument.
5097 * frame.c (frame_matches_frame_spec):
5098 Renamed from `frame_matches_frametype'. Update all callers.
5099 (device_matches_device_spec):
5100 Renamed from 'device_matches_console_spec'. Update all callers.
5102 * doc.c (Fsubstitute_command_keys):
5103 Remove buffer overflow crash. Small code cleanups.
5105 * casetab.c (check_case_table): Simpler code.
5107 * window.c (Freplace_buffer_in_windows):
5108 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5109 (and similar implementation) as Fdelete_windows_on.
5112 * alloc.c (Fmake_list):
5113 * alloc.c (make_vector):
5114 * alloc.c (Fmake_vector):
5115 * alloc.c (make_bit_vector):
5116 * alloc.c (Fmake_bit_vector):
5117 * alloc.c (Fbit_vector):
5118 * alloc.c (Fmake_string):
5119 * alloc.c (Fpurecopy):
5120 * alloc.c (Fmemory_limit):
5122 * buffer.c (Fget_buffer):
5123 * buffer.c (Fkill_buffer):
5124 * buffer.c (complex_vars_of_buffer):
5125 * bytecode.c (Fcompiled_function_stack_depth):
5126 * callint.c (Fprefix_numeric_value):
5128 * event-stream.c (Fread_key_sequence):
5130 * casetab.c (Fcase_table_p):
5131 * casetab.c (check_case_table):
5132 * casetab.c (Fset_case_table):
5133 * casetab.c (Fset_standard_case_table):
5135 * chartab.c (Fchar_table_type):
5136 * chartab.c (Freset_char_table):
5137 * chartab.c (Fget_char_table):
5138 * chartab.c (Fget_range_char_table):
5139 * chartab.c (Fput_char_table):
5140 * chartab.c (Fmap_char_table):
5141 * chartab.c (Fcategory_table_p):
5142 * chartab.c (Fcheck_category_at):
5143 * chartab.c (Fchar_in_category_p):
5144 * chartab.c (Fcategory_table):
5145 * chartab.c (Fcopy_category_table):
5146 * chartab.c (Fset_category_table):
5147 * chartab.c (Fcategory_designator_p):
5148 * chartab.c (Fcategory_table_value_p):
5149 * cmds.c (Fdelete_char):
5150 * cmds.c (Fdelete_backward_char):
5151 * cmds.c (Fself_insert_command):
5152 * cmds.c (Fself_insert_internal):
5153 * console.c (Fvalid_console_type_p):
5154 * console.c (Fcdfw_console):
5155 * console.c (Fconsole_type):
5156 * console.c (Fconsole_name):
5157 * console.c (Fconsole_device_list):
5158 * console.c (Fconsole_on_window_system_p):
5162 * data.c (Fsubr_interactive):
5163 * data.c (Fchar_to_int):
5164 * data.c (Fint_to_char):
5167 * data.c (Fnumber_to_string):
5168 * data.c (Fstring_to_number):
5170 * database.c (mark_database):
5171 * database.c (finalize_database):
5172 * database.c (Fdatabase_live_p):
5173 * database.c (Fdatabasep):
5174 * device-x.c (Fx_get_resource):
5175 * device.c (Fdfw_device):
5177 * dired.c (Ffile_name_completion):
5178 * dired.c (Ffile_name_all_completions):
5179 * dired.c (Fuser_name_completion):
5180 * dired.c (Fuser_name_completion_1):
5181 * dired.c (Fuser_name_all_completions):
5182 * doc.c (Fdocumentation):
5183 * doc.c (Fdocumentation_property):
5184 * doc.c (Fsubstitute_command_keys):
5186 * editfns.c (Fchar_to_string):
5187 * editfns.c (Fstring_to_char):
5188 * editfns.c (Ftemp_directory):
5189 * editfns.c (Finsert_char):
5190 * editfns.c (Fbuffer_substring_no_properties):
5191 * editfns.c (Fnarrow_to_region):
5192 * editfns.c (Fchar_equal):
5193 * editfns.c (Fchar_Equal):
5194 * editfns.c (Ftranspose_regions):
5195 * emacs.c (Fdump_emacs):
5197 * eval.c (Fcommand_execute):
5198 * eval.c (Fautoload):
5199 * eval.c (Fbacktrace):
5200 * eval.c (Fbacktrace_frame):
5202 * events.c (Fcopy_event):
5203 * events.c (Fcharacter_to_event):
5204 * events.c (Fevent_button):
5205 * events.c (Fevent_process):
5207 * extents.c (Fnext_extent_change):
5208 * extents.c (Fextent_property):
5210 * faces.c (Fmake_face):
5212 * file-coding.c (Fencode_shift_jis_char):
5213 * file-coding.c (Fencode_big5_char):
5214 * fileio.c (Ffile_name_directory):
5215 * fileio.c (Ffile_name_nondirectory):
5216 * fileio.c (Ffile_name_as_directory):
5217 * fileio.c (Fdirectory_file_name):
5218 * fileio.c (Ffile_truename):
5219 * fileio.c (Fsubstitute_in_file_name):
5220 * fileio.c (Ffile_modes):
5221 * fileio.c (Fset_file_modes):
5222 * fileio.c (Fset_default_file_modes):
5223 * fileio.c (Fverify_visited_file_modtime):
5224 * floatfns.c (Facos):
5225 * floatfns.c (Fasin):
5226 * floatfns.c (Fatan):
5227 * floatfns.c (Fcos):
5228 * floatfns.c (Fsin):
5229 * floatfns.c (Ftan):
5230 * floatfns.c (Fbessel_j0):
5231 * floatfns.c (Fbessel_j1):
5232 * floatfns.c (Fbessel_jn):
5233 * floatfns.c (Fbessel_y0):
5234 * floatfns.c (Fbessel_y1):
5235 * floatfns.c (Fbessel_yn):
5236 * floatfns.c (Ferf):
5237 * floatfns.c (Ferfc):
5238 * floatfns.c (Flog_gamma):
5239 * floatfns.c (Fexp):
5240 * floatfns.c (Fexpt):
5241 * floatfns.c (Flog):
5242 * floatfns.c (Flog10):
5243 * floatfns.c (Fsqrt):
5244 * floatfns.c (Fcube_root):
5245 * floatfns.c (Facosh):
5246 * floatfns.c (Fasinh):
5247 * floatfns.c (Fatanh):
5248 * floatfns.c (Fcosh):
5249 * floatfns.c (Fsinh):
5250 * floatfns.c (Ftanh):
5251 * floatfns.c (Fabs):
5252 * floatfns.c (Ffloat):
5253 * floatfns.c (Flogb):
5254 * floatfns.c (Fceiling):
5255 * floatfns.c (Ffloor):
5256 * floatfns.c (Fround):
5257 * floatfns.c (Ftruncate):
5258 * floatfns.c (Ffceiling):
5259 * floatfns.c (Fffloor):
5260 * floatfns.c (Ffround):
5261 * floatfns.c (Fftruncate):
5262 * fns.c (Fstring_equal):
5263 * fns.c (Fstring_lessp):
5268 * fns.c (Fsubstring):
5270 * fns.c (Fold_assoc):
5271 * fns.c (assoc_no_quit):
5273 * fns.c (Fold_assq):
5274 * fns.c (assq_no_quit):
5276 * fns.c (Fold_rassoc):
5278 * fns.c (Fold_rassq):
5279 * fns.c (rassq_no_quit):
5280 * fns.c (Fremassoc):
5281 * fns.c (remassoc_no_quit):
5283 * fns.c (remassq_no_quit):
5284 * fns.c (Fremrassoc):
5285 * fns.c (Fremrassq):
5286 * fns.c (remrassq_no_quit):
5288 * fns.c (Fplist_get):
5289 * fns.c (Fplist_put):
5290 * fns.c (Fplist_remprop):
5291 * fns.c (Fplist_member):
5292 * fns.c (Flax_plist_get):
5293 * fns.c (Flax_plist_put):
5294 * fns.c (Flax_plist_remprop):
5295 * fns.c (Flax_plist_member):
5297 * fns.c (Fold_equal):
5299 * fns.c (Fbase64_encode_region):
5300 * fns.c (Fbase64_encode_string):
5301 * fns.c (Fbase64_decode_region):
5303 * frame.c (frame_matches_frame_spec):
5304 * frame.c (device_matches_device_spec):
5305 * frame.c (next_frame):
5306 * frame.c (previous_frame):
5307 * frame.c (Fnext_frame):
5308 * frame.c (Fprevious_frame):
5309 * frame.c (Fframe_property):
5310 * frame.c (Fset_frame_height):
5311 * frame.c (Fset_frame_size):
5315 * glyphs.c (decode_error_behavior_flag):
5316 * glyphs.c (Fmake_image_instance):
5317 * indent.c (Findent_to):
5318 * intl.c (Fignore_defer_gettext):
5319 * keymap.c (Fkeymapp):
5320 * keymap.c (Flookup_key):
5322 * lread.c (Fload_internal):
5323 * lread.c (Feval_buffer):
5324 * lread.c (Feval_region):
5325 * macros.c (Fexecute_kbd_macro):
5326 * marker.c (set_marker_internal):
5327 * marker.c (Fset_marker):
5328 * marker.c (set_marker_restricted):
5329 * marker.c (Fcopy_marker):
5330 * marker.c (noseeum_copy_marker):
5332 * menubar.c (Fpopup_menu):
5334 * mule-charset.c (Fcharset_name):
5335 * mule-charset.c (Fchar_charset):
5336 * mule-charset.c (Fchar_octet):
5337 * mule-charset.c (Fsplit_char):
5338 * mule-wnnfns.c (Fwnn_open):
5339 * mule-wnnfns.c (Fwnn_dict_comment):
5340 * mule-wnnfns.c (Fwnn_quit_henkan):
5341 * mule-wnnfns.c (Fwnn_word_toroku):
5342 * mule-wnnfns.c (Fwnn_word_sakujo):
5343 * mule-wnnfns.c (Fwnn_word_use):
5344 * mule-wnnfns.c (Fwnn_hindo_set):
5346 * objects.c (Fmake_color_instance):
5347 * objects.c (Fmake_font_instance):
5348 * print.c (Fwrite_char):
5350 * process.c (mark_process):
5351 * process.c (print_process):
5352 * process.c (get_process_from_usid):
5353 * process.c (Fprocessp):
5354 * process.c (Fprocess_live_p):
5355 * process.c (Fget_process):
5356 * process.c (Fget_buffer_process):
5357 * process.c (get_process):
5358 * process.c (Fprocess_id):
5359 * process.c (Fprocess_name):
5360 * process.c (Fprocess_command):
5361 * process.c (init_process_io_handles):
5362 * process.c (start_process_unwind):
5363 * process.c (Fstart_process_internal):
5364 * process.c (Fopen_multicast_group_internal):
5365 * process.c (Fset_process_window_size):
5366 * process.c (read_process_output):
5367 * process.c (send_process):
5368 * process.c (Fprocess_tty_name):
5369 * process.c (Fset_process_buffer):
5370 * process.c (Fprocess_buffer):
5371 * process.c (Fprocess_mark):
5372 * process.c (set_process_filter):
5373 * process.c (Fset_process_filter):
5374 * process.c (Fprocess_filter):
5375 * process.c (Fprocess_send_region):
5376 * process.c (Fprocess_send_string):
5377 * process.c (exec_sentinel):
5378 * process.c (Fset_process_sentinel):
5379 * process.c (Fprocess_sentinel):
5380 * process.c (status_notify):
5381 * process.c (Fprocess_status):
5382 * process.c (Fprocess_exit_status):
5383 * process.c (process_send_signal):
5384 * process.c (Fprocess_send_eof):
5385 * process.c (deactivate_process):
5386 * process.c (remove_process):
5387 * process.c (Fdelete_process):
5388 * process.c (kill_buffer_processes):
5389 * process.c (Fprocess_kill_without_query):
5390 * process.c (Fprocess_kill_without_query_p):
5392 * rangetab.c (Fget_range_table):
5393 * rangetab.c (Fput_range_table):
5394 * rangetab.c (Fremove_range_table):
5395 * rangetab.c (Fclear_range_table):
5397 * search.c (Fskip_chars_forward):
5398 * search.c (Fskip_chars_backward):
5399 * search.c (Fskip_syntax_forward):
5400 * search.c (Fskip_syntax_backward):
5401 * search.c (search_command):
5402 * search.c (Freplace_match):
5403 * search.c (Fregexp_quote):
5404 * select.c (Fown_selection_internal):
5405 * select.c (Fselection_owner_p):
5406 * select.c (Fselection_exists_p):
5407 * select.c (Fget_selection_internal):
5410 * symbols.c (Fintern):
5411 * symbols.c (Fintern_soft):
5412 * symbols.c (Funintern):
5413 * symbols.c (Fapropos_internal):
5414 * symbols.c (Fset_default):
5416 * syntax.c (Fsyntax_table_p):
5417 * syntax.c (Fcopy_syntax_table):
5418 * syntax.c (Fset_syntax_table):
5419 * syntax.c (Fchar_syntax):
5420 * syntax.c (syntax_match):
5421 * syntax.c (Fmatching_paren):
5422 * syntax.c (Fforward_word):
5423 * syntax.c (scan_lists):
5424 * syntax.c (Fscan_lists):
5425 * syntax.c (Fscan_sexps):
5426 * syntax.c (Fparse_partial_sexp):
5427 * toolbar.c (Fcheck_toolbar_button_syntax):
5430 * window.c (Fwindowp):
5431 * window.c (Fwindow_live_p):
5432 * window.c (Fwindow_point):
5433 * window.c (Fdelete_window):
5434 * window.c (Fnext_window):
5435 * window.c (Fprevious_window):
5436 * window.c (Fother_window):
5437 * window.c (window_loop):
5438 * window.c (Fget_lru_window):
5439 * window.c (Fsplit_window):
5440 * window.c (Fenlarge_window):
5441 * window.c (Fenlarge_window_pixels):
5442 * window.c (Fshrink_window):
5443 * window.c (Fshrink_window_pixels):
5444 * window.c (change_window_height):
5445 * window.c (Fwindow_configuration_p):
5446 * window.c (Fcurrent_window_configuration):
5448 * casefiddle.c (casify_object):
5449 * casefiddle.c (Fupcase):
5450 * casefiddle.c (Fdowncase):
5451 * casefiddle.c (Fcapitalize):
5452 * casefiddle.c (Fupcase_initials):
5453 * casefiddle.c (casify_region_internal):
5454 * casefiddle.c (casify_region):
5455 * casefiddle.c (Fupcase_region):
5456 * casefiddle.c (Fdowncase_region):
5457 * casefiddle.c (Fcapitalize_region):
5458 * casefiddle.c (Fupcase_initials_region):
5459 * casefiddle.c (Fupcase_word):
5460 * casefiddle.c (Fdowncase_word):
5461 * casefiddle.c (Fcapitalize_word):
5462 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
5463 Replace 0 with '\0' when working with bytes.
5464 Replace initial "(" with "\(" in docstrings.
5466 2000-11-01 Martin Buchholz <martin@xemacs.org>
5468 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5470 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5472 2000-10-31 Martin Buchholz <martin@xemacs.org>
5474 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
5476 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5478 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5481 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5483 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5484 (inhibit_auto_save_session): New variable.
5485 (vars_of_fileio): Declare and initialize them.
5486 * fileio.c (Fdo_auto_save): Don't create session file if
5487 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5489 2000-10-31 Martin Buchholz <martin@xemacs.org>
5491 * sgiplay.c (play_internal): C++ compilability.
5492 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5493 * callproc.c (Fold_call_process_internal):
5494 Remove unused vars `env', `first'.
5495 * scrollbar.c (update_scrollbar_instance):
5496 #### unused var `current_window'.
5497 * redisplay-tty.c: Put currently unused vars insert_mode_on,
5498 etc. within #ifdef NOT_YET.
5499 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5500 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5501 * specifier.c (specifier_instance):
5502 #### unused var `tag'.
5503 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5505 2000-10-27 Martin Buchholz <martin@xemacs.org>
5508 * fns.c (list_sort):
5509 * fns.c (Ffillarray):
5510 * fns.c (bytecode_nconc2):
5513 * fns.c (Fmapconcat):
5514 Be pedantically 64-bit correct. For the time when someone will
5515 want to have a list with length > 2**32.
5517 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5518 Work around MIPSpro compiler bug.
5520 * process-unix.c (unix_kill_child_process): Add snarky comment.
5521 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
5523 * config.h.in: Oops, _getpt ==> _getpty
5525 2000-10-26 Martin Buchholz <martin@xemacs.org>
5529 Use void*, not char*, as return type of alloca().
5531 * alloc.c (free_marker): Side effect inside assert expression!
5533 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
5535 * mule-charset.c (Fset_charset_ccl_program): To check
5536 if the given ccl program is valid, use setup_ccl_program()
5537 instead of CHECK_VECTOR().
5538 (Fmake_charset): Likewise.
5540 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
5542 * faces.c (get_extent_fragment_face_cache_index):
5543 Fix cachel.merged_faces memory leak.
5545 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
5547 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5548 Reset MSB of octets obtained by DECODE_SJIS
5549 because of the incompatibility with Emacs.
5550 (ccl_driver)<CCL_ENCODE_SJIS>:
5551 Set MSB of octets before passing them to
5552 ENCODE_SJIS because of the incompatibility
5555 2000-10-18 Daiki Ueno <ueno@unixuser.org>
5557 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5558 (DECLARE_LRECORD): Undo the last change.
5559 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5561 2000-10-17 Daiki Ueno <ueno@unixuser.org>
5563 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5564 the implementation to lrecord_implementations_table.
5566 2000-10-14 Daiki Ueno <ueno@unixuser.org>
5568 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5569 initial value of `lrecord_type_##c_name' and
5570 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5571 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5572 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5573 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5574 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5576 2000-10-17 Martin Buchholz <martin@xemacs.org>
5578 * miscplay.c (sndcnv8S_2mono):
5579 (sndcnv2monounsigned):
5580 (sndcnvULaw_2linear):
5582 Remove implementation-defined behavior.
5584 2000-10-12 Martin Buchholz <martin@xemacs.org>
5586 * input-method-xlib.c: Warning suppression.
5588 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
5590 * mule-ccl.c: Sync up with Emacs 21.0.90.
5591 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5593 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5595 (ccl_driver[WriteMultibyteChar2]): Bug fix.
5596 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5597 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5598 leading char belongs to official 2-dimensional charset.
5599 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5600 write the given character as is. Otherwise,
5601 if it is a multibyte char, convert it by
5602 non_ascii_set_charptr_emchar, then write it.
5603 (CCL_WRITE_STRING): Likewise.
5604 (ccl_get_compiled_code): New function.
5605 (setup_ccl_program): When ccl_prog is invalid,
5607 (Fregister_code_conversion_map): New function.
5608 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5610 * mule-ccl.h: Sync up with Emacs 21.0.90.
5611 (Fregister_ccl_program): export it.
5613 * redisplay-msw.c (separate_textual_runs):
5614 If ccl program is not valid, don't do ccl conversion.
5616 * redisplay-x.c (separate_textual_runs): Ditto.
5618 * file-coding.c (Fmake_coding_system):
5619 When type is ccl and value is vector, register it
5620 with a proper symbol. And checks whether the
5621 given ccl program is valid.
5622 (mule_decode): When calling ccl_driver, if src indicates
5623 NULL pointer, set an empty string instead.
5624 (mule_encode): Likewise.
5626 2000-10-11 Martin Buchholz <martin@xemacs.org>
5628 The following large batch of changes gets us back to a state of
5629 C++ compilability. Extbyte is now a char, which means that
5630 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5632 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5634 * sound.c (Fplay_sound): Type correctness.
5636 * select-x.c (hack_motif_clipboard_selection): Type correctness.
5637 (x_get_window_property): Type correctness.
5638 (receive_incremental_selection): unsigned char ==> Extbyte
5639 (selection_data_to_lisp_data): unsigned char ==> Extbyte
5640 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5641 (Fx_store_cutbuffer_internal): Type correctness.
5643 * process-unix.c (try_to_initialize_subtty): Type correctness.
5645 * objects-x.c (x_print_color_instance): Type correctness.
5646 (x_print_font_instance): Type correctness.
5647 (x_list_fonts): SExtbyte ==> Extbyte.
5648 (valid_x_font_name_p): SExtbyte ==> Extbyte.
5649 (x_find_charset_font): SExtbyte ==> Extbyte.
5650 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
5651 (truename_via_XListFonts): SExtbyte ==> Extbyte.
5652 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5655 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5656 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5657 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5658 (BYTE_C0_P): Use bit ops for char-signedness safety.
5659 (BYTE_C1_P): Use bit ops for char-signedness safety.
5660 (CHARSET_BY_LEADING_BYTE):
5661 (CHARSET_BY_ATTRIBUTES):
5662 Always use inline function.
5663 Use type_checking_assert.
5666 * mule-charset.c (non_ascii_charptr_copy_char):
5667 Modify to work with both ASCII and non-ASCII characters.
5668 Improve docs and variable names.
5669 Replace over-clever fall-through switch with a simple loop.
5670 (Lstream_get_emchar_1):
5671 Replace over-clever fall-through switch with a simple loop.
5673 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5674 Warning suppression.
5676 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5677 the return value of Lstream_getc, which could be EOF as well.
5679 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5681 * lisp.h: Make Extbyte a char, not unsigned char, so that external
5682 APIs can be used on Extbytes without casts. Risky!
5686 * input-method-xlib.c (XIM_init_device):
5687 Use Xlib.h instead of IntrinsicP.h.
5688 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5689 which will break in X11R7.
5690 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5691 to call XRegisterIMInstantiateCallback with correct types.
5693 * gui-x.c (button_item_to_widget_value): Type correctness.
5695 * glyphs.c (bitmap_to_lisp_data): Type correctness.
5697 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5698 (xbm_instantiate_1): Type correctness.
5699 (BUILD_GLYPH_INST): Type correctness.
5701 * fileio.c (Fsubstitute_in_file_name): Type correctness.
5704 (decode_coding_sjis):
5705 (decode_coding_big5):
5706 (decode_coding_ucs4):
5707 (decode_coding_utf8):
5708 (decode_coding_iso2022):
5709 (decode_coding_no_conversion):
5710 Make all decoding functions take an Extbyte * arg.
5711 (encode_coding_sjis):
5712 (encode_coding_big5):
5713 (encode_coding_ucs4):
5714 (encode_coding_utf8):
5715 (encode_coding_iso2022):
5716 (encode_coding_no_conversion):
5717 Make all encoding functions take a Bufbyte * arg.
5718 Use size_t instead of unsigned int for memory sizes.
5719 Only cast to unsigned char whenever dereferencing Extbyte *.
5721 * doc.c (unparesseuxify_doc_string): Type correctness.
5723 * console-x.c (split_up_display_spec):
5724 Rewrite without using details of internal string representation.
5725 (x_semi_canonicalize_device_connection): Type correctness.
5728 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5729 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5730 (HAVE_XFREE386): Removed.
5732 * buffer.h (DEC_CHARPTR): `const' correctness.
5733 (bufbyte_strcmp): New.
5734 (bufbyte_memcmp): New.
5736 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5738 * buffer.h (XCHAR_OR_CHAR_INT):
5739 Always use inline function.
5740 Remove redundant type checking assert() - XINT will abort quite nicely.
5742 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
5744 * search.c (Freplace_match): Set newtext to an empty string.
5746 2000-10-10 Martin Buchholz <martin@xemacs.org>
5748 * s/decosf1-3.h: Remove #include of stropts.h
5749 * s/ptx.h: Remove #include of stropts.h
5750 * s/usg5-4.h: Remove #include of stropts.h
5753 Use stropts.h, not sys/stropts.h.
5754 Use strtio.h, not sys/strtio.h.
5756 2000-10-04 Martin Buchholz <martin@xemacs.org>
5758 * XEmacs 21.2.36 is released.
5760 2000-09-21 Andy Piper <andy@xemacs.org>
5762 * glyphs-x.c (x_redisplay_widget): make sure non-structural
5763 changes still involve copying the widget tree.
5764 (update_widget_face): make sure a change is register in the widget
5765 tree. Call update_tab_widget_face appropriately.
5766 (update_tab_widget_face): ditto.
5767 (x_tab_control_redisplay): make sure non-structural changes still
5768 involve copying the widget tree.
5770 2000-08-31 Daiki Ueno <ueno@unixuser.org>
5772 * lread.c (locate_file): Check the path element is non-nil.
5774 2000-10-02 Martin Buchholz <martin@xemacs.org>
5776 * lisp.h: Warning suppression for SCO compilers.
5778 * redisplay-tty.c (reset_tty_modes): Fix crash.
5779 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
5781 2000-09-27 Martin Buchholz <martin@xemacs.org>
5783 Big signal/process handling overhaul. Bugs fixed:
5784 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
5785 M-x comint-kill-subjob should work for both values nil and t of
5786 process-connection-type. It was broken on most platforms.
5787 Testing on Irix and Cygwin still needed. Other plaforms tested.
5788 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
5789 * process-unix.c: Signal/Process handling overhaul.
5790 (pty_name): make 64 bytes, as `expect' does, for paranoia.
5791 (allocate_pty): Use all available modern methods of allocating
5792 ptys, falling back to old style BSD allocation as a last resort.
5793 Use allegedly more secure Unix98 pty allocation by default.
5794 (allocate_pty_the_old_fashioned_way): New. the last resort.
5795 (unix_create_process): Push ptem, ldterm, ttcompat where
5796 available. Autoconfiscate.
5797 (try_to_initialize_subtty): New.
5798 (unix_kill_child_process): Proper signal handling for ptys on most
5799 platforms, using special knowledge of AIX, BSD, etc...
5800 (unix_create_process): Always disconnect_controlling_terminal() for
5801 subprocesses, whether using ptys or not.
5802 * process.h: Remove old getpt-dependent PTY code.
5803 * process.c (Fprocess_send_signal): New, obvious generic function.
5804 (decode_signal): New.
5805 (Finterrupt_process):
5809 (Fcontinue_process):
5810 (Fsignal_process): Use decode_signal.
5811 (process_send_signal):
5812 Many docstring corrections.
5813 Allow any signal to be sent to a process object.
5814 * config.h.in: Add symbols for big signal/process overhaul.
5815 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
5816 * sysproc.h: Include process-related headers, where available:
5817 sys/stropts.h sys/strtio.h pty.h libutil.h
5825 Remove old S&M pty stuff.
5826 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
5827 * systty.h: Simplify cpp hackery, improve comments.
5828 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
5830 * editfns.c (Fformat_time_string):
5831 Be a little more paranoid with the return value of ctime.
5833 * fileio.c (check_executable):
5835 Use symbolic constants X_OK, W_OK.
5837 * console-x.c (split_up_display_spec): Fix a warning.
5839 2000-10-02 Martin Buchholz <martin@xemacs.org>
5841 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
5842 * ntproc.c (sys_spawnve): make_string ==> build_string
5843 Small clarity improvements.
5845 2000-09-30 Martin Buchholz <martin@xemacs.org>
5847 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
5849 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
5851 * config.h.in (HAVE_STRCASECMP): Remove.
5853 2000-09-29 Martin Buchholz <martin@xemacs.org>
5855 * redisplay-output.c (redisplay_output_pixmap):
5856 Cleaner and possibly more 64-bit correct code.
5858 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
5860 * dumper.c (pdump_load_finish): move restoration of
5861 `noninteractive1' to emacs.c (main_1).
5862 * emacs.c (main_1): protect LISP-visible command-line flags
5865 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
5867 * Makefile.in.in (versionclean): Use EXE_TARGET and
5868 DUMP_TARGET instead of literal program names.
5870 2000-09-20 Martin Buchholz <martin@xemacs.org>
5872 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
5874 2000-09-19 Martin Buchholz <martin@xemacs.org>
5876 * *: Spelling mega-patch
5878 2000-09-19 Martin Buchholz <martin@xemacs.org>
5880 * fns.c (bad_bad_turtle):
5881 Delete "Eek!" comment, since we fixed the bug to which it refers.
5883 2000-09-16 Martin Buchholz <martin@xemacs.org>
5885 * alloca.c: Replace REGISTER with register.
5887 2000-09-16 Daiki Ueno <ueno@unixuser.org>
5889 * file-coding.c (ucs_to_char): Use countof.
5891 2000-09-16 Martin Buchholz <martin@xemacs.org>
5893 * file-coding.c: (ucs_to_char):
5894 (complex_vars_of_file_coding):
5895 Use countof instead of sizeof.
5896 Use CHECK_NATNUM instead of CHECK_INT.
5898 * sysdep.c (strcasecmp): Remove.
5899 * device-x.c (ascii_strcasecmp): New.
5900 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
5901 Avoid using non-standard non-portable strcasecmp.
5903 2000-09-16 Martin Buchholz <martin@xemacs.org>
5905 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
5906 * font-lock.c: remove reference to emacsfns.h.
5907 * search.c: small doc improvement.
5908 * event-Xt.c: correct file names in comments.
5909 * console-x.h Correct file names in comments.
5910 * frame.c: Correct file names in comments.
5911 * event-stream.c: remove Energize from comments.
5913 2000-09-15 Martin Buchholz <martin@xemacs.org>
5915 * symeval.h (DEFERROR_STANDARD):
5918 (DEFSYMBOL_NO_DUMP):
5919 (DEFSYMBOL_MULTIWORD_PREDICATE):
5920 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
5922 The construct &##name is not sensible C.
5923 Fixes compilation errors with Unixware native compiler.
5925 2000-09-14 Martin Buchholz <martin@xemacs.org>
5927 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
5928 (next_frame_internal): Removed. We now just have next_frame.
5930 Write a simpler and cleaner one-pass algorithm.
5931 Remove called_from_delete_device arg and #ifdefed-out code.
5933 Renamed from prev_frame. Update callers.
5934 Cleaned up to have an analogous implementation to next_frame.
5935 (other_visible_frames_internal): Remove the
5936 called_from_delete_device bogus arg, and hence, remove this
5937 function. Just use other_visible_frames().
5939 * window.c (Fnext_window):
5941 Since next_frame() is guaranteed to return a frame, remove check
5942 for nil inserted in previous patch.
5945 Make code look more like Fnext_window.
5947 Respect the `console' arg when iterating through windows.
5948 Fixes bug: (get-buffer-window buffer t device) not respecting
5950 This function needs more work, as others have pointed out.
5952 * frame.h: Rename prev_frame to previous_frame.
5953 device_matches_console_spec no longer takes a `frame' arg.
5958 Use EMACS_BLOCK_SIGNAL instead of sigblock.
5959 From "Golubev I. N." <gin@mo.msk.ru>.
5961 * make-src-depend: Fix typo.
5963 2000-09-13 Martin Buchholz <martin@xemacs.org>
5965 * window.c (Fnext_window):
5966 next_frame() might return nil, not a frame.
5968 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5970 * frame.c (next_frame_internal):
5971 We've passed a frame if we've passed its device.
5973 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
5974 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
5976 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
5978 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
5979 Allow option to suppress accelerators in menu/dialog items.
5980 (populate_or_checksum_helper): Pass dialog title through above.
5982 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
5984 * event-msw.c (mswindows_key_to_emacs_keysym):
5985 Add "pause" key, fix "menu" key.
5987 2000-09-09 Martin Buchholz <martin@xemacs.org>
5989 * eval.c (reinit_vars_of_eval):
5990 Increase max_lisp_eval_depth to 1000,
5991 required for thai-xtis.el to byte-compile under some circumstances.
5993 2000-09-04 Martin Buchholz <martin@xemacs.org>
5995 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
5998 2000-09-01 Martin Buchholz <martin@xemacs.org>
6000 * make-src-depend: Make the generated Makefiles smaller.
6002 * s/hpux.h (SETUP_SLAVE_PTY):
6003 Provide a %d in the format string for the errno argument.
6005 * editfns.c (Ftemp_directory):
6007 Avoid buffer overrun on very long file name.
6009 * input-method-xlib.c (XIM_init_device):
6010 6th parameter of XRegisterIMInstantiateCallback has different
6011 pointer types on different OSes, so simply cast to (void *).
6013 * unexhp9k800.c: Warning fixes. Fiddly changes.
6015 * sysdll.c (dll_open):
6016 shl_load will hang hard if passed a NULL filename.
6017 Simply return NULL for compatibility with dlopen.
6018 * sysdll.c: Conform to XEmacs coding standards.
6020 * sysdep.c (get_pty_max_bytes):
6021 Support pty input lines longer than 512 bytes on HP-UX 10.20.
6023 2000-08-31 Martin Buchholz <martin@xemacs.org>
6025 * tooltalk.c: Add #include <syssignal.h>
6027 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
6029 * s/hpux.h: Don't use undefined function sigunblock().
6031 2000-08-31 Martin Buchholz <martin@xemacs.org>
6033 * config.h.in: Add HAVE_BALLOON_HELP.
6034 * emacs.c: Use HAVE_BALLOON_HELP.
6035 * Makefile.in.in (x_objs):
6036 Make Balloon Help conditional on finding shape.h.
6038 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
6040 * syntax.c (regex_emacs_buffer_p): New variable.
6041 * syntax.h (regex_emacs_buffer_p): extern.
6042 * search.c (looking_at_1):
6044 (fast_string_match):
6045 (search_buffer): Set regex_emacs_buffer_p.
6046 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6047 when before_dot, at_dot, after_dot.
6049 2000-08-23 Andy Piper <andy@xemacs.org>
6051 * gui-x.c (popup_selection_callback): Only set action_occurred
6052 when we really have an image instance.
6053 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6055 2000-08-23 Andy Piper <andy@xemacs.org>
6057 * gui-msw.c (mswindows_handle_gui_wm_command): set
6059 * gui-x.c (popup_selection_callback): ditto.
6061 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6062 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6063 (struct Lisp_Image_Instance): add action_occurred flag.
6065 * glyphs.c (redisplay_subwindow): use action_occurred flag.
6066 (image_instance_changed): ditto.
6067 (reset_frame_subwindow_instance_cache): only unmap windows - do
6068 not remove them from the cache also.
6070 * glyphs-widget.c (tab_control_update): better debug.
6071 (progress_gauge_update): ditto.
6072 (layout_update): ditto.
6073 (layout_instantiate): ditto.
6074 (tab_control_order_only_changed): cope with null pending items.
6076 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6077 debug. Force selection of an item when an action occurred. Cope
6078 with null pending_items.
6079 (mswindows_progress_gauge_redisplay): better debug.
6080 * glyphs-x.c (x_tab_control_redisplay): ditto.
6082 * redisplay.c (redisplay_frame): reset the frame cache if the
6085 * window.c (Fset_window_configuration): potentially re-enable
6087 (window_unmap_subwindows): need to finalize instances here since
6088 it is only used in mark_window_as_deleted.
6090 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
6092 * nas.c (SndOpenDataForReading):
6093 nas.c (WaveOpenDataForReading):
6094 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6095 Somehow escaped from the 2000-08-14 patch.
6097 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
6099 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6100 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6102 2000-08-21 Andy Piper <andy@xemacs.org>
6104 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6105 window if it is not already displayed.
6107 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6108 it is not already displayed.
6110 * window.c (Fset_window_configuration): don't reset the frame
6113 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6114 instances from the frame cache if we are actually finalizing them.
6115 (reset_frame_subwindow_instance_cache): reset frame cache only
6116 after unmapping everything.
6117 (map_subwindow): set displayed flag after mapping.
6119 2000-08-21 Martin Buchholz <martin@xemacs.org>
6121 * data.c (indirect_function):
6122 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6124 * eval.c (function_argcount):
6125 Use original function when signaling errors.
6127 2000-08-18 Andy Piper <andy@xemacs.org>
6129 * frame.c (delete_frame_internal): use new
6130 free_frame_subwindow_instances name.
6132 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6133 (add_tab_item): make return type correct.
6134 (mswindows_tab_control_instantiate): assert index of tab.
6135 (mswindows_tab_control_redisplay): Re-code to use
6136 gui_item_equal_sans_selected and gui_item_list_find_selected.
6138 * glyphs-widget.c (tab_control_update): Correct comment.
6140 * window.c (window_unmap_subwindows): use new
6141 unmap_subwindow_instance_cache_mapper.
6142 (window_unmap_subwindows_cache_mapper): deleted.
6143 (Fset_window_configuration): comparisons should now be with
6144 EQ. Preserve the subwindow instance cache across configuration
6146 (allocate_window): ditto.
6147 (make_dummy_parent): ditto.
6149 * glyphs.c (free_frame_subwindow_instances): rename from
6150 free_frame_subwindow_instance_cache. finalize all instances rather
6151 than just those in the display cache.
6152 (finalize_all_subwindow_instances): walk windows unmapping and
6153 finalizing subwindows.
6154 (unmap_subwindow_instance_cache_mapper): moved from
6155 window.c. Allow finalization as well as unmapping.
6157 * gui.c (gui_item_list_find_selected): new function.
6159 * gui.h (gui_item_list_find_selected): declare.
6161 * glyphs-x.c (x_tab_control_redisplay): pick tab
6162 explicitly. Re-code to use gui_item_equal_sans_selected and
6163 gui_item_list_find_selected.
6165 * glyphs-x.h: add lwlib-utils.h
6167 * buffer.c (Frecord_buffer): undo previous change.
6169 2000-08-09 Vin Shelton <acs@xemacs.org>
6171 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6172 possible. Create temporary files more securely. The patch was
6173 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6174 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
6175 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6178 2000-08-07 Ben Wing <ben@xemacs.org>
6180 * getloadavg.c: remove duplicate (and windows-breaking)
6181 includes of fcntl.h and sys/file.h.
6183 * nt.c: remove duplicate getloadavg() definition.
6185 * sysdll.h (Qdll_filename_encoding): add missing stand-in
6188 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
6190 * eval.c (function_argcount): If function needs to be autoloaded
6191 actually use the loaded definition.
6194 2000-08-05 Ben Wing <ben@xemacs.org>
6196 * getloadavg.c: add prototype for getloadavg(). remove
6197 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6198 of the code). remove duplicate header includes.
6200 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6202 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6203 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6204 useful load average.
6206 * alloc.c (reinit_alloc_once_early): removed references to
6207 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6208 the lisp vars are the only things referencing the malloc_sbrk_*
6209 vars, and they were already if 0'd out. these vars only exist
6210 in the older malloc.c, which is basically unused, and they're
6211 only for informational purposes.
6213 * m\*.h: removed useless VIRT_ADDR_VARIES.
6215 * m\powerpc.h: removed stray NO_ARG_ARRAY.
6217 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
6219 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6220 color if the image is a mono pixmap.
6222 2000-07-30 Ben Wing <ben@xemacs.org>
6224 * Makefile.in.in (release):
6227 * buffer.c (directory_is_current_directory):
6228 * dired-msw.c (mswindows_get_files):
6230 * dired.c (Fdirectory_files):
6231 * dired.c (file_name_completion_stat):
6232 * dired.c (Ffile_attributes):
6233 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6234 preprocessor tricks, to avoid problems on some machines
6237 * callproc.c (egetenv): GC docs.
6240 * console-msw.h (struct mswindows_dialog_id):
6241 * lrecord.h (lrecord_type):
6242 New object for use with MSW dialogs.
6244 * console.h (struct console_methods):
6245 New enable/disable frame methods, for proper modal dialogs.
6247 * device-msw.c (msprinter_default_printer): Fix to follow
6248 proper Mule conventions.
6251 * device-msw.c (signal_open_printer_error):
6252 * device-msw.c (msprinter_init_device):
6253 * device-msw.c (ensure_not_printing):
6254 * device-msw.c (plist_get_margin):
6255 * device-msw.c (Fmsprinter_select_settings):
6256 * device-msw.c (finalize_devmode):
6257 * device-msw.c (Fmsprinter_settings_despecialize):
6258 * device-msw.c (signal_enum_priner_error):
6259 * extents.c (decode_extent):
6260 * extents.c (decode_map_extents_flags):
6261 * extents.c (decode_extent_at_flag):
6262 * extents.c (Fextent_at):
6263 * extents.c (Fextents_at):
6264 * extents.c (symbol_to_glyph_layout):
6265 [[[[2]]]] Use structured errors.
6268 * dialog-msw.c (mswindows_is_dialog_msg):
6269 * dialog-msw.c (mark_mswindows_dialog_id):
6270 * dialog-msw.c (dialog_proc):
6271 * dialog-msw.c (handle_question_dialog_box):
6272 * dialog-msw.c (syms_of_dialog_mswindows):
6273 Define new object to clean up marking; use it as a dialog identifier.
6274 Call new delete-dialog-box-hook.
6276 * dialog-x.c (dbox_selection_callback):
6277 * dialog-x.c (dbox_descriptor_to_widget_value):
6278 * dialog-x.c (x_make_dialog_box_internal):
6279 Call new delete-dialog-box-hook.
6283 * dialog.c (syms_of_dialog):
6284 * dialog.c (vars_of_dialog):
6285 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6288 * eval.c (signal_call_debugger):
6289 when noninteractive, output stack traces on the console instead
6290 of in a (never-seen) buffer.
6292 * eval.c (signal_type_error):
6293 * eval.c (invalid_argument_2):
6295 new funs for use w/structured errors.
6298 * event-Xt.c (x_to_emacs_keysym):
6299 * event-Xt.c (describe_event):
6300 * event-Xt.c (emacs_Xt_event_handler):
6301 * event-Xt.c (vars_of_event_Xt):
6303 * event-msw.c (mswindows_wnd_proc):
6304 * event-msw.c (vars_of_event_mswindows):
6305 rename {x,mswindows}-debug-events to debug-{}-events for
6306 consistency with other debug-foo variables.
6309 document next-event more clearly.
6311 * fileio.c (Ffile_name_directory):
6312 * fileio.c (Ffile_name_nondirectory):
6313 * fileio.c (Funhandled_file_name_directory):
6314 * fileio.c (file_name_as_directory):
6315 * fileio.c (Ffile_name_as_directory):
6316 * fileio.c (directory_file_name):
6317 * fileio.c (Fdirectory_file_name):
6318 * fileio.c (Fmake_temp_name):
6319 * fileio.c (Ffile_truename):
6320 * fileio.c (Fsubstitute_in_file_name):
6321 * fileio.c (expand_and_dir_to_file):
6322 * fileio.c (barf_or_query_if_file_exists):
6323 * fileio.c (check_executable):
6324 * fileio.c (Ffile_exists_p):
6325 * fileio.c (Ffile_writable_p):
6326 * fileio.c (Ffile_directory_p):
6327 * fileio.c (Ffile_regular_p):
6328 * fileio.c (Ffile_modes):
6329 * fileio.c (Ffile_newer_than_file_p):
6330 * fileio.c (Fverify_visited_file_modtime):
6331 * fileio.c (Fset_visited_file_modtime):
6332 * fileio.c (auto_save_1):
6337 * frame-msw.c (mswindows_init_frame_1):
6338 * frame-msw.c (mswindows_enable_frame):
6339 * frame-msw.c (error_frame_unsizable):
6340 * frame-msw.c (msprinter_init_frame_1):
6341 * frame-msw.c (msprinter_init_frame_3):
6342 * frame-msw.c (console_type_create_frame_mswindows):
6344 implement new enable/disable frame methods.
6347 * frame-x.c (x_enable_frame):
6348 * frame-x.c (console_type_create_frame_x):
6349 implement new enable/disable frame methods.
6352 * frame.c (Fdisable_frame):
6353 * frame.c (syms_of_frame):
6354 * frame.h (struct frame):
6355 implement new enable/disable frame methods/functions.
6360 * glyphs-msw.c (mswindows_widget_instantiate):
6361 comment that initial-focus should be implemented.
6364 * glyphs-widget.c (check_valid_instantiator):
6365 * glyphs-widget.c (check_valid_orientation):
6366 * glyphs-widget.c (check_valid_tab_orientation):
6367 * glyphs-widget.c (check_valid_justification):
6368 * glyphs-widget.c (check_valid_border):
6369 * glyphs-widget.c (check_valid_callback):
6370 * glyphs-widget.c (check_valid_int_or_function):
6371 * glyphs-widget.c (check_valid_string_or_vector):
6372 * glyphs-widget.c (check_valid_item_list_1):
6373 * glyphs-widget.c (widget_validate):
6374 * glyphs-widget.c (combo_box_validate):
6375 * glyphs-widget.c (widget_instantiate):
6376 * glyphs-widget.c (syms_of_glyphs_widget):
6377 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6378 * glyphs-widget.c (image_instantiator_combo_box):
6379 * glyphs-widget.c (image_instantiator_scrollbar):
6380 * glyphs-widget.c (image_instantiator_tab_control):
6381 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6383 support (unimplemented) keyword initial-focus.
6384 reindent long macros.
6386 * glyphs-x.c (x_redisplay_widget):
6387 * glyphs-x.c (x_button_instantiate):
6388 * glyphs-x.c (x_button_redisplay):
6389 * glyphs-x.c (x_progress_gauge_instantiate):
6390 * glyphs-x.c (x_edit_field_instantiate):
6391 * glyphs-x.c (x_combo_box_instantiate):
6392 * glyphs-x.c (x_tab_control_instantiate):
6393 * glyphs-x.c (x_label_instantiate):
6395 * gui-x.c (button_item_to_widget_value):
6396 * gui-x.c (gui_items_to_widget_values_1):
6397 * gui-x.c (gui_item_children_to_widget_values):
6398 * gui-x.c (gui_items_to_widget_values):
6400 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6401 add new flag to gui-parsing routines to indicate whether
6402 accelerator specs should be supported.
6404 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6406 * glyphs.h (struct Lisp_Image_Instance):
6407 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6408 add initial-focus flag.
6411 * gui.c (syms_of_gui):
6412 * gui.c (vars_of_gui):
6413 clean up menu-no-selection-hook.
6416 support delete-dialog-box-hook.
6418 * lread.c (Fload_internal):
6419 * lread.c (locate_file_in_directory_mapper):
6423 * lrecord.h (struct toolbar_button):
6424 * lrecord.h (syms_of_toolbar):
6425 document how to create a new object.
6427 * menubar-msw.c (mswindows_char_is_accelerator):
6428 may be called on frames w/o menus.
6430 * menubar.c (vars_of_menubar):
6431 clean up :filter docs.
6438 * process-nt.c (validate_signal_number):
6439 * process-nt.c (signal_cannot_launch):
6440 * process-nt.c (nt_create_process):
6441 * process-nt.c (nt_send_process):
6442 * process-nt.c (nt_kill_child_process):
6443 * process-nt.c (nt_open_network_stream):
6444 * process-nt.c (syms_of_process_nt):
6446 delete quote-handling. call new lisp code that does it better.
6448 * process-unix.c (connect_to_file_descriptor):
6449 * process-unix.c (allocate_pty):
6450 * process-unix.c (unix_send_process):
6451 * process-unix.c (unix_kill_child_process):
6452 * process-unix.c (unix_open_network_stream):
6453 * process-unix.c (unix_open_multicast_group):
6457 * process.c (Fstart_process_internal):
6458 (2). need to canonicalize process path even if absolute.
6460 * select-msw.c (symbol_to_ms_cf):
6461 * select-msw.c (ms_cf_to_symbol):
6462 * select-msw.c (cf_is_autofreed):
6463 * select-msw.c (mswindows_destroy_selection):
6465 * select.c (syms_of_select):
6467 support dibv5, fix bugs. (from Mike Alexander)
6469 * select.c (Fget_selection_internal):
6470 * select.c (select_convert_out):
6473 * sysdep.c (xemacs_stat):
6478 but keep original stat() here because we provide encapsulation
6482 * sysfile.h (fstat):
6483 remove stat garbage.
6487 don't include tchar.h. it's inappropriate because it makes
6488 compile-time distinctions when we want runtime distinctions.
6489 (we provide our own tchar replacements)
6492 use default object printer for toolbar-button.
6495 make sure we don't encapsulate.
6497 * window.c (vars_of_window):
6498 emphasize that temp-buffer-show-hook is obsolete.
6500 2000-08-05 Martin Buchholz <martin@xemacs.org>
6502 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6503 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6505 * events.c (Fevent_timestamp_lessp):
6506 Not 64-bit clean. Use EMACS_INT, not int.
6508 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
6510 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6511 unsigned int and changed the last enum to
6512 lrecord_type_last_built_in_type.
6513 (lrecord_implementations_table): changed prototype to know how
6514 long the array is supposed to be.
6515 (lrecord_type_count): new unsigned int to keep track of the
6516 current number of lisp lrecord types.
6517 (DEFINE_EXTERNAL_LRECORD):
6518 (DECLARE_EXTERNAL_LRECORD): Added these two for external
6519 dynamic-modules to declare new lisp types. They are the same
6520 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6521 int for each new type, and increment lrecord_type_count by 1.
6523 * alloc.c (lrecord_implementations_table): Changed to reference
6524 lrecord_type_last_built_in_type for the size of the array.
6525 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6527 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
6529 * glyphs.h (check_valid_item_list): Renamed from
6530 check_valid_item_list_1.
6532 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6534 * select.c (Qselect_coerce): New.
6535 * select.c (Vselection_coercion_alist): New.
6536 * select.c (syms_of_select): Declare.
6537 * select.c (get-selection-internal): Use it.
6538 Use the new select-coerce functionality.
6540 * select.c (select_coerce): New.
6541 * select.h (select_coerce): Declare.
6542 New function to coerce one type of data into another.
6544 2000-08-03 Martin Buchholz <martin@xemacs.org>
6546 * callproc.c (Fcall_process_internal):
6547 (Fcall_process_internal):
6548 * process-unix.c (unix_create_process):
6549 Save and restore the value of errno, so that error messages are accurate.
6551 2000-08-01 Martin Buchholz <martin@xemacs.org>
6553 * elhash.c (print_hash_table):
6554 Fix printing of hash tables to also use `key-and-value' instead of `t'.
6555 Prettify docstrings and indentation.
6557 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
6559 * window.c (Fwindow_pixel_edges): Subtract frame border and
6562 2000-07-31 Andy Piper <andy@xemacs.org>
6564 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6565 will acknowledge the change.
6567 * glyphs.h: declare tab_control_order_only_changed.
6569 * glyphs-x.c (x_tab_control_redisplay): use
6570 tab_control_order_only_changed.
6572 * glyphs-widget.c (tab_control_order_only_changed): new function.
6574 * glyphs-msw.c (mswindows_tab_control_redisplay): use
6575 tab_control_order_only_changed.
6577 * gui.c (gui_item_equal_sans_selected): new function.
6578 (gui_item_equal): use it.
6580 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6581 :properties in favor of :items..
6583 * glyphs-widget.c (check_valid_item_list): rename from
6584 check_valid_item_list_1.
6585 (check_valid_item_list_1): renamed.
6586 (combo_box_validate): deprecate :properties in favor of :items.
6587 (widget_instantiate): ditto.
6588 (tab_control_update): ditto.
6589 (image_instantiator_combo_box): ditto.
6590 (image_instantiator_tree_view): ditto.
6591 (image_instantiator_tab_control): ditto.
6592 (layout_post_instantiate): remove dead code.
6594 * print.c (debug_print_no_newline): only write to debugger if in
6597 * elhash.c (Fmake_hash_table): update doc string.
6599 * event-msw.c (mswindows_wnd_proc): don't allow processing of
6600 messages whilst in GC. This at least stops XEmacs crashing but has
6601 the potential for wierd behaviour.
6603 2000-07-31 Martin Buchholz <martin@xemacs.org>
6606 Make existence of s&m files optional.
6608 * s/bsd386.h: Remove HAVE_GETLOADAVG.
6609 * s/freebsd.h: Remove HAVE_GETLOADAVG.
6610 * s/gnu.h: Remove HAVE_GETLOADAVG.
6611 * s/netbsd.h: Remove HAVE_GETLOADAVG.
6612 * s/sol2.h: Remove HAVE_GETLOADAVG.
6613 * lisp.h: Remove getloadavg() declaration.
6615 Include <sys/loadavg.h> if available.
6616 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6617 * config.h.in: Group together getloadavg()-related macros.
6618 Use only configure-time tests to detect getloadavg().
6620 2000-07-30 Martin Buchholz <martin@xemacs.org>
6622 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6624 2000-07-25 Andy Piper <andy@xemacs.org>
6626 * syswindows.h: add tchar.h for native builds.
6628 * frame.c (syms_of_frame): remove set-glyph-image.
6630 * general-slots.h: add Qset_glyph_image.
6632 * glyphs-widget.c (layout_update): add domain arg to
6634 (syms_of_glyphs_widget): remove set-glyph-image.
6636 2000-07-23 Ben Wing <ben@xemacs.org>
6638 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6641 2000-07-22 Andy Piper <andy@xemacs.org>
6643 * symsinit.h: add syms_of_win32().
6645 * gui-msw.c (syms_of_gui_mswindows): remove
6646 Fmswindows_shell_execute.
6647 (Fmswindows_shell_execute): moved to win32.c.
6649 * emacs.c (main_1): add syms_of_win32 ().
6651 * win32.c (init_potentially_nonexistent_functions): rewrite in
6652 compiler-friendly terms.
6653 (Fmswindows_shell_execute): move here from gui-msw.c.
6654 (syms_of_win32): new.
6656 * device-msw.c (Fmswindows_printer_list): clean up args to
6658 Don't include tchar under cygwin or mingw.
6659 (msprinter_default_printer): make cygwin-friendly.
6661 2000-07-21 Andy Piper <andy@xemacs.org>
6663 * glyphs-widget.c (image_instantiator_tree_view): use tab
6664 control's update function.
6665 (layout_property): new function. Retrieve items.
6667 * glyphs-msw.c (mswindows_tree_view_redisplay): new
6668 function. Re-populate the tree view from the pending items.
6670 * glyphs.c (instantiate_image_instantiator): Make sure the domain
6671 is designated the parent if the domain is an image instance. This
6672 is needed so that dirtiness can be cascade up the hierarchy and
6673 thus for layout children to be redisplayed correctly.
6674 (allocate_image_instance): rename glyph -> parent.
6676 * redisplay.h: change redisplay_output_layout signature.
6678 * redisplay-msw.c (mswindows_output_display_block): use domain
6681 * redisplay-x.c (x_output_display_block): use domain arg.
6683 2000-07-10 Andy Piper <andy@xemacs.org>
6685 * window.c (Fset_window_configuration): add comment.
6687 * redisplay-output.c (compare_runes):
6688 (redisplay_output_subwindow): redisplay rather than update subwindow.
6689 (redisplay_output_layout): ditto.
6691 * redisplay-msw.c (mswindows_frame_output_end):
6692 (mswindows_frame_output_end): make defer window pos optional.
6694 * lisp.h: add Flast.
6696 * glyphs.h (struct image_instantiator_methods): add dest_mask top
6697 normalize method. Change update method to be for changed
6698 instantiators. Add redisplay method. Change signature of layout
6700 (struct Lisp_Image_Instance): add instantiator.
6701 (IMAGE_INSTANCE_INSTANTIATOR): new.
6702 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6703 (XIMAGE_INSTANCE_INSTANTIATOR): new.
6704 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6707 (find_instantiator_differences): new function.
6708 (Fset_instantiator_property): new convenience function.
6709 (check_image_instance_structure): strictly check for vector
6711 (normalize_image_instantiator): make non-static.
6712 (instantiate_image_instantiator): pass on dest_mask and use new
6713 signatures for image_instance_layout and friends.
6714 (mark_image_instance): mark the instantiator. Mark the subwindow
6715 face not the widget face.
6716 (image_instance_equal): add instantiator.
6717 (image_instance_hash): ditto.
6718 (allocate_image_instance): ditto.
6719 (Fset_image_instance_property): removed.
6720 (Fimage_instance_file_name): ditto.
6721 (Fcolorize_image_instance): ditto.
6722 (image_instance_layout): add offsets to be set.
6723 (update_image_instance): new function. update an image instance
6724 from its changed instantiator.
6725 (inherit_normalize): add dest_mask.
6726 (xbm_normalize): ditto.
6727 (xface_normalize): ditto.
6728 (xpm_normalize): ditto.
6729 (text_update): set_property -> update.
6730 (image_instantiate): use the glyph identity as a hash key, not the
6732 (glyph_width): use new image_instance_layout signature.
6733 (glyph_ascent): ditto.
6734 (glyph_descent): ditto.
6735 (glyph_height): ditto.
6736 (glyph_query_geometry): ressurrect.
6737 (glyph_layout): ditto.
6738 (redisplay_subwindow): update -> redisplay.
6739 (syms_of_glyphs): add Fset_instantiator_property.
6740 (image_instantiator_format_create): set_property -> update.
6743 (autodetect_normalize): add dest_maks to signature.
6744 (x_redisplay_subwindow): update -> redisplay.
6745 (x_redisplay_widget): ditto.
6746 (x_button_redisplay): ditto.
6747 (x_progress_gauge_redisplay): ditto.
6748 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6750 (console_type_create_glyphs_x): update -> redisplay.
6751 (image_instantiator_format_create_glyphs_x): ditto.
6754 (check_valid_instantiator): disallow glyphs in the instantiator,
6755 they must now be vectors.
6756 (check_valid_instantiator_list): ditto.
6757 (glyph_instantiator_to_glyph): use internal symbol rather than
6759 (widget_update): renamed from widget_set_property. Call cascaded
6761 (redisplay_widget): renamed from update_widget.
6762 (widget_layout): image_instance_layout now takes position as well
6764 (widget_normalize): ditto.
6765 (widget_instantiate): ditto.
6766 (tab_control_query_geometry) ditto.:
6767 (tab_control_update): renamed from tab_control_set_property.
6768 (progress_gauge_update): set_property -> update.
6769 (layout_normalize): rewrite so that child instantiators are
6771 (layout_update): new function. Create glyphs from the normalized
6772 children and cope with any other layout keywords. We do not
6773 instantiate children here that will be take care of by
6774 redisplay_output_layout.
6775 (layout_instantiate): call layout_update and not much else.
6776 (layout_post_instantiate): not sure whether this is needed
6778 (layout_query_geometry): query glyph geometry rather than
6779 image_instance geometry.
6780 (layout_layout): set offsets from pass in parameters. Use glyph
6781 geometry and layout functions rather than image instance ones.
6782 (native_layout_layout): ditto.
6783 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
6784 (image_instantiator_widget): set_property -> update.
6785 (image_instantiator_buttons): ditto.
6786 (image_instantiator_progress_guage): ditto.
6787 (image_instantiator_tab_control): ditto.
6788 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
6789 (image_instantiator_layout): add update method.
6791 * glyphs-msw.c (bmp_normalize):
6792 (mswindows_resource_normalize): add dest_mask so that it can be
6793 proprogated by layout_normalize.
6794 (begin_defer_window_pos): make optional because it may not be the
6795 right thing to do and it introduces differences with X.
6796 (mswindows_unmap_subwindow): ditto.
6797 (mswindows_map_subwindow): ditto.
6798 (mswindows_redisplay_subwindow): renamed from
6799 mswindows_update_subwindow.
6800 (mswindows_redisplay_widget): ditto.
6801 (mswindows_button_redisplay): renamed from
6802 mswindows_button_update. Update is now what the instantiation
6803 function does for a changed instantiator.
6804 (mswindows_progress_gauge_instantiate): set the progress value
6805 here if appropriate.
6806 (mswindows_tab_control_redisplay): cope with re-ordering of the
6807 members of the tab widget by simply selecting the new top
6808 widget. This makes things appear ok if you click on a tab.
6809 (mswindows_combo_box_instantiate): image_instance_layout now takes
6810 position as well as size.
6811 (mswindows_progress_gauge_redisplay): renamed from
6812 mswindows_progress_gauge_update.
6813 (console_type_create_glyphs_mswindows): fix update -> redisplay.
6814 (image_instantiator_format_create_glyphs_mswindows): ditto.
6816 * glyphs-eimage.c (jpeg_normalize):
6819 (tiff_normalize): add dest_mask so that it can be proprogated by
6824 (hash_table_weakness_validate):
6825 (decode_hash_table_weakness):
6826 (Fhash_table_weakness):
6828 (syms_of_elhash): use Ben's naming scheme for hashtable types..
6830 * console.h (struct console_methods): move update_* to
6833 2000-07-20 Ben Wing <ben@xemacs.org>
6835 * *.[ch] (XSETOBJ): remove unused middle argument.
6836 lisp-disunion.h: correct wrap_object() to one argument.
6838 2000-07-15 Ben Wing <ben@xemacs.org>
6841 * s/cygwin32.h (CYGWIN_CONV_PATH):
6842 Add missing logb prototype for v1.1.
6843 Use post-b20 names and alias to pre-b20 names when pre-b20.
6845 * s/windowsnt.h: [5].
6847 2000-07-15 Ben Wing <ben@xemacs.org>
6849 * Makefile.in.in (x_objs):
6850 * Makefile.in.in (sheap_objs):
6851 * Makefile.in.in (objs):
6852 added win32.o, cosmetic cleanups.
6854 * alloc.c (Fmake_byte_code):
6855 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
6856 etc. macros which declare their own args now.
6858 * alloc.c (syms_of_alloc):
6859 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
6862 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
6864 * buffer.c (Fget_file_buffer):
6865 Fixed GCPRO problem.
6867 * buffer.c (get_truename_buffer):
6868 Fixed comment about GC checking.
6870 * buffer.c (syms_of_buffer):
6871 Undeclared those dedicated frame funs.
6875 Define convenience macros for internal/external conversions.
6876 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
6877 and Qenvironment_variable_encoding for cleaner code.
6880 Remove dedicated-frame; in lisp.
6882 * bytecode.c (funcall_compiled_function):
6885 * bytecode.c (syms_of_bytecode):
6889 * console-msw.c (mswindows_show_console): Rewrote.
6891 * console-msw.c (Fmswindows_debugging_output): New.
6892 Sends to OutputDebugString (special MSWin debugger interface).
6894 * console-msw.c (Fmswindows_message_box):
6895 Fixed stupid bugs so it works when called from kill-emacs.
6897 * console-msw.c (syms_of_console_mswindows):
6898 Declare Fmswindows_debugging_output.
6901 New MSWin prototypes.
6903 * console-msw.h (struct mswindows_frame):
6904 New entry last-click-mods for improved button-modifier support.
6906 * console-msw.h (FRAME_MSWINDOWS_POPUP):
6907 New struct entry `popup' with corresponding accessor.
6910 * console-x.c (split_up_display_spec):
6911 * console-x.c (get_display_arg_connection):
6912 * console-x.c (x_semi_canonicalize_console_connection):
6913 * console-x.c (x_canonicalize_device_connection):
6914 [[[6]]]: Change char to more specific type.
6915 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
6917 * console-x.c (x_semi_canonicalize_console_connection):
6918 * console-x.c (x_canonicalize_device_connection):
6919 [[[9]]]: Fix up error signalling to use new structured error system.
6922 [[[4]]]: Define codesys aliases:
6923 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
6924 Qx_color_name_encoding, Qx_display_name_encoding.
6926 * console.h (struct console_methods):
6927 New method make_dialog_box_internal supersedes older
6928 popup_dialog_box method.
6931 Define many new errors, part of new structured errors.
6933 * data.c (init_errors_once_early):
6934 * data.c (syms_of_data):
6937 * device-msw.c (mswindows_init_device):
6938 [[[5]]]: Cleanup to support NT 3.51.
6940 * device-msw.c (decode_devmode): Cleanup.
6942 * device-msw.c (mswindows_handle_print_setup_dialog_box):
6943 * device-msw.c (mswindows_handle_print_dialog_box):
6944 * device-msw.c (mswindows_handle_page_setup_dialog_box):
6945 * device-msw.c (syms_of_device_mswindows):
6946 Delete the dialog box primitives recently introduced by Kirill and
6947 instead interface to general dialog box interface.
6950 * device-x.c (compute_x_app_name):
6951 * device-x.c (x_init_device):
6952 * device-x.c (Fx_valid_keysym_name_p):
6953 * device-x.c (Fx_set_font_path):
6957 * device.h (wrap_device): New.
6958 First of its kind; meant to replace XSETDEVICE.
6960 * dialog-msw.c: Many file-dialog symbols.
6962 * dialog-msw.c (mswindows_register_popup_frame): New.
6963 * dialog-msw.c (mswindows_is_dialog_msg): New.
6964 For supporting kbd traversal in dialog boxes.
6966 * dialog-msw.c (dialog_proc):
6967 Support hitting ESC in dialogs.
6969 * dialog-msw.c (struct):
6970 Common dialog box errors.
6972 * dialog-msw.c (handle_file_dialog_box): New.
6973 Add file dialog code.
6975 * dialog-msw.c (handle_question_dialog_box):
6976 Redo existing code to support new question dialog syntax.
6978 * dialog-msw.c (console_type_create_dialog_mswindows):
6979 We support new dialog console method.
6981 * dialog-msw.c (syms_of_dialog_mswindows):
6982 * dialog-msw.c (vars_of_dialog_mswindows):
6983 New file dialog symbols, vars.
6986 * dialog-x.c (maybe_run_dbox_text_callback):
6987 * dialog-x.c (dbox_descriptor_to_widget_value):
6988 * dialog-x.c (x_make_dialog_box_internal):
6989 * dialog-x.c (console_type_create_dialog_x):
6990 Mule-ize entire file.
6991 Redo to support question dialog syntax.
6995 * dialog.c (Fmake_dialog_box_internal):
6996 * dialog.c (syms_of_dialog):
6997 Kill old popup-dialog-box, replace with new primitive.
6998 Just call device method or signal error.
7000 * eldap.c (Fldap_open):
7001 * eldap.c (Fldap_search_basic):
7002 * eldap.c (Fldap_add):
7003 * eldap.c (Fldap_modify):
7008 * emacs.c (make_arg_list_1):
7009 * emacs.c (make_arg_list):
7010 Mule-ize call to dll_init().
7014 * emacs.c (make_argc_argv):
7015 * emacs.c (free_argc_argv):
7016 * emacs.c (init_cmdargs):
7018 * emacs.c (Fkill_emacs):
7019 * emacs.c (Fdump_emacs):
7020 Update comments about what can be used in syms_* etc.
7021 Call init_win32() when necessary.
7022 Fix up MS Win dialog box in kill-buffer to actually work right.
7033 * eval.c (condition_case_3):
7035 * eval.c (function_argcount):
7036 * eval.c (funcall_lambda):
7039 * eval.c (type_error): New.
7040 * eval.c (maybe_type_error): New.
7041 * eval.c (continuable_type_error): New.
7042 * eval.c (maybe_continuable_type_error): New.
7043 * eval.c (type_error_with_frob): New.
7044 * eval.c (maybe_type_error_with_frob): New.
7045 * eval.c (continuable_type_error_with_frob): New.
7046 * eval.c (maybe_continuable_type_error_with_frob): New.
7047 New functions for use with structured errors.
7050 * event-Xt.c (x_event_to_emacs_event):
7051 Buttons are now modifiers too.
7053 * event-Xt.c (emacs_Xt_current_event_timestamp):
7054 Implement new event method.
7055 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7058 * event-msw.c (ntpipe_shove_writer): [5].
7059 * event-msw.c (mswindows_enqueue_mouse_button_event):
7060 * event-msw.c (mswindows_drain_windows_queue):
7061 * event-msw.c (mswindows_wnd_proc): [7].
7062 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7063 * event-msw.c (mswindows_modifier_state):
7064 Throughout: support new button modifiers.
7066 * event-msw.c (emacs_mswindows_current_event_timestamp):
7067 Implement new event method.
7068 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7071 * event-stream.c (event_stream_current_event_timestamp): New.
7072 * event-stream.c (maybe_kbd_translate): New functionality.
7073 * event-stream.c (vars_of_event_stream):
7074 Document new kbd-translate-table functionality.
7076 * event-stream.c (Fcurrent_event_timestamp): New.
7077 New primitive for use in fabricated events.
7078 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7080 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7083 * events.c (Fmake_event):
7084 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7088 * events.c (format_event_object): fix gcc warnings.
7090 * events.c (Fevent_timestamp): Document new primitives.
7092 * events.c (TIMESTAMP_HALFSPACE): New.
7094 * events.c (Fevent_timestamp_lessp): New. New primitive for
7095 comparing timestamps correctly (half-space algorithm).
7097 * events.c (Fevent_modifier_bits): Doc fix.
7099 * events.c (Fevent_modifiers): Major doc addition.
7100 * events.c (event_x_y_pixel_internal): Typo fix.
7101 * events.c (syms_of_events): Declare new primitives.
7104 Update long comment for button modifiers, timestamps.
7106 * events.h (struct event_stream):
7107 New current_event_timestamp method.
7110 * extents.c (extent_in_region_p):
7111 * extents.c (decode_extent):
7112 * extents.c (Fset_extent_parent):
7113 * extents.c (decode_map_extents_flags):
7117 * extents.c (struct extent_at_arg):
7118 * extents.c (decode_extent_at_flag):
7119 * extents.c (extent_at_mapper):
7120 * extents.c (extent_at_bytind):
7121 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7122 * extents.c (Fextents_at): New primitive. [9].
7123 * extents.c (symbol_to_glyph_layout): [9].
7124 Support new primitive `extents-at'.
7127 * extents.c (get_text_property_bytind):
7128 extent_at_bytind has another arg.
7131 * extents.c (syms_of_extents): New primitive.
7133 * file-coding.c (Fmake_coding_system): [1].
7134 * file-coding.c (subsidiary_coding_system): fix gcc warning
7135 * file-coding.c (syms_of_file_coding): [2].
7137 * fileio.c (Fexpand_file_name):
7138 * fileio.c (Fsysnetunam):
7139 * fileio.c (Ffile_exists_p):
7140 * fileio.c (Ffile_executable_p):
7141 * fileio.c (Fverify_visited_file_modtime):
7144 * fileio.c (syms_of_fileio): [2].
7146 * filelock.c (lock_file_1):
7147 * filelock.c (current_lock_owner):
7148 * filelock.c (lock_if_free):
7149 * filelock.c (lock_file):
7150 * filelock.c (unlock_file):
7153 * fns.c (concat): Fix gcc warning.
7156 * fns.c (Fold_member):
7158 * fns.c (Fold_memq):
7159 * fns.c (memq_no_quit):
7161 * fns.c (Fold_assoc):
7163 * fns.c (Fold_assq):
7164 * fns.c (assq_no_quit):
7166 * fns.c (Fold_rassoc):
7168 * fns.c (Fold_rassq):
7169 * fns.c (rassq_no_quit):
7171 * fns.c (Fold_delete):
7173 * fns.c (Fold_delq):
7174 * fns.c (delq_no_quit):
7175 * fns.c (Fremassoc):
7177 * fns.c (remassq_no_quit):
7178 * fns.c (Fremrassoc):
7179 * fns.c (Fremrassq):
7180 * fns.c (remrassq_no_quit):
7185 * frame-msw.c (mswindows_init_frame_1):
7186 * frame-msw.c (mswindows_delete_frame):
7187 Register popups with dialog code so keyboard traversing works.
7189 * frame-tty.c (tty_raise_frame_no_select): [1].
7192 * frame-x.c (x_set_frame_text_value):
7193 * frame-x.c (x_set_frame_properties):
7194 * frame-x.c (x_create_widgets):
7198 * frame.c (Fmouse_pixel_position): Minor doc fixes.
7200 * frame.h (wrap_frame): New.
7201 Macro like wrap_device.
7204 * general.c (SYMBOL):
7205 * general.c (syms_of_general):
7206 Major reorg. This is now just a wrapper and symbols themselves
7207 are listed in general-slots.h.
7209 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7210 * glyphs-msw.c (mswindows_resource_instantiate): [5].
7212 * glyphs-msw.c (mswindows_native_layout_instantiate):
7213 Add DS_CONTROL so keyboard traversal will work.
7216 * glyphs-widget.c (syms_of_glyphs_widget):
7217 Move some symbols to general-slots.h.
7220 * glyphs-x.c (xbm_instantiate_1):
7221 * glyphs-x.c (x_xbm_instantiate):
7222 * glyphs-x.c (x_xface_instantiate):
7223 * glyphs-x.c (autodetect_instantiate):
7224 * glyphs-x.c (cursor_font_instantiate):
7225 * glyphs-x.c (x_update_widget):
7226 * glyphs-x.c (x_widget_instantiate):
7227 * glyphs.c (bitmap_to_lisp_data):
7228 * glyphs.c (pixmap_to_lisp_data):
7231 * glyphs.c (syms_of_glyphs):
7235 * gui-x.c (print_widget_value):
7236 * gui-x.c (menu_separator_style_and_to_external):
7237 * gui-x.c (add_accel_and_to_external):
7238 * gui-x.c (button_item_to_widget_value):
7239 * gui-x.c (gui_items_to_widget_values_1):
7240 * gui-x.c (gui_items_to_widget_values):
7241 * gui-x.c (syms_of_gui_x):
7242 * gui-x.c (vars_of_gui_x):
7243 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
7247 Muleize, prototype changes matching gui-x.c.
7250 * gui.c (separator_string_p):
7251 * gui.c (gui_item_add_keyval_pair):
7252 * gui.c (make_gui_item_from_keywords_internal):
7253 * gui.c (signal_too_long_error):
7254 * gui.c (parse_gui_item_tree_item):
7255 * gui.c (syms_of_gui):
7256 * gui.c (vars_of_gui):
7258 menu-no-selection-hook moved here (used by MSWin).
7259 Move some symbols to general-slots.h.
7263 * insdel.c (get_buffer_pos_char):
7264 * insdel.c (get_buffer_range_char):
7267 * keymap.c (keymap_lookup_directly):
7268 * keymap.c (keymap_store):
7269 * keymap.c (ensure_meta_prefix_char_keymapp):
7270 * keymap.c (describe_map):
7272 Support new button modifiers.
7274 * lisp-disunion.h (wrap_object):
7275 * lisp-disunion.h (XSETOBJ):
7276 Rename make_obj to wrap_object.
7279 * lisp-union.h (make_int):
7280 * lisp-union.h (make_char):
7281 Support wrap_object.
7284 * lisp.h (LIST_LOOP):
7285 * lisp.h (EXTERNAL_LIST_LOOP):
7286 * lisp.h (LIST_LOOP_2):
7287 * lisp.h (EXTERNAL_LIST_LOOP_1):
7288 * lisp.h (EXTERNAL_LIST_LOOP_2):
7289 * lisp.h (EXTERNAL_LIST_LOOP_3):
7290 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7291 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7292 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7293 * lisp.h (EXTERNAL_ALIST_LOOP_5):
7294 * lisp.h (EXTERNAL_ALIST_LOOP_6):
7295 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7296 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7297 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7298 * lisp.h (struct Lisp_Symbol):
7299 * lisp.h (maybe_continuable_error_with_frob):
7300 Fix up section comments.
7301 Add new types for char to indicate usage.
7302 Delete symbols auto-generated from general-slots.h.
7303 Add prototypes for structured error functions.
7304 Add long comments describing looping macros and change interface
7305 so that lvalues are automatically declared.
7306 Add NO_DECLARE macro in case callers want to declare lvalues
7309 * lread.c (read_syntax_error):
7310 * lread.c (continuable_read_syntax_error):
7311 * lread.c (read_structure):
7312 * lread.c (sequence_reader):
7313 * lread.c (read_list_conser):
7314 * lread.c (read_compiled_function):
7315 Rename syntax_error and continuable_syntax_error to avoid clash
7316 with same-named structured error functions.
7318 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7319 * menubar-msw.c (populate_menu_add_item):
7320 * menubar-msw.c (populate_or_checksum_helper):
7325 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7326 Mule-ize whole file.
7328 * menubar.c (Fnormalize_menu_item_name): Add optimization.
7330 * mule-charset.c (Fmake_charset):
7331 * mule-wnnfns.c (Fwnn_set_param):
7334 * ntproc.c (create_child):
7335 * ntproc.c (Fwin32_set_current_locale):
7336 Add comments portending doom.
7339 * objects-msw.c (old_font_enum_callback_2):
7340 * objects-msw.c (font_enum_callback_1):
7341 * objects-msw.c (mswindows_enumerate_fonts):
7345 * objects-x.c (allocate_nearest_color):
7346 * objects-x.c (x_parse_nearest_color):
7347 * objects-x.c (x_initialize_color_instance):
7348 * objects-x.c (x_print_color_instance):
7349 * objects-x.c (x_finalize_color_instance):
7350 * objects-x.c (x_valid_color_name_p):
7351 * objects-x.c (x_initialize_font_instance):
7352 * objects-x.c (x_print_font_instance):
7353 * objects-x.c (valid_x_font_name_p):
7354 * objects-x.c (truename_via_FONT_prop):
7355 * objects-x.c (truename_via_random_props):
7356 * objects-x.c (truename_via_XListFonts):
7357 * objects-x.c (x_font_truename):
7358 * objects-x.c (x_font_instance_truename):
7359 * objects-x.c (x_font_instance_properties):
7360 * objects-x.c (x_list_fonts):
7361 * objects-x.c (x_find_charset_font):
7362 Mule-ize entire file.
7369 * print.c (std_handle_out_external):
7370 * print.c (debug_print_no_newline):
7371 * print.c (syms_of_print):
7372 Output to all debugger kinds in debug-print.
7373 Fix console-output code under MSWin to actually work.
7375 * process-nt.c (send_signal):
7376 * process-nt.c (nt_create_process):
7377 Use newer Unicode macros.
7379 * process-unix.c (unix_create_process):
7380 * process-unix.c (unix_canonicalize_host_name):
7381 * process-unix.c (unix_open_network_stream):
7387 * search.c (syms_of_search):
7390 * select-msw.c (mswindows_destroy_selection):
7393 * select-x.c (symbol_to_x_atom):
7396 * select.c (syms_of_select):
7399 * sound.c (Fplay_sound_file):
7403 * specifier.c (decode_specifier_type):
7404 * specifier.c (Fvalid_specifier_locale_type_p):
7405 * specifier.c (check_valid_locale_or_locale_type):
7406 * specifier.c (decode_locale):
7407 * specifier.c (decode_locale_type):
7408 * specifier.c (decode_locale_list):
7409 * specifier.c (check_valid_domain):
7410 * specifier.c (decode_specifier_tag_set):
7411 * specifier.c (Fcanonicalize_tag_set):
7412 * specifier.c (Fdefine_specifier_tag):
7413 * specifier.c (Fspecifier_tag_predicate):
7414 * specifier.c (check_valid_inst_list):
7415 * specifier.c (check_valid_spec_list):
7416 * specifier.c (decode_how_to_add_specification):
7417 * specifier.c (check_modifiable_specifier):
7418 * specifier.c (specifier_add_spec):
7419 * specifier.c (boolean_validate):
7420 * specifier.c (display_table_validate):
7423 * specifier.c (syms_of_specifier):
7424 Move some symbols to general-slots.h.
7428 * symbols.c (Fmapatoms):
7429 * symbols.c (Fapropos_internal):
7432 * symbols.c (set_default_buffer_slot_variable):
7433 * symbols.c (set_default_console_slot_variable):
7436 * symbols.c (defsymbol_massage_name_1):
7437 * symbols.c (defkeyword_massage_name):
7438 * symbols.c (deferror_1):
7439 * symbols.c (deferror):
7440 * symbols.c (deferror_massage_name_and_message):
7442 * symeval.h (DEFSYMBOL):
7443 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7445 * symbols.c (syms_of_symbols):
7449 * symsinit.h (init_win32): New.
7450 Also new is syms_of_dialog_mswindows.
7453 Add new Unicode macros, missing Cygwin wide-char functions,
7454 convenience conversion macros for Qmswindows_tstr, macros for
7455 encapsulating required MSWin <-> Cygwin filename conversions,
7456 prototype for dynamically-extracted (not in NT 3.51) functions.
7461 * tooltalk.c (Fadd_tooltalk_message_arg):
7462 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7463 * tooltalk.c (Fadd_tooltalk_pattern_arg):
7466 * tooltalk.c (syms_of_tooltalk):
7470 * unexnt.c (unexec):
7471 Fix up headers, declaration of unexec() to be more standard.
7473 2000-07-20 Martin Buchholz <martin@xemacs.org>
7475 * offix.h: Revert change to guard macros - they're used in offix.c!
7477 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7479 * lisp.h: Defsubred Fdelete.
7481 * console-msw.h: (msprinter_default_printer): Added.
7483 * console-msw.c (msprinter_canonicalize_console_connection):
7484 (msprinter_canonicalize_device_connection): Added.
7486 * device-msw.c (msprinter_default_printer):
7487 (Fmswingows_get_default_printer):
7488 (signal_enum_priner_error):
7489 (Fmswingows_printer_list): Added.
7491 2000-07-19 Martin Buchholz <martin@xemacs.org>
7493 * XEmacs 21.2.35 is released.
7495 2000-07-19 Martin Buchholz <martin@xemacs.org>
7497 * select-x.c (x_handle_selection_request):
7498 Text selected in xemacs and pasted into xterm failed to appear.
7499 Spelling fixes and cosmetic changes.
7501 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7503 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7504 XEmacs frame (fix for doubling chars in dialog boxes).
7506 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7508 * select.c (select_convert_in, select_convert_out):
7509 Don't call intern() every time.
7511 * select.c (Qselect_convert_in, Qselect_convert_out): New.
7512 * select.c (vars_of_select): Initialise them.
7514 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7516 * select.c (selection-coercible-types): New.
7518 * select.c (own-selection-internal):
7519 * select.c (get-selection-internal):
7520 MULE bug fix - these should default to COMPOUND_TEXT and not
7521 STRING for MULE. I think.
7523 * select.c (select_convert_out): Use selection-coercible-types
7524 to find types that we can attempt to perform coercions on.
7526 2000-07-18 Martin Buchholz <martin@xemacs.org>
7530 Add coding: cookie to identify encoding.
7532 * mule-canna.c (CANNA_mode_keys): make static.
7533 Use proper prototypes, even for functions of no arguments.
7534 Remove external prototype for Fding().
7536 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7538 * select.c (syms_of_select): Add missing DEFSUBR.
7540 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7542 * select.c (get_selection_internal, own_selection_internal):
7543 Make the type default to STRING, rather than placing a nil type
7544 into Vselection_alist.
7546 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7548 * gpmevent.c (tty_selection_exists_p):
7549 * gpmevent.c (tty_own_selection):
7550 Updated parameter lists.
7552 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7554 * select.h (selection-alist): Removed declaration.
7556 * select.h (get_local_selection):
7557 * select.c (get_local_selection):
7560 * select.h (convert_selection): Removed declaration.
7561 * select.c (convert_selection): Removed.
7562 This function belongs in Lisp.
7564 * select.h (select_convert_in): Declare.
7565 * select.h (select_convert_out): Declare.
7566 * select.c (select_convert_in): New.
7567 * select.c (select_convert_out): New.
7568 New conversion functions for other files to call.
7570 * select.h (select_notify_buffer_kill): Declare.
7571 * select.c (select_notify_buffer_kill): New.
7572 New functions that get called from kill-buffer.
7574 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7575 X-specific lisp code.
7577 * select.h: Declare some of the lisp-visible functions for
7580 * select.c (clean_local_selection_data): Removed. This was
7581 a disgusting function, and previously should have been in
7582 select-x.c in any case. The functionality is now provided
7583 in select-convert-from-integer (select.el).
7585 * select.c (available-selection-types): Fixed stupidity where
7586 INTEGER and ATOM got added twice. Also add STRING when we see an
7589 * select.c (get-selection-internal): Removed symbol stripping. No
7590 longer causes conversion when data comes from the internal cache.
7592 * select.c (syms_of_select): Added new functions.
7594 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7595 error checking - previously this called abort!
7597 * select-x.c (x_own_selection): Changed comment.
7599 * select-x.c (x_handle_selection_request): Use select_convert_out.
7600 Don't mess with selection-alist; it's an internal variable of select.c.
7602 * select-x.c (x_get_foreign_selection): Use select_convert_in.
7604 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7605 rather than messing with selection-alist.
7607 * select-msw.c (mswindows_get_foreign_selection):
7608 Use TO_INTERNAL_FORMAT rather than hacking.
7610 2000-07-14 Martin Buchholz <martin@xemacs.org>
7612 * process-unix.c (unix_open_multicast_group):
7613 (unix_open_multicast_group): Remove useless casts.
7615 2000-07-13 Martin Buchholz <martin@xemacs.org>
7617 * sound.c (Fplay_sound): Fix `unused variable' warning.
7619 * emacs.c (main): Use correct type for _environ on SCO5.
7621 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7623 * console.h (own_selection_method):
7624 * console.h (selection_exists_p_method):
7625 * console.h (available_selection_types_method): New.
7626 * console.h (register_selection_data_type_method): New.
7627 * console.h (selection_data_type_name): New.
7629 * console-msw.h (mswindows_destroy_selection): Declare it. New
7630 function & alist to track GlobalAlloc()'d handles that need
7631 releasing when the clipboard data gets replaced or emptied.
7633 * event-msw.c (mswindows_wnd_proc): Call it.
7635 * lisp.h, general.c (Qappend): New symbol representing a
7638 * select.c (own-selection-internal):
7639 * select.c (selection-exists-p):
7640 * select.c (available-selection-types): New.
7641 * select.c (register-selection-data-type): New.
7642 * select.c (selection-data-type-name): New. New functions to deal
7643 with device-specific selection data formats.
7644 * select.c (selection-converter-out-alist): Renamed.
7645 * select.c (selection-converter-in-alist): New.
7646 * select.c (selection-appender-alist): New. Added new alists.
7647 * select.c (syms_of_select, vars_of_select): Added new symbols &
7649 * select.c (get_local_selection): Split.
7650 * select.c: Removed spurious type checking - selections may now be
7651 of any type, not just strings.
7652 * select.c (own-selection-internal):
7654 * select.h, select.c (convert_selection): New. Created
7655 convert_selection() function based on get_local_selection().
7656 * select.h, select.c (QCF_*): New symbols representing mswindows
7658 * select.h, select.c (Qreplace_all, Qreplace_existing): New
7659 symbols representing `how-to-add' modes.
7661 * select-msw.c (x_sym_p): New.
7662 * select-msw.c (symbol_to_ms_cf): New.
7663 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7664 symbols & clipboard formats. Can also handle string names.
7665 * select-msw.c (mswindows_own_selection):
7666 * select-msw.c (mswindows_selection_exists_p):
7667 Added `data-type' parameter. Use it.
7668 * select-msw.c (mswindows_available_selection_types): New.
7669 * select-msw.c (mswindows_register_selection_data_type): New.
7670 * select-msw.c (mswindows_selection_data_type_name): New.
7671 * select-msw.c (mswindows_own_selection):
7672 * select-msw.c (mswindows_get_foreign_selection):
7673 * select-msw.c (mswindows_selection_exists_p): Rewrote.
7674 * select-msw.c (console_create_select_mswindows): Added new methods.
7675 * select-msw.c (mswindows_destroy_selection): New.
7676 * select-msw.c (Vhandle_alist): New list.
7677 * select-msw.c (mswindows_own_selection):
7679 * select-x.c (x_own_selection):
7680 * select-x.c (x_selection_exists_p):
7681 * select-x.c: Added some comments about maybe using new
7683 * select-x.c (x_own_selection):
7685 * specifier.c: Remove definition of Qappend (now in general.c)
7686 * specifier.c (syms_of_specifier): Remove Qappend.
7688 2000-07-12 Martin Buchholz <martin@xemacs.org>
7690 * config.h.in: Add socklen_t.
7692 * s/decosf4-0.h: No special compiler flags needed or desired.
7693 In particular, undefine _BSD for DEC OSF 4.0.
7695 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7697 * redisplay-msw.c (msprinter_frame_output_end): Added.
7698 (console_type_create_redisplay_mswindows): Referred the above.
7700 * frame.c (setup_frame_without_minibuffer): Do not create a
7701 default minibuffer frame on a printer device.
7703 * frame-msw.c (apply_dc_geometry): Added.
7704 (msprinter_start_page):
7705 (msprinter_init_frame_3):
7706 (msprinter_eject_page): Use it.
7708 * console-msw.h (struct msprinter_frame): Added pix_left and top,
7709 and removed residual duplex and orientation properties.
7711 2000-07-11 Martin Buchholz <martin@xemacs.org>
7713 * eval.c (function_argcount): Work around a DEC CC compiler bug.
7715 * unexalpha.c: Remove system prototypes from C sources!
7717 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
7719 * eval.c: Remove references to M-x edit-options in DEFUNs for
7720 `defvar' and `defconst'.
7722 2000-07-09 Martin Buchholz <martin@xemacs.org>
7724 * config.h.in: Remove SMART_INCLUDE hackery.
7727 * config.h.in: Don't use SMART_INCLUDE.
7729 * postgresql.h: Include libpq-fe.h here. Fix typo.
7730 * inline.c: Simply #include "postgresql.h"
7732 - Don't use SMART_INCLUDE
7733 - Use simply "const".
7734 - Use standard doc string conventions.
7735 - Use correct type for result of PQstatus.
7737 2000-07-09 Martin Buchholz <martin@xemacs.org>
7739 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7741 C++ compilation changes.
7742 * config.h.in (EXTERN_C): Define.
7743 * config.h.in (not): This is also a C++ keyword.
7744 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7745 * cm.c: Use EXTERN_C.
7746 * redisplay-tty.c: Use EXTERN_C.
7747 * sysdep.c: Use EXTERN_C. Remove Gould support.
7749 2000-07-09 Martin Buchholz <martin@xemacs.org>
7751 * general.c: Remove duplicate definition for Qfunction.
7753 2000-07-08 Ben Wing <ben@xemacs.org>
7755 * device-msw.c (msprinter_init_device):
7756 * device-msw.c (sync_printer_with_devmode):
7757 * device-msw.c (handle_devmode_changes):
7758 * device-msw.c (print_dialog_worker):
7759 * device-msw.c (Fmsprinter_apply_settings):
7760 * device-msw.c (hash_devmode):
7761 * device-msw.c (Fmsprinter_settings_despecialize):
7762 use Qmswindows_tstr, not Qctext.
7764 * vm-limit.c (check_memory_limits):
7765 avoid infinite loop printing warning messages.
7767 2000-07-05 Craig Lanning <lanning@scra.org>
7769 * Makefile.in.in: Add support for including the Windows resources
7770 when building with the cygwin and mingw targets.
7772 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
7773 not set or not correct.
7774 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
7775 (init_initial_directory): Don't try to use $PWD on the
7776 WIN32_NATIVE target.
7779 [[Add -mwindows to eliminate console window.]] not required --ben
7780 (HAVE_NATIVE_SOUND): removed; now handled by configure.
7781 (MAIL_USE_POP): removed; now handled by configure.
7783 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
7784 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
7785 (HAVE_NATIVE_SOUND): removed; now handled by configure.
7786 (MAIL_USE_POP): removed; now handled by configure.
7787 (ENCAPSULATE_STAT): from Dan Holmsand, added.
7788 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
7789 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
7791 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
7792 up from <winsock.h> via systime.h.
7793 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
7794 (getpagesize): from Dan Holmsand, added.
7795 Added #endif which was left dangling by Ben's mega patch; added
7796 comment to help prevent this in the future.
7798 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
7800 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7802 * console-msw.h (struct mswindows_device): Removed unnecessary
7803 cached device geometry values.
7804 Added update_tick and an accessor macro.
7805 (Lisp_Devmode): Added lrecord declaration.
7806 (struct msprinter_device): Contain devmode as a Lisp object.
7807 Added mswindows_get_selected_frame_hwnd();
7809 * console.h (struct console_methods): Indentation nitpicking.
7811 * device-msw.c (mswindows_init_device): Do not initialize geometry
7812 cache. Initialize update tick.
7813 (mswindows_device_system_metrics): Ask the device for its geometry.
7814 (global_free_2_maybe):
7815 (devmode_to_hglobal):
7816 (handle_printer_changes):
7817 (ensure_not_printing):
7818 (print_dialog_worker):
7819 (Fmsprinter_print_setup_dialog):
7820 (Fmsprinter_print_dialog):
7823 (Fmsprinter_page_setup_dialog): Added functions.
7824 (sync_printer_with_devmode):
7825 (handle_devmode_changes):
7826 (Fmsprinter_get_settings):
7827 (Fmsprinter_select_settings):
7828 (Fmsprinter_apply_settings):
7830 (Fmsprinter_settings_copy):
7831 (Fmsprinter_settings_despecialize):
7835 (hash_devmode): Added functions
7836 (syms_of_device_mswindows): Init devmode lrecord class.
7838 * device.h: Added an exfun for find-device.
7840 * event-msw.c (mswindows_wnd_proc): Do not update the cached
7841 geometry; although, recreate the device compatible DC.
7843 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
7844 (msprinter_init_frame_3):
7845 (msprinter_frame_property):
7846 (msprinter_internal_frame_property_p):
7847 (msprinter_frame_properties):
7848 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
7849 print job properties (will move to device settings).
7851 * lisp.h: Added symbols.
7853 * general.c (syms_of_general): Declared them.
7855 * hash.c (string_hash): Added.
7857 * lrecord.h (lrecord_type): Added devmode lrecord type.
7859 2000-07-02 Mike Sperber <mike@xemacs.org>
7861 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
7864 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
7866 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
7869 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
7871 * data.c (Fstring_to_number): Don't recognize floating point if
7874 2000-06-22 Martin Buchholz <martin@xemacs.org>
7876 * glyphs-widget.c (tab_control_query_geometry):
7877 (widget_query_geometry):
7878 (button_query_geometry):
7879 * glyphs.c (text_query_geometry):
7880 Enforce type correctness.
7882 2000-06-18 Martin Buchholz <martin@xemacs.org>
7884 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
7885 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
7887 2000-06-17 Martin Buchholz <martin@xemacs.org>
7889 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
7890 conflicts with gcc's fixincluded version of FOO.h.
7892 * glyphs.h (image_instance_geometry): Remove trailing `,'
7894 2000-06-08 Mike Alexander <mta@arbortext.com>
7896 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
7897 (shove_thread): Don't write the same output twice
7898 (make_ntpipe_output_stream): Increase priority of shove thread
7899 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
7901 (ntpipe_shove_closer): Don't delete the pipe until we're done with
7904 2000-06-12 Ben Wing <ben@xemacs.org>
7906 * s\mingw32.h (sigset):
7907 * s\windowsnt.h (sigset):
7908 rename msw_ to mswindows_ for consistency with general convention.
7910 2000-06-12 Ben Wing <ben@xemacs.org>
7913 * console-msw.c (mswindows_get_console_hwnd):
7914 * console-msw.c (mswindows_ensure_console_allocated):
7915 * console-msw.c (mswindows_hide_console):
7916 * console-msw.c (mswindows_show_console):
7917 * console-msw.c (mswindows_ensure_console_buffered):
7918 * console-msw.c (mswindows_output_console_string):
7919 * console-msw.c (mswindows_windows9x_p):
7921 * device-msw.c (mswindows_get_workspace_coords):
7922 * device-msw.c (mswindows_device_system_metrics):
7923 * dialog-msw.c (mswindows_popup_dialog_box):
7924 * event-msw.c (mswindows_wnd_proc):
7925 * frame-msw.c (mswindows_size_frame_internal):
7926 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7927 * menubar-msw.c (displayable_menu_item):
7928 * menubar-msw.c (mswindows_char_is_accelerator):
7930 * nt.c (mswindows_sigset):
7931 * nt.c (mswindows_sigrelse):
7932 * nt.c (mswindows_sigpause):
7933 * nt.c (mswindows_raise):
7934 * nt.c (timer_proc):
7936 * ntproc.c (find_child_console):
7937 * ntproc.c (sys_kill):
7939 * print.c (std_handle_out_external):
7940 * process-nt.c (find_child_console):
7941 * process-nt.c (send_signal_the_95_way):
7942 * process-nt.c (ensure_console_window_exists):
7943 * process-nt.c (nt_create_process):
7945 rename msw_ to mswindows_ for consistency with general convention.
7949 include nt.h, not syswindows.h.
7951 * nt.c (mswindows_fstat):
7952 * nt.c (mswindows_stat):
7953 prefix mswindows_ instead of attempting to directly override the
7954 library functions. fix declarations.
7957 include syswindows.h. move some sysdep.h stuff here.
7960 include syswindows.h, not <windows.h>.
7968 * sysdep.c (sys_fstat):
7969 * sysdep.c (sys_stat):
7970 call mswindows versions when appropriate.
7973 move mswin decls to nt.h.
7976 add long comment describing appropriate use of the various windows
7979 2000-06-11 Ben Wing <ben@xemacs.org>
7981 * device-x.c: Correct doc string for sixth arg of x-get-resource.
7983 2000-06-10 Ben Wing <ben@xemacs.org>
7985 * Makefile.in.in (release):
7986 Correction to make sure xemacs.exe always dumped when correct.
7990 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
7992 * buffer.c (set_buffer_internal):
7993 [[[[2]]]]: Remove HAVE_FEP code.
7995 * buffer.c (init_initial_directory):
7999 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8003 * callproc.c (call_process_cleanup):
8004 * callproc.c (Fold_call_process_internal):
8005 * callproc.c (child_setup):
8006 * callproc.c (getenv_internal):
8007 * callproc.c (init_callproc):
8008 * callproc.c (vars_of_callproc):
8009 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8010 __CYGWIN32__ -> CYGWIN.
8011 DOS_NT -> WIN32_NATIVE.
8012 Remove MSDOS support/references, converting to WIN32_NATIVE
8014 __MINGW32__ -> MINGW.
8015 Fix windows.h includes.
8016 Remove bogus HAVE_NTGUI.
8022 mswindows_message_outputted added for use in allowing startup
8023 errors on the console to be seen.
8025 * console-msw.c (msw_ensure_console_allocated):
8026 * console-msw.c (msw_output_console_string):
8027 * console-msw.c (DHEADER):
8028 * console-msw.c (DOPAQUE_DATA):
8029 * console-msw.c (DEVENT):
8030 * console-msw.c (DCONS):
8031 * console-msw.c (DCONSCDR):
8032 * console-msw.c (DSTRING):
8033 * console-msw.c (DVECTOR):
8034 * console-msw.c (DSYMBOL):
8035 * console-msw.c (DSYMNAME):
8038 * console-stream.c (stream_init_console):
8039 Fix text/binary problems.
8042 * device-msw.c (mswindows_finish_init_device):
8043 * device-msw.c (mswindows_delete_device):
8046 * device.c (handle_asynch_device_change):
8050 * dgif_lib.c (DGifOpenFileName):
8051 * dgif_lib.c (DGifOpenFileHandle):
8052 * dgif_lib.c (DGifGetLine):
8053 * dgif_lib.c (DGifGetPixel):
8054 Added config.h/lisp.h, fix up includes.
8061 * dired.c (file_name_completion):
8062 * dired.c (Ffile_attributes):
8063 * dired.c (syms_of_dired):
8067 * dumper.c (pdump_file_unmap):
8068 * dumper.c (pdump_load):
8072 * editfns.c (Ftemp_directory):
8073 * editfns.c (user_login_name):
8074 * editfns.c (Fuser_real_login_name):
8075 * editfns.c (get_home_directory):
8078 * elhash.c (finish_marking_weak_hash_tables):
8079 [[[[5]]]]: Fix GCC warnings.
8082 * emacs.c (mswindows_handle_hardware_exceptions):
8083 * emacs.c (make_arg_list_1):
8085 * emacs.c (Fkill_emacs):
8086 * emacs.c (Fdump_emacs):
8088 Fix problems with nested crashes, add long comment.
8090 * event-Xt.c (init_event_Xt_late):
8094 * event-msw.c (mswindows_dde_callback):
8095 * event-msw.c (mswindows_handle_sticky_modifiers):
8096 * event-msw.c (mswindows_wnd_proc):
8100 * events.c (character_to_event):
8104 * fileio.c (Ffile_name_directory):
8105 * fileio.c (Ffile_name_nondirectory):
8106 * fileio.c (directory_file_name):
8107 * fileio.c (Fexpand_file_name):
8108 * fileio.c (Fsubstitute_in_file_name):
8109 * fileio.c (Ffile_name_absolute_p):
8110 * fileio.c (check_executable):
8111 * fileio.c (Ffile_readable_p):
8112 * fileio.c (Ffile_accessible_directory_p):
8113 * fileio.c (Ffile_modes):
8114 * fileio.c (Funix_sync):
8115 * fileio.c (vars_of_fileio):
8118 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8120 Expand getdefdir defn.
8121 Fix bogus rename() comment.
8123 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
8124 to use standard XEmacs include files, e.g. sysfile.h, rather
8125 than system-specific includes.
8131 * frame.c (vars_of_frame):
8135 * getloadavg.c (getloadavg):
8137 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
8138 (We don't use it elsewhere in the code; just add a comment.)
8145 * glyphs-msw.c (mswindows_resource_instantiate):
8148 * glyphs-x.c (x_native_layout_instantiate):
8151 * gui-msw.c (Fmswindows_shell_execute):
8160 * lread.c (locate_file_in_directory_mapper):
8167 * mem-limits.h (get_lim_data):
8179 * nt.c (rva_to_section):
8180 * nt.c (mswindows_executable_type):
8182 Fix closedir() defn.
8185 [[[[8]]]]: *_OK defs moved to sysfile.h.
8194 * print.c (std_handle_out_external):
8198 * process-nt.c (nt_create_process):
8200 try to fix process quoting somewhat.
8202 * process-unix.c (unix_create_process):
8206 * process.c (vars_of_process):
8213 * realpath.c (xrealpath):
8216 * redisplay-tty.c (init_tty_for_redisplay):
8226 * sheap.c (more_static_core):
8227 * sheap.c (report_sheap_usage):
8231 * signal.c (alarm_signal):
8238 * strftime.c (zone_name):
8241 * symsinit.h (init_sunpro):
8245 commctrl.h not in Cygwin b20.1.
8249 * sysdep.c (sys_subshell):
8250 * sysdep.c (init_baud_rate):
8251 * sysdep.c (emacs_get_tty):
8252 * sysdep.c (emacs_set_tty):
8253 * sysdep.c (tty_init_sys_modes_on_device):
8254 * sysdep.c (init_system_name):
8255 * sysdep.c (sys_open):
8256 * sysdep.c (interruptible_open):
8257 * sysdep.c (sys_fopen):
8258 * sysdep.c (sys_mkdir):
8259 * sysdep.c (sys_rename):
8260 * sysdep.c (get_process_times_1):
8267 * sysdir.h (DIRENTRY_NONEMPTY):
8270 * sysdll.c (dll_init):
8276 added text/binary defs.
8282 * sysproc.h (EDESTADDRREQ):
8283 * sysproc.h (poll_fds_for_input):
8300 Always define WIN32_LEAN_AND_MEAN.
8302 * unexcw.c (unexec):
8306 * unexec.c (copy_text_and_data):
8307 * unexec.c (adjust_lnnoptrs):
8311 * unexnt.c (_start):
8314 2000-06-07 Ben Wing <ben@xemacs.org>
8316 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
8317 was used only as a model. We've long since extracted any useful
8318 logic or code out of this. (I just did an exhaustive search.)
8320 * s\msdos.h: Removed.
8322 * s\windows95.h: Removed.
8324 2000-06-10 Ben Wing <ben@xemacs.org>
8328 Don't use extern with fun defs.
8332 Remove nt\inc include.
8333 Remove getdisk, getdefdir. (The former is unused, the latter
8334 expanded in fileio.h.)
8337 * s\windowsnt.h (WIN32_NATIVE):
8338 * s\windowsnt.h (HAVE_STRCASECMP):
8340 Add long comment about preprocessor changes.
8341 Remove getdisk, getdefdir. (The former is unused, the latter
8342 expanded in fileio.h.)
8344 2000-06-10 Ben Wing <ben@xemacs.org>
8353 Remove bogus/unused NO_SOCK_SIGIO.
8355 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
8357 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8360 2000-06-04 Mike Sperber <mike@xemacs.org>
8362 * casetab.c (set_case_table): For `set-standard-case-table',
8363 actually deposit the new case tables where the rest of XEmacs can
8366 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
8368 * data.c (Faset): Don't cast XCHAR() to unsigned char.
8370 2000-06-05 Ben Wing <ben@xemacs.org>
8372 * callproc.c (child_setup): Don't do close_load_descs() under
8373 MS Windows. Put in a comment explaining why.
8375 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
8377 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8378 Toolkit shell" which breaks `kill-compilation' on Windows NT
8379 native, retaining STDERR handling improvements.
8381 2000-06-01 Andreas Jaeger <aj@suse.de>
8383 * s/s390.h: Support for S390, based on a patch by Martin
8384 Schwidefsky <schwidefsky@de.ibm.com>.
8386 2000-05-30 Andy Piper <andy@xemacs.org>
8388 * window.c (allocate_window):
8389 (make_dummy_parent):
8390 (Fset_window_configuration): use new hashtable type.
8392 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8393 (struct image_instantiator_methods):
8394 (struct Lisp_Image_Instance): make instance geometry signed.
8396 * glyphs.c (instantiate_image_instantiator):
8397 (image_instance_query_geometry):
8398 (image_instance_layout):
8399 (image_instance_layout):
8400 (query_string_geometry):
8401 (text_query_geometry):
8402 (image_instantiate):
8403 (image_instantiate):
8404 (cache_subwindow_instance_in_frame_maybe):
8405 (subwindow_query_geometry): make instance geometry signed.
8407 * glyphs-widget.c (widget_query_geometry):
8409 (button_query_geometry):
8410 (tree_view_query_geometry):
8411 (tab_control_query_geometry):
8412 (layout_query_geometry):
8414 (native_layout_layout): make instance geometry signed.
8416 2000-05-29 Olivier Galibert <galibert@pobox.com>
8418 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8421 * general.c (syms_of_general): Add Qfull_assoc symbol.
8423 * data.c (finish_marking_weak_lists): Mark full-assoc lists
8425 (decode_weak_list_type): Decode full-assoc type.
8426 (encode_weak_list_type): Encode full-assoc type.
8427 (Fmake_weak_list): Update doc string.
8429 2000-05-30 Andy Piper <andy@xemacs.org>
8431 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8433 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8434 (decode_hash_table_weakness): ditto.
8435 (Fhash_table_weakness): ditto.
8436 (Fhash_table_type): ditto.
8437 (finish_marking_weak_hash_tables): ditto.
8438 (hash_table_weakness_validate): ditto.
8439 (syms_of_elhash): ditto.
8441 2000-05-28 Martin Buchholz <martin@xemacs.org>
8443 * XEmacs 21.2.34 is released.
8445 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8447 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8449 (updating_line_start_cache): Gone.
8450 (regenerate_window): Replace resetting of VERTICAL_CLIP by
8451 generic code to force a minimum of 1 line laid out in the
8454 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8456 * glyphs.c (instantiate_image_instantiator): Check for initialized
8457 height & width no longer special cases IMAGE_NOTHING.
8458 (nothing_instantiate): Set height and width of instance.
8460 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
8462 * unexelf.c (unexec): Search for ".data" section.
8463 Initialize new_data2_offset from old_data_index.
8464 Remove redundant check for ElfW.
8466 2000-05-23 Andy Piper <andy@xemacs.org>
8468 * glyphs.c (get_image_instantiator_governing_domain): allow more
8469 specific domains as the governing domain rather than expecting an
8470 exact match. This fixes problems with layouts.
8472 2000-05-22 Andy Piper <andy@xemacs.org>
8474 * redisplay-output.c (compare_runes): check for non-images
8476 * glyphs.c (set_glyph_dirty_p): ditto.
8477 (update_glyph_cachel_data): ditto.
8479 * glyphs-widget.c (layout_post_instantiate): ditto.
8480 (layout_post_instantiate): ditto.
8482 * event-msw.c (mswindows_wnd_proc): warning removal.
8484 2000-05-12 Craig Lanning <CraigL@DyCon.com>
8486 * s\mingw32.h: Added #undef for CLASH_DETECTION.
8488 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8490 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8492 * nt.c (rva_to_section): mingw32 needs rva_to_section.
8493 (mswindows_executable_type): mingw32 now has enough headers for
8496 2000-05-20 Andy Piper <andy@xemacs.org>
8498 * console-msw.c (mswindows_output_last_error): ; -> ,
8500 2000-05-12 Andy Piper <andy@xemacs.org>
8502 * console-msw.c (FROB): compare ints with ints.
8504 2000-05-11 Andy Piper <andy@xemacs.org>
8506 * glyphs-x.c (x_finalize_image_instance): make minimal build
8509 2000-05-20 Ben Wing <ben@xemacs.org>
8512 * event-Xt.c (vars_of_event_Xt):
8513 move modifier-keys-are-sticky to event-stream.c.
8516 * event-msw.c (mswindows_enqueue_mouse_button_event):
8517 * event-msw.c (key_needs_default_processing_p):
8518 * event-msw.c (XEMSW_LCONTROL):
8519 * event-msw.c (mswindows_handle_sticky_modifiers):
8520 * event-msw.c (FROB):
8521 * event-msw.c (clear_sticky_modifiers):
8522 * event-msw.c (output_modifier_keyboard_state):
8523 * event-msw.c (output_alt_keyboard_state):
8524 * event-msw.c (mswindows_wnd_proc):
8525 * event-msw.c (mswindows_modifier_state):
8526 * event-msw.c (emacs_mswindows_handle_magic_event):
8527 implement sticky modifiers.
8530 * event-stream.c (vars_of_event_stream):
8531 move modifier-keys-are-sticky here.
8537 implement map-range-table.
8540 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
8542 * redisplay-tty.c (reset_tty_modes):
8543 (tty_redisplay_shutdown): Adjust argument type to
8544 tty_frame_output_end.
8546 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
8548 * eval.c (Fbacktrace): Don't output a line with only right
8551 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
8553 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8554 (Fpq_reset_poll): Ditto.
8556 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
8558 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8560 2000-05-16 Ben Wing <ben@xemacs.org>
8563 * buffer.c (dfc_convert_to/from_internal_format):
8564 * buffer.c (reinit_vars_of_buffer):
8565 Fix conversion functions to allow reentrancy.
8568 * console-msw.c (mswindows_output_last_error):
8569 New fun, generally useful -- output a human-readable
8570 version of GetLastError() on the console.
8573 * console-msw.h (struct mswindows_frame):
8574 Changes for DeferWindowPos. Declare mswindows_output_last_error().
8576 * console-stream.c (stream_output_begin):
8577 * console-stream.c (stream_output_end):
8578 * console-stream.c (stream_output_vertical_divider):
8579 * console-stream.c (stream_clear_region):
8580 * console-stream.c (stream_flash):
8581 * console-stream.c (console_type_create_stream):
8582 Delete blank stream methods, not needed.
8584 * console.h (struct console_methods):
8585 Split begin/end methods into window and frame.
8588 * event-msw.c (mswindows_handle_paint):
8589 * event-msw.c (output_alt_keyboard_state):
8590 * event-msw.c (mswindows_wnd_proc):
8591 * event-msw.c (vars_of_event_mswindows):
8592 Comment about problems with ignored-expose.
8593 Define mswindows-debug-events; not really implemented.
8595 * frame-msw.c (mswindows_init_frame_1):
8599 * glyphs-msw.c (begin_defer_window_pos):
8600 * glyphs-msw.c (mswindows_unmap_subwindow):
8601 * glyphs-msw.c (mswindows_map_subwindow):
8602 * glyphs-msw.c (mswindows_resize_subwindow):
8603 Use DeferWindowPos to reduce flashing when mapping/unmapping.
8605 * glyphs.c (make_image_instance_1):
8608 * gutter.c (Fredisplay_gutter_area):
8609 Use new begin/end methods.
8611 * lisp.h (Dynarr_new2):
8615 * redisplay-msw.c (mswindows_frame_output_begin):
8616 * redisplay-msw.c (mswindows_frame_output_end):
8617 * redisplay-msw.c (console_type_create_redisplay_mswindows):
8618 New begin/end methods -- handle DeferWindowPos.
8620 * redisplay-output.c (redisplay_move_cursor):
8621 * redisplay-output.c (redraw_cursor_in_window):
8622 * redisplay-output.c (redisplay_update_line):
8623 * redisplay-output.c (redisplay_output_window):
8624 New begin/end methods.
8627 * redisplay-tty.c (tty_frame_output_begin):
8628 * redisplay-tty.c (tty_frame_output_end):
8629 * redisplay-tty.c (console_type_create_redisplay_tty):
8630 New begin/end methods.
8633 * redisplay-x.c (x_window_output_begin):
8634 * redisplay-x.c (x_window_output_end):
8635 * redisplay-x.c (console_type_create_redisplay_x):
8636 New begin/end methods.
8638 * redisplay.c (redisplay_frame):
8639 * redisplay.c (Fredisplay_echo_area):
8640 New begin/end methods.
8641 use MAYBE_DEVMETH for clear_frame; it may not exist.
8643 * window.h (WINDOW_XFRAME):
8644 WINDOW_XFOO macros -- get locale and decode struct pointer.
8647 2000-05-12 Ben Wing <ben@xemacs.org>
8650 * emacs.c (ensure_no_quitting_from_now_on):
8651 * emacs.c (fatal_error_signal):
8652 * emacs.c (mswindows_handle_hardware_exceptions):
8654 * emacs.c (Fkill_emacs):
8655 * emacs.c (shut_down_emacs):
8656 * emacs.c (assert_failed):
8657 various improvements in fatal error handling.
8660 move preparing_for_armageddon to emacs.c.
8663 declare fatal_error_in_progress.
8666 * print.c (std_handle_out_external):
8667 * print.c (std_handle_out_va):
8668 * print.c (stderr_out):
8669 * print.c (stdout_out):
8670 use console under mswin when no standard output.
8671 don't do code conversion during fatal error.
8673 * scrollbar.c (Fscrollbar_page_up):
8674 * scrollbar.c (Fscrollbar_page_down):
8675 fix missing else. reindent.
8677 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
8681 * glyphs.h (GLYPH_CACHEL_DESCENT):
8682 (GLYPH_CACHEL_DESCENT):
8683 (GLYPH_CACHEL_DESCENT):
8684 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8685 used in case these are inline functions.
8686 Use more absurd values to error check.
8688 include window.h for error check functions.
8690 2000-05-11 Ben Wing <ben@xemacs.org>
8692 * cmdloop.c (Freally_early_error_handler):
8693 Display message box under windows; otherwise, message will disappear
8694 before it can be viewed.
8697 * console-msw.c (Fmswindows_message_box):
8698 * console-msw.c (FROB):
8699 * console-msw.c (syms_of_console_mswindows):
8700 Define new fun `mswindows-message-box'.
8701 #### I will merge this into `popup-dialog-box'; just give me
8705 * general.c (syms_of_general):
8706 Some new symbols used in `mswindows-message-box'.
8709 * glyphs.c (Fset_image_instance_property):
8710 put warning in this fun.
8713 * glyphs.h (GLYPH_CACHEL_WIDTH):
8714 * glyphs.h (GLYPH_CACHEL_ASCENT):
8715 * glyphs.h (GLYPH_CACHEL):
8716 * glyphs.h (GLYPH_CACHEL_GLYPH):
8717 define error-checking versions to try to catch a bug i've seen --
8718 redisplay gets in an infinite loop because the glyph width of the
8719 continuation glyph is 65535.
8722 Extern message-box stuff.
8724 * window.c (allocate_window):
8725 * window.c (make_dummy_parent):
8726 * window.c (Fset_window_configuration):
8727 Use EQUAL not EQ for subwindow caches to make them work a bit
8728 better. (Something is still very broken.)
8731 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
8733 * glyphs.c (image_instantiate): Suppress gcc warnings.
8734 (Fmake_image_instance): Fix doc string.
8735 * specifier.c (Fmake_specifier): Ditto.
8737 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
8739 * paths.h.in (PATH_LOCK): Removed.
8740 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8741 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8743 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
8745 * fns.c (Ffeaturep): Update e-mail address in doc-string.
8746 Document (featurep '(and xemacs 21.02)).
8748 2000-05-09 Ben Wing <ben@xemacs.org>
8750 * buffer.c (complex_vars_of_buffer):
8751 update modeline-format doc.
8754 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8757 timeline of all released versions of Emacs, for use in creating
8758 authorship comments and in synching up.
8760 * glyphs-widget.c (image_instantiator_buttons):
8761 * glyphs-widget.c (image_instantiator_edit_fields):
8762 * glyphs-widget.c (image_instantiator_combo_box):
8763 * glyphs-widget.c (image_instantiator_scrollbar):
8764 * glyphs-widget.c (image_instantiator_progress_guage):
8765 * glyphs-widget.c (image_instantiator_tree_view):
8766 * glyphs-widget.c (image_instantiator_tab_control):
8767 * glyphs-widget.c (image_instantiator_labels):
8768 * glyphs-widget.c (image_instantiator_layout):
8769 * glyphs-widget.c (image_instantiator_native_layout):
8770 rename decode_domain method to governing_domain.
8773 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
8774 * glyphs.c (add_entry_to_device_ii_format_list):
8775 make sure we don't put an entry more than once into the list.
8776 * glyphs.c (check_instance_cache_mapper):
8777 *************************************************************
8778 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8780 *************************************************************
8781 * glyphs.c (get_image_instantiator_governing_domain):
8782 clean up, expand on new concept of governing domain.
8783 * glyphs.c (instantiate_image_instantiator):
8784 * glyphs.c (allocate_image_instance):
8785 use governing_domain instead of cache_domain in naming.
8786 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
8787 * glyphs.c (make_image_instance_1):
8788 * glyphs.c (Fmake_image_instance):
8789 allow for any domain (not just device), and process the
8790 governing domain correctly. very big doc fix.
8791 * glyphs.c (Fimage_instance_domain):
8792 new primitive, to retrieve the governing domain of an image instance.
8793 * glyphs.c (image_instantiate):
8794 use new governing_domain stuff. this fixes a crash you could get
8795 by instantiating certain widget glyphs in frame locales. (should
8796 signal an error instead of crashing.)
8797 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
8798 * glyphs.c (Fglyphp): clean up doc.
8799 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
8800 * glyphs.c (syms_of_glyphs):
8801 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
8802 * glyphs.c (image_instantiator_format_create): add some comments about
8804 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
8805 for current-display-table. (Apparently Hrjove implemented in 1998 a
8806 design I wrote up in 1996, but didn't update the doc string.)
8808 * glyphs.h: clean up a doc string.
8809 * glyphs.h (governing_domain):
8810 * glyphs.h (struct image_instantiator_methods):
8811 changes for governing_domain stuff.
8814 * gutter.c (Fgutter_specifier_p):
8815 * gutter.c (Fgutter_size_specifier_p):
8816 * gutter.c (Fgutter_visible_specifier_p):
8818 * objects.c (Fcolor_specifier_p):
8819 * objects.c (Ffont_specifier_p):
8820 * objects.c (Fface_boolean_specifier_p):
8821 doc strings moved to make-*-specifier.
8823 * redisplay.c (add_disp_table_entry_runes_1):
8824 * redisplay.c (generate_fstring_runes):
8825 * redisplay.c (screen):
8826 add random comments and doc strings.
8829 * specifier.c (Fmake_specifier):
8830 major overhaul of this doc string.
8832 * specifier.c (Fvalid_specifier_domain_p):
8833 comment about the bogosity of image instances being domains.
8834 * specifier.c (decode_domain):
8835 now non-static, used in glyphs.c.
8836 * specifier.c (specifier_instance):
8837 comment about the bogosity of image instances being domains.
8838 * specifier.c (Fgeneric_specifier_p):
8839 move doc string to make-generic-specifier.
8840 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
8844 * specifier.h (DOMAIN_FRAME):
8845 * specifier.h (DOMAIN_LIVE_P):
8846 * specifier.h (DOMAIN_XDEVICE):
8848 add comments about problems with these macros.
8849 prototype for decode_domain.
8852 * toolbar.c (Ftoolbar_specifier_p):
8853 move doc string to `make-toolbar-specifier'.
8855 * window.c (window_unmap_subwindows_cache_mapper):
8856 *************************************************************
8857 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
8859 *************************************************************
8861 2000-05-09 Andy Piper <andy@xemacs.org>
8863 * glyphs.h: declare reset_frame_subwindow_instance_cache.
8865 * window.c (Fset_window_configuration): reset the frame subwindow
8866 cache and re-initialize the window subwindow caches.
8868 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
8870 2000-05-09 Ben Wing <ben@xemacs.org>
8872 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
8875 2000-04-26 Mike Woolley <mike@bulsara.com>
8877 * ntheap.c: Changed recreate_heap to limit the amount reserved
8878 for the heap to that which is actually available. Also now
8879 displays a message box (with some dignostics) in the event that
8880 it still can't start.
8882 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
8884 * callproc.c (Fold_call_process_internal): GCPRO path
8886 2000-05-08 Jan Vroonhof <jan@xemacs.org>
8888 Patch by Bill Perry.
8890 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
8891 back data instead of #ifdef.
8892 (Fscrollbar_page_down): ditto.
8894 2000-05-07 Ben Wing <ben@xemacs.org>
8897 Kludge for defining Qmswindows_tstr.
8900 * nt.c (open_input_file):
8901 * nt.c (open_output_file):
8902 * nt.c (rva_to_section):
8903 * nt.c (mswindows_executable_type):
8904 Move all memory-mapped-file routines here (some were in unexnt.c,
8905 which is bad because they are used by process-nt.c, and unexnt
8906 won't be around when portable dumping). Synched the above routines
8910 Removed ifdef'd out bogus code.
8911 Fixed some prototypes.
8914 * nt.h (OFFSET_TO_RVA):
8915 * nt.h (RVA_TO_OFFSET):
8916 * nt.h (RVA_TO_PTR):
8917 Moved the memory-mapped-file structures, macros and prototypes
8918 here, to parallel nt.c. ntheap.h should really be removed
8919 entirely, and it's a non-portable-dumper specific file.
8921 * ntheap.h (round_to_next):
8922 Moved the memory-mapped-file structures, macros and prototypes
8925 * ntproc.c (compare_env):
8926 Moved rva_to_section and mswindows_executable_type to nt.c.
8927 Moved compare_env to process-nt.c.
8928 ntproc.c will die, one day.
8930 * ntproc.c (sys_spawnve):
8931 Account for win32_ -> mswindows_.
8934 * process-nt.c (struct nt_process_data):
8935 * process-nt.c (ensure_console_window_exists):
8936 * process-nt.c (compare_env):
8937 * process-nt.c (nt_create_process):
8938 * process-nt.c (nt_kill_process_by_pid):
8939 * process-nt.c (syms_of_process_nt):
8940 * process-nt.c (vars_of_process_nt):
8941 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
8942 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
8943 changes). Eliminate our old `nt-quote-process-args' mechanism.
8944 Synch up nt_create_process with FSF 20.6 sys_spawnve.
8945 Move compare_env here from ntproc.c.
8947 * process.c (Fprocess_send_region):
8948 Takes an optional fourth argument, BUFFER, which should fix some
8949 problems with call-process.
8952 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
8955 Move ICC_BAR_CLASSES to syscommctrl.h.
8956 Add preliminary macros for MSWindows/Mule. More to come.
8959 * unexnt.c (unexec):
8960 open_output_file moved to nt.c.
8963 2000-05-05 Andy Piper <andy@xemacs.org>
8965 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
8966 instance from the frame cache also since GC may catch up too late
8967 to make frame deletion sane.
8969 2000-05-04 Andy Piper <andy@xemacs.org>
8971 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
8972 (x_finalize_image_instance): ungcpro on deletion.
8974 * glyphs.c (image_instantiator_format_create): give pointers a
8975 query geometry method so that the geometry is at least set.
8977 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
8978 initialize layouts if using widgets.
8980 2000-05-03 Andy Piper <andy@xemacs.org>
8982 * nt.c: remove bogus reference to sysmmsystem.h
8984 * gui-x.c (popup_selection_callback): fix no selection abort.
8986 2000-05-02 Andy Piper <andy@xemacs.org>
8988 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
8989 (mswindows_widget_instantiate): ditto.
8991 * glyphs-widget.c (initialize_widget_image_instance): initialize
8993 (widget_instantiate): cope with children and items in the same
8996 * glyphs.c (mark_image_instance): cope with children as a first
8998 (image_instance_equal): ditto.
8999 (image_instance_hash): ditto.
9000 (image_instance_changed): ditto.
9002 2000-04-30 Andy Piper <andy@xemacs.org>
9004 * glyphs.c (subwindow_query_geometry): new function. Return some
9006 (subwindow_instantiate): don't assign dimensions if none have been
9008 (image_instantiator_format_create): add subwindow_query_geometry.
9009 (print_image_instance): cope with layouts as widgets.
9011 2000-04-29 Andy Piper <andy@xemacs.org>
9013 * frame.c (delete_frame_internal): call
9014 free_frame_subwindow_instance_cache so that all subwindows are
9015 finalized before their parent.
9016 (mark_frame): remove subwindow_cachels.
9017 (Fmake_frame): remove subwindow_cachel manipulation.
9018 (allocate_frame_core): subwindow_instance_cache is a weak list.
9019 (delete_frame_internal): set subwindow_instance_cache to nil.
9021 * glyphs-msw.c (mswindows_finalize_image_instance): make double
9023 (mswindows_finalize_image_instance): use the device
9024 not the domain as the domain may have died already.
9026 * glyphs-x.c (x_finalize_image_instance): ditto.
9027 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9030 * redisplay-output.c (redisplay_unmap_subwindows): update for
9031 subwindow instance cache as a weak list.
9032 (redisplay_unmap_subwindows_maybe): ditto.
9033 (redisplay_unmap_subwindows_except_us): ditto.
9035 * glyphs.c (unmap_subwindow): error checking will check the domain
9036 so don't deal with it here. Don't use cachels anymore.
9037 (map_subwindow): ditto.
9038 (update_subwindow_cachel_data): remove old accessor names.
9039 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9040 (Fresize_subwindow): don't update cachel.
9041 (mark_subwindow_cachels):
9042 (update_subwindow_cachel_data):
9043 (add_subwindow_cachel):
9044 (get_subwindow_cachel_index):
9045 (update_subwindow_cachel):
9046 (reset_subwindow_cachels):
9047 (mark_subwindow_cachels_as_not_updated): deleted.
9048 (cache_subwindow_instance_in_frame_maybe): new function. Add a
9049 subwindow instance to the frame cache.
9050 (find_matching_subwindow): update for subwindow instance cache as
9052 (update_widget_instances): ditto.
9053 (image_instance_type_to_mask):inlined.
9054 (free_frame_subwindow_instance_cache): new function. finalize all
9055 subwindows that are instantiated.
9057 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9058 of cachel information.
9059 (IMAGE_INSTANCE_DISPLAY_X):
9060 (IMAGE_INSTANCE_DISPLAY_Y):
9061 (IMAGE_INSTANCE_DISPLAY_WIDTH):
9062 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9063 (XIMAGE_INSTANCE_DISPLAY_X):
9064 (XIMAGE_INSTANCE_DISPLAY_Y):
9065 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9066 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9067 remove subwindow_cachel structure and function references.
9068 (image_instance_type_to_mask): inline from glyphs.c
9070 * redisplay.c (redisplay_frame): remove subwindow_cachel
9073 * frame.h (struct frame): remove subwindow_cachels.
9074 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9076 * frameslots.h: add subwindow_instance_cache.
9078 * window.c (replace_window): check subwindow cache of replacement.
9079 (window_unmap_subwindows_cache_mapper):
9080 (window_unmap_subwindows): new functions. Unmap all subwindows
9081 cached on this window.
9082 (mark_window_as_deleted): unmap all subwindows.
9084 2000-04-27 Andy Piper <andy@xemacs.org>
9086 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9088 * glyphs-widget.c (widget_layout): return something.
9089 (layout_layout): return something. Fail if not initialized.
9090 (layout_query_geometry): ditto.
9091 (image_instantiator_native_layout): new function. Initialized the
9093 (widget_instantiate): don't do layout stuff here.
9095 * glyphs.c (instantiate_image_instantiator): reorded calling or
9096 instantiate and post_instantiate with layout in between.
9097 (image_instance_layout): be more selective about deciding whether
9098 the layout has been done or not.
9100 * glyphs.h (struct image_instantiator_methods): return a value
9103 2000-04-26 Andy Piper <andy@xemacs.org>
9105 * glyphs.c (allocate_image_instance): make initial width and
9106 height unspecified. Set initialized to 0.
9108 * syscommctrl.h new file. Encapsulates commctrl.h.
9110 * syswindows.h new file. Encapsulates windows.h.
9112 * ntplay.c: use new syswindows.h and syscommctrl.h header.
9114 * console-msw.h: ditto.
9116 * redisplay-tty.c (tty_output_display_block): remove layout references.
9118 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9119 window handle rather than just the frame.
9121 * glyphs.c (mark_image_instance): remove layout references.
9122 (print_image_instance): ditto.
9123 (image_instance_equal): ditto.
9124 (image_instance_hash): ditto.
9125 (decode_image_instance_type): ditto.
9126 (encode_image_instance_type): ditto.
9127 (image_instantiate): ditto.
9128 (allocate_glyph): ditto.
9129 (Fimage_instance_height): ditto.
9130 (Fimage_instance_width): ditto.
9131 (update_subwindow): ditto.
9133 * redisplay-x.c (x_output_display_block): recode for layouts as
9136 * redisplay-output.c (redisplay_output_layout): recode for layouts
9138 (compare_runes): remove layout references.
9140 * redisplay-msw.c (mswindows_output_display_block): recode for
9143 * glyphs-widget.c (image_instantiator_layout): remove
9144 layout_possible_dest_types.
9145 (layout_possible_dest_types): deleted.
9147 * glyphs.h (image_instance_type): remove layout references.
9148 (struct Lisp_Image_Instance): ditto. Add initialized flag.
9149 (IMAGE_INSTANCE_INITIALIZED): new accessor.
9150 (XIMAGE_INSTANCE_INITIALIZED): ditto.
9152 2000-04-25 Andy Piper <andy@xemacs.org>
9154 * glyphs-widget.c (image_instantiator_buttons):
9155 (image_instantiator_edit_fields):
9156 (image_instantiator_combo_box):
9157 (image_instantiator_scrollbar):
9158 (image_instantiator_progress_guage):
9159 (image_instantiator_tree_view):
9160 (image_instantiator_tab_control):
9161 (image_instantiator_labels):
9162 (image_instantiator_layout): call default post_instantiate method.
9163 (widget_post_instantiate): new function. Simply lays out the
9166 * glyphs.h (struct image_instantiator_methods): add
9167 post_instantiate method.
9169 * glyphs.c (instantiate_image_instantiator): add post_instantiate
9172 2000-04-23 Andy Piper <andy@xemacs.org>
9174 * glyphs.h (struct image_instantiator_methods): add
9175 decode_domain_method.
9176 (struct Lisp_Image_Instance): remove subwindow frame - it can be
9177 derived from the domain.
9178 (IMAGE_INSTANCE_FRAME): new accessor.
9179 (XIMAGE_INSTANCE_FRAME): ditto.
9181 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9182 instead of _SUBWINDOW_FRAME.
9183 (finalize_image_instance): ditto.
9184 (Fimage_instance_foreground): ditto.
9185 (Fimage_instance_background): ditto.
9186 (image_instantiate): ditto.
9187 (update_subwindow_cachel): ditto.
9188 (update_subwindow): ditto.
9189 (unmap_subwindow): ditto.
9190 (map_subwindow): ditto
9191 (subwindow_instantiate): ditto.
9192 * glyphs-msw.c (mswindows_update_widget): ditto.
9193 (mswindows_progress_gauge_instantiate): ditto.
9194 (mswindows_tab_control_update): ditto.
9195 * glyphs-x.c (x_update_widget): ditto.
9196 (x_widget_instantiate): ditto.
9197 (x_tab_control_instantiate): ditto.
9198 (x_tab_control_update): ditto.
9199 * event-msw.c (mswindows_wnd_proc): ditto
9201 * glyphs-widget.c (image_instantiator_layout): use
9202 subwindow_decode_domain.
9203 (image_instantiator_buttons): ditto.
9204 (image_instantiator_edit_fields): ditto.
9205 (image_instantiator_combo_box): ditto.
9206 (image_instantiator_scrollbar): ditto.
9207 (image_instantiator_progress_guage): ditto.
9208 (image_instantiator_tree_view): ditto.
9209 (image_instantiator_tab_control): ditto.
9210 (image_instantiator_labels): ditto.
9211 (image_instantiator_layout): ditto.
9213 * glyphs.c: add instance error checking to many functions.
9214 (instantiate_image_instantiator): decode device from cache_domain.
9215 (image_instantiate): partially rewrite by using
9216 decode_image_instantiator_domain to determine what domain the
9217 instance needs to be cached in.
9218 (decode_image_instantiator_domain): new function. Determine what
9219 domain the image needs to be cached in.
9220 (check_window_subwindow_cache): new error checking function.
9221 (check_instance_cache_mapper): ditto.
9222 (check_image_instance_structure): ditto.
9223 (subwindow_decode_domain): new function. Encodes a window as a
9224 subwindow's cache domain.
9225 (image_instantiator_format_create): use it for text and
9228 2000-04-21 Andy Piper <andy@xemacs.org>
9230 * glyphs.c (image_instance_device): new function.
9231 (image_instance_frame): new function.
9232 (image_instance_window): new function.
9233 (image_instance_live_p): new function.
9235 * window.c (mark_window_as_deleted): reset the subwindow_instance_
9238 * glyphs.h (struct Lisp_Image_Instance): device->domain.
9239 (IMAGE_INSTANCE_DOMAIN): new accessor.
9240 (XIMAGE_INSTANCE_DOMAIN): ditto.
9242 * glyphs-x.c (x_finalize_image_instance): device->domain.
9244 * glyphs-msw.c (init_image_instance_geometry): device->domain.
9245 (mswindows_finalize_image_instance): ditto.
9247 * glyphs-eimage.c (jpeg_instantiate): device->domain.
9248 (gif_instantiate): ditto.
9249 (png_instantiate): ditto.
9250 (tiff_instantiate): ditto.
9252 * glyphs.c (instantiate_image_instantiator): use domain rather
9254 (mark_image_instance): device -> domain.
9255 (print_image_instance): ditto.
9256 (finalize_image_instance): ditto.
9257 (image_instance_equal): ditto.
9258 (allocate_image_instance): ditto.
9259 (Fcolorize_image_instance): ditto.
9260 (query_string_geometry): ditto.
9261 (image_instantiate): ditto
9262 (query_string_font): ditto.
9263 (image_instantiate): ditto.
9264 (update_subwindow): ditto.
9265 (unmap_subwindow): ditto.
9266 (map_subwindow): ditto.
9267 (subwindow_instantiate): ditto.
9269 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9270 (DOMAIN_FRAME): ditto.
9271 (DOMAIN_WINDOW): ditto.
9272 (DOMAIN_LIVE_P): ditto.
9273 (XDOMAIN_DEVICE): ditto.
9274 (XDOMAIN_FRAME): ditto.
9275 (XDOMAIN_WINDOW): ditto.
9277 * specifier.c (Fvalid_specifier_domain_p): add image instances as
9278 a valid specifier domain.
9280 2000-04-19 Andy Piper <andy@xemacs.org>
9282 * glyphs-widget.c (syms_of_glyphs_widget): remove
9283 widget-callback-current-channel.
9284 (vars_of_glyphs_widget): ditto.
9287 * gui.c (get_gui_callback): revert to previous behaviour.
9289 2000-04-18 Andy Piper <andy@xemacs.org>
9291 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9292 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9293 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9295 * glyphs.c (image_instance_equal): add margin_width.
9296 (image_instance_hash): ditto.
9298 * glyphs-widget.c (widget_instantiate): deal with margin-width.
9299 (layout_query_geometry): ditto.
9300 (layout_layout): ditto.
9301 (syms_of_glyphs_widget): add margin-width.
9302 (image_instantiator_layout): allow margin-width.
9304 * glyphs.c (update_widget_instances): make a normal function.
9305 (syms_of_glyphs): remove Qupdate_widget_instances.
9308 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9309 so that we don't corrupt ideas about the last event or
9310 command. Remove widget-callback-current-channel fiddling.
9311 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9313 2000-05-01 Martin Buchholz <martin@xemacs.org>
9315 * XEmacs 21.2.33 is released.
9317 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
9319 * make-src-depend: Allow dots in header file name.
9321 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
9323 * mule-charset.h (struct charset_lookup): Add
9324 next_allocated_1_byte_leading_byte and
9325 next_allocated_2_byte_leading_byte.
9326 * mule-charset.c: Move above two variables so that those values
9329 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
9331 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9332 when string length is zero.
9333 (find_charsets_in_emchar_string): Ditto.
9335 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
9337 * lisp.h: extern Qdialog and Qmenubar.
9339 * gui-x.c: added events.h.
9340 also fixed typo which made the file uncompilable.
9342 * general.c: Added Qmenubar and Qdialog
9344 2000-04-28 Ben Wing <ben@xemacs.org>
9346 * frame-msw.c (mswindows_init_frame_1):
9347 * frame-msw.c (mswindows_mark_frame):
9348 * event-msw.c (mswindows_enqueue_dispatch_event):
9350 * console-msw.h (struct mswindows_frame):
9351 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9352 there are now three hash tables for callbacks.
9353 mswindows_enqueue_dispatch_event is no longer static.
9355 * dialog-x.c (maybe_run_dbox_text_callback):
9356 * dialog-x.c (dbox_descriptor_to_widget_value):
9357 switch to new cons3 form for callbacks.
9359 * glyphs-msw.c (mswindows_register_gui_item):
9360 * glyphs-msw.c (mswindows_widget_instantiate):
9361 * glyphs-msw.c (add_tree_item):
9362 * glyphs-msw.c (add_tab_item):
9363 new image instance parameter, so it can be passed to callback-ex.
9364 respect :callback-ex as well as :callback.
9366 * glyphs-widget.c (VALID_GUI_KEYWORDS):
9369 * glyphs.c (print_image_instance):
9370 prettify, e.g. now prints widget type.
9373 certain funs have new image instance parameter.
9376 * gui.c (get_gui_callback):
9377 * gui.c (gui_item_add_keyval_pair):
9378 * gui.c (gui_item_init):
9379 * gui.c (gui_add_item_keywords_to_plist):
9380 * gui.c (mark_gui_item):
9381 * gui.c (gui_item_hash):
9382 * gui.c (gui_item_equal):
9383 * gui.c (copy_gui_item):
9384 * gui.c (syms_of_gui):
9385 recognize callback-ex in a number of places.
9386 also, fix the annoying "can't get out of yes-no dialog" bug.
9389 * gui.h (struct Lisp_Gui_Item):
9390 recognize callback-ex in a number of places.
9392 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9393 new parameter in button_item_to_widget_value.
9395 * glyphs-x.c (x_update_widget):
9396 * glyphs-x.c (x_button_instantiate):
9397 * glyphs-x.c (x_button_update):
9398 * glyphs-x.c (x_progress_gauge_instantiate):
9399 * glyphs-x.c (x_edit_field_instantiate):
9400 * glyphs-x.c (x_combo_box_instantiate):
9401 * glyphs-x.c (x_tab_control_instantiate):
9402 * glyphs-x.c (x_label_instantiate):
9403 new image instance parameter in various places.
9406 * event-Xt.c (enqueue_Xt_dispatch_event):
9407 this fun gets exported.
9410 * gui-msw.c (mswindows_handle_gui_wm_command):
9411 handle both :callback and :callback-ex, and generate our own
9412 event because it's one of the callback-ex arguments.
9415 * gui-x.c (popup_selection_callback):
9416 handle both :callback and :callback-ex, and generate our own
9417 event because it's one of the callback-ex arguments.
9418 * gui-x.c (button_item_to_widget_value):
9419 * gui-x.c (gui_items_to_widget_values_1):
9420 * gui-x.c (gui_item_children_to_widget_values):
9421 * gui-x.c (gui_items_to_widget_values):
9422 new image instance parameter in various places.
9424 * fns.c (Freplace_list):
9425 fix small typo in doc string.
9428 declare enqueue_Xt_dispatch_event.
9430 2000-04-28 Ben Wing <ben@xemacs.org>
9433 * buffer.c (Frecord_buffer):
9434 * buffer.c (syms_of_buffer):
9435 delete record-buffer-hook.
9438 * fns.c (Freplace_list):
9439 * fns.c (syms_of_fns):
9440 new primitive replace-list.
9443 slot for old buffer-alist.
9449 * redisplay.c (redisplay_frame):
9450 * redisplay.c (syms_of_redisplay):
9451 * redisplay.c (vars_of_redisplay):
9452 new hook buffer-list-changed-hook.
9455 2000-04-27 Ben Wing <ben@xemacs.org>
9457 * extents.h: extern in_modeline_generation.
9459 * redisplay.c (generate_formatted_string_db): set
9460 in_modeline_generation.
9462 * extents.c (extent_changed_for_redisplay): don't mark redisplay
9463 flags if in modeline generation. otherwise frame-modified-tick
9464 is ticked far too often.
9465 Declare in_modeline_generation.
9467 2000-04-26 Ben Wing <ben@xemacs.org>
9469 * emacs.c (vars_of_emacs): document quick-build "error-checking"
9471 (vars_of_emacs): add quick-build as an error-checking option.
9472 A bit kludgy, but there doesn't seem much point in creating
9473 a real var for this.
9475 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9477 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
9479 * redisplay.h (struct display_line): Add a new variable,
9482 * redisplay.c (create_text_block): Set dl->line_continuation if
9484 (create_string_text_block): Ditto.
9485 (regenerate_window_incrementally): Use line_continuation instead
9486 of searching continuation glyph.
9487 (add_margin_runes): Call add_glyph_rune.
9488 (add_glyph_rune): Handle margin glyph.
9490 2000-04-20 Martin Buchholz <martin@xemacs.org>
9492 * filelock.c (fill_in_lock_file_name):
9494 Check for IS_ANY_SEP instead of '/'.
9496 Avoid generating gratuitous garbage. Call user_login_name() directly.
9497 Never check errno without first seeing that system call failed.
9498 (unlock_file): Add GCPRO.
9499 (Flock_buffer): Fix docstring.
9500 (Ffile_locked_p): Fix docstring. Add GCPRO.
9502 2000-04-19 Martin Buchholz <martin@xemacs.org>
9504 * sysdep.c (get_pty_max_bytes):
9505 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9506 strings longer than 252 bytes.
9508 * md5.c: Unconditionally include ANSI header <limits.h>
9510 * glyphs-x.c (convert_EImage_to_XImage):
9511 * lisp-union.h (union Lisp_Object):
9512 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9514 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
9516 * filelock.c (current_lock_owner): Remove unused variable o, p.
9518 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
9520 * callint.c: Remove multiply defined symbol Qlet
9521 (syms_of_callint): ditto.
9523 2000-04-14 Andy Piper <andy@xemacs.org>
9525 * general.c (syms_of_general): add last-command, this-command, let
9528 * lisp.h: declare various symbols.
9530 * glyphs.h: declare Qwidget_callback_current_channel;
9532 * glyphs-widget.c (syms_of_glyphs_widget): add
9533 Qgui_callback_current_channel.
9534 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9536 * gui-msw.c (mswindows_handle_gui_wm_command): bind
9537 widget-callback-current-channel when invoking the interactive
9538 arg. Also bind last-command and next-command when invoking the
9540 * gui-x.c (popup_selection_callback): ditto.
9542 * gui.c (get_gui_callback): massage args so that we are always
9543 calling eval. This allows us to add our own variable bindings
9546 * glyphs-x.c (x_button_instantiate): use
9547 gui_items_to_widget_values since this is GC safe.
9548 (x_progress_gauge_instantiate): ditto.
9549 (x_edit_field_instantiate): ditto.
9550 (x_label_instantiate): ditto.
9552 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9553 (emacs_Xt_event_widget_focus_out): new function
9554 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9556 (emacs_Xt_event_add_widget_actions): new function. add focus
9557 functions as actions.
9558 (init_event_Xt_late): use it.
9560 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
9562 * event-stream.c (Fdispatch_event): Doc fix.
9564 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
9566 * postgresql.c: Remove all references to PQsetenv*.
9568 * postgresql.h: Remove references to PGsetenvHandler object.
9569 * lrecord.h (lrecord_type): Ditto.
9571 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9573 * glyphs-msw.h (struct mswindows_image_instance_data): Added
9574 real_heigh and real_width members, and accessor macros for these.
9576 * glyphs-msw.c (init_image_instance_geometry): New function.
9577 (init_image_instance_from_dibitmap): Use it.
9578 (mswindows_resource_instantiate): Use it.
9579 (init_image_instance_from_xbm_inline): Use it.
9580 (mswindows_initialize_image_instance_mask): Use real bitmap
9582 (mswindows_create_resized_bitmap): Ditto.
9583 (mswindows_create_resized_mask): Ditto.
9585 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9586 and bitmap to their surface size.
9588 2000-04-11 Jan Vroonhof <jan@xemacs.org>
9590 * process-unix.c (unix_send_process): Guard against process MIA
9591 after Faccept_process_output.
9593 2000-04-11 Ben Wing <ben@xemacs.org>
9595 * eval.c (unbind_to_hairy): fix brokenness introduced by
9596 nanosecond speed improvements.
9598 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
9600 * sunplay.c (init_device): To play sounds correctly, the device
9601 apparently needs to be initialized at least once by XEmacs. Make
9604 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
9606 * redisplay.c (add_margin_runes): Add text image glyph
9609 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
9611 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9612 gcc is newer than 2.5.
9614 2000-04-06 Colin Rafferty <colin@xemacs.org>
9616 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9618 * fns.c (size_bit_vector):
9619 * alloc.c (size_vector):
9620 (make_vector_internal):
9621 (make_bit_vector_internal):
9622 (sweep_bit_vectors_1):
9623 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9625 2000-04-06 Andy Piper <andy@xemacs.org>
9627 * gmalloc.c (malloc): undo previous change.
9632 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
9634 * line-number.c (buffer_line_number): Revert to former version.
9636 2000-04-06 Andy Piper <andy@xemacs.org>
9638 * gmalloc.c (malloc): add error checking.
9643 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9644 button_item_to_widget_value arg.
9646 * glyphs-x.c (x_button_instantiate): add extra
9647 button_item_to_widget_value arg.
9648 (x_progress_gauge_instantiate): ditto.
9649 (x_edit_field_instantiate): ditto.
9650 (x_label_instantiate): ditto.
9652 * gui-x.c (gui_items_to_widget_values_1): add extra
9653 button_item_to_widget_value arg.
9654 (button_item_to_widget_value): add extra menu_item_p arg.
9656 * gui-x.h: change signature of button_item_to_widget_value.
9658 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9659 button_item_to_widget_value arg.
9661 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
9663 * buffer.h (struct buffer): auto_save_modified should be long.
9665 2000-04-05 Andy Piper <andy@xemacs.org>
9667 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9669 (button_query_geometry): give a little more room so that athena
9672 2000-04-05 Andy Piper <andy@xemacs.org>
9674 * faces.c (complex_vars_of_faces): The widget face should inherit
9675 the font of the gui-element face.
9677 2000-04-04 Andy Piper <andy@xemacs.org>
9679 * glyphs-x.c (x_button_update): new function. unconditionally
9680 update a button's state when the instance is dirty.
9681 (image_instantiator_format_create_glyphs_x): add x_button_update.
9682 (x_widget_instantiate): remove old resize cruft.
9684 2000-04-02 Andy Piper <andy@xemacs.org>
9686 * frame.c (change_frame_size_1): The introduction of gutters means
9687 that we need to allow 0 as a potential frame dimension.
9689 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
9691 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9692 image glyph if allow_cursor.
9693 (add_hscroll_rune): Don't allow cursor to border glyph.
9694 (create_text_block): Ditto.
9696 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9698 (redisplay_output_layout): Call ensure_face_cachel_complete for
9702 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
9704 * redisplay.c (add_glyph_rune): Adding text image as text runes.
9706 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9709 * redisplay-tty.c (tty_output_display_block): Delete the routine
9710 for text image glyph
9711 * redisplay-x.c (x_output_display_block): ditto
9712 * redisplay-msw.c (mswindows_output_display_block): ditto
9714 2000-02-02 Mike Alexander <mta@arbortext.com>
9716 Note: Some of these were committed by accident as part of other
9719 * regex.c (regex_compile): Avoid compiler warnings.
9721 * ntproc.c (sys_spawnve): Avoid compiler warnings.
9723 * nt.h: Declare term_ntproc correctly.
9725 * nt.c: Remove incorrect declaration of get_home_directory which
9726 is declared correctly in lisp.h.
9728 * keymap.c (get_keyelt): Avoid compiler warnings.
9729 (raw_lookup_key_mapper): Avoid compiler warnings.
9731 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9733 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9735 * filemode.c (mode_string): Avoid compiler warnings.
9737 * file-coding.c (Fcoding_system_aliasee): Add return statement to
9740 * events-mod.h: Undef some things that winuser.h defines differently.
9742 * data.c (Faset): Avoid compiler warnings.
9744 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9746 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
9748 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9749 Fall through to simple beep on error.
9750 Replace "extern" by real header file.
9752 * linuxplay.c: Use nativesound.h
9753 (play_sound_data): Return error code. Be less verbose on error.
9755 * sunplay.c: Use nativesound.h
9756 (play_sound_data): Return error code. Be less verbose on error.
9758 * ntplay.c: Use nativesound.h
9759 (play_sound_data): Return fake error code
9761 * sgiplay.c: Use nativesound.h
9762 (play_sound_data): Return error code
9764 * hpplay.c: Use nativesound.h, partially implement
9765 new error code. Break compilation until finished.
9766 (play_sound_data): error code.
9768 * nativesound.h (play_sound_file):
9769 (play_sound_data): Prototype in new header.
9771 2000-03-31 Andy Piper <andy@xemacs.org>
9773 * glyphs-widget.c: (button_query_geometry): new function. Adjust
9774 for toggle and radio buttons.
9775 (image_instantiator_buttons): use it.
9777 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
9779 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
9780 (x_update_horizontal_scrollbar_callback): Return if no mirror was
9781 found. Scrollbar event probably belonged to some old config.
9783 2000-03-31 Andy Piper <andy@xemacs.org>
9785 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
9787 (initialize_widget_image_instance): default layout to
9788 LAYOUT_HORIZONTAL rather than 0.
9789 (widget_instantiate): reverse the item list at the end rather than
9791 (layout_layout): re-code for the border text at the front of the
9792 item list rather than at the end.
9793 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
9794 provided by the user.
9795 (widget_query_geometry): comment.
9797 2000-03-30 Andy Piper <andy@xemacs.org>
9799 * glyphs-widget.c (image_instantiator_layout): allow standard
9800 widget keywords in layouts.
9802 * gutter.c (output_gutter): cope with nil gutter contents.
9804 * frame.c (Fset_frame_properties): add gutter docs.
9806 2000-03-29 Andy Piper <andy@xemacs.org>
9808 * toolbar-msw.c (TBSTYLE_FLAT): add.
9809 (mswindows_output_toolbar): minor fiddling.
9811 2000-03-29 Andy Piper <andy@xemacs.org>
9813 * gutter.c (output_gutter): force gutter size recalculation if
9814 what we are trying to display won't fit.
9815 (update_gutter_geometry): new function. A per-gutter version of
9816 update_frame_gutter_geometry.
9817 (update_frame_gutter_geometry): use it.
9818 (redraw_exposed_gutter): add extra debugging output.
9820 2000-03-28 Mike Alexander <mta@arbortext.com>
9822 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
9823 (pdump_file_unmap): Implement it on Windows
9824 (pdump_file_get): Save alocated handles for pdump_file_unmap
9826 2000-03-28 Andy Piper <andy@xemacs.org>
9828 * gui.c (get_gui_callback): treat Quit specially.
9830 2000-03-27 Andy Piper <andy@xemacs.org>
9832 * glyphs.c (image_instantiate): be careful to check in the same
9835 2000-03-27 Didier Verna <didier@xemacs.org>
9837 * config.h.in: define the proper SMART_INCLUDE macro.
9838 handle renaming of `foo_h_path' to `foo_h_file'.
9840 * database.c: ditto.
9844 * linuxplay.c: ditto.
9846 * terminfo.c: ditto.
9848 * tooltalk.h: ditto.
9850 2000-03-27 Andy Piper <andy@xemacs.org>
9852 * glyphs-msw.c (mswindows_update_widget): make sure the widget
9853 gets updated whenever the face might have changed.
9855 2000-03-26 Mike Alexander <mta@arbortext.com>
9857 * dumper.c (pdump_resource_free): Fix the comment.
9859 2000-03-21 Olivier Galibert <galibert@pobox.com>
9861 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
9863 2000-03-22 Mike Alexander <mta@arbortext.com>
9865 * dumper.c: Include Windows headers on Windows
9866 (pdump_resource_free): Add a body to the function
9867 (pdump_load): exe_name -> exe_path and add some comments.
9869 2000-03-25 Mike Alexander <mta@arbortext.com>
9871 * gui.c (copy_gui_item_tree): Return a value in all cases
9873 2000-03-21 Didier Verna <didier@xemacs.org>
9875 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
9877 (SMART_INCLUDE): new macro.
9878 (POSTGRES_INCLUDE): new macro to include postgresql headers from
9879 the proper location.
9881 * postgresql.c: use it.
9885 2000-03-24 Andy Piper <andy@xemacs.org>
9887 * gutter.c (redraw_exposed_gutters): must be "in display" when we
9890 2000-03-24 Andy Piper <andy@xemacs.org>
9892 * redisplay-output.c (compare_runes): use image_instance_changed
9893 to detect changes. Do not depend on glyphs_changed, only depend on
9895 (redisplay_output_layout): add debug messages.
9896 (compare_runes): ditto.
9898 * glyphs.h: declare new functions.
9899 (struct Lisp_Image_Instance): remove percent and associated
9902 * gui.h: declare new copying functions.
9904 * gui.c (copy_gui_item_tree): new function.
9905 (copy_gui_item): new function.
9906 (gui_item_id_hash): revert to standard hash.
9907 (gui_item_hash): ditto.
9908 (gui_item_hash_internal): deleted.
9909 (mark_gui_item): mark value.
9910 (gui_item_add_keyval_pair): add value.
9911 (gui_item_init): ditto.
9912 (gui_add_item_keywords_to_plist): ditto.
9913 (gui_item_equal): ditto.
9914 (syms_of_gui): add Q_value.
9916 * glyphs-x.c (x_progress_gauge_update): use pending items and
9917 value for setting the state.
9918 (x_update_widget): don't set items from pending here.
9920 * glyphs-widget.c (update_widget): update items here.
9921 (progress_gauge_set_property): use items for storing value. Put
9922 new value in pending items.
9924 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
9925 items for new value. Convert percent -> value.
9926 (mswindows_tab_control_update): don't update items here.
9928 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
9929 (update_subwindow): ditto.
9930 (image_instance_changed): new function. Compare hash values and
9931 past and present widget items.
9932 (image_instantiate): We more careful about where we instantiate
9934 (image_instantiate): add error checking.
9936 * gutter.c (syms_of_gutter): use -hook.
9938 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
9940 * console-tty.c (Fset_console_tty_input_coding_system): Use
9942 (Fset_console_tty_output_coding_system): Use Qterminal.
9943 (tty_init_console): Use Qkeyboard and Qterminal.
9945 2000-03-21 Ben Wing <ben@xemacs.org>
9947 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
9948 From Mike Alexander <mta@arbortext.com>.
9950 2000-03-21 Ben Wing <ben@xemacs.org>
9952 * event-msw.c (mswindows_need_event): Horrible kludge to fix
9953 process brokenness. Proper implementation to come.
9955 Rename call-process-internal to old-call-process-internal.
9956 New impl. in process.el.
9958 2000-03-21 Martin Buchholz <martin@xemacs.org>
9960 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
9962 2000-03-20 Andy Piper <andy@xemacs.org>
9964 * glyphs.c (full_list_hash): make hashes of the same elements in
9965 different orders return different values.
9967 2000-03-20 Martin Buchholz <martin@xemacs.org>
9969 * XEmacs 21.2.32 is released.
9971 2000-03-20 Martin Buchholz <martin@xemacs.org>
9973 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
9974 (DFC_MALLOC_USE_CONVERTED_DATA):
9975 Add aliasing-safe casts to allow use with char* or unsigned char*
9978 * eldap.c (Fldap_open):
9979 (Fldap_search_basic):
9982 Make C++-compilable.
9983 Make sure GCPRO'ed variables are initialized.
9984 Use temp variables to avoid repeated calls to Flength.
9986 2000-03-16 Martin Buchholz <martin@xemacs.org>
9989 Make sure PATH_MAX is always defined.
9990 Include limits.h for PATH_MAX.
9991 Deprecate use of MAXPATHLEN.
9993 2000-03-10 Martin Buchholz <martin@xemacs.org>
9995 * emacs.c: Add reinit_vars_of_fileio.
9996 * symsinit.h: Add reinit_vars_of_fileio.
9997 * fileio.c (reinit_vars_of_fileio): New.
9998 * fileio.c (Fmake_temp_name):
9999 Initialize temp_name random number from microseconds to make
10000 collisions even less likely. Initialize always at process startup
10001 time. (make-temp-name) used to return the same file name twice in
10003 Random stylistic fiddling.
10006 2000-03-20 Andy Piper <andy@xemacs.org>
10008 * glyphs.c (image_instantiate): allow text glyphs to be
10009 instantiated in the minibuffer window.
10011 2000-03-19 Andy Piper <andy@xemacs.org>
10013 * glyphs.c (image_instance_hash): be careful about which items we
10016 * glyphs-widget.c (tab_control_set_property): record into pending
10017 items rather than the actual items.
10019 * glyphs-x.c (x_update_widget): use pending items to update with.
10021 * glyphs-msw.c (mswindows_tab_control_update): use pending items
10024 * glyphs.c (mark_image_instance): mark pending items.
10026 * window.c (Fset_window_configuration): record the buffer.
10027 (Fselect_window): totally revert previous change which breaks many
10030 2000-03-18 Andy Piper <andy@xemacs.org>
10032 * glyphs-msw.c (mswindows_tab_control_update): force selected
10035 * glyphs.c (image_instantiate): don't allow the minibuffer as a
10036 window domain cache, otherwise we get inconsistencies at
10037 startup. There is something fishy at startup which can lead to the
10038 minibuffer being the selected window when the gutter content is
10041 * gui.c (parse_gui_item_tree_list): add probably unnecessary
10043 (parse_gui_item_tree_children): ditto.
10044 (parse_gui_item_tree_item): ditto.
10046 * glyphs.c (Fupdate_widget_instances): return something.
10048 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
10050 * window.c (Fselect_window): Undo 2000-03-17 change.
10052 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
10054 * postgresql.c (Fpq_setenv): Remove this turkey when linking
10055 against v7.0 libraries. Insta-coredump city until the postgres
10058 2000-03-17 Andy Piper <andy@xemacs.org>
10060 * faces.c (complex_vars_of_faces): don't give the widget face an
10061 inherited background pixmap.
10063 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10066 * event-stream.c (Fdispatch_non_command_events): return something.
10068 * gutter.c (output_gutter): use widget face.
10069 (clear_gutter): ditto.
10071 * NEWS: adjust again.
10073 * window.c (Fselect_window): make sure this runs to completion to
10074 avoid oddities with Fset_window_configuration.
10075 (Fcurrent_window_configuration): in general do not save the
10076 minibuffer as the selected window.
10078 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10080 2000-03-16 Olivier Galibert <galibert@pobox.com>
10082 * emacs.c (Frunning_temacs_p): Revert previous patch.
10083 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10085 2000-03-16 Andy Piper <andy@xemacs.org>
10087 * glyphs-x.c (x_tab_control_update): if no widget values then
10090 * NEWS: update for new features.
10092 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10093 synthetic event to the native system.
10094 (reinit_vars_of_event_Xt): set force_event_pending to
10095 emacs_Xt_force_event_pending.
10097 * events.h (struct event_stream): add force_event_pending.
10099 * specifier.c (recompute_one_cached_specifier_in_window): add
10102 * redisplay.c (redisplay_frame): don't call
10103 update_frame_subwindows. Reset subwindow cachels when
10104 subwindows_changed, removing this was an optimization too far.
10106 * redisplay-output.c (compare_runes): reorganize so that we catch
10107 glyph changes when we want them. Set optimize_output when this
10108 would help layouts.
10109 (redisplay_output_layout): remove frame_really_changed, use
10110 optimize_output instead.
10112 * redisplay-msw.c (mswindows_output_display_block): reset
10113 optimize_output after outputting a glyph.
10114 * redisplay-x.c (x_output_display_block): ditto.
10115 * redisplay-tty.c (tty_output_display_block): ditto.
10117 * gutter.c: (specifier_vars_of_gutter): use new spec changed
10119 (gutter_specs_changed): do specific gutter positions.
10120 (top_gutter_specs_changed): new function. Only update the
10121 specified gutter specs.
10122 (bottom_gutter_specs_changed): ditto.
10123 (left_gutter_specs_changed): ditto.
10124 (right_gutter_specs_changed): ditto.
10126 * gui.c (gui_item_hash_internal): new function, does a real hash.
10127 (gui_item_id_hash): use it.
10128 (gui_item_hash): hash the eval'ed gui_item.
10130 * gui-x.c (popup_selection_callback): send an eval event to call
10131 Fupdate_widget_instances.
10133 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10134 to call Fupdate_widget_instances.
10136 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10137 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10139 * glyphs.c: (update_frame_subwindows): deleted.
10140 (Fupdate_widget_instances): new function for updating the dirty
10141 state of widgets that might have changed.
10142 (syms_of_glyphs): add Qupdate_widget_instances.
10143 (full_list_hash): hash a list completely.
10144 (image_instance_hash): use it for items and properties.
10146 * frame-msw.c (mswindows_size_frame_internal): remove unused
10149 * faces.h (struct face_cachel): fix comment.
10151 * event-stream.c (Fdispatch_non_command_events): new
10152 function. Process non-command events, forcing an event cycle
10154 (syms_of_event_stream): declare.
10155 (event_stream_force_event_pending): new function. Force an event
10156 on the native event queue so that an event cycle will occur next
10160 (struct ntpipe_shove_stream):
10161 (mswindows_enqueue_dispatch_event):
10162 (mswindows_dequeue_dispatch_event):
10163 (mswindows_cancel_dispatch_event):
10164 (mswindows_pump_outstanding_events):
10165 (mswindows_drain_windows_queue):
10166 (mswindows_handle_paint):
10167 (mswindows_wnd_proc):
10168 (mswindows_key_to_emacs_keysym):
10169 (get_process_input_waitable):
10170 (emacs_mswindows_delete_stream_pair): re-indent file.
10171 (mswindows_need_event): do not process further fds if the windows
10172 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10173 fixes the 100% cpu problem.
10174 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10176 2000-03-15 Olivier Galibert <galibert@pobox.com>
10182 * emacs.c: Moved dump file searching to dumper.c.
10183 (Frunning_temacs_p): Fixed.
10185 * alloc.c: Moved everything pdump-related to dumper.c. Removed
10186 last_lrecord_type_index_assigned.
10188 2000-02-20 Olivier Galibert <galibert@pobox.com>
10190 * symsinit.h: Added reinit parameter to init_console_stream
10193 * lisp.h: Added file parameter to pdump_load declaration.
10195 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10196 support. Added dump file searching.
10198 * config.h.in: Added EMACS_PROGNAME.
10200 * console-stream.c (init_console_stream): Fix reinitialisation
10201 when running from temacs.
10203 * alloc.c (pdump): Add id support.
10204 (pdump_load): Add file parameter and signature/id support.
10206 * Makefile.in.in: Add full pdump support.
10208 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
10210 * postgresql.c: Update documentation to reflect latest code
10212 (print_result): Show tuple counts in printed representation when
10214 (Fpq_put_nbytes): MULE-ize.
10215 (Fpq_get_line_async): Ditto.
10217 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
10219 * postgresql.c (Fpq_lo_import): Fix return value.
10220 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10222 2000-03-13 Ben Wing <ben@xemacs.org>
10224 * alloc.c (pdump_load):
10225 Fix compile warning under mswin.
10227 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
10229 * postgresql.c: Mule-ization, bug fixes.
10230 Use PG_CODING to encapsulate coding system name changes.
10231 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10232 (pg-coding-system): Create.
10234 (Fpq_conn_defaults): Mule-ize.
10235 (Fpq_connectdb): Mule-ize & bug fix.
10236 (Fpq_connect_start): Mule-ize.
10237 (Fpq_set_client_encoding): Mule-ize.
10238 (Fpq_finish): Document `DEAD' connection status.
10239 (Fpq_clear): Ditto.
10240 (Fpq_pgconn): Mule-ize.
10241 (Fpq_exec): Mule-ize & bug fix.
10242 (Fpq_send_query): Ditto.
10243 (Fpq_get_result): Ditto.
10244 (Fpq_res_status): Mule-ize.
10245 (Fpq_result_error_message): Mule-ize.
10246 (Fpq_ntuples): fix comments.
10247 (Fpq_fname): Mule-ize.
10248 (Fpq_fnumber): Mule-ize.
10249 (Fpq_ftype): fix comments.
10250 (Fpq_get_value): Mule-ize.
10251 (Fpq_cmd_status): Ditto.
10252 (Fpq_cmd_tuples): Ditto.
10253 (Fpq_oid_value): Ditto.
10254 (Fpq_notifies): Ditto.
10255 (Fpq_lo_import): Ditto.
10256 (Fpq_lo_export): Ditto.
10257 (Fpq_get_line): Ditto.
10258 (Fpq_put_line): Mule-ize and bug fix.
10259 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10261 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
10263 * postgresql.c (vars_of_postgresql): Mule-ize.
10264 (Fpq_conn_defaults): Ditto.
10266 2000-03-12 Ben Wing <ben@xemacs.org>
10268 * alloc.c (Fmake_byte_code):
10269 * alloc.c (debug_string_purity_print):
10270 * alloc.c (pdump_backtrace):
10271 * alloc.c (pdump_get_indirect_count):
10272 * alloc.c (pdump_register_sub):
10273 * alloc.c (pdump_register_object):
10274 * alloc.c (pdump_register_struct):
10275 * alloc.c (pdump_dump_data):
10276 * alloc.c (pdump_reloc_one):
10280 * console-msw.c (GetConsoleHwnd):
10281 * console-msw.c (msw_hide_console):
10282 * console-msw.c (msw_show_console):
10283 * console-msw.c (msw_ensure_console_buffered):
10284 * console-msw.c (msw_output_console_string):
10285 * console-msw.c (console_type_create_mswindows):
10287 a) Added functions to manipulate the console window for use with
10290 b) Added support for writing text to the console, which is now
10291 used under Windows when xemacs is not being run non-interactively,
10292 to write text that would otherwise be destined for stdout because
10293 under these circumstances, text written to stdout tends to
10294 disappear and not be seen.
10298 * event-Xt.c (x_event_to_emacs_event):
10299 * event-Xt.c (describe_event_window):
10300 * events-mod.h (XEMACS_MOD_CONTROL):
10302 * events.c (Fmake_event):
10303 * events.c (character_to_event):
10304 * events.c (event_to_character):
10305 * events.c (format_event_object):
10306 * events.c (Fevent_modifiers):
10308 * events.h (struct key_data):
10309 * events.h (struct button_data):
10310 * events.h (struct misc_user_data):
10311 * frame-x.c (Fcde_start_drag_internal):
10312 * frame-x.c (Foffix_start_drag_internal):
10313 * gpmevent.c (Freceive_gpm_event):
10315 * keymap.c (bucky_sym_to_bucky_bit):
10316 * keymap.c (control_meta_superify):
10317 * keymap.c (make_key_description):
10318 * keymap.c (keymap_lookup_directly):
10319 * keymap.c (create_bucky_submap):
10320 * keymap.c (keymap_store):
10321 * keymap.c (define_key_check_and_coerce_keysym):
10322 * keymap.c (define_key_parser):
10323 * keymap.c (define_key_alternate_name):
10324 * keymap.c (Fdefine_key):
10325 * keymap.c (raw_lookup_key_mapper):
10326 * keymap.c (struct map_keymap_unsorted_closure):
10327 * keymap.c (map_keymap_unsorted_mapper):
10328 * keymap.c (map_keymap_sort_predicate):
10329 * keymap.c (map_keymap_sorted):
10330 * keymap.c (accessible_keymaps_mapper_1):
10331 * keymap.c (where_is_recursive_mapper):
10332 * keymap.c (describe_map_mapper):
10333 * keymap.c (describe_map_sort_predicate):
10334 * keymap.c (describe_map):
10335 * keymap.c (complex_vars_of_keymap):
10336 And a number of other files, the key modifier preprocessor
10337 constants that xemacs uses have names that conflict with constants
10338 defined under MS Windows for other purposes, so they were renamed
10339 to begin with the prefix XEMACS_. The variables that hold such
10340 modifiers were changed to consistently be of type int to fix
10341 various compile warnings.
10343 * console.c (complex_vars_of_console):
10346 * device-msw.c (mswindows_finish_init_device):
10347 * device-msw.c (msw_get_workspace_coords):
10348 * device-msw.c (mswindows_device_system_metrics):
10349 and various other files, added support for a new
10350 device property called offset-workspace which returns the position
10351 of the upper left corner of the workspace area and goes along with
10352 the existing size-workspace property.
10355 * dialog-msw.c (push_bufbyte_string_as_unicode):
10356 * dialog-msw.c (mswindows_popup_dialog_box):
10357 Added support for XEmacs-style accelerator specifications in
10358 button text. Note: I didn't add support for this under X Windows,
10359 and somebody needs to do this.
10362 * dialog.c (Fpopup_dialog_box):
10363 Documented the support for accelerators that was just mentioned.
10365 editfns.c (get_home_directory): Changed behavior under Windows
10366 when HOME not defined; former behavior was irretrievably broken.
10369 * emacs.c (main_1):
10371 * minibuf.c (clear_echo_area_internal):
10372 * minibuf.c (echo_area_append):
10374 * print.c (std_handle_out_external):
10375 * print.c (std_handle_out_va):
10377 * print.c (write_string_to_stdio_stream):
10378 * print.c (output_string):
10379 * print.c (debug_print):
10380 * print.c (debug_backtrace):
10381 * print.c (debug_short_backtrace):
10382 Cleaned up the code that prints text to stdout so that this can be
10383 changed to output into a console window instead under MS Windows,
10384 as described above.
10387 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10388 * eval.c (internal_catch):
10389 * eval.c (unwind_to_catch):
10390 * eval.c (throw_or_bomb_out):
10391 * eval.c (condition_case_1):
10392 * eval.c (signal_1):
10393 * eval.c (check_error_state_sanity):
10394 * eval.c (call_with_suspended_errors_1):
10395 * eval.c (call_with_suspended_errors):
10396 * eval.c (reinit_vars_of_eval):
10397 Added code to catch throw loops and check for a pesky bug that may
10401 * event-msw.c (key_needs_default_processing_p):
10402 * event-msw.c (mswindows_wnd_proc):
10403 * event-msw.c (mswindows_modifier_state):
10404 * event-msw.c (emacs_mswindows_quit_p):
10405 * event-msw.c (vars_of_event_mswindows):
10406 a) Added support for using the alt key to select menu items as is
10407 standard under MS Windows. This is controlled using the variable
10408 menu-accelerator-enabled, just like under X Windows. There is an
10409 option on the options menu to turn this support on. I really
10410 think that it should be on by default under Windows, but I'm not
10411 going to make this change yet.
10413 b) Added support for dynamic display size changes under Windows.
10416 * event-stream.c (maybe_echo_keys):
10417 * event-stream.c (Fnext_event):
10418 * event-stream.c (command_builder_find_leaf):
10419 * event-stream.c (lookup_command_event):
10420 * event-stream.c (execute_command_event):
10421 * event-stream.c (pre_command_hook):
10422 * event-stream.c (post_command_hook):
10423 * event-stream.c (syms_of_event_stream):
10424 * event-stream.c (vars_of_event_stream):
10425 * event-stream.c (complex_vars_of_event_stream):
10426 * events.h (struct command_builder):
10428 a) Tried to clean up a little bit the horribly written x-specific
10429 accelerator code that crept into this file. I moved this code
10430 into menubar-x.c where it belongs. I also needed to move the
10431 command builder structure into the file events.h because it is
10432 accessed directly by this accelerator code. What I didn't do, but
10433 which should be done at some point, is to properly abstract this
10434 code using device methods instead of the kludgy way that it
10435 currently hooks into the event code.
10437 b) Added the lisp variables this-command-properties and
10438 last-command- properties, which should be used to synchronize two
10439 adjacent commands in preference to playing games with the variable
10440 this-command, which is typically what happens.
10442 c) Added some slightly nasty code to hook into the lisp support
10443 for shifted- motion-key selection. This is actually necessary for
10444 somewhat complicated reasons, which are described in
10445 simple.el. (NB: I think the proper thing would be to have the code
10446 that calls the pre and post command hooks also call out to generic
10447 lisp functions in simple.el, where all built-in stuff could be
10448 added. I will think about this more.)
10450 * event-unixoid.c (poll_fds_for_input):
10451 * lread.c (readchar):
10452 * redisplay-tty.c (tty_clear_frame):
10453 * redisplay-x.c (x_get_gc):
10454 * signal.c (interrupt_signal):
10455 And a whole bunch of other files: fixed up places that printed
10456 directly to stderr to instead call the function stderr_out so that
10457 the changes I made under Windows work correctly.
10459 * filemode.c (mode_string):
10463 * frame-msw.c (mswindows_size_frame_internal):
10464 Fixed the computation of frame size and position to keep the frame
10465 within the workspace area, rather than within the physical
10466 dimensions of the screen, so that the frame doesn't overlap window
10467 manager decorations, such as the start menu and toolbar, typically
10468 at the bottom of the screen.
10470 * frame.c (vars_of_frame):
10471 Changed the default frame title format under MS Windows to consist
10472 of buffername-XEmacs, which is standard under MS Windows. I think
10473 it might be a good idea to change this everywhere because I think
10474 it is superior to the current frame title format, but this is the
10475 kind of change that is likely to cause some people to get annoyed,
10476 so I'm not making it.
10478 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10480 * gui-msw.c (mswindows_handle_gui_wm_command):
10481 Fixed compile warnings.
10484 * gui-x.c (strdup_and_add_accel):
10485 * gui-x.c (button_item_to_widget_value):
10487 Added code to automatically put an accelerator onto the beginning
10488 of menu items that don't have one as is now the standard, and is
10489 described more later. Also fixed things so that the menu item
10490 name can be an evaluated expression, again a new standard.
10493 * gui.c (gui_item_add_keyval_pair):
10494 * gui.c (make_gui_item_from_keywords_internal):
10495 * gui.c (gui_add_item_keywords_to_plist):
10496 * gui.c (gui_item_accelerator):
10497 * gui.c (gui_name_accelerator):
10498 * gui.c (gui_item_included_p):
10499 * gui.c (gui_item_display_flush_left):
10500 * gui.c (gui_item_display_flush_right):
10501 * gui.c (parse_gui_item_tree_item):
10502 * gui.c (parse_gui_item_tree_children):
10503 * gui.c (parse_gui_item_tree_list):
10504 Mule-ized. Cleanup. GCPRO addition.
10506 * line-number.c (buffer_line_number):
10508 * lisp.h (EMACS_INT_MAX):
10509 Added the manifest constant EMACS_INT_MIN corresponding to the
10510 existing constant EMACS_INT_MAX. This is partially to fix compile
10511 warnings under Windows, and partly for cleanliness.
10514 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10515 * menubar-msw.c (msw_translate_menu_or_dialog_item):
10516 * menubar-msw.c (displayable_menu_item):
10517 * menubar-msw.c (populate_menu_add_item):
10518 * menubar-msw.c (populate_or_checksum_helper):
10519 * menubar-msw.c (populate_menu):
10520 * menubar-msw.c (update_frame_menubar_maybe):
10521 * menubar-msw.c (prune_menubar):
10522 * menubar-msw.c (msw_char_is_accelerator):
10523 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10524 * menubar-msw.c (mswindows_handle_wm_command):
10525 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10526 * menubar-msw.c (mswindows_handle_wm_initmenu):
10527 * menubar-msw.c (mswindows_update_frame_menubars):
10528 * menubar-msw.c (mswindows_free_frame_menubars):
10529 * menubar-msw.c (mswindows_popup_menu):
10530 Fixed a bug in handling accelerators where an extra character
10531 would be displayed in the menu item. Also generalized the
10532 function displayable_menu_item because it is now used by the
10533 dialog box code as well. And finally, added code in the functions
10534 that create the menubar to extract a list of accelerators for the
10535 top level menubar, which is used in the event code to determine
10536 whether a particular alt-key combination should be used to invoke
10537 a menu item, or should be passed through to access the standard
10538 XEmacs keymap binding for this key combination.
10540 Much needed GCPROing.
10543 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10544 * menubar-x.c (menu_item_descriptor_to_widget_value):
10545 * menubar-x.c (restore_in_menu_callback):
10546 * menubar-x.c (x_popup_menu):
10547 * menubar-x.c (menu_move_up):
10548 * menubar-x.c (menu_move_down):
10549 * menubar-x.c (menu_move_left):
10550 * menubar-x.c (menu_move_right):
10551 * menubar-x.c (menu_select_item):
10552 * menubar-x.c (command_builder_operate_menu_accelerator):
10553 * menubar-x.c (menu_accelerator_junk_on_error):
10554 * menubar-x.c (command_builder_find_menu_accelerator):
10555 * menubar-x.c (Faccelerate_menu):
10557 Moved a whole bunch of code here that was previously in
10558 event-stream.c as described above. There is also code connected
10559 to the new standard of adding an accelerator to the beginning of
10560 menu items that don't have one as described above and below.
10563 * menubar.c (menu_parse_submenu_keywords):
10564 * menubar.c (Fmenu_find_real_submenu):
10565 * menubar.c (Fnormalize_menu_item_name):
10566 * menubar.c (syms_of_menubar):
10567 * menubar.c (vars_of_menubar):
10568 * menubar.c (complex_vars_of_menubar):
10570 a) Cleaned up a bunch of documentation and improved it.
10572 b) XEmacs now automatically adds an accelerator onto the beginning
10573 of any menu items that don't have one. I did this because there
10574 will inevitably be some menu items on the main menubar that don't
10575 have accelerators on them because the package that adds that
10576 particular menu item hasn't yet been fixed up to have accelerators
10577 in them and it looked rather strange to have some items with and
10578 some items without accelerators, especially since even in items
10579 without accelerators, you can, at least under windows, still
10580 access the item through an accelerator corresponding to the first
10581 character in the item's name. If people don't like this behavior,
10582 I can add a variable to turn it off optionally, but I'm not sure
10583 this is a good idea because we really do need to have accelerators
10584 on all of the menu items, and if a package doesn't like the
10585 accelerators being put on the first character, then it should put
10586 the accelerators where they belong.
10588 c) I made a behavior change, which is that the descriptor that
10589 specifies the text of the menu item, which formerly was just a
10590 string, can now also be an evaluated expression. This makes this
10591 descriptor parallel with all of the others, which could also be
10592 evaluated expressions. This also obviates the need for the
10593 keyword :label, which was previously listed in the documentation
10594 as unimplemented, and which was for the same purpose.
10599 * ntproc.c (new_child):
10600 * ntproc.c (sys_spawnve):
10601 * ntproc.c (find_child_console):
10602 * ntproc.c (sys_kill):
10603 Fixed compile warnings. By the way, this file should really go
10604 away entirely, and this will happen as soon as Kirill makes his
10605 final round of process cleanups, which affect the function
10609 * process-nt.c (struct nt_process_data):
10610 * process-nt.c (find_process_from_pid):
10611 * process-nt.c (send_signal_the_nt_way):
10612 * process-nt.c (enable_child_signals):
10613 * process-nt.c (find_child_console):
10614 * process-nt.c (send_signal_the_95_way):
10615 * process-nt.c (nt_finalize_process_data):
10616 * process-nt.c (ensure_console_window_exists):
10617 * process-nt.c (nt_create_process):
10618 * process-nt.c (nt_kill_child_process):
10619 * process-nt.c (nt_kill_process_by_pid):
10620 * process-nt.c (nt_open_network_stream):
10621 * process-nt.c (vars_of_process_nt):
10622 Copied over code from Emacs 20.5 to correctly send signals to sub-
10623 processes under Windows 95. Also added code to automatically
10624 create and hide console window when a sub-process is created under
10625 Windows 95, which obviates the need for the separate runemacs.exe
10626 executable, and finally implemented some variables that were
10627 implemented in Emacs 20.5, but previously not in XEmacs. These
10628 include mswindows- start-process-share-console and
10629 mswindows-start-process-inherit-error-mode. (Both of these only
10630 apply to Windows 95.)
10632 * regex.c (regex_compile): Fixed a compile warning.
10635 * select-msw.c (mswindows_own_selection):
10636 * select-msw.c (mswindows_get_foreign_selection):
10637 * select-msw.c (mswindows_disown_selection):
10638 * select-msw.c (console_type_create_select_mswindows):
10639 * select-msw.c (syms_of_select_mswindows):
10640 Cleaned up the file and implemented the device method
10641 selection_exists_p, which had accidentally been left out. Also
10642 removed four lisp functions that were remnants from before the
10643 time when the selection code was properly device abstracted.
10644 These functions are no longer needed because there are generic
10645 equivalents, and because they were added recently and don't exist
10646 in FSF Emacs, I don't think there's any problem with just deleting
10650 * sysdep.c (sys_subshell):
10651 Fixed a compile warning, although in this case there's probably
10652 something wrong with this code, and it ought to be looked into
10653 more thoroughly by somebody who understands it.
10656 * window.c (Fwindow_text_area_height):
10657 * window.c (Fwindow_width):
10658 * window.c (Fwindow_full_width):
10659 * window.c (Fwindow_pixel_width):
10660 * window.c (debug_print_window):
10661 * window.c (syms_of_window):
10662 Added functions window-text-area-height and window-full-width,
10663 which are functions for returning various width and height
10664 characteristics of a window. (One of these functions is necessary
10665 for making the file dialog box work correctly, and the other one
10666 was added for completeness.) Also added a table to the
10667 documentation for window-height which describes the entire scheme
10668 for accessing width and height characteristics of a window.
10670 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10672 * nt.c (fstat): Added a comment for another problem with
10673 non-encapsulated [f]stat(), reported by Adrian Aichner
10674 <aichner@ecf.teradyne.com>.
10676 2000-03-11 Andy Piper <andy@xemacs.org>
10678 * window.c (make_dummy_parent): initialize subwindow instance
10680 (Fset_window_configuration): zero extent_modiff.
10682 2000-03-10 Andy Piper <andy@xemacs.org>
10684 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10685 more changes can be triggered.
10686 (Fredisplay_frame): ditto.
10687 (Fredraw_device): ditto.
10688 (Fredisplay_device): ditto.
10689 (redisplay_frame): make non-static.
10690 (redisplay_frame): call update_frame_gutter_geometry outside of
10693 * gutter.h: declare update_frame_gutter_geometry.
10695 * redisplay.h: declare redisplay_frame.
10697 * gutter.c (update_frame_gutter_geometry): move geometry changes
10698 in update_frame_gutters here. Geometry changes can only occur
10699 outside of redisplay.
10700 (update_frame_gutters): remove geometry change code.
10701 (Fredisplay_gutter_area): make sure that we are in display when we
10702 update and that we have flushed any size changes.
10704 2000-03-11 Andy Piper <andy@xemacs.org>
10706 * alloc.c (pdump_dump_data): remove i & count shadows.
10708 2000-02-27 Mike Alexander <mta@arbortext.com>
10710 * sysdep.h: Declare pdump_read_file
10712 * sysdep.c (pdump_read_file): New function
10714 * alloc.c (pdump_load): Call pdump_read_file to get the portable
10717 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
10719 * lrecord.h: add `lrecord_type_pgsetenv'.
10721 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
10723 * symsinit.h: declare (vars|syms)_of* functions.
10724 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10726 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
10728 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10730 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10733 * emacs.c (main_1): Call postgres initialization code.
10735 * postgresql.h: New file. PostgreSQL RDBMS support.
10736 * postgresql.c: New file.
10738 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
10740 * redisplay-output.c (redisplay_output_display_block): Disable
10743 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10745 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10746 (Fcanna_henkan_next): Ditto.
10747 (Fcanna_bunsetu_henkou): Ditto.
10748 (Fcanna_henkan_kakutei): Ditto.
10749 (Fcanna_henkan_end): Ditto.
10750 (Fcanna_henkan_quit): Ditto.
10751 (Fcanna_henkan_next): Set retun value correctly.
10752 (c2mu): Use unsigned char instead of signed char.
10754 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10756 * emacs.c (main_1): Always call syms_of_gui.
10757 * inline.c: include gui.h
10759 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10761 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10762 converted to Lisp_Object.
10763 (Qtop_bottom): New variable.
10764 (syms_of_redisplay): Initialize it.
10765 * redisplay.h (Vvisible_bell): Ditto.
10766 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
10767 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
10768 only flash top and bottom.
10770 2000-03-08 Andy Piper <andy@xemacs.org>
10772 * buffer.c (Frename_buffer): record new buffer name the right way.
10774 2000-03-08 Andy Piper <andy@xemacs.org>
10776 * glyphs.c (update_subwindow): increase hash depth so that widget
10777 items get picked up properly.
10779 * redisplay-output.c (compare_runes): increase hash depth so that
10780 widget items get picked up properly.
10782 2000-03-08 Andy Piper <andy@xemacs.org>
10784 * gutter.c (output_gutter): add some debug.
10786 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
10787 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
10788 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
10790 * redisplay-output.c (compare_runes): use display_hash to
10791 determine if glyphs really are not the same.
10793 * glyphs.c (update_subwindow): check display_hash to see if
10794 anything really needs to be updated. If not then do
10795 nothing. Record the display_hash after updating.
10796 (image_instance_equal): compare the image_instance face also.
10798 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
10800 * redisplay.h: Fix comment style.
10802 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
10804 * consle-msw.h (struct mswindows_frame):
10805 Added new member paint_pending to indicate whether a WM_PAINT
10806 magic event has been queued for this frame.
10808 * event-msw.c (mswindows_drain_windows_queue):
10809 Don't queue a WM_PAINT magic event if one is already queued.
10810 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
10812 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
10814 2000-03-07 Didier Verna <didier@xemacs.org>
10816 * dired.c: #include `regex.h' after `sysfile.h'.
10818 2000-03-06 Martin Buchholz <martin@xemacs.org>
10820 * sound.c (init_nas_sound): Fix compiler warning.
10822 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
10824 (MARK_STRUCT_AS_FREE):
10825 (MARK_STRUCT_AS_NOT_FREE):
10826 Make `gcc -fstrict-aliasing' work properly.
10828 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
10830 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
10831 (mswindows_delete_device): Call CoUnnitialize().
10833 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
10835 2000-02-25 <CraigL@DyCon.com>
10837 * process-nt.c: MinGW now has <shellapi.h>, but still needs
10840 * sysdep.c: This extern declaration for environ prevents MinGW
10841 from finding the variable in CRTDLL.DLL.
10843 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
10845 (SHGFI_EXETYPE): ..
10846 (WM_MOUSEWHEEL): ..
10847 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
10849 (MMRESULT): Removed, now defined in cygwin's windows headers.
10851 (uid_t,gid_t,pid_t,ssize_t): ..
10852 (_timeb): Removed, MinGW defines both _timeb and timeb.
10853 (HAVE_H_ERRNO): Added.
10854 (HAVE_TZNAME): Added, configure is not detecting this.
10856 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
10858 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
10859 * syntax.c (syntax_match): Use it.
10861 * cmds.c: Import auto-fill-chars from FSF Emacs.
10862 (Vauto_fill_chars): New variables.
10863 (internal_self_insert): Check Vauto_fill_chars.
10865 Declare auto-fill-chars as a Lisp variable and initialize it.
10867 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
10869 * fileio.c (Fmake_symbolic_link):
10871 Run handlers even if local machine doesn't have symlinks.
10873 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
10875 * event-msw.c (mswindows_drain_windows_queue):
10876 Don't generate paint magic events for non-XEmacs frames.
10878 2000-03-05 Andy Piper <andy@xemacs.org>
10880 * redisplay.c (redisplay_frame): generate_displayable_area and
10881 friends assumes that we are not in GC, we therefore have to make
10882 sure that this doesn't happen.
10884 * gutter.c (calculate_gutter_size): generate_displayable_area
10885 assumes that we are not in GC, we therefore have to make sure that
10886 this doesn't happen.
10888 2000-03-05 Martin Buchholz <martin@xemacs.org>
10890 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
10892 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
10894 * redisplay.c (regenerate_window): Make sure we set a sane value
10895 for end_pos even if we jump out of the loop.
10896 (regenerate_window): Answer Ben's question :-).
10897 (start_end_of_last_line): Add may_error argument.
10898 (start_of_last_line):
10899 (end_of_last_line): Pass may_error = 0.
10900 (end_of_last_line_may_error): New function.
10901 (pixel_to_glyph_translation): Use it, so we don't crash in
10904 2000-03-04 Andy Piper <andy@xemacs.org>
10906 * window.h (struct window): add gutter_extent_modiff.
10908 * window.c (allocate_window): zero out gutter_extent_modiff.
10910 * redisplay.h: declare sync_display_line_structs.
10912 * redisplay.c (add_glyph_rune): add a better comment.
10914 * redisplay-output.c (sync_display_line_structs): made non-static.
10915 (compare_runes): remove unneccesary glyph cachel access.
10917 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
10919 * gutter.c (output_gutter): don't output the gutter if extent
10920 changes only involve extents in buffers. use 4 sets of display
10922 (gutter_extent_signal_changed_region_maybe): new function. Mark
10923 extents in gutters as changed.
10924 (update_frame_gutters): use 4 sets of display lines.
10925 (reset_gutter_display_lines): ditto.
10926 (free_frame_gutters): ditto.
10927 (redraw_exposed_gutter): force output of gutters.
10929 * frame.h (struct frame): add 4 sets of gutter display lines.
10931 * extents.c: (extent_changed_for_redisplay): signal changes to
10932 extents in strings in the gutter as well as extents in buffers.
10934 2000-03-02 Andy Piper <andy@xemacs.org>
10936 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
10938 * frame.c (Fmake_frame): make sure the gutters get initialized
10939 after the frame is visible.
10940 (set_frame_selected_window): re-arrange compilation macros a
10942 (change_frame_size_1): mark gutters changed.
10944 * device.c (Fset_device_class): mark gutters changed.
10946 2000-03-01 Andy Piper <andy@xemacs.org>
10948 * window.c (window_top_frame_gutter_height): deleted.
10949 (window_bottom_frame_gutter_height): ditto.
10950 (window_left_frame_gutter_height): ditto.
10951 (window_right_frame_gutter_height): ditto.
10952 (window_top_gutter_height): don't use them.
10953 (window_bottom_gutter_height): ditto.
10954 (window_left_gutter_width): ditto.
10955 (window_right_gutter_width): ditto.
10956 (Fsplit_window): ditto.
10957 (Fwindow_pixel_edges): don't use border dimensions here.
10959 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
10960 (update_scrollbar_instance): ditto.
10962 * redisplay.c (generate_modeline): don't take gutters into account.
10963 (generate_modeline): ditto.
10964 (redisplay_frame): small gutter display optimization.
10966 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
10968 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
10969 gutters into account.
10971 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
10972 for window position and type.
10974 * gutter.c (get_gutter_coords): fix for frame gutters.
10975 (update_frame_gutters): update frame geometry if the gutters have
10977 (init_frame_gutters): record current gutter geometries.
10979 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
10981 (mswindows_widget_instantiate): ditto.
10983 * frame.h (struct frame): add current_gutter_bounds.
10985 * frame.c (change_frame_size_1): position window and minibuffer
10986 appropriately taking into account the frame gutters.
10988 * frame-x.c: (x_initialize_frame_size): take into account the
10991 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
10993 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
10995 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
10997 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
10999 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11001 * file-coding.c (reset_decoding_stream): Clear previous
11002 detection state when autodetect.
11004 2000-02-29 Didier Verna <didier@xemacs.org>
11006 * extents.c (set_extent_glyph_1): don't require extents to be
11009 2000-02-27 Andy Piper <andy@xemacs.org>
11011 * gutter.c (Fset_default_gutter_position): don't default left and
11012 right gutter visibility to t.
11013 (Fset_default_gutter_position): run
11014 default-gutter-position-changed-hook.
11015 (syms_of_gutter): add default-gutter-position-changed-hook.
11017 2000-02-26 Andy Piper <andy@xemacs.org>
11019 * specifier.c (Fmake_specifier): add gutter references.
11021 * gutter.h (RAW_WINDOW_GUTTER): new macro.
11023 * lisp.h: declare Fvalid_plist_p.
11025 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11027 (default_gutter_visible_p_changed_in_window): invalidate gutter as
11028 well as its visibility so that it gets reconstructed.
11029 (construct_window_gutter_spec): new function. Construct a string
11030 to be displayed in the gutter from a plist of strings. Take care
11031 to only use elements that are declared as visible.
11032 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11034 (gutter_validate): allow plists of strings in the specifier.
11035 (gutter_specs_changed): construct the real_gutter from the gutter
11036 specs using construct_window_gutter_spec.
11037 (gutter_visible_validate): gutter-visible is a new specifier type.
11038 (Fgutter_visible_specifier_p): new function for the new specifier.
11039 (syms_of_gutter): declare gutter-visible and
11040 Fgutter_visible_specifier_p.
11041 (specifier_type_create_gutter): intitalize new gutter-visible
11043 (reinit_specifier_type_create_gutter): ditto.
11044 (specifier_vars_of_gutter): use new specifier type for gutter
11046 (init_frame_gutters): construct real_gutter correctly.
11047 (Fgutter_specifier_p): beef up documentation.
11048 (Fgutter_size_specifier_p): ditto.
11050 * winslots.h: add real_gutter slots.
11052 2000-02-25 Andy Piper <andy@xemacs.org>
11054 * device-msw.c: Be kind to older cygwin versions. From Raymond
11055 Toy <toy@rtp.ericsson.se>.
11057 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11058 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11060 2000-02-25 Martin Buchholz <martin@xemacs.org>
11062 * elhash.c (MARK_OBJ): Practice macro hygiene.
11064 2000-02-24 Martin Buchholz <martin@xemacs.org>
11066 * miscplay.c: s/__inline__/inline/g;
11067 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11068 (get_device_compdc): INLINE ==> static inline
11069 * *.[ch]: Change INLINE to INLINE_HEADER globally.
11070 find -name '*.h' | \
11071 xargs global-replace \
11072 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11074 2000-02-25 Andy Piper <andy@xemacs.org>
11076 * window.c (window_top_frame_gutter_height): new function.
11077 (window_top_window_gutter_height): ditto.
11078 (window_top_gutter_height): use them.
11079 (window_bottom_frame_gutter_height): new function.
11080 (window_bottom_window_gutter_height): ditto.
11081 (window_bottom_gutter_height): use them.
11082 (window_left_window_gutter_width): new function.
11083 (window_left_frame_gutter_width): ditto.
11084 (window_left_gutter_width): use them.
11085 (window_right_window_gutter_width): new function.
11086 (window_right_frame_gutter_width): ditto.
11087 (window_right_gutter_width): use them.
11088 (window_pixel_height): new function. calulate window pixel height
11089 with frame gutter involvement.
11090 (Fsplit_window): calculate new sizes taking frame gutters into
11092 (window_char_height_to_pixel_height): don't include frame gutters.
11093 (window_char_height): use window_pixel_height.
11094 (window_pixheight): rename from window_pixel_height.
11095 (change_window_height): use it.
11096 (window_pixel_height_to_char_height): don't include frame gutters.
11097 (window_char_width_to_pixel_width): ditto.
11099 2000-02-25 Andy Piper <andy@xemacs.org>
11101 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11104 2000-02-24 Martin Buchholz <martin@xemacs.org>
11106 * alloc.c (staticpro):
11107 (staticpro_nodump):
11112 (compact_string_chars):
11113 (pdump_dump_wired):
11114 Convert: if (foo) abort(); ==> assert (! foo);
11116 * eldap.c (Fldap_search_basic):
11120 Fix compiler warnings, and possible crashes if (random) return
11121 value were to be used.
11123 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11125 * device-msw.c: Workaround ResetDC failure.
11127 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11128 applying a devmode.
11130 * redisplay-msw.c (get_frame_dc): Added start_page_p.
11131 (mswindows_text_width): Do not start printer page.
11133 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11135 * glyphs-msw.c: Added image methods to msprinter console and
11136 msprinter-specific image instantiation.
11138 2000-02-20 Mike Alexander <mta@arbortext.com>
11140 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11141 to avoid crashes when selection-sets-clipboard is on
11142 (mswindows_own_selection): ditto
11144 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11147 * redisplay-msw.c (get_frame_dc):
11148 (get_frame_compdc):
11150 * device-msw.c (mswindows_init_device):
11151 (mswindows_delete_device):
11152 (msprinter_init_device):
11153 (msprinter_delete_device):
11154 * frame-msw.c (mswindows_init_frame_1):
11155 (mswindows_delete_frame):
11156 (msprinter_init_frame_3):
11157 (msprinter_delete_frame): Move compatible DC to device object from
11158 frame object, for both mswindows and msprinter. Only one at a time
11159 is needed, it is a real waste to have one per frame!
11161 2000-02-23 Andy Piper <andy@xemacs.org>
11163 * glyphs.c: add dynamic width and height elements.
11164 (image_instance_equal): ditto.
11166 * glyphs-widget.c (widget_query_geometry): calculate width and
11167 height dynamically if required.
11168 (initialize_widget_image_instance): initialize dynamic dimensions.
11169 (widget_instantiate): pick-up dynamic dimensions.
11171 * glyphs.h (struct Lisp_Image_Instance): add width and height for
11172 dynamic determination. Add appropriate macros.
11174 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11176 (WINDOW_GUTTER_SIZE): ditto.
11177 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11179 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11181 (get_frame_dc): ditto.
11183 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11186 2000-02-23 Martin Buchholz <martin@xemacs.org>
11188 * XEmacs 21.2.31 is released.
11190 2000-02-22 Ben Wing <ben@xemacs.org>
11192 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11194 2000-02-22 Andy Piper <andy@xemacs.org>
11196 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11198 2000-02-21 Mike Sperber <mike@xemacs.org>
11202 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11205 2000-02-21 Mike Sperber <mike@xemacs.org>
11207 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11209 2000-02-21 Martin Buchholz <martin@xemacs.org>
11211 * XEmacs 21.2.30 is released.
11213 2000-02-20 Martin Buchholz <martin@xemacs.org>
11215 Performance hacking.
11217 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11218 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11219 * emacs.c (main_1):
11221 * console.c (DEFVAR_CONSOLE_LOCAL_1):
11222 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11223 * symeval.h (DEFVAR_SYMVAL_FWD):
11224 * symbols.c (guts_of_unbound_marker):
11225 Make all c_readonly objects also lisp_readonly and marked for life.
11226 * lrecord.h (struct lrecord_implementation):
11227 Document flags better.
11228 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11229 * lrecord.h (DECLARE_LRECORD):
11230 * lrecord.h (XSETRECORD):
11231 * lrecord.h (RECORDP):
11232 * lrecord.h (RECORD_TYPEP):
11233 * lrecord.h (RECORD_MARKER): New.
11234 * lrecord.h (error_check_*):
11235 * lrecord.h (CONCHECK_NONRECORD):
11236 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11237 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11238 * lrecord.h (set_lheader_implementation):
11239 * lrecord.h (enum lrecord_type): New.
11240 * symeval.h (SYMBOL_VALUE_MAGIC_P):
11241 * alloc.c (disksave_object_finalization_1):
11242 * alloc.c (mark_object):
11243 * alloc.c (lrecord_type_index):
11244 * alloc.c (tick_lcrecord_stats):
11245 * alloc.c (Fgarbage_collect):
11246 * alloc.c (init_alloc_once_early):
11247 * alloc.c (pdump_load):
11248 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11249 * alloc.c (lrecord_type_index): Delete.
11250 Make lisp object type indexes be constant.
11251 Makes (byte-compile) 5% faster.
11252 Put all marker functions into their own array.
11253 Makes (garbage-collect) 5% faster.
11254 Optimize SYMBOL_VALUE_MAGIC_P.
11255 Makes (byte-compile) 2-3% faster.
11256 * config.h.in (gc_checking_assert): New.
11257 * alloc.c: Use gc_checking_assert().
11258 * .dbxrc: Make compatible with new object type implementation.
11259 * .gdbinit: Make compatible with new object type implementation.
11260 * alloc.c: Delete all symbols defined only for debugging, such as
11261 Lisp_Type_Vector and lrecord_charset.
11263 2000-02-21 Andy Piper <andy@xemacs.org>
11265 * gui-msw.c (Fmswindows_shell_execute): fix file location
11268 * buffer.c (Fkill_buffer): remove buffer from alist buffer
11269 unshowing so that set_window_buffer doesn't undo
11270 kill_buffer_hook's hard work.
11272 * glyphs-widget.c (tab_control_query_geometry): don't count the
11273 first item when calculating geometry.
11275 * glyphs.c (map_subwindow): remove redundant code.
11276 (update_frame_subwindows): be more circumspect about when to
11279 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11280 when items haven't changed. Update faces if faces have changed as
11281 well as just the widget face.
11282 (x_tab_control_update): Update faces if faces have changed as well
11283 as just the widget face.
11285 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11287 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11289 (build_syscolor_string): Use mswindows_color_to_string to try to
11291 (mswindows_device_system_metrics): Reverse the foreground and
11292 background colors so that they match the documentation.
11294 * objects-msw.c: (mswindows_X_color_map): tweak some values so
11295 they match the default Windows palette.
11296 (mswindows_color_to_string): New function.
11298 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11300 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11302 2000-02-18 Olivier Galibert <galibert@pobox.com>
11304 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11305 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11307 * symbols.c (init_symbols_once_early): Removed obsolete
11308 DATA_SEG_BITS related kludge.
11309 (defvar_magic): Ditto.
11311 * malloc.c: Removed obsolete DATA_SEG_BITS
11313 * mem-limits.h: Ditto.
11315 * Makefile.in.in: Removed obsolete HAVE_SHM
11318 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11320 * device-msw.c (mswindows_delete_device): Free DDE string
11323 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11325 * keymap.c (get_keyelt):
11326 * unexnt.c (unexec):
11327 * vm-limit.c (memory_warnings):
11328 * ntheap.c (recreate_heap):
11329 * ntheap.h (UNINIT_PTR):
11330 * select-msw.c (Fmswindows_get_clipboard):
11331 (Fmswindows_set_clipboard):
11332 * objects-msw.h (MSWINDOWS_BAD_HFONT):
11334 * menubar-msw.c (displayable_menu_item):
11336 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11337 * sysdep.c (sys_subshell):
11338 * process-nt.c (nt_create_process):
11339 * nt.c (normalize_filename):
11340 (dostounix_filename):
11341 (unixtodos_filename):
11342 * ntproc.c (win32_executable_type):
11343 * ntplay.c (play_sound_data_1):
11345 * editfns.c (get_home_directory):
11346 * event-msw.c (struct winsock_stream):
11347 (mswindows_dde_callback):
11348 * device-msw.c (msprinter_init_device):
11349 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11351 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11352 mswindows_clear_toolbar were swapped!
11354 * objects-msw.c:(colormap_t):
11356 * emacs.c (struct standard_args): Fixed const jumble.
11358 * glyphs-widget.c (update_widget): Fixed comparison notation.
11360 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11362 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11363 __declspec(noreturn) syntax.
11365 2000-02-19 Martin Buchholz <martin@xemacs.org>
11367 * eldap.c (Fldap_open):
11368 (Fldap_search_basic):
11371 Use new coding system conversion macros.
11373 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11375 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11377 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
11379 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11380 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11382 * eldap.c (Qadd, Qreplace): New constant symbols
11383 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11384 interruptions by XEmacs signals
11385 Remove unnecessary calls to slow_down_interrupts and
11386 speed_up_interrupts
11387 (Fldap_search_basic): Renamed from Fldap_search_internal
11388 Added new optional parameter VERBOSE that triggers the
11389 display of progress messages
11390 Remove unnecessary calls to slow_down_interrupts and
11391 speed_up_interrupts
11392 LDAP result code analysis rewritten
11393 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11394 (syms_of_eldap): Define the new symbols and functions
11397 2000-02-17 Martin Buchholz <martin@xemacs.org>
11399 * realpath.c: Determine PATH_MAX maximally portably.
11401 * insdel.c (bytecount_to_charcount): Optimize.
11402 The function used to be optimized for entirely ASCII sequences.
11403 Now it is optimized for successive characters from the same
11404 charset. This also wins big for _mostly_ ASCII sequences.
11406 * fileio.c (Ffile_truename): convert return from realpath() using
11407 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
11408 - Rewrite GCPROing slightly.
11410 * sysdep.c (sys_open): Do filename conversion, like all other
11411 sys_* functions. Fixes bug:
11412 (let ((file-name-coding-system 'iso-8859-2))
11413 (write-region x y latin2-name))
11414 ==> writes filename using internal encoding.
11416 2000-02-18 Martin Buchholz <martin@xemacs.org>
11418 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11419 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11420 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11421 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11422 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11423 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11424 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11425 (CONST_IF_NOT_DEBUG): Delete.
11426 * alloc.c (this_one_is_unmarkable): Delete.
11427 (mark_object): Don't check for this_one_is_unmarkable. Use the
11428 c_readonly flag instead.
11429 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11431 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
11433 * event-msw.c (mswindows_drain_windows_queue):
11434 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11435 away redundant repaint events.
11437 2000-02-17 Andy Piper <andy@xemacs.org>
11439 * redisplay.h: declare mark_redisplay_structs.
11441 * redisplay.c (redisplay_window):
11442 (redisplay_frame): don't check subwindows_state_changed.
11443 (mark_redisplay): mark gutters here.
11445 * glyphs.c: (instantiate_image_instantiator): always layout if we
11446 haven't done so already.
11447 (allocate_image_instance): don't mark as dirty.
11448 (update_subwindow): bind inhibit_quit.
11450 * gutter.c (mark_gutters): new function.
11452 * glyphs-x.c (x_update_widget): Always resize to get round a
11455 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11456 breaking absolutely everything.
11458 * gutter.h: declare mark_gutters.
11460 2000-02-16 Martin Buchholz <martin@xemacs.org>
11462 * XEmacs 21.2.29 is released.
11464 2000-02-15 Olivier Galibert <galibert@pobox.com>
11466 * fns.c (size_bit_vector): Fix computation of the size.
11468 2000-02-15 Martin Buchholz <martin@xemacs.org>
11470 * *.[ch]: Change CONST to const globally.
11471 find -name '*.[ch]' | \
11472 xargs global-replace \
11473 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11474 - Remove vestigial references to CONST_IS_LOSING
11476 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11478 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11479 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11480 events instead of dispatching them directly.
11481 (mswindows_handle_paint): New function to do repainting.
11482 (mswindows_wnd_proc):
11483 (emacs_mswindows_handle_magic_event): Call above function.
11485 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11487 * objects-msw.c (mswindows_create_font_variant): Return the new
11489 (initialize_font_instance): Get font metrics from the underlined
11490 variant of the font to cope with the case where the underlined
11491 font has a bigger descent.
11493 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
11495 * gui.c (gui_item_accelerator): Return the first underlined
11496 character in item name.
11498 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11500 * lisp.h: Added Qprinter.
11502 * general.c (syms_of_general): Initialized it.
11504 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11506 (get_frame_compdc): Made inline.
11508 * console.h (struct console_methods): Added eject_page method.
11510 * frame.h: Added FRAME_DISPLAY_P and friends.
11511 Aligned backslahes in many macros in more readable fashion.
11512 Added page_number to struct frame, and an accessor macro
11515 * defice.h: Added DEVICE_DISPLAY_P and friends.
11517 * device.c (Fdevice_printer_p): Used these.
11519 * frame.c (allocate_frame_core): Initialize page number.
11520 (Fprint_job_page_number):
11521 (Fprint_job_eject_page): Implemented.
11523 * frame-msw.c (msprinter_eject_page): Added method.
11524 (msprinter_start_page): Added.
11526 * window.c (Fwindow_truncated_p): Fixed docstring.
11527 (Fwindow_last_line_visible_height): Implemented.
11529 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
11531 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11533 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11535 * syntax.c (scan_words): Always advance at least one character.
11537 2000-02-13 Andy Piper <andy@xemacs.org>
11539 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11540 to make sure the glyph is in the cachels.
11542 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11543 global image instance flag.
11544 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11545 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11547 * glyphs.c (allocate_image_instance): set dirty bits correctly.
11548 (Fset_image_instance_property): mark layout as changed.
11549 (invalidate_glyph_geometry_maybe): mark layout as changed.
11550 (glyph_width): use new NEEDS_LAYOUT macro.
11551 (glyph_ascent): ditto.
11552 (glyph_descent): ditto.
11553 (glyph_height): ditto.
11554 (image_instance_layout): mark layout as clean after laying out.
11555 (update_subwindow): don't mark layout as clean here.
11557 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11558 should no longer be needed.
11560 * glyphs-x.c (x_update_widget): sanitize asserts.
11561 (x_finalize_image_instance): sanitize assignment to widgets.
11563 * glyphs-widget.c (widget_instantiate): don't need to clear the
11566 2000-02-13 Martin Buchholz <martin@xemacs.org>
11568 * sysdep.c (getcwd): Use standard prototype.
11569 * sysdep.h (getcwd): Use standard prototype.
11571 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11572 (sequence, start, end).
11573 Remove redundant type checking.
11574 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11575 view of `caller-protects') to avoid a crash where the real fix was
11578 2000-02-12 Martin Buchholz <martin@xemacs.org>
11580 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11582 * s/sol2.h: Remove feature macro initialization.
11584 * alloc.c (alloc_lcrecord): Add more type checking assertions.
11585 (vector_hash): New. Code from internal_hash.
11587 Fix up allocation subsystem comments.
11589 * config.h.in: Add __EXTENSIONS__ for Solaris.
11591 * systime.h (EMACS_GETTIMEOFDAY): New.
11592 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11593 Remove Solaris-specific code.
11594 Use void* for the (ignored) second arg for gettimeofday().
11596 * elhash.c (hash_table_hash): Implement it, finally.
11597 * elhash.c: Use hashcode_t.
11599 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11600 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11602 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11603 * fns.c (size_bit_vector):
11604 * alloc.c (size_vector):
11605 (make_vector_internal):
11606 (make_bit_vector_internal):
11607 (sweep_bit_vectors_1):
11608 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11610 2000-02-10 Martin Buchholz <martin@xemacs.org>
11612 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11613 Include strings.h to avoid warnings for bzero and strcasecmp.
11615 2000-02-10 Olivier Galibert <galibert@pobox.com>
11617 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11618 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11620 * fns.c (size_bit_vector): New. Declare bit vectors as a
11623 2000-02-10 Olivier Galibert <galibert@pobox.com>
11625 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11626 use a value field instead.
11627 (symbol_value_forward_forward): Use value field.
11628 (DEFVAR_SYMVAL_FWD): Use value field.
11629 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
11630 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11631 (DEFVAR_CONST_INT): Ditto.
11632 (DEFVAR_BOOL): Ditto.
11633 (DEFVAR_CONST_BOOL): Ditto.
11634 (DEFVAR_INT_MAGIC): Ditto.
11635 (DEFVAR_BOOL_MAGIC): Ditto.
11637 * symbols.c (guts_of_unbound_marker): Use value field.
11638 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11639 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11641 * lisp.h: Declare dumpopaque and noninteractive1.
11643 * alloc.c (dumpopaque): Added.
11644 (pdump_dump_opaquevec): Added.
11645 (pdump): Call pdump_dump_opaquevec to dump opaque data.
11646 (pdump_load): Reload opaque data. Sync noninteractive1 with
11649 2000-02-10 Andy Piper <andy@xemacs.org>
11651 * glyphs.c (image_instance_layout): if the size changes, mark it
11654 * redisplay-output.c (redisplay_output_layout): Update the
11656 (redisplay_output_subwindow): ditto.
11658 * glyphs.c (update_subwindow): make sure we reset flags for
11659 layouts as well as everything else.
11661 * glyphs-widget.c (layout_layout): don't need to set the instances
11664 2000-02-09 Martin Buchholz <martin@xemacs.org>
11666 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
11667 not HAVE_DLOPEN, which is a lower-level thing.
11669 * .cvsignore: Ignore gmon.out
11671 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
11673 * .cvsignore: Ignore portable dumper xemacs.dmp file
11675 2000-02-09 Andy Piper <andy@xemacs.org>
11677 * redisplay-output.c (redisplay_output_layout): be more clever
11678 about when we output based on the changed flags.
11680 * glyphs.h (struct image_instantiator_methods): add update_method.
11681 (struct Lisp_Image_Instance): add changed flags. Declare new
11682 macros for manipulating them.
11684 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11685 (image_instance_parent_glyph): find an image_instance's parent
11686 glyph or image_instance.
11687 (image_instance_layout): mark the size as changed.
11688 (set_image_instance_dirty_p): new function. mark an image
11689 instance, plus all of its parents, as dirty.
11690 (Fset_image_instance_property): use it.
11691 (Fglyph_animated_timeout_handler): use it.
11692 (update_subwindow): call update_widget and device methods for
11693 update_subwindow. Mark all changed flags as clean.
11694 (Fresize_subwindow): mark size as changed.
11696 * glyphs-x.c (x_finalize_image_instance): try and detect gc
11698 (x_update_subwindow): only resize subwindows here.
11699 (x_update_widget): new function. Update all changed properties of
11701 (x_resize_subwindow): deleted.
11702 (x_widget_set_property): deleted.
11703 (x_progress_gauge_set_property): deleted.
11704 (x_progress_gauge_update): new function. Implement recorded
11706 (x_tab_control_update): ditto.
11707 (x_tab_control_set_property): deleted.
11708 (console_type_create_glyphs_x): declare new functions.
11709 (image_instantiator_format_create_glyphs_x): ditto.
11711 * glyphs-widget.c (widget_set_property): mark text changed.
11712 (update_widget): new function. Update properties of a widget.
11713 (widget_instantiate): for layouts make sure we set their
11714 children's parent correctly.
11715 (tab_control_set_property): new function. Record changes that will
11716 take place under redisplay's control.
11717 (progress_gauge_set_property): ditto.
11718 (image_instantiator_progress_guage): declare new functions.
11719 (image_instantiator_tab_control): ditto.
11721 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11723 (mswindows_update_widget): new function. Update all properties on
11724 a widget that have changed.
11725 (mswindows_button_update): new function. Update a button's set
11727 (mswindows_tab_control_update): new function. Update the items in
11729 (mswindows_tab_control_set_property): deleted.
11730 (mswindows_progress_gauge_update): new function. Update the
11731 progress gauge's progress.
11732 (mswindows_widget_set_property): deleted. This is all done
11733 asynchronously now.
11734 (mswindows_progress_gauge_set_property): ditto.
11735 (console_type_create_glyphs_mswindows): declare new methods.
11736 (image_instantiator_format_create_glyphs_mswindows): ditto.
11738 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11739 (msprinter_set_frame_properties): ditto.
11741 * console.h (struct console_methods): Add update_widget_method.
11743 2000-02-09 Andy Piper <andy@xemacs.org>
11745 * gui-msw.c (Fmswindows_shell_execute): Make
11746 mswindows-shell-execute industrial strength.
11748 2000-02-08 Martin Buchholz <martin@xemacs.org>
11750 * lrecord.h: Make macro argument `props' match member function `plist'.
11753 * fns.c (Fremprop):
11754 * fns.c (Fobject_plist):
11757 Object property list frobbing cleanup.
11758 - Allow any lisp object (compared with `eq'), not just symbols, as
11759 keys in object plists.
11760 - Move symbol plist frobbing into symbols.c, where it belongs.
11761 - Move string plist frobbing into alloc.c, where it belongs.
11762 - Everything's an lrecord now, so no need to test for symbolp, etc.
11763 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
11765 * extents.c: Reorder code to remove declarations.
11767 * frame.h (store_in_alist): Remove useless declaration.
11769 2000-02-07 Martin Buchholz <martin@xemacs.org>
11771 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
11772 * config.h.in: Add HAVE_XCONVERTCASE.
11774 2000-02-07 Andy Piper <andy@xemacs.org>
11776 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
11777 it breaks many things.
11779 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
11781 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
11782 actually can start a common comment type.
11783 * src/syntax.h (SYNTAX_END_P): ditto for end.
11785 2000-02-07 Martin Buchholz <martin@xemacs.org>
11787 * XEmacs 21.2.28 is released.
11789 2000-02-06 Martin Buchholz <martin@xemacs.org>
11791 * event-Xt.c (x_keysym_to_character): New.
11792 (maybe_define_x_key_as_self_inserting_character): New.
11793 (x_has_keysym): New.
11794 Auto-define all keys on the keyboard as self-insert-key.
11796 2000-02-02 Martin Buchholz <martin@xemacs.org>
11798 * menubar.c (vars_of_menubar): A small code simplification.
11800 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
11803 * ExternalClient.c:
11804 * EmacsShell-sub.c:
11807 Use consistent style for specifying X resources.
11809 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
11810 This makes (dontusethis-set-symbol-value-handler) actually usable.
11812 * lrecord.h (lrecord_decription_type):
11813 * alloc.c (pdump_register_sub):
11816 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
11817 Comply with XEmacs coding style.
11818 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
11819 args, and XD_LISP_OBJECT_ARRAY with 3 args.
11821 * keymap.c (Faccessible_keymaps):
11822 Make (accessible-keymaps map "\C-h") do the Right Thing.
11823 Make (accessible-keymaps map []) do the Right Thing.
11824 Make (accessible-keymaps map "") do the Right Thing.
11825 (check_keymap_definition_loop): New function.
11826 (keymap_store_internal): Keep luser from shooting self in foot,
11827 via (define-key ctl-x-4-map "p" global-map).
11828 Remove fullness slot from struct Lisp_Keymap, since hash tables
11830 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
11832 2000-01-30 Martin Buchholz <martin@xemacs.org>
11834 * redisplay.c (init_redisplay): Fix small memory leak.
11836 * elhash.c (pdump_reorganize_hash_table):
11837 Rename from reorganize_hash_table. Change prototype.
11838 Reuse the original memory for hentries. Save 100k.
11839 * alloc.c (PDUMP_READ): new macro.
11840 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
11841 * alloc.c: No need to #ifndef before #undef.
11843 * print.c: Allow debug_print() to print readably by modifying
11844 debug_print_readably. Use consistent variable names.
11846 * .dbxrc: Try to get things to work even if stopped in a function
11847 without source available by explicitly specifying source files.
11848 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11850 * unexnt.c (_start): Removed bogus code which caused loading heap
11851 from differrent executable file.
11852 Removed bogus assignment to _fmode, which caused inconsistencies.
11854 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11856 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
11857 Have spawnve encapsulation regard DONT_ENCAPSULATE.
11858 Do not preliminary `#define signal sigset'.
11860 * systime.h: Do not prototype environ on windows nt and cygwin,
11861 this conflicts with system header.
11863 * syssignal.h: Use correct define for WINDOWSNT
11865 * sysdep.h: Do not prototype environ on windows nt, this conflicts
11866 with system header.
11868 * sysdep.c (near start of file): Fixed commentary and rearranged
11869 ifdefs in readable order.
11870 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
11873 (end_of_data): Do not compile in if using PDUMP.
11875 * symsinit.h: Prototyped vars_of_nt().
11877 * ntproc.c (windows9x_p): Added, instead of os_subtype.
11878 (find_child_console): Use it.
11879 (sys_kill): Use it.
11881 * ntheap.h: Do not extern os_subtype.
11883 * ntheap.c (cache_system_info): Do not cache unneeded:
11884 nt_major_version, nt_minor_version and os_subtype.
11885 (recreate_heap): Do not compile in when PDUMPing.
11887 * nt.c (geteuid and friends): Use the new varibale
11888 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
11889 (init_user_info): Removed the above mentioned hackery.
11890 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
11891 stat has been fixed in the C runtime.
11892 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
11894 * file-coding.c (struct file_coding_dump): Do not define
11895 ucs_to_mule_table in the struct if not MULE.
11896 (struct struct lrecord_description fcd_description_1): Do not dump
11899 * emacs.c (main_1): Call vars_of_nt().
11900 (right before Fdump_emacs_data): Don't need lastfile if using both
11901 portabe dumper and system malloc.
11903 * alloc.c (Fmemory_limit): Conditionalized out.
11904 (pdump): Use OPEN_BINARY for the portable dump file.
11905 (pdump_load): Ditto.
11907 2000-02-02 Mike Alexander <mta@arbortext.com>
11909 * nt.c (convert_time): Set tm_isdst before calling mktime and
11910 avoid calling it at all if the compiler supports 64 bit integers.
11911 Also initialize utc_base_ft before using it.
11913 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
11915 * frame.c (change_frame_size_1): Take f->internal_border_width
11916 into consideration when calculating the width of the frame.
11918 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11920 * window.c (frame_min_height):
11921 (frame_size_valid_p):
11922 (frame_pixsize_valid_p): Added.
11923 (check_frame_size): Generalized.
11925 * window.h: Prototyped the above.
11928 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
11929 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
11930 Deleted Vwin32_* and Vbinary_process_* unused variables.
11932 * device-msw.c (msprinter_init_device): Do not get printer font
11933 list; Added DEVMODE functions.
11935 * frame-msw.c: Added lots of printer code.
11937 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
11940 * console-msw.h: Added more msprinter device private slots.
11942 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11944 * event-msw.c (key_needs_default_processing_p): Added.
11945 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
11947 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11949 * glyphs.c (image_instance_layout): Mark image instance as clean
11951 (glyph_dirty_p): Removed redundant function.
11952 (invalidate_glyph_geometry_maybe): Added.
11953 (update_glyph_cachel_data): Call it.
11955 * glyphs.h: Prototyped it.
11957 * redisplay.c (add_glyph_rune): Call it.
11958 (redisplay_window): Reset glyphs cachels when frame faces have
11959 changed, thus forcing recomputation of built-in border glyphs.
11961 2000-01-30 Martin Buchholz <martin@xemacs.org>
11963 * Makefile.in.in: Make portable dumper and purify play well together.
11964 Add imperfect, but better than nothing, support for pdump.
11965 Remove xemacs.dmp when temacs is re-generated.
11966 Don't ignore errors when dumping xemacs.
11968 * symbols.c (maybe_call_magic_handler): Remove one magic number.
11970 2000-01-28 Andy Piper <andy@xemacs.org>
11972 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
11973 (setup_normal_frame): ditto.
11974 (setup_frame_without_minibuffer): ditto.
11975 (setup_minibuffer_frame): ditto.
11976 (delete_frame_internal): ditto.
11977 (Fmake_frame_invisible): ditto.
11978 (Ficonify_frame): ditto.
11980 * window.h: change Fset_window_buffer signature.
11982 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
11983 (Fset_window_buffer): allow recording of buffer if the window is
11984 the selected window.
11985 (window_loop): Use new Fset_window signature.
11987 2000-01-23 Daniel Pittman <daniel@danann.net>
11989 * config.h.in: Added template for `HAVE_ATHENA_3D'
11991 2000-01-29 Andy Piper <andy@xemacs.org>
11993 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
11995 * gutter.c (output_gutter): Don't output if the window isn't live.
11997 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11999 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12000 of 01/12/00: Moved SetFocus back here where it belongs.
12002 2000-01-23 Andy Piper <andy@xemacs.org>
12004 * s/cygwin32.h: declare printer things.
12006 2000-01-26 Andy Piper <andy@xemacs.org>
12008 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12011 2000-01-24 Andy Piper <andy@xemacs.org>
12013 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12014 (mswindows_button_instantiate): Make sure glyph is a pixmap.
12016 * glyphs-widget.c (widget_instantiate): Avoid shadows.
12018 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12020 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12022 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12023 (mswindows_output_display_block): Avoid local shadows.
12025 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12026 (mswindows_enqueue_mouse_button_event): ditto.
12027 (mswindows_handle_gui_wm_command): remove declaration.
12029 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12032 * console-msw.h: Avoid shadows.
12033 (mswindows_get_toolbar_button_text):
12034 (emacs_mswindows_create_stream_pair):
12035 (emacs_mswindows_delete_stream_pair):
12036 (mswindows_handle_toolbar_wm_command): declare.
12038 * device-msw.c (build_syscolor_string): Avoid shadows.
12040 2000-01-23 Andy Piper <andy@xemacs.org>
12042 * glyphs-widget.c (widget_instantiate): reverse the items for
12043 layouts so that children are in the expected order.
12045 2000-01-28 Martin Buchholz <martin@xemacs.org>
12047 * ralloc.c: safe_bcopy ==> memmove
12048 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12049 * s/msdos.h: Remove BCOPY macros.
12050 * insdel.c (gap_right): Remove BCOPY conditional code.
12051 * insdel.c (gap_left): Remove BCOPY conditional code.
12052 XEmacs demands a working ANSI C compiler - hence memmove.
12054 * regex.c (regex_compile): Remove accidental use of trigraphs.
12056 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12058 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12061 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12063 * event-msw.c (mswindows_drain_windows_queue): Added the
12065 (mswindows_need_event): Commented the call to
12066 mswindows_drain_windows_queue().
12067 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12070 * console-msw.h: Moved a few function prototypes here from
12073 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12074 parameter from unsigned short to unsigned long.
12075 (Fmswindows_shell_execute): Added return value.
12077 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12079 * sysdep.c (init_system_name):
12080 process-unix.c (unix_canonicalized_host_name):
12081 Don't call freeaddrinfo() if getaddrinfo() fails.
12083 * process-unix.c (unix_open_unix_network_stream):
12084 Moved the code to get a port # into address loop.
12086 2000-01-27 Martin Buchholz <martin@xemacs.org>
12088 * buffer.c (reinit_vars_of_buffer):
12089 The right place to initialize conversion_in_dynarr and
12090 conversion_out_dynarr.
12092 * alloc.c (pdump): Use the real open() till sys_open() is functional.
12094 * process-unix.c (unix_canonicalize_host_name): Muleize.
12095 (unix_open_network_stream): Muleize.
12097 * buffer.h: Fix up prototypes for ralloc.c functions.
12099 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12100 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12101 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12102 instead of gethostbyname()
12103 * process-unix.c: In unix_canonicalize_host_name() and
12104 unix_open_network_stream(), add code to use getaddrinfo()
12105 instead of gethostbyname().
12107 2000-01-27 Daniel Pittman <daniel@danann.net>
12109 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12110 libs when built with flat Athena.
12112 2000-01-27 Martin Buchholz <martin@xemacs.org>
12114 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12115 Use coding standards for function prototypes.
12117 2000-01-25 Martin Buchholz <martin@xemacs.org>
12119 * dialog-msw.c (push_lisp_string_as_unicode):
12120 * doc.c (unparesseuxify_doc_string):
12121 * dired.c (Fuser_name_completion_1):
12122 * dired.c (Fuser_name_all_completions):
12123 * dired.c (free_user_cache):
12124 * dired.c (user_name_completion):
12125 * console-x.c (get_display_arg_connection):
12126 * minibuf.c (clear_echo_area_internal):
12127 * minibuf.c (echo_area_append):
12128 * eldap.c (Fldap_open):
12129 * eldap.c (Fldap_search_internal):
12130 * frame-x.c (x_set_frame_text_value):
12131 * frame-x.c (x_set_frame_properties):
12132 * frame-x.c (x_create_widgets):
12133 * redisplay-tty.c (term_get_fkeys_1):
12134 * objects-x.c (x_parse_nearest_color):
12135 * objects-x.c (x_valid_color_name_p):
12136 * objects-x.c (x_initialize_font_instance):
12137 * objects-x.c (x_list_fonts):
12138 * objects-x.c (x_find_charset_font):
12139 * tooltalk.c (Fadd_tooltalk_message_arg):
12140 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12141 * tooltalk.c (Fadd_tooltalk_pattern_arg):
12142 * process-unix.c (unix_create_process):
12143 * ntproc.c (sys_spawnve):
12144 * sound.c (Fplay_sound_file):
12145 * sound.c (Fplay_sound):
12146 * buffer.c (init_initial_directory):
12147 * buffer.c (init_buffer):
12148 * editfns.c (init_editfns):
12149 * editfns.c (Ftemp_directory):
12150 * editfns.c (Fuser_full_name):
12151 * editfns.c (uncache_home_directory):
12152 * editfns.c (get_home_directory):
12153 * editfns.c (Fuser_home_directory):
12154 * editfns.c (Fformat_time_string):
12155 * editfns.c (Fcurrent_time_string):
12156 * gui-x.c (button_item_to_widget_value):
12157 * database.c (Fopen_database):
12158 * event-Xt.c (x_to_emacs_keysym):
12159 * event-Xt.c (x_event_to_emacs_event):
12160 * event-Xt.c (describe_event_window):
12161 * event-msw.c (mswindows_wnd_proc):
12162 * glyphs-eimage.c (jpeg_instantiate):
12163 * glyphs-eimage.c (gif_instantiate):
12164 * glyphs-eimage.c (png_instantiate):
12165 * glyphs-eimage.c (tiff_instantiate):
12166 * glyphs-x.c (xbm_instantiate_1):
12167 * glyphs-x.c (x_xbm_instantiate):
12168 * glyphs-x.c (x_xface_instantiate):
12169 * glyphs-x.c (autodetect_instantiate):
12170 * glyphs-x.c (cursor_font_instantiate):
12171 * glyphs-x.c (x_widget_instantiate):
12172 * glyphs-x.c (x_widget_set_property):
12173 * glyphs-x.c (x_widget_property):
12174 * glyphs-x.c (BUILD_GLYPH_INST):
12175 * print.c (write_string_to_stdio_stream):
12176 * print.c (output_string):
12177 * print.c (Falternate_debugging_output):
12178 * print.c (Fexternal_debugging_output):
12179 * glyphs-msw.c (extract_xpm_color_names):
12180 * glyphs-msw.c (mswindows_xpm_instantiate):
12181 * glyphs-msw.c (bmp_instantiate):
12182 * glyphs-msw.c (resource_name_to_resource):
12183 * glyphs-msw.c (mswindows_resource_instantiate):
12184 * glyphs-msw.c (xbm_instantiate_1):
12185 * glyphs-msw.c (mswindows_xbm_instantiate):
12186 * glyphs-msw.c (mswindows_xface_instantiate):
12187 * glyphs-msw.c (mswindows_widget_instantiate):
12188 * glyphs-msw.c (add_tree_item):
12189 * glyphs-msw.c (add_tab_item):
12190 * glyphs-msw.c (mswindows_combo_box_instantiate):
12191 * glyphs-msw.c (mswindows_widget_property):
12192 * glyphs-msw.c (mswindows_combo_box_property):
12193 * glyphs-msw.c (mswindows_widget_set_property):
12194 * console.c (stuff_buffered_input):
12195 * objects-msw.c (mswindows_initialize_color_instance):
12196 * objects-msw.c (mswindows_valid_color_name_p):
12197 * objects-msw.c (mswindows_list_fonts):
12198 * objects-msw.c (mswindows_font_instance_truename):
12199 * bytecode.c (optimize_compiled_function):
12200 * select-x.c (symbol_to_x_atom):
12201 * select-x.c (x_atom_to_symbol):
12202 * select-x.c (hack_motif_clipboard_selection):
12203 * select-x.c (selection_data_to_lisp_data):
12204 * select-x.c (lisp_data_to_selection_data):
12205 * select-x.c (Fx_get_cutbuffer_internal):
12206 * select-x.c (Fx_store_cutbuffer_internal):
12207 * buffer.h (TO_EXTERNAL_FORMAT): New function.
12208 * buffer.h (TO_INTERNAL_FORMAT): New function.
12209 * emacs.c (make_arg_list_1):
12210 * emacs.c (make_argc_argv):
12211 * emacs.c (main_1):
12212 * emacs.c (Fdump_emacs):
12213 * emacs.c (split_string_by_emchar_1):
12218 * device-x.c (x_init_device):
12219 * device-x.c (Fx_valid_keysym_name_p):
12220 * device-x.c (Fx_get_font_path):
12221 * device-x.c (Fx_set_font_path):
12222 * glyphs.c (bitmap_to_lisp_data):
12223 * glyphs.c (pixmap_to_lisp_data):
12224 * alloc.c (make_ext_string): Use coding system arguments. Update
12226 * alloc.c (build_string):
12227 * callproc.c (child_setup):
12228 * callproc.c (init_callproc):
12229 * fileio.c (lisp_strerror):
12230 * fileio.c (directory_file_name):
12231 * fileio.c (Fexpand_file_name):
12232 * fileio.c (Ffile_truename):
12233 * fileio.c (Fsysnetunam):
12234 * fileio.c (Fdo_auto_save):
12235 * sysdep.c (sys_readdir):
12236 * tests.c: New file. Allow adding C tests.
12237 Replace GET_* macros with a more comprehensible and flexible
12238 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12240 Any coding system can be used to do format conversion.
12241 Eliminate enum external_data_format.
12242 Eliminate convert_to_external_format.
12243 Eliminate convert_to_internal_format.
12244 Make sure file-name, keyboard, terminal, and ctext are always
12245 defined as coding systems or aliases. Make
12246 file-name-coding-system, terminal-coding-system, and
12247 keyboard-coding-system magical variables that are equivalent to
12248 defining the corresponding coding system aliases.
12250 * file-coding.c (Fcoding_system_canonical_name_p): New function.
12251 * file-coding.c (Fcoding_system_alias_p): New function.
12252 * file-coding.c (Fcoding_system_aliasee): New function.
12253 * file-coding.c (append_suffix_to_symbol): New function.
12254 * file-coding.c (dangling_coding_system_alias_p): New function.
12255 * file-coding.c (Ffind_coding_system):
12256 * file-coding.c (Fcopy_coding_system):
12257 * file-coding.c (encode_coding_no_conversion):
12258 * file-coding.c (syms_of_file_coding):
12259 * file-coding.c (vars_of_file_coding):
12260 Rewrite coding system alias code.
12261 Allow nested aliases, like symbolic links.
12262 Allow redefinition of coding system aliases.
12263 Prevent existence of dangling coding system aliases.
12265 * dired.c (Fuser_name_completion_1):
12266 * dired.c (Fuser_name_all_completions):
12267 A crash would happen if user did QUIT in the middle of building
12268 user_name_cache. Remove redundant code in mainline and unwind_protect.
12271 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
12273 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12274 an unsigned char *. Update all callers.
12276 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12278 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12280 2000-01-25 Martin Buchholz <martin@xemacs.org>
12282 * elhash.c (hentry_description): Use more portable definition.
12283 (resize_hash_table): Initialize new hentries using
12284 xnew_array_and_zero, thereby simplifying the code.
12286 * mule-charset.c (make_charset): Make sure entire object is
12287 initialized, to avoid Purify warnings.
12289 * alloc.c (resize_string): Fix unlikely crash with big strings.
12291 2000-01-24 Martin Buchholz <martin@xemacs.org>
12293 * realpath.c (xrealpath):
12294 Don't call getwd().
12296 2000-01-25 Martin Buchholz <martin@xemacs.org>
12298 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12300 1999-12-28 Max Matveev <max@melbourne.sgi.com>
12302 * unexelfsgi.c (unexec): Change the way we decide which segment
12303 should be extended.
12305 Assumption that .bss section should be outside the PT_LOADable
12306 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12307 it's present) is inside the 'data' segment. This would fail the
12308 test which was used to find a segment to grow and cover new
12309 heap. Instead of this assumption, I created another one - on IRIX
12310 the segment to grow should start below .bss and it's address
12311 should extent above the end of .bss. Once this segment is
12312 identified, it's grown to accommodate the new heap and new
12313 zero-length .bss section is added at the end of .data2.
12315 2000-01-25 Martin Buchholz <martin@xemacs.org>
12317 * eval.c (Feval): Wrong number of arguments should use original
12318 function, not the indirect_function version of it.
12320 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
12322 * glyphs-x.c (x_button_instantiate): Don't add image if
12323 it is not a pixmap.
12324 (x_locate_pixmap_file): Call Fexpand_file_name when file name
12327 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
12329 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12331 (DEFVAR_INT_MAGIC): Ditto.
12332 (DEFVAR_BOOL_MAGIC): Ditto.
12333 * glyphs.h: Reindent backslash.
12335 2000-01-24 Martin Buchholz <martin@xemacs.org>
12337 * glyphs-widget.c (layout_query_geometry):
12338 (layout_layout): Use correct types for gheight, gwidth.
12340 2000-01-24 Martin Buchholz <martin@xemacs.org>
12342 * EmacsManager.c (QueryGeometry): Purified.
12344 2000-01-23 Martin Buchholz <martin@xemacs.org>
12346 * alloc.c (make_float): Make sure entire object is initialized, to
12347 avoid Purify warnings.
12348 (pdump_register_sub): Remove useless assignment.
12349 (pdump): Use xmalloc, not malloc.
12350 (pdump_load): Use xmalloc, not malloc.
12352 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12359 * sysdep.c: Removed redundant #include <windows.h>
12361 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12363 * frame.c (delete_frame_internal): Do not delete device when its
12364 implementation so declares.
12365 (delete_frame_internal): Set device selected frame to nil when
12366 last frame goes away.
12368 * device-msw.c (msprinter_device_system_metrics): Implemented.
12369 (mswindows_device_system_metrics): Added 'device-dpi property.
12371 * device.c: (Fdevice_printer_p): Added.
12372 Added 'offset-workspace device metric.
12374 * console.h (device_metrics): Declared DM_offset_workspace.
12376 2000-01-23 Martin Buchholz <martin@xemacs.org>
12378 * fileio.c (Ffile_truename): Remove pointless and confusing
12379 initialization of elen.
12381 * glyphs-widget.c: Compiler warning fixes.
12383 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
12385 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12386 instead of a Lisp_Object as argument to make it consistent with
12387 the other LIVE_P macros.
12388 (CHECK_LIVE_PROCESS): New macro.
12390 * process.c: Declare Qprocess_live_p.
12391 (Fprocess_live_p): New function.
12392 (create_process): Use PROCESS_LIVE_P.
12393 (read_process_output): Ditto.
12394 (set_process_filter): Ditto.
12395 (Fdelete_process): Ditto.
12396 (kill_buffer_processes): Ditto
12397 (process_send_signal): Use CHECK_LIVE_PROCESS.
12398 (Fprocess_input_coding_system): Check whether process is still
12399 alive (fix PR#1061).
12400 (Fprocess_output_coding_system): Ditto.
12401 (Fprocess_coding_system): Ditto.
12402 (Fset_process_input_coding_system): Ditto.
12403 (Fset_process_output_coding_system): Ditto.
12405 2000-01-23 Andy Piper <andy@xemacs.org>
12407 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12410 * glyphs.c (mark_image_instance): take into account changed
12411 image_instance format.
12412 (image_instance_equal): ditto.
12413 (image_instance_hash): ditto.
12415 * glyphs-widget.c (widget_instantiate): Incorporate layout
12416 instantiation here. Delay layout of the layout until later.
12417 (layout_instantiate): deleted.
12418 (layout_query_geometry): new function. get the geometry of a
12420 (layout_layout): layout a layout dynamically.
12421 (image_instantiator_widget): New function - splitting up
12422 image_instantiator_format_create_glyphs_widget for netwinder
12424 (image_instantiator_buttons):
12425 (image_instantiator_edit_fields):
12426 (image_instantiator_combo_box):
12427 (image_instantiator_scrollbar):
12428 (image_instantiator_progress_guage):
12429 (image_instantiator_tree_view):
12430 (image_instantiator_tab_control):
12431 (image_instantiator_labels):
12432 (image_instantiator_layout): ditto.
12433 (image_instantiator_format_create_glyphs_widget): Call preceding
12436 2000-01-22 Martin Buchholz <martin@xemacs.org>
12438 * process.c (Fset_process_coding_system):
12439 * device-x.c (Fx_keysym_hash_table):
12442 * lstream.c (Lstream_write): Return documented value, not 0.
12444 * fileio.c (directory_file_name):
12445 (Fsubstitute_in_file_name):
12446 (Fsubstitute_insert_file_contents_internal):
12447 (Fwrite_region_internal):
12452 Remove vestigial APOLLO-conditional code.
12454 2000-01-21 Martin Buchholz <martin@xemacs.org>
12456 * getpagesize.h: Add guard macros.
12457 * libsst.h: Add guard macros.
12458 * libst.h: Add guard macros.
12459 * line-number.h: Add guard macros.
12460 * ndir.h: Add guard macros.
12461 * sysfloat.h: Add guard macros.
12462 * sysfile.h: Add guard macros.
12463 * sysproc.h: Add guard macros.
12464 * syswait.h: Add guard macros.
12465 * xintrinsic.h: Add guard macros.
12466 * xintrinsicp.h: Add guard macros.
12467 * xmmanager.h: Add guard macros.
12468 * xmmanagerp.h: Add guard macros.
12469 * xmprimitive.h: Add guard macros.
12470 * xmu.h: Add guard macros.
12471 * gpmevent.h: Add copyright statement. Add guard macros.
12472 * miscplay.h: Add guard macros.
12473 * *.h: Use consistent C-standards-approved guard macro names.
12475 * opaque.c (make_opaque): Switch parameter order.
12476 * opaque.h (make_opaque): Switch parameter order.
12477 Update all callers.
12478 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12480 * config.h.in (type_checking_assert): Added.
12481 (bufpos_checking_assert): Added.
12483 2000-01-21 Martin Buchholz <martin@xemacs.org>
12485 * alloc.c: Harmless pdump changes.
12487 - spell alignment correctly.
12488 * sysdep.c: Use countof()
12490 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12492 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12493 initially_selected_for_input() console method, default to 0.
12494 (semi_canonicalize_console_connection): Try to delegate to
12495 canonicalize_console_connection if no such console method.
12496 (canonicalize_console_connection): Vice versa.
12497 (print_console): Do not print nil connection.
12499 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12500 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12501 (XDEVIMPF_FRAMELESS_OK): Added.
12502 (CONSOLE_INHERITS_METHOD): Added.
12504 * console-msw.c (mswindows_canonicalize_console_connection):
12506 (mswindows_canonicalize_device_connection): Added.
12508 * console-msw.h (struct msprinter_device): Added this struct and
12510 (mswindows_device): Made fontlist a lisp object.
12512 * device.c (semi_canonicalize_device_connection): Try to delegate
12513 to canonicalize_device_connection if no such console method.
12514 (canonicalize_device_connection): Vice versa.
12515 (print_device): Do not print nil connection.
12517 * device-msw.c (mswindows_init_device): Call InitCommonControls
12519 (mswindows_delete_device): Removed fontlist deallocation.
12520 (mswindows_mark_device): Added.
12522 * events.c (event_equal): Added abort() at unreached code.
12523 (event_hash): Ditto.
12525 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12526 fallback tags of Windows devices.
12528 * general.c (syms_of_general): Initialized Qmsprinter.
12530 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12531 of fallback tags of Windows devices.
12533 * lisp.h: Declared Qmsprinter.
12535 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12537 (mswindows_list_fonts): Ditto.
12538 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12539 that it can be used by both mswindows and msprinter devices.
12540 (initialize_font_instance): Added.
12541 (mswindows_initialize_font_instance): Use it.
12542 (msprinter_initialize_font_instance): Added.
12544 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12545 and implementation flags check.
12546 (redisplay_without_hooks): Changed the call to the above.
12547 (Fredraw_device): Ditto.
12548 (Fredisplay_device): Ditto.
12550 * redisplay-msw.c (get_frame_dc): Implemented.
12551 (get_frame_compdc): Implemented.
12552 (many functions): Use the two functions above to get device
12553 contexts, ether for a window or a printer.
12555 2000-01-21 Olivier Galibert <galibert@pobox.com>
12557 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12558 initialization here.
12559 (init_symbols_once_early): Call it.
12560 * emacs.c (main_1): Call it.
12561 * symsinit.h: Declare it.
12563 2000-01-19 Olivier Galibert <galibert@pobox.com>
12565 * alloc.c: Use a lrecord_header * in the backtrace instead of a
12567 (pdump_backtrace): Ditto.
12568 (pdump_register_object): Ditto. Cleanup use of the pointers.
12569 (pdump_get_entry): Abort if trying to register a null pointer.
12570 (pdump_dump_data): Cleanup types when relocating.
12571 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12572 (pdump_dump_rtables): Remove bad casts.
12573 (pdump_load): Cleanup relocation w.r.t union type. Use a
12574 Lisp_Object instead of a EMACS_INT for the hashtable
12577 2000-01-20 Martin Buchholz <martin@xemacs.org>
12579 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12581 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12583 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12585 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12587 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12589 * faces.h (FACE_STRIKETHRU_P): Added.
12591 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12594 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12595 (mswindows_set_dc_font): New function, aware of font variants,
12596 separated from mswindows_update_dc.
12598 * objects-msw.h (struct mswindows_font_instance_data): Added
12601 * objects-msw.c (mswindows_finalize_font_instance): Delete all
12602 cached fonts and the data structure.
12603 (mswindows_initialize_font_instance): Added creation of font data
12605 (mswindows_print_font_instance): Print at least something.
12606 (mswindows_create_font_variant): Implemented.
12607 (mswindows_get_hfont): Implemented.
12609 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
12611 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12612 prototyping problem with msvc.
12614 * emacs.c (main_1): added syms_of_gui_mswindows() call
12616 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12617 syms_of_gui_mswindows() function
12619 * symsinit.h: added the prototype for syms_of_gui_mswindows()
12621 2000-01-18 Martin Buchholz <martin@xemacs.org>
12623 * XEmacs 21.2.27 is released.
12625 2000-01-18 Martin Buchholz <martin@xemacs.org>
12627 * glyphs-eimage.c (struct tiff_error_struct):
12629 (tiff_warning_func):
12630 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12635 * unexec.c: Remove vestigial Lucid C code.
12639 * libsst.c: Ansify.
12640 Remove declarations of errno and strerror().
12642 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
12644 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12646 2000-01-16 Martin Buchholz <martin@xemacs.org>
12648 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12651 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12656 Change enum eol_type to eol_type_t.
12658 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12660 * gui.c (get_gui_callback): Check cons before accessing car.
12662 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12664 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12665 (XSETSPECIFIER_TYPE): Ditto.
12667 2000-01-17 Didier Verna <didier@xemacs.org>
12669 * redisplay.c (generate_fstring_runes): compute string size in
12670 characters, not bytes.
12672 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
12674 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12676 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
12678 * print.c (print_error_message): Call print_prepare().
12680 2000-01-14 Martin Buchholz <martin@xemacs.org>
12682 * .dbxrc: Renamed from dbxrc.
12684 * events.c (event_to_character):
12685 Use `assert (foo)' instead of `if (!foo) abort()'
12687 * .gdbinit (xtype): Add documentation.
12688 * .gdbinit (check-temacs): New function.
12689 * .gdbinit (check-xemacs): New function.
12690 * dbxrc (check-xemacs): New function.
12691 * dbxrc (check-xemacs): New function.
12693 2000-01-14 Andy Piper <andy@xemacs.org>
12695 * glyphs-widget.c (widget_query_geometry): Make sure that we
12696 calculate default dimensions correctly.
12698 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12700 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12702 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12703 pdump_wire'd variable.
12705 * emacs.c: (main_1): Conditionalized calls to
12706 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12708 2000-01-13 Martin Buchholz <martin@xemacs.org>
12710 * window.c (Fset_window_configuration):
12711 * sysdep.c (_start):
12712 * input-method-motif.c (res):
12713 * event-Xt.c (Xt_process_to_emacs_event):
12714 Simple compiler warning fixes.
12716 * bytecode.c (funcall_compiled_function): Use the original
12717 function symbol on the backtrace list in preference to the
12718 compiled_function object in error messages.
12720 2000-01-13 Andy Piper <andy@xemacs.org>
12722 * glyphs-x.c (update_widget_face): Make sure we update the widget
12723 background as well as foreground.
12725 2000-01-13 Andy Piper <andy@xemacs.org>
12727 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12728 fields to subwindow.
12729 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12730 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12731 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12732 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12734 * glyphs-widget.c (check_valid_tab_orientation): new function.
12735 (initialize_widget_image_instance): zero orientation and
12737 (widget_instantiate): pick up orientation.
12738 (tab_control_query_geometry): return appropriate values for
12741 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12742 appropriate creation flags for left, right and bottom tabs.
12744 * s/cygwin32.h: add tab definitions.
12746 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12748 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12749 frame upon hiding a subwindow.
12750 (mswindows_button_instantiate): Changed the push button style to
12752 (mswindows_button_instantiate): Removed button BS_NOTIFY
12754 (mswindows_button_instantiate): Removed redundant check for
12755 a disabled gui item.
12756 (mswindows_button_instantiate): Made use of WS_TABSTOP
12757 consistent: "operable" controls (edit, button, tree, scroll) have
12758 this style, "display-only" ones (static, progress gauge) do
12759 not. This style is currently ignored by XEmacs though. Also,
12760 removed the WS_EX_CONTROLPARENT style - it is not for children,
12761 it is for their parents!
12762 (mswindows_edit_field_instantiate): Ditto.
12763 (mswindows_progress_gauge_instantiate): Ditto.
12764 (mswindows_tree_view_instantiate): Ditto.
12765 (mswindows_tab_control_instantiate): Ditto.
12766 (mswindows_scrollbar_instantiate): Ditto.
12767 (mswindows_combo_box_instantiate): Ditto.
12768 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
12769 style to the "clip" window.
12770 (mswindows_button_instantiate): Removed compilation warning by
12771 equally typing terms of the ?: operator.
12773 2000-01-12 Didier Verna <didier@xemacs.org>
12775 * redisplay.c (generate_fstring_runes): new parameter holding the
12776 last modeline-format extent.
12777 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
12778 extent, fill the glyph block with it.
12779 (generate_fstring_runes): handle these parameters.
12780 (generate_formatted_string_db): ditto.
12782 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
12783 glyphs'extents in the modeline.
12785 1999-01-11 Mike Woolley <mike@bulsara.com>
12787 * ntheap.c: Reduced the reserved heap space from 1Gb down to
12788 256Mb, as a workaround for the non-starting problem many people
12791 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12793 * console-tty.c (Fset_console_tty_output_coding_system):
12794 Force redrawing tty frame.
12796 2000-01-10 Didier Verna <didier@xemacs.org>
12798 * redisplay.c (generate_fstring_runes): fix size computation bug.
12800 2000-01-09 William M. Perry <wmperry@aventail.com>
12802 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
12804 2000-01-09 Andy Piper <andy@xemacs.org>
12806 * glyphs-msw.c: index -> i to avoid shadows.
12807 (xbm_create_bitmap_from_data): make static.
12808 (check_valid_string_or_int): deleted.
12809 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
12811 * glyphs-x.c (x_update_subwindow): remove unused args.
12813 * glyphs.c (glyph_image_instance): return the thing. Don't set the
12814 back pointer - this is done in allocate_image_instance.
12815 (query_string_font): return Qnil to make the compiler happy.
12816 (unmap_subwindow): set to ~0 to make the compiler happy.
12817 (glyph_query_geometry): comment out until used.
12818 (glyph_layout): ditto.
12820 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
12822 * insdel.c (signal_after_change): Remove extraneous unbind_to().