1 2003-04-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
3 * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
6 2003-04-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
8 * char-ucs.h: Compact non-ISO-IR charset-ids.
9 (LEADING_BYTE_UCS): Changed to -177.
10 (LEADING_BYTE_CONTROL_1): Changed to -77.
11 (LEADING_BYTE_UCS_BMP): Changed to -176.
12 (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
14 2003-04-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
16 * mule-charset.c (Qiso_ir): New variable.
17 (Fmake_charset): Recognise new property `iso-ir'.
18 (syms_of_mule_charset): Add new symbol `iso-ir'.
20 2003-04-02 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
22 * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
23 n to -n; charset-id of non ISO-IR sets are changed to positive
26 2003-03-09 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
28 * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
30 (Qmap_ucs): New variable.
31 (syms_of_mule_charset): Add new symbol `=ucs'.
32 (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
34 * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
36 * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
38 * char-ucs.h (Qmap_ucs): New extern variable.
40 2003-03-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
42 * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
43 (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
44 don't define it when UTF2000 is not defined.
45 (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
46 `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
47 when UTF2000 is not defined.
48 (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
49 rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
51 2003-03-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
53 * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
55 * mule-charset.c (Vcharset_ucs_gb): Deleted.
57 (syms_of_mule_charset): Delete `ucs-gb'.
58 (complex_vars_of_mule_charset): Likewise.
60 2003-03-04 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
62 * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
64 * mule-charset.c (Vcharset_ucs_cns): Deleted.
66 (syms_of_mule_charset): Delete `ucs-cns'.
67 (complex_vars_of_mule_charset): Likewise.
69 2003-03-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
71 * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
73 * mule-charset.c (Vcharset_ucs_jis): Deleted.
75 (syms_of_mule_charset): Delete `ucs-jis'.
76 (complex_vars_of_mule_charset): Likewise.
78 2003-03-02 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
80 * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
82 * mule-charset.c (Vcharset_ucs_ks): Deleted.
84 (syms_of_mule_charset): Delete `ucs-ks'.
85 (complex_vars_of_mule_charset): Likewise.
87 2003-03-01 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
89 * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
90 (Qideograph_daikanwa_2): Deleted.
91 (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
92 (complex_vars_of_mule_charset): Likewise.
94 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
95 (LEADING_BYTE_DAIKANWA_1): Deleted.
96 (LEADING_BYTE_DAIKANWA_2): Deleted.
97 (MIN_CHAR_DAIKANWA): Deleted.
98 (MAX_CHAR_DAIKANWA): Deleted.
100 2003-02-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
102 * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
103 (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
104 ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
106 * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
107 (Vcharset_ideograph_daikanwa): Deleted.
108 (Qideograph_hanziku_{1..12}): Deleted.
109 (Qideograph_daikanwa): Deleted.
110 (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
111 Vcharset_ideograph_daikanwa.
112 (syms_of_mule_charset): Delete `ideograph-daikanwa' and
113 `ideograph-hanziku-{1..12}'.
114 (complex_vars_of_mule_charset): Likewise.
116 2003-02-26 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
118 * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
120 * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
121 (Qideograph_gt_pj_{1..11}): Deleted.
122 (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
123 (complex_vars_of_mule_charset): Likewise.
125 2003-02-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
127 * mule-charset.c (Vcharset_ucs_big5): Deleted.
128 (Vcharset_ideograph_gt): Deleted.
129 (Qucs_big5): Deleted.
130 (Qideograph_gt): Deleted.
131 (syms_of_mule_charset): Delete symbol `ucs-big5' and
133 (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
136 * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
137 (LEADING_BYTE_GT): Deleted.
138 (GC_CHARSETP): Deleted.
139 (MIN_CHAR_GT): Deleted.
140 (MAX_CHAR_GT): Deleted.
142 2003-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
144 * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
146 2003-01-05 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
148 * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
149 (Qideograph_cbeta): Deleted.
150 (syms_of_mule_charset): Don't define `ideograph-cbeta'.
151 (complex_vars_of_mule_charset): Likewise.
153 * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
154 (MIN_CHAR_CBETA): Comment out.
155 (MAX_CHAR_CBETA): Likewise.
157 2002-12-19 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
159 * mule-charset.c (charset_lookup_description_1): Use
160 `NUM_LEADING_BYTES' in UTF-2000.
162 2002-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
164 * mule-charset.c (Vcharset_china3_jef): Deleted.
165 (Qchina3_jef): Deleted.
166 (syms_of_mule_charset): Don't define `china3-jef'.
167 (complex_vars_of_mule_charset): Likewise.
169 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
170 (MIN_CHAR_CHINA3_JEF): Comment out.
171 (MAX_CHAR_CHINA3_JEF): Comment out.
173 2002-11-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
175 * mule-charset.c (Vcharset_ucs_gb): New variable.
176 (Qucs_gb): New variable.
177 (syms_of_mule_charset): Add new symbol `ucs-gb'.
178 (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
180 * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
182 2002-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
184 * mule-charset.c (charset_code_point): if a coded-charset has a
185 final-byte, don't inherit the builtin range of the mother CCS.
187 2002-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
189 * mule-charset.c (charset_code_point): Fix problem about
192 2002-11-14 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
194 * mule-charset.c (decode_builtin_char): Reorganized.
196 2002-10-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
198 * text-coding.c (char_encode_shift_jis): Modify for
199 `charset_code_point'.
200 (char_encode_big5): Likewise.
201 (char_encode_utf8): Likewise.
202 (char_encode_iso2022): Likewise.
204 * mule-charset.c (charset_code_point): Add new argument
206 (Fencode_char): Add new optional argument `defined_only'.
208 * chartab.c (put_char_table): Modify for `charset_code_point'.
209 (map_char_table): Likewise.
211 * char-ucs.h (charset_code_point): Add new argument
213 (encode_char_1): Modify for `charset_code_point'.
215 2002-10-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
217 * mule-charset.c (complex_vars_of_mule_charset): Don't specify
218 `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
220 2002-10-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
222 * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
223 (Qjis_x0208): Likewise.
224 (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
225 XCHARSET_FINAL(charset).
226 (charset_code_point): Modify condition for final-byte based
228 (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
229 (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
230 in UTF-2000; specify `=jis-x0208' as the mother of
231 `japanese-jisx0208-1978', `japanese-jisx0208' and
232 `japanese-jisx0208-1990' in UTF-2000.
234 2002-10-27 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
236 * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
238 2002-07-22 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
240 * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
241 CONVERSION_IDENTICAL, identical conversion is used even if a CCS
242 is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
243 CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
244 CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
245 CONVERSION_96x96x96x96 are introduced.
246 (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
247 CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
248 instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
250 * char-ucs.h (CONVERSION_94): New macro.
251 (CONVERSION_96): New macro.
252 (CONVERSION_94x94): New macro.
253 (CONVERSION_96x96): New macro.
254 (CONVERSION_94x94x94): New macro.
255 (CONVERSION_96x96x96): New macro.
256 (CONVERSION_94x94x94x60): New macro.
257 (CONVERSION_94x94x94x94): New macro.
258 (CONVERSION_96x96x96x96): New macro.
260 2002-07-17 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
262 * lisp.h: Add an EXFUN for `Fchar_ref_p'.
264 * fns.c (Qideographic_structure): New variable.
265 (Qkeyword_char): New variable.
266 (ids_format_unit): New function.
267 (Fideographic_structure_to_ids): New function.
268 (syms_of_fns): Add new symbols `ideographic-structure' and
269 `:char'; add new builtin function `ideographic-structure-to-ids'.
271 * data.c (Fchar_ref_p): New function.
272 (syms_of_data): Add new builtin function `char-ref-p'.
274 * chartab.h: Add an EXFUN for `Ffind_char'.
276 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
278 * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
279 and `COMPOSE_ADD_CHAR'.
280 (decode_coding_iso2022): Use `decode_flush_er_chars'.
282 2002-07-07 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
284 * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
285 instead of `DECODE_ADD_UCS_CHAR'.
286 (COMPOSE_ADD_CHAR): Likewise.
288 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
290 * text-coding.c (decode_flush_er_chars): New inline function.
291 (decode_add_er_char): New function.
292 (decode_coding_utf8): Use `decode_flush_er_chars' and
293 `decode_add_er_char'.
295 2002-07-06 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
297 * text-coding.c (decode_coding_utf8): Flush for er_buf must be
298 done before `decode_output_utf8_partial_char'.
300 * mule-charset.c (complex_vars_of_mule_charset): Specify
301 `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
302 `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
304 2002-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
306 * mule-charset.c (decode_defined_char): New function; search
308 (decode_builtin_char): Don't search mother if
309 XCHARSET_MAX_CODE(charset) == 0.
310 (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
311 == 0 even if code >= XCHARSET_MAX_CODE(charset).
312 (Fdecode_char): Use `decode_defined_char' instead of
313 `DECODE_DEFINED_CHAR'.
314 (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
315 mother of `Vcharset_ucs_jis'.
317 * text-coding.c (decode_coding_big5): Use `decode_defined_char'
318 instead of `DECODE_DEFINED_CHAR'.
320 * char-ucs.h (decode_defined_char): Renamed from
321 `DECODE_DEFINED_CHAR'; changed to normal function.
322 (DECODE_CHAR): Use `decode_defined_char' instead of
323 `DECODE_DEFINED_CHAR'.
325 * lisp.h: Add `EXFUN' for `Fstring_to_number'.
327 2002-07-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
329 * char-ucs.h: Add `extern' for `Vcharset_ucs'.
331 * text-coding.c (Vcoded_charset_entity_reference_alist): New
333 (Quse_entity_reference): New variable.
337 (coding_system_description): Add description for
339 (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
340 (allocate_coding_system): Initialize `ccs_priority_list' in
342 (Fmake_coding_system): Add description about
343 'use-entity-reference; setup
344 CODING_SYSTEM_USE_ENTITY_REFERENCE(codesys).
345 (Fcoding_system_property): Accept `disable-composition' and
346 `use-entity-reference' in UTF-2000.
347 (struct decoding_stream): Add new member `er_counter' and `er_buf'
349 (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
350 (decode_coding_utf8): Decode entity-reference if
351 CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
352 (char_encode_utf8): Encode non-Unicode characters as
353 entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
355 (syms_of_file_coding): Add new symbols `use-entity-reference',
357 (vars_of_file_coding): Add new variable
358 `coded-charset-entity-reference-alist'.
359 (complex_vars_of_file_coding): Declare `disable-composition' and
360 `use-entity-reference' to be coding-system-properties in UTF-2000.
362 * file-coding.h (struct Lisp_Coding_System): Add new member
363 `use_entity_reference' and `ccs_priority_list'.
364 (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
365 (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
366 (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
368 2002-02-13 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
370 * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
372 2002-02-12 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
374 * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
375 `XCHARSET_GRAPHIC(ccs)'.
377 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
379 * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
382 2002-02-11 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
384 * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
385 instead of `XCHARSET_CHARS'.
387 2002-02-10 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
389 * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
390 (XCHARSET_BYTE_SIZE): Likewise.
392 * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
394 (XCHARSET_BYTE_SIZE): Likewise.
396 2002-02-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
398 * char-ucs.h (decoding_table_check_elements): Delete prototype.
399 (get_ccs_octet_table): New inline function.
400 (put_ccs_octet_table): Likewise.
401 (decoding_table_put_char): Use `get_ccs_octet_table' and
402 `put_ccs_octet_table'.
403 (decoding_table_remove_char): Use `decoding_table_put_char'.
404 (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
406 * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
408 (make_charset): Use Qunbound instead Qnil as initial value of
411 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
413 * mule-charset.c (put_char_ccs_code_point): Modify for
414 `decoding_table_remove_char' and `decoding_table_put_char'.
415 (remove_char_ccs): Modify for `decoding_table_remove_char'.
417 * char-ucs.h (decoding_table_remove_char): Change arguments to
418 hide decoding_table vector.
419 (decoding_table_put_char): Likewise.
421 2002-01-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
423 * mule-charset.c (decoding_table_remove_char): Moved to
425 (decoding_table_put_char): Likewise.
427 * char-ucs.h (decoding_table_check_elements): New prototype [moved
428 from mule-charset.c].
429 (decoding_table_remove_char): New inline function [moved from
431 (decoding_table_put_char): Likewise.
433 2002-04-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
435 * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
436 instead of `DECODE_CHAR' for mother; don't use special code for
437 chinese-big5 to use code space of chinese-big5-1 and
439 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
440 `MAX_CHAR_BIG5_CDP' for chinese-big5.
442 * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
443 (MAX_CHAR_BIG5_CDP): Revival.
445 2002-04-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
447 * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
448 the XLFD registry-encoding name of `chinese-big5'.
450 2002-04-08 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
452 * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
453 (Qchinese_big5_cdp): Deleted.
454 (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
455 (complex_vars_of_mule_charset): Delete coded-charset
458 * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
459 (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
460 `CHARSET_ID_OFFSET - n' for private CCS.
461 (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
462 (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
463 of `MIN_LEADING_BYTE'.
464 (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
465 `(CHARSET_ID_OFFSET - 97)'.
466 (MIN_CHAR_BIG5_CDP): Deleted.
467 (MAX_CHAR_BIG5_CDP): Deleted.
469 2002-01-03 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
471 * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
474 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
476 * mule-charset.c (decode_builtin_char): Support mother charsets.
478 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
480 * mule-charset.c (Q94x94x60): New variable.
481 (charset_code_point): Support conversion `94x94x60'.
482 (Fmake_charset): Likewise.
483 (syms_of_mule_charset): Add new symbol `94x94x60'.
485 * char-ucs.h (CONVERSION_94x94x60): New macro.
487 2001-12-31 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
489 * mule-charset.c (charset_code_point): Unify code about
492 2001-12-30 MORIOKA Tomohiko <tomo@mousai.as.wakwak.ne.jp>
494 * mule-charset.c (charset_code_point): Merge code about builtin
495 characters into code about mother charsets; don't use
496 `range_charset_code_point'.
497 (range_charset_code_point): Deleted.
499 2001-12-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
501 * mule-charset.c (Qcode_offset): New variable.
502 (Fmake_charset): Use `XUINT' to get value of `min-code' and
503 `max-code'; accept new property `code-offset'.
504 (syms_of_mule_charset): Add new symbol `code-offset'.
506 2001-12-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
508 * mule-charset.c (range_charset_code_point): Fixed.
510 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
512 * mule-charset.c (decode_builtin_char): Change semantics of
513 code-offset of coded-charset.
514 (charset_code_point): Likewise.
515 (range_charset_code_point): Likewise.
516 (complex_vars_of_mule_charset): Modify for the change.
518 2001-12-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
520 * mule-charset.c (Fencode_char): Reverse arguments.
522 * mule-charset.c (charset_code_point): Fixed.
524 2001-12-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
526 * mule-charset.c (Vcharset_mojikyo): Deleted.
527 (Vcharset_mojikyo_2022_1): Deleted.
528 (Vcharset_mojikyo_pj_{1..21}): Deleted.
529 (Qmin_code): New variable in UTF-2000.
530 (Qmax_code): Likewise.
532 (Qconversion): Likewise.
535 (Qmojikyo_2022_1): Deleted.
536 (Qmojikyo_pj_{1..22}): Deleted.
537 (mark_charset): Mark `cs->mother'.
538 (charset_description): Add description for `mother'.
539 (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
540 new arguments `mother' and `conversion'; use
541 `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
542 (charset_code_point): Moved from char-ucs.h; support `mother'
544 (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
545 of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
546 (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
547 UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
548 allow 2 as the value of `graphic' in UTF-2000; add new properties
549 `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
550 require `final' in UTF-2000; modify for `make_charset'.
551 (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
552 instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
553 (Fcharset_property): Support `mother', `min-code' and `max-code'.
554 (Fencode_char): New function.
555 (syms_of_mule_charset): Add new builtin function `encode-char' in
556 UTF-2000; add new symbols `min-code', `max-code', `mother',
557 `conversion' and `94x60'; delete symbols `mojikyo',
558 `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
559 (complex_vars_of_mule_charset): Modify for `make_charset' change;
560 delete coded-charsets `mojikyo', `mojikyo-2022-1' and
561 `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
563 * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
564 `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
566 * char-ucs.h (Vcharset_mojikyo): Deleted.
567 (Vcharset_mojikyo_2022_1): Deleted.
568 (LEADING_BYTE_MOJIKYO): Deleted.
569 (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
570 (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
571 (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
572 (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
573 add new member `mother'; add new member `conversion'.
574 (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
575 (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
576 (CHARSET_MOTHER): New macro.
577 (CHARSET_CONVERSION): New macro.
578 (CONVERSION_IDENTICAL): New macro.
579 (CONVERSION_94x60): New macro.
580 (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
581 (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
582 (XCHARSET_MOTHER): New macro.
583 (XCHARSET_CONVERSION): New macro.
584 (MIN_CHAR_MOJIKYO): Deleted.
585 (MAX_CHAR_MOJIKYO): Deleted.
586 (DECODE_MOJIKYO_2022): Deleted.
587 (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
588 (charset_code_point): Changed to non-inline function.
589 (encode_char_1): Use `charset_code_point'.
590 (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
592 2001-12-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
594 * lread.c (read_compiled_function): Fix prototype.
595 (read_vector): Likewise.
597 2001-12-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
599 * lrecord.h (struct lrecord_header): Delete `older'.
600 (set_lheader_implementation): Delete code for `older'.
601 (set_lheader_older_implementation): Deleted.
602 (enum lrecord_type): Delete `lrecord_type_char_id_table'.
603 (OLDER_RECORD_P): Deleted.
604 (OLDER_RECORD_HEADER_P): Deleted.
605 (alloc_older_lcrecord): Deleted.
606 (alloc_older_lcrecord_type): Deleted.
608 * alloc.c (all_older_lcrecords): Deleted.
609 (alloc_older_lcrecord): Deleted.
610 (disksave_object_finalization_1): Delete code for older objects.
611 (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
612 (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
614 2001-12-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
616 * mule-charset.c (decoding_table_put_char): Use `make_vector'
617 instead of `make_older_vector'.
618 (put_char_ccs_code_point): Likewise.
619 (mark_charset): Mark `cs->decoding_table'.
620 (Fset_charset_mapping_table): Don't use `make_vector_newer'.
622 * lisp.h (make_older_vector): Deleted.
623 (make_vector_newer): Deleted.
625 * config.h.in (HAVE_GGC): Deleted.
627 * alloc.c (make_older_vector): Deleted.
628 (make_vector_newer_1): Deleted.
629 (make_vector_newer): Deleted.
631 2001-12-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
633 * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
634 (Qideograph_daikanwa_2): New variable.
635 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
636 (complex_vars_of_mule_charset): Add new coded-charset
637 `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
638 `LEADING_BYTE_DAIKANWA'.
640 * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
641 (LEADING_BYTE_DAIKANWA_1): New macro.
642 (LEADING_BYTE_DAIKANWA_2): New macro.
643 (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
645 2001-12-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
647 * mule-charset.c (complex_vars_of_mule_charset): Change
648 DOC-strings and registry of `ideograph-daikanwa'; now it indicates
649 the second revised version.
651 2001-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
653 * mule-charset.c (Vcharset_ucs_smp): New variable.
654 (Vcharset_ucs_sip): New variable.
655 (Qucs_smp): New variable.
656 (Qucs_sip): New variable.
657 (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
658 MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
659 (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
660 (complex_vars_of_mule_charset): Modify middle-DOC and registry of
661 `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
662 charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
664 * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
665 (LEADING_BYTE_UCS_SIP): New macro.
666 (MIN_CHAR_SMP): New macro.
667 (MAX_CHAR_SMP): New macro.
668 (MIN_CHAR_SIP): New macro.
669 (MAX_CHAR_SIP): New macro.
671 2001-11-30 Yoshiki Hayashi <yoshiki@xemacs.org>
673 * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
676 2001-11-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
678 * mule-charset.c (put_char_ccs_code_point): Return canonicalized
679 value; don't store value into `encoding_table' of `Lisp_Charset'.
680 (mark_charset): `encoding_table' was deleted.
681 (charset_description): Likewise.
682 (make_charset): Likewise.
683 (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
684 `put_char_ccs_code_point'.
686 * chartab.h (Fput_char_attribute): New EXFUN.
688 * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
689 is unified with normal symbol space.
690 (Fget_char_attribute): Likewise.
691 (Fput_char_attribute): Likewise; behavior of
692 `put_char_ccs_code_point' is changed.
694 * char-ucs.h: Include "elhash.h".
695 (Vchar_attribute_hash_table): New external variable.
696 (struct Lisp_Charset): Delete `encoding_table'.
697 (CHARSET_ENCODING_TABLE): New implementation; refer
698 `Vchar_attribute_hash_table' instead of `encoding_table' of struct
701 2001-11-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
703 * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
706 2001-11-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
708 * text-coding.c (char_encode_big5): Prefer charset-g1 than
711 2001-11-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
713 * chartab.c (uint8_byte_table_description): New constant.
714 (uint8-byte-table): Use `uint8_byte_table_description'.
715 (uint16_byte_table_description): New constant.
716 (uint16-byte-table): Use `uint16_byte_table_description'.
718 2001-10-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
720 * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
721 range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
723 2001-10-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
725 * mule-charset.c (Vcharset_ucs_ks): New variable.
726 (Qucs_ks): New variable.
727 (syms_of_mule_charset): Add new symbol `ucs-ks'.
728 (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
730 * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
732 2001-10-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
734 * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
735 (Fdecode_char): Likewise.
737 * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
739 (Fdefine_char): Modify for Fdecode_char.
740 (Ffind_char): Likewise.
742 * mule-charset.c (Fdecode_char): Add new optional argument
744 (Fdecode_builtin_char): Modify for `Fdecode_char'.
746 2001-10-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
748 * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
749 -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
750 (allocate_coding_system): Initialize initial-charsets of
751 CODESYS_BIG5 in XEmacs UTF-2000.
752 (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
753 CODESYS_BIG5 in XEmacs UTF-2000.
754 (decode_coding_big5): Use initial-charset-g0 and -g1 of
755 CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
757 * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
759 (Qideograph_hanziku_{1 .. 12}): Likewise.
760 (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
762 (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
763 `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
764 `ideograph-hanziku-{1 .. 12}'.
766 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
767 (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
768 ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
769 ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
770 (DECODE_DEFINED_CHAR): New inline function.
771 (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
773 2001-10-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
775 * mule-charset.c (Vcharset_china3_jef): Renamed from
776 `Vcharset_japanese_jef_china3'.
777 (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
778 (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
779 `{MIN|MAX}_CHAR_JEF_CHINA3'..
780 (syms_of_mule_charset): Rename `china3-jef' from
781 `japanese-jef-china3'.
782 (complex_vars_of_mule_charset): Likewise; rename
783 `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
785 * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
786 `LEADING_BYTE_JEF_CHINA3'.
787 (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
788 (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
790 2001-10-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
792 * mule-charset.c (encode_builtin_char_1): Comment out special code
793 for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
795 * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
796 (MAX_CHAR_MOJIKYO_0): Comment out.
797 (MIN_CHAR_CBETA): Changed to 0x00E20000.
798 (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
799 (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
800 (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
802 2001-10-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
804 * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
805 (Qideograph_cbeta): New variable.
806 (encode_builtin_char_1): Comment out special code for
807 coded-charset `mojikyo' and `japanese-jef-china3'.
808 (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
809 (complex_vars_of_mule_charset): Add new coded-charset
812 * char-ucs.h (LEADING_BYTE_CBETA): New macro.
813 (MIN_CHAR_CBETA): New macro.
814 (MAX_CHAR_CBETA): New macro.
816 2001-10-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
818 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
819 (LEADING_BYTE_JEF_CHINA3): New macro.
820 (MIN_CHAR_JEF_CHINA3): New macro.
821 (MAX_CHAR_JEF_CHINA3): Likewise.
822 (DECODE_CHAR): Fixed.
824 2001-10-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
826 * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
827 (Qjapanese_jef_china3): New variable.
828 (encode_builtin_char_1): Support `japanese-jef-china3'.
829 (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
830 (complex_vars_of_mule_charset): Add new coded-charset
831 `japanese-jef-china3'.
833 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
835 * chartab.c (XCHARSET_CELL_RANGE): New inline function.
836 (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
837 94^4, 96^3, 96^4, 128^n and 256^n set.
838 (put_char_table): Use `XCHARSET_CELL_RANGE'.
839 (map_char_table): Likewise.
841 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
843 * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
846 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
848 * chartab.h (get_char_id_table): New inline function.
850 * chartab.c (get_char_id_table): Moved to chartab.h as an inline
853 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
855 * chartab.h (decode_char_table_range): New prototype in XEmacs
857 (put_char_id_table): New inline function in XEmacs UTF-2000.
859 * chartab.c (put_char_id_table): Moved to chartab.h as an inline
861 (decode_char_table_range): Delete static declaration in XEmacs
864 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
866 * chartab.c (put_char_id_table): Use `put_char_table'.
868 2001-09-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
870 * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
871 (map_over_uint16_byte_table): Likewise.
872 (map_over_byte_table): Likewise.
873 (map_char_table): Modify for `map_over_uint8_byte_table',
874 `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
877 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
879 * chartab.c (struct map_char_table_for_charset_arg): New
881 (map_char_table_for_charset_fun): New function.
882 (map_char_table): Use `map_char_table' for encoding_table of
885 2001-09-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
887 * chartab.c (map_char_table): Check a character is found in
888 range->charset instead of non default value is defined in
889 char-table when range is CHARTAB_RANGE_ROW.
891 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
893 * chartab.c (map_char_id_table): Deleted.
894 (Fmap_char_attribute): Use `map_char_table' instead of
897 2001-09-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
899 * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
901 (update_syntax_table): Deleted in XEmacs UTF-2000.
903 * syntax.c (find_defun_start): Use `syntax_table' instead of
904 `mirror_syntax_table' in XEmacs UTF-2000.
905 (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
907 (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
909 (Fmatching_paren): Likewise.
910 (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
912 (find_start_of_comment): Likewise.
913 (find_end_of_comment): Likewise.
914 (Fforward_comment): Likewise.
915 (scan_lists): Likewise.
916 (char_quoted): Likewise.
917 (Fbackward_prefix_chars): Likewise.
918 (scan_sexps_forward): Likewise.
919 (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
920 (update_syntax_table): Likewise.
922 * search.c (skip_chars): Use `syntax_table' instead of
923 `mirror_syntax_table' in XEmacs UTF-2000.
925 (Freplace_match): Likewise.
927 * regex.c (re_compile_fastmap): Use `syntax_table' instead of
928 `mirror_syntax_table' in XEmacs UTF-2000.
929 (WORDCHAR_P_UNSAFE): Likewise.
930 (re_match_2_internal): Likewise.
932 * font-lock.c (find_context): Use `buf->syntax_table' instead of
933 `buf->mirror_syntax_table' in XEmacs UTF-2000.
935 * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
936 of `buf->mirror_syntax_table' in XEmacs UTF-2000.
938 * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
941 * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
943 (print_char_table): Print `default_value' in XEmacs UTF-2000.
944 (char_table_description): Delete `mirror_table' in XEmacs
946 (fill_char_table): Don't call `update_syntax_table' in XEmacs
948 (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
949 (Fcopy_char_table): Likewise.
950 (put_char_table): Don't call `update_syntax_table' in XEmacs
953 * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
954 `buf->mirror_syntax_table' in XEmacs UTF-2000.
955 (casify_region_internal): Likewise.
957 * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
959 * buffer.c (common_init_complex_vars_of_buffer): Don't use
960 `mirror_syntax_table' in XEmacs UTF-2000.
962 * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
963 `buf->mirror_syntax_table' in XEmacs UTF-2000.
964 (Fexpand_abbrev): Likewise.
966 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
968 * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
970 2001-09-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
972 * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
973 (map_over_uint16_byte_table): Likewise.
974 (map_over_byte_table): Likewise.
975 (get_char_id_table): Refer `cit->default_value'.
976 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
977 (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
978 of character-id ranges.
979 (mark_char_table): Mark `ct->default_value'.
980 (char_table_description): Add `default_value'.
981 (fill_char_table): Use `default_value'.
982 (decode_char_table_range): Decode `nil' as
983 `CHARTAB_RANGE_DEFAULT'.
984 (get_char_id_table): Refer `cit->default_value'.
985 (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
986 (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
987 temporary hack; check value of char-table is bound or not.
988 (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
990 * chartab.h (struct Lisp_Char_Table): Add new member
991 `default_value' in XEmacs UTF-2000.
992 (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
993 (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
996 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
998 * chartab.h (Lisp_Char_ID_Table): Deleted.
1000 * chartab.c (char_table_description): Fix typo.
1001 (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
1002 `Lisp_Char_ID_Table'.
1004 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1006 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
1009 * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
1012 * chartab.h (XCHAR_ID_TABLE): Deleted.
1013 (XSETCHAR_ID_TABLE): Deleted.
1014 (CHAR_ID_TABLE_P): Deleted.
1016 * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
1018 (Fget_composite_char): Likewise.
1019 (put_char_table): Likewise.
1020 (add_char_attribute_alist_mapper): Fixed.
1021 (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
1023 (Fget_char_attribute): Likewise.
1024 (Fget_char_attribute): Likewise.
1025 (Fmap_char_attribute): Likewise.
1027 * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
1029 (encode_char_1): Likewise.
1031 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1033 * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
1036 * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
1037 instead of `XCHAR_ID_TABLE'.
1038 (remove_char_ccs): Likewise.
1040 * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
1042 (Fget_composite_char): Likewise.
1043 (Fchar_variants): Likewise.
1044 (put_char_table): Likewise.
1045 (add_char_attribute_alist_mapper): Likewise.
1046 (Fchar_attribute_alist): Likewise.
1047 (Fget_char_attribute): Likewise.
1048 (Fput_char_attribute): Likewise.
1049 (Fmap_char_attribute): Likewise.
1050 (Fmap_char_attribute): Likewise.
1052 * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
1054 (encode_char_1): Likewise.
1056 2001-09-03 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1058 * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
1059 `Lisp_Char_ID_Table'.
1060 (mark_char_id_table): Deleted.
1061 (print_char_id_table): Likewise.
1062 (char_id_table_equal): Likewise.
1063 (char_id_table_hash): Likewise.
1064 (char_id_table_description): Likewise.
1065 (char_id_table): Likewise.
1066 (make_char_id_table): Use `Fmake_char_table' and
1068 (get_char_id_table): Use `Lisp_Char_Table' instead of
1069 `Lisp_Char_ID_Table'.
1070 (put_char_id_table): Likewise.
1071 (Fput_char_attribute): Use `XCHAR_TABLE' instead of
1073 (Fremove_char_attribute): Likewise.
1074 (syms_of_chartab): Don't define type `char-id-table'.
1076 * chartab.h (struct Lisp_Char_ID_Table): Deleted.
1077 (char_id_table): Likewise.
1078 (GC_CHAR_ID_TABLE_P): Likewise.
1079 (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
1080 (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
1081 (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
1082 (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
1083 (get_char_id_table): Use `Lisp_Char_Table' instead of
1084 `Lisp_Char_ID_Table'.
1085 (put_char_id_table_0): Likewise.
1086 (put_char_id_table): Likewise.
1088 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1090 * chartab.h: Lisp_Byte_Table related codes are moved from
1093 * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
1095 2001-09-02 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1097 * chartab.h: Don't include "chartab.h".
1098 (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
1099 (Lisp_Char_ID_Table): Likewise.
1100 (char_id_table): Likewise.
1101 (XCHAR_ID_TABLE): Likewise.
1102 (XSETCHAR_ID_TABLE): Likewise.
1103 (CHAR_ID_TABLE_P): Likewise.
1104 (GC_CHAR_ID_TABLE_P): Likewise.
1105 (get_char_id_table): Likewise.
1107 * char-ucs.h: Include "chartab.h".
1108 (struct Lisp_Char_ID_Table): Moved to chartab.h.
1109 (Lisp_Char_ID_Table): Likewise.
1110 (char_id_table): Likewise.
1111 (XCHAR_ID_TABLE): Likewise.
1112 (XSETCHAR_ID_TABLE): Likewise.
1113 (CHAR_ID_TABLE_P): Likewise.
1114 (GC_CHAR_ID_TABLE_P): Likewise.
1115 (get_char_id_table): Likewise.
1117 2001-09-01 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1119 * chartab.c (copy_uint8_byte_table): New function.
1120 (copy_uint16_byte_table): New function.
1121 (copy_byte_table): New function.
1122 (map_over_uint8_byte_table): Modify to avoid huge numbers of
1124 (map_over_uint16_byte_table): Likewise.
1125 (map_over_byte_table): Likewise.
1126 (get_byte_table): Move prototype to chartab.h.
1127 (put_byte_table): Likewise.
1128 (put_char_id_table_0): Moved to chartab.h.
1129 (mark_char_table_entry): Don't define in XEmacs UTF-2000.
1130 (char_table_entry_equal): Likewise.
1131 (char_table_entry_hash): Likewise.
1132 (char_table_entry_description): Likewise.
1133 (char_table_entry): Likewise.
1134 (make_char_table_entry): Likewise.
1135 (copy_char_table_entry): Likewise.
1136 (get_non_ascii_char_table_value): Likewise.
1137 (map_over_charset_ascii): Likewise.
1138 (map_over_charset_control_1): Likewise.
1139 (map_over_charset_row): Likewise.
1140 (map_over_other_charset): Likewise.
1141 (mark_char_table): Modify for new structure in XEmacs UTF-2000.
1142 (print_char_table): Likewise.
1143 (char_table_equal): Likewise.
1144 (char_table_hash): Likewise.
1145 (char_table_description): Likewise.
1146 (fill_char_table): Likewise.
1147 (Fcopy_char_table): Likewise.
1148 (get_char_table): Likewise.
1149 (Fget_range_char_table): Likewise.
1150 (put_char_table): Likewise.
1151 (map_char_table): Likewise.
1152 (syms_of_chartab): Don't define `char_table_entry' in XEmacs
1155 2001-08-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1157 * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
1158 `Vauto_fill_chars' in XEmacs UTF-2000.
1160 * chartab.h (get_byte_table): New prototype [moved from
1162 (put_byte_table): Likewise [moved from chartab.c].
1163 (put_char_id_table_0): New inline function [moved from chartab.c].
1164 (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
1165 (Lisp_Char_Table_Entry): Likewise.
1166 (char_table_entry): Likewise.
1167 (XCHAR_TABLE_ENTRY): Likewise.
1168 (XSETCHAR_TABLE_ENTRY): Likewise.
1169 (CHAR_TABLE_ENTRYP): Likewise.
1170 (CHECK_CHAR_TABLE_ENTRY): Likewise.
1171 (NUM_ASCII_CHARS): Likewise.
1172 (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
1173 (CHAR_TABLE_VALUE_UNSAFE): Likewise.
1175 2001-08-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1177 * chartab.c (get_char_id_table): Change interface.
1178 (put_char_id_table_0): New function.
1179 (put_char_id_table): Change interface; new implementation.
1180 (Fget_composite_char): Modify for interface change of
1181 `get_char_id_table'.
1182 (Fchar_variants): Likewise.
1183 (add_char_attribute_alist_mapper): Likewise.
1184 (Fchar_attribute_alist): Likewise.
1185 (Fget_char_attribute): Likewise.
1186 (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
1187 as same as character as the first argument like `put-char-table';
1188 modify for interface change of `put_char_id_table'.
1189 (Fremove_char_attribute): Modify for interface change of
1190 `put_char_id_table'.
1192 2001-08-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1194 * text-coding.c: Sync up with XEmacs 21.2.41.
1195 (COMPOSE_ADD_CHAR): Modify for interface change of
1196 `get_char_id_table'.
1198 * mule-charset.c (put_char_ccs_code_point): Modify for interface
1199 change of `put_char_id_table'.
1200 (remove_char_ccs): Likewise.
1202 * chartab.h (put_char_id_table): Change interface.
1204 * char-ucs.h (get_char_id_table): Change interface.
1205 (charset_code_point): Modify for interface change of
1206 `get_char_id_table'.
1207 (encode_char_1): Likewise.
1209 2001-08-19 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1211 * chartab.c (map_over_uint8_byte_table): Change arguments; add new
1213 (map_over_uint16_byte_table): Likewise.
1214 (map_over_byte_table): Likewise.
1215 (map_char_id_table): Add new argument `range' like
1217 (Fmap_char_attribute): Add new argument `range' like
1220 2001-08-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1222 * chartab.c (map_over_uint8_byte_table): Change interface of
1223 mapping function to use struct chartab_range instead of Emchar.
1224 (map_over_uint16_byte_table): Likewise.
1225 (map_over_byte_table): Likewise.
1226 (map_char_id_table): Likewise.
1227 (struct slow_map_char_id_table_arg): Deleted.
1228 (slow_map_char_id_table_fun): Deleted.
1229 (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
1230 function `slow_map_char_table_fun' instead of struct
1231 `slow_map_char_id_table_arg' and function
1232 `slow_map_char_id_table_fun'.
1234 2001-08-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1236 * mule-charset.c: Move char-it-table related codes to chartab.c.
1237 (Vutf_2000_version): Moved to chartab.c.
1238 (Fdefine_char): Likewise.
1239 (Ffind_char): Likewise.
1240 (syms_of_mule_charset): Move types `uint8-byte-table',
1241 `uint16-byte-table', `byte-table' and `char-id-table' to
1242 chartab.c; move functions `char_attribute_list,
1243 `find_char_attribute_table, `char_attribute_alist,
1244 `get_char_attribute, `put_char_attribute, `remove_char_attribute,
1245 `map_char_attribute, `define_char, `find_char, `char_variants and
1246 `get_composite_char to chartab.c; move symbols `=>ucs',
1247 `->decomposition', `compat', `isolated', `initial', `medial',
1248 `final', `vertical', `noBreak', `fraction', `super', `sub',
1249 `circle', `square', `wide', `narrow', `small' and `font' to
1251 (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
1252 setting codes for `Vcharacter_composition_table' and
1253 `Vcharacter_variant_table' to chartab.c.
1254 (complex_vars_of_mule_charset): Move setting code for
1255 `Vchar_attribute_hash_table' to chartab.c.
1257 * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
1258 (make_char_id_table): New prototype.
1259 (put_char_id_table): Likewise.
1260 (Fget_char_attribute): Likewise.
1262 * chartab.c: Move char-id-table related code from mule-charset.c.
1263 (Vutf_2000_version): Moved from mule-charset.c.
1265 * char-ucs.h (Qucs): New external variable.
1266 (put_char_ccs_code_point): New prototype.
1267 (remove_char_ccs): Likewise.
1269 2001-08-14 MORIOKA Tomohiko <tomo@mousai.mahoroba.ne.jp>
1271 * mule-charset.c (Vcharset_ucs_jis): New variable.
1272 (Qucs_jis): Likewise.
1273 (syms_of_mule_charset): Add new symbol `ucs-jis'.
1274 (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
1276 * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
1278 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1280 * mule-charset.c (map_over_uint8_byte_table): New function.
1281 (map_over_uint16_byte_table): Likewise.
1282 (map_over_byte_table): Likewise.
1283 (map_char_id_table): Likewise.
1284 (slow_map_char_id_table_fun): Likewise.
1285 (Fmap_char_attribute): Likewise.
1286 (syms_of_mule_charset): Add new function `map-char-attribute'.
1288 2001-08-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1290 * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
1291 (syms_of_mule_charset): Add new function `find-char'.
1293 2001-08-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1295 * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
1297 (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
1298 (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
1300 (complex_vars_of_mule_charset): Add new coded-charset
1301 `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
1302 `ideograph-gt-pj-*'.
1304 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
1306 2001-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1308 * mule-charset.c (encode_builtin_char_1): Purge codes about
1309 {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
1310 {MIN|MAX}_CHAR_HEBREW.
1311 (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
1312 don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
1314 * char-ucs.h (MIN_CHAR_GREEK): Purged.
1315 (MAX_CHAR_GREEK): Purged.
1316 (MIN_CHAR_CYRILLIC): Purged.
1317 (MAX_CHAR_CYRILLIC): Purged.
1318 (MIN_CHAR_HEBREW): Commented out.
1319 (MAX_CHAR_HEBREW): Likewise.
1321 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1323 * mule-charset.c (Qto_ucs): New variable.
1324 (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
1325 (Fdefine_char): Likewise.
1326 (syms_of_mule_charset): Add new symbol `=>ucs'.
1328 2001-07-23 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1330 * mule-charset.c (Fdecode_char): Fixed.
1332 2001-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1334 * mule-charset.c (complex_vars_of_mule_charset): Modify registry
1335 of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
1338 2001-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1340 * mule-charset.c (Vcharset_ucs_big5): New variable.
1341 (Qucs_big5): Likewise.
1342 (syms_of_mule_charset): Add new symbol `ucs-big5'.
1343 (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
1345 * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
1347 2001-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1349 * mule-charset.c (decode_builtin_char): Check Big5 code range
1350 which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
1352 2001-07-15 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1354 * mule-charset.c (Vcharset_chinese_gb12345): New variable.
1355 (Qchinese_gb12345): Likewise.
1356 (Fdecode_builtin_char): Fixed.
1357 (syms_of_mule_charset): Add `chinese-gb12345'.
1358 (complex_vars_of_mule_charset): Add coded-charset
1361 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
1362 (LEADING_BYTE_CHINESE_GB12345): New macro.
1364 2001-07-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1366 * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
1367 and `latin-viscii-upper' for `latin-viscii'.
1369 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1371 * mule-charset.c (Fdecode_builtin_char): Comment out
1372 regularization code for ISO-IR GR representation.
1374 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1376 * mule-charset.c (decode_builtin_char): New function; renamed from
1377 `make_builtin_char'; return -1 instead of signal.
1378 (Fdecode_builtin_char): Use `decode_builtin_char'.
1380 * char-ucs.h (decode_builtin_char): New prototype; renamed from
1381 `make_builtin_char'.
1382 (DECODE_CHAR): Use `decode_builtin_char' instead of
1383 `make_builtin_char'; use mapping table of `chinese-big5' for
1384 `chinese-big5-{1,2}'.
1386 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1388 * text-coding.c (char_encode_big5): New function.
1389 (char_finish_big5): Likewise.
1390 (reset_encoding_stream): Use `char_encode_big5' and
1391 `char_finish_big5' for CODESYS_BIG5.
1392 (mule_encode): Don't use `encode_coding_big5'.
1393 (encode_coding_big5): Deleted.
1395 2001-07-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1397 * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
1398 0x81- in XEmacs UTF-2000.
1399 (detect_coding_big5): Likewise.
1401 2001-07-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1403 * mule-charset.c (Fdefine_char): Don't use a CCS property to
1404 generate character-id if the CCS property does not have
1405 corresponding predefined character.
1406 (make_builtin_char): Return -1 if corresponding predefined
1407 character is not found.
1408 (Fdecode_char): Return nil if corresponding character is not
1410 (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
1411 don't map to builtin ucs space.
1413 2001-07-06 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1415 * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
1416 (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
1418 2001-07-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1420 * mule-charset.c (Vcharset_ideograph_gt): New variable.
1421 (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
1422 (Qideograph_gt): Likewise.
1423 (Qideograph_gt_pj_{1..11}): Likewise.
1424 (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
1425 `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
1426 `ideograph-gt-pj-11'.
1427 (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
1428 `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
1429 `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
1431 * char-ucs.h (LEADING_BYTE_GT): New macro.
1432 (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
1433 (MIN_CHAR_GT): Likewise.
1434 (MAX_CHAR_GT): Likewise.
1436 2001-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1438 * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
1439 support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
1441 * doprnt.c (unsigned_int_converters): Add `c'.
1442 (emacs_doprnt_1): Use `XUINT' for unsigned integers.
1444 * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
1445 (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
1447 (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
1448 (MAX_CHAR_MOJIKYO_0): New macro.
1449 (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
1451 2001-06-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1453 * mule-charset.c (Fdefine_char): Delete cemented out code.
1454 (encode_builtin_char_1): Modify for new allocation of builtin
1457 * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
1459 2001-06-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1461 * mule-charset.c (Vcharset_ucs_cns): New variable.
1462 (Qucs_cns): New variable.
1463 (syms_of_mule_charset): Add new symbol `ucs-cns'.
1464 (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
1466 2001-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1468 * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
1470 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1472 * search.c (search_buffer): Make `charset_base_code' as
1473 character-id >> 6 to eliminate the corresponding last byte in
1474 UTF-8 representation [I'm not sure it is right thing].
1475 (boyer_moore): Likewise.
1477 2000-12-09 MORIOKA Tomohiko <tomo@m17n.org>
1479 * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
1480 representation in MULE.
1482 2000-11-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1484 * text-coding.c (Fmake_coding_system): Use
1485 `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
1486 `EXTERNAL_PROPERTY_LIST_LOOP'.
1488 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1490 * text-coding.c (decode_output_utf8_partial_char): New function.
1491 (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
1493 2000-11-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1495 * text-coding.c (decode_coding_utf8): Output original byte
1496 sequence if it is broken; change order of conditions.
1498 * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
1501 * mb-multibyte.h (BYTE_ASCII_P):
1502 Use bit ops for char-signedness safety.
1503 (BYTE_C0_P): Use bit ops for char-signedness safety.
1504 (BYTE_C1_P): Use bit ops for char-signedness safety.
1506 * character.h: (XCHAR_OR_CHAR_INT):
1507 Always use inline function.
1508 Remove redundant type checking assert() - XINT will abort quite
1511 2000-11-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1513 * text-coding.c: (Fencode_shift_jis_char):
1514 (Fencode_big5_char):
1515 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
1516 Replace 0 with '\0' when working with bytes.
1517 Replace initial "(" with "\(" in docstrings.
1519 (Fmake_coding_system):
1520 When type is ccl and value is vector, register it with a proper
1521 symbol. And checks whether the given ccl program is valid.
1522 (mule_decode): When calling ccl_driver, if src indicates
1523 NULL pointer, set an empty string instead.
1524 (mule_encode): Likewise.
1527 (detect_coding_sjis):
1528 (decode_coding_sjis):
1529 (detect_coding_big5):
1530 (decode_coding_big5):
1531 (detect_coding_ucs4):
1532 (decode_coding_ucs4):
1533 (detect_coding_utf8):
1534 (decode_coding_utf8):
1535 (detect_coding_iso2022):
1536 (decode_coding_iso2022):
1537 (decode_coding_no_conversion):
1539 Make all detecting and decoding functions take an Extbyte * arg.
1540 (text_encode_generic):
1541 (encode_coding_big5):
1542 (encode_coding_no_conversion):
1544 Make all encoding functions take a Bufbyte * arg.
1545 Use size_t instead of unsigned int for memory sizes.
1546 Only cast to unsigned char whenever dereferencing Extbyte *.
1548 (struct lrecord_description fcd_description_1): Use countof.
1549 (complex_vars_of_file_coding):
1550 Use countof instead of sizeof.
1551 Use CHECK_NATNUM instead of CHECK_INT.
1553 2000-11-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1555 * mule-charset.c (Fget_char_attribute): Add new optional argument
1557 (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
1558 (remove_char_ccs): Likewise.
1560 2000-10-05 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1562 * text-coding.c (char_encode_shift_jis): New implementation in
1564 (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
1567 * mule-charset.c (Vcharset_chinese_big5): New variable in
1569 (Qchinese_big5): New variable in UTF-2000.
1570 (BIG5_SAME_ROW): New macro in UTF-2000.
1571 (make_builtin_char): Use builtin characters of
1572 `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
1573 characters of `Vcharset_chinese_big5'.
1574 (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
1575 (complex_vars_of_mule_charset): Add new coded-charset
1576 `chinese-big5' in UTF-2000.
1578 * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
1579 (Vcharset_chinese_big5): New external variable declaration.
1580 (Vcharset_japanese_jisx0208_1990): Likewise.
1582 2000-07-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1584 * mule-charset.c (expand_uint8_byte_table_to_uint16): New
1586 (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
1588 2000-07-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1590 * mule-charset.c (complex_vars_of_mule_charset): Define new macro
1591 `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
1592 `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
1595 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1597 * text-coding.c (decode_coding_big5): Modify for UTF-2000.
1599 2000-07-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1601 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
1604 2000-07-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1606 * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
1607 for `CHARSET_BY_ATTRIBUTES'.
1608 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1609 `CHARSET_BY_ATTRIBUTES'.
1611 * text-coding.c (struct decoding_stream): Rename member `CH' to
1613 (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
1614 (decode_coding_sjis): Likewise.
1615 (decode_coding_big5): Likewise.
1616 (decode_coding_ucs4): Likewise.
1617 (decode_coding_utf8): Likewise.
1618 (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
1619 `CHARSET_BY_ATTRIBUTES'.
1620 (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
1621 `str->counter'; decode 3, 4 bytes sets.
1622 (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
1624 (decode_coding_no_conversion): Use `str->cpos' instead of
1627 * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
1628 (Qmojikyo_2022_1): New variable.
1629 (make_charset): Don't use `CHARSET_TYPE_*'.
1630 (range_charset_code_point): Support coded-charset
1632 (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
1633 (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
1634 `CHARSET_BY_ATTRIBUTES'.
1635 (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
1636 `CHARSET_BY_ATTRIBUTES'.
1637 (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
1638 (complex_vars_of_mule_charset): Add new coded-charset
1641 * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
1642 interface; changed to inline function.
1644 * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
1645 (LEADING_BYTE_MOJIKYO_2022_1): New macro.
1646 (LEADING_BYTE_MOJIKYO_2022_2): New macro.
1647 (CHARSET_TYPE_94): Deleted.
1648 (CHARSET_TYPE_94X94): Deleted.
1649 (CHARSET_TYPE_96): Deleted.
1650 (CHARSET_TYPE_96X96): Deleted.
1651 (CHARSET_TYPE_128): Deleted.
1652 (CHARSET_TYPE_128X128): Deleted.
1653 (CHARSET_TYPE_256): Deleted.
1654 (CHARSET_TYPE_256X256): Deleted.
1655 (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
1657 (DECODE_MOJIKYO_2022): New inline function.
1658 (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
1659 `Vcharset_mojikyo_2022_1'.
1661 2000-07-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1663 * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
1665 (put_byte_table): Likewise.
1666 (char_id_table_equal): Use `get_byte_table' [new implementation].
1668 2000-07-17 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1670 * mule-charset.c: Include <limits.h> in UTF-2000.
1671 (BT_UINT8_MIN): New macro in UTF-2000.
1672 (BT_UINT8_MAX): New macro in UTF-2000.
1673 (BT_UINT8_t): New macro in UTF-2000.
1674 (BT_UINT8_nil): New macro in UTF-2000.
1675 (BT_UINT8_unbound): New macro in UTF-2000.
1676 (INT_UINT8_P): New inline function in UTF-2000.
1677 (UINT8_VALUE_P): New inline function in UTF-2000.
1678 (UINT8_ENCODE): New inline function in UTF-2000.
1679 (UINT8_DECODE): New inline function in UTF-2000.
1680 (mark_uint8_byte_table): New function in UTF-2000.
1681 (print_uint8_byte_table): New function in UTF-2000.
1682 (uint8_byte_table_equal): New function in UTF-2000.
1683 (uint8_byte_table_hash): New function in UTF-2000.
1684 (make_uint8_byte_table): New function in UTF-2000.
1685 (uint8_byte_table_same_value_p): New function in UTF-2000.
1686 (BT_UINT16_MIN): New macro in UTF-2000.
1687 (BT_UINT16_MAX): New macro in UTF-2000.
1688 (BT_UINT16_t): New macro in UTF-2000.
1689 (BT_UINT16_nil): New macro in UTF-2000.
1690 (BT_UINT16_unbound): New macro in UTF-2000.
1691 (INT_UINT16_P): New inline function in UTF-2000.
1692 (UINT16_VALUE_P): New inline function in UTF-2000.
1693 (UINT16_ENCODE): New inline function in UTF-2000.
1694 (UINT16_DECODE): New inline function in UTF-2000.
1695 (UINT8_TO_UINT16): New inline function in UTF-2000.
1696 (mark_uint16_byte_table): New function in UTF-2000.
1697 (print_uint16_byte_table): New function in UTF-2000.
1698 (uint16_byte_table_equal): New function in UTF-2000.
1699 (uint16_byte_table_hash): New function in UTF-2000.
1700 (make_uint16_byte_table): New function in UTF-2000.
1701 (uint16_byte_table_same_value_p): New function in UTF-2000.
1702 (print_byte_table): New function in UTF-2000.
1703 (byte-table): Use `print_byte_table' as printer.
1704 (make_byte_table): Delete second argument `older'.
1705 (byte_table_same_value_p): New function in UTF-2000.
1706 (copy_byte_table): Deleted.
1707 (get_byte_table): New function in UTF-2000.
1708 (put_byte_table): New function in UTF-2000.
1709 (print_char_id_table): New function in UTF-2000.
1710 (char-id-table): Use `print_char_id_table' as printer.
1711 (make_char_id_table): Delete second argument `older'.
1712 (get_char_id_table): Use `get_byte_table [new implementation].
1713 (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
1715 (Ffind_char_attribute_table): New function in UTF-2000.
1716 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
1717 (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
1718 `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
1719 (syms_of_mule_charset): Add new function
1720 `find-char-attribute-table' in UTF-2000.
1722 * lrecord.h (enum lrecord_type): Add
1723 `lrecord_type_uint16_byte_table' and
1724 `lrecord_type_uint8_byte_table'.
1726 * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
1727 (Lisp_Uint8_Byte_Table): New type.
1728 (XUINT8_BYTE_TABLE): New macro.
1729 (XSETUINT8_BYTE_TABLE): New macro.
1730 (UINT8_BYTE_TABLE_P): New macro.
1731 (GC_UINT8_BYTE_TABLE_P): New macro.
1732 (struct Lisp_Uint16_Byte_Table): New structure.
1733 (Lisp_Uint16_Byte_Table): New type.
1734 (XUINT16_BYTE_TABLE): New macro.
1735 (XSETUINT16_BYTE_TABLE): New macro.
1736 (UINT16_BYTE_TABLE_P): New macro.
1737 (GC_UINT16_BYTE_TABLE_P): New macro.
1739 2000-07-13 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1741 * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
1742 (Vcharacter_ideographic_strokes_table): Deleted.
1743 (Vcharacter_total_strokes_table): Deleted.
1744 (Vcharacter_morohashi_daikanwa_table): Deleted.
1745 (Vcharacter_decomposition_table): Deleted.
1746 (Qname): Deleted because it is duplicated.
1747 (Qideographic_radical): Deleted.
1748 (Qideographic_strokes): Deleted.
1749 (Qtotal_strokes): Deleted.
1750 (Qmorohashi_daikanwa): Deleted.
1751 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
1752 `ideographic-radical', `ideographic-strokes', `total-strokes',
1753 `morohashi-daikanwa' and `->decomposition'.
1754 (Fget_char_attribute): Likewise.
1755 (Fput_char_attribute): Likewise; use `make-vector' instead of
1756 `make_older_vector' for `->decomposition' value.
1757 (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
1758 `ideograph-daikanwa'.
1759 (syms_of_mule_charset): Delete builtin symbols `name',
1760 `ideographic-radical', `ideographic-strokes', `total-strokes' and
1761 `morohashi-daikanwa'.
1762 (vars_of_mule_charset): Don't setup
1763 `Vcharacter_ideographic_radical_table',
1764 `Vcharacter_ideographic_strokes_table',
1765 `Vcharacter_total_strokes_table',
1766 `Vcharacter_morohashi_daikanwa_table' and
1767 `Vcharacter_decomposition_table'.
1769 2000-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1771 * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
1772 `make_older_vector', `make_vector_newer_1' and
1773 `make_vector_newer'.
1775 * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
1776 `make_older_vector' and `make_vector_newer'.
1778 * config.h.in (HAVE_GGC): New macro.
1780 2000-06-16 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1782 * mule-charset.c (struct char_attribute_list_closure): New
1783 structure in UTF-2000.
1784 (add_char_attribute_to_list_mapper): New function in UTF-2000.
1785 (Fchar_attribute_list): Likewise.
1786 (Fset_charset_mapping_table): Use `make_vector_newer'.
1787 (Fdecode_builtin_char): New function in UTF-2000.
1788 (syms_of_mule_charset): Add new function `char-attribute-list' and
1789 `decode-builtin-char' in UTF-2000.
1791 * lisp.h (make_vector_newer): New prototype.
1793 * alloc.c (make_vector_newer_1): New function.
1794 (make_vector_newer): New function.
1796 2000-06-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1798 * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
1801 2000-06-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1803 * mule-charset.c (Vchar_attribute_hash_table): New variable.
1804 (Vcharacter_attribute_table): Deleted.
1805 (Vcharacter_name_table): Deleted.
1806 (put_char_attribute): Deleted.
1807 (remove_char_attribute): Deleted.
1808 (struct char_attribute_alist_closure): New structure.
1809 (add_char_attribute_alist_mapper): New function.
1810 (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
1811 of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
1812 (Fget_char_attribute): Likewise.
1813 (Fput_char_attribute): Likewise.
1814 (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
1815 of `remove_char_attribute'.
1816 (Fdefine_char): Return character.
1817 (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
1818 and `Vcharacter_name_table'.
1819 (complex_vars_of_mule_charset): Likewise
1820 `Vchar_attribute_hash_table'.
1822 2000-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1824 * character.h (CHARC_CHARSET): New macro.
1825 (CHARC_CHARSET_ID): New macro.
1826 (CHARC_CODE_POINT): New macro.
1827 (CHARC_COLUMNS): New macro.
1828 (CHARC_TO_CHAR): New inline function.
1829 (CHARC_EQ): New inline function.
1830 (CHARC_ASCII_EQ): New inline function.
1831 (CHARC_IS_SPACE): New inline function.
1832 (ASCII_TO_CHARC): New inline function.
1834 * char-ucs.h (encode_char_2): Deleted.
1835 (ENCODE_CHAR): Use `encode_char_1' again.
1836 (breakup_char_1): Likewise.
1837 (CHAR_TO_CHARC): New inline function.
1839 * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
1841 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1843 * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
1844 `CHAR_TO_CHARC' and `CHARC_CHARSET'.
1845 (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
1846 (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
1847 (create_string_text_block): Use `CHARC_ASCII_EQ' and
1849 (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
1851 * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
1853 (x_output_display_block): Use `CHARC_CHARSET' and
1856 * redisplay-tty.c (tty_output_display_block): Use
1858 (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
1860 * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
1862 * insdel.c (find_charsets_in_charc_string): Use
1864 (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
1865 (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
1866 (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
1867 (convert_charc_string_into_malloced_string): Likewise.
1869 2000-06-09 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1871 * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
1872 instead of <Emchar_dynarr *> for buf; use
1873 `convert_bufbyte_string_into_charc_dynarr' instead of
1874 `convert_bufbyte_string_into_emchar_dynarr'; use
1875 `find_charsets_in_charc_string' instead of
1876 `find_charsets_in_emchar_string'.
1879 - Include "character.h".
1880 (struct rune): New member `cglyph'; delete member `chr'.
1882 * redisplay.c (redisplay_text_width_charc_string): New function;
1883 delete `redisplay_text_width_emchar_string'.
1884 (rtw_charc_dynarr): New variable; renamed from
1885 `rtw_emchar_dynarr'.
1886 (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
1887 `rtw_emchar_dynarr'; use
1888 `convert_bufbyte_string_into_charc_dynarr' instead of
1889 `convert_bufbyte_string_into_emchar_dynarr'; use
1890 `redisplay_text_width_charc_string' instead of
1891 `redisplay_text_width_emchar_string'.
1892 (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
1893 instead of `rtw_emchar_dynarr'; use
1894 `convert_bufbyte_string_into_charc_dynarr' instead of
1895 `convert_bufbyte_string_into_emchar_dynarr'.
1896 (add_emchar_rune): Add <Charc> instead of <Emchar>; use
1897 `redisplay_text_width_charc_string' instead of
1898 `redisplay_text_width_emchar_string'.
1899 (create_text_block): Modify for <struct rune> change.
1900 (generate_formatted_string_db): Likewise.
1901 (create_string_text_block): Likewise.
1902 (pixel_to_glyph_translation): Likewise.
1904 * redisplay-x.c (separate_textual_runs): Use <const Charc *>
1905 instead of <const Emchar *>.
1906 (x_text_width): Likewise.
1907 (x_output_display_block): Use <Charc_dynarr *> instead
1908 <Emchar_dynarr *>; modify for <structure rune> change.
1909 (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
1912 * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
1913 <const Emchar *>; use `charc_string_displayed_columns' instead of
1914 `emchar_string_displayed_columns'.
1915 (tty_output_display_block): Use <Charc_dynarr *> instead of
1916 <Emchar_dynarr *> for buf; modify for <structure rune> change; use
1917 `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
1918 (tty_output_charc_dynarr_dynarr): New variable; renamed from
1919 `tty_output_emchar_dynarr_dynarr'.
1920 (tty_output_charc_dynarr): New function; delete
1921 `tty_output_charc_dynarr'.
1923 * redisplay-output.c (compare_runes): Modify for `struct rune'.
1924 (redisplay_output_layout): Use <Charc_dynarr *> instead of
1925 <Emchar_dynarr *> for buf; use
1926 `convert_bufbyte_string_into_charc_dynarr' instead of
1927 `convert_bufbyte_string_into_emchar_dynarr'.
1929 * frame.c (title_string_charc_dynarr): New variable; renamed from
1930 `title_string_emchar_dynarr'.
1931 (generate_title_string): Use `title_string_charc_dynarr' instead
1932 of `title_string_emchar_dynarr'; use
1933 `convert_charc_string_into_malloced_string' instead of
1934 `convert_emchar_string_into_malloced_string'.
1935 (init_frame): Use `title_string_charc_dynarr' instead of
1936 `title_string_emchar_dynarr'.
1939 - Include "character.h".
1940 (struct console_methods): Use <const Charc *> instead of <const
1941 Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
1942 <Emchar_dynarr *> in output_string_method.
1944 * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
1947 * console-stream.c (stream_text_width): Use <const Charc *>
1948 instead of <const Emchar *>.
1950 * character.h (Charc_dynarr): New type.
1952 * char-ucs.h (structure Charc): New structure; define new type
1955 * char-lb.h (DECODE_CHAR): New inline function.
1956 (encode_char_1): New inline function.
1957 (ENCODE_CHAR): New macro.
1958 (structure Charc): New structure; define new type `Charc'.
1960 * char-1byte.h (Vcharset_control_1): New macro.
1961 (Vcharset_latin_iso8859_1): New macro.
1962 (DECODE_CHAR): New inline function.
1963 (encode_char_1): New inline function.
1964 (ENCODE_CHAR): New macro.
1965 (structure Charc): New structure; define new type `Charc'.
1967 * insdel.c (find_charsets_in_charc_string): New function; delete
1968 `find_charsets_in_emchar_string'.
1969 (charc_string_displayed_columns): New function; delete
1970 `emchar_string_displayed_columns'.
1971 (convert_bufbyte_string_into_charc_dynarr): New function; delete
1972 `convert_bufbyte_string_into_emchar_dynarr'.
1973 (convert_charc_string_into_bufbyte_dynarr): New function; delete
1974 `convert_charc_string_into_bufbyte_dynarr'.
1975 (convert_charc_string_into_malloced_string): New function; delete
1976 `convert_charc_string_into_malloced_string'.
1978 * buffer.h (find_charsets_in_charc_string): New prototype; delete
1979 `find_charsets_in_emchar_string'.
1980 (charc_string_displayed_columns): New prototype; delete
1981 `emchar_string_displayed_columns'.
1982 (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
1983 `convert_charc_string_into_bufbyte_dynarr'.
1984 (convert_charc_string_into_malloced_string): New prototype; delete
1985 `convert_charc_string_into_malloced_string'.
1987 2000-06-08 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1989 * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
1991 2000-06-07 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
1993 * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
1995 * char-ucs.h: Use <short> for <Charset_ID>.
1997 * mule-charset.h, char-1byte.h: Use <unsigned char> for
2000 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2002 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2005 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2007 * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
2009 (Qmorohashi_daikanwa): New variable.
2010 (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
2011 for `morohashi-daikanwa' attribute.
2012 (Fget_char_attribute): Likewise.
2013 (Fput_char_attribute): Likewise.
2014 (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
2015 has the same value of `ideograph-daikanwa'.
2016 (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
2017 (vars_of_mule_charset): Setup
2018 `Vcharacter_morohashi_daikanwa_table'.
2020 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2022 * mule-charset.c (Fchar_attribute_alist): Add coded-charset
2024 (add_charset_to_list_mapper): Add `key' instead of
2025 `XCHARSET_NAME (value)' to return aliases.
2027 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2029 * mule-charset.c (Vcharacter_ideographic_radical_table): New
2031 (Vcharacter_ideographic_strokes_table): New variable.
2032 (Qideographic_radical): New variable.
2033 (Qideographic_strokes): New variable.
2034 (Fchar_attribute_alist): Use
2035 `Vcharacter_ideographic_radical_table' for `ideographic-radical'
2036 attribute; use `Vcharacter_ideographic_strokes_table' for
2037 `ideographic-strokes' attribute.
2038 (Fget_char_attribute): Likewise.
2039 (Fput_char_attribute): Likewise.
2040 (syms_of_mule_charset): Add new symbol `ideographic-radical' and
2041 `ideographic-strokes'.
2042 (vars_of_mule_charset): Setup
2043 `Vcharacter_ideographic_radical_table' and
2044 `Vcharacter_ideographic_strokes_table'.
2046 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2048 * mule-charset.c (Vcharacter_total_strokes_table): New variable.
2049 (Qtotal_strokes): New variable.
2050 (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
2051 `total-strokes' attribute.
2052 (Fget_char_attribute): Likewise.
2053 (Fput_char_attribute): Likewise.
2054 (syms_of_mule_charset): Add new symbol `total-strokes'.
2055 (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
2057 2000-06-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2059 * mule-charset.c (Vcharacter_decomposition_table): New variable.
2060 (Fchar_attribute_alist): Add `name' and `->decomposition' if they
2062 (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
2063 `->decomposition' attribute.
2064 (Fput_char_attribute): Likewise.
2065 (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
2067 2000-06-01 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2069 * mule-charset.c (decoding_table_check_elements): New function.
2070 (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
2072 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2074 * mule-charset.c (Fset_charset_mapping_table): Use
2075 `put_char_ccs_code_point'.
2077 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2079 * mule-charset.c (decoding_table_put_char): New inline function.
2080 (put_char_ccs_code_point): Use `decoding_table_put_char'.
2082 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2084 * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
2085 (XCHARSET_BYTE_SIZE): New macro.
2086 (decoding_table_remove_char): New inline function.
2087 (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
2088 `decoding_table_remove_char'.
2089 (remove_char_ccs): Use `decoding_table_remove_char'.
2090 (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
2092 2000-05-31 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2094 * mule-charset.c (Vcharacter_name_table): New variable.
2095 (Qname): New variable.
2096 (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
2098 (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
2099 `Vcharacter_name_table' for `name' attribute.
2100 (Fremove_char_attribute): Use function `remove_char_ccs'.
2101 (put_char_ccs_code_point): New function.
2102 (remove_char_ccs): New function.
2103 (syms_of_mule_charset): Add new symbol `name'.
2104 (vars_of_mule_charset): Setup `Vcharacter_name_table'.
2106 2000-05-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2108 * mule-charset.c (make_byte_table): Add new argument `older'.
2109 (make_char_id_table): Likewise.
2110 (copy_char_id_table): Comment out because it is not used.
2111 (put_char_id_table): Modify for `make_byte_table'.
2112 (Fput_char_attribute): Make encoding_table as older object;
2113 inherit older bit of `Vcharacter_composition_table'.
2114 (mark_charset): Don't mark `cs->encoding_table'.
2115 (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
2116 normal object; make `Vcharacter_composition_table' as an older
2117 object; delete staticpro for `Vcharacter_composition_table'; make
2118 `Vcharacter_variant_table' as a normal object.
2120 * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
2121 (mark_object): Don't check older object in UTF-2000.
2123 * lrecord.h (struct lrecord_header): Add new member `older' in
2125 (set_lheader_implementation): Setup `SLI_header->older' in
2127 (set_lheader_older_implementation): New macro in UTF-2000.
2128 (OLDER_RECORD_P): New macro in UTF-2000.
2129 (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
2130 (alloc_older_lcrecord): New prototype in UTF-2000.
2131 (alloc_older_lcrecord_type): New macro in UTF-2000.
2133 2000-05-29 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2135 * mule-charset.c (byte_table_description): Use
2136 `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
2137 (char_id_table_description): Delete bogus `, 1'.
2138 (Fget_char_attribute): Refer encoding_table of each coded-charset
2139 to get value of coded-charset attribute of a character.
2140 (Fput_char_attribute): Use `make_older_vector' instead of
2141 `make_vector'; use encoding_table of each coded-charset to store
2142 value of coded-charset attribute of a character.
2143 (Fremove_char_attribute): Use encoding_table of each coded-charset
2144 to store value of coded-charset attribute of a character.
2145 (mark_charset): Mark `cs->encoding_table'; don't mark
2146 `cs->decoding_table'.
2147 (charset_description): Add description of new member
2149 (make_charset): Initialize `encoding_table'.
2151 * char-ucs.h (struct Lisp_Charset): Add new member
2153 (CHARSET_ENCODING_TABLE): New macro.
2154 (XCHARSET_ENCODING_TABLE): New macro.
2155 (charset_code_point): New implementation.
2156 (encode_char_1): Likewise.
2158 * alloc.c (all_older_lcrecords): New variable in UTF-2000.
2159 (disksave_object_finalization_1): Call finalizers of
2160 `all_older_lcrecords' in UTF-2000.
2161 (make_older_vector): New function in UTF-2000.
2162 (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
2165 * lisp.h (make_older_vector): New prototype in UTF-2000.
2167 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2169 * lrecord.h (enum lrecord_type): Rename
2170 `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
2172 * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
2173 `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
2174 `get_char_code_table'.
2176 * mule-charset.c (mark_char_id_table): Renamed from
2177 `mark_char_code_table'.
2178 (char_id_table_equal): Renamed from `char_code_table_equal'.
2179 (char_id_table_hash): Renamed from `char_code_table_hash'.
2180 (make_char_id_table): Renamed from `make_char_code_table'.
2181 (copy_char_id_table): Renamed from `copy_char_code_table'.
2182 (get_char_id_table): Renamed from `get_char_code_table'.
2183 (put_char_id_table): Renamed from `put_char_code_table'.
2184 (to_char_id): Renamed from `to_char_code'.
2186 * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
2187 `Lisp_Char_Code_Table'.
2188 (char_id_table): Renamed from `char_code_table'.
2189 (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
2190 (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
2191 (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
2192 (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
2193 (get_char_id_table): Renamed from `get_char_code_table'.
2195 2000-05-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2197 * lrecord.h (enum lrecord_type): Rename
2198 `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
2200 * mule-charset.c (mark_byte_table): Renamed from
2201 `mark_char_byte_table'.
2202 (byte_table_equal): Renamed from `char_byte_table_equal'.
2203 (byte_table_hash): Renamed from `byte_table_hash'.
2204 (make_byte_table): Renamed from `make_byte_table'.
2205 (copy_byte_table): Renamed from `copy_char_byte_table'.
2207 * char-ucs.h (struct Lisp_Byte_Table): Renamed from
2208 `Lisp_Char_Byte_Table'.
2209 (byte_table): Renamed from `char_byte_table'.
2210 (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
2211 (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
2212 (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
2213 (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
2215 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2217 * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
2218 (dfc_convert_to_internal_format): Likewise.
2220 * text-coding.c (Fcoding_system_canonical_name_p): New function.
2221 * text-coding.c (Fcoding_system_alias_p): New function.
2222 * text-coding.c (Fcoding_system_aliasee): New function.
2223 * text-coding.c (append_suffix_to_symbol): New function.
2224 * text-coding.c (dangling_coding_system_alias_p): New function.
2225 * text-coding.c (Ffind_coding_system):
2226 * text-coding.c (Fcopy_coding_system):
2227 * text-coding.c (encode_coding_no_conversion):
2228 * text-coding.c (syms_of_file_coding):
2229 * text-coding.c (vars_of_file_coding):
2230 Rewrite coding system alias code.
2231 Allow nested aliases, like symbolic links.
2232 Allow redefinition of coding system aliases.
2233 Prevent existence of dangling coding system aliases.
2234 Eliminate convert_to_external_format.
2235 Eliminate convert_to_internal_format.
2237 * text-coding.c: Change enum eol_type to eol_type_t.
2239 2000-05-02 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2241 * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
2242 of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2244 * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
2245 MIN_CHAR_MOJIKYO + 94 * 60 * 22.
2247 2000-04-28 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2249 * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
2250 `ideograph-daikanwa'.
2252 * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
2253 (Vcharset_ucs_bmp): Likewise.
2254 (Vcharset_mojikyo): Add new extern variable definition.
2255 (Vcharset_latin_iso8859_2): Deleted because it is not used.
2256 (Vcharset_latin_iso8859_3): Likewise.
2257 (Vcharset_latin_iso8859_4): Likewise.
2258 (Vcharset_latin_iso8859_9): Likewise.
2259 (Vcharset_latin_viscii_lower): Likewise.
2260 (Vcharset_latin_viscii_upper): Likewise.
2261 (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
2262 `mojikyo' code-point is used to decode.
2263 (encode_char_2): New function [to convert `mojikyo' code-point to
2264 Mojikyo font encoding].
2265 (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
2266 (breakup_char_1): Likewise.
2267 (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
2269 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2271 * text-coding.c (Fmake_coding_system): Add document about
2272 `disable-composition' property.
2274 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2276 * text-coding.c (Qdisable_composition): New variable; delete
2278 (Fmake_coding_system): Add new property `disable-composite';
2279 delete property `composite'.
2280 (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
2281 instead of `!CODING_SYSTEM_COMPOSITE'.
2282 (syms_of_file_coding): Add new symbol `disable-composition';
2283 delete symbol `composite'.
2285 * file-coding.h (struct Lisp_Coding_System): Add
2286 `disable_composition'; delete `enable_composition'.
2287 (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2288 `CODING_SYSTEM_COMPOSITE'.
2289 (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
2290 `XCODING_SYSTEM_COMPOSITE'.
2292 2000-04-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2294 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2297 2000-04-26 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2299 * text-coding.c (Qcomposite): New variable.
2300 (Fmake_coding_system): Add new property `composite'.
2301 (struct decoding_stream): Add `combined_char_count',
2302 `combined_chars' and `combining_table' in UTF-2000.
2303 (COMPOSE_FLUSH_CHARS): New macro.
2304 (COMPOSE_ADD_CHAR): New macro.
2305 (reset_decoding_stream): Reset `str->combined_char_count' and
2306 `str->combining_table' in UTF-2000.
2307 (decode_coding_iso2022): Modify for character-decomposition.
2308 (syms_of_file_coding): Add new symbol `composite'.
2310 2000-04-25 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2312 * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
2313 (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
2314 of `Vcharacter_composition_table' if `->decomposition' property
2316 (Qlatin_tcvn5712): New variable.
2317 (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
2318 (complex_vars_of_mule_charset): Add new coded-charset
2321 * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
2323 2000-04-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
2325 * file-coding.h (struct Lisp_Coding_System): Add
2326 `enable_composition'.
2327 (CODING_SYSTEM_COMPOSITE): New macro.
2328 (XCODING_SYSTEM_COMPOSITE): New macro.
2330 2000-03-17 MORIOKA Tomohiko <tomo@m17n.org>
2332 * mule-canna.c (c2mu): Fix problem with UTF-2000.
2334 2000-03-16 MORIOKA Tomohiko <tomo@m17n.org>
2336 * mule-charset.c (Fput_char_attribute): Don't make mapping-table
2337 if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
2339 2000-02-24 MORIOKA Tomohiko <tomo@m17n.org>
2341 * mule-charset.c (Vcharset_mojikyo): New variable.
2342 (Fdefine_char): Don't use coded-charset which does not have
2343 non-builtin character range to allocate character-id.
2344 (Qmojikyo): New variable.
2345 (syms_of_mule_charset): Add new symbol `mojikyo'.
2346 (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
2348 * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
2349 (LEADING_BYTE_MOJIKYO): New macro.
2350 (MIN_CHAR_MOJIKYO): New macro.
2351 (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
2352 (MAX_CHAR_MOJIKYO): New macro.
2354 2000-02-12 MORIOKA Tomohiko <tomo@m17n.org>
2356 * mule-charset.c (remove_char_attribute): Fixed.
2358 2000-02-08 MORIOKA Tomohiko <tomo@m17n.org>
2360 * mule-charset.c (remove_char_attribute): New function.
2361 (Fremove_char_attribute): New function.
2362 (encode_builtin_char_1): Comment out builtin-support for
2363 greek-iso8859-7 and cyrillic-iso8859-5.
2364 (Fdecode_char): Check `code' is an integer.
2365 (syms_of_mule_charset): Add `remove-char-attribute'.
2366 (MIN_CHAR_GREEK): Deleted.
2367 (MAX_CHAR_GREEK): Likewise.
2368 (MIN_CHAR_CYRILLIC): Likewise.
2369 (MAX_CHAR_CYRILLIC): Likewise.
2370 (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
2371 MAX_CHAR_GREEK for `greek-iso8859-7'.
2373 * char-ucs.h (MIN_CHAR_GREEK): Comment out.
2374 (MAX_CHAR_GREEK): Likewise.
2375 (MIN_CHAR_CYRILLIC): Likewise.
2376 (MAX_CHAR_CYRILLIC): Likewise.
2378 2000-02-02 MORIOKA Tomohiko <tomo@m17n.org>
2380 * mule-charset.c (Fdefine_char): Fix problem when new code-point
2381 format is used without `ucs' property.
2382 (Fdecode_char): Fix problem with GR representation.
2383 (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
2384 `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
2386 2000-01-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2388 * mule-charset.c (make_builtin_char): New function.
2389 (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
2390 (Fset_charset_mapping_table): Modify for new representation of
2392 (Fdecode_char): New function.
2393 (syms_of_mule_charset): Add new builtin function `decode-char' in
2396 * char-ucs.h (make_builtin_char): New prototype.
2397 (DECODE_CHAR): New inline function.
2398 (MAKE_CHAR): Use `DECODE_CHAR'.
2400 2000-01-28 MORIOKA Tomohiko <tomo@m17n.org>
2402 * text-coding.c (parse_charset_conversion_specs): Use
2403 `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
2405 (iso2022_designate): Likewise.
2407 * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
2408 `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
2410 * mule-charset.c (Vcharset_ucs): New variable.
2411 (print_charset): Change design; use `CHARSET_CHARS' and
2412 `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
2413 (make_charset): Change signature to specify `chars' and
2414 `dimension' instead of `type'.
2415 (range_charset_code_point): Modify for 256^n-set.
2416 (encode_builtin_char_1): Encode as `ucs' in default.
2417 (Fmake_charset): Modify for `make_charset'.
2418 (Fmake_reverse_direction_charset): Likewise.
2419 (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
2421 (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
2424 * char-ucs.h (Vcharset_ucs): New variable.
2425 (LEADING_BYTE_UCS): New macro.
2426 (struct Lisp_Charset): Delete `type'; change type of `dimension'
2427 and `chars' to `unsigned short' from `unsigned int'.
2428 (CHARSET_TYPE): Deleted.
2429 (XCHARSET_TYPE): Deleted.
2431 2000-01-27 MORIOKA Tomohiko <tomo@m17n.org>
2433 * mule-charset.c (charset_code_point): Moved to char-ucs.h.
2435 * char-ucs.h (charset_code_point): Moved from mule-charset.c.
2436 (ENCODE_CHAR): New macro.
2438 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2440 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2441 to 0.14 (Kawachi-Katakami).
2443 2000-01-26 MORIOKA Tomohiko <tomo@etl.go.jp>
2445 * text-coding.c (char_encode_shift_jis): Modify for
2446 `charset_code_point'.
2447 (char_encode_iso2022): Likewise.
2449 * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
2450 (integer) instead of list of <Lisp_Object>s (integers) as the
2451 format of code-point of a coded-charset.
2452 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2453 (encode_builtin_char_1): New function; delete
2454 `split_builtin_char'.
2455 (charset_code_point): Return <int> instead of <Lisp_Object>.
2456 (Fsplit_char): Don't use `SPLIT_CHAR'.
2458 * char-ucs.h (encode_builtin_char_1): New prototype; delete
2459 prototype for `split_builtin_char'.
2460 (range_charset_code_point): Return <int> instead of <Lisp_Object>.
2461 (charset_code_point): Likewise.
2462 (encode_char_1): New inline function; delete `SPLIT_CHAR'.
2463 (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
2465 2000-01-20 MORIOKA Tomohiko <tomo@m17n.org>
2467 * mule-charset.c (complex_vars_of_mule_charset): Don't define
2468 `japanese-jisx0208-1990' in non-UTF-2000 Mule.
2470 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2472 * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
2474 * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
2475 (MAX_CHAR_OBS_94x94): Deleted.
2477 2000-01-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2479 * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
2481 * char-ucs.h (MAX_CHAR_BMP): New macro.
2483 2000-01-10 MORIOKA Tomohiko <tomo@etl.go.jp>
2485 * text-coding.c: Sync with r21-2-24.
2487 2000-01-08 MORIOKA Tomohiko <tomo@etl.go.jp>
2489 * file-coding.c: Modify for UTF-2000.
2491 2000-01-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2493 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2496 2000-01-15 MORIOKA Tomohiko <tomo@etl.go.jp>
2498 * mule-charset.c (split_builtin_char): Delete builtin support for
2499 `katakana-jisx0201'.
2500 (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
2501 BMP area in builtin representation.
2503 * char-ucs.h (MAKE_CHAR): Delete builtin support for
2504 `Vcharset_katakana_jisx0201'.
2506 1999-12-24 MORIOKA Tomohiko <tomo@etl.go.jp>
2508 * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
2509 (Qisolated): New variable.
2510 (Qinitial): New variable.
2511 (Qmedial): New variable.
2512 (Qfinal): New variable.
2513 (Qvertical): New variable.
2514 (Qsmall): New variable.
2515 (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
2516 `Qvertical' and `Qsmall'.
2517 (Qmojikyo_pj_[1 .. 21]): New variable.
2518 (syms_of_mule_charset): Add new symbols `isolated', `initial',
2519 `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
2520 (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
2523 1999-11-23 MORIOKA Tomohiko <tomo@etl.go.jp>
2525 * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
2526 (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
2527 (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
2529 1999-11-18 MORIOKA Tomohiko <tomo@etl.go.jp>
2531 * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
2532 (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
2534 (Qjapanese_jisx0208_1990): New variable.
2535 (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
2536 (complex_vars_of_mule_charset): Add new coded-charset
2537 `japanese-jisx0208-1990'.
2539 * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
2540 (MIN_CHAR_JIS_X0208_1990): New macro.
2541 (MAX_CHAR_JIS_X0208_1990): New macro.
2543 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2545 * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
2546 coded-charset is not found.
2548 1999-11-16 MORIOKA Tomohiko <tomo@urania.m17n.org>
2550 * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
2551 (Fdefine_char): Use `Fmake_char'.
2553 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2555 * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
2556 (Vcharset_hiragana_jisx0208): Deleted.
2557 (Vcharset_katakana_jisx0208): Deleted.
2558 (Qideograph_daikanwa): New variable.
2559 (Qhiragana_jisx0208): Deleted.
2560 (Qkatakana_jisx0208): Deleted.
2561 (split_builtin_char): Split `ideograph-daikanwa'.
2562 (Fsplit_char): New implementation for UTF-2000.
2563 (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
2564 delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
2565 (complex_vars_of_mule_charset): Add new coded-charset
2566 `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
2567 `katakana-jisx0208'.
2569 * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
2570 (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
2571 (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
2572 (MIN_CHAR_DAIKANWA): New macro.
2573 (MAX_CHAR_DAIKANWA): New macro.
2575 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2577 * data.c (Fstring_to_number): Don't recognize floating point if
2580 1999-11-15 MORIOKA Tomohiko <tomo@urania.m17n.org>
2582 * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
2584 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2586 * mule-charset.c (Qsquare): New variable.
2587 (to_char_code): Add `Qsquare'.
2588 (syms_of_mule_charset): Add new symbol `square'.
2590 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2592 * mule-charset.c (Qcircle): New variable.
2593 (to_char_code): Add `Qcircle'.
2594 (syms_of_mule_charset): Add new symbol `circle'.
2596 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2598 * mule-charset.c (Qfont): New variable.
2599 (to_char_code): Add `Qfont'.
2600 (syms_of_mule_charset): Add new symbol `font'.
2602 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2604 * mule-charset.c (Qsub): New variable.
2605 (to_char_code): Add `Qsub'.
2606 (syms_of_mule_charset): Add new symbol `sub'.
2608 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2610 * mule-charset.c (Fput_char_attribute): Convert each element of
2611 VALUE to GL position if ATTRIBUTE is a GR-set,
2613 1999-11-14 MORIOKA Tomohiko <tomo@urania.m17n.org>
2615 * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
2616 coded-charset is a GR-set.
2618 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2620 * mule-charset.c (Fput_char_attribute): Check each element of
2621 VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
2623 1999-11-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
2625 * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
2627 (Qethiopic_ucs): New variable in UTF-2000.
2628 (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
2629 (complex_vars_of_mule_charset): Add new coded-charset
2630 `ethiopic-ucs' in UTF-2000.
2632 * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
2633 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2635 (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
2637 (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
2639 1999-11-13 MORIOKA Tomohiko <tomo@etl.go.jp>
2641 * mule-charset.c (Fset_charset_mapping_table): Fix problem with
2644 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2646 * mule-charset.c (Vcharacter_variant_table): New variable.
2647 (Q_ucs): New variable.
2648 (Fchar_variants): New function.
2649 (Fput_char_attribute): Register `->ucs' value to
2650 `Vcharacter_variant_table'.
2651 (syms_of_mule_charset): Add new function `char-variants' and new
2653 (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
2655 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2657 * mule-charset.c (get_char_code_table): Allow negative character
2659 (put_char_code_table): Likewise.
2660 (Vcharacter_composition_table): New variable.
2661 (Q_decomposition): New variable.
2662 (Qwide): New variable.
2663 (Qnarrow): New variable.
2664 (Qcompat): New variable.
2665 (QnoBreak): New variable.
2666 (Qsuper): New variable.
2667 (Qfraction): New variable.
2668 (to_char_code): New function.
2669 (Fget_composite_char): New function.
2670 (Fput_char_attribute): Register `->decomposition' value to
2671 `Vcharacter_composition_table'.
2672 (syms_of_mule_charset): Add new function `get-composite-char', new
2673 symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
2674 `super' and `fraction'.
2675 (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
2677 1999-11-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
2679 * mule-charset.c (Fchar_attribute_alist): Check the argument is a
2680 character; copy the return value.
2682 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2684 * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
2686 * mule-charset.c (range_charset_code_point): Must use make_int.
2687 (split_builtin_char): New function.
2689 1999-11-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2691 * mule-charset.c (char_byte_table): Change name from
2692 "char-code-table" to "char-byte-table".
2693 (mark_char_code_table): New function.
2694 (char_code_table_equal): New function.
2695 (char_code_table_hash): New function.
2696 (char_code_table_description): New constant.
2697 (char_code_table): New type.
2698 (make_char_code_table): New function.
2699 (copy_char_code_table): New function.
2700 (get_char_code_table): Modify for `char_code_table' type.
2701 (put_char_code_table): Likewise.
2702 (vars_of_mule_charset): Update `utf-2000-version' to 0.12
2705 * char-ucs.h (char_code_table): New type.
2706 (XCHAR_CODE_TABLE): New macro.
2707 (XSETCHAR_CODE_TABLE): New macro.
2708 (CHAR_CODE_TABLE_P): New macro.
2709 (GC_CHAR_CODE_TABLE_P): New macro.
2710 (struct Lisp_Char_Code_Table): New structure.
2712 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2714 * mule-charset.c (Fmake_charset): Setup byte_offset for
2717 1999-11-09 MORIOKA Tomohiko <tomo@urania.m17n.org>
2719 * mule-charset.c (Fdefine_char): Fix problem with non-UCS
2722 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2724 * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
2727 1999-11-09 MORIOKA Tomohiko <tomo@etl.go.jp>
2729 * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
2730 charset, it is regarded as a charset.
2731 (put_char_attribute): New function in UTF-2000.
2732 (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
2733 charset, mapping-table of the charset is modified.
2734 (Fdefine_char): New function in UTF-2000.
2735 (Fset_charset_mapping_table): Use `put_char_attribute' instead of
2736 `Fput_char_attribute'.
2737 (syms_of_mule_charset): Add new function `define-char' and new
2738 symbol `ucs' in UTF-2000.
2739 (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
2741 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2743 * mule-charset.c (Fcharset_name): Define `byte_offset' in
2744 non-UTF-2000 configuration.
2746 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2748 * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
2749 not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
2751 * mule-charset.c (mark_charset): `cs->encoding_table' has been
2753 (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
2754 (Fset_charset_mapping_table): Likewise.
2756 * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
2757 (CHARSET_ENCODING_TABLE): Delete.
2758 (XCHARSET_ENCODING_TABLE): Delete.
2759 (charset_code_point): New interface.
2761 1999-10-29 MORIOKA Tomohiko <tomo@etl.go.jp>
2763 * text-coding.c (char_encode_iso2022): Use `charset_code_point'
2764 instead of `charset_get_byte1' and `charset_get_byte2'.
2766 * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
2767 (charset_get_byte2): Deleted.
2769 1999-10-28 MORIOKA Tomohiko <tomo@etl.go.jp>
2771 * char-ucs.h (SPLIT_CHAR): New inline function.
2772 (breakup_char_1): Use `SPLIT_CHAR'.
2774 * mule-charset.c (range_charset_code_point): New function.
2775 (charset_code_point): New function.
2777 * char-ucs.h (range_charset_code_point): New interface.
2778 (breakup_char_1): Use `range_charset_code_point'.
2780 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2782 * mule-charset.c (Fmake_charset): Delete unused local variable
2785 * char-ucs.h (Vcharacter_attribute_table): New extern variable.
2786 (breakup_char_1): Find a charset and code-point in
2787 `Vcharacter_attribute_table'.
2789 1999-10-27 MORIOKA Tomohiko <tomo@etl.go.jp>
2791 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2794 1999-10-25 MORIOKA Tomohiko <tomo@etl.go.jp>
2796 * mule-charset.c (Vcharacter_attribute_table): New variable.
2797 (Fchar_attribute_alist): New function.
2798 (Fget_char_attribute): New function.
2799 (Fput_char_attribute): New function.
2800 (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
2802 (syms_of_mule_charset): Add new function `char-attribute-alist',
2803 `get-char-attribute' and `put-char-attribute'.
2804 (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
2806 1999-10-19 MORIOKA Tomohiko <tomo@etl.go.jp>
2808 * mule-charset.c (Fmake_charset): Just use
2809 `get_unallocated_leading_byte'.
2811 * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
2812 sets; don't use final-byte based number for private sets.
2814 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2816 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
2819 1999-10-12 MORIOKA Tomohiko <tomo@etl.go.jp>
2821 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
2824 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2826 * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
2827 of `CHAR_LEADING_BYTE' in UTF-2000.
2829 * insdel.c (find_charsets_in_bufbyte_string): Use
2830 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2831 (find_charsets_in_emchar_string): Likewise.
2833 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
2834 `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
2836 * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
2837 (CHAR_CHARSET_ID): New macro.
2839 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2841 * chartab.c (get_char_table): Don't use type `Charset_ID' for
2842 charset-id - MIN_LEADING_BYTE.
2843 (put_char_table): Likewise.
2845 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2847 * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
2848 (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
2849 (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
2850 (CHARSET_ID_OFFSET): New macro.
2851 (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
2852 (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
2853 (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
2854 (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2856 (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
2858 (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
2859 (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
2860 (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
2861 (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
2862 (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
2864 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2866 * mule-charset.c (next_allocated_leading_byte): New variable in
2868 (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
2869 (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
2870 (get_unallocated_leading_byte): Simply use
2871 `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
2872 (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
2875 * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
2876 (MAX_LEADING_BYTE_PRIVATE): New macro.
2877 (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
2878 (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
2880 1999-10-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
2882 * mule-charset.c (Fmake_charset): Allocate final-byte based
2883 charset-id for 94-set, 96-set and 94x94-set.
2885 1999-10-11 MORIOKA Tomohiko <tomo@etl.go.jp>
2887 * mule-charset.c (char_byte_table_equal): Fill braces to avoid
2889 (Fmake_charset): Likewise.
2890 (complex_vars_of_mule_charset): Modify the font registry of
2891 `ucs-bmp' not to match `Ethiopic-Unicode'.
2893 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2895 * mule-charset.c (complex_vars_of_mule_charset): Add font
2896 registory of `ucs-bmp'.
2898 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2900 * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
2901 coded-charsets in `default-coded-charset-priority-list' when
2902 breaking up a character.
2904 * mule-charset.c (Vcharset_latin_viscii): New variable.
2905 (Qlatin_viscii): New variable.
2906 (make_charset): Don't use `decoding_table'.
2907 (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
2909 (Fset_charset_mapping_table): New implementation.
2910 (syms_of_mule_charset): Add new symbol `latin-viscii'.
2911 (complex_vars_of_mule_charset): Set `graphic' attribute of charset
2912 `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
2913 `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
2914 of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
2915 charset `latin_viscii'.
2917 * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
2918 (CHARSET_TYPE_94X94): Change to 1 from 2.
2919 (CHARSET_TYPE_96): Change to 2 from 1.
2920 (CHARSET_TYPE_128): New macro.
2921 (CHARSET_TYPE_128X128): Change to 5 from 4.
2922 (CHARSET_TYPE_256): New macro.
2923 (CHARSET_TYPE_256X256): Change to 7 from 5.
2924 (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
2926 1999-10-10 MORIOKA Tomohiko <tomo@urania.m17n.org>
2928 * text-coding.c (char_encode_shift_jis): Refer
2929 `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
2930 `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
2932 * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
2933 (char_byte_table_equal): New function in UTF-2000.
2934 (char_byte_table_hash): New function in UTF-2000.
2935 (char_byte_table_description): New constant in UTF-2000.
2936 (char_byte_table): New type in UTF-2000.
2937 (make_char_byte_table): New function in UTF-2000.
2938 (copy_char_byte_table): New function in UTF-2000.
2939 (make_char_code_table): New macro in UTF-2000.
2940 (get_char_code_table): New function in UTF-2000.
2941 (put_char_code_table): New function in UTF-2000.
2942 (mark_charset): Mark `cs->encoding_table' in UTF-2000.
2943 (charset_description): Add setting in UTF-2000.
2944 (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
2945 `CHARSET_TO_BYTE1_TABLE(cs)'.
2946 (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
2947 instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
2948 (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
2949 instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
2950 (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
2951 instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
2952 `CHARSET_TO_BYTE2_TABLE(cs)'.
2954 * char-ucs.h (char_byte_table): New type.
2955 (XCHAR_BYTE_TABLE): New macro.
2956 (XSETCHAR_BYTE_TABLE): New macro.
2957 (CHAR_BYTE_TABLE_P): New macro.
2958 (GC_CHAR_BYTE_TABLE_P): New macro.
2959 (struct Lisp_Char_Byte_Table): New structure.
2960 (get_char_code_table): New interface.
2961 (Emchar_to_byte_table): Deleted.
2962 (get_byte_from_character_table): Deleted.
2963 (struct Lisp_Charset): Add `encoding_table'; delete
2964 `to_byte1_table' and `to_byte2_table'.
2965 (CHARSET_ENCODING_TABLE): New macro.
2966 (CHARSET_TO_BYTE1_TABLE): Deleted.
2967 (CHARSET_TO_BYTE2_TABLE): Deleted.
2968 (XCHARSET_ENCODING_TABLE): New macro.
2969 (XCHARSET_TO_BYTE1_TABLE): Deleted.
2970 (XCHARSET_TO_BYTE2_TABLE): Deleted.
2972 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2974 * mule-charset.c (syms_of_mule_charset): Delete charset alias
2975 `vietnamese-viscii-*'.
2977 1999-10-07 MORIOKA Tomohiko <tomo@etl.go.jp>
2979 * mule-charset.c (Qvietnamese_viscii_lower): New variable.
2980 (Qvietnamese_viscii_upper): New variable.
2981 (Fdefine_charset_alias): New function.
2982 (syms_of_mule_charset): Add new function `define-charset-alias'.
2983 (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
2984 `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
2987 1999-10-04 MORIOKA Tomohiko <tomo@etl.go.jp>
2989 * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
2990 (MAX_CHAR_OBS_94x94): New macro.
2991 (breakup_char_1): Support obsolete XEmacs-UCS private code space
2994 * mule-charset.c (put_byte_from_character_table): Change unit size
2996 (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
2998 (Fmake_reverse_direction_charset): Modify dummy argument of
2999 `make_charset' for non-UTF-2000 environment.
3001 1999-10-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3003 * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
3005 * mule-charset.c (destroy_byte_from_character_table): New macro.
3006 (latin_jisx0201_to_ucs): Deleted.
3007 (latin_iso8859_2_to_ucs): Deleted.
3008 (latin_iso8859_3_to_ucs): Deleted.
3009 (latin_iso8859_4_to_ucs): Deleted.
3010 (latin_iso8859_9_to_ucs): Deleted.
3011 (latin_viscii_lower_to_ucs): Deleted.
3012 (latin_viscii_upper_to_ucs): Deleted.
3013 (mark_charset): Mark `cs->decoding_table'.
3014 (Fcharset_mapping_table): Fix DOC-string.
3015 (Fset_charset_mapping_table): New function.
3016 (syms_of_mule_charset): Add nwe function
3017 `set-charset-mapping-table'.
3018 (complex_vars_of_mule_charset): Don't setup and use
3021 1999-10-01 MORIOKA Tomohiko <tomo@urania.m17n.org>
3023 * char-ucs.h (MAKE_CHAR): Check the result for range-represented
3026 1999-09-30 MORIOKA Tomohiko <tomo@urania.m17n.org>
3028 * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
3029 (Vcharset_katakana_jisx0208): New variable.
3030 (Qhiragana_jisx0208): New variable.
3031 (Qkatakana_jisx0208): New variable.
3032 (make_charset): Add new argument `byte_offset'.
3033 (charset_get_byte1): Modify for new coded-charset definition; use
3034 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3035 `XCHARSET_BYTE_OFFSET'.
3036 (Fmake_charset): Modify for `make_charset'.
3037 (Fmake_reverse_direction_charset): Likewise.
3038 (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
3039 `katakana-jisx0208'.
3040 (complex_vars_of_mule_charset): Modify for `make_charset'; quote
3041 `.' in font registry of charset `katakana-jisx0201',
3042 `latin-jisx0201', `vietnamese-viscii-lower' and
3043 `vietnamese-viscii-upper'; modify DOC-string of charset
3044 `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
3045 registry of charset `japanese-jisx0208' not to use font for JIS
3046 X0208:1990; add new charset `hiragana-jisx0208' and
3047 `katakana-jisx0208'.
3049 * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
3050 (LEADING_BYTE_KATAKANA_JISX0208): New macro.
3051 (struct Lisp_Charset): Add `byte_offset'.
3052 (CHARSET_BYTE_OFFSET): New macro.
3053 (XCHARSET_UCS_MIN): New macro.
3054 (XCHARSET_UCS_MAX): New macro.
3055 (XCHARSET_CODE_OFFSET): New macro.
3056 (XCHARSET_BYTE_OFFSET): New macro.
3057 (MIN_CHAR_HIRAGANA): New macro.
3058 (MAX_CHAR_HIRAGANA): New macro.
3059 (MIN_CHAR_KATAKANA): New macro.
3060 (MAX_CHAR_KATAKANA): New macro.
3061 (MAKE_CHAR): Modify for new coded-charset definition; use
3062 `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
3063 `XCHARSET_BYTE_OFFSET'.
3065 1999-09-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3067 * mule-charset.c (CHAR96): Deleted.
3068 (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
3070 (latin_iso8859_2_to_ucs): Likewise.
3071 (latin_iso8859_3_to_ucs): Likewise.
3072 (latin_iso8859_4_to_ucs): Likewise.
3073 (latin_iso8859_9_to_ucs): Likewise.
3074 (latin_viscii_lower_to_ucs): Likewise.
3075 (latin_viscii_upper_to_ucs): Likewise.
3076 (latin_tcvn5712_to_ucs): Commented out.
3077 (make_charset): Change type of argument `decoding_table' from
3078 <Emchar*> to <Lisp_Object> [vector of characters].
3079 (Fmake_charset): Modify for `make_charset'.
3080 (Fmake_reverse_direction_charset): Likewise.
3081 (Fcharset_mapping_table): New function in UTF-2000.
3082 (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
3084 (complex_vars_of_mule_charset): Modify for type change of
3085 `*_to_ucs'; modify for `make_charset'.
3087 * char-ucs.h (struct Lisp_Charset): Change type of
3088 `decoding_table' from <Emchar*> to <Lisp_Object>.
3089 (MAKE_CHAR): Modify for new specification of `decoding_table'.
3091 1999-09-23 MORIOKA Tomohiko <tomo@etl.go.jp>
3093 * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
3094 error with non-UTF-2000-Mule.
3096 1999-09-21 MORIOKA Tomohiko <tomo@etl.go.jp>
3098 * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
3100 (Vcharset_chinese_cns11643_4): Likewise.
3101 (Vcharset_chinese_cns11643_5): Likewise.
3102 (Vcharset_chinese_cns11643_6): Likewise.
3103 (Vcharset_chinese_cns11643_7): Likewise.
3104 (Qchinese_cns11643_3): Likewise.
3105 (Qchinese_cns11643_4): Likewise.
3106 (Qchinese_cns11643_5): Likewise.
3107 (Qchinese_cns11643_6): Likewise.
3108 (Qchinese_cns11643_7): Likewise.
3109 (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
3110 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3111 and `chinese-cns11643-7' to lisp/mule/chinese.el.
3112 (complex_vars_of_mule_charset): Likewise.
3114 1999-09-18 MORIOKA Tomohiko <tomo@etl.go.jp>
3116 * mule-charset.c (charset_get_byte1): Fix bug about 94- and
3118 (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
3119 CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
3121 1999-09-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3123 * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
3125 (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
3126 (breakup_char_1): Likewise.
3128 * text-coding.c (char_encode_iso2022): Keep designated charsets if
3129 one of them includes the specified character.
3131 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3133 * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
3135 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3137 * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
3139 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3141 * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
3142 definition for non-UTF-2000 Mule.
3143 (latin_iso8859_3_to_ucs): Likewise.
3144 (latin_iso8859_4_to_ucs): Likewise.
3145 (latin_iso8859_9_to_ucs): Likewise.
3146 (latin_jisx0201_to_ucs): Likewise.
3147 (MIN_CHAR_THAI): Likewise.
3148 (MAX_CHAR_THAI): Likewise.
3149 (MIN_CHAR_GREEK): Likewise.
3150 (MAX_CHAR_GREEK): Likewise.
3151 (MIN_CHAR_HEBREW): Likewise.
3152 (MAX_CHAR_HEBREW): Likewise.
3153 (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
3154 (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
3155 (MIN_CHAR_CYRILLIC): Likewise.
3156 (MAX_CHAR_CYRILLIC): Likewise.
3158 1999-09-14 MORIOKA Tomohiko <tomo@etl.go.jp>
3160 * char-ucs.h (breakup_char_1): Use
3161 `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
3162 thai-tis620 and katakana-jisx0201 area.
3164 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3166 * char-ucs.h (breakup_char_1): Use
3167 `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
3170 * text-coding.c (reset_encoding_stream): Fixed.
3171 (char_encode_ucs4): Delete `& 255'.
3173 * char-ucs.h (breakup_char_1): Use
3174 `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
3176 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3178 * file-coding.c (Fmake_coding_system): Don't set up
3179 `codesys->fixed.size'.
3180 (encode_coding_no_conversion): Don't refer
3181 `str->codesys->fixed.size'.
3183 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3185 * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
3186 (latin_a_char_to_byte1): Deleted.
3187 (latin_a_char_to_byte2): Deleted.
3189 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3191 * mule-charset.c (make_charset): Add new argument `ucs_min',
3192 `ucs_max' and `code_offset'.
3193 (charset_get_byte1): New implementation [delete specific charset
3194 depended implementations].
3195 (Fmake_charset): Modify for `make_charset'.
3196 (Fmake_reverse_direction_charset): Likewise.
3197 (complex_vars_of_mule_charset): Likewise.
3199 * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
3201 (CHARSET_UCS_MIN): New macro.
3202 (CHARSET_UCS_MAX): New macro.
3203 (CHARSET_CODE_OFFSET): New macro.
3204 (MAKE_CHAR): Delete charset depended definitions [except
3207 1999-09-13 MORIOKA Tomohiko <tomo@etl.go.jp>
3209 * char-ucs.h (breakup_char_1): Use
3210 `Vdefault_coded_charset_priority_list' for C0-Controls,
3211 Basic-Latin, C1-Controls and Latin-1-Supplement area.
3213 1999-09-13 MORIOKA Tomohiko <tomo@urania.m17n.org>
3215 * char-ucs.h (charset_get_byte1): New function.
3216 (XCHARSET_GET_BYTE1): Deleted.
3217 (charset_get_byte2): New function.
3218 (XCHARSET_GET_BYTE2): Deleted.
3219 (Vdefault_coded_charset_priority_list): New external variable.
3220 (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
3221 `Vdefault_preferred_coded_charset_list'.
3223 * mule-charset.c (charset_get_byte1): New function.
3224 (charset_get_byte2): New function.
3225 (Vdefault_coded_charset_priority_list): New variable.
3226 (vars_of_mule_charset): Add new variable
3227 `default-coded-charset-priority-list'.
3229 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3231 * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
3232 (XCHARSET_GET_BYTE2): New inline function.
3233 (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
3234 `XCHARSET_GET_BYTE2'.
3236 1999-09-12 MORIOKA Tomohiko <tomo@urania.m17n.org>
3238 * mule-charset.c (make_charset): Initialize
3239 `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
3240 NULL if table is not defined.
3242 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3244 * text-coding.c (char_encode_shift_jis): Use
3245 `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
3246 `ucs_to_latin_jisx0201'.
3248 * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
3249 (ucs_to_latin_iso8859_2): Deleted.
3250 (ucs_to_latin_iso8859_3): Deleted.
3251 (ucs_to_latin_iso8859_4): Deleted.
3252 (ucs_to_latin_iso8859_9): Deleted.
3253 (ucs_to_latin_viscii_lower): Deleted.
3254 (ucs_to_latin_viscii_upper): Deleted.
3255 (ucs_to_latin_tcvn5712): Deleted.
3256 (make_charset): Add new argument `decoding_table'; set up
3257 `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
3258 `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
3259 `decoding_table' is defined in UTF-2000.
3260 (Fmake_charset): Modify for `make_charset'.
3261 (Fmake_reverse_direction_charset): Likewise.
3262 (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
3263 and `GENERATE_96_SET'.
3265 * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
3266 (ucs_to_latin_jisx0201): Deleted.
3267 (latin_iso8859_2_to_ucs): Deleted.
3268 (ucs_to_latin_iso8859_2): Deleted.
3269 (latin_iso8859_3_to_ucs): Deleted.
3270 (ucs_to_latin_iso8859_3): Deleted.
3271 (latin_iso8859_4_to_ucs): Deleted.
3272 (ucs_to_latin_iso8859_4): Deleted.
3273 (latin_iso8859_9_to_ucs): Deleted.
3274 (ucs_to_latin_iso8859_9): Deleted.
3275 (latin_viscii_lower_to_ucs): Deleted.
3276 (ucs_to_latin_viscii_lower): Deleted.
3277 (latin_viscii_upper_to_ucs): Deleted.
3278 (ucs_to_latin_viscii_upper): Deleted.
3279 (struct Lisp_Charset): Renamed `encoding_table' to
3280 `to_byte1_table'; add `to_byte2_table'.
3281 (CHARSET_DECODING_TABLE): New macro.
3282 (CHARSET_TO_BYTE1_TABLE): New macro.
3283 (CHARSET_TO_BYTE2_TABLE): New macro.
3284 (XCHARSET_DECODING_TABLE): New macro.
3285 (XCHARSET_TO_BYTE1_TABLE): New macro.
3286 (XCHARSET_TO_BYTE2_TABLE): New macro.
3287 (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
3289 (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
3290 don't use `ucs_to_*' tables.
3292 1999-09-11 MORIOKA Tomohiko <tomo@urania.m17n.org>
3294 * text-coding.c (Fmake_coding_system): Don't set up
3295 `codesys->fixed.size'.
3296 (encode_coding_no_conversion): Use `if' instead of `switch'.
3298 * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
3300 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3302 * mule-charset.c (make_charset): Delete argument `rep_bytes'.
3303 (Fmake_charset): Modify for `make_charset'.
3304 (Fmake_reverse_direction_charset): Likewise.
3305 (complex_vars_of_mule_charset): Likewise.
3307 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3309 * text-coding.c (char_encode_shift_jis): Use table
3310 `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
3312 1999-09-11 MORIOKA Tomohiko <tomo@etl.go.jp>
3314 * text-coding.c (text_encode_generic): Use `if' instead of
3316 (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
3319 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3321 * text-coding.c (encode_coding_sjis): Deleted.
3322 (char_encode_shift_jis): New function.
3323 (char_finish_shift_jis): New function.
3324 (reset_encoding_stream): Set up `encode_char' and `finish' for
3325 `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
3326 (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
3327 (char_encode_utf8): Treat `eol_type'.
3329 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3331 * file-coding.c (decode_coding_iso2022): Use
3332 `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
3334 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3336 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3339 1999-09-10 MORIOKA Tomohiko <tomo@etl.go.jp>
3341 * char-lb.h (CHAR_COLUMNS): New macro.
3343 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3345 * text-coding.c (char_encode_ucs4): New function.
3346 (char_finish_ucs4): New function.
3347 (encode_coding_ucs4): Deleted.
3348 (mule_encode): Use generic encoder for `CODESYS_UCS4'.
3349 (text_encode_generic): Delete local variable `charset' and `half'.
3350 (ucs_to_mule_table): Deleted.
3351 (mule_to_ucs_table): Deleted.
3352 (Fset_ucs_char): Deleted.
3353 (ucs_to_char): Deleted.
3354 (Fucs_char): Deleted.
3355 (Fset_char_ucs): Deleted.
3356 (Fchar_ucs): Deleted.
3357 (decode_ucs4): Deleted.
3358 (mule_char_to_ucs4): Deleted.
3359 (encode_ucs4): Deleted.
3360 (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
3361 (decode_coding_utf8): Likewise.
3362 (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
3363 (char_encode_iso2022): Fixed.
3364 (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
3365 `Fset_char_ucs' and `Fchar_ucs'.
3366 (complex_vars_of_file_coding): Don't initialize
3367 `ucs_to_mule_table'.
3369 * objects-tty.c (tty_initialize_font_instance): Don't use
3372 * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
3375 * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
3376 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3378 * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
3379 instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3380 (emchar_string_displayed_columns): Likewise.
3382 * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
3383 `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
3384 (string_column_at_point): Likewise.
3385 (Fmove_to_column): Likewise.
3387 * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
3388 `encoding_table' and `decoding_table'.
3389 (CHARSET_REP_BYTES): Deleted.
3390 (XCHARSET_REP_BYTES): Deleted.
3391 (XCHARSET_COLUMNS): Deleted.
3392 (CHAR_COLUMNS): New macro.
3393 (lookup_composite_char): Deleted unconditionally.
3394 (composite_char_string): Likewise.
3396 1999-09-09 MORIOKA Tomohiko <tomo@etl.go.jp>
3398 * char-ucs.h (Emchar_to_byte_table): New type.
3399 (get_byte_from_character_table): New function interface.
3400 (Vcharset_latin_jisx0201): New variable.
3401 (latin_jisx0201_to_ucs): New variable.
3402 (ucs_to_latin_jisx0201): New variable.
3403 (Vcharset_latin_iso8859_2): New variable.
3404 (latin_iso8859_2_to_ucs): New variable.
3405 (ucs_to_latin_iso8859_2): New variable.
3406 (Vcharset_latin_iso8859_3): New variable.
3407 (latin_iso8859_3_to_ucs): New variable.
3408 (ucs_to_latin_iso8859_3): New variable.
3409 (Vcharset_latin_iso8859_4): New variable.
3410 (latin_iso8859_4_to_ucs): New variable.
3411 (ucs_to_latin_iso8859_4): New variable.
3412 (Vcharset_latin_iso8859_9): New variable.
3413 (latin_iso8859_9_to_ucs): New variable.
3414 (ucs_to_latin_iso8859_9): New variable.
3415 (Vcharset_latin_viscii_lower): New variable.
3416 (latin_viscii_lower_to_ucs): New variable.
3417 (ucs_to_latin_viscii_lower): New variable.
3418 (Vcharset_latin_viscii_upper): New variable.
3419 (latin_viscii_upper_to_ucs): New variable.
3420 (ucs_to_latin_viscii_upper): New variable.
3421 (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
3422 (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
3423 (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
3424 (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
3425 `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
3426 `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
3427 (breakup_char_1): Use `ucs_to_latin_iso8859_2',
3428 `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
3429 `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
3430 `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
3432 * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
3433 (Vcharset_latin_viscii_upper): New variable.
3434 (make_byte_from_character_table): New function.
3435 (put_byte_from_character_table): New function.
3436 (get_byte_from_character_table): New function.
3437 (CHAR96): New macro.
3438 (ucs_to_latin_jisx0201): New variable.
3439 (latin_jisx0201_to_ucs): New variable.
3440 (ucs_to_latin_iso8859_2): New variable.
3441 (latin_iso8859_2_to_ucs): New variable.
3442 (ucs_to_latin_iso8859_3): New variable.
3443 (latin_iso8859_3_to_ucs): New variable.
3444 (ucs_to_latin_iso8859_4): New variable.
3445 (latin_iso8859_4_to_ucs): New variable.
3446 (ucs_to_latin_iso8859_9): New variable.
3447 (latin_iso8859_9_to_ucs): New variable.
3448 (ucs_to_latin_viscii_lower): New variable.
3449 (latin_viscii_lower_to_ucs): New variable.
3450 (ucs_to_latin_viscii_upper): New variable.
3451 (latin_viscii_upper_to_ucs): New variable.
3452 (ucs_to_latin_tcvn5712): New variable.
3453 (latin_tcvn5712_to_ucs): New variable.
3454 (Qlatin_viscii_lower): New variable.
3455 (Qlatin_viscii_upper): New variable.
3456 (syms_of_mule_charset): Set up new symbol
3457 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
3458 (complex_vars_of_mule_charset): Set up new charset
3459 `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
3460 `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
3461 `ucs_to_<CHARSET>' tables.
3463 1999-09-08 MORIOKA Tomohiko <tomo@etl.go.jp>
3465 * text-coding.c: New file.
3467 1999-09-07 MORIOKA Tomohiko <tomo@etl.go.jp>
3469 * mule-charset.c (Fmake_char): Fix problem of 256-set.
3471 * char-ucs.h (Vcharset_ucs_bmp): New variable.
3472 (MAKE_CHAR): Modify for `ucs-bmp'.
3473 (breakup_char_1): Return `ucs-bmp' and code point of BMP for
3474 non-MULE characters of BMP.
3476 1999-09-06 MORIOKA Tomohiko <tomo@etl.go.jp>
3478 * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3481 1999-09-05 MORIOKA Tomohiko <tomo@urania.m17n.org>
3484 - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
3485 - Include character.h for `CHAR_ASCII_P'.
3487 * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
3489 * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
3490 (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
3492 * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
3493 (BYTE_C0_P): Likewise.
3494 (BYTE_C1_P): Likewise.
3495 (Lstream_get_emchar_1): Likewise.
3496 (Lstream_fput_emchar): Likewise.
3497 (Lstream_funget_emchar): Likewise.
3498 (copy_internal_to_external): Likewise.
3499 (copy_external_to_internal): Likewise.
3501 * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
3502 (BYTE_C0_P): Likewise.
3503 (BYTE_C1_P): Likewise.
3504 (Lstream_get_emchar_1): Likewise.
3505 (Lstream_fput_emchar): Likewise.
3506 (Lstream_funget_emchar): Likewise.
3507 (copy_internal_to_external): Likewise.
3508 (copy_external_to_internal): Likewise.
3510 * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
3511 (REP_BYTES_BY_FIRST_BYTE): Likewise.
3513 * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
3514 (BYTE_ASCII_P): Moved to mb-1byte.h.
3516 1999-09-04 MORIOKA Tomohiko <tomo@urania.m17n.org>
3518 * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
3520 * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
3521 (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
3522 (VALID_CHARPTR_P): Moved to mb-*byte.h.
3523 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3524 (VALIDATE_CHARPTR_FORWARD): Likewise.
3525 (simple_charptr_emchar): Moved to mb-multibyte.h.
3526 (simple_set_charptr_emchar): Likewise.
3527 (simple_charptr_copy_char): Likewise.
3528 (non_ascii_charptr_emchar): Likewise.
3529 (non_ascii_set_charptr_emchar): Likewise.
3530 (non_ascii_charptr_copy_char): Likewise.
3531 (charptr_emchar): Moved to mb-*byte.h.
3532 (set_charptr_emchar): Likewise.
3533 (charptr_copy_char): Likewise.
3535 * mb-1byte.h, mb-multibyte.h: New files.
3537 1999-09-03 MORIOKA Tomohiko <tomo@urania.m17n.org>
3539 * mb-utf-8.h (MULTIBYTE): New macro.
3540 (MAX_EMCHAR_LEN): Moved from buffer.h.
3541 (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
3543 * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
3545 * mb-lb.h, multibyte.h: New files.
3547 * char-1byte.h (Charset_ID): Moved from buffer.h.
3548 (MIN_LEADING_BYTE): Likewise.
3549 (LEADING_BYTE_ASCII): Likewise.
3550 (NUM_LEADING_BYTES): Likewise.
3551 (CHARSETP): Likewise.
3552 (CHARSET_BY_LEADING_BYTE): Likewise.
3553 (XCHARSET_LEADING_BYTE): Likewise.
3554 (XCHARSET_GRAPHIC): Likewise.
3555 (XCHARSET_COLUMNS): Likewise.
3556 (XCHARSET_DIMENSION): Likewise.
3557 (CHAR_CHARSET): Likewise.
3558 (CHAR_LEADING_BYTE): Likewise.
3559 (BREAKUP_CHAR): Likewise.
3560 (Vcharset_ascii): Likewise.
3562 * buffer.h: Include multibyte.h unconditionally.
3563 (VALID_CHARPTR_P): Moved to multibyte.h.
3564 (ASSERT_VALID_CHARPTR): Likewise.
3565 (REAL_INC_CHARPTR): Likewise.
3566 (REAL_INC_CHARBYTIND): Likewise.
3567 (REAL_DEC_CHARPTR): Likewise.
3568 (INC_CHARPTR): Likewise.
3569 (INC_CHARBYTIND): Likewise.
3570 (DEC_CHARPTR): Likewise.
3571 (VALIDATE_CHARPTR_BACKWARD): Likewise.
3572 (VALIDATE_CHARPTR_FORWARD): Likewise.
3573 (charptr_n_addr): Likewise.
3574 (MAX_EMCHAR_LEN): Moved to mb-*.h.
3575 (simple_charptr_emchar): Moved to multibyte.h.
3576 (simple_set_charptr_emchar): Likewise.
3577 (simple_charptr_copy_char): Likewise.
3578 (non_ascii_charptr_emchar): Likewise.
3579 (non_ascii_set_charptr_emchar): Likewise.
3580 (non_ascii_charptr_copy_char): Likewise.
3581 (charptr_emchar): Likewise.
3582 (set_charptr_emchar): Likewise.
3583 (charptr_copy_char): Likewise.
3584 (charptr_emchar_n): Likewise.
3585 (Charset_ID): Moved to char-1byte.h.
3586 (Vcharset_ascii): Likewise.
3587 (CHAR_CHARSET): Likewise.
3588 (CHAR_LEADING_BYTE): Likewise.
3589 (LEADING_BYTE_ASCII): Likewise.
3590 (NUM_LEADING_BYTES): Likewise.
3591 (MIN_LEADING_BYTE): Likewise.
3592 (CHARSETP): Likewise.
3593 (CHARSET_BY_LEADING_BYTE): Likewise.
3594 (XCHARSET_LEADING_BYTE): Likewise.
3595 (XCHARSET_GRAPHIC): Likewise.
3596 (XCHARSET_COLUMNS): Likewise.
3597 (XCHARSET_DIMENSION): Likewise.
3598 (BREAKUP_CHAR): Likewise.
3600 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3602 * character.h: Add document about interface for characters.
3604 * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
3605 (MAKE_CHAR): Delete comment about
3606 `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
3607 `FIELD2_TO_PRIVATE_LEADING_BYTE'.
3608 (BREAKUP_CHAR): Modify name of arguments.
3609 (CHAR_CHARSET): Modify name of argument.
3611 * buffer.h: Delete document about Emchar accessors.
3613 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3615 * character.h (CHAR_INTP): Moved from buffer.h
3616 (CHAR_OR_CHAR_INTP): Likewise.
3617 (XCHAR_OR_CHAR_INT): Likewise.
3618 (CHECK_CHAR_COERCE_INT): Likewise.
3620 * buffer.h (CHAR_INTP): Moved to character.h
3621 (CHAR_OR_CHAR_INTP): Likewise.
3622 (XCHAR_OR_CHAR_INT): Likewise.
3623 (CHECK_CHAR_COERCE_INT): Likewise.
3625 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3628 - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
3629 - Include char-1byte.h, char-lb.h or char-ucs.h.
3631 * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
3633 * buffer.h: Include character unconditionally.
3634 (valid_char_p): Moved to char-*.h.
3635 (non_ascii_valid_char_p): Moved to char-lb.h.
3637 * char-1byte.h, char-lb.h, char-ucs.h: New files.
3639 1999-09-02 MORIOKA Tomohiko <tomo@urania.m17n.org>
3641 * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
3642 in UTF-2000 because it is not ported yet and not to use
3643 `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
3644 `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
3645 `FIELD1_TO_PRIVATE_LEADING_BYTE'.
3647 * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
3648 (CHAR_ASCII_P): Moved from character.h.
3650 * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
3651 (CHAR_ASCII_P): Likewise.
3652 (CHAR_FIELD1_MASK): Deleted.
3653 (CHAR_FIELD2_MASK): Deleted.
3654 (CHAR_FIELD3_MASK): Deleted.
3655 (MAX_CHAR_BASIC_LATIN): New macro.
3656 (CHAR_FIELD1): Deleted.
3657 (CHAR_FIELD2_INTERNAL): Deleted.
3658 (CHAR_FIELD3_INTERNAL): Deleted.
3659 (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
3660 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
3661 (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
3662 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
3663 (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
3664 (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
3665 (MIN_CHAR_FIELD2_PRIVATE): Deleted.
3666 (MAX_CHAR_FIELD2_PRIVATE): Deleted.
3667 (MIN_CHAR_FIELD1_PRIVATE): Deleted.
3668 (MAX_CHAR_FIELD1_PRIVATE): Deleted.
3669 (MULE_CHAR_PRIVATE_OFFSET): Deleted.
3670 (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
3671 (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
3672 (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
3673 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
3674 (MIN_CHAR_COMPOSITION): Deleted.
3675 (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
3676 `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
3678 1999-09-02 MORIOKA Tomohiko <tomo@m17n.org>
3680 * buffer.h: Include mb-utf-8.h in UTF-2000.
3682 * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
3684 * mb-utf-8.h: New file.
3686 1999-09-02 MORIOKA Tomohiko <tomo@etl.go.jp>
3688 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
3691 * mule-charset.h, buffer.h (Charset_ID): New type.
3693 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3695 * mule-canna.c (c2mu): Use `MAKE_CHAR',
3696 `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
3697 instead of `MULE_CHAR_PRIVATE_OFFSET',
3698 `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
3699 and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
3700 (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
3702 * character.h (Vcharset_japanese_jisx0212): New variable
3705 1999-09-01 MORIOKA Tomohiko <tomo@etl.go.jp>
3707 * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
3708 (charset_by_attributes): Delete array about direction.
3709 (latin_a_char_to_charset): New variable in UTF-2000.
3710 (latin_a_char_to_byte1): New variable in UTF-2000.
3711 (latin_a_char_to_byte2): New variable in UTF-2000.
3712 (Qucs_bmp): New variable.
3713 (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
3715 (next_allocated_2_byte_leading_byte): Likewise.
3716 (non_ascii_set_charptr_emchar): Likewise.
3717 (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
3718 `CHARSET_TYPE_256X256' in UTF-2000; modify for
3719 `charset_by_attributes'.
3720 (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
3721 (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
3722 and `CHARSET_BY_LEADING_BYTE'.
3723 (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
3724 `utf-2000-version' to `vars_of_mule_charset'.
3725 (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
3726 define `leading-code-private-11' in UTF-2000; move setting of
3727 `utf-2000-version' from `syms_of_mule_charset'.
3728 (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
3731 * character.h (Charset_ID): New type.
3732 (LEADING_BYTE_UCS_BMP): New macro.
3733 (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
3734 (CHARSET_ID_OFFSET_94): New macro.
3735 (MIN_CHARSET_ID_PRIVATE_94): New macro.
3736 (MAX_CHARSET_ID_PRIVATE_94): New macro.
3737 (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
3739 (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
3740 (LEADING_BYTE_LATIN_JISX0201): Likewise.
3741 (CHARSET_ID_OFFSET_96): New macro.
3742 (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
3743 CHARSET_ID_OFFSET_96 and final-byte.
3744 (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
3745 (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
3746 (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
3747 (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
3748 (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
3749 (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
3750 (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
3751 (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
3752 (LEADING_BYTE_THAI_TIS620): Likewise.
3753 (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
3754 (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
3755 (CHARSET_ID_OFFSET_94x94): New macro.
3756 (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
3757 CHARSET_ID_OFFSET_94x94 and final-byte.
3758 (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
3759 (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
3760 (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
3761 (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
3762 (LEADING_BYTE_CHINESE_GB2312): Likewise.
3763 (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
3764 (LEADING_BYTE_KOREAN_KSC5601): Likewise.
3765 (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
3766 (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
3767 (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
3768 (LEADING_BYTE_KOREAN_KPS9566): Likewise.
3769 (CHARSET_TYPE_128X128): New macro.
3770 (CHARSET_TYPE_256X256): New macro.
3771 (XCHARSET_PRIVATE_P): Delete unconditionally.
3772 (charset_by_attributes): Delete array about direction.
3773 (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
3774 (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
3775 (MIN_CHAR_94): New macro.
3776 (MAX_CHAR_94): New macro.
3777 (MIN_CHAR_96): New macro.
3778 (MAX_CHAR_96): New macro.
3779 (MIN_CHAR_94x94): New macro.
3780 (MAX_CHAR_94x94): New macro.
3781 (MIN_CHAR_96x96): New macro.
3782 (MAX_CHAR_96x96): New macro.
3783 (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
3784 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3785 (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
3787 (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
3788 (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
3789 (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
3790 (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
3791 (MAX_CHAR_PRIVATE_TYPE9N): Changed.
3792 (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
3793 `XCHARSET_LEADING_BYTE' to make code-point.
3794 (latin_a_char_to_charset): New variable.
3795 (latin_a_char_to_byte1): New variable.
3796 (latin_a_char_to_byte2): New variable.
3797 (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
3798 Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
3799 `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
3801 * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
3802 instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
3803 (find_charsets_in_emchar_string): Likewise.
3804 (vars_of_insdel): Don't define local variable `i' in UTF-2000.
3806 * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
3808 (decode_coding_iso2022): Likewise.
3810 * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
3813 * redisplay.c (redisplay_text_width_emchar_string): Use
3814 `Charset_ID' instead of `unsigned char'.
3815 (redisplay_frame_text_width_string): Likewise.
3817 * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
3820 * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
3821 instead of `unsigned char'.
3822 (face_cachel_charset_font_metric_info): Likewise.
3824 * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
3825 (get_non_ascii_char_table_value): Likewise.
3826 (get_char_table): Likewise.
3827 (put_char_table): Likewise.
3828 (map_over_other_charset): Likewise.
3829 (map_char_table): Likewise.
3831 * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
3832 instead of `unsigned char'.
3834 1999-08-31 MORIOKA Tomohiko <tomo@etl.go.jp>
3836 * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
3837 (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
3839 * mule-charset.c (leading_code_private_11): Don't define in
3842 * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
3843 in UTF-2000 because it is not ported yet and not to use
3844 `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
3846 1999-08-30 MORIOKA Tomohiko <tomo@etl.go.jp>
3848 * character.h (LEADING_BYTE_COMPOSITE): Deleted.
3850 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3852 * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
3855 * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
3856 of unsigned char to store leading-byte.
3858 * chartab.c (get_non_ascii_char_table_value): Don't use
3859 `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
3861 * file-coding.c (encode_coding_big5): Delete bogus implementation
3864 * character.h (LEADING_BYTE_*): Delete definition for
3866 (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
3867 (LEADING_BYTE_PREFIX_P): Deleted.
3868 (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
3869 (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
3870 (BUFBYTE_LEADING_BYTE_P): Deleted.
3871 (CHARSET_PRIVATE_P): Deleted unconditionally.
3872 (rep_bytes_by_first_byte): Deleted unconditionally.
3873 (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
3874 (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
3875 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
3876 (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
3877 (CHAR_FIELD2): Deleted.
3878 (CHAR_FIELD3): Deleted.
3879 (MAKE_CHAR): Delete definition for non-UTF-2000.
3880 (BREAKUP_CHAR_1_UNSAFE): Deleted.
3881 (breakup_char_1): New implementation.
3882 (CHAR_CHARSET): Use `BREAKUP_CHAR'.
3883 (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
3885 1999-08-29 MORIOKA Tomohiko <tomo@etl.go.jp>
3887 * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
3890 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3892 * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
3893 (CHARSET_PRIVATE_P): Likewise.
3894 (XCHARSET_PRIVATE_P): Likewise.
3895 (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
3897 * file-coding.c (encode_coding_ucs4): Delete bogus implement in
3899 (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
3901 1999-08-28 MORIOKA Tomohiko <tomo@etl.go.jp>
3903 * character.h (LEADING_BYTE_*): Changed in UTF2000.
3904 (NUM_LEADING_BYTES): Changed from 128 to 256.
3905 (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3906 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
3908 (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
3910 * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
3912 (Vcharset_chinese_cns11643_4): New variable in UTF2000.
3913 (Vcharset_chinese_cns11643_5): New variable in UTF2000.
3914 (Vcharset_chinese_cns11643_6): New variable in UTF2000.
3915 (Vcharset_chinese_cns11643_7): New variable in UTF2000.
3916 (Qchinese_cns11643_3): New variable in UTF2000.
3917 (Qchinese_cns11643_4): New variable in UTF2000.
3918 (Qchinese_cns11643_5): New variable in UTF2000.
3919 (Qchinese_cns11643_6): New variable in UTF2000.
3920 (Qchinese_cns11643_7): New variable in UTF2000.
3921 (syms_of_mule_charset): Define `chinese-cns11643-3',
3922 `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
3923 and `chinese-cns11643-7' in UTF2000.
3924 (vars_of_mule_charset): Initialize
3925 next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
3927 (complex_vars_of_mule_charset): Setup charset
3928 `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
3929 `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
3931 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3933 * mule-charset.c: Move setting for `leading-code-private-11' from
3934 `syms_of_mule_charset' to `vars_of_mule_charset'.
3936 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3938 * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
3939 and `NUM_LEADING_BYTES' in assert.
3941 1999-08-27 MORIOKA Tomohiko <tomo@etl.go.jp>
3943 * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
3945 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
3946 `NUM_LEADING_BYTES' instead of 128.
3948 1999-08-26 MORIOKA Tomohiko <tomo@etl.go.jp>
3950 * mule-charset.h (charset_by_leading_byte): Use
3951 `NUM_LEADING_BYTES' instead of 128.
3952 (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
3954 * mule-charset.c (charset_by_leading_byte): Use
3955 `NUM_LEADING_BYTES' instead of 128.
3956 (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
3958 * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
3961 1999-08-25 MORIOKA Tomohiko <tomo@etl.go.jp>
3963 * mule-charset.c (syms_of_mule_charset): Update to
3966 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
3968 * file-coding.c (encode_coding_sjis): New implementation for
3969 UTF2000. (decode_coding_sjis): Ditto.
3971 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3973 * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
3974 Don't define in UTF2000.
3976 * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
3979 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3980 mule-ccl.c, lstream.h, buffer.h: Include character.h in every
3983 1999-06-17 MORIOKA Tomohiko <tomo@etl.go.jp>
3985 * config.h.in (CHAR_IS_UCS4): New macro.
3987 * mule-charset.c (rep_bytes_by_first_byte): Modify for
3988 conventional MULE representation.
3989 (syms_of_mule_charset): Update to 0.3 (Imamiya).
3991 * mule-charset.h: Reverted to original.
3993 * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
3994 mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
3995 "mule-charset.h" if CHAR_IS_UCS4 is defined.
3997 * character.h: New file.
3999 * file-coding.c (Fmake_coding_system): Set 1 to
4000 `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
4002 (encode_coding_no_conversion): New implementation for UTF2000.
4004 * file-coding.h (struct Lisp_Coding_System): Add new member
4007 1999-06-16 MORIOKA Tomohiko <tomo@etl.go.jp>
4009 * file-coding.c (decode_coding_iso2022): Code-point arguments of
4010 `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
4011 (encode_coding_iso2022): New implementation for UTF2000.
4013 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4015 * mule-canna.c (c2mu): New implementation for UTF2000.
4018 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4020 * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
4022 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4024 * file-coding.c (reset_encoding_stream): Set 0 to
4025 `str->iso2022.current_char_boundary' in UTF2000.
4026 (encode_utf8): Don't define in UTF2000.
4027 (encode_coding_utf8): New implementation for UTF-8 representation
4029 (complex_vars_of_file_coding): Define coding-system `utf-8'.
4031 1999-06-15 MORIOKA Tomohiko <tomo@etl.go.jp>
4033 * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
4035 * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
4037 (REP_BYTES_BY_FIRST_BYTE): Likewise.
4039 * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
4041 * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
4042 local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
4043 as UTF-8 in UTF2000.
4044 (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
4045 (non_ascii_valid_char_p): Don't define in UTF2000.
4046 (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
4047 (Lstream_get_emchar_1): Likewise.
4048 (utf-2000-version): New variable in UTF2000.
4050 * lread.c (read_escape): Add new reader `u'.
4052 * insdel.c (three_to_one_table): Don't define in UTF2000.
4053 (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
4054 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4056 (bytind_to_bufpos_func): Likewise.
4057 (buffer_mule_signal_inserted_region): Likewise.
4058 (vars_of_insdel): Don't initialize `three_to_one_table'.
4059 (init_buffer_text): Use `buf->text->mule_size' instead of
4060 `buf->text->mule_shifter' and `buf->text->mule_three_p' in
4063 * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
4064 UTF-8 representation in UTF2000.
4065 (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
4066 (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
4067 (decode_coding_iso2022): Don't define local variable `lb' in
4068 UTF2000; don't use LEADING_BYTE in UTF2000; use
4069 `DECODE_ADD_UCS_CHAR' in UTF2000.
4070 (convert_to_external_format): Decode as UTF-8 in UTF2000.
4072 * config.h.in (UTF2000): New macro.
4074 * buffer.h (struct buffer_text): Add new member `mule_size' and
4075 don't add `mule_shifter' and `mule_three_p' in UTF2000.
4076 (valid_char_p): Return always 1 in UTF2000.
4077 (MAX_EMCHAR_LEN): 6 in UTF2000.
4078 (three_to_one_table): Don't define in UTF2000.
4079 (real_bufpos_to_bytind): Modify for UTF-8 representation in
4081 (real_bytind_to_bufpos): Likewise.
4083 * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
4085 1999-06-10 MORIOKA Tomohiko <tomo@etl.go.jp>
4087 * mule-charset.c (rep_bytes_by_first_byte): Modified for character
4088 representation change.
4089 (Vutf_2000_version): New variable.
4090 (leading_code_private_11): New variable.
4091 (syms_of_mule_charset): Add new variables `utf-2000-version' and
4092 `leading-code-private-11'.
4094 * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
4095 (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
4096 (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
4097 (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
4098 (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
4099 (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
4100 (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
4101 (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
4102 (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
4103 (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
4104 (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
4105 (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
4106 (MIN_CHAR_GREEK): New macro.
4107 (MAX_CHAR_GREEK): New macro.
4108 (MIN_CHAR_CYRILLIC): New macro.
4109 (MAX_CHAR_CYRILLIC): New macro.
4110 (MIN_CHAR_HEBREW): New macro.
4111 (MAX_CHAR_HEBREW): New macro.
4112 (MIN_CHAR_THAI): New macro.
4113 (MAX_CHAR_THAI): New macro.
4114 (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
4115 (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
4116 (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
4117 (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
4118 (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
4119 (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
4120 (CHAR_FIELD2): New inline function.
4121 (CHAR_FIELD3): New inline function.
4122 (MULE_CHAR_PRIVATE_OFFSET): New macro.
4123 (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
4124 (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
4125 (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
4126 (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
4127 (MIN_CHAR_COMPOSITION): Likewise.
4128 (CHAR_LEADING_BYTE): Modified for character representation change.
4129 (MAKE_CHAR): Likewise.
4131 * lisp.h (Vcharset_latin_iso8859_1): New variable.
4132 (Vcharset_greek_iso8859_7): Likewise.
4133 (Vcharset_cyrillic_iso8859_5): Likewise.
4134 (Vcharset_hebrew_iso8859_8): Likewise.
4135 (Vcharset_thai_tis620): Likewise.
4136 (Vcharset_katakana_jisx0201): Likewise.
4138 2001-02-08 Martin Buchholz <martin@xemacs.org>
4140 * XEmacs 21.2.44 "Thalia" is released.
4142 2001-02-06 Martin Buchholz <martin@xemacs.org>
4144 Fixes crashes in kill-emacs on some systems.
4145 * process-unix.c (unix_kill_child_process):
4146 It's OK for kill() to fail with ESRCH.
4148 2001-02-07 Martin Buchholz <martin@xemacs.org>
4150 Contortions to make .gdbinit tricks work on most systems.
4151 * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
4152 * alloc.c (dbg_valmask): Make non-const.
4153 * alloc.c (dbg_typemask): Make non-const.
4154 * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
4155 * alloc.c (dbg_valbits): Make non-const.
4156 * alloc.c (dbg_gctypebits): Make non-const.
4157 * .gdbinit (decode_object): Make it work with AIX cc.
4159 2001-02-06 Martin Buchholz <martin@xemacs.org>
4161 * elhash.c (make_general_lisp_hash_table):
4162 Use simpler and more efficient calloc to clear entries.
4164 2001-02-07 Martin Buchholz <martin@xemacs.org>
4166 * window.c (window_scroll): Work around an AIX C compiler bug.
4167 Fixes 'scroll-up' does nothing problem with xlC.
4169 2001-02-05 Martin Buchholz <martin@xemacs.org>
4171 * .gdbinit: Remove obsolete comment.
4173 2001-01-31 Mike Alexander <mta@arbortext.com>
4175 * select.c (Fown_selection_internal): Set owned_p for device
4178 2001-02-01 Martin Buchholz <martin@xemacs.org>
4181 "not" cannot be used as a macro name as it is an operator in C++
4182 * config.h.in: Stop #defining `not'.
4183 * chartab.c (check_category_char): not ==> not_p
4184 * chartab.h: Likewise.
4185 * regex.c (re_match_2_internal): Likewise.
4187 2001-02-02 Martin Buchholz <martin@xemacs.org>
4189 * lisp-disunion.h: Fix up comments.
4191 2001-01-31 Martin Buchholz <martin@xemacs.org>
4193 * keymap.c (define_key_check_and_coerce_keysym):
4195 Support mouse-6 and mouse-7 bindings in the obvious way.
4197 2001-02-01 Martin Buchholz <martin@xemacs.org>
4199 * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
4201 2001-01-30 Martin Buchholz <martin@xemacs.org>
4203 Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
4204 Previous patch missed DEFVAR_INT_MAGIC.
4205 Make sure future DEFVAR_foo use correct types.
4206 * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
4207 * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
4208 * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
4209 * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
4210 * (DEFVAR_INT): Likewise.
4211 * redisplay.c (vertical_clip): Should be of type Fixnum.
4212 * redisplay.c (horizontal_clip): Likewise.
4213 * lisp.h (dump_add_opaque_int): New.
4214 (dump_add_opaque_fixnum): New.
4216 2001-01-29 Andy Piper <andy@xemacs.org>
4218 * glyphs-widget.c (check_valid_int_or_function): allow symbols
4219 since they can be eval'ed
4221 2001-01-29 Martin Buchholz <martin@xemacs.org>
4223 * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
4224 Oops, XEmacs redefines `class'. Use `typename' instead.
4226 2001-01-28 Martin Buchholz <martin@xemacs.org>
4228 * dumper.c: Fix C++ compile errors.
4230 2001-01-29 Martin Buchholz <martin@xemacs.org>
4232 * tparam.c: Use correct prototypes.
4234 2001-01-28 Martin Buchholz <martin@xemacs.org>
4236 * sysproc.h: #include util.h for NetBSD's openpty.
4238 2001-01-27 Martin Buchholz <martin@xemacs.org>
4240 More 64-bit correctness.
4241 The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
4242 Use a typedef `fixnum' for the type used for DEFVAR_INT.
4244 This finally finishes the 64-bit SGI port.
4245 Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
4246 * symbols.c: Fix up comments and type casts.
4247 * symbols.c (do_symval_forwarding): s/int/Fixnum/g
4248 * symbols.c (store_symval_forwarding): s/int/Fixnum/g
4249 * symeval.h (Fixnum): New type.
4250 * symeval.h (symbol_value_type): Fix up comment.
4266 * mule-canna.c: A million DEFVAR_INTs here...
4267 * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
4280 s/int/Fixnum/g in DEFVAR_INT declarations.
4282 2001-01-26 Martin Buchholz <martin@xemacs.org>
4284 Port pdump to SGI alignment-sensitive environment.
4285 Lisp Object sizeof methods now return aligned sizes. Rely on that.
4286 Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
4288 Define and use aligned reading and writing macros.
4289 Use buffered stdio instead of posix i/o for faster dumping.
4290 Eliminate kludgy 256 byte space for header.
4291 Read and write from dump file using structs for alignment safety.
4292 * dumper.c (pdump_align_stream): New.
4293 * dumper.c (PDUMP_ALIGN_OUTPUT): New.
4294 * dumper.c (PDUMP_READ_ALIGNED): New.
4295 * dumper.c (PDUMP_WRITE_ALIGNED): New.
4296 * dumper.c (pdump_static_Lisp_Object): New struct.
4297 * dumper.c (pdump_static_pointer): New struct.
4298 * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
4299 * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
4300 * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
4301 * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
4303 * dumper.c (pdump_backtrace):
4304 * dumper.c (pdump_get_indirect_count):
4305 * dumper.c (pdump_register_object):
4306 * dumper.c (pdump_register_struct):
4307 * dumper.c (pdump_reloc_one):
4308 * dumper.c (pdump_scan_by_alignment):
4309 * dumper.c (pdump_dump_from_root_struct_ptrs):
4310 * dumper.c (pdump_dump_opaques):
4311 * dumper.c (pdump_dump_rtables):
4312 * dumper.c (pdump_dump_from_root_objects):
4314 * dumper.c (pdump_load_finish):
4315 Use aligned reading and writing.
4317 * dumper.c (pdump_free): Make static.
4318 * dumper.c (pdump_hFile): Likewise.
4319 * dumper.c (pdump_hMap): Likewise.
4321 2001-01-26 Martin Buchholz <martin@xemacs.org>
4323 * XEmacs 21.2.43 "Terspichore" is released.
4325 2001-01-25 Martin Buchholz <martin@xemacs.org>
4327 Type fiddling for window_config.saved_windows_count
4328 * window.c (struct window_config):
4329 Make saved_windows_count member unsigned.
4330 * window.c (sizeof_window_config_for_n_windows):
4331 Make parameter unsigned.
4332 * window.c (mark_window_config):
4333 * window.c (window_config_equal):
4334 * window.c (free_window_configuration):
4335 * window.c (Fset_window_configuration):
4336 * window.c (count_windows):
4337 * window.c (Fcurrent_window_configuration):
4338 * window.c (reinit_vars_of_window):
4339 Update all callers and users.
4341 2001-01-25 Martin Buchholz <martin@xemacs.org>
4343 Alignment correctness for flexible arrays.
4344 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
4345 Make alignment-correct. Add interesting comments.
4346 * alloc.c (size_vector):
4347 * alloc.c (make_vector_internal):
4348 * alloc.c (make_bit_vector_internal):
4349 * alloc.c (sweep_bit_vectors_1):
4350 * fns.c (size_bit_vector):
4351 Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
4352 * window.c (sizeof_window_config_for_n_windows):
4353 Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
4355 2001-01-24 Martin Buchholz <martin@xemacs.org>
4357 * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
4359 2001-01-23 Andy Piper <andy@xemacs.org>
4361 * select.c (Fown_selection_internal): pass owned_p
4363 * select-msw.c (mswindows_own_selection): New Signature.
4365 * console.h (struct console_methods): add owned_p to
4368 * select-x.c (x_own_selection): pass owned_p
4369 (hack_motif_clipboard_selection): use owned_p
4370 (vars_of_select_x): new variable -
4371 x_selection_strict_motif_ownership.
4373 2001-01-23 Martin Buchholz <martin@xemacs.org>
4375 * specifier.h (specifier_data_offset): Remove pointless parens.
4376 * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
4378 2001-01-24 Martin Buchholz <martin@xemacs.org>
4380 Make Lisp_Object sizeof methods be alignment-correct.
4381 pdump must restore objects to the same alignment as the C compiler
4382 assumes. It really matters on SGIs.
4383 * lstream.c (aligned_sizeof_lstream): New.
4384 (sizeof_lstream): Use aligned_sizeof_lstream.
4385 (Lstream_new): Likewise.
4386 * opaque.c (aligned_sizeof_opaque): New.
4387 (sizeof_opaque): Use aligned_sizeof_opaque.
4388 (make_opaque): Likewise.
4389 * specifier.c (aligned_sizeof_specifier): New.
4390 (sizeof_specifier): Use aligned_sizeof_specifier.
4391 (make_specifier_internal): Likewise.
4393 2001-01-23 Martin Buchholz <martin@xemacs.org>
4395 * lstream.h (struct lstream): Use max_align_t for trailing data.
4396 * specifier.h (struct Lisp_Specifier): Likewise.
4398 2001-01-22 Martin Buchholz <martin@xemacs.org>
4400 * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
4401 (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
4402 (CCL_SUSPEND): Likewise.
4403 (CCL_INVALID_CMD): Likewise.
4404 (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
4405 (ccl_driver): Likewise.
4406 (CCL_WRITE_CHAR): Macro hygiene.
4407 (CCL_WRITE_STRING): Macro hygiene.
4409 2001-01-22 Martin Buchholz <martin@xemacs.org>
4411 Port "portable" dumper to SunOS 4 and HP-UX.
4412 * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
4413 * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
4414 * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
4416 2001-01-22 Martin Buchholz <martin@xemacs.org>
4418 * lisp.h (ALIGNOF): A better definition for C++.
4420 2001-01-20 Martin Buchholz <martin@xemacs.org>
4423 Fix printf warnings: int format, long int arg.
4424 * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
4425 (PUSH_FAILURE_POINT): Use correct printf formats.
4426 (POP_FAILURE_POINT): Use correct printf formats.
4427 Use do {...} while (0)
4429 2001-01-20 Martin Buchholz <martin@xemacs.org>
4431 * XEmacs 21.2.42 "Poseidon" is released.
4433 2001-01-20 Martin Buchholz <martin@xemacs.org>
4435 * console-x.h: typo fix du jour. Remove #if 0'ed code.
4437 2001-01-19 Martin Buchholz <martin@xemacs.org>
4439 De-kludgify FIXED_TYPE free list frobbing.
4440 Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
4441 * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
4442 * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
4443 * alloc.c (Lisp_Free): New pseudo lisp object definition.
4444 * alloc.c (LRECORD_FREE_P): New.
4445 * alloc.c (MARK_LRECORD_AS_FREE): New.
4446 * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
4447 * alloc.c (STRUCT_FREE_P): Deleted.
4448 * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
4449 * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
4450 * alloc.c (STRING_CHARS_FREE_P): New.
4451 * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
4452 * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
4453 * alloc.c (FREE_FIXED_TYPE): Use new definitions.
4454 * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
4455 * alloc.c (resize_string): Use new definitions.
4456 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
4457 * alloc.c (verify_string_chars_integrity): Use new definitions.
4458 * alloc.c (compact_string_chars): Use new definitions.
4459 * alloc.c: Update monster comments.
4460 * lrecord.h (lrecord_type): Add some new lrecord types for
4463 2001-01-18 Martin Buchholz <martin@xemacs.org>
4465 Improve alignment hackery.
4466 * lisp.h (ALIGNOF): Better definition for the non-gcc case.
4467 (max_align_t): Moved from opaque.h - general purpose.
4468 (ALIGN_PTR): Use size_t, not long.
4469 * opaque.h (max_align_t): Move to lisp.h.
4471 2001-01-18 Norbert Koch <nk@LF.net>
4473 * gui.h: Fix and add prototypes to fix build problems.
4475 2001-01-18 Martin Buchholz <martin@xemacs.org>
4477 temacs is going away, so `dump-temacs' is now a bad name.
4478 * .dbxrc (dump-temacs): Rename to `dmp'.
4479 * .gdbinit (dump-temacs): Rename to `dmp'.
4481 2001-01-17 Andy Piper <andy@xemacs.org>
4483 * glyphs.c (print_image_instance): comment to make martin happy.
4485 * glyphs-x.c (x_redisplay_widget): update faces after a frame
4488 * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
4490 (mswindows_tab_control_redisplay): warning suppression.
4492 * glyphs-widget.c (widget_update): re-write to cope with updated
4494 (widget_instantiate): use new gui_item functions.
4495 (tab_control_update): deleted.
4496 (progress_gauge_update): deleted.
4497 (image_instantiator_progress_guage): take out update reference.
4498 (image_instantiator_tree_view): ditto.
4499 (image_instantiator_tab_control): ditto.
4501 * gui.c (widget_gui_parse_item_keywords): new function. Do things
4503 (gui_item_add_keyval_pair): re-write to cope with descriptors and
4504 return whether anything was changed.
4505 (update_gui_item_keywords): as it sounds.
4507 * gui.h: declare widget_gui_parse_item_keywords.
4509 * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
4510 (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
4512 2001-01-17 Martin Buchholz <martin@xemacs.org>
4514 * XEmacs 21.2.41 "Polyhymnia" is released.
4516 2001-01-16 Didier Verna <didier@xemacs.org>
4518 * glyphs.c (image_instantiate): don't use fallbacks when
4519 instantiating a face's background pixmap by inheritance.
4521 2001-01-14 Mike Sperber <mike@xemacs.org>
4523 * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
4524 Conditionalize accordingly.
4526 2001-01-16 Martin Buchholz <martin@xemacs.org>
4528 * dumper.c (pdump_file_get): Fix a compiler warning.
4530 2001-01-15 Martin Buchholz <martin@xemacs.org>
4532 Make Purify happy when pdumping.
4533 * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
4534 iniitalizing all bits of new lisp object memory.
4535 * symbols.c (Fmake_local_variable): Likewise.
4536 * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
4537 * symbols.c (Fdefvaralias): Likewise.
4538 * mule-charset.c (vars_of_mule_charset): Likewise.
4540 2001-01-15 Martin Buchholz <martin@xemacs.org>
4541 Add the `-nd' flag when running pre-dump operations under the debugger.
4542 * .dbxrc (run-temacs): Add `-nd'.
4543 * .dbxrc (update-elc): Likewise.
4544 * .dbxrc (dump-temacs): Likewise.
4545 * .gdbinit (run-temacs): Likewise.
4546 * .gdbinit (check-temacs): Likewise.
4547 * .gdbinit (update-elc): Likewise.
4548 * .gdbinit (dump-temacs): Likewise.
4550 2001-01-14 Martin Buchholz <martin@xemacs.org>
4552 Allow building 64-bit executables on AIX with GNU malloc, e.g.
4553 export OBJECT_MODE=64
4554 configure --pdump --use-union-type=no
4555 * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
4556 * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
4558 * miscplay.c (sndcnv8U_2mono):
4559 Avoid two uses of `++' in the same expression.
4560 Suppresses a GCC warning.
4562 2001-01-13 Martin Buchholz <martin@xemacs.org>
4564 Make sure future compilers don't miscompile alloc.c.
4566 (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
4567 (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
4569 2001-01-12 Martin Buchholz <martin@xemacs.org>
4571 * dumper.c: A little post-pdump-rename comment fixup.
4573 2001-01-09 Jerry James <james@eecs.ku.edu>
4575 * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
4577 2001-01-13 Martin Buchholz <martin@xemacs.org>
4579 * *.[ch]: Globally rename symbols using the following `pdump-rename'
4583 (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
4586 replace_symbol pdump_wire_lists pdump_weak_object_chains
4587 replace_symbol pdump_wire_list dump_add_weak_object_chain
4589 replace_symbol pdump_wires pdump_root_objects
4590 replace_symbol pdump_wire dump_add_root_object
4592 replace_symbol pdump_dump_wired pdump_dump_from_root_objects
4593 replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
4595 replace_symbol dumpstructinfos pdump_root_struct_ptrs
4596 replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
4597 replace_symbol dumpstructinfo pdump_root_struct_ptr
4598 replace_symbol dumpstruct dump_add_root_struct_ptr
4600 replace_symbol dumpopaque dump_add_opaque
4601 replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
4602 replace_symbol dumpopaqueinfos pdump_opaques
4603 replace_symbol dumpopaqueinfo pdump_opaque
4605 replace_symbol nb_structdump nb_root_struct_ptrs
4606 replace_symbol nb_opaquedump nb_opaques
4608 replace_symbol align_table pdump_align_table
4609 replace_symbol dump_header pdump_header
4611 replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
4612 replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
4615 2001-01-12 Martin Buchholz <martin@xemacs.org>
4617 * s/aix4.h: Keep the C for AIX compiler from overaggressively
4618 optimizing bytecount_to_charcount().
4620 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4623 (HAVE_DLFCN_H): Removed.
4624 * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
4626 2001-01-06 Martin Buchholz <martin@xemacs.org>
4628 Portable dumper maintainability improvements.
4629 * alloc.c (staticpro):
4630 * alloc.c (staticpro_nodump):
4631 * alloc.c (garbage_collect_1):
4632 * alloc.c (reinit_alloc_once_early):
4633 * alloc.c (init_alloc_once_early):
4634 * alloc.c: Move dumper functions to alloc.c.
4635 * dumper.c (pdump_backtrace):
4636 * dumper.c (pdump_dump_structs):
4637 * dumper.c (pdump_dump_opaques):
4638 * dumper.c (pdump_dump_rtables):
4639 * dumper.c (pdump_dump_wired):
4641 * dumper.c (pdump_load_check):
4642 * dumper.c (pdump_load_finish):
4643 * dumper.c (pdump_file_unmap):
4644 * dumper.c (pdump_file_get):
4645 * dumper.c (pdump_resource_free):
4646 * dumper.c (pdump_resource_get):
4647 * dumper.c (pdump_file_free):
4648 * dumper.c (pdump_file_try):
4649 * dumper.c (pdump_load):
4650 Remove fixed size limits on staticpro(), staticpro_nodump(),
4651 dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
4652 Remove custom code for dumping lrecord_implementations_table - use
4654 Remove (most of the) custom code for dumping staticpros - dump it
4655 like any other dynarr.
4657 * alloc.h: Removed. No longer useful, since dumper now more self-contained.
4658 * dumper.c: Moved functions from alloc.c.
4659 * alloc.c (dumpstruct): Moved to dumper.c.
4660 * alloc.c (dumpopaque): Likewise.
4661 * alloc.c (pdump_wire): Likewise.
4662 * alloc.c (pdump_wire_list): Likewise.
4664 * lisp.h (Dynarr_sizeof): New.
4665 * lisp.h (Dynarr_begin): New. Very slightly C++oid.
4666 * lisp.h (Dynarr_end): New. Very slightly C++oid.
4667 * lisp.h (Lisp_Object_ptr_dynarr): New. For staticpros.
4669 * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
4670 * lisp.h (dumpopaque): ditto.
4671 * lisp.h (pdump_wire): ditto.
4672 * lisp.h (pdump_wire_list): ditto.
4674 2001-01-09 Martin Buchholz <martin@xemacs.org>
4676 * make-src-depend (PrintPatternDeps):
4677 Use `sort' to make output independent of perl version.
4679 2001-01-08 Martin Buchholz <martin@xemacs.org>
4682 * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
4683 * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
4685 2001-01-03 Didier Verna <didier@xemacs.org>
4687 * event-stream.c (emacs_handle_focus_change_preliminary): ensure
4688 that `focus_frame' is alive before thinking of calling
4689 `redisplay_redraw_cursor' on it.
4691 2001-01-08 Martin Buchholz <martin@xemacs.org>
4693 * XEmacs 21.2.40 is released.
4695 2001-01-06 Golubev I. N. <gin@mo.msk.ru>
4697 * regex.c: Replace PREFETCH with REGEX_PREFETCH.
4699 2001-01-06 Martin Buchholz <martin@xemacs.org>
4701 * alloc.c (dbg_valmask): Make const.
4702 * alloc.c (dbg_typemask): Make const.
4703 * alloc.c (dbg_USE_UNION_TYPE): Make const.
4704 * alloc.c (dbg_valbits): Make const.
4705 * alloc.c (dbg_gctypebits): Make const.
4707 2001-01-06 Stephen J. Turnbull <stephen@xemacs.org>
4709 * redisplay-x.c (x_bevel_area):
4710 redisplay.h (struct rune):
4711 Typo fixes in comments.
4713 2001-01-05 Andy Piper <andy@xemacs.org>
4715 * glyphs-x.c (x_redisplay_widget): use size changed for offset
4718 * menubar.c (menubar_visible_p_changed): don't mark frame changed.
4720 2001-01-05 Martin Buchholz <martin@xemacs.org>
4722 * alloc.c (pure-bytes-used): Remove unused mendacious variable.
4724 * mule-ccl.c (stack_idx_of_map_multiple):
4725 Non const global data must not be initialized!
4726 Found by MIYASHITA Hisashi.
4728 2001-01-02 Andy Piper <andy@xemacs.org>
4730 * frame.c (change_frame_size): make sure frame size is always
4733 * glyphs.c (image_instance_layout): minor code reuse.
4735 * window.c (Fcurrent_window_configuration): revert previous
4738 2001-01-02 Martin Buchholz <martin@xemacs.org>
4741 * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
4743 2000-12-31 Andy Piper <andy@xemacs.org>
4745 * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
4746 when widget gets unmapped.
4748 * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
4749 function. Make sure widgets losing focus don't just drop it.
4750 (handle_focus_event_1): record the widget with focus.
4752 2000-12-31 Andy Piper <andy@xemacs.org>
4754 * window.c (allocate_window): use
4755 make_image_instance_cache_hash_table.
4756 (make_dummy_parent): ditto.
4757 (Fset_window_configuration): ditto.
4759 * glyphs.h (INSTANTIATOR_TYPE): new macro. declare new functions.
4761 * glyphs.c (process_image_string_instantiator): use
4763 (get_image_instantiator_governing_domain): ditto.
4764 (normalize_image_instantiator): ditto.
4765 (instantiate_image_instantiator): ditto.
4766 (make_image_instance_1): ditto.
4767 (image_instantiate): ditto. Key on glyph *and* instantiator type.
4768 (instantiator_eq_equal): new function for use with instance hash
4770 (instantiator_eq_hash): ditto.
4771 (make_image_instance_cache_hash_table): create a suitable hash
4772 table for storing image instances.
4774 * elhash.h (hash_table_weakness): new internal weakness type
4775 HASH_TABLE_KEY_CAR_VALUE_WEAK.
4776 declare new functions.
4778 * elhash.c (finish_marking_weak_hash_tables): introduce yet
4779 another weakness type for glyphs.
4780 (make_standard_lisp_hash_table): new function split out from
4781 make_general_lisp_hash_table.
4782 (make_lisp_hash_table): call make_standard_lisp_hash_table.
4783 (hash_table_instantiate): ditto.
4784 (Fmake_hash_table): ditto.
4786 2000-12-31 Martin Buchholz <martin@xemacs.org>
4788 * XEmacs 21.2.39 is released.
4790 2000-12-29 Andy Piper <andy@xemacs.org>
4792 * menubar.c (menubar_visible_p_changed): signal the frame changed.
4794 * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
4795 the frame has changed so that we pick up geometry changes such as
4798 2000-12-28 Andy Piper <andy@xemacs.org>
4800 * lastfile.c (my_ebss): make a char array so we can pad the
4801 bss. Fixes cygwin unexec.
4803 * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
4805 2000-12-26 Andy Piper <andy@xemacs.org>
4807 * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
4808 comments and try and be more precise about a non-/SIGIO world.
4809 (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
4812 * redisplay-output.c (redisplay_normalize_glyph_area): make sure
4813 we don't normalize to zero width or height.
4815 2000-12-24 Andy Piper <andy@xemacs.org>
4817 * Makefile.in.in (ldflags): add -mwindows when appropriate.
4819 2000-08-18 Golubev I. N. <gin@mo.msk.ru>
4821 * s/sco5.h: SCO 5 has pty support.
4823 2000-07-20 Kazuyuki IENAGA <ienaga@xemacs.org>
4825 * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
4826 input-method-xlib.c contains whole contents of input-method-xfs.c,
4827 so we can use input-method-xlib.c's code for USE_XFONTSET
4829 * input-method-xfs.c: removed.
4831 2000-12-20 Stephen Turnbull <stephen@xemacs.org>
4833 * file-coding.h (enum coding_category_type): reorder enumerators to
4834 make autodetection safer. Make CODING_CATEGORY_LAST an enumerator
4835 (now one greater than largest real coding_category_type enumerator).
4836 * file-coding.c (coding_category_symbol, coding_category_by_priority,
4837 coding_category_system, fcd_descriptihon_1, decode_coding_category,
4838 Fcoding_category_list, Fset_coding_priority_list,
4839 Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
4840 vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
4842 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4844 * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
4845 * redisplay-output.c (redisplay_output_window): Clear top of window
4846 when face is changed.
4847 * redisplay-x.c (x_redraw_exposed_window): Call
4848 redisplay_clear_top_of_window.
4849 * redisplay.h: Publish redisplay_clear_top_of_window.
4851 2000-12-18 Yoshiki Hayashi <yoshiki@xemacs.org>
4853 * buffer.c (Fkill_buffer): Map over all devices.
4854 * window.c (window_loop): Remove UNSHOW_BUFFER code.
4855 (list_windows): New function.
4856 (list_all_windows): Ditto.
4857 (Freplace_buffer_in_windows): Use them.
4859 2000-02-02 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
4861 * database.c (berkdb_subtype): Recognize new subtype `queue'.
4862 (Fopen_database): Use `db_create' instead of `db_open'.
4863 (syms_of_database): Initialize Qqueue.
4865 2000-12-13 Yoshiki Hayashi <yoshiki@xemacs.org>
4867 * buffer.c (common_init_complex_vars_of_buffer): Initialize
4868 buffer_local_face_property.
4869 * buffer.h (struct buffer): New member buffer_local_face_property.
4870 * window.c (Fset_window_buffer): Mark window's face as changed
4871 when buffer has buffer local face.
4872 * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
4873 * objects.c (color_after_change): Set buffer_local_face_property
4874 when locale of face specifier is buffer.
4875 * objects.c (font_after_change): Ditto.
4876 * objects.c (face_boolean_after_change): Ditto.
4877 * glyphs.c (image_after_change): Ditto.
4879 2000-12-09 Dan Holmsand <dan@eyebee.com>
4881 * nt.c (mswindows_fstat): Report file permissions, volume serial
4882 number, etc. Code adapted from FSF Emacs 20.7.
4884 2000-12-09 Dan Holmsand <dan@eyebee.com>
4886 * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
4887 of stat when we don't have symbolic links, to make sure
4888 mswindows_stat is called on mswindows.
4890 2000-12-12 Yoshiki Hayashi <yoshiki@xemacs.org>
4892 * alloca.c: Define malloc to xmalloc only when built with XEmacs.
4894 2000-12-12 Martin Buchholz <martin@xemacs.org>
4896 * doprnt.c (emacs_doprnt_1): More printing fixes.
4897 Make printing of numbers compatible with libc and FSF Emacs.
4898 BUG was: (format "%6.3f" 1.2) ==>"1.200000"
4899 Use the system printf to do most of the hard work of formatting,
4900 instead of doprnt_1().
4901 Calculate memory to allocate for format string.
4902 Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
4903 (doprnt_1): Cleaner code and documentation.
4905 2000-12-01 Jerry James <james@eecs.ukans.edu>
4907 * Makefile.in.in: Use the loop variable to install headers.
4909 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4911 * window.c (Fsplit_window): Don't invalidate face cache.
4913 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4915 * minibuf.c (Fall_completions): Undo the previous change
4916 which removed checking elements start with space.
4918 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
4920 * mule-canna.c: Didier suppression.
4922 2000-12-06 Stephen Turnbull <stephen@xemacs.org>
4924 * mule-canna.c: rename static unsigned char buf[] to key_buffer
4925 (warning suppression). Add English comment translations.
4927 2000-12-05 Martin Buchholz <martin@xemacs.org>
4929 * unexelfsgi.c (unexec): Better test for mmap failure.
4931 2000-12-05 Martin Buchholz <martin@xemacs.org>
4933 * XEmacs 21.2.38 is released.
4935 2000-12-05 Martin Buchholz <martin@xemacs.org>
4937 * redisplay.c (bar-cursor): Make a user variable.
4939 * symsinit.h: Add init_postgresql_from_environment.
4941 2000-12-04 Yoshiki Hayashi <yoshiki@xemacs.org>
4943 * regex.c: Convert to clean C.
4945 2000-12-05 Dan Holmsand <dan@eyebee.com>
4948 Don't #include sysfile.h. Revert to duplicating PATH_MAX
4950 (sys_readlink): renamed to system_readlink to avoid conflict with
4951 the other sys_readlink.
4953 2000-12-04 Hiroaki Abe <h-abe@pc.highway.ne.jp>
4955 * dumper.c (pdump_file_get): Correct uses of pdump_fd.
4957 2000-12-04 Stephen J. Turnbull <stephen@xemacs.org>
4959 * postgresql.c (init_postgresql_from_environment): new function.
4960 (vars_of_postgresql): Move code initializing Lisp variables out and
4961 into init_postgresql_from_environment.
4962 emacs.c (main_1): Call init_postgresql_from_environment if and only
4963 if running a dumped XEmacs.
4965 2000-08-31 Dan Holmsand <dan@eyebee.com>
4967 * buffer.c: Make find-file-compare-truenames default to true on
4970 * realpath.c (win32_abs_start):
4972 (win32_readlink): New functions.
4973 (xrealpath): Return really real filenames on windows.
4975 * fileio.c (Ffile_truename): Make file-truename work on windows.
4977 2000-11-29 Didier Verna <didier@xemacs.org>
4979 * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
4980 * faces.c (update_face_cachel_data): use it.
4981 * faces.c (add_face_cachel): use it. Complete background pixmap
4982 frobbing in face cache if `update_face_cachel_data' has not done so.
4984 2000-11-29 Yoshiki Hayashi <yoshiki@xemacs.org>
4986 * search.c (string_match_1): Don't set last_thing_searched
4989 2000-11-27 Yoshiki Hayashi <yoshiki@xemacs.org>
4991 * buffer.c: Include casetab.h
4992 (common_init_complex_vars_of_buffer): Use new case-table object.
4993 * buffer.h: Include casetab.h
4994 * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
4995 (DOWNCASE_TABLE_OF): Ditto.
4996 * bufslots.h: Remove char-tables and add case-table.
4997 * casetab.c: Include casetab.h
4998 (CASE_TABLE_P): Removed.
4999 (mark_case_table): New function.
5000 (allocate_case_table): New function.
5001 (Fcase_table_p): Use new case-table.
5002 (case_table_char): New function.
5003 (Fget_case_table): Ditto.
5004 (Fput_case_table): Ditto.
5005 (Fput_case_table_pair): Ditto.
5006 (Fcopy_case_table): Ditto.
5007 (Fcurrent_case_table): Return case-table.
5008 (Fstandard_case_table): Return case-table.
5009 (Fset_case_table): Fix doc-string.
5010 (set_case_table): Use case-table
5011 (syms_of_casetab): DEFSUBR new functions.
5012 (complex_vars_of_casetab): Set up standard case-table.
5013 * casetab.h: New file.
5014 * editfns.c: Include casetab.h
5015 (Fcompare_buffer_substrings): Use case-table.
5016 * inline.c: Include casetab.h
5017 * lisp.h: Remove bogus extern.
5018 * lrecord.h (lrecord_type): Add lrecord_type_case_table.
5019 * search.c: Include casetab.h
5020 (TRANSLATE_ASCII): Removed.
5021 (TRANSLATE): Unconditionally translate character.
5022 (looking_at_1): Use case-table.
5023 (string_match_1): Ditto.
5024 (fast_string_match): Ditto.
5025 (search_command): Ditto.
5026 (search_buffer): Separate boyer_moore. Check whether
5027 boyer_moore is possible.
5028 (simple_search): New function.
5029 (boyer_moore): Separated from search_buffer. Translate char.
5031 2000-11-24 Yoshiki Hayashi <yoshiki@xemacs.org>
5033 * regex.c (RE_TR_ASCII): Removed.
5034 (RE_TRANSLATE): Unconditionally use TRT_TABLE.
5035 (PATFETCH): Call PATFETCH_RAW.
5036 (PATFETCH_RAW): Fetch Emchar.
5037 (PATUNFETCH): Decrement charptr.
5038 (GET_BUFFER_SPACE): Rename b to buf_end.
5040 (BUF_PUSH_2): Ditto.
5041 (BUF_PUSH_3): Ditto.
5042 (EXTEND_BUFFER): Ditto.
5043 (SET_LIST_BIT): Ditto.
5044 (regex_compile): Ditto. Translate non ASCII char.
5045 (compile_range): Ditto.
5046 (re_search_2): Ditto.
5047 (re_match_2_internal): Compare Emchar.
5048 (bcmp_translate): Ditto.
5050 2000-11-29 Stephen J. Turnbull <turnbull@xemacs.org>
5052 * lisp.h (basic char/int typedefs): comment improvement.
5054 2000-11-24 Stephen J. Turnbull <turnbull@xemacs.org>
5056 * emacs.c (main_1): unconditional pdump unstomping; don't save and
5057 unstomp inhibit_site_lisp. Improve comments.
5059 2000-11-22 Stephen J. Turnbull <turnbull@xemacs.org>
5061 * mule-charset.c (Fcharset_property): improve type checking, comments.
5063 2000-11-28 Andy Piper <andy@xemacs.org>
5065 * redisplay-output.c (redisplay_output_subwindow): make sure we do
5066 clipped display for windows in the gutter also.
5067 (redisplay_display_boxes_in_window_p): change semantics of return
5068 codes to be more intuitive.
5070 * gutter.h: declare display_boxes_in_gutter_p.
5072 * gutter.c (display_boxes_in_gutter_p): new function for
5075 2000-11-22 Andy Piper <andy@xemacs.org>
5077 * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
5080 2000-11-21 Yoshiki Hayashi <yoshiki@xemacs.org>
5082 * callproc.c (Fold_call_process_internal):
5083 * gpm.c (Freceive_gpm_event):
5084 (tty_get_foreign_selection): Might be just warning supression.
5085 * fileio.c (Fwrite_region_internal):
5086 (Fset_visited_file_modtime):
5087 * keymap.c (event_matches_key_specifier_p):
5088 Initialize GCPROed variable.
5090 * menubar-x.c (command_builder_find_menu_accelerator):
5091 Initialize before use.
5093 2000-11-23 Andy Piper <andy@xemacs.org>
5095 * unexcw.c (unexec): make the resulting executable executable.
5097 2000-11-21 Martin Buchholz <martin@xemacs.org>
5099 * doc.c (get_doc_string):
5100 Use size_t, not int, for result of XSTRING_LENGTH.
5102 * cmds.c (Fdelete_char):
5103 * cmds.c (Fpoint_at_eol):
5104 * cmds.c (Fself_insert_command):
5105 Use EMACS_INT, not int, for result of XINT.
5106 Someday, someone will want to insert more than 2**31 identical characters.
5108 * cmds.c (Fdelete_char):
5109 * cmds.c (Fdelete_backward_char):
5110 * syntax.c (Fforward_word):
5111 * syntax.c (Fforward_comment):
5112 Make COUNT argument optional, for consistency with forward-char et al.
5114 2000-11-22 Martin Buchholz <martin@xemacs.org>
5117 * print.c (long_to_string):
5118 Return a useful value: the pointer at end of data written.
5121 Use `static const char * const' for constant strings.
5122 (union printf_arg): Delete `i', `ui' members.
5125 Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
5126 Do all printf-ing via the `l' specifier.
5127 Use EMACS_INT instead of int.
5130 2000-11-20 Didier Verna <didier@xemacs.org>
5132 * faces.c (update_face_cachel_data): don't frob the background
5133 pixmap when the window is being created. The face is needed but
5136 2000-11-20 Andy Piper <andy@xemacs.org>
5138 * unexcw.c (copy_executable_and_dump_data_section): Only do bss
5139 messing with a debug environment.
5141 2000-11-20 Martin Buchholz <martin@xemacs.org>
5143 * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
5145 2000-11-20 Martin Buchholz <martin@xemacs.org>
5147 * casetab.c (Fcase_table_p): Fix compile error and crash.
5149 2000-11-18 Philip Aston <philipa@mail.com>
5151 * s/cygwin32.h: Cygwin has SVR4-like pty support.
5153 2000-11-18 Martin Buchholz <martin@xemacs.org>
5155 * fileio.c (Fexpand_file_name): GCPRO bug! Protect `handler'.
5156 * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
5158 2000-11-17 Martin Buchholz <martin@xemacs.org>
5160 * config.h.in: Define HAVE_ELF_H if elf.h exists.
5161 * unexelf.c: Use HAVE_ELF_H.
5162 * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
5163 I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
5164 Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
5165 Greg Harrington <greg_harrington@hotmail.com> provided a machine
5167 So this is an unexelfsgi.c from a different line of development.
5169 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
5171 * regex.c (RE_TR_ASCII): New function.
5172 (RE_TRANSLATE): Call it.
5174 2000-11-16 Yoshiki Hayashi <yoshiki@xemacs.org>
5176 * buffer.h (TRT_TABLE_OF): Remove assert.
5177 (IN_TRT_TABLE_DOMAIN): Removed.
5179 2000-11-16 Gunnar Evermann <ge204@eng.cam.ac.uk>
5181 * free-hook.c (log_gcpro):
5182 (show_gcprohist): Add support for GCPRO5.
5184 2000-11-08 Stephen J. Turnbull <stephen@xemacs.org>
5186 * emacs.c (main_1): Improve -sd error message when --pdump=no.
5188 2000-11-16 Olivier Galibert <galibert@xemacs.org>
5190 * symeval.h: Declare flush_all_buffer_local_cache.
5192 * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
5193 (flush_buffer_local_cache): Added.
5194 (flush_all_buffer_local_cache): Added.
5196 * lrecord.h: Remove unused XD_LO_RESET_NIL.
5198 * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
5199 (pdump_dump_data): Ditto.
5200 (pdump_reloc_one): Ditto.
5201 (pdump): Remove unused pdump_qnil. Flush buffer local caches
5205 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
5207 * buffer.c: Remove if 0'ed entry.
5208 * buffer.h: Rewrite TRT to use char-table.
5209 * bufslots.h: Remove mirror tables.
5210 * casetab.c: Remove mirror tables.
5211 (CASE_TABLE_P): New macro.
5212 (Fcase_table_p): Element of a case table is string or char-table.
5213 (make_mirror_trt_table): Removed.
5214 (set_case_table): Setup char-table from strings for backward
5216 * dired.c (Fdirectory_files):
5217 * dired-msw.c: (mswindows_get_files):
5218 * lisp.h: Change prototype of re_pattern_buffer.
5219 * regex.c: (RE_TRANSLATE): New macro.
5220 (TRANSLATE_P): Ditto.
5221 Change translate to type RE_TRANSLATE_TYPE.
5222 * regex.h: Define RE_TRANSLATE_TYPE
5223 * search.c (TRANSLATE): New macro.
5224 (TRANSLATE_ASCII): New macro.
5225 Translate table is changed to Lisp_Object.
5226 (signal_failure): Inhibit return.
5228 2000-11-14 Yoshiki Hayashi <yoshiki@xemacs.org>
5235 Do UNGCPRO before return.
5237 2000-11-14 Martin Buchholz <martin@xemacs.org>
5239 * XEmacs 21.2.37 is released.
5241 2000-11-13 Yoshiki Hayashi <yoshiki@xemacs.org>
5243 * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
5244 Add comments about discarded return value.
5246 2000-11-09 Yoshiki Hayashi <yoshiki@xemacs.org>
5249 * event-stream.c: Fix comments. Remove some #if 0'ed part.
5251 2000-10-27 Andy Piper <andy@xemacs.org>
5253 * gutter.c (Fset_default_gutter_position): default left and right
5255 (calculate_gutter_size): calculate resonable heuristic for left
5256 and right gutter sizes.
5257 (specifier_vars_of_gutter): change left and right gutter sizes to
5259 (calculate_gutter_size_from_display_lines): new function.
5260 (output_gutter): check for resizing on left and right gutters.
5261 (clear_gutter): don't special case top and left gutters.
5262 (specifier_vars_of_gutter): use new signature for
5263 set_specifier_caching.
5265 * glyphs-x.c (x_redisplay_widget): spelling fix.
5266 * glyphs.c (specifier_vars_of_glyphs):
5267 * menubar.c (specifier_vars_of_menubar):
5268 * redisplay.c (specifier_vars_of_redisplay):
5269 * toolbar.c (specifier_vars_of_toolbar):
5270 * window.c (specifier_vars_of_window):
5271 * scrollbar.c (specifier_vars_of_scrollbar):
5272 (complex_vars_of_scrollbar): use new signature for
5273 set_specifier_caching.
5275 * specifier.c (set_specifier_caching): include recompute flag.
5276 (recompute_one_cached_specifier_in_window): always recompute if
5278 (recompute_one_cached_specifier_in_frame): ditto.
5280 * specifier.h (struct specifier_caching): add recompute flag.
5282 2000-10-24 Andy Piper <andy@xemacs.org>
5284 * unexcw.c (copy_executable_and_dump_data_section): add new
5285 BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
5288 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5290 * console-x.h (x_device): New member modifier_release_time.
5291 * event-Xt.c (x_handle_sticky_modifiers):
5292 Bound interval modifier keys are sticky.
5293 * event-stream.c (Vmodifier_keys_sticky_time): New variable.
5294 * events.h: extern it.
5296 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5298 * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
5300 2000-11-06 Yoshiki Hayashi <yoshiki@xemacs.org>
5302 * event-stream.c (execute_command_event): Preserve current_events
5303 and the like when event is misc-user-event.
5304 Inhibit quit during the call to maybe_echo_keys.
5306 2000-10-31 Yoshiki Hayashi <yoshiki@xemacs.org>
5308 * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
5309 symlink when buffer is killed.
5310 (inhibit_clash_detection): New variable.
5312 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5314 * console.c (Fset_input_method): Trigger redisplay on tty.
5316 2000-11-07 Martin Buchholz <martin@xemacs.org>
5318 * process.c (Fprocess_status): Revert to previous behavior:
5319 (process-status "nosuchprocess") ==> nil
5321 2000-11-06 Martin Buchholz <martin@xemacs.org>
5323 * mule-charset.h (CHARSET_BY_LEADING_BYTE):
5324 Work around another GCC 2.95.2 optimizer bug.
5326 2000-11-02 Martin Buchholz <martin@xemacs.org>
5328 * process.c (Fget_process): Use LIST_LOOP_2.
5329 (kill_buffer_processes): Use LIST_LOOP_2.
5331 * minibuf.c (Fall_completions):
5332 Delete old non-functional code for FSF fourth argument.
5334 * frame.c (frame_matches_frame_spec):
5335 Renamed from `frame_matches_frametype'. Update all callers.
5336 (device_matches_device_spec):
5337 Renamed from 'device_matches_console_spec'. Update all callers.
5339 * doc.c (Fsubstitute_command_keys):
5340 Remove buffer overflow crash. Small code cleanups.
5342 * casetab.c (check_case_table): Simpler code.
5344 * window.c (Freplace_buffer_in_windows):
5345 Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
5346 (and similar implementation) as Fdelete_windows_on.
5349 * alloc.c (Fmake_list):
5350 * alloc.c (make_vector):
5351 * alloc.c (Fmake_vector):
5352 * alloc.c (make_bit_vector):
5353 * alloc.c (Fmake_bit_vector):
5354 * alloc.c (Fbit_vector):
5355 * alloc.c (Fmake_string):
5356 * alloc.c (Fpurecopy):
5357 * alloc.c (Fmemory_limit):
5359 * buffer.c (Fget_buffer):
5360 * buffer.c (Fkill_buffer):
5361 * buffer.c (complex_vars_of_buffer):
5362 * bytecode.c (Fcompiled_function_stack_depth):
5363 * callint.c (Fprefix_numeric_value):
5365 * event-stream.c (Fread_key_sequence):
5367 * casetab.c (Fcase_table_p):
5368 * casetab.c (check_case_table):
5369 * casetab.c (Fset_case_table):
5370 * casetab.c (Fset_standard_case_table):
5372 * chartab.c (Fchar_table_type):
5373 * chartab.c (Freset_char_table):
5374 * chartab.c (Fget_char_table):
5375 * chartab.c (Fget_range_char_table):
5376 * chartab.c (Fput_char_table):
5377 * chartab.c (Fmap_char_table):
5378 * chartab.c (Fcategory_table_p):
5379 * chartab.c (Fcheck_category_at):
5380 * chartab.c (Fchar_in_category_p):
5381 * chartab.c (Fcategory_table):
5382 * chartab.c (Fcopy_category_table):
5383 * chartab.c (Fset_category_table):
5384 * chartab.c (Fcategory_designator_p):
5385 * chartab.c (Fcategory_table_value_p):
5386 * cmds.c (Fdelete_char):
5387 * cmds.c (Fdelete_backward_char):
5388 * cmds.c (Fself_insert_command):
5389 * cmds.c (Fself_insert_internal):
5390 * console.c (Fvalid_console_type_p):
5391 * console.c (Fcdfw_console):
5392 * console.c (Fconsole_type):
5393 * console.c (Fconsole_name):
5394 * console.c (Fconsole_device_list):
5395 * console.c (Fconsole_on_window_system_p):
5399 * data.c (Fsubr_interactive):
5400 * data.c (Fchar_to_int):
5401 * data.c (Fint_to_char):
5404 * data.c (Fnumber_to_string):
5405 * data.c (Fstring_to_number):
5407 * database.c (mark_database):
5408 * database.c (finalize_database):
5409 * database.c (Fdatabase_live_p):
5410 * database.c (Fdatabasep):
5411 * device-x.c (Fx_get_resource):
5412 * device.c (Fdfw_device):
5414 * dired.c (Ffile_name_completion):
5415 * dired.c (Ffile_name_all_completions):
5416 * dired.c (Fuser_name_completion):
5417 * dired.c (Fuser_name_completion_1):
5418 * dired.c (Fuser_name_all_completions):
5419 * doc.c (Fdocumentation):
5420 * doc.c (Fdocumentation_property):
5421 * doc.c (Fsubstitute_command_keys):
5423 * editfns.c (Fchar_to_string):
5424 * editfns.c (Fstring_to_char):
5425 * editfns.c (Ftemp_directory):
5426 * editfns.c (Finsert_char):
5427 * editfns.c (Fbuffer_substring_no_properties):
5428 * editfns.c (Fnarrow_to_region):
5429 * editfns.c (Fchar_equal):
5430 * editfns.c (Fchar_Equal):
5431 * editfns.c (Ftranspose_regions):
5432 * emacs.c (Fdump_emacs):
5434 * eval.c (Fcommand_execute):
5435 * eval.c (Fautoload):
5436 * eval.c (Fbacktrace):
5437 * eval.c (Fbacktrace_frame):
5439 * events.c (Fcopy_event):
5440 * events.c (Fcharacter_to_event):
5441 * events.c (Fevent_button):
5442 * events.c (Fevent_process):
5444 * extents.c (Fnext_extent_change):
5445 * extents.c (Fextent_property):
5447 * faces.c (Fmake_face):
5449 * file-coding.c (Fencode_shift_jis_char):
5450 * file-coding.c (Fencode_big5_char):
5451 * fileio.c (Ffile_name_directory):
5452 * fileio.c (Ffile_name_nondirectory):
5453 * fileio.c (Ffile_name_as_directory):
5454 * fileio.c (Fdirectory_file_name):
5455 * fileio.c (Ffile_truename):
5456 * fileio.c (Fsubstitute_in_file_name):
5457 * fileio.c (Ffile_modes):
5458 * fileio.c (Fset_file_modes):
5459 * fileio.c (Fset_default_file_modes):
5460 * fileio.c (Fverify_visited_file_modtime):
5461 * floatfns.c (Facos):
5462 * floatfns.c (Fasin):
5463 * floatfns.c (Fatan):
5464 * floatfns.c (Fcos):
5465 * floatfns.c (Fsin):
5466 * floatfns.c (Ftan):
5467 * floatfns.c (Fbessel_j0):
5468 * floatfns.c (Fbessel_j1):
5469 * floatfns.c (Fbessel_jn):
5470 * floatfns.c (Fbessel_y0):
5471 * floatfns.c (Fbessel_y1):
5472 * floatfns.c (Fbessel_yn):
5473 * floatfns.c (Ferf):
5474 * floatfns.c (Ferfc):
5475 * floatfns.c (Flog_gamma):
5476 * floatfns.c (Fexp):
5477 * floatfns.c (Fexpt):
5478 * floatfns.c (Flog):
5479 * floatfns.c (Flog10):
5480 * floatfns.c (Fsqrt):
5481 * floatfns.c (Fcube_root):
5482 * floatfns.c (Facosh):
5483 * floatfns.c (Fasinh):
5484 * floatfns.c (Fatanh):
5485 * floatfns.c (Fcosh):
5486 * floatfns.c (Fsinh):
5487 * floatfns.c (Ftanh):
5488 * floatfns.c (Fabs):
5489 * floatfns.c (Ffloat):
5490 * floatfns.c (Flogb):
5491 * floatfns.c (Fceiling):
5492 * floatfns.c (Ffloor):
5493 * floatfns.c (Fround):
5494 * floatfns.c (Ftruncate):
5495 * floatfns.c (Ffceiling):
5496 * floatfns.c (Fffloor):
5497 * floatfns.c (Ffround):
5498 * floatfns.c (Fftruncate):
5499 * fns.c (Fstring_equal):
5500 * fns.c (Fstring_lessp):
5505 * fns.c (Fsubstring):
5507 * fns.c (Fold_assoc):
5508 * fns.c (assoc_no_quit):
5510 * fns.c (Fold_assq):
5511 * fns.c (assq_no_quit):
5513 * fns.c (Fold_rassoc):
5515 * fns.c (Fold_rassq):
5516 * fns.c (rassq_no_quit):
5517 * fns.c (Fremassoc):
5518 * fns.c (remassoc_no_quit):
5520 * fns.c (remassq_no_quit):
5521 * fns.c (Fremrassoc):
5522 * fns.c (Fremrassq):
5523 * fns.c (remrassq_no_quit):
5525 * fns.c (Fplist_get):
5526 * fns.c (Fplist_put):
5527 * fns.c (Fplist_remprop):
5528 * fns.c (Fplist_member):
5529 * fns.c (Flax_plist_get):
5530 * fns.c (Flax_plist_put):
5531 * fns.c (Flax_plist_remprop):
5532 * fns.c (Flax_plist_member):
5534 * fns.c (Fold_equal):
5536 * fns.c (Fbase64_encode_region):
5537 * fns.c (Fbase64_encode_string):
5538 * fns.c (Fbase64_decode_region):
5540 * frame.c (frame_matches_frame_spec):
5541 * frame.c (device_matches_device_spec):
5542 * frame.c (next_frame):
5543 * frame.c (previous_frame):
5544 * frame.c (Fnext_frame):
5545 * frame.c (Fprevious_frame):
5546 * frame.c (Fframe_property):
5547 * frame.c (Fset_frame_height):
5548 * frame.c (Fset_frame_size):
5552 * glyphs.c (decode_error_behavior_flag):
5553 * glyphs.c (Fmake_image_instance):
5554 * indent.c (Findent_to):
5555 * intl.c (Fignore_defer_gettext):
5556 * keymap.c (Fkeymapp):
5557 * keymap.c (Flookup_key):
5559 * lread.c (Fload_internal):
5560 * lread.c (Feval_buffer):
5561 * lread.c (Feval_region):
5562 * macros.c (Fexecute_kbd_macro):
5563 * marker.c (set_marker_internal):
5564 * marker.c (Fset_marker):
5565 * marker.c (set_marker_restricted):
5566 * marker.c (Fcopy_marker):
5567 * marker.c (noseeum_copy_marker):
5569 * menubar.c (Fpopup_menu):
5571 * mule-charset.c (Fcharset_name):
5572 * mule-charset.c (Fchar_charset):
5573 * mule-charset.c (Fchar_octet):
5574 * mule-charset.c (Fsplit_char):
5575 * mule-wnnfns.c (Fwnn_open):
5576 * mule-wnnfns.c (Fwnn_dict_comment):
5577 * mule-wnnfns.c (Fwnn_quit_henkan):
5578 * mule-wnnfns.c (Fwnn_word_toroku):
5579 * mule-wnnfns.c (Fwnn_word_sakujo):
5580 * mule-wnnfns.c (Fwnn_word_use):
5581 * mule-wnnfns.c (Fwnn_hindo_set):
5583 * objects.c (Fmake_color_instance):
5584 * objects.c (Fmake_font_instance):
5585 * print.c (Fwrite_char):
5587 * process.c (mark_process):
5588 * process.c (print_process):
5589 * process.c (get_process_from_usid):
5590 * process.c (Fprocessp):
5591 * process.c (Fprocess_live_p):
5592 * process.c (Fget_process):
5593 * process.c (Fget_buffer_process):
5594 * process.c (get_process):
5595 * process.c (Fprocess_id):
5596 * process.c (Fprocess_name):
5597 * process.c (Fprocess_command):
5598 * process.c (init_process_io_handles):
5599 * process.c (start_process_unwind):
5600 * process.c (Fstart_process_internal):
5601 * process.c (Fopen_multicast_group_internal):
5602 * process.c (Fset_process_window_size):
5603 * process.c (read_process_output):
5604 * process.c (send_process):
5605 * process.c (Fprocess_tty_name):
5606 * process.c (Fset_process_buffer):
5607 * process.c (Fprocess_buffer):
5608 * process.c (Fprocess_mark):
5609 * process.c (set_process_filter):
5610 * process.c (Fset_process_filter):
5611 * process.c (Fprocess_filter):
5612 * process.c (Fprocess_send_region):
5613 * process.c (Fprocess_send_string):
5614 * process.c (exec_sentinel):
5615 * process.c (Fset_process_sentinel):
5616 * process.c (Fprocess_sentinel):
5617 * process.c (status_notify):
5618 * process.c (Fprocess_status):
5619 * process.c (Fprocess_exit_status):
5620 * process.c (process_send_signal):
5621 * process.c (Fprocess_send_eof):
5622 * process.c (deactivate_process):
5623 * process.c (remove_process):
5624 * process.c (Fdelete_process):
5625 * process.c (kill_buffer_processes):
5626 * process.c (Fprocess_kill_without_query):
5627 * process.c (Fprocess_kill_without_query_p):
5629 * rangetab.c (Fget_range_table):
5630 * rangetab.c (Fput_range_table):
5631 * rangetab.c (Fremove_range_table):
5632 * rangetab.c (Fclear_range_table):
5634 * search.c (Fskip_chars_forward):
5635 * search.c (Fskip_chars_backward):
5636 * search.c (Fskip_syntax_forward):
5637 * search.c (Fskip_syntax_backward):
5638 * search.c (search_command):
5639 * search.c (Freplace_match):
5640 * search.c (Fregexp_quote):
5641 * select.c (Fown_selection_internal):
5642 * select.c (Fselection_owner_p):
5643 * select.c (Fselection_exists_p):
5644 * select.c (Fget_selection_internal):
5647 * symbols.c (Fintern):
5648 * symbols.c (Fintern_soft):
5649 * symbols.c (Funintern):
5650 * symbols.c (Fapropos_internal):
5651 * symbols.c (Fset_default):
5653 * syntax.c (Fsyntax_table_p):
5654 * syntax.c (Fcopy_syntax_table):
5655 * syntax.c (Fset_syntax_table):
5656 * syntax.c (Fchar_syntax):
5657 * syntax.c (syntax_match):
5658 * syntax.c (Fmatching_paren):
5659 * syntax.c (Fforward_word):
5660 * syntax.c (scan_lists):
5661 * syntax.c (Fscan_lists):
5662 * syntax.c (Fscan_sexps):
5663 * syntax.c (Fparse_partial_sexp):
5664 * toolbar.c (Fcheck_toolbar_button_syntax):
5667 * window.c (Fwindowp):
5668 * window.c (Fwindow_live_p):
5669 * window.c (Fwindow_point):
5670 * window.c (Fdelete_window):
5671 * window.c (Fnext_window):
5672 * window.c (Fprevious_window):
5673 * window.c (Fother_window):
5674 * window.c (window_loop):
5675 * window.c (Fget_lru_window):
5676 * window.c (Fsplit_window):
5677 * window.c (Fenlarge_window):
5678 * window.c (Fenlarge_window_pixels):
5679 * window.c (Fshrink_window):
5680 * window.c (Fshrink_window_pixels):
5681 * window.c (change_window_height):
5682 * window.c (Fwindow_configuration_p):
5683 * window.c (Fcurrent_window_configuration):
5685 * casefiddle.c (casify_object):
5686 * casefiddle.c (Fupcase):
5687 * casefiddle.c (Fdowncase):
5688 * casefiddle.c (Fcapitalize):
5689 * casefiddle.c (Fupcase_initials):
5690 * casefiddle.c (casify_region_internal):
5691 * casefiddle.c (casify_region):
5692 * casefiddle.c (Fupcase_region):
5693 * casefiddle.c (Fdowncase_region):
5694 * casefiddle.c (Fcapitalize_region):
5695 * casefiddle.c (Fupcase_initials_region):
5696 * casefiddle.c (Fupcase_word):
5697 * casefiddle.c (Fdowncase_word):
5698 * casefiddle.c (Fcapitalize_word):
5699 Docstring arglist/Texinfo fixes. See man/ChangeLog for details.
5700 Replace 0 with '\0' when working with bytes.
5701 Replace initial "(" with "\(" in docstrings.
5703 2000-11-01 Martin Buchholz <martin@xemacs.org>
5705 * config.h.in: Handle alloca with Compaq C on Alpha Linux.
5707 * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
5709 2000-10-31 Martin Buchholz <martin@xemacs.org>
5711 * eldap.c (print_ldap): 64-bit cleaner. Fixes warning.
5713 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5715 * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
5718 2000-10-30 Yoshiki Hayashi <yoshiki@xemacs.org>
5720 * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
5721 (inhibit_auto_save_session): New variable.
5722 (vars_of_fileio): Declare and initialize them.
5723 * fileio.c (Fdo_auto_save): Don't create session file if
5724 Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
5726 2000-10-31 Martin Buchholz <martin@xemacs.org>
5728 * sgiplay.c (play_internal): C++ compilability.
5729 * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
5730 * callproc.c (Fold_call_process_internal):
5731 Remove unused vars `env', `first'.
5732 * scrollbar.c (update_scrollbar_instance):
5733 #### unused var `current_window'.
5734 * redisplay-tty.c: Put currently unused vars insert_mode_on,
5735 etc. within #ifdef NOT_YET.
5736 * emacs.c: #### unused vars `initial_argc', `initial_argv'.
5737 * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
5738 * specifier.c (specifier_instance):
5739 #### unused var `tag'.
5740 Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
5742 2000-10-27 Martin Buchholz <martin@xemacs.org>
5745 * fns.c (list_sort):
5746 * fns.c (Ffillarray):
5747 * fns.c (bytecode_nconc2):
5750 * fns.c (Fmapconcat):
5751 Be pedantically 64-bit correct. For the time when someone will
5752 want to have a list with length > 2**32.
5754 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
5755 Work around MIPSpro compiler bug.
5757 * process-unix.c (unix_kill_child_process): Add snarky comment.
5758 * process-unix.c (try_to_initialize_subtty): Oops, `=' ==> `=='
5760 * config.h.in: Oops, _getpt ==> _getpty
5762 2000-10-26 Martin Buchholz <martin@xemacs.org>
5766 Use void*, not char*, as return type of alloca().
5768 * alloc.c (free_marker): Side effect inside assert expression!
5770 2000-10-16 MIYASHITA Hisashi <himi@m17n.org>
5772 * mule-charset.c (Fset_charset_ccl_program): To check
5773 if the given ccl program is valid, use setup_ccl_program()
5774 instead of CHECK_VECTOR().
5775 (Fmake_charset): Likewise.
5777 2000-10-20 Golubev I. N. <gin@mo.msk.ru>
5779 * faces.c (get_extent_fragment_face_cache_index):
5780 Fix cachel.merged_faces memory leak.
5782 2000-10-14 MIYASHITA Hisashi <himi@m17n.org>
5784 * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
5785 Reset MSB of octets obtained by DECODE_SJIS
5786 because of the incompatibility with Emacs.
5787 (ccl_driver)<CCL_ENCODE_SJIS>:
5788 Set MSB of octets before passing them to
5789 ENCODE_SJIS because of the incompatibility
5792 2000-10-18 Daiki Ueno <ueno@unixuser.org>
5794 * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
5795 (DECLARE_LRECORD): Undo the last change.
5796 (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
5798 2000-10-17 Daiki Ueno <ueno@unixuser.org>
5800 * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
5801 the implementation to lrecord_implementations_table.
5803 2000-10-14 Daiki Ueno <ueno@unixuser.org>
5805 * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
5806 initial value of `lrecord_type_##c_name' and
5807 `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
5808 (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
5809 [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
5810 [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
5811 [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
5813 2000-10-17 Martin Buchholz <martin@xemacs.org>
5815 * miscplay.c (sndcnv8S_2mono):
5816 (sndcnv2monounsigned):
5817 (sndcnvULaw_2linear):
5819 Remove implementation-defined behavior.
5821 2000-10-12 Martin Buchholz <martin@xemacs.org>
5823 * input-method-xlib.c: Warning suppression.
5825 2000-10-05 MIYASHITA Hisashi <himi@m17n.org>
5827 * mule-ccl.c: Sync up with Emacs 21.0.90.
5828 (ccl_driver)<CCL_TranslateCharacter>: Disabled.
5830 (ccl_driver)<CCL_TranslateCharacterConstTbl>:
5832 (ccl_driver[WriteMultibyteChar2]): Bug fix.
5833 Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
5834 MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
5835 leading char belongs to official 2-dimensional charset.
5836 (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
5837 write the given character as is. Otherwise,
5838 if it is a multibyte char, convert it by
5839 non_ascii_set_charptr_emchar, then write it.
5840 (CCL_WRITE_STRING): Likewise.
5841 (ccl_get_compiled_code): New function.
5842 (setup_ccl_program): When ccl_prog is invalid,
5844 (Fregister_code_conversion_map): New function.
5845 (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
5847 * mule-ccl.h: Sync up with Emacs 21.0.90.
5848 (Fregister_ccl_program): export it.
5850 * redisplay-msw.c (separate_textual_runs):
5851 If ccl program is not valid, don't do ccl conversion.
5853 * redisplay-x.c (separate_textual_runs): Ditto.
5855 * file-coding.c (Fmake_coding_system):
5856 When type is ccl and value is vector, register it
5857 with a proper symbol. And checks whether the
5858 given ccl program is valid.
5859 (mule_decode): When calling ccl_driver, if src indicates
5860 NULL pointer, set an empty string instead.
5861 (mule_encode): Likewise.
5863 2000-10-11 Martin Buchholz <martin@xemacs.org>
5865 The following large batch of changes gets us back to a state of
5866 C++ compilability. Extbyte is now a char, which means that
5867 Extbyte * and Bufbyte * cannot be freely interchanged - a win!
5869 * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
5871 * sound.c (Fplay_sound): Type correctness.
5873 * select-x.c (hack_motif_clipboard_selection): Type correctness.
5874 (x_get_window_property): Type correctness.
5875 (receive_incremental_selection): unsigned char ==> Extbyte
5876 (selection_data_to_lisp_data): unsigned char ==> Extbyte
5877 (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
5878 (Fx_store_cutbuffer_internal): Type correctness.
5880 * process-unix.c (try_to_initialize_subtty): Type correctness.
5882 * objects-x.c (x_print_color_instance): Type correctness.
5883 (x_print_font_instance): Type correctness.
5884 (x_list_fonts): SExtbyte ==> Extbyte.
5885 (valid_x_font_name_p): SExtbyte ==> Extbyte.
5886 (x_find_charset_font): SExtbyte ==> Extbyte.
5887 Use TO_INTERNAL_FORMAT. build_string ==> make_string.
5888 (truename_via_XListFonts): SExtbyte ==> Extbyte.
5889 (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
5892 * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
5893 (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
5894 (BYTE_ASCII_P): Use bit ops for char-signedness safety.
5895 (BYTE_C0_P): Use bit ops for char-signedness safety.
5896 (BYTE_C1_P): Use bit ops for char-signedness safety.
5897 (CHARSET_BY_LEADING_BYTE):
5898 (CHARSET_BY_ATTRIBUTES):
5899 Always use inline function.
5900 Use type_checking_assert.
5903 * mule-charset.c (non_ascii_charptr_copy_char):
5904 Modify to work with both ASCII and non-ASCII characters.
5905 Improve docs and variable names.
5906 Replace over-clever fall-through switch with a simple loop.
5907 (Lstream_get_emchar_1):
5908 Replace over-clever fall-through switch with a simple loop.
5910 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
5911 Warning suppression.
5913 * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
5914 the return value of Lstream_getc, which could be EOF as well.
5916 * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
5918 * lisp.h: Make Extbyte a char, not unsigned char, so that external
5919 APIs can be used on Extbytes without casts. Risky!
5923 * input-method-xlib.c (XIM_init_device):
5924 Use Xlib.h instead of IntrinsicP.h.
5925 Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
5926 which will break in X11R7.
5927 Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
5928 to call XRegisterIMInstantiateCallback with correct types.
5930 * gui-x.c (button_item_to_widget_value): Type correctness.
5932 * glyphs.c (bitmap_to_lisp_data): Type correctness.
5934 * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
5935 (xbm_instantiate_1): Type correctness.
5936 (BUILD_GLYPH_INST): Type correctness.
5938 * fileio.c (Fsubstitute_in_file_name): Type correctness.
5941 (decode_coding_sjis):
5942 (decode_coding_big5):
5943 (decode_coding_ucs4):
5944 (decode_coding_utf8):
5945 (decode_coding_iso2022):
5946 (decode_coding_no_conversion):
5947 Make all decoding functions take an Extbyte * arg.
5948 (encode_coding_sjis):
5949 (encode_coding_big5):
5950 (encode_coding_ucs4):
5951 (encode_coding_utf8):
5952 (encode_coding_iso2022):
5953 (encode_coding_no_conversion):
5954 Make all encoding functions take a Bufbyte * arg.
5955 Use size_t instead of unsigned int for memory sizes.
5956 Only cast to unsigned char whenever dereferencing Extbyte *.
5958 * doc.c (unparesseuxify_doc_string): Type correctness.
5960 * console-x.c (split_up_display_spec):
5961 Rewrite without using details of internal string representation.
5962 (x_semi_canonicalize_device_connection): Type correctness.
5965 (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
5966 (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
5967 (HAVE_XFREE386): Removed.
5969 * buffer.h (DEC_CHARPTR): `const' correctness.
5970 (bufbyte_strcmp): New.
5971 (bufbyte_memcmp): New.
5973 * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
5975 * buffer.h (XCHAR_OR_CHAR_INT):
5976 Always use inline function.
5977 Remove redundant type checking assert() - XINT will abort quite nicely.
5979 2000-10-03 Yoshiki Hayashi <yoshiki@xemacs.org>
5981 * search.c (Freplace_match): Set newtext to an empty string.
5983 2000-10-10 Martin Buchholz <martin@xemacs.org>
5985 * s/decosf1-3.h: Remove #include of stropts.h
5986 * s/ptx.h: Remove #include of stropts.h
5987 * s/usg5-4.h: Remove #include of stropts.h
5990 Use stropts.h, not sys/stropts.h.
5991 Use strtio.h, not sys/strtio.h.
5993 2000-10-04 Martin Buchholz <martin@xemacs.org>
5995 * XEmacs 21.2.36 is released.
5997 2000-09-21 Andy Piper <andy@xemacs.org>
5999 * glyphs-x.c (x_redisplay_widget): make sure non-structural
6000 changes still involve copying the widget tree.
6001 (update_widget_face): make sure a change is register in the widget
6002 tree. Call update_tab_widget_face appropriately.
6003 (update_tab_widget_face): ditto.
6004 (x_tab_control_redisplay): make sure non-structural changes still
6005 involve copying the widget tree.
6007 2000-08-31 Daiki Ueno <ueno@unixuser.org>
6009 * lread.c (locate_file): Check the path element is non-nil.
6011 2000-10-02 Martin Buchholz <martin@xemacs.org>
6013 * lisp.h: Warning suppression for SCO compilers.
6015 * redisplay-tty.c (reset_tty_modes): Fix crash.
6016 E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
6018 2000-09-27 Martin Buchholz <martin@xemacs.org>
6020 Big signal/process handling overhaul. Bugs fixed:
6021 M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
6022 M-x comint-kill-subjob should work for both values nil and t of
6023 process-connection-type. It was broken on most platforms.
6024 Testing on Irix and Cygwin still needed. Other plaforms tested.
6025 * sysdep.c: Move #include of stropts.h into sysproc.h. Use pid_t.
6026 * process-unix.c: Signal/Process handling overhaul.
6027 (pty_name): make 64 bytes, as `expect' does, for paranoia.
6028 (allocate_pty): Use all available modern methods of allocating
6029 ptys, falling back to old style BSD allocation as a last resort.
6030 Use allegedly more secure Unix98 pty allocation by default.
6031 (allocate_pty_the_old_fashioned_way): New. the last resort.
6032 (unix_create_process): Push ptem, ldterm, ttcompat where
6033 available. Autoconfiscate.
6034 (try_to_initialize_subtty): New.
6035 (unix_kill_child_process): Proper signal handling for ptys on most
6036 platforms, using special knowledge of AIX, BSD, etc...
6037 (unix_create_process): Always disconnect_controlling_terminal() for
6038 subprocesses, whether using ptys or not.
6039 * process.h: Remove old getpt-dependent PTY code.
6040 * process.c (Fprocess_send_signal): New, obvious generic function.
6041 (decode_signal): New.
6042 (Finterrupt_process):
6046 (Fcontinue_process):
6047 (Fsignal_process): Use decode_signal.
6048 (process_send_signal):
6049 Many docstring corrections.
6050 Allow any signal to be sent to a process object.
6051 * config.h.in: Add symbols for big signal/process overhaul.
6052 * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
6053 * sysproc.h: Include process-related headers, where available:
6054 sys/stropts.h sys/strtio.h pty.h libutil.h
6062 Remove old S&M pty stuff.
6063 * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
6064 * systty.h: Simplify cpp hackery, improve comments.
6065 Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
6067 * editfns.c (Fformat_time_string):
6068 Be a little more paranoid with the return value of ctime.
6070 * fileio.c (check_executable):
6072 Use symbolic constants X_OK, W_OK.
6074 * console-x.c (split_up_display_spec): Fix a warning.
6076 2000-10-02 Martin Buchholz <martin@xemacs.org>
6078 * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
6079 * ntproc.c (sys_spawnve): make_string ==> build_string
6080 Small clarity improvements.
6082 2000-09-30 Martin Buchholz <martin@xemacs.org>
6084 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
6086 * s/windowsnt.h (HAVE_STRCASECMP): Remove.
6088 * config.h.in (HAVE_STRCASECMP): Remove.
6090 2000-09-29 Martin Buchholz <martin@xemacs.org>
6092 * redisplay-output.c (redisplay_output_pixmap):
6093 Cleaner and possibly more 64-bit correct code.
6095 2000-09-28 Stephen J. Turnbull <stephen@xemacs.org>
6097 * dumper.c (pdump_load_finish): move restoration of
6098 `noninteractive1' to emacs.c (main_1).
6099 * emacs.c (main_1): protect LISP-visible command-line flags
6102 2000-09-26 Stephen J. Turnbull <stephen@xemacs.org>
6104 * Makefile.in.in (versionclean): Use EXE_TARGET and
6105 DUMP_TARGET instead of literal program names.
6107 2000-09-20 Martin Buchholz <martin@xemacs.org>
6109 * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
6111 2000-09-19 Martin Buchholz <martin@xemacs.org>
6113 * *: Spelling mega-patch
6115 2000-09-19 Martin Buchholz <martin@xemacs.org>
6117 * fns.c (bad_bad_turtle):
6118 Delete "Eek!" comment, since we fixed the bug to which it refers.
6120 2000-09-16 Martin Buchholz <martin@xemacs.org>
6122 * alloca.c: Replace REGISTER with register.
6124 2000-09-16 Daiki Ueno <ueno@unixuser.org>
6126 * file-coding.c (ucs_to_char): Use countof.
6128 2000-09-16 Martin Buchholz <martin@xemacs.org>
6130 * file-coding.c: (ucs_to_char):
6131 (complex_vars_of_file_coding):
6132 Use countof instead of sizeof.
6133 Use CHECK_NATNUM instead of CHECK_INT.
6135 * sysdep.c (strcasecmp): Remove.
6136 * device-x.c (ascii_strcasecmp): New.
6137 * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
6138 Avoid using non-standard non-portable strcasecmp.
6140 2000-09-16 Martin Buchholz <martin@xemacs.org>
6142 * Makefile.in.in (mostlyclean): remove reference to prefix-args.
6143 * font-lock.c: remove reference to emacsfns.h.
6144 * search.c: small doc improvement.
6145 * event-Xt.c: correct file names in comments.
6146 * console-x.h Correct file names in comments.
6147 * frame.c: Correct file names in comments.
6148 * event-stream.c: remove Energize from comments.
6150 2000-09-15 Martin Buchholz <martin@xemacs.org>
6152 * symeval.h (DEFERROR_STANDARD):
6155 (DEFSYMBOL_NO_DUMP):
6156 (DEFSYMBOL_MULTIWORD_PREDICATE):
6157 (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
6159 The construct &##name is not sensible C.
6160 Fixes compilation errors with Unixware native compiler.
6162 2000-09-14 Martin Buchholz <martin@xemacs.org>
6164 * frame.c (device_matches_console_spec): no longer takes a `frame' arg
6165 (next_frame_internal): Removed. We now just have next_frame.
6167 Write a simpler and cleaner one-pass algorithm.
6168 Remove called_from_delete_device arg and #ifdefed-out code.
6170 Renamed from prev_frame. Update callers.
6171 Cleaned up to have an analogous implementation to next_frame.
6172 (other_visible_frames_internal): Remove the
6173 called_from_delete_device bogus arg, and hence, remove this
6174 function. Just use other_visible_frames().
6176 * window.c (Fnext_window):
6178 Since next_frame() is guaranteed to return a frame, remove check
6179 for nil inserted in previous patch.
6182 Make code look more like Fnext_window.
6184 Respect the `console' arg when iterating through windows.
6185 Fixes bug: (get-buffer-window buffer t device) not respecting
6187 This function needs more work, as others have pointed out.
6189 * frame.h: Rename prev_frame to previous_frame.
6190 device_matches_console_spec no longer takes a `frame' arg.
6195 Use EMACS_BLOCK_SIGNAL instead of sigblock.
6196 From "Golubev I. N." <gin@mo.msk.ru>.
6198 * make-src-depend: Fix typo.
6200 2000-09-13 Martin Buchholz <martin@xemacs.org>
6202 * window.c (Fnext_window):
6203 next_frame() might return nil, not a frame.
6205 (gdb) run -eval '(progn (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6207 * frame.c (next_frame_internal):
6208 We've passed a frame if we've passed its device.
6210 (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
6211 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
6213 2000-09-11 Jonathan Harris <jhar@tardis.ed.ac.uk>
6215 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
6216 Allow option to suppress accelerators in menu/dialog items.
6217 (populate_or_checksum_helper): Pass dialog title through above.
6219 2000-09-10 Jonathan Harris <jhar@tardis.ed.ac.uk>
6221 * event-msw.c (mswindows_key_to_emacs_keysym):
6222 Add "pause" key, fix "menu" key.
6224 2000-09-09 Martin Buchholz <martin@xemacs.org>
6226 * eval.c (reinit_vars_of_eval):
6227 Increase max_lisp_eval_depth to 1000,
6228 required for thai-xtis.el to byte-compile under some circumstances.
6230 2000-09-04 Martin Buchholz <martin@xemacs.org>
6232 * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
6235 2000-09-01 Martin Buchholz <martin@xemacs.org>
6237 * make-src-depend: Make the generated Makefiles smaller.
6239 * s/hpux.h (SETUP_SLAVE_PTY):
6240 Provide a %d in the format string for the errno argument.
6242 * editfns.c (Ftemp_directory):
6244 Avoid buffer overrun on very long file name.
6246 * input-method-xlib.c (XIM_init_device):
6247 6th parameter of XRegisterIMInstantiateCallback has different
6248 pointer types on different OSes, so simply cast to (void *).
6250 * unexhp9k800.c: Warning fixes. Fiddly changes.
6252 * sysdll.c (dll_open):
6253 shl_load will hang hard if passed a NULL filename.
6254 Simply return NULL for compatibility with dlopen.
6255 * sysdll.c: Conform to XEmacs coding standards.
6257 * sysdep.c (get_pty_max_bytes):
6258 Support pty input lines longer than 512 bytes on HP-UX 10.20.
6260 2000-08-31 Martin Buchholz <martin@xemacs.org>
6262 * tooltalk.c: Add #include <syssignal.h>
6264 2000-08-12 Alexandre Oliva <aoliva@redhat.com>
6266 * s/hpux.h: Don't use undefined function sigunblock().
6268 2000-08-31 Martin Buchholz <martin@xemacs.org>
6270 * config.h.in: Add HAVE_BALLOON_HELP.
6271 * emacs.c: Use HAVE_BALLOON_HELP.
6272 * Makefile.in.in (x_objs):
6273 Make Balloon Help conditional on finding shape.h.
6275 2000-08-23 Yoshiki Hayashi <yoshiki@xemacs.org>
6277 * syntax.c (regex_emacs_buffer_p): New variable.
6278 * syntax.h (regex_emacs_buffer_p): extern.
6279 * search.c (looking_at_1):
6281 (fast_string_match):
6282 (search_buffer): Set regex_emacs_buffer_p.
6283 * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
6284 when before_dot, at_dot, after_dot.
6286 2000-08-23 Andy Piper <andy@xemacs.org>
6288 * gui-x.c (popup_selection_callback): Only set action_occurred
6289 when we really have an image instance.
6290 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
6292 2000-08-23 Andy Piper <andy@xemacs.org>
6294 * gui-msw.c (mswindows_handle_gui_wm_command): set
6296 * gui-x.c (popup_selection_callback): ditto.
6298 * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
6299 (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
6300 (struct Lisp_Image_Instance): add action_occurred flag.
6302 * glyphs.c (redisplay_subwindow): use action_occurred flag.
6303 (image_instance_changed): ditto.
6304 (reset_frame_subwindow_instance_cache): only unmap windows - do
6305 not remove them from the cache also.
6307 * glyphs-widget.c (tab_control_update): better debug.
6308 (progress_gauge_update): ditto.
6309 (layout_update): ditto.
6310 (layout_instantiate): ditto.
6311 (tab_control_order_only_changed): cope with null pending items.
6313 * glyphs-msw.c (mswindows_tab_control_redisplay): add better
6314 debug. Force selection of an item when an action occurred. Cope
6315 with null pending_items.
6316 (mswindows_progress_gauge_redisplay): better debug.
6317 * glyphs-x.c (x_tab_control_redisplay): ditto.
6319 * redisplay.c (redisplay_frame): reset the frame cache if the
6322 * window.c (Fset_window_configuration): potentially re-enable
6324 (window_unmap_subwindows): need to finalize instances here since
6325 it is only used in mark_window_as_deleted.
6327 2000-08-22 Stephen J. Turnbull <stephen@xemacs.org>
6329 * nas.c (SndOpenDataForReading):
6330 nas.c (WaveOpenDataForReading):
6331 nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
6332 Somehow escaped from the 2000-08-14 patch.
6334 2000-08-14 Stephen J. Turnbull <stephen@xemacs.org>
6336 * nas.c: Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
6337 of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
6339 2000-08-21 Andy Piper <andy@xemacs.org>
6341 * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
6342 window if it is not already displayed.
6344 * glyphs-msw.c (mswindows_map_subwindow): only map the window if
6345 it is not already displayed.
6347 * window.c (Fset_window_configuration): don't reset the frame
6350 * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
6351 instances from the frame cache if we are actually finalizing them.
6352 (reset_frame_subwindow_instance_cache): reset frame cache only
6353 after unmapping everything.
6354 (map_subwindow): set displayed flag after mapping.
6356 2000-08-21 Martin Buchholz <martin@xemacs.org>
6358 * data.c (indirect_function):
6359 Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
6361 * eval.c (function_argcount):
6362 Use original function when signaling errors.
6364 2000-08-18 Andy Piper <andy@xemacs.org>
6366 * frame.c (delete_frame_internal): use new
6367 free_frame_subwindow_instances name.
6369 * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
6370 (add_tab_item): make return type correct.
6371 (mswindows_tab_control_instantiate): assert index of tab.
6372 (mswindows_tab_control_redisplay): Re-code to use
6373 gui_item_equal_sans_selected and gui_item_list_find_selected.
6375 * glyphs-widget.c (tab_control_update): Correct comment.
6377 * window.c (window_unmap_subwindows): use new
6378 unmap_subwindow_instance_cache_mapper.
6379 (window_unmap_subwindows_cache_mapper): deleted.
6380 (Fset_window_configuration): comparisons should now be with
6381 EQ. Preserve the subwindow instance cache across configuration
6383 (allocate_window): ditto.
6384 (make_dummy_parent): ditto.
6386 * glyphs.c (free_frame_subwindow_instances): rename from
6387 free_frame_subwindow_instance_cache. finalize all instances rather
6388 than just those in the display cache.
6389 (finalize_all_subwindow_instances): walk windows unmapping and
6390 finalizing subwindows.
6391 (unmap_subwindow_instance_cache_mapper): moved from
6392 window.c. Allow finalization as well as unmapping.
6394 * gui.c (gui_item_list_find_selected): new function.
6396 * gui.h (gui_item_list_find_selected): declare.
6398 * glyphs-x.c (x_tab_control_redisplay): pick tab
6399 explicitly. Re-code to use gui_item_equal_sans_selected and
6400 gui_item_list_find_selected.
6402 * glyphs-x.h: add lwlib-utils.h
6404 * buffer.c (Frecord_buffer): undo previous change.
6406 2000-08-09 Vin Shelton <acs@xemacs.org>
6408 * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
6409 possible. Create temporary files more securely. The patch was
6410 generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
6411 <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch. See
6412 http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
6415 2000-08-07 Ben Wing <ben@xemacs.org>
6417 * getloadavg.c: remove duplicate (and windows-breaking)
6418 includes of fcntl.h and sys/file.h.
6420 * nt.c: remove duplicate getloadavg() definition.
6422 * sysdll.h (Qdll_filename_encoding): add missing stand-in
6425 2000-08-07 Gunnar Evermann <ge204@eng.cam.ac.uk>
6427 * eval.c (function_argcount): If function needs to be autoloaded
6428 actually use the loaded definition.
6431 2000-08-05 Ben Wing <ben@xemacs.org>
6433 * getloadavg.c: add prototype for getloadavg(). remove
6434 duplicate WIN32_NATIVE/CYGWIN code (already in the middle
6435 of the code). remove duplicate header includes.
6437 * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
6439 * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
6440 don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
6441 useful load average.
6443 * alloc.c (reinit_alloc_once_early): removed references to
6444 VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
6445 the lisp vars are the only things referencing the malloc_sbrk_*
6446 vars, and they were already if 0'd out. these vars only exist
6447 in the older malloc.c, which is basically unused, and they're
6448 only for informational purposes.
6450 * m\*.h: removed useless VIRT_ADDR_VARIES.
6452 * m\powerpc.h: removed stray NO_ARG_ARRAY.
6454 2000-04-26 IKEYAMA Tomonori <tomonori@suiyokai.org>
6456 * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
6457 color if the image is a mono pixmap.
6459 2000-07-30 Ben Wing <ben@xemacs.org>
6461 * Makefile.in.in (release):
6464 * buffer.c (directory_is_current_directory):
6465 * dired-msw.c (mswindows_get_files):
6467 * dired.c (Fdirectory_files):
6468 * dired.c (file_name_completion_stat):
6469 * dired.c (Ffile_attributes):
6470 [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
6471 preprocessor tricks, to avoid problems on some machines
6474 * callproc.c (egetenv): GC docs.
6477 * console-msw.h (struct mswindows_dialog_id):
6478 * lrecord.h (lrecord_type):
6479 New object for use with MSW dialogs.
6481 * console.h (struct console_methods):
6482 New enable/disable frame methods, for proper modal dialogs.
6484 * device-msw.c (msprinter_default_printer): Fix to follow
6485 proper Mule conventions.
6488 * device-msw.c (signal_open_printer_error):
6489 * device-msw.c (msprinter_init_device):
6490 * device-msw.c (ensure_not_printing):
6491 * device-msw.c (plist_get_margin):
6492 * device-msw.c (Fmsprinter_select_settings):
6493 * device-msw.c (finalize_devmode):
6494 * device-msw.c (Fmsprinter_settings_despecialize):
6495 * device-msw.c (signal_enum_priner_error):
6496 * extents.c (decode_extent):
6497 * extents.c (decode_map_extents_flags):
6498 * extents.c (decode_extent_at_flag):
6499 * extents.c (Fextent_at):
6500 * extents.c (Fextents_at):
6501 * extents.c (symbol_to_glyph_layout):
6502 [[[[2]]]] Use structured errors.
6505 * dialog-msw.c (mswindows_is_dialog_msg):
6506 * dialog-msw.c (mark_mswindows_dialog_id):
6507 * dialog-msw.c (dialog_proc):
6508 * dialog-msw.c (handle_question_dialog_box):
6509 * dialog-msw.c (syms_of_dialog_mswindows):
6510 Define new object to clean up marking; use it as a dialog identifier.
6511 Call new delete-dialog-box-hook.
6513 * dialog-x.c (dbox_selection_callback):
6514 * dialog-x.c (dbox_descriptor_to_widget_value):
6515 * dialog-x.c (x_make_dialog_box_internal):
6516 Call new delete-dialog-box-hook.
6520 * dialog.c (syms_of_dialog):
6521 * dialog.c (vars_of_dialog):
6522 Define new delete-dialog-box-hook, for use w/modal dialog boxes.
6525 * eval.c (signal_call_debugger):
6526 when noninteractive, output stack traces on the console instead
6527 of in a (never-seen) buffer.
6529 * eval.c (signal_type_error):
6530 * eval.c (invalid_argument_2):
6532 new funs for use w/structured errors.
6535 * event-Xt.c (x_to_emacs_keysym):
6536 * event-Xt.c (describe_event):
6537 * event-Xt.c (emacs_Xt_event_handler):
6538 * event-Xt.c (vars_of_event_Xt):
6540 * event-msw.c (mswindows_wnd_proc):
6541 * event-msw.c (vars_of_event_mswindows):
6542 rename {x,mswindows}-debug-events to debug-{}-events for
6543 consistency with other debug-foo variables.
6546 document next-event more clearly.
6548 * fileio.c (Ffile_name_directory):
6549 * fileio.c (Ffile_name_nondirectory):
6550 * fileio.c (Funhandled_file_name_directory):
6551 * fileio.c (file_name_as_directory):
6552 * fileio.c (Ffile_name_as_directory):
6553 * fileio.c (directory_file_name):
6554 * fileio.c (Fdirectory_file_name):
6555 * fileio.c (Fmake_temp_name):
6556 * fileio.c (Ffile_truename):
6557 * fileio.c (Fsubstitute_in_file_name):
6558 * fileio.c (expand_and_dir_to_file):
6559 * fileio.c (barf_or_query_if_file_exists):
6560 * fileio.c (check_executable):
6561 * fileio.c (Ffile_exists_p):
6562 * fileio.c (Ffile_writable_p):
6563 * fileio.c (Ffile_directory_p):
6564 * fileio.c (Ffile_regular_p):
6565 * fileio.c (Ffile_modes):
6566 * fileio.c (Ffile_newer_than_file_p):
6567 * fileio.c (Fverify_visited_file_modtime):
6568 * fileio.c (Fset_visited_file_modtime):
6569 * fileio.c (auto_save_1):
6574 * frame-msw.c (mswindows_init_frame_1):
6575 * frame-msw.c (mswindows_enable_frame):
6576 * frame-msw.c (error_frame_unsizable):
6577 * frame-msw.c (msprinter_init_frame_1):
6578 * frame-msw.c (msprinter_init_frame_3):
6579 * frame-msw.c (console_type_create_frame_mswindows):
6581 implement new enable/disable frame methods.
6584 * frame-x.c (x_enable_frame):
6585 * frame-x.c (console_type_create_frame_x):
6586 implement new enable/disable frame methods.
6589 * frame.c (Fdisable_frame):
6590 * frame.c (syms_of_frame):
6591 * frame.h (struct frame):
6592 implement new enable/disable frame methods/functions.
6597 * glyphs-msw.c (mswindows_widget_instantiate):
6598 comment that initial-focus should be implemented.
6601 * glyphs-widget.c (check_valid_instantiator):
6602 * glyphs-widget.c (check_valid_orientation):
6603 * glyphs-widget.c (check_valid_tab_orientation):
6604 * glyphs-widget.c (check_valid_justification):
6605 * glyphs-widget.c (check_valid_border):
6606 * glyphs-widget.c (check_valid_callback):
6607 * glyphs-widget.c (check_valid_int_or_function):
6608 * glyphs-widget.c (check_valid_string_or_vector):
6609 * glyphs-widget.c (check_valid_item_list_1):
6610 * glyphs-widget.c (widget_validate):
6611 * glyphs-widget.c (combo_box_validate):
6612 * glyphs-widget.c (widget_instantiate):
6613 * glyphs-widget.c (syms_of_glyphs_widget):
6614 * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
6615 * glyphs-widget.c (image_instantiator_combo_box):
6616 * glyphs-widget.c (image_instantiator_scrollbar):
6617 * glyphs-widget.c (image_instantiator_tab_control):
6618 * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
6620 support (unimplemented) keyword initial-focus.
6621 reindent long macros.
6623 * glyphs-x.c (x_redisplay_widget):
6624 * glyphs-x.c (x_button_instantiate):
6625 * glyphs-x.c (x_button_redisplay):
6626 * glyphs-x.c (x_progress_gauge_instantiate):
6627 * glyphs-x.c (x_edit_field_instantiate):
6628 * glyphs-x.c (x_combo_box_instantiate):
6629 * glyphs-x.c (x_tab_control_instantiate):
6630 * glyphs-x.c (x_label_instantiate):
6632 * gui-x.c (button_item_to_widget_value):
6633 * gui-x.c (gui_items_to_widget_values_1):
6634 * gui-x.c (gui_item_children_to_widget_values):
6635 * gui-x.c (gui_items_to_widget_values):
6637 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
6638 add new flag to gui-parsing routines to indicate whether
6639 accelerator specs should be supported.
6641 * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
6643 * glyphs.h (struct Lisp_Image_Instance):
6644 * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
6645 add initial-focus flag.
6648 * gui.c (syms_of_gui):
6649 * gui.c (vars_of_gui):
6650 clean up menu-no-selection-hook.
6653 support delete-dialog-box-hook.
6655 * lread.c (Fload_internal):
6656 * lread.c (locate_file_in_directory_mapper):
6660 * lrecord.h (struct toolbar_button):
6661 * lrecord.h (syms_of_toolbar):
6662 document how to create a new object.
6664 * menubar-msw.c (mswindows_char_is_accelerator):
6665 may be called on frames w/o menus.
6667 * menubar.c (vars_of_menubar):
6668 clean up :filter docs.
6675 * process-nt.c (validate_signal_number):
6676 * process-nt.c (signal_cannot_launch):
6677 * process-nt.c (nt_create_process):
6678 * process-nt.c (nt_send_process):
6679 * process-nt.c (nt_kill_child_process):
6680 * process-nt.c (nt_open_network_stream):
6681 * process-nt.c (syms_of_process_nt):
6683 delete quote-handling. call new lisp code that does it better.
6685 * process-unix.c (connect_to_file_descriptor):
6686 * process-unix.c (allocate_pty):
6687 * process-unix.c (unix_send_process):
6688 * process-unix.c (unix_kill_child_process):
6689 * process-unix.c (unix_open_network_stream):
6690 * process-unix.c (unix_open_multicast_group):
6694 * process.c (Fstart_process_internal):
6695 (2). need to canonicalize process path even if absolute.
6697 * select-msw.c (symbol_to_ms_cf):
6698 * select-msw.c (ms_cf_to_symbol):
6699 * select-msw.c (cf_is_autofreed):
6700 * select-msw.c (mswindows_destroy_selection):
6702 * select.c (syms_of_select):
6704 support dibv5, fix bugs. (from Mike Alexander)
6706 * select.c (Fget_selection_internal):
6707 * select.c (select_convert_out):
6710 * sysdep.c (xemacs_stat):
6715 but keep original stat() here because we provide encapsulation
6719 * sysfile.h (fstat):
6720 remove stat garbage.
6724 don't include tchar.h. it's inappropriate because it makes
6725 compile-time distinctions when we want runtime distinctions.
6726 (we provide our own tchar replacements)
6729 use default object printer for toolbar-button.
6732 make sure we don't encapsulate.
6734 * window.c (vars_of_window):
6735 emphasize that temp-buffer-show-hook is obsolete.
6737 2000-08-05 Martin Buchholz <martin@xemacs.org>
6739 * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
6740 (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
6742 * events.c (Fevent_timestamp_lessp):
6743 Not 64-bit clean. Use EMACS_INT, not int.
6745 2000-06-05 Andrew Begel <abegel@cs.berkeley.edu>
6747 * lrecord.h (lrecord_types): Changed lrecord_type_count to an
6748 unsigned int and changed the last enum to
6749 lrecord_type_last_built_in_type.
6750 (lrecord_implementations_table): changed prototype to know how
6751 long the array is supposed to be.
6752 (lrecord_type_count): new unsigned int to keep track of the
6753 current number of lisp lrecord types.
6754 (DEFINE_EXTERNAL_LRECORD):
6755 (DECLARE_EXTERNAL_LRECORD): Added these two for external
6756 dynamic-modules to declare new lisp types. They are the same
6757 as the non-EXTERNAL forms, but declare an lrecord_type unsigned
6758 int for each new type, and increment lrecord_type_count by 1.
6760 * alloc.c (lrecord_implementations_table): Changed to reference
6761 lrecord_type_last_built_in_type for the size of the array.
6762 Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
6764 2000-08-03 Yoshiki Hayashi <yoshiki@xemacs.org>
6766 * glyphs.h (check_valid_item_list): Renamed from
6767 check_valid_item_list_1.
6769 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
6771 * select.c (Qselect_coerce): New.
6772 * select.c (Vselection_coercion_alist): New.
6773 * select.c (syms_of_select): Declare.
6774 * select.c (get-selection-internal): Use it.
6775 Use the new select-coerce functionality.
6777 * select.c (select_coerce): New.
6778 * select.h (select_coerce): Declare.
6779 New function to coerce one type of data into another.
6781 2000-08-03 Martin Buchholz <martin@xemacs.org>
6783 * callproc.c (Fcall_process_internal):
6784 (Fcall_process_internal):
6785 * process-unix.c (unix_create_process):
6786 Save and restore the value of errno, so that error messages are accurate.
6788 2000-08-01 Martin Buchholz <martin@xemacs.org>
6790 * elhash.c (print_hash_table):
6791 Fix printing of hash tables to also use `key-and-value' instead of `t'.
6792 Prettify docstrings and indentation.
6794 2000-07-31 Yoshiki Hayashi <yoshiki@xemacs.org>
6796 * window.c (Fwindow_pixel_edges): Subtract frame border and
6799 2000-07-31 Andy Piper <andy@xemacs.org>
6801 * buffer.c (Frecord_buffer): make absolutely sure that redisplay
6802 will acknowledge the change.
6804 * glyphs.h: declare tab_control_order_only_changed.
6806 * glyphs-x.c (x_tab_control_redisplay): use
6807 tab_control_order_only_changed.
6809 * glyphs-widget.c (tab_control_order_only_changed): new function.
6811 * glyphs-msw.c (mswindows_tab_control_redisplay): use
6812 tab_control_order_only_changed.
6814 * gui.c (gui_item_equal_sans_selected): new function.
6815 (gui_item_equal): use it.
6817 * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
6818 :properties in favor of :items..
6820 * glyphs-widget.c (check_valid_item_list): rename from
6821 check_valid_item_list_1.
6822 (check_valid_item_list_1): renamed.
6823 (combo_box_validate): deprecate :properties in favor of :items.
6824 (widget_instantiate): ditto.
6825 (tab_control_update): ditto.
6826 (image_instantiator_combo_box): ditto.
6827 (image_instantiator_tree_view): ditto.
6828 (image_instantiator_tab_control): ditto.
6829 (layout_post_instantiate): remove dead code.
6831 * print.c (debug_print_no_newline): only write to debugger if in
6834 * elhash.c (Fmake_hash_table): update doc string.
6836 * event-msw.c (mswindows_wnd_proc): don't allow processing of
6837 messages whilst in GC. This at least stops XEmacs crashing but has
6838 the potential for wierd behaviour.
6840 2000-07-31 Martin Buchholz <martin@xemacs.org>
6843 Make existence of s&m files optional.
6845 * s/bsd386.h: Remove HAVE_GETLOADAVG.
6846 * s/freebsd.h: Remove HAVE_GETLOADAVG.
6847 * s/gnu.h: Remove HAVE_GETLOADAVG.
6848 * s/netbsd.h: Remove HAVE_GETLOADAVG.
6849 * s/sol2.h: Remove HAVE_GETLOADAVG.
6850 * lisp.h: Remove getloadavg() declaration.
6852 Include <sys/loadavg.h> if available.
6853 Don't declare our own getloadavg() if HAVE_GETLOADAVG.
6854 * config.h.in: Group together getloadavg()-related macros.
6855 Use only configure-time tests to detect getloadavg().
6857 2000-07-30 Martin Buchholz <martin@xemacs.org>
6859 * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
6861 2000-07-25 Andy Piper <andy@xemacs.org>
6863 * syswindows.h: add tchar.h for native builds.
6865 * frame.c (syms_of_frame): remove set-glyph-image.
6867 * general-slots.h: add Qset_glyph_image.
6869 * glyphs-widget.c (layout_update): add domain arg to
6871 (syms_of_glyphs_widget): remove set-glyph-image.
6873 2000-07-23 Ben Wing <ben@xemacs.org>
6875 * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
6878 2000-07-22 Andy Piper <andy@xemacs.org>
6880 * symsinit.h: add syms_of_win32().
6882 * gui-msw.c (syms_of_gui_mswindows): remove
6883 Fmswindows_shell_execute.
6884 (Fmswindows_shell_execute): moved to win32.c.
6886 * emacs.c (main_1): add syms_of_win32 ().
6888 * win32.c (init_potentially_nonexistent_functions): rewrite in
6889 compiler-friendly terms.
6890 (Fmswindows_shell_execute): move here from gui-msw.c.
6891 (syms_of_win32): new.
6893 * device-msw.c (Fmswindows_printer_list): clean up args to
6895 Don't include tchar under cygwin or mingw.
6896 (msprinter_default_printer): make cygwin-friendly.
6898 2000-07-21 Andy Piper <andy@xemacs.org>
6900 * glyphs-widget.c (image_instantiator_tree_view): use tab
6901 control's update function.
6902 (layout_property): new function. Retrieve items.
6904 * glyphs-msw.c (mswindows_tree_view_redisplay): new
6905 function. Re-populate the tree view from the pending items.
6907 * glyphs.c (instantiate_image_instantiator): Make sure the domain
6908 is designated the parent if the domain is an image instance. This
6909 is needed so that dirtiness can be cascade up the hierarchy and
6910 thus for layout children to be redisplayed correctly.
6911 (allocate_image_instance): rename glyph -> parent.
6913 * redisplay.h: change redisplay_output_layout signature.
6915 * redisplay-msw.c (mswindows_output_display_block): use domain
6918 * redisplay-x.c (x_output_display_block): use domain arg.
6920 2000-07-10 Andy Piper <andy@xemacs.org>
6922 * window.c (Fset_window_configuration): add comment.
6924 * redisplay-output.c (compare_runes):
6925 (redisplay_output_subwindow): redisplay rather than update subwindow.
6926 (redisplay_output_layout): ditto.
6928 * redisplay-msw.c (mswindows_frame_output_end):
6929 (mswindows_frame_output_end): make defer window pos optional.
6931 * lisp.h: add Flast.
6933 * glyphs.h (struct image_instantiator_methods): add dest_mask top
6934 normalize method. Change update method to be for changed
6935 instantiators. Add redisplay method. Change signature of layout
6937 (struct Lisp_Image_Instance): add instantiator.
6938 (IMAGE_INSTANCE_INSTANTIATOR): new.
6939 (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
6940 (XIMAGE_INSTANCE_INSTANTIATOR): new.
6941 (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
6944 (find_instantiator_differences): new function.
6945 (Fset_instantiator_property): new convenience function.
6946 (check_image_instance_structure): strictly check for vector
6948 (normalize_image_instantiator): make non-static.
6949 (instantiate_image_instantiator): pass on dest_mask and use new
6950 signatures for image_instance_layout and friends.
6951 (mark_image_instance): mark the instantiator. Mark the subwindow
6952 face not the widget face.
6953 (image_instance_equal): add instantiator.
6954 (image_instance_hash): ditto.
6955 (allocate_image_instance): ditto.
6956 (Fset_image_instance_property): removed.
6957 (Fimage_instance_file_name): ditto.
6958 (Fcolorize_image_instance): ditto.
6959 (image_instance_layout): add offsets to be set.
6960 (update_image_instance): new function. update an image instance
6961 from its changed instantiator.
6962 (inherit_normalize): add dest_mask.
6963 (xbm_normalize): ditto.
6964 (xface_normalize): ditto.
6965 (xpm_normalize): ditto.
6966 (text_update): set_property -> update.
6967 (image_instantiate): use the glyph identity as a hash key, not the
6969 (glyph_width): use new image_instance_layout signature.
6970 (glyph_ascent): ditto.
6971 (glyph_descent): ditto.
6972 (glyph_height): ditto.
6973 (glyph_query_geometry): ressurrect.
6974 (glyph_layout): ditto.
6975 (redisplay_subwindow): update -> redisplay.
6976 (syms_of_glyphs): add Fset_instantiator_property.
6977 (image_instantiator_format_create): set_property -> update.
6980 (autodetect_normalize): add dest_maks to signature.
6981 (x_redisplay_subwindow): update -> redisplay.
6982 (x_redisplay_widget): ditto.
6983 (x_button_redisplay): ditto.
6984 (x_progress_gauge_redisplay): ditto.
6985 (x_tab_control_redisplay): ditto. Rewrite to cope with changed
6987 (console_type_create_glyphs_x): update -> redisplay.
6988 (image_instantiator_format_create_glyphs_x): ditto.
6991 (check_valid_instantiator): disallow glyphs in the instantiator,
6992 they must now be vectors.
6993 (check_valid_instantiator_list): ditto.
6994 (glyph_instantiator_to_glyph): use internal symbol rather than
6996 (widget_update): renamed from widget_set_property. Call cascaded
6998 (redisplay_widget): renamed from update_widget.
6999 (widget_layout): image_instance_layout now takes position as well
7001 (widget_normalize): ditto.
7002 (widget_instantiate): ditto.
7003 (tab_control_query_geometry) ditto.:
7004 (tab_control_update): renamed from tab_control_set_property.
7005 (progress_gauge_update): set_property -> update.
7006 (layout_normalize): rewrite so that child instantiators are
7008 (layout_update): new function. Create glyphs from the normalized
7009 children and cope with any other layout keywords. We do not
7010 instantiate children here that will be take care of by
7011 redisplay_output_layout.
7012 (layout_instantiate): call layout_update and not much else.
7013 (layout_post_instantiate): not sure whether this is needed
7015 (layout_query_geometry): query glyph geometry rather than
7016 image_instance geometry.
7017 (layout_layout): set offsets from pass in parameters. Use glyph
7018 geometry and layout functions rather than image instance ones.
7019 (native_layout_layout): ditto.
7020 (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
7021 (image_instantiator_widget): set_property -> update.
7022 (image_instantiator_buttons): ditto.
7023 (image_instantiator_progress_guage): ditto.
7024 (image_instantiator_tab_control): ditto.
7025 (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
7026 (image_instantiator_layout): add update method.
7028 * glyphs-msw.c (bmp_normalize):
7029 (mswindows_resource_normalize): add dest_mask so that it can be
7030 proprogated by layout_normalize.
7031 (begin_defer_window_pos): make optional because it may not be the
7032 right thing to do and it introduces differences with X.
7033 (mswindows_unmap_subwindow): ditto.
7034 (mswindows_map_subwindow): ditto.
7035 (mswindows_redisplay_subwindow): renamed from
7036 mswindows_update_subwindow.
7037 (mswindows_redisplay_widget): ditto.
7038 (mswindows_button_redisplay): renamed from
7039 mswindows_button_update. Update is now what the instantiation
7040 function does for a changed instantiator.
7041 (mswindows_progress_gauge_instantiate): set the progress value
7042 here if appropriate.
7043 (mswindows_tab_control_redisplay): cope with re-ordering of the
7044 members of the tab widget by simply selecting the new top
7045 widget. This makes things appear ok if you click on a tab.
7046 (mswindows_combo_box_instantiate): image_instance_layout now takes
7047 position as well as size.
7048 (mswindows_progress_gauge_redisplay): renamed from
7049 mswindows_progress_gauge_update.
7050 (console_type_create_glyphs_mswindows): fix update -> redisplay.
7051 (image_instantiator_format_create_glyphs_mswindows): ditto.
7053 * glyphs-eimage.c (jpeg_normalize):
7056 (tiff_normalize): add dest_mask so that it can be proprogated by
7061 (hash_table_weakness_validate):
7062 (decode_hash_table_weakness):
7063 (Fhash_table_weakness):
7065 (syms_of_elhash): use Ben's naming scheme for hashtable types..
7067 * console.h (struct console_methods): move update_* to
7070 2000-07-20 Ben Wing <ben@xemacs.org>
7072 * *.[ch] (XSETOBJ): remove unused middle argument.
7073 lisp-disunion.h: correct wrap_object() to one argument.
7075 2000-07-15 Ben Wing <ben@xemacs.org>
7078 * s/cygwin32.h (CYGWIN_CONV_PATH):
7079 Add missing logb prototype for v1.1.
7080 Use post-b20 names and alias to pre-b20 names when pre-b20.
7082 * s/windowsnt.h: [5].
7084 2000-07-15 Ben Wing <ben@xemacs.org>
7086 * Makefile.in.in (x_objs):
7087 * Makefile.in.in (sheap_objs):
7088 * Makefile.in.in (objs):
7089 added win32.o, cosmetic cleanups.
7091 * alloc.c (Fmake_byte_code):
7092 [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
7093 etc. macros which declare their own args now.
7095 * alloc.c (syms_of_alloc):
7096 [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
7099 Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
7101 * buffer.c (Fget_file_buffer):
7102 Fixed GCPRO problem.
7104 * buffer.c (get_truename_buffer):
7105 Fixed comment about GC checking.
7107 * buffer.c (syms_of_buffer):
7108 Undeclared those dedicated frame funs.
7112 Define convenience macros for internal/external conversions.
7113 [[[3]]]: Define codesys aliases Qcommand_argument_encoding
7114 and Qenvironment_variable_encoding for cleaner code.
7117 Remove dedicated-frame; in lisp.
7119 * bytecode.c (funcall_compiled_function):
7122 * bytecode.c (syms_of_bytecode):
7126 * console-msw.c (mswindows_show_console): Rewrote.
7128 * console-msw.c (Fmswindows_debugging_output): New.
7129 Sends to OutputDebugString (special MSWin debugger interface).
7131 * console-msw.c (Fmswindows_message_box):
7132 Fixed stupid bugs so it works when called from kill-emacs.
7134 * console-msw.c (syms_of_console_mswindows):
7135 Declare Fmswindows_debugging_output.
7138 New MSWin prototypes.
7140 * console-msw.h (struct mswindows_frame):
7141 New entry last-click-mods for improved button-modifier support.
7143 * console-msw.h (FRAME_MSWINDOWS_POPUP):
7144 New struct entry `popup' with corresponding accessor.
7147 * console-x.c (split_up_display_spec):
7148 * console-x.c (get_display_arg_connection):
7149 * console-x.c (x_semi_canonicalize_console_connection):
7150 * console-x.c (x_canonicalize_device_connection):
7151 [[[6]]]: Change char to more specific type.
7152 [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
7154 * console-x.c (x_semi_canonicalize_console_connection):
7155 * console-x.c (x_canonicalize_device_connection):
7156 [[[9]]]: Fix up error signalling to use new structured error system.
7159 [[[4]]]: Define codesys aliases:
7160 Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
7161 Qx_color_name_encoding, Qx_display_name_encoding.
7163 * console.h (struct console_methods):
7164 New method make_dialog_box_internal supersedes older
7165 popup_dialog_box method.
7168 Define many new errors, part of new structured errors.
7170 * data.c (init_errors_once_early):
7171 * data.c (syms_of_data):
7174 * device-msw.c (mswindows_init_device):
7175 [[[5]]]: Cleanup to support NT 3.51.
7177 * device-msw.c (decode_devmode): Cleanup.
7179 * device-msw.c (mswindows_handle_print_setup_dialog_box):
7180 * device-msw.c (mswindows_handle_print_dialog_box):
7181 * device-msw.c (mswindows_handle_page_setup_dialog_box):
7182 * device-msw.c (syms_of_device_mswindows):
7183 Delete the dialog box primitives recently introduced by Kirill and
7184 instead interface to general dialog box interface.
7187 * device-x.c (compute_x_app_name):
7188 * device-x.c (x_init_device):
7189 * device-x.c (Fx_valid_keysym_name_p):
7190 * device-x.c (Fx_set_font_path):
7194 * device.h (wrap_device): New.
7195 First of its kind; meant to replace XSETDEVICE.
7197 * dialog-msw.c: Many file-dialog symbols.
7199 * dialog-msw.c (mswindows_register_popup_frame): New.
7200 * dialog-msw.c (mswindows_is_dialog_msg): New.
7201 For supporting kbd traversal in dialog boxes.
7203 * dialog-msw.c (dialog_proc):
7204 Support hitting ESC in dialogs.
7206 * dialog-msw.c (struct):
7207 Common dialog box errors.
7209 * dialog-msw.c (handle_file_dialog_box): New.
7210 Add file dialog code.
7212 * dialog-msw.c (handle_question_dialog_box):
7213 Redo existing code to support new question dialog syntax.
7215 * dialog-msw.c (console_type_create_dialog_mswindows):
7216 We support new dialog console method.
7218 * dialog-msw.c (syms_of_dialog_mswindows):
7219 * dialog-msw.c (vars_of_dialog_mswindows):
7220 New file dialog symbols, vars.
7223 * dialog-x.c (maybe_run_dbox_text_callback):
7224 * dialog-x.c (dbox_descriptor_to_widget_value):
7225 * dialog-x.c (x_make_dialog_box_internal):
7226 * dialog-x.c (console_type_create_dialog_x):
7227 Mule-ize entire file.
7228 Redo to support question dialog syntax.
7232 * dialog.c (Fmake_dialog_box_internal):
7233 * dialog.c (syms_of_dialog):
7234 Kill old popup-dialog-box, replace with new primitive.
7235 Just call device method or signal error.
7237 * eldap.c (Fldap_open):
7238 * eldap.c (Fldap_search_basic):
7239 * eldap.c (Fldap_add):
7240 * eldap.c (Fldap_modify):
7245 * emacs.c (make_arg_list_1):
7246 * emacs.c (make_arg_list):
7247 Mule-ize call to dll_init().
7251 * emacs.c (make_argc_argv):
7252 * emacs.c (free_argc_argv):
7253 * emacs.c (init_cmdargs):
7255 * emacs.c (Fkill_emacs):
7256 * emacs.c (Fdump_emacs):
7257 Update comments about what can be used in syms_* etc.
7258 Call init_win32() when necessary.
7259 Fix up MS Win dialog box in kill-buffer to actually work right.
7270 * eval.c (condition_case_3):
7272 * eval.c (function_argcount):
7273 * eval.c (funcall_lambda):
7276 * eval.c (type_error): New.
7277 * eval.c (maybe_type_error): New.
7278 * eval.c (continuable_type_error): New.
7279 * eval.c (maybe_continuable_type_error): New.
7280 * eval.c (type_error_with_frob): New.
7281 * eval.c (maybe_type_error_with_frob): New.
7282 * eval.c (continuable_type_error_with_frob): New.
7283 * eval.c (maybe_continuable_type_error_with_frob): New.
7284 New functions for use with structured errors.
7287 * event-Xt.c (x_event_to_emacs_event):
7288 Buttons are now modifiers too.
7290 * event-Xt.c (emacs_Xt_current_event_timestamp):
7291 Implement new event method.
7292 * event-Xt.c (reinit_vars_of_event_Xt): Set it.
7295 * event-msw.c (ntpipe_shove_writer): [5].
7296 * event-msw.c (mswindows_enqueue_mouse_button_event):
7297 * event-msw.c (mswindows_drain_windows_queue):
7298 * event-msw.c (mswindows_wnd_proc): [7].
7299 * event-msw.c (mswindows_current_layout_has_AltGr): [5].
7300 * event-msw.c (mswindows_modifier_state):
7301 Throughout: support new button modifiers.
7303 * event-msw.c (emacs_mswindows_current_event_timestamp):
7304 Implement new event method.
7305 * event-msw.c (reinit_vars_of_event_mswindows): Set it.
7308 * event-stream.c (event_stream_current_event_timestamp): New.
7309 * event-stream.c (maybe_kbd_translate): New functionality.
7310 * event-stream.c (vars_of_event_stream):
7311 Document new kbd-translate-table functionality.
7313 * event-stream.c (Fcurrent_event_timestamp): New.
7314 New primitive for use in fabricated events.
7315 * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
7317 * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
7320 * events.c (Fmake_event):
7321 * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
7325 * events.c (format_event_object): fix gcc warnings.
7327 * events.c (Fevent_timestamp): Document new primitives.
7329 * events.c (TIMESTAMP_HALFSPACE): New.
7331 * events.c (Fevent_timestamp_lessp): New. New primitive for
7332 comparing timestamps correctly (half-space algorithm).
7334 * events.c (Fevent_modifier_bits): Doc fix.
7336 * events.c (Fevent_modifiers): Major doc addition.
7337 * events.c (event_x_y_pixel_internal): Typo fix.
7338 * events.c (syms_of_events): Declare new primitives.
7341 Update long comment for button modifiers, timestamps.
7343 * events.h (struct event_stream):
7344 New current_event_timestamp method.
7347 * extents.c (extent_in_region_p):
7348 * extents.c (decode_extent):
7349 * extents.c (Fset_extent_parent):
7350 * extents.c (decode_map_extents_flags):
7354 * extents.c (struct extent_at_arg):
7355 * extents.c (decode_extent_at_flag):
7356 * extents.c (extent_at_mapper):
7357 * extents.c (extent_at_bytind):
7358 * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
7359 * extents.c (Fextents_at): New primitive. [9].
7360 * extents.c (symbol_to_glyph_layout): [9].
7361 Support new primitive `extents-at'.
7364 * extents.c (get_text_property_bytind):
7365 extent_at_bytind has another arg.
7368 * extents.c (syms_of_extents): New primitive.
7370 * file-coding.c (Fmake_coding_system): [1].
7371 * file-coding.c (subsidiary_coding_system): fix gcc warning
7372 * file-coding.c (syms_of_file_coding): [2].
7374 * fileio.c (Fexpand_file_name):
7375 * fileio.c (Fsysnetunam):
7376 * fileio.c (Ffile_exists_p):
7377 * fileio.c (Ffile_executable_p):
7378 * fileio.c (Fverify_visited_file_modtime):
7381 * fileio.c (syms_of_fileio): [2].
7383 * filelock.c (lock_file_1):
7384 * filelock.c (current_lock_owner):
7385 * filelock.c (lock_if_free):
7386 * filelock.c (lock_file):
7387 * filelock.c (unlock_file):
7390 * fns.c (concat): Fix gcc warning.
7393 * fns.c (Fold_member):
7395 * fns.c (Fold_memq):
7396 * fns.c (memq_no_quit):
7398 * fns.c (Fold_assoc):
7400 * fns.c (Fold_assq):
7401 * fns.c (assq_no_quit):
7403 * fns.c (Fold_rassoc):
7405 * fns.c (Fold_rassq):
7406 * fns.c (rassq_no_quit):
7408 * fns.c (Fold_delete):
7410 * fns.c (Fold_delq):
7411 * fns.c (delq_no_quit):
7412 * fns.c (Fremassoc):
7414 * fns.c (remassq_no_quit):
7415 * fns.c (Fremrassoc):
7416 * fns.c (Fremrassq):
7417 * fns.c (remrassq_no_quit):
7422 * frame-msw.c (mswindows_init_frame_1):
7423 * frame-msw.c (mswindows_delete_frame):
7424 Register popups with dialog code so keyboard traversing works.
7426 * frame-tty.c (tty_raise_frame_no_select): [1].
7429 * frame-x.c (x_set_frame_text_value):
7430 * frame-x.c (x_set_frame_properties):
7431 * frame-x.c (x_create_widgets):
7435 * frame.c (Fmouse_pixel_position): Minor doc fixes.
7437 * frame.h (wrap_frame): New.
7438 Macro like wrap_device.
7441 * general.c (SYMBOL):
7442 * general.c (syms_of_general):
7443 Major reorg. This is now just a wrapper and symbols themselves
7444 are listed in general-slots.h.
7446 * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
7447 * glyphs-msw.c (mswindows_resource_instantiate): [5].
7449 * glyphs-msw.c (mswindows_native_layout_instantiate):
7450 Add DS_CONTROL so keyboard traversal will work.
7453 * glyphs-widget.c (syms_of_glyphs_widget):
7454 Move some symbols to general-slots.h.
7457 * glyphs-x.c (xbm_instantiate_1):
7458 * glyphs-x.c (x_xbm_instantiate):
7459 * glyphs-x.c (x_xface_instantiate):
7460 * glyphs-x.c (autodetect_instantiate):
7461 * glyphs-x.c (cursor_font_instantiate):
7462 * glyphs-x.c (x_update_widget):
7463 * glyphs-x.c (x_widget_instantiate):
7464 * glyphs.c (bitmap_to_lisp_data):
7465 * glyphs.c (pixmap_to_lisp_data):
7468 * glyphs.c (syms_of_glyphs):
7472 * gui-x.c (print_widget_value):
7473 * gui-x.c (menu_separator_style_and_to_external):
7474 * gui-x.c (add_accel_and_to_external):
7475 * gui-x.c (button_item_to_widget_value):
7476 * gui-x.c (gui_items_to_widget_values_1):
7477 * gui-x.c (gui_items_to_widget_values):
7478 * gui-x.c (syms_of_gui_x):
7479 * gui-x.c (vars_of_gui_x):
7480 Mule-ize entire file. Move menu-no-selection-hook to gui.c.
7484 Muleize, prototype changes matching gui-x.c.
7487 * gui.c (separator_string_p):
7488 * gui.c (gui_item_add_keyval_pair):
7489 * gui.c (make_gui_item_from_keywords_internal):
7490 * gui.c (signal_too_long_error):
7491 * gui.c (parse_gui_item_tree_item):
7492 * gui.c (syms_of_gui):
7493 * gui.c (vars_of_gui):
7495 menu-no-selection-hook moved here (used by MSWin).
7496 Move some symbols to general-slots.h.
7500 * insdel.c (get_buffer_pos_char):
7501 * insdel.c (get_buffer_range_char):
7504 * keymap.c (keymap_lookup_directly):
7505 * keymap.c (keymap_store):
7506 * keymap.c (ensure_meta_prefix_char_keymapp):
7507 * keymap.c (describe_map):
7509 Support new button modifiers.
7511 * lisp-disunion.h (wrap_object):
7512 * lisp-disunion.h (XSETOBJ):
7513 Rename make_obj to wrap_object.
7516 * lisp-union.h (make_int):
7517 * lisp-union.h (make_char):
7518 Support wrap_object.
7521 * lisp.h (LIST_LOOP):
7522 * lisp.h (EXTERNAL_LIST_LOOP):
7523 * lisp.h (LIST_LOOP_2):
7524 * lisp.h (EXTERNAL_LIST_LOOP_1):
7525 * lisp.h (EXTERNAL_LIST_LOOP_2):
7526 * lisp.h (EXTERNAL_LIST_LOOP_3):
7527 * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
7528 * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
7529 * lisp.h (GET_EXTERNAL_LIST_LENGTH):
7530 * lisp.h (EXTERNAL_ALIST_LOOP_5):
7531 * lisp.h (EXTERNAL_ALIST_LOOP_6):
7532 * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
7533 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
7534 * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
7535 * lisp.h (struct Lisp_Symbol):
7536 * lisp.h (maybe_continuable_error_with_frob):
7537 Fix up section comments.
7538 Add new types for char to indicate usage.
7539 Delete symbols auto-generated from general-slots.h.
7540 Add prototypes for structured error functions.
7541 Add long comments describing looping macros and change interface
7542 so that lvalues are automatically declared.
7543 Add NO_DECLARE macro in case callers want to declare lvalues
7546 * lread.c (read_syntax_error):
7547 * lread.c (continuable_read_syntax_error):
7548 * lread.c (read_structure):
7549 * lread.c (sequence_reader):
7550 * lread.c (read_list_conser):
7551 * lread.c (read_compiled_function):
7552 Rename syntax_error and continuable_syntax_error to avoid clash
7553 with same-named structured error functions.
7555 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
7556 * menubar-msw.c (populate_menu_add_item):
7557 * menubar-msw.c (populate_or_checksum_helper):
7562 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
7563 Mule-ize whole file.
7565 * menubar.c (Fnormalize_menu_item_name): Add optimization.
7567 * mule-charset.c (Fmake_charset):
7568 * mule-wnnfns.c (Fwnn_set_param):
7571 * ntproc.c (create_child):
7572 * ntproc.c (Fwin32_set_current_locale):
7573 Add comments portending doom.
7576 * objects-msw.c (old_font_enum_callback_2):
7577 * objects-msw.c (font_enum_callback_1):
7578 * objects-msw.c (mswindows_enumerate_fonts):
7582 * objects-x.c (allocate_nearest_color):
7583 * objects-x.c (x_parse_nearest_color):
7584 * objects-x.c (x_initialize_color_instance):
7585 * objects-x.c (x_print_color_instance):
7586 * objects-x.c (x_finalize_color_instance):
7587 * objects-x.c (x_valid_color_name_p):
7588 * objects-x.c (x_initialize_font_instance):
7589 * objects-x.c (x_print_font_instance):
7590 * objects-x.c (valid_x_font_name_p):
7591 * objects-x.c (truename_via_FONT_prop):
7592 * objects-x.c (truename_via_random_props):
7593 * objects-x.c (truename_via_XListFonts):
7594 * objects-x.c (x_font_truename):
7595 * objects-x.c (x_font_instance_truename):
7596 * objects-x.c (x_font_instance_properties):
7597 * objects-x.c (x_list_fonts):
7598 * objects-x.c (x_find_charset_font):
7599 Mule-ize entire file.
7606 * print.c (std_handle_out_external):
7607 * print.c (debug_print_no_newline):
7608 * print.c (syms_of_print):
7609 Output to all debugger kinds in debug-print.
7610 Fix console-output code under MSWin to actually work.
7612 * process-nt.c (send_signal):
7613 * process-nt.c (nt_create_process):
7614 Use newer Unicode macros.
7616 * process-unix.c (unix_create_process):
7617 * process-unix.c (unix_canonicalize_host_name):
7618 * process-unix.c (unix_open_network_stream):
7624 * search.c (syms_of_search):
7627 * select-msw.c (mswindows_destroy_selection):
7630 * select-x.c (symbol_to_x_atom):
7633 * select.c (syms_of_select):
7636 * sound.c (Fplay_sound_file):
7640 * specifier.c (decode_specifier_type):
7641 * specifier.c (Fvalid_specifier_locale_type_p):
7642 * specifier.c (check_valid_locale_or_locale_type):
7643 * specifier.c (decode_locale):
7644 * specifier.c (decode_locale_type):
7645 * specifier.c (decode_locale_list):
7646 * specifier.c (check_valid_domain):
7647 * specifier.c (decode_specifier_tag_set):
7648 * specifier.c (Fcanonicalize_tag_set):
7649 * specifier.c (Fdefine_specifier_tag):
7650 * specifier.c (Fspecifier_tag_predicate):
7651 * specifier.c (check_valid_inst_list):
7652 * specifier.c (check_valid_spec_list):
7653 * specifier.c (decode_how_to_add_specification):
7654 * specifier.c (check_modifiable_specifier):
7655 * specifier.c (specifier_add_spec):
7656 * specifier.c (boolean_validate):
7657 * specifier.c (display_table_validate):
7660 * specifier.c (syms_of_specifier):
7661 Move some symbols to general-slots.h.
7665 * symbols.c (Fmapatoms):
7666 * symbols.c (Fapropos_internal):
7669 * symbols.c (set_default_buffer_slot_variable):
7670 * symbols.c (set_default_console_slot_variable):
7673 * symbols.c (defsymbol_massage_name_1):
7674 * symbols.c (defkeyword_massage_name):
7675 * symbols.c (deferror_1):
7676 * symbols.c (deferror):
7677 * symbols.c (deferror_massage_name_and_message):
7679 * symeval.h (DEFSYMBOL):
7680 Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
7682 * symbols.c (syms_of_symbols):
7686 * symsinit.h (init_win32): New.
7687 Also new is syms_of_dialog_mswindows.
7690 Add new Unicode macros, missing Cygwin wide-char functions,
7691 convenience conversion macros for Qmswindows_tstr, macros for
7692 encapsulating required MSWin <-> Cygwin filename conversions,
7693 prototype for dynamically-extracted (not in NT 3.51) functions.
7698 * tooltalk.c (Fadd_tooltalk_message_arg):
7699 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
7700 * tooltalk.c (Fadd_tooltalk_pattern_arg):
7703 * tooltalk.c (syms_of_tooltalk):
7707 * unexnt.c (unexec):
7708 Fix up headers, declaration of unexec() to be more standard.
7710 2000-07-20 Martin Buchholz <martin@xemacs.org>
7712 * offix.h: Revert change to guard macros - they're used in offix.c!
7714 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7716 * lisp.h: Defsubred Fdelete.
7718 * console-msw.h: (msprinter_default_printer): Added.
7720 * console-msw.c (msprinter_canonicalize_console_connection):
7721 (msprinter_canonicalize_device_connection): Added.
7723 * device-msw.c (msprinter_default_printer):
7724 (Fmswingows_get_default_printer):
7725 (signal_enum_priner_error):
7726 (Fmswingows_printer_list): Added.
7728 2000-07-19 Martin Buchholz <martin@xemacs.org>
7730 * XEmacs 21.2.35 is released.
7732 2000-07-19 Martin Buchholz <martin@xemacs.org>
7734 * select-x.c (x_handle_selection_request):
7735 Text selected in xemacs and pasted into xterm failed to appear.
7736 Spelling fixes and cosmetic changes.
7738 2000-07-18 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7740 * event-msw.c (mswindows_drain_windows_queue): Correctly check for
7741 XEmacs frame (fix for doubling chars in dialog boxes).
7743 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7745 * select.c (select_convert_in, select_convert_out):
7746 Don't call intern() every time.
7748 * select.c (Qselect_convert_in, Qselect_convert_out): New.
7749 * select.c (vars_of_select): Initialise them.
7751 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7753 * select.c (selection-coercible-types): New.
7755 * select.c (own-selection-internal):
7756 * select.c (get-selection-internal):
7757 MULE bug fix - these should default to COMPOUND_TEXT and not
7758 STRING for MULE. I think.
7760 * select.c (select_convert_out): Use selection-coercible-types
7761 to find types that we can attempt to perform coercions on.
7763 2000-07-18 Martin Buchholz <martin@xemacs.org>
7767 Add coding: cookie to identify encoding.
7769 * mule-canna.c (CANNA_mode_keys): make static.
7770 Use proper prototypes, even for functions of no arguments.
7771 Remove external prototype for Fding().
7773 * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
7775 * select.c (syms_of_select): Add missing DEFSUBR.
7777 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
7779 * select.c (get_selection_internal, own_selection_internal):
7780 Make the type default to STRING, rather than placing a nil type
7781 into Vselection_alist.
7783 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
7785 * gpmevent.c (tty_selection_exists_p):
7786 * gpmevent.c (tty_own_selection):
7787 Updated parameter lists.
7789 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
7791 * select.h (selection-alist): Removed declaration.
7793 * select.h (get_local_selection):
7794 * select.c (get_local_selection):
7797 * select.h (convert_selection): Removed declaration.
7798 * select.c (convert_selection): Removed.
7799 This function belongs in Lisp.
7801 * select.h (select_convert_in): Declare.
7802 * select.h (select_convert_out): Declare.
7803 * select.c (select_convert_in): New.
7804 * select.c (select_convert_out): New.
7805 New conversion functions for other files to call.
7807 * select.h (select_notify_buffer_kill): Declare.
7808 * select.c (select_notify_buffer_kill): New.
7809 New functions that get called from kill-buffer.
7811 * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
7812 X-specific lisp code.
7814 * select.h: Declare some of the lisp-visible functions for
7817 * select.c (clean_local_selection_data): Removed. This was
7818 a disgusting function, and previously should have been in
7819 select-x.c in any case. The functionality is now provided
7820 in select-convert-from-integer (select.el).
7822 * select.c (available-selection-types): Fixed stupidity where
7823 INTEGER and ATOM got added twice. Also add STRING when we see an
7826 * select.c (get-selection-internal): Removed symbol stripping. No
7827 longer causes conversion when data comes from the internal cache.
7829 * select.c (syms_of_select): Added new functions.
7831 * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
7832 error checking - previously this called abort!
7834 * select-x.c (x_own_selection): Changed comment.
7836 * select-x.c (x_handle_selection_request): Use select_convert_out.
7837 Don't mess with selection-alist; it's an internal variable of select.c.
7839 * select-x.c (x_get_foreign_selection): Use select_convert_in.
7841 * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
7842 rather than messing with selection-alist.
7844 * select-msw.c (mswindows_get_foreign_selection):
7845 Use TO_INTERNAL_FORMAT rather than hacking.
7847 2000-07-14 Martin Buchholz <martin@xemacs.org>
7849 * process-unix.c (unix_open_multicast_group):
7850 (unix_open_multicast_group): Remove useless casts.
7852 2000-07-13 Martin Buchholz <martin@xemacs.org>
7854 * sound.c (Fplay_sound): Fix `unused variable' warning.
7856 * emacs.c (main): Use correct type for _environ on SCO5.
7858 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
7860 * console.h (own_selection_method):
7861 * console.h (selection_exists_p_method):
7862 * console.h (available_selection_types_method): New.
7863 * console.h (register_selection_data_type_method): New.
7864 * console.h (selection_data_type_name): New.
7866 * console-msw.h (mswindows_destroy_selection): Declare it. New
7867 function & alist to track GlobalAlloc()'d handles that need
7868 releasing when the clipboard data gets replaced or emptied.
7870 * event-msw.c (mswindows_wnd_proc): Call it.
7872 * lisp.h, general.c (Qappend): New symbol representing a
7875 * select.c (own-selection-internal):
7876 * select.c (selection-exists-p):
7877 * select.c (available-selection-types): New.
7878 * select.c (register-selection-data-type): New.
7879 * select.c (selection-data-type-name): New. New functions to deal
7880 with device-specific selection data formats.
7881 * select.c (selection-converter-out-alist): Renamed.
7882 * select.c (selection-converter-in-alist): New.
7883 * select.c (selection-appender-alist): New. Added new alists.
7884 * select.c (syms_of_select, vars_of_select): Added new symbols &
7886 * select.c (get_local_selection): Split.
7887 * select.c: Removed spurious type checking - selections may now be
7888 of any type, not just strings.
7889 * select.c (own-selection-internal):
7891 * select.h, select.c (convert_selection): New. Created
7892 convert_selection() function based on get_local_selection().
7893 * select.h, select.c (QCF_*): New symbols representing mswindows
7895 * select.h, select.c (Qreplace_all, Qreplace_existing): New
7896 symbols representing `how-to-add' modes.
7898 * select-msw.c (x_sym_p): New.
7899 * select-msw.c (symbol_to_ms_cf): New.
7900 * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
7901 symbols & clipboard formats. Can also handle string names.
7902 * select-msw.c (mswindows_own_selection):
7903 * select-msw.c (mswindows_selection_exists_p):
7904 Added `data-type' parameter. Use it.
7905 * select-msw.c (mswindows_available_selection_types): New.
7906 * select-msw.c (mswindows_register_selection_data_type): New.
7907 * select-msw.c (mswindows_selection_data_type_name): New.
7908 * select-msw.c (mswindows_own_selection):
7909 * select-msw.c (mswindows_get_foreign_selection):
7910 * select-msw.c (mswindows_selection_exists_p): Rewrote.
7911 * select-msw.c (console_create_select_mswindows): Added new methods.
7912 * select-msw.c (mswindows_destroy_selection): New.
7913 * select-msw.c (Vhandle_alist): New list.
7914 * select-msw.c (mswindows_own_selection):
7916 * select-x.c (x_own_selection):
7917 * select-x.c (x_selection_exists_p):
7918 * select-x.c: Added some comments about maybe using new
7920 * select-x.c (x_own_selection):
7922 * specifier.c: Remove definition of Qappend (now in general.c)
7923 * specifier.c (syms_of_specifier): Remove Qappend.
7925 2000-07-12 Martin Buchholz <martin@xemacs.org>
7927 * config.h.in: Add socklen_t.
7929 * s/decosf4-0.h: No special compiler flags needed or desired.
7930 In particular, undefine _BSD for DEC OSF 4.0.
7932 2000-07-07 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
7934 * redisplay-msw.c (msprinter_frame_output_end): Added.
7935 (console_type_create_redisplay_mswindows): Referred the above.
7937 * frame.c (setup_frame_without_minibuffer): Do not create a
7938 default minibuffer frame on a printer device.
7940 * frame-msw.c (apply_dc_geometry): Added.
7941 (msprinter_start_page):
7942 (msprinter_init_frame_3):
7943 (msprinter_eject_page): Use it.
7945 * console-msw.h (struct msprinter_frame): Added pix_left and top,
7946 and removed residual duplex and orientation properties.
7948 2000-07-11 Martin Buchholz <martin@xemacs.org>
7950 * eval.c (function_argcount): Work around a DEC CC compiler bug.
7952 * unexalpha.c: Remove system prototypes from C sources!
7954 2000-07-09 Adrian Aichner <aichner@ecf.teradyne.com>
7956 * eval.c: Remove references to M-x edit-options in DEFUNs for
7957 `defvar' and `defconst'.
7959 2000-07-09 Martin Buchholz <martin@xemacs.org>
7961 * config.h.in: Remove SMART_INCLUDE hackery.
7964 * config.h.in: Don't use SMART_INCLUDE.
7966 * postgresql.h: Include libpq-fe.h here. Fix typo.
7967 * inline.c: Simply #include "postgresql.h"
7969 - Don't use SMART_INCLUDE
7970 - Use simply "const".
7971 - Use standard doc string conventions.
7972 - Use correct type for result of PQstatus.
7974 2000-07-09 Martin Buchholz <martin@xemacs.org>
7976 * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
7978 C++ compilation changes.
7979 * config.h.in (EXTERN_C): Define.
7980 * config.h.in (not): This is also a C++ keyword.
7981 * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
7982 * cm.c: Use EXTERN_C.
7983 * redisplay-tty.c: Use EXTERN_C.
7984 * sysdep.c: Use EXTERN_C. Remove Gould support.
7986 2000-07-09 Martin Buchholz <martin@xemacs.org>
7988 * general.c: Remove duplicate definition for Qfunction.
7990 2000-07-08 Ben Wing <ben@xemacs.org>
7992 * device-msw.c (msprinter_init_device):
7993 * device-msw.c (sync_printer_with_devmode):
7994 * device-msw.c (handle_devmode_changes):
7995 * device-msw.c (print_dialog_worker):
7996 * device-msw.c (Fmsprinter_apply_settings):
7997 * device-msw.c (hash_devmode):
7998 * device-msw.c (Fmsprinter_settings_despecialize):
7999 use Qmswindows_tstr, not Qctext.
8001 * vm-limit.c (check_memory_limits):
8002 avoid infinite loop printing warning messages.
8004 2000-07-05 Craig Lanning <lanning@scra.org>
8006 * Makefile.in.in: Add support for including the Windows resources
8007 when building with the cygwin and mingw targets.
8009 * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
8010 not set or not correct.
8011 (directory_is_current_directory): Don't compile for WIN32_NATIVE.
8012 (init_initial_directory): Don't try to use $PWD on the
8013 WIN32_NATIVE target.
8016 [[Add -mwindows to eliminate console window.]] not required --ben
8017 (HAVE_NATIVE_SOUND): removed; now handled by configure.
8018 (MAIL_USE_POP): removed; now handled by configure.
8020 * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
8021 C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
8022 (HAVE_NATIVE_SOUND): removed; now handled by configure.
8023 (MAIL_USE_POP): removed; now handled by configure.
8024 (ENCAPSULATE_STAT): from Dan Holmsand, added.
8025 (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
8026 (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
8028 (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
8029 up from <winsock.h> via systime.h.
8030 (HAVE_GETPAGESIZE): from Dan Holmsand, added.
8031 (getpagesize): from Dan Holmsand, added.
8032 Added #endif which was left dangling by Ben's mega patch; added
8033 comment to help prevent this in the future.
8035 * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
8037 2000-07-05 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
8039 * console-msw.h (struct mswindows_device): Removed unnecessary
8040 cached device geometry values.
8041 Added update_tick and an accessor macro.
8042 (Lisp_Devmode): Added lrecord declaration.
8043 (struct msprinter_device): Contain devmode as a Lisp object.
8044 Added mswindows_get_selected_frame_hwnd();
8046 * console.h (struct console_methods): Indentation nitpicking.
8048 * device-msw.c (mswindows_init_device): Do not initialize geometry
8049 cache. Initialize update tick.
8050 (mswindows_device_system_metrics): Ask the device for its geometry.
8051 (global_free_2_maybe):
8052 (devmode_to_hglobal):
8053 (handle_printer_changes):
8054 (ensure_not_printing):
8055 (print_dialog_worker):
8056 (Fmsprinter_print_setup_dialog):
8057 (Fmsprinter_print_dialog):
8060 (Fmsprinter_page_setup_dialog): Added functions.
8061 (sync_printer_with_devmode):
8062 (handle_devmode_changes):
8063 (Fmsprinter_get_settings):
8064 (Fmsprinter_select_settings):
8065 (Fmsprinter_apply_settings):
8067 (Fmsprinter_settings_copy):
8068 (Fmsprinter_settings_despecialize):
8072 (hash_devmode): Added functions
8073 (syms_of_device_mswindows): Init devmode lrecord class.
8075 * device.h: Added an exfun for find-device.
8077 * event-msw.c (mswindows_wnd_proc): Do not update the cached
8078 geometry; although, recreate the device compatible DC.
8080 * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
8081 (msprinter_init_frame_3):
8082 (msprinter_frame_property):
8083 (msprinter_internal_frame_property_p):
8084 (msprinter_frame_properties):
8085 (msprinter_set_frame_properties): Removed 'orientation and 'duplex
8086 print job properties (will move to device settings).
8088 * lisp.h: Added symbols.
8090 * general.c (syms_of_general): Declared them.
8092 * hash.c (string_hash): Added.
8094 * lrecord.h (lrecord_type): Added devmode lrecord type.
8096 2000-07-02 Mike Sperber <mike@xemacs.org>
8098 * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
8101 2000-06-07 MORIOKA Tomohiko <tomo@etl.go.jp>
8103 * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
8106 2000-06-07 MORIOKA Tomohiko <tomo@urania.m17n.org>
8108 * data.c (Fstring_to_number): Don't recognize floating point if
8111 2000-06-22 Martin Buchholz <martin@xemacs.org>
8113 * glyphs-widget.c (tab_control_query_geometry):
8114 (widget_query_geometry):
8115 (button_query_geometry):
8116 * glyphs.c (text_query_geometry):
8117 Enforce type correctness.
8119 2000-06-18 Martin Buchholz <martin@xemacs.org>
8121 * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
8122 * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
8124 2000-06-17 Martin Buchholz <martin@xemacs.org>
8126 * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
8127 conflicts with gcc's fixincluded version of FOO.h.
8129 * glyphs.h (image_instance_geometry): Remove trailing `,'
8131 2000-06-08 Mike Alexander <mta@arbortext.com>
8133 (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
8134 (shove_thread): Don't write the same output twice
8135 (make_ntpipe_output_stream): Increase priority of shove thread
8136 (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
8138 (ntpipe_shove_closer): Don't delete the pipe until we're done with
8141 2000-06-12 Ben Wing <ben@xemacs.org>
8143 * s\mingw32.h (sigset):
8144 * s\windowsnt.h (sigset):
8145 rename msw_ to mswindows_ for consistency with general convention.
8147 2000-06-12 Ben Wing <ben@xemacs.org>
8150 * console-msw.c (mswindows_get_console_hwnd):
8151 * console-msw.c (mswindows_ensure_console_allocated):
8152 * console-msw.c (mswindows_hide_console):
8153 * console-msw.c (mswindows_show_console):
8154 * console-msw.c (mswindows_ensure_console_buffered):
8155 * console-msw.c (mswindows_output_console_string):
8156 * console-msw.c (mswindows_windows9x_p):
8158 * device-msw.c (mswindows_get_workspace_coords):
8159 * device-msw.c (mswindows_device_system_metrics):
8160 * dialog-msw.c (mswindows_popup_dialog_box):
8161 * event-msw.c (mswindows_wnd_proc):
8162 * frame-msw.c (mswindows_size_frame_internal):
8163 * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
8164 * menubar-msw.c (displayable_menu_item):
8165 * menubar-msw.c (mswindows_char_is_accelerator):
8167 * nt.c (mswindows_sigset):
8168 * nt.c (mswindows_sigrelse):
8169 * nt.c (mswindows_sigpause):
8170 * nt.c (mswindows_raise):
8171 * nt.c (timer_proc):
8173 * ntproc.c (find_child_console):
8174 * ntproc.c (sys_kill):
8176 * print.c (std_handle_out_external):
8177 * process-nt.c (find_child_console):
8178 * process-nt.c (send_signal_the_95_way):
8179 * process-nt.c (ensure_console_window_exists):
8180 * process-nt.c (nt_create_process):
8182 rename msw_ to mswindows_ for consistency with general convention.
8186 include nt.h, not syswindows.h.
8188 * nt.c (mswindows_fstat):
8189 * nt.c (mswindows_stat):
8190 prefix mswindows_ instead of attempting to directly override the
8191 library functions. fix declarations.
8194 include syswindows.h. move some sysdep.h stuff here.
8197 include syswindows.h, not <windows.h>.
8205 * sysdep.c (sys_fstat):
8206 * sysdep.c (sys_stat):
8207 call mswindows versions when appropriate.
8210 move mswin decls to nt.h.
8213 add long comment describing appropriate use of the various windows
8216 2000-06-11 Ben Wing <ben@xemacs.org>
8218 * device-x.c: Correct doc string for sixth arg of x-get-resource.
8220 2000-06-10 Ben Wing <ben@xemacs.org>
8222 * Makefile.in.in (release):
8223 Correction to make sure xemacs.exe always dumped when correct.
8227 [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
8229 * buffer.c (set_buffer_internal):
8230 [[[[2]]]]: Remove HAVE_FEP code.
8232 * buffer.c (init_initial_directory):
8236 [[[[4]]]]: limits.h standardly included in lisp.h; remove from
8240 * callproc.c (call_process_cleanup):
8241 * callproc.c (Fold_call_process_internal):
8242 * callproc.c (child_setup):
8243 * callproc.c (getenv_internal):
8244 * callproc.c (init_callproc):
8245 * callproc.c (vars_of_callproc):
8246 [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
8247 __CYGWIN32__ -> CYGWIN.
8248 DOS_NT -> WIN32_NATIVE.
8249 Remove MSDOS support/references, converting to WIN32_NATIVE
8251 __MINGW32__ -> MINGW.
8252 Fix windows.h includes.
8253 Remove bogus HAVE_NTGUI.
8259 mswindows_message_outputted added for use in allowing startup
8260 errors on the console to be seen.
8262 * console-msw.c (msw_ensure_console_allocated):
8263 * console-msw.c (msw_output_console_string):
8264 * console-msw.c (DHEADER):
8265 * console-msw.c (DOPAQUE_DATA):
8266 * console-msw.c (DEVENT):
8267 * console-msw.c (DCONS):
8268 * console-msw.c (DCONSCDR):
8269 * console-msw.c (DSTRING):
8270 * console-msw.c (DVECTOR):
8271 * console-msw.c (DSYMBOL):
8272 * console-msw.c (DSYMNAME):
8275 * console-stream.c (stream_init_console):
8276 Fix text/binary problems.
8279 * device-msw.c (mswindows_finish_init_device):
8280 * device-msw.c (mswindows_delete_device):
8283 * device.c (handle_asynch_device_change):
8287 * dgif_lib.c (DGifOpenFileName):
8288 * dgif_lib.c (DGifOpenFileHandle):
8289 * dgif_lib.c (DGifGetLine):
8290 * dgif_lib.c (DGifGetPixel):
8291 Added config.h/lisp.h, fix up includes.
8298 * dired.c (file_name_completion):
8299 * dired.c (Ffile_attributes):
8300 * dired.c (syms_of_dired):
8304 * dumper.c (pdump_file_unmap):
8305 * dumper.c (pdump_load):
8309 * editfns.c (Ftemp_directory):
8310 * editfns.c (user_login_name):
8311 * editfns.c (Fuser_real_login_name):
8312 * editfns.c (get_home_directory):
8315 * elhash.c (finish_marking_weak_hash_tables):
8316 [[[[5]]]]: Fix GCC warnings.
8319 * emacs.c (mswindows_handle_hardware_exceptions):
8320 * emacs.c (make_arg_list_1):
8322 * emacs.c (Fkill_emacs):
8323 * emacs.c (Fdump_emacs):
8325 Fix problems with nested crashes, add long comment.
8327 * event-Xt.c (init_event_Xt_late):
8331 * event-msw.c (mswindows_dde_callback):
8332 * event-msw.c (mswindows_handle_sticky_modifiers):
8333 * event-msw.c (mswindows_wnd_proc):
8337 * events.c (character_to_event):
8341 * fileio.c (Ffile_name_directory):
8342 * fileio.c (Ffile_name_nondirectory):
8343 * fileio.c (directory_file_name):
8344 * fileio.c (Fexpand_file_name):
8345 * fileio.c (Fsubstitute_in_file_name):
8346 * fileio.c (Ffile_name_absolute_p):
8347 * fileio.c (check_executable):
8348 * fileio.c (Ffile_readable_p):
8349 * fileio.c (Ffile_accessible_directory_p):
8350 * fileio.c (Ffile_modes):
8351 * fileio.c (Funix_sync):
8352 * fileio.c (vars_of_fileio):
8355 [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
8357 Expand getdefdir defn.
8358 Fix bogus rename() comment.
8360 [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc. Attempt
8361 to use standard XEmacs include files, e.g. sysfile.h, rather
8362 than system-specific includes.
8368 * frame.c (vars_of_frame):
8372 * getloadavg.c (getloadavg):
8374 #ifdef XEMACS not defined on Cygwin. Remove this; no need for it.
8375 (We don't use it elsewhere in the code; just add a comment.)
8382 * glyphs-msw.c (mswindows_resource_instantiate):
8385 * glyphs-x.c (x_native_layout_instantiate):
8388 * gui-msw.c (Fmswindows_shell_execute):
8397 * lread.c (locate_file_in_directory_mapper):
8404 * mem-limits.h (get_lim_data):
8416 * nt.c (rva_to_section):
8417 * nt.c (mswindows_executable_type):
8419 Fix closedir() defn.
8422 [[[[8]]]]: *_OK defs moved to sysfile.h.
8431 * print.c (std_handle_out_external):
8435 * process-nt.c (nt_create_process):
8437 try to fix process quoting somewhat.
8439 * process-unix.c (unix_create_process):
8443 * process.c (vars_of_process):
8450 * realpath.c (xrealpath):
8453 * redisplay-tty.c (init_tty_for_redisplay):
8463 * sheap.c (more_static_core):
8464 * sheap.c (report_sheap_usage):
8468 * signal.c (alarm_signal):
8475 * strftime.c (zone_name):
8478 * symsinit.h (init_sunpro):
8482 commctrl.h not in Cygwin b20.1.
8486 * sysdep.c (sys_subshell):
8487 * sysdep.c (init_baud_rate):
8488 * sysdep.c (emacs_get_tty):
8489 * sysdep.c (emacs_set_tty):
8490 * sysdep.c (tty_init_sys_modes_on_device):
8491 * sysdep.c (init_system_name):
8492 * sysdep.c (sys_open):
8493 * sysdep.c (interruptible_open):
8494 * sysdep.c (sys_fopen):
8495 * sysdep.c (sys_mkdir):
8496 * sysdep.c (sys_rename):
8497 * sysdep.c (get_process_times_1):
8504 * sysdir.h (DIRENTRY_NONEMPTY):
8507 * sysdll.c (dll_init):
8513 added text/binary defs.
8519 * sysproc.h (EDESTADDRREQ):
8520 * sysproc.h (poll_fds_for_input):
8537 Always define WIN32_LEAN_AND_MEAN.
8539 * unexcw.c (unexec):
8543 * unexec.c (copy_text_and_data):
8544 * unexec.c (adjust_lnnoptrs):
8548 * unexnt.c (_start):
8551 2000-06-07 Ben Wing <ben@xemacs.org>
8553 * mule-mcpath.c, mule-mcpath.h: Removed. Old, crufty code that
8554 was used only as a model. We've long since extracted any useful
8555 logic or code out of this. (I just did an exhaustive search.)
8557 * s\msdos.h: Removed.
8559 * s\windows95.h: Removed.
8561 2000-06-10 Ben Wing <ben@xemacs.org>
8565 Don't use extern with fun defs.
8569 Remove nt\inc include.
8570 Remove getdisk, getdefdir. (The former is unused, the latter
8571 expanded in fileio.h.)
8574 * s\windowsnt.h (WIN32_NATIVE):
8575 * s\windowsnt.h (HAVE_STRCASECMP):
8577 Add long comment about preprocessor changes.
8578 Remove getdisk, getdefdir. (The former is unused, the latter
8579 expanded in fileio.h.)
8581 2000-06-10 Ben Wing <ben@xemacs.org>
8590 Remove bogus/unused NO_SOCK_SIGIO.
8592 2000-06-08 Hrvoje Niksic <hniksic@iskon.hr>
8594 * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
8597 2000-06-04 Mike Sperber <mike@xemacs.org>
8599 * casetab.c (set_case_table): For `set-standard-case-table',
8600 actually deposit the new case tables where the rest of XEmacs can
8603 2000-06-05 Yoshiki Hayashi <yoshiki@xemacs.org>
8605 * data.c (Faset): Don't cast XCHAR() to unsigned char.
8607 2000-06-05 Ben Wing <ben@xemacs.org>
8609 * callproc.c (child_setup): Don't do close_load_descs() under
8610 MS Windows. Put in a comment explaining why.
8612 2000-05-28 Adrian Aichner <aichner@ecf.teradyne.com>
8614 * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
8615 Toolkit shell" which breaks `kill-compilation' on Windows NT
8616 native, retaining STDERR handling improvements.
8618 2000-06-01 Andreas Jaeger <aj@suse.de>
8620 * s/s390.h: Support for S390, based on a patch by Martin
8621 Schwidefsky <schwidefsky@de.ibm.com>.
8623 2000-05-30 Andy Piper <andy@xemacs.org>
8625 * window.c (allocate_window):
8626 (make_dummy_parent):
8627 (Fset_window_configuration): use new hashtable type.
8629 * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
8630 (struct image_instantiator_methods):
8631 (struct Lisp_Image_Instance): make instance geometry signed.
8633 * glyphs.c (instantiate_image_instantiator):
8634 (image_instance_query_geometry):
8635 (image_instance_layout):
8636 (image_instance_layout):
8637 (query_string_geometry):
8638 (text_query_geometry):
8639 (image_instantiate):
8640 (image_instantiate):
8641 (cache_subwindow_instance_in_frame_maybe):
8642 (subwindow_query_geometry): make instance geometry signed.
8644 * glyphs-widget.c (widget_query_geometry):
8646 (button_query_geometry):
8647 (tree_view_query_geometry):
8648 (tab_control_query_geometry):
8649 (layout_query_geometry):
8651 (native_layout_layout): make instance geometry signed.
8653 2000-05-29 Olivier Galibert <galibert@pobox.com>
8655 * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
8658 * general.c (syms_of_general): Add Qfull_assoc symbol.
8660 * data.c (finish_marking_weak_lists): Mark full-assoc lists
8662 (decode_weak_list_type): Decode full-assoc type.
8663 (encode_weak_list_type): Encode full-assoc type.
8664 (Fmake_weak_list): Update doc string.
8666 2000-05-30 Andy Piper <andy@xemacs.org>
8668 * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
8670 * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
8671 (decode_hash_table_weakness): ditto.
8672 (Fhash_table_weakness): ditto.
8673 (Fhash_table_type): ditto.
8674 (finish_marking_weak_hash_tables): ditto.
8675 (hash_table_weakness_validate): ditto.
8676 (syms_of_elhash): ditto.
8678 2000-05-28 Martin Buchholz <martin@xemacs.org>
8680 * XEmacs 21.2.34 is released.
8682 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8684 * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
8686 (updating_line_start_cache): Gone.
8687 (regenerate_window): Replace resetting of VERTICAL_CLIP by
8688 generic code to force a minimum of 1 line laid out in the
8691 2000-05-22 Jan Vroonhof <vroonhof@math.ethz.ch>
8693 * glyphs.c (instantiate_image_instantiator): Check for initialized
8694 height & width no longer special cases IMAGE_NOTHING.
8695 (nothing_instantiate): Set height and width of instance.
8697 2000-05-24 Yoshiki Hayashi <yoshiki@xemacs.org>
8699 * unexelf.c (unexec): Search for ".data" section.
8700 Initialize new_data2_offset from old_data_index.
8701 Remove redundant check for ElfW.
8703 2000-05-23 Andy Piper <andy@xemacs.org>
8705 * glyphs.c (get_image_instantiator_governing_domain): allow more
8706 specific domains as the governing domain rather than expecting an
8707 exact match. This fixes problems with layouts.
8709 2000-05-22 Andy Piper <andy@xemacs.org>
8711 * redisplay-output.c (compare_runes): check for non-images
8713 * glyphs.c (set_glyph_dirty_p): ditto.
8714 (update_glyph_cachel_data): ditto.
8716 * glyphs-widget.c (layout_post_instantiate): ditto.
8717 (layout_post_instantiate): ditto.
8719 * event-msw.c (mswindows_wnd_proc): warning removal.
8721 2000-05-12 Craig Lanning <CraigL@DyCon.com>
8723 * s\mingw32.h: Added #undef for CLASH_DETECTION.
8725 * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
8727 * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
8729 * nt.c (rva_to_section): mingw32 needs rva_to_section.
8730 (mswindows_executable_type): mingw32 now has enough headers for
8733 2000-05-20 Andy Piper <andy@xemacs.org>
8735 * console-msw.c (mswindows_output_last_error): ; -> ,
8737 2000-05-12 Andy Piper <andy@xemacs.org>
8739 * console-msw.c (FROB): compare ints with ints.
8741 2000-05-11 Andy Piper <andy@xemacs.org>
8743 * glyphs-x.c (x_finalize_image_instance): make minimal build
8746 2000-05-20 Ben Wing <ben@xemacs.org>
8749 * event-Xt.c (vars_of_event_Xt):
8750 move modifier-keys-are-sticky to event-stream.c.
8753 * event-msw.c (mswindows_enqueue_mouse_button_event):
8754 * event-msw.c (key_needs_default_processing_p):
8755 * event-msw.c (XEMSW_LCONTROL):
8756 * event-msw.c (mswindows_handle_sticky_modifiers):
8757 * event-msw.c (FROB):
8758 * event-msw.c (clear_sticky_modifiers):
8759 * event-msw.c (output_modifier_keyboard_state):
8760 * event-msw.c (output_alt_keyboard_state):
8761 * event-msw.c (mswindows_wnd_proc):
8762 * event-msw.c (mswindows_modifier_state):
8763 * event-msw.c (emacs_mswindows_handle_magic_event):
8764 implement sticky modifiers.
8767 * event-stream.c (vars_of_event_stream):
8768 move modifier-keys-are-sticky here.
8774 implement map-range-table.
8777 2000-05-17 Yoshiki Hayashi <yoshiki@xemacs.org>
8779 * redisplay-tty.c (reset_tty_modes):
8780 (tty_redisplay_shutdown): Adjust argument type to
8781 tty_frame_output_end.
8783 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
8785 * eval.c (Fbacktrace): Don't output a line with only right
8788 2000-05-17 Kenji Itoh <keit@tpj.co.jp>
8790 * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
8791 (Fpq_reset_poll): Ditto.
8793 2000-05-16 Katsumi Yamaoka <yamaoka@jpl.org>
8795 * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
8797 2000-05-16 Ben Wing <ben@xemacs.org>
8800 * buffer.c (dfc_convert_to/from_internal_format):
8801 * buffer.c (reinit_vars_of_buffer):
8802 Fix conversion functions to allow reentrancy.
8805 * console-msw.c (mswindows_output_last_error):
8806 New fun, generally useful -- output a human-readable
8807 version of GetLastError() on the console.
8810 * console-msw.h (struct mswindows_frame):
8811 Changes for DeferWindowPos. Declare mswindows_output_last_error().
8813 * console-stream.c (stream_output_begin):
8814 * console-stream.c (stream_output_end):
8815 * console-stream.c (stream_output_vertical_divider):
8816 * console-stream.c (stream_clear_region):
8817 * console-stream.c (stream_flash):
8818 * console-stream.c (console_type_create_stream):
8819 Delete blank stream methods, not needed.
8821 * console.h (struct console_methods):
8822 Split begin/end methods into window and frame.
8825 * event-msw.c (mswindows_handle_paint):
8826 * event-msw.c (output_alt_keyboard_state):
8827 * event-msw.c (mswindows_wnd_proc):
8828 * event-msw.c (vars_of_event_mswindows):
8829 Comment about problems with ignored-expose.
8830 Define mswindows-debug-events; not really implemented.
8832 * frame-msw.c (mswindows_init_frame_1):
8836 * glyphs-msw.c (begin_defer_window_pos):
8837 * glyphs-msw.c (mswindows_unmap_subwindow):
8838 * glyphs-msw.c (mswindows_map_subwindow):
8839 * glyphs-msw.c (mswindows_resize_subwindow):
8840 Use DeferWindowPos to reduce flashing when mapping/unmapping.
8842 * glyphs.c (make_image_instance_1):
8845 * gutter.c (Fredisplay_gutter_area):
8846 Use new begin/end methods.
8848 * lisp.h (Dynarr_new2):
8852 * redisplay-msw.c (mswindows_frame_output_begin):
8853 * redisplay-msw.c (mswindows_frame_output_end):
8854 * redisplay-msw.c (console_type_create_redisplay_mswindows):
8855 New begin/end methods -- handle DeferWindowPos.
8857 * redisplay-output.c (redisplay_move_cursor):
8858 * redisplay-output.c (redraw_cursor_in_window):
8859 * redisplay-output.c (redisplay_update_line):
8860 * redisplay-output.c (redisplay_output_window):
8861 New begin/end methods.
8864 * redisplay-tty.c (tty_frame_output_begin):
8865 * redisplay-tty.c (tty_frame_output_end):
8866 * redisplay-tty.c (console_type_create_redisplay_tty):
8867 New begin/end methods.
8870 * redisplay-x.c (x_window_output_begin):
8871 * redisplay-x.c (x_window_output_end):
8872 * redisplay-x.c (console_type_create_redisplay_x):
8873 New begin/end methods.
8875 * redisplay.c (redisplay_frame):
8876 * redisplay.c (Fredisplay_echo_area):
8877 New begin/end methods.
8878 use MAYBE_DEVMETH for clear_frame; it may not exist.
8880 * window.h (WINDOW_XFRAME):
8881 WINDOW_XFOO macros -- get locale and decode struct pointer.
8884 2000-05-12 Ben Wing <ben@xemacs.org>
8887 * emacs.c (ensure_no_quitting_from_now_on):
8888 * emacs.c (fatal_error_signal):
8889 * emacs.c (mswindows_handle_hardware_exceptions):
8891 * emacs.c (Fkill_emacs):
8892 * emacs.c (shut_down_emacs):
8893 * emacs.c (assert_failed):
8894 various improvements in fatal error handling.
8897 move preparing_for_armageddon to emacs.c.
8900 declare fatal_error_in_progress.
8903 * print.c (std_handle_out_external):
8904 * print.c (std_handle_out_va):
8905 * print.c (stderr_out):
8906 * print.c (stdout_out):
8907 use console under mswin when no standard output.
8908 don't do code conversion during fatal error.
8910 * scrollbar.c (Fscrollbar_page_up):
8911 * scrollbar.c (Fscrollbar_page_down):
8912 fix missing else. reindent.
8914 2000-05-11 Jan Vroonhof <vroonhof@math.ethz.ch>
8918 * glyphs.h (GLYPH_CACHEL_DESCENT):
8919 (GLYPH_CACHEL_DESCENT):
8920 (GLYPH_CACHEL_DESCENT):
8921 * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
8922 used in case these are inline functions.
8923 Use more absurd values to error check.
8925 include window.h for error check functions.
8927 2000-05-11 Ben Wing <ben@xemacs.org>
8929 * cmdloop.c (Freally_early_error_handler):
8930 Display message box under windows; otherwise, message will disappear
8931 before it can be viewed.
8934 * console-msw.c (Fmswindows_message_box):
8935 * console-msw.c (FROB):
8936 * console-msw.c (syms_of_console_mswindows):
8937 Define new fun `mswindows-message-box'.
8938 #### I will merge this into `popup-dialog-box'; just give me
8942 * general.c (syms_of_general):
8943 Some new symbols used in `mswindows-message-box'.
8946 * glyphs.c (Fset_image_instance_property):
8947 put warning in this fun.
8950 * glyphs.h (GLYPH_CACHEL_WIDTH):
8951 * glyphs.h (GLYPH_CACHEL_ASCENT):
8952 * glyphs.h (GLYPH_CACHEL):
8953 * glyphs.h (GLYPH_CACHEL_GLYPH):
8954 define error-checking versions to try to catch a bug i've seen --
8955 redisplay gets in an infinite loop because the glyph width of the
8956 continuation glyph is 65535.
8959 Extern message-box stuff.
8961 * window.c (allocate_window):
8962 * window.c (make_dummy_parent):
8963 * window.c (Fset_window_configuration):
8964 Use EQUAL not EQ for subwindow caches to make them work a bit
8965 better. (Something is still very broken.)
8968 2000-05-11 Yoshiki Hayashi <yoshiki@xemacs.org>
8970 * glyphs.c (image_instantiate): Suppress gcc warnings.
8971 (Fmake_image_instance): Fix doc string.
8972 * specifier.c (Fmake_specifier): Ditto.
8974 2000-05-02 Yoshiki Hayashi <yoshiki@xemacs.org>
8976 * paths.h.in (PATH_LOCK): Removed.
8977 * config.h.in (LOCKDIR_USER_DEFINED): Removed.
8978 * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
8980 2000-05-08 Yoshiki Hayashi <yoshiki@xemacs.org>
8982 * fns.c (Ffeaturep): Update e-mail address in doc-string.
8983 Document (featurep '(and xemacs 21.02)).
8985 2000-05-09 Ben Wing <ben@xemacs.org>
8987 * buffer.c (complex_vars_of_buffer):
8988 update modeline-format doc.
8991 comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
8994 timeline of all released versions of Emacs, for use in creating
8995 authorship comments and in synching up.
8997 * glyphs-widget.c (image_instantiator_buttons):
8998 * glyphs-widget.c (image_instantiator_edit_fields):
8999 * glyphs-widget.c (image_instantiator_combo_box):
9000 * glyphs-widget.c (image_instantiator_scrollbar):
9001 * glyphs-widget.c (image_instantiator_progress_guage):
9002 * glyphs-widget.c (image_instantiator_tree_view):
9003 * glyphs-widget.c (image_instantiator_tab_control):
9004 * glyphs-widget.c (image_instantiator_labels):
9005 * glyphs-widget.c (image_instantiator_layout):
9006 * glyphs-widget.c (image_instantiator_native_layout):
9007 rename decode_domain method to governing_domain.
9010 * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
9011 * glyphs.c (add_entry_to_device_ii_format_list):
9012 make sure we don't put an entry more than once into the list.
9013 * glyphs.c (check_instance_cache_mapper):
9014 *************************************************************
9015 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9017 *************************************************************
9018 * glyphs.c (get_image_instantiator_governing_domain):
9019 clean up, expand on new concept of governing domain.
9020 * glyphs.c (instantiate_image_instantiator):
9021 * glyphs.c (allocate_image_instance):
9022 use governing_domain instead of cache_domain in naming.
9023 * glyphs.c (Fvalid_image_instance_type_p): fix docs.
9024 * glyphs.c (make_image_instance_1):
9025 * glyphs.c (Fmake_image_instance):
9026 allow for any domain (not just device), and process the
9027 governing domain correctly. very big doc fix.
9028 * glyphs.c (Fimage_instance_domain):
9029 new primitive, to retrieve the governing domain of an image instance.
9030 * glyphs.c (image_instantiate):
9031 use new governing_domain stuff. this fixes a crash you could get
9032 by instantiating certain widget glyphs in frame locales. (should
9033 signal an error instead of crashing.)
9034 * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
9035 * glyphs.c (Fglyphp): clean up doc.
9036 * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
9037 * glyphs.c (syms_of_glyphs):
9038 declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
9039 * glyphs.c (image_instantiator_format_create): add some comments about
9041 * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
9042 for current-display-table. (Apparently Hrjove implemented in 1998 a
9043 design I wrote up in 1996, but didn't update the doc string.)
9045 * glyphs.h: clean up a doc string.
9046 * glyphs.h (governing_domain):
9047 * glyphs.h (struct image_instantiator_methods):
9048 changes for governing_domain stuff.
9051 * gutter.c (Fgutter_specifier_p):
9052 * gutter.c (Fgutter_size_specifier_p):
9053 * gutter.c (Fgutter_visible_specifier_p):
9055 * objects.c (Fcolor_specifier_p):
9056 * objects.c (Ffont_specifier_p):
9057 * objects.c (Fface_boolean_specifier_p):
9058 doc strings moved to make-*-specifier.
9060 * redisplay.c (add_disp_table_entry_runes_1):
9061 * redisplay.c (generate_fstring_runes):
9062 * redisplay.c (screen):
9063 add random comments and doc strings.
9066 * specifier.c (Fmake_specifier):
9067 major overhaul of this doc string.
9069 * specifier.c (Fvalid_specifier_domain_p):
9070 comment about the bogosity of image instances being domains.
9071 * specifier.c (decode_domain):
9072 now non-static, used in glyphs.c.
9073 * specifier.c (specifier_instance):
9074 comment about the bogosity of image instances being domains.
9075 * specifier.c (Fgeneric_specifier_p):
9076 move doc string to make-generic-specifier.
9077 * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
9081 * specifier.h (DOMAIN_FRAME):
9082 * specifier.h (DOMAIN_LIVE_P):
9083 * specifier.h (DOMAIN_XDEVICE):
9085 add comments about problems with these macros.
9086 prototype for decode_domain.
9089 * toolbar.c (Ftoolbar_specifier_p):
9090 move doc string to `make-toolbar-specifier'.
9092 * window.c (window_unmap_subwindows_cache_mapper):
9093 *************************************************************
9094 allow for nil. THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
9096 *************************************************************
9098 2000-05-09 Andy Piper <andy@xemacs.org>
9100 * glyphs.h: declare reset_frame_subwindow_instance_cache.
9102 * window.c (Fset_window_configuration): reset the frame subwindow
9103 cache and re-initialize the window subwindow caches.
9105 * glyphs.c (reset_frame_subwindow_instance_cache): new function.
9107 2000-05-09 Ben Wing <ben@xemacs.org>
9109 * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
9112 2000-04-26 Mike Woolley <mike@bulsara.com>
9114 * ntheap.c: Changed recreate_heap to limit the amount reserved
9115 for the heap to that which is actually available. Also now
9116 displays a message box (with some dignostics) in the event that
9117 it still can't start.
9119 2000-05-07 Jan Vroonhof <vroonhof@math.ethz.ch>
9121 * callproc.c (Fold_call_process_internal): GCPRO path
9123 2000-05-08 Jan Vroonhof <jan@xemacs.org>
9125 Patch by Bill Perry.
9127 * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
9128 back data instead of #ifdef.
9129 (Fscrollbar_page_down): ditto.
9131 2000-05-07 Ben Wing <ben@xemacs.org>
9134 Kludge for defining Qmswindows_tstr.
9137 * nt.c (open_input_file):
9138 * nt.c (open_output_file):
9139 * nt.c (rva_to_section):
9140 * nt.c (mswindows_executable_type):
9141 Move all memory-mapped-file routines here (some were in unexnt.c,
9142 which is bad because they are used by process-nt.c, and unexnt
9143 won't be around when portable dumping). Synched the above routines
9147 Removed ifdef'd out bogus code.
9148 Fixed some prototypes.
9151 * nt.h (OFFSET_TO_RVA):
9152 * nt.h (RVA_TO_OFFSET):
9153 * nt.h (RVA_TO_PTR):
9154 Moved the memory-mapped-file structures, macros and prototypes
9155 here, to parallel nt.c. ntheap.h should really be removed
9156 entirely, and it's a non-portable-dumper specific file.
9158 * ntheap.h (round_to_next):
9159 Moved the memory-mapped-file structures, macros and prototypes
9162 * ntproc.c (compare_env):
9163 Moved rva_to_section and mswindows_executable_type to nt.c.
9164 Moved compare_env to process-nt.c.
9165 ntproc.c will die, one day.
9167 * ntproc.c (sys_spawnve):
9168 Account for win32_ -> mswindows_.
9171 * process-nt.c (struct nt_process_data):
9172 * process-nt.c (ensure_console_window_exists):
9173 * process-nt.c (compare_env):
9174 * process-nt.c (nt_create_process):
9175 * process-nt.c (nt_kill_process_by_pid):
9176 * process-nt.c (syms_of_process_nt):
9177 * process-nt.c (vars_of_process_nt):
9178 Introduce variable `mswindows-quote-process-args', from FSF 20.6.
9179 Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
9180 changes). Eliminate our old `nt-quote-process-args' mechanism.
9181 Synch up nt_create_process with FSF 20.6 sys_spawnve.
9182 Move compare_env here from ntproc.c.
9184 * process.c (Fprocess_send_region):
9185 Takes an optional fourth argument, BUFFER, which should fix some
9186 problems with call-process.
9189 Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
9192 Move ICC_BAR_CLASSES to syscommctrl.h.
9193 Add preliminary macros for MSWindows/Mule. More to come.
9196 * unexnt.c (unexec):
9197 open_output_file moved to nt.c.
9200 2000-05-05 Andy Piper <andy@xemacs.org>
9202 * window.c (window_unmap_subwindows_cache_mapper): remove the dead
9203 instance from the frame cache also since GC may catch up too late
9204 to make frame deletion sane.
9206 2000-05-04 Andy Piper <andy@xemacs.org>
9208 * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
9209 (x_finalize_image_instance): ungcpro on deletion.
9211 * glyphs.c (image_instantiator_format_create): give pointers a
9212 query geometry method so that the geometry is at least set.
9214 * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
9215 initialize layouts if using widgets.
9217 2000-05-03 Andy Piper <andy@xemacs.org>
9219 * nt.c: remove bogus reference to sysmmsystem.h
9221 * gui-x.c (popup_selection_callback): fix no selection abort.
9223 2000-05-02 Andy Piper <andy@xemacs.org>
9225 * glyphs-msw.c (mswindows_update_widget): cope with nil text.
9226 (mswindows_widget_instantiate): ditto.
9228 * glyphs-widget.c (initialize_widget_image_instance): initialize
9230 (widget_instantiate): cope with children and items in the same
9233 * glyphs.c (mark_image_instance): cope with children as a first
9235 (image_instance_equal): ditto.
9236 (image_instance_hash): ditto.
9237 (image_instance_changed): ditto.
9239 2000-04-30 Andy Piper <andy@xemacs.org>
9241 * glyphs.c (subwindow_query_geometry): new function. Return some
9243 (subwindow_instantiate): don't assign dimensions if none have been
9245 (image_instantiator_format_create): add subwindow_query_geometry.
9246 (print_image_instance): cope with layouts as widgets.
9248 2000-04-29 Andy Piper <andy@xemacs.org>
9250 * frame.c (delete_frame_internal): call
9251 free_frame_subwindow_instance_cache so that all subwindows are
9252 finalized before their parent.
9253 (mark_frame): remove subwindow_cachels.
9254 (Fmake_frame): remove subwindow_cachel manipulation.
9255 (allocate_frame_core): subwindow_instance_cache is a weak list.
9256 (delete_frame_internal): set subwindow_instance_cache to nil.
9258 * glyphs-msw.c (mswindows_finalize_image_instance): make double
9260 (mswindows_finalize_image_instance): use the device
9261 not the domain as the domain may have died already.
9263 * glyphs-x.c (x_finalize_image_instance): ditto.
9264 (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
9267 * redisplay-output.c (redisplay_unmap_subwindows): update for
9268 subwindow instance cache as a weak list.
9269 (redisplay_unmap_subwindows_maybe): ditto.
9270 (redisplay_unmap_subwindows_except_us): ditto.
9272 * glyphs.c (unmap_subwindow): error checking will check the domain
9273 so don't deal with it here. Don't use cachels anymore.
9274 (map_subwindow): ditto.
9275 (update_subwindow_cachel_data): remove old accessor names.
9276 (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
9277 (Fresize_subwindow): don't update cachel.
9278 (mark_subwindow_cachels):
9279 (update_subwindow_cachel_data):
9280 (add_subwindow_cachel):
9281 (get_subwindow_cachel_index):
9282 (update_subwindow_cachel):
9283 (reset_subwindow_cachels):
9284 (mark_subwindow_cachels_as_not_updated): deleted.
9285 (cache_subwindow_instance_in_frame_maybe): new function. Add a
9286 subwindow instance to the frame cache.
9287 (find_matching_subwindow): update for subwindow instance cache as
9289 (update_widget_instances): ditto.
9290 (image_instance_type_to_mask):inlined.
9291 (free_frame_subwindow_instance_cache): new function. finalize all
9292 subwindows that are instantiated.
9294 * glyphs.h (struct Lisp_Image_Instance): add display_data instead
9295 of cachel information.
9296 (IMAGE_INSTANCE_DISPLAY_X):
9297 (IMAGE_INSTANCE_DISPLAY_Y):
9298 (IMAGE_INSTANCE_DISPLAY_WIDTH):
9299 (IMAGE_INSTANCE_DISPLAY_HEIGHT):
9300 (XIMAGE_INSTANCE_DISPLAY_X):
9301 (XIMAGE_INSTANCE_DISPLAY_Y):
9302 (XIMAGE_INSTANCE_DISPLAY_WIDTH):
9303 (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
9304 remove subwindow_cachel structure and function references.
9305 (image_instance_type_to_mask): inline from glyphs.c
9307 * redisplay.c (redisplay_frame): remove subwindow_cachel
9310 * frame.h (struct frame): remove subwindow_cachels.
9311 (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
9313 * frameslots.h: add subwindow_instance_cache.
9315 * window.c (replace_window): check subwindow cache of replacement.
9316 (window_unmap_subwindows_cache_mapper):
9317 (window_unmap_subwindows): new functions. Unmap all subwindows
9318 cached on this window.
9319 (mark_window_as_deleted): unmap all subwindows.
9321 2000-04-27 Andy Piper <andy@xemacs.org>
9323 * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
9325 * glyphs-widget.c (widget_layout): return something.
9326 (layout_layout): return something. Fail if not initialized.
9327 (layout_query_geometry): ditto.
9328 (image_instantiator_native_layout): new function. Initialized the
9330 (widget_instantiate): don't do layout stuff here.
9332 * glyphs.c (instantiate_image_instantiator): reorded calling or
9333 instantiate and post_instantiate with layout in between.
9334 (image_instance_layout): be more selective about deciding whether
9335 the layout has been done or not.
9337 * glyphs.h (struct image_instantiator_methods): return a value
9340 2000-04-26 Andy Piper <andy@xemacs.org>
9342 * glyphs.c (allocate_image_instance): make initial width and
9343 height unspecified. Set initialized to 0.
9345 * syscommctrl.h new file. Encapsulates commctrl.h.
9347 * syswindows.h new file. Encapsulates windows.h.
9349 * ntplay.c: use new syswindows.h and syscommctrl.h header.
9351 * console-msw.h: ditto.
9353 * redisplay-tty.c (tty_output_display_block): remove layout references.
9355 * glyphs-msw.c (mswindows_widget_instantiate): use the domain
9356 window handle rather than just the frame.
9358 * glyphs.c (mark_image_instance): remove layout references.
9359 (print_image_instance): ditto.
9360 (image_instance_equal): ditto.
9361 (image_instance_hash): ditto.
9362 (decode_image_instance_type): ditto.
9363 (encode_image_instance_type): ditto.
9364 (image_instantiate): ditto.
9365 (allocate_glyph): ditto.
9366 (Fimage_instance_height): ditto.
9367 (Fimage_instance_width): ditto.
9368 (update_subwindow): ditto.
9370 * redisplay-x.c (x_output_display_block): recode for layouts as
9373 * redisplay-output.c (redisplay_output_layout): recode for layouts
9375 (compare_runes): remove layout references.
9377 * redisplay-msw.c (mswindows_output_display_block): recode for
9380 * glyphs-widget.c (image_instantiator_layout): remove
9381 layout_possible_dest_types.
9382 (layout_possible_dest_types): deleted.
9384 * glyphs.h (image_instance_type): remove layout references.
9385 (struct Lisp_Image_Instance): ditto. Add initialized flag.
9386 (IMAGE_INSTANCE_INITIALIZED): new accessor.
9387 (XIMAGE_INSTANCE_INITIALIZED): ditto.
9389 2000-04-25 Andy Piper <andy@xemacs.org>
9391 * glyphs-widget.c (image_instantiator_buttons):
9392 (image_instantiator_edit_fields):
9393 (image_instantiator_combo_box):
9394 (image_instantiator_scrollbar):
9395 (image_instantiator_progress_guage):
9396 (image_instantiator_tree_view):
9397 (image_instantiator_tab_control):
9398 (image_instantiator_labels):
9399 (image_instantiator_layout): call default post_instantiate method.
9400 (widget_post_instantiate): new function. Simply lays out the
9403 * glyphs.h (struct image_instantiator_methods): add
9404 post_instantiate method.
9406 * glyphs.c (instantiate_image_instantiator): add post_instantiate
9409 2000-04-23 Andy Piper <andy@xemacs.org>
9411 * glyphs.h (struct image_instantiator_methods): add
9412 decode_domain_method.
9413 (struct Lisp_Image_Instance): remove subwindow frame - it can be
9414 derived from the domain.
9415 (IMAGE_INSTANCE_FRAME): new accessor.
9416 (XIMAGE_INSTANCE_FRAME): ditto.
9418 * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
9419 instead of _SUBWINDOW_FRAME.
9420 (finalize_image_instance): ditto.
9421 (Fimage_instance_foreground): ditto.
9422 (Fimage_instance_background): ditto.
9423 (image_instantiate): ditto.
9424 (update_subwindow_cachel): ditto.
9425 (update_subwindow): ditto.
9426 (unmap_subwindow): ditto.
9427 (map_subwindow): ditto
9428 (subwindow_instantiate): ditto.
9429 * glyphs-msw.c (mswindows_update_widget): ditto.
9430 (mswindows_progress_gauge_instantiate): ditto.
9431 (mswindows_tab_control_update): ditto.
9432 * glyphs-x.c (x_update_widget): ditto.
9433 (x_widget_instantiate): ditto.
9434 (x_tab_control_instantiate): ditto.
9435 (x_tab_control_update): ditto.
9436 * event-msw.c (mswindows_wnd_proc): ditto
9438 * glyphs-widget.c (image_instantiator_layout): use
9439 subwindow_decode_domain.
9440 (image_instantiator_buttons): ditto.
9441 (image_instantiator_edit_fields): ditto.
9442 (image_instantiator_combo_box): ditto.
9443 (image_instantiator_scrollbar): ditto.
9444 (image_instantiator_progress_guage): ditto.
9445 (image_instantiator_tree_view): ditto.
9446 (image_instantiator_tab_control): ditto.
9447 (image_instantiator_labels): ditto.
9448 (image_instantiator_layout): ditto.
9450 * glyphs.c: add instance error checking to many functions.
9451 (instantiate_image_instantiator): decode device from cache_domain.
9452 (image_instantiate): partially rewrite by using
9453 decode_image_instantiator_domain to determine what domain the
9454 instance needs to be cached in.
9455 (decode_image_instantiator_domain): new function. Determine what
9456 domain the image needs to be cached in.
9457 (check_window_subwindow_cache): new error checking function.
9458 (check_instance_cache_mapper): ditto.
9459 (check_image_instance_structure): ditto.
9460 (subwindow_decode_domain): new function. Encodes a window as a
9461 subwindow's cache domain.
9462 (image_instantiator_format_create): use it for text and
9465 2000-04-21 Andy Piper <andy@xemacs.org>
9467 * glyphs.c (image_instance_device): new function.
9468 (image_instance_frame): new function.
9469 (image_instance_window): new function.
9470 (image_instance_live_p): new function.
9472 * window.c (mark_window_as_deleted): reset the subwindow_instance_
9475 * glyphs.h (struct Lisp_Image_Instance): device->domain.
9476 (IMAGE_INSTANCE_DOMAIN): new accessor.
9477 (XIMAGE_INSTANCE_DOMAIN): ditto.
9479 * glyphs-x.c (x_finalize_image_instance): device->domain.
9481 * glyphs-msw.c (init_image_instance_geometry): device->domain.
9482 (mswindows_finalize_image_instance): ditto.
9484 * glyphs-eimage.c (jpeg_instantiate): device->domain.
9485 (gif_instantiate): ditto.
9486 (png_instantiate): ditto.
9487 (tiff_instantiate): ditto.
9489 * glyphs.c (instantiate_image_instantiator): use domain rather
9491 (mark_image_instance): device -> domain.
9492 (print_image_instance): ditto.
9493 (finalize_image_instance): ditto.
9494 (image_instance_equal): ditto.
9495 (allocate_image_instance): ditto.
9496 (Fcolorize_image_instance): ditto.
9497 (query_string_geometry): ditto.
9498 (image_instantiate): ditto
9499 (query_string_font): ditto.
9500 (image_instantiate): ditto.
9501 (update_subwindow): ditto.
9502 (unmap_subwindow): ditto.
9503 (map_subwindow): ditto.
9504 (subwindow_instantiate): ditto.
9506 * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
9507 (DOMAIN_FRAME): ditto.
9508 (DOMAIN_WINDOW): ditto.
9509 (DOMAIN_LIVE_P): ditto.
9510 (XDOMAIN_DEVICE): ditto.
9511 (XDOMAIN_FRAME): ditto.
9512 (XDOMAIN_WINDOW): ditto.
9514 * specifier.c (Fvalid_specifier_domain_p): add image instances as
9515 a valid specifier domain.
9517 2000-04-19 Andy Piper <andy@xemacs.org>
9519 * glyphs-widget.c (syms_of_glyphs_widget): remove
9520 widget-callback-current-channel.
9521 (vars_of_glyphs_widget): ditto.
9524 * gui.c (get_gui_callback): revert to previous behaviour.
9526 2000-04-18 Andy Piper <andy@xemacs.org>
9528 * glyphs.h (struct Lisp_Image_Instance): add margin_width.
9529 (IMAGE_INSTANCE_MARGIN_WIDTH): new.
9530 (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
9532 * glyphs.c (image_instance_equal): add margin_width.
9533 (image_instance_hash): ditto.
9535 * glyphs-widget.c (widget_instantiate): deal with margin-width.
9536 (layout_query_geometry): ditto.
9537 (layout_layout): ditto.
9538 (syms_of_glyphs_widget): add margin-width.
9539 (image_instantiator_layout): allow margin-width.
9541 * glyphs.c (update_widget_instances): make a normal function.
9542 (syms_of_glyphs): remove Qupdate_widget_instances.
9545 * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
9546 so that we don't corrupt ideas about the last event or
9547 command. Remove widget-callback-current-channel fiddling.
9548 * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
9550 2000-05-01 Martin Buchholz <martin@xemacs.org>
9552 * XEmacs 21.2.33 is released.
9554 2000-05-01 Yoshiki Hayashi <yoshiki@xemacs.org>
9556 * make-src-depend: Allow dots in header file name.
9558 2000-05-01 Yoshiki Hayashi <yoshiki@xmacs.org>
9560 * mule-charset.h (struct charset_lookup): Add
9561 next_allocated_1_byte_leading_byte and
9562 next_allocated_2_byte_leading_byte.
9563 * mule-charset.c: Move above two variables so that those values
9566 2000-04-26 Yoshiki Hayashi <yoshiki@xemacs.org>
9568 * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
9569 when string length is zero.
9570 (find_charsets_in_emchar_string): Ditto.
9572 2000-04-29 Bjrn Torkelsson <torkel@hpc2n.umu.se>
9574 * lisp.h: extern Qdialog and Qmenubar.
9576 * gui-x.c: added events.h.
9577 also fixed typo which made the file uncompilable.
9579 * general.c: Added Qmenubar and Qdialog
9581 2000-04-28 Ben Wing <ben@xemacs.org>
9583 * frame-msw.c (mswindows_init_frame_1):
9584 * frame-msw.c (mswindows_mark_frame):
9585 * event-msw.c (mswindows_enqueue_dispatch_event):
9587 * console-msw.h (struct mswindows_frame):
9588 * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
9589 there are now three hash tables for callbacks.
9590 mswindows_enqueue_dispatch_event is no longer static.
9592 * dialog-x.c (maybe_run_dbox_text_callback):
9593 * dialog-x.c (dbox_descriptor_to_widget_value):
9594 switch to new cons3 form for callbacks.
9596 * glyphs-msw.c (mswindows_register_gui_item):
9597 * glyphs-msw.c (mswindows_widget_instantiate):
9598 * glyphs-msw.c (add_tree_item):
9599 * glyphs-msw.c (add_tab_item):
9600 new image instance parameter, so it can be passed to callback-ex.
9601 respect :callback-ex as well as :callback.
9603 * glyphs-widget.c (VALID_GUI_KEYWORDS):
9606 * glyphs.c (print_image_instance):
9607 prettify, e.g. now prints widget type.
9610 certain funs have new image instance parameter.
9613 * gui.c (get_gui_callback):
9614 * gui.c (gui_item_add_keyval_pair):
9615 * gui.c (gui_item_init):
9616 * gui.c (gui_add_item_keywords_to_plist):
9617 * gui.c (mark_gui_item):
9618 * gui.c (gui_item_hash):
9619 * gui.c (gui_item_equal):
9620 * gui.c (copy_gui_item):
9621 * gui.c (syms_of_gui):
9622 recognize callback-ex in a number of places.
9623 also, fix the annoying "can't get out of yes-no dialog" bug.
9626 * gui.h (struct Lisp_Gui_Item):
9627 recognize callback-ex in a number of places.
9629 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
9630 new parameter in button_item_to_widget_value.
9632 * glyphs-x.c (x_update_widget):
9633 * glyphs-x.c (x_button_instantiate):
9634 * glyphs-x.c (x_button_update):
9635 * glyphs-x.c (x_progress_gauge_instantiate):
9636 * glyphs-x.c (x_edit_field_instantiate):
9637 * glyphs-x.c (x_combo_box_instantiate):
9638 * glyphs-x.c (x_tab_control_instantiate):
9639 * glyphs-x.c (x_label_instantiate):
9640 new image instance parameter in various places.
9643 * event-Xt.c (enqueue_Xt_dispatch_event):
9644 this fun gets exported.
9647 * gui-msw.c (mswindows_handle_gui_wm_command):
9648 handle both :callback and :callback-ex, and generate our own
9649 event because it's one of the callback-ex arguments.
9652 * gui-x.c (popup_selection_callback):
9653 handle both :callback and :callback-ex, and generate our own
9654 event because it's one of the callback-ex arguments.
9655 * gui-x.c (button_item_to_widget_value):
9656 * gui-x.c (gui_items_to_widget_values_1):
9657 * gui-x.c (gui_item_children_to_widget_values):
9658 * gui-x.c (gui_items_to_widget_values):
9659 new image instance parameter in various places.
9661 * fns.c (Freplace_list):
9662 fix small typo in doc string.
9665 declare enqueue_Xt_dispatch_event.
9667 2000-04-28 Ben Wing <ben@xemacs.org>
9670 * buffer.c (Frecord_buffer):
9671 * buffer.c (syms_of_buffer):
9672 delete record-buffer-hook.
9675 * fns.c (Freplace_list):
9676 * fns.c (syms_of_fns):
9677 new primitive replace-list.
9680 slot for old buffer-alist.
9686 * redisplay.c (redisplay_frame):
9687 * redisplay.c (syms_of_redisplay):
9688 * redisplay.c (vars_of_redisplay):
9689 new hook buffer-list-changed-hook.
9692 2000-04-27 Ben Wing <ben@xemacs.org>
9694 * extents.h: extern in_modeline_generation.
9696 * redisplay.c (generate_formatted_string_db): set
9697 in_modeline_generation.
9699 * extents.c (extent_changed_for_redisplay): don't mark redisplay
9700 flags if in modeline generation. otherwise frame-modified-tick
9701 is ticked far too often.
9702 Declare in_modeline_generation.
9704 2000-04-26 Ben Wing <ben@xemacs.org>
9706 * emacs.c (vars_of_emacs): document quick-build "error-checking"
9708 (vars_of_emacs): add quick-build as an error-checking option.
9709 A bit kludgy, but there doesn't seem much point in creating
9710 a real var for this.
9712 * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
9714 2000-04-14 IKEYAMA Tomonori <tomonori@suiyokai.org>
9716 * redisplay.h (struct display_line): Add a new variable,
9719 * redisplay.c (create_text_block): Set dl->line_continuation if
9721 (create_string_text_block): Ditto.
9722 (regenerate_window_incrementally): Use line_continuation instead
9723 of searching continuation glyph.
9724 (add_margin_runes): Call add_glyph_rune.
9725 (add_glyph_rune): Handle margin glyph.
9727 2000-04-20 Martin Buchholz <martin@xemacs.org>
9729 * filelock.c (fill_in_lock_file_name):
9731 Check for IS_ANY_SEP instead of '/'.
9733 Avoid generating gratuitous garbage. Call user_login_name() directly.
9734 Never check errno without first seeing that system call failed.
9735 (unlock_file): Add GCPRO.
9736 (Flock_buffer): Fix docstring.
9737 (Ffile_locked_p): Fix docstring. Add GCPRO.
9739 2000-04-19 Martin Buchholz <martin@xemacs.org>
9741 * sysdep.c (get_pty_max_bytes):
9742 Fix hangs on DEC OSF 4.0 when (process-send-string) sends
9743 strings longer than 252 bytes.
9745 * md5.c: Unconditionally include ANSI header <limits.h>
9747 * glyphs-x.c (convert_EImage_to_XImage):
9748 * lisp-union.h (union Lisp_Object):
9749 Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
9751 2000-04-13 Yoshiki Hayashi <yoshiki@xemacs.org>
9753 * filelock.c (current_lock_owner): Remove unused variable o, p.
9755 2000-04-17 Norbert Koch <n.koch@eai-delta.de>
9757 * callint.c: Remove multiply defined symbol Qlet
9758 (syms_of_callint): ditto.
9760 2000-04-14 Andy Piper <andy@xemacs.org>
9762 * general.c (syms_of_general): add last-command, this-command, let
9765 * lisp.h: declare various symbols.
9767 * glyphs.h: declare Qwidget_callback_current_channel;
9769 * glyphs-widget.c (syms_of_glyphs_widget): add
9770 Qgui_callback_current_channel.
9771 (vars_of_glyphs_widget): add Vgui_callback_current_channel.
9773 * gui-msw.c (mswindows_handle_gui_wm_command): bind
9774 widget-callback-current-channel when invoking the interactive
9775 arg. Also bind last-command and next-command when invoking the
9777 * gui-x.c (popup_selection_callback): ditto.
9779 * gui.c (get_gui_callback): massage args so that we are always
9780 calling eval. This allows us to add our own variable bindings
9783 * glyphs-x.c (x_button_instantiate): use
9784 gui_items_to_widget_values since this is GC safe.
9785 (x_progress_gauge_instantiate): ditto.
9786 (x_edit_field_instantiate): ditto.
9787 (x_label_instantiate): ditto.
9789 * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
9790 (emacs_Xt_event_widget_focus_out): new function
9791 (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
9793 (emacs_Xt_event_add_widget_actions): new function. add focus
9794 functions as actions.
9795 (init_event_Xt_late): use it.
9797 2000-04-14 Hrvoje Niksic <hniksic@iskon.hr>
9799 * event-stream.c (Fdispatch_event): Doc fix.
9801 2000-03-29 SL Baur <steve@musashimaru.m17n.org>
9803 * postgresql.c: Remove all references to PQsetenv*.
9805 * postgresql.h: Remove references to PGsetenvHandler object.
9806 * lrecord.h (lrecord_type): Ditto.
9808 2000-04-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
9810 * glyphs-msw.h (struct mswindows_image_instance_data): Added
9811 real_heigh and real_width members, and accessor macros for these.
9813 * glyphs-msw.c (init_image_instance_geometry): New function.
9814 (init_image_instance_from_dibitmap): Use it.
9815 (mswindows_resource_instantiate): Use it.
9816 (init_image_instance_from_xbm_inline): Use it.
9817 (mswindows_initialize_image_instance_mask): Use real bitmap
9819 (mswindows_create_resized_bitmap): Ditto.
9820 (mswindows_create_resized_mask): Ditto.
9822 * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
9823 and bitmap to their surface size.
9825 2000-04-11 Jan Vroonhof <jan@xemacs.org>
9827 * process-unix.c (unix_send_process): Guard against process MIA
9828 after Faccept_process_output.
9830 2000-04-11 Ben Wing <ben@xemacs.org>
9832 * eval.c (unbind_to_hairy): fix brokenness introduced by
9833 nanosecond speed improvements.
9835 2000-04-07 Raymond Toy <toy@rtp.ericsson.se>
9837 * sunplay.c (init_device): To play sounds correctly, the device
9838 apparently needs to be initialized at least once by XEmacs. Make
9841 2000-04-10 IKEYAMA Tomonori <tomonori@suiyokai.org>
9843 * redisplay.c (add_margin_runes): Add text image glyph
9846 2000-04-06 Yoshiki Hayashi <yoshiki@xemacs.org>
9848 * lisp.h (DOESNT_RETURN): Don't declare as volatile when
9849 gcc is newer than 2.5.
9851 2000-04-06 Colin Rafferty <colin@xemacs.org>
9853 * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
9855 * fns.c (size_bit_vector):
9856 * alloc.c (size_vector):
9857 (make_vector_internal):
9858 (make_bit_vector_internal):
9859 (sweep_bit_vectors_1):
9860 Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
9862 2000-04-06 Andy Piper <andy@xemacs.org>
9864 * gmalloc.c (malloc): undo previous change.
9869 2000-04-06 IKEYAMA Tomonori <tomonori@suiyokai.org>
9871 * line-number.c (buffer_line_number): Revert to former version.
9873 2000-04-06 Andy Piper <andy@xemacs.org>
9875 * gmalloc.c (malloc): add error checking.
9880 * dialog-x.c (dbox_descriptor_to_widget_value): add extra
9881 button_item_to_widget_value arg.
9883 * glyphs-x.c (x_button_instantiate): add extra
9884 button_item_to_widget_value arg.
9885 (x_progress_gauge_instantiate): ditto.
9886 (x_edit_field_instantiate): ditto.
9887 (x_label_instantiate): ditto.
9889 * gui-x.c (gui_items_to_widget_values_1): add extra
9890 button_item_to_widget_value arg.
9891 (button_item_to_widget_value): add extra menu_item_p arg.
9893 * gui-x.h: change signature of button_item_to_widget_value.
9895 * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
9896 button_item_to_widget_value arg.
9898 2000-04-03 Yoshiki Hayashi <yoshiki@xemacs.org>
9900 * buffer.h (struct buffer): auto_save_modified should be long.
9902 2000-04-05 Andy Piper <andy@xemacs.org>
9904 * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
9906 (button_query_geometry): give a little more room so that athena
9909 2000-04-05 Andy Piper <andy@xemacs.org>
9911 * faces.c (complex_vars_of_faces): The widget face should inherit
9912 the font of the gui-element face.
9914 2000-04-04 Andy Piper <andy@xemacs.org>
9916 * glyphs-x.c (x_button_update): new function. unconditionally
9917 update a button's state when the instance is dirty.
9918 (image_instantiator_format_create_glyphs_x): add x_button_update.
9919 (x_widget_instantiate): remove old resize cruft.
9921 2000-04-02 Andy Piper <andy@xemacs.org>
9923 * frame.c (change_frame_size_1): The introduction of gutters means
9924 that we need to allow 0 as a potential frame dimension.
9926 2000-04-02 IKEYAMA Tomonori <tomonori@suiyokai.org>
9928 * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
9929 image glyph if allow_cursor.
9930 (add_hscroll_rune): Don't allow cursor to border glyph.
9931 (create_text_block): Ditto.
9933 * redisplay-output.c (redisplay_move_cursor): Do nothing even if
9935 (redisplay_output_layout): Call ensure_face_cachel_complete for
9939 2000-03-16 IKEYAMA Tomonori <tomonori@suiyokai.org>
9941 * redisplay.c (add_glyph_rune): Adding text image as text runes.
9943 * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
9946 * redisplay-tty.c (tty_output_display_block): Delete the routine
9947 for text image glyph
9948 * redisplay-x.c (x_output_display_block): ditto
9949 * redisplay-msw.c (mswindows_output_display_block): ditto
9951 2000-02-02 Mike Alexander <mta@arbortext.com>
9953 Note: Some of these were committed by accident as part of other
9956 * regex.c (regex_compile): Avoid compiler warnings.
9958 * ntproc.c (sys_spawnve): Avoid compiler warnings.
9960 * nt.h: Declare term_ntproc correctly.
9962 * nt.c: Remove incorrect declaration of get_home_directory which
9963 is declared correctly in lisp.h.
9965 * keymap.c (get_keyelt): Avoid compiler warnings.
9966 (raw_lookup_key_mapper): Avoid compiler warnings.
9968 * gutter.c (gutter_was_visible): Add return statement to avoid warning.
9970 * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
9972 * filemode.c (mode_string): Avoid compiler warnings.
9974 * file-coding.c (Fcoding_system_aliasee): Add return statement to
9977 * events-mod.h: Undef some things that winuser.h defines differently.
9979 * data.c (Faset): Avoid compiler warnings.
9981 * alloc.c (Fmake_byte_code): Avoid compiler warnings.
9983 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
9985 * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
9986 Fall through to simple beep on error.
9987 Replace "extern" by real header file.
9989 * linuxplay.c: Use nativesound.h
9990 (play_sound_data): Return error code. Be less verbose on error.
9992 * sunplay.c: Use nativesound.h
9993 (play_sound_data): Return error code. Be less verbose on error.
9995 * ntplay.c: Use nativesound.h
9996 (play_sound_data): Return fake error code
9998 * sgiplay.c: Use nativesound.h
9999 (play_sound_data): Return error code
10001 * hpplay.c: Use nativesound.h, partially implement
10002 new error code. Break compilation until finished.
10003 (play_sound_data): error code.
10005 * nativesound.h (play_sound_file):
10006 (play_sound_data): Prototype in new header.
10008 2000-03-31 Andy Piper <andy@xemacs.org>
10010 * glyphs-widget.c: (button_query_geometry): new function. Adjust
10011 for toggle and radio buttons.
10012 (image_instantiator_buttons): use it.
10014 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
10016 * scrollbar-x.c (x_update_vertical_scrollbar_callback):
10017 (x_update_horizontal_scrollbar_callback): Return if no mirror was
10018 found. Scrollbar event probably belonged to some old config.
10020 2000-03-31 Andy Piper <andy@xemacs.org>
10022 * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
10024 (initialize_widget_image_instance): default layout to
10025 LAYOUT_HORIZONTAL rather than 0.
10026 (widget_instantiate): reverse the item list at the end rather than
10028 (layout_layout): re-code for the border text at the front of the
10029 item list rather than at the end.
10030 (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
10031 provided by the user.
10032 (widget_query_geometry): comment.
10034 2000-03-30 Andy Piper <andy@xemacs.org>
10036 * glyphs-widget.c (image_instantiator_layout): allow standard
10037 widget keywords in layouts.
10039 * gutter.c (output_gutter): cope with nil gutter contents.
10041 * frame.c (Fset_frame_properties): add gutter docs.
10043 2000-03-29 Andy Piper <andy@xemacs.org>
10045 * toolbar-msw.c (TBSTYLE_FLAT): add.
10046 (mswindows_output_toolbar): minor fiddling.
10048 2000-03-29 Andy Piper <andy@xemacs.org>
10050 * gutter.c (output_gutter): force gutter size recalculation if
10051 what we are trying to display won't fit.
10052 (update_gutter_geometry): new function. A per-gutter version of
10053 update_frame_gutter_geometry.
10054 (update_frame_gutter_geometry): use it.
10055 (redraw_exposed_gutter): add extra debugging output.
10057 2000-03-28 Mike Alexander <mta@arbortext.com>
10059 * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
10060 (pdump_file_unmap): Implement it on Windows
10061 (pdump_file_get): Save alocated handles for pdump_file_unmap
10063 2000-03-28 Andy Piper <andy@xemacs.org>
10065 * gui.c (get_gui_callback): treat Quit specially.
10067 2000-03-27 Andy Piper <andy@xemacs.org>
10069 * glyphs.c (image_instantiate): be careful to check in the same
10072 2000-03-27 Didier Verna <didier@xemacs.org>
10074 * config.h.in: define the proper SMART_INCLUDE macro.
10075 handle renaming of `foo_h_path' to `foo_h_file'.
10077 * database.c: ditto.
10081 * linuxplay.c: ditto.
10083 * terminfo.c: ditto.
10085 * tooltalk.h: ditto.
10087 2000-03-27 Andy Piper <andy@xemacs.org>
10089 * glyphs-msw.c (mswindows_update_widget): make sure the widget
10090 gets updated whenever the face might have changed.
10092 2000-03-26 Mike Alexander <mta@arbortext.com>
10094 * dumper.c (pdump_resource_free): Fix the comment.
10096 2000-03-21 Olivier Galibert <galibert@pobox.com>
10098 * input-method-xlib.c (XIM_init_frame): Remove painful warning.
10100 2000-03-22 Mike Alexander <mta@arbortext.com>
10102 * dumper.c: Include Windows headers on Windows
10103 (pdump_resource_free): Add a body to the function
10104 (pdump_load): exe_name -> exe_path and add some comments.
10106 2000-03-25 Mike Alexander <mta@arbortext.com>
10108 * gui.c (copy_gui_item_tree): Return a value in all cases
10110 2000-03-21 Didier Verna <didier@xemacs.org>
10112 * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
10114 (SMART_INCLUDE): new macro.
10115 (POSTGRES_INCLUDE): new macro to include postgresql headers from
10116 the proper location.
10118 * postgresql.c: use it.
10122 2000-03-24 Andy Piper <andy@xemacs.org>
10124 * gutter.c (redraw_exposed_gutters): must be "in display" when we
10127 2000-03-24 Andy Piper <andy@xemacs.org>
10129 * redisplay-output.c (compare_runes): use image_instance_changed
10130 to detect changes. Do not depend on glyphs_changed, only depend on
10132 (redisplay_output_layout): add debug messages.
10133 (compare_runes): ditto.
10135 * glyphs.h: declare new functions.
10136 (struct Lisp_Image_Instance): remove percent and associated
10139 * gui.h: declare new copying functions.
10141 * gui.c (copy_gui_item_tree): new function.
10142 (copy_gui_item): new function.
10143 (gui_item_id_hash): revert to standard hash.
10144 (gui_item_hash): ditto.
10145 (gui_item_hash_internal): deleted.
10146 (mark_gui_item): mark value.
10147 (gui_item_add_keyval_pair): add value.
10148 (gui_item_init): ditto.
10149 (gui_add_item_keywords_to_plist): ditto.
10150 (gui_item_equal): ditto.
10151 (syms_of_gui): add Q_value.
10153 * glyphs-x.c (x_progress_gauge_update): use pending items and
10154 value for setting the state.
10155 (x_update_widget): don't set items from pending here.
10157 * glyphs-widget.c (update_widget): update items here.
10158 (progress_gauge_set_property): use items for storing value. Put
10159 new value in pending items.
10161 * glyphs-msw.c (mswindows_progress_gauge_update): use pending
10162 items for new value. Convert percent -> value.
10163 (mswindows_tab_control_update): don't update items here.
10165 * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
10166 (update_subwindow): ditto.
10167 (image_instance_changed): new function. Compare hash values and
10168 past and present widget items.
10169 (image_instantiate): We more careful about where we instantiate
10171 (image_instantiate): add error checking.
10173 * gutter.c (syms_of_gutter): use -hook.
10175 2000-03-20 Yoshiki Hayashi <yoshiki@xemacs.org>
10177 * console-tty.c (Fset_console_tty_input_coding_system): Use
10179 (Fset_console_tty_output_coding_system): Use Qterminal.
10180 (tty_init_console): Use Qkeyboard and Qterminal.
10182 2000-03-21 Ben Wing <ben@xemacs.org>
10184 * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
10185 From Mike Alexander <mta@arbortext.com>.
10187 2000-03-21 Ben Wing <ben@xemacs.org>
10189 * event-msw.c (mswindows_need_event): Horrible kludge to fix
10190 process brokenness. Proper implementation to come.
10192 Rename call-process-internal to old-call-process-internal.
10193 New impl. in process.el.
10195 2000-03-21 Martin Buchholz <martin@xemacs.org>
10197 * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
10199 2000-03-20 Andy Piper <andy@xemacs.org>
10201 * glyphs.c (full_list_hash): make hashes of the same elements in
10202 different orders return different values.
10204 2000-03-20 Martin Buchholz <martin@xemacs.org>
10206 * XEmacs 21.2.32 is released.
10208 2000-03-20 Martin Buchholz <martin@xemacs.org>
10210 * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
10211 (DFC_MALLOC_USE_CONVERTED_DATA):
10212 Add aliasing-safe casts to allow use with char* or unsigned char*
10215 * eldap.c (Fldap_open):
10216 (Fldap_search_basic):
10219 Make C++-compilable.
10220 Make sure GCPRO'ed variables are initialized.
10221 Use temp variables to avoid repeated calls to Flength.
10223 2000-03-16 Martin Buchholz <martin@xemacs.org>
10226 Make sure PATH_MAX is always defined.
10227 Include limits.h for PATH_MAX.
10228 Deprecate use of MAXPATHLEN.
10230 2000-03-10 Martin Buchholz <martin@xemacs.org>
10232 * emacs.c: Add reinit_vars_of_fileio.
10233 * symsinit.h: Add reinit_vars_of_fileio.
10234 * fileio.c (reinit_vars_of_fileio): New.
10235 * fileio.c (Fmake_temp_name):
10236 Initialize temp_name random number from microseconds to make
10237 collisions even less likely. Initialize always at process startup
10238 time. (make-temp-name) used to return the same file name twice in
10240 Random stylistic fiddling.
10243 2000-03-20 Andy Piper <andy@xemacs.org>
10245 * glyphs.c (image_instantiate): allow text glyphs to be
10246 instantiated in the minibuffer window.
10248 2000-03-19 Andy Piper <andy@xemacs.org>
10250 * glyphs.c (image_instance_hash): be careful about which items we
10253 * glyphs-widget.c (tab_control_set_property): record into pending
10254 items rather than the actual items.
10256 * glyphs-x.c (x_update_widget): use pending items to update with.
10258 * glyphs-msw.c (mswindows_tab_control_update): use pending items
10261 * glyphs.c (mark_image_instance): mark pending items.
10263 * window.c (Fset_window_configuration): record the buffer.
10264 (Fselect_window): totally revert previous change which breaks many
10267 2000-03-18 Andy Piper <andy@xemacs.org>
10269 * glyphs-msw.c (mswindows_tab_control_update): force selected
10272 * glyphs.c (image_instantiate): don't allow the minibuffer as a
10273 window domain cache, otherwise we get inconsistencies at
10274 startup. There is something fishy at startup which can lead to the
10275 minibuffer being the selected window when the gutter content is
10278 * gui.c (parse_gui_item_tree_list): add probably unnecessary
10280 (parse_gui_item_tree_children): ditto.
10281 (parse_gui_item_tree_item): ditto.
10283 * glyphs.c (Fupdate_widget_instances): return something.
10285 2000-03-18 Yoshiki Hayashi <yoshiki@xemacs.org>
10287 * window.c (Fselect_window): Undo 2000-03-17 change.
10289 2000-03-17 SL Baur <steve@musashimaru.m17n.org>
10291 * postgresql.c (Fpq_setenv): Remove this turkey when linking
10292 against v7.0 libraries. Insta-coredump city until the postgres
10295 2000-03-17 Andy Piper <andy@xemacs.org>
10297 * faces.c (complex_vars_of_faces): don't give the widget face an
10298 inherited background pixmap.
10300 * glyphs-msw.c (mswindows_tab_control_instantiate): select the
10303 * event-stream.c (Fdispatch_non_command_events): return something.
10305 * gutter.c (output_gutter): use widget face.
10306 (clear_gutter): ditto.
10308 * NEWS: adjust again.
10310 * window.c (Fselect_window): make sure this runs to completion to
10311 avoid oddities with Fset_window_configuration.
10312 (Fcurrent_window_configuration): in general do not save the
10313 minibuffer as the selected window.
10315 * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
10317 2000-03-16 Olivier Galibert <galibert@pobox.com>
10319 * emacs.c (Frunning_temacs_p): Revert previous patch.
10320 (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
10322 2000-03-16 Andy Piper <andy@xemacs.org>
10324 * glyphs-x.c (x_tab_control_update): if no widget values then
10327 * NEWS: update for new features.
10329 * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
10330 synthetic event to the native system.
10331 (reinit_vars_of_event_Xt): set force_event_pending to
10332 emacs_Xt_force_event_pending.
10334 * events.h (struct event_stream): add force_event_pending.
10336 * specifier.c (recompute_one_cached_specifier_in_window): add
10339 * redisplay.c (redisplay_frame): don't call
10340 update_frame_subwindows. Reset subwindow cachels when
10341 subwindows_changed, removing this was an optimization too far.
10343 * redisplay-output.c (compare_runes): reorganize so that we catch
10344 glyph changes when we want them. Set optimize_output when this
10345 would help layouts.
10346 (redisplay_output_layout): remove frame_really_changed, use
10347 optimize_output instead.
10349 * redisplay-msw.c (mswindows_output_display_block): reset
10350 optimize_output after outputting a glyph.
10351 * redisplay-x.c (x_output_display_block): ditto.
10352 * redisplay-tty.c (tty_output_display_block): ditto.
10354 * gutter.c: (specifier_vars_of_gutter): use new spec changed
10356 (gutter_specs_changed): do specific gutter positions.
10357 (top_gutter_specs_changed): new function. Only update the
10358 specified gutter specs.
10359 (bottom_gutter_specs_changed): ditto.
10360 (left_gutter_specs_changed): ditto.
10361 (right_gutter_specs_changed): ditto.
10363 * gui.c (gui_item_hash_internal): new function, does a real hash.
10364 (gui_item_id_hash): use it.
10365 (gui_item_hash): hash the eval'ed gui_item.
10367 * gui-x.c (popup_selection_callback): send an eval event to call
10368 Fupdate_widget_instances.
10370 * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
10371 to call Fupdate_widget_instances.
10373 * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
10374 (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
10376 * glyphs.c: (update_frame_subwindows): deleted.
10377 (Fupdate_widget_instances): new function for updating the dirty
10378 state of widgets that might have changed.
10379 (syms_of_glyphs): add Qupdate_widget_instances.
10380 (full_list_hash): hash a list completely.
10381 (image_instance_hash): use it for items and properties.
10383 * frame-msw.c (mswindows_size_frame_internal): remove unused
10386 * faces.h (struct face_cachel): fix comment.
10388 * event-stream.c (Fdispatch_non_command_events): new
10389 function. Process non-command events, forcing an event cycle
10391 (syms_of_event_stream): declare.
10392 (event_stream_force_event_pending): new function. Force an event
10393 on the native event queue so that an event cycle will occur next
10397 (struct ntpipe_shove_stream):
10398 (mswindows_enqueue_dispatch_event):
10399 (mswindows_dequeue_dispatch_event):
10400 (mswindows_cancel_dispatch_event):
10401 (mswindows_pump_outstanding_events):
10402 (mswindows_drain_windows_queue):
10403 (mswindows_handle_paint):
10404 (mswindows_wnd_proc):
10405 (mswindows_key_to_emacs_keysym):
10406 (get_process_input_waitable):
10407 (emacs_mswindows_delete_stream_pair): re-indent file.
10408 (mswindows_need_event): do not process further fds if the windows
10409 fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
10410 fixes the 100% cpu problem.
10411 (reinit_vars_of_event_mswindows): set force_event_pending to 0.
10413 2000-03-15 Olivier Galibert <galibert@pobox.com>
10419 * emacs.c: Moved dump file searching to dumper.c.
10420 (Frunning_temacs_p): Fixed.
10422 * alloc.c: Moved everything pdump-related to dumper.c. Removed
10423 last_lrecord_type_index_assigned.
10425 2000-02-20 Olivier Galibert <galibert@pobox.com>
10427 * symsinit.h: Added reinit parameter to init_console_stream
10430 * lisp.h: Added file parameter to pdump_load declaration.
10432 * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
10433 support. Added dump file searching.
10435 * config.h.in: Added EMACS_PROGNAME.
10437 * console-stream.c (init_console_stream): Fix reinitialisation
10438 when running from temacs.
10440 * alloc.c (pdump): Add id support.
10441 (pdump_load): Add file parameter and signature/id support.
10443 * Makefile.in.in: Add full pdump support.
10445 2000-03-15 SL Baur <steve@musashimaru.m17n.org>
10447 * postgresql.c: Update documentation to reflect latest code
10449 (print_result): Show tuple counts in printed representation when
10451 (Fpq_put_nbytes): MULE-ize.
10452 (Fpq_get_line_async): Ditto.
10454 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
10456 * postgresql.c (Fpq_lo_import): Fix return value.
10457 Suggested by: Kenji Itoh <keit@tpj.co.jp>.
10459 2000-03-13 Ben Wing <ben@xemacs.org>
10461 * alloc.c (pdump_load):
10462 Fix compile warning under mswin.
10464 2000-03-14 SL Baur <steve@musashimaru.m17n.org>
10466 * postgresql.c: Mule-ization, bug fixes.
10467 Use PG_CODING to encapsulate coding system name changes.
10468 Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
10469 (pg-coding-system): Create.
10471 (Fpq_conn_defaults): Mule-ize.
10472 (Fpq_connectdb): Mule-ize & bug fix.
10473 (Fpq_connect_start): Mule-ize.
10474 (Fpq_set_client_encoding): Mule-ize.
10475 (Fpq_finish): Document `DEAD' connection status.
10476 (Fpq_clear): Ditto.
10477 (Fpq_pgconn): Mule-ize.
10478 (Fpq_exec): Mule-ize & bug fix.
10479 (Fpq_send_query): Ditto.
10480 (Fpq_get_result): Ditto.
10481 (Fpq_res_status): Mule-ize.
10482 (Fpq_result_error_message): Mule-ize.
10483 (Fpq_ntuples): fix comments.
10484 (Fpq_fname): Mule-ize.
10485 (Fpq_fnumber): Mule-ize.
10486 (Fpq_ftype): fix comments.
10487 (Fpq_get_value): Mule-ize.
10488 (Fpq_cmd_status): Ditto.
10489 (Fpq_cmd_tuples): Ditto.
10490 (Fpq_oid_value): Ditto.
10491 (Fpq_notifies): Ditto.
10492 (Fpq_lo_import): Ditto.
10493 (Fpq_lo_export): Ditto.
10494 (Fpq_get_line): Ditto.
10495 (Fpq_put_line): Mule-ize and bug fix.
10496 (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
10498 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
10500 * postgresql.c (vars_of_postgresql): Mule-ize.
10501 (Fpq_conn_defaults): Ditto.
10503 2000-03-12 Ben Wing <ben@xemacs.org>
10505 * alloc.c (Fmake_byte_code):
10506 * alloc.c (debug_string_purity_print):
10507 * alloc.c (pdump_backtrace):
10508 * alloc.c (pdump_get_indirect_count):
10509 * alloc.c (pdump_register_sub):
10510 * alloc.c (pdump_register_object):
10511 * alloc.c (pdump_register_struct):
10512 * alloc.c (pdump_dump_data):
10513 * alloc.c (pdump_reloc_one):
10517 * console-msw.c (GetConsoleHwnd):
10518 * console-msw.c (msw_hide_console):
10519 * console-msw.c (msw_show_console):
10520 * console-msw.c (msw_ensure_console_buffered):
10521 * console-msw.c (msw_output_console_string):
10522 * console-msw.c (console_type_create_mswindows):
10524 a) Added functions to manipulate the console window for use with
10527 b) Added support for writing text to the console, which is now
10528 used under Windows when xemacs is not being run non-interactively,
10529 to write text that would otherwise be destined for stdout because
10530 under these circumstances, text written to stdout tends to
10531 disappear and not be seen.
10535 * event-Xt.c (x_event_to_emacs_event):
10536 * event-Xt.c (describe_event_window):
10537 * events-mod.h (XEMACS_MOD_CONTROL):
10539 * events.c (Fmake_event):
10540 * events.c (character_to_event):
10541 * events.c (event_to_character):
10542 * events.c (format_event_object):
10543 * events.c (Fevent_modifiers):
10545 * events.h (struct key_data):
10546 * events.h (struct button_data):
10547 * events.h (struct misc_user_data):
10548 * frame-x.c (Fcde_start_drag_internal):
10549 * frame-x.c (Foffix_start_drag_internal):
10550 * gpmevent.c (Freceive_gpm_event):
10552 * keymap.c (bucky_sym_to_bucky_bit):
10553 * keymap.c (control_meta_superify):
10554 * keymap.c (make_key_description):
10555 * keymap.c (keymap_lookup_directly):
10556 * keymap.c (create_bucky_submap):
10557 * keymap.c (keymap_store):
10558 * keymap.c (define_key_check_and_coerce_keysym):
10559 * keymap.c (define_key_parser):
10560 * keymap.c (define_key_alternate_name):
10561 * keymap.c (Fdefine_key):
10562 * keymap.c (raw_lookup_key_mapper):
10563 * keymap.c (struct map_keymap_unsorted_closure):
10564 * keymap.c (map_keymap_unsorted_mapper):
10565 * keymap.c (map_keymap_sort_predicate):
10566 * keymap.c (map_keymap_sorted):
10567 * keymap.c (accessible_keymaps_mapper_1):
10568 * keymap.c (where_is_recursive_mapper):
10569 * keymap.c (describe_map_mapper):
10570 * keymap.c (describe_map_sort_predicate):
10571 * keymap.c (describe_map):
10572 * keymap.c (complex_vars_of_keymap):
10573 And a number of other files, the key modifier preprocessor
10574 constants that xemacs uses have names that conflict with constants
10575 defined under MS Windows for other purposes, so they were renamed
10576 to begin with the prefix XEMACS_. The variables that hold such
10577 modifiers were changed to consistently be of type int to fix
10578 various compile warnings.
10580 * console.c (complex_vars_of_console):
10583 * device-msw.c (mswindows_finish_init_device):
10584 * device-msw.c (msw_get_workspace_coords):
10585 * device-msw.c (mswindows_device_system_metrics):
10586 and various other files, added support for a new
10587 device property called offset-workspace which returns the position
10588 of the upper left corner of the workspace area and goes along with
10589 the existing size-workspace property.
10592 * dialog-msw.c (push_bufbyte_string_as_unicode):
10593 * dialog-msw.c (mswindows_popup_dialog_box):
10594 Added support for XEmacs-style accelerator specifications in
10595 button text. Note: I didn't add support for this under X Windows,
10596 and somebody needs to do this.
10599 * dialog.c (Fpopup_dialog_box):
10600 Documented the support for accelerators that was just mentioned.
10602 editfns.c (get_home_directory): Changed behavior under Windows
10603 when HOME not defined; former behavior was irretrievably broken.
10606 * emacs.c (main_1):
10608 * minibuf.c (clear_echo_area_internal):
10609 * minibuf.c (echo_area_append):
10611 * print.c (std_handle_out_external):
10612 * print.c (std_handle_out_va):
10614 * print.c (write_string_to_stdio_stream):
10615 * print.c (output_string):
10616 * print.c (debug_print):
10617 * print.c (debug_backtrace):
10618 * print.c (debug_short_backtrace):
10619 Cleaned up the code that prints text to stdout so that this can be
10620 changed to output into a console window instead under MS Windows,
10621 as described above.
10624 * eval.c (DEFEND_AGAINST_THROW_RECURSION):
10625 * eval.c (internal_catch):
10626 * eval.c (unwind_to_catch):
10627 * eval.c (throw_or_bomb_out):
10628 * eval.c (condition_case_1):
10629 * eval.c (signal_1):
10630 * eval.c (check_error_state_sanity):
10631 * eval.c (call_with_suspended_errors_1):
10632 * eval.c (call_with_suspended_errors):
10633 * eval.c (reinit_vars_of_eval):
10634 Added code to catch throw loops and check for a pesky bug that may
10638 * event-msw.c (key_needs_default_processing_p):
10639 * event-msw.c (mswindows_wnd_proc):
10640 * event-msw.c (mswindows_modifier_state):
10641 * event-msw.c (emacs_mswindows_quit_p):
10642 * event-msw.c (vars_of_event_mswindows):
10643 a) Added support for using the alt key to select menu items as is
10644 standard under MS Windows. This is controlled using the variable
10645 menu-accelerator-enabled, just like under X Windows. There is an
10646 option on the options menu to turn this support on. I really
10647 think that it should be on by default under Windows, but I'm not
10648 going to make this change yet.
10650 b) Added support for dynamic display size changes under Windows.
10653 * event-stream.c (maybe_echo_keys):
10654 * event-stream.c (Fnext_event):
10655 * event-stream.c (command_builder_find_leaf):
10656 * event-stream.c (lookup_command_event):
10657 * event-stream.c (execute_command_event):
10658 * event-stream.c (pre_command_hook):
10659 * event-stream.c (post_command_hook):
10660 * event-stream.c (syms_of_event_stream):
10661 * event-stream.c (vars_of_event_stream):
10662 * event-stream.c (complex_vars_of_event_stream):
10663 * events.h (struct command_builder):
10665 a) Tried to clean up a little bit the horribly written x-specific
10666 accelerator code that crept into this file. I moved this code
10667 into menubar-x.c where it belongs. I also needed to move the
10668 command builder structure into the file events.h because it is
10669 accessed directly by this accelerator code. What I didn't do, but
10670 which should be done at some point, is to properly abstract this
10671 code using device methods instead of the kludgy way that it
10672 currently hooks into the event code.
10674 b) Added the lisp variables this-command-properties and
10675 last-command- properties, which should be used to synchronize two
10676 adjacent commands in preference to playing games with the variable
10677 this-command, which is typically what happens.
10679 c) Added some slightly nasty code to hook into the lisp support
10680 for shifted- motion-key selection. This is actually necessary for
10681 somewhat complicated reasons, which are described in
10682 simple.el. (NB: I think the proper thing would be to have the code
10683 that calls the pre and post command hooks also call out to generic
10684 lisp functions in simple.el, where all built-in stuff could be
10685 added. I will think about this more.)
10687 * event-unixoid.c (poll_fds_for_input):
10688 * lread.c (readchar):
10689 * redisplay-tty.c (tty_clear_frame):
10690 * redisplay-x.c (x_get_gc):
10691 * signal.c (interrupt_signal):
10692 And a whole bunch of other files: fixed up places that printed
10693 directly to stderr to instead call the function stderr_out so that
10694 the changes I made under Windows work correctly.
10696 * filemode.c (mode_string):
10700 * frame-msw.c (mswindows_size_frame_internal):
10701 Fixed the computation of frame size and position to keep the frame
10702 within the workspace area, rather than within the physical
10703 dimensions of the screen, so that the frame doesn't overlap window
10704 manager decorations, such as the start menu and toolbar, typically
10705 at the bottom of the screen.
10707 * frame.c (vars_of_frame):
10708 Changed the default frame title format under MS Windows to consist
10709 of buffername-XEmacs, which is standard under MS Windows. I think
10710 it might be a good idea to change this everywhere because I think
10711 it is superior to the current frame title format, but this is the
10712 kind of change that is likely to cause some people to get annoyed,
10713 so I'm not making it.
10715 * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
10717 * gui-msw.c (mswindows_handle_gui_wm_command):
10718 Fixed compile warnings.
10721 * gui-x.c (strdup_and_add_accel):
10722 * gui-x.c (button_item_to_widget_value):
10724 Added code to automatically put an accelerator onto the beginning
10725 of menu items that don't have one as is now the standard, and is
10726 described more later. Also fixed things so that the menu item
10727 name can be an evaluated expression, again a new standard.
10730 * gui.c (gui_item_add_keyval_pair):
10731 * gui.c (make_gui_item_from_keywords_internal):
10732 * gui.c (gui_add_item_keywords_to_plist):
10733 * gui.c (gui_item_accelerator):
10734 * gui.c (gui_name_accelerator):
10735 * gui.c (gui_item_included_p):
10736 * gui.c (gui_item_display_flush_left):
10737 * gui.c (gui_item_display_flush_right):
10738 * gui.c (parse_gui_item_tree_item):
10739 * gui.c (parse_gui_item_tree_children):
10740 * gui.c (parse_gui_item_tree_list):
10741 Mule-ized. Cleanup. GCPRO addition.
10743 * line-number.c (buffer_line_number):
10745 * lisp.h (EMACS_INT_MAX):
10746 Added the manifest constant EMACS_INT_MIN corresponding to the
10747 existing constant EMACS_INT_MAX. This is partially to fix compile
10748 warnings under Windows, and partly for cleanliness.
10751 * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
10752 * menubar-msw.c (msw_translate_menu_or_dialog_item):
10753 * menubar-msw.c (displayable_menu_item):
10754 * menubar-msw.c (populate_menu_add_item):
10755 * menubar-msw.c (populate_or_checksum_helper):
10756 * menubar-msw.c (populate_menu):
10757 * menubar-msw.c (update_frame_menubar_maybe):
10758 * menubar-msw.c (prune_menubar):
10759 * menubar-msw.c (msw_char_is_accelerator):
10760 * menubar-msw.c (unsafe_handle_wm_initmenu_1):
10761 * menubar-msw.c (mswindows_handle_wm_command):
10762 * menubar-msw.c (mswindows_handle_wm_initmenupopup):
10763 * menubar-msw.c (mswindows_handle_wm_initmenu):
10764 * menubar-msw.c (mswindows_update_frame_menubars):
10765 * menubar-msw.c (mswindows_free_frame_menubars):
10766 * menubar-msw.c (mswindows_popup_menu):
10767 Fixed a bug in handling accelerators where an extra character
10768 would be displayed in the menu item. Also generalized the
10769 function displayable_menu_item because it is now used by the
10770 dialog box code as well. And finally, added code in the functions
10771 that create the menubar to extract a list of accelerators for the
10772 top level menubar, which is used in the event code to determine
10773 whether a particular alt-key combination should be used to invoke
10774 a menu item, or should be passed through to access the standard
10775 XEmacs keymap binding for this key combination.
10777 Much needed GCPROing.
10780 * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10781 * menubar-x.c (menu_item_descriptor_to_widget_value):
10782 * menubar-x.c (restore_in_menu_callback):
10783 * menubar-x.c (x_popup_menu):
10784 * menubar-x.c (menu_move_up):
10785 * menubar-x.c (menu_move_down):
10786 * menubar-x.c (menu_move_left):
10787 * menubar-x.c (menu_move_right):
10788 * menubar-x.c (menu_select_item):
10789 * menubar-x.c (command_builder_operate_menu_accelerator):
10790 * menubar-x.c (menu_accelerator_junk_on_error):
10791 * menubar-x.c (command_builder_find_menu_accelerator):
10792 * menubar-x.c (Faccelerate_menu):
10794 Moved a whole bunch of code here that was previously in
10795 event-stream.c as described above. There is also code connected
10796 to the new standard of adding an accelerator to the beginning of
10797 menu items that don't have one as described above and below.
10800 * menubar.c (menu_parse_submenu_keywords):
10801 * menubar.c (Fmenu_find_real_submenu):
10802 * menubar.c (Fnormalize_menu_item_name):
10803 * menubar.c (syms_of_menubar):
10804 * menubar.c (vars_of_menubar):
10805 * menubar.c (complex_vars_of_menubar):
10807 a) Cleaned up a bunch of documentation and improved it.
10809 b) XEmacs now automatically adds an accelerator onto the beginning
10810 of any menu items that don't have one. I did this because there
10811 will inevitably be some menu items on the main menubar that don't
10812 have accelerators on them because the package that adds that
10813 particular menu item hasn't yet been fixed up to have accelerators
10814 in them and it looked rather strange to have some items with and
10815 some items without accelerators, especially since even in items
10816 without accelerators, you can, at least under windows, still
10817 access the item through an accelerator corresponding to the first
10818 character in the item's name. If people don't like this behavior,
10819 I can add a variable to turn it off optionally, but I'm not sure
10820 this is a good idea because we really do need to have accelerators
10821 on all of the menu items, and if a package doesn't like the
10822 accelerators being put on the first character, then it should put
10823 the accelerators where they belong.
10825 c) I made a behavior change, which is that the descriptor that
10826 specifies the text of the menu item, which formerly was just a
10827 string, can now also be an evaluated expression. This makes this
10828 descriptor parallel with all of the others, which could also be
10829 evaluated expressions. This also obviates the need for the
10830 keyword :label, which was previously listed in the documentation
10831 as unimplemented, and which was for the same purpose.
10836 * ntproc.c (new_child):
10837 * ntproc.c (sys_spawnve):
10838 * ntproc.c (find_child_console):
10839 * ntproc.c (sys_kill):
10840 Fixed compile warnings. By the way, this file should really go
10841 away entirely, and this will happen as soon as Kirill makes his
10842 final round of process cleanups, which affect the function
10846 * process-nt.c (struct nt_process_data):
10847 * process-nt.c (find_process_from_pid):
10848 * process-nt.c (send_signal_the_nt_way):
10849 * process-nt.c (enable_child_signals):
10850 * process-nt.c (find_child_console):
10851 * process-nt.c (send_signal_the_95_way):
10852 * process-nt.c (nt_finalize_process_data):
10853 * process-nt.c (ensure_console_window_exists):
10854 * process-nt.c (nt_create_process):
10855 * process-nt.c (nt_kill_child_process):
10856 * process-nt.c (nt_kill_process_by_pid):
10857 * process-nt.c (nt_open_network_stream):
10858 * process-nt.c (vars_of_process_nt):
10859 Copied over code from Emacs 20.5 to correctly send signals to sub-
10860 processes under Windows 95. Also added code to automatically
10861 create and hide console window when a sub-process is created under
10862 Windows 95, which obviates the need for the separate runemacs.exe
10863 executable, and finally implemented some variables that were
10864 implemented in Emacs 20.5, but previously not in XEmacs. These
10865 include mswindows- start-process-share-console and
10866 mswindows-start-process-inherit-error-mode. (Both of these only
10867 apply to Windows 95.)
10869 * regex.c (regex_compile): Fixed a compile warning.
10872 * select-msw.c (mswindows_own_selection):
10873 * select-msw.c (mswindows_get_foreign_selection):
10874 * select-msw.c (mswindows_disown_selection):
10875 * select-msw.c (console_type_create_select_mswindows):
10876 * select-msw.c (syms_of_select_mswindows):
10877 Cleaned up the file and implemented the device method
10878 selection_exists_p, which had accidentally been left out. Also
10879 removed four lisp functions that were remnants from before the
10880 time when the selection code was properly device abstracted.
10881 These functions are no longer needed because there are generic
10882 equivalents, and because they were added recently and don't exist
10883 in FSF Emacs, I don't think there's any problem with just deleting
10887 * sysdep.c (sys_subshell):
10888 Fixed a compile warning, although in this case there's probably
10889 something wrong with this code, and it ought to be looked into
10890 more thoroughly by somebody who understands it.
10893 * window.c (Fwindow_text_area_height):
10894 * window.c (Fwindow_width):
10895 * window.c (Fwindow_full_width):
10896 * window.c (Fwindow_pixel_width):
10897 * window.c (debug_print_window):
10898 * window.c (syms_of_window):
10899 Added functions window-text-area-height and window-full-width,
10900 which are functions for returning various width and height
10901 characteristics of a window. (One of these functions is necessary
10902 for making the file dialog box work correctly, and the other one
10903 was added for completeness.) Also added a table to the
10904 documentation for window-height which describes the entire scheme
10905 for accessing width and height characteristics of a window.
10907 2000-03-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
10909 * nt.c (fstat): Added a comment for another problem with
10910 non-encapsulated [f]stat(), reported by Adrian Aichner
10911 <aichner@ecf.teradyne.com>.
10913 2000-03-11 Andy Piper <andy@xemacs.org>
10915 * window.c (make_dummy_parent): initialize subwindow instance
10917 (Fset_window_configuration): zero extent_modiff.
10919 2000-03-10 Andy Piper <andy@xemacs.org>
10921 * redisplay.c (Fredraw_frame): reset the changed_set flags so that
10922 more changes can be triggered.
10923 (Fredisplay_frame): ditto.
10924 (Fredraw_device): ditto.
10925 (Fredisplay_device): ditto.
10926 (redisplay_frame): make non-static.
10927 (redisplay_frame): call update_frame_gutter_geometry outside of
10930 * gutter.h: declare update_frame_gutter_geometry.
10932 * redisplay.h: declare redisplay_frame.
10934 * gutter.c (update_frame_gutter_geometry): move geometry changes
10935 in update_frame_gutters here. Geometry changes can only occur
10936 outside of redisplay.
10937 (update_frame_gutters): remove geometry change code.
10938 (Fredisplay_gutter_area): make sure that we are in display when we
10939 update and that we have flushed any size changes.
10941 2000-03-11 Andy Piper <andy@xemacs.org>
10943 * alloc.c (pdump_dump_data): remove i & count shadows.
10945 2000-02-27 Mike Alexander <mta@arbortext.com>
10947 * sysdep.h: Declare pdump_read_file
10949 * sysdep.c (pdump_read_file): New function
10951 * alloc.c (pdump_load): Call pdump_read_file to get the portable
10954 2000-03-10 SL Baur <steve@musashimaru.m17n.org>
10956 * lrecord.h: add `lrecord_type_pgsetenv'.
10958 2000-03-08 SL Baur <steve@musashimaru.m17n.org>
10960 * symsinit.h: declare (vars|syms)_of* functions.
10961 * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
10963 2000-03-06 SL Baur <steve@musashimaru.m17n.org>
10965 * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
10967 * inline.c: Include postgresql.h lrecord stuffs to placate buggy
10970 * emacs.c (main_1): Call postgres initialization code.
10972 * postgresql.h: New file. PostgreSQL RDBMS support.
10973 * postgresql.c: New file.
10975 2000-03-08 Yoshiki Hayashi <yoshiki@xemacs.org>
10977 * redisplay-output.c (redisplay_output_display_block): Disable
10980 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10982 * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
10983 (Fcanna_henkan_next): Ditto.
10984 (Fcanna_bunsetu_henkou): Ditto.
10985 (Fcanna_henkan_kakutei): Ditto.
10986 (Fcanna_henkan_end): Ditto.
10987 (Fcanna_henkan_quit): Ditto.
10988 (Fcanna_henkan_next): Set retun value correctly.
10989 (c2mu): Use unsigned char instead of signed char.
10991 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10993 * emacs.c (main_1): Always call syms_of_gui.
10994 * inline.c: include gui.h
10996 2000-03-09 Yoshiki Hayashi <yoshiki@xemacs.org>
10998 * redisplay.c (Vvisible_bell): Renamed from visible_bell and
10999 converted to Lisp_Object.
11000 (Qtop_bottom): New variable.
11001 (syms_of_redisplay): Initialize it.
11002 * redisplay.h (Vvisible_bell): Ditto.
11003 * sound.c (ding): Ditto and check if Vvisible_bell is nil.
11004 * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
11005 only flash top and bottom.
11007 2000-03-08 Andy Piper <andy@xemacs.org>
11009 * buffer.c (Frename_buffer): record new buffer name the right way.
11011 2000-03-08 Andy Piper <andy@xemacs.org>
11013 * glyphs.c (update_subwindow): increase hash depth so that widget
11014 items get picked up properly.
11016 * redisplay-output.c (compare_runes): increase hash depth so that
11017 widget items get picked up properly.
11019 2000-03-08 Andy Piper <andy@xemacs.org>
11021 * gutter.c (output_gutter): add some debug.
11023 * glyphs.h (struct Lisp_Image_Instance): add display_hash.
11024 (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
11025 (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
11027 * redisplay-output.c (compare_runes): use display_hash to
11028 determine if glyphs really are not the same.
11030 * glyphs.c (update_subwindow): check display_hash to see if
11031 anything really needs to be updated. If not then do
11032 nothing. Record the display_hash after updating.
11033 (image_instance_equal): compare the image_instance face also.
11035 2000-03-07 Yoshiki Hayashi <yoshiki@xemacs.org>
11037 * redisplay.h: Fix comment style.
11039 2000-03-08 Jonathan Harris <jhar@tardis.ed.ac.uk>
11041 * consle-msw.h (struct mswindows_frame):
11042 Added new member paint_pending to indicate whether a WM_PAINT
11043 magic event has been queued for this frame.
11045 * event-msw.c (mswindows_drain_windows_queue):
11046 Don't queue a WM_PAINT magic event if one is already queued.
11047 (emacs_mswindows_handle_magic_event): clear paint_pending flag.
11049 * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
11051 2000-03-07 Didier Verna <didier@xemacs.org>
11053 * dired.c: #include `regex.h' after `sysfile.h'.
11055 2000-03-06 Martin Buchholz <martin@xemacs.org>
11057 * sound.c (init_nas_sound): Fix compiler warning.
11059 * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
11061 (MARK_STRUCT_AS_FREE):
11062 (MARK_STRUCT_AS_NOT_FREE):
11063 Make `gcc -fstrict-aliasing' work properly.
11065 2000-03-07 Jonathan Harris <jhar@tardis.ed.ac.uk>
11067 * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
11068 (mswindows_delete_device): Call CoUnnitialize().
11070 * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
11072 2000-02-25 <CraigL@DyCon.com>
11074 * process-nt.c: MinGW now has <shellapi.h>, but still needs
11077 * sysdep.c: This extern declaration for environ prevents MinGW
11078 from finding the variable in CRTDLL.DLL.
11080 * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
11082 (SHGFI_EXETYPE): ..
11083 (WM_MOUSEWHEEL): ..
11084 (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
11086 (MMRESULT): Removed, now defined in cygwin's windows headers.
11088 (uid_t,gid_t,pid_t,ssize_t): ..
11089 (_timeb): Removed, MinGW defines both _timeb and timeb.
11090 (HAVE_H_ERRNO): Added.
11091 (HAVE_TZNAME): Added, configure is not detecting this.
11093 2000-02-03 IKEYAMA Tomonori <tomonori@suiyokai.org>
11095 * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
11096 * syntax.c (syntax_match): Use it.
11098 * cmds.c: Import auto-fill-chars from FSF Emacs.
11099 (Vauto_fill_chars): New variables.
11100 (internal_self_insert): Check Vauto_fill_chars.
11102 Declare auto-fill-chars as a Lisp variable and initialize it.
11104 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
11106 * fileio.c (Fmake_symbolic_link):
11108 Run handlers even if local machine doesn't have symlinks.
11110 2000-03-05 Jonathan Harris <jhar@tardis.ed.ac.uk>
11112 * event-msw.c (mswindows_drain_windows_queue):
11113 Don't generate paint magic events for non-XEmacs frames.
11115 2000-03-05 Andy Piper <andy@xemacs.org>
11117 * redisplay.c (redisplay_frame): generate_displayable_area and
11118 friends assumes that we are not in GC, we therefore have to make
11119 sure that this doesn't happen.
11121 * gutter.c (calculate_gutter_size): generate_displayable_area
11122 assumes that we are not in GC, we therefore have to make sure that
11123 this doesn't happen.
11125 2000-03-05 Martin Buchholz <martin@xemacs.org>
11127 * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
11129 2000-03-03 Jan Vroonhof <vroonhof@math.ethz.ch>
11131 * redisplay.c (regenerate_window): Make sure we set a sane value
11132 for end_pos even if we jump out of the loop.
11133 (regenerate_window): Answer Ben's question :-).
11134 (start_end_of_last_line): Add may_error argument.
11135 (start_of_last_line):
11136 (end_of_last_line): Pass may_error = 0.
11137 (end_of_last_line_may_error): New function.
11138 (pixel_to_glyph_translation): Use it, so we don't crash in
11141 2000-03-04 Andy Piper <andy@xemacs.org>
11143 * window.h (struct window): add gutter_extent_modiff.
11145 * window.c (allocate_window): zero out gutter_extent_modiff.
11147 * redisplay.h: declare sync_display_line_structs.
11149 * redisplay.c (add_glyph_rune): add a better comment.
11151 * redisplay-output.c (sync_display_line_structs): made non-static.
11152 (compare_runes): remove unneccesary glyph cachel access.
11154 * gutter.h: declare gutter_extent_signal_changed_region_maybe.
11156 * gutter.c (output_gutter): don't output the gutter if extent
11157 changes only involve extents in buffers. use 4 sets of display
11159 (gutter_extent_signal_changed_region_maybe): new function. Mark
11160 extents in gutters as changed.
11161 (update_frame_gutters): use 4 sets of display lines.
11162 (reset_gutter_display_lines): ditto.
11163 (free_frame_gutters): ditto.
11164 (redraw_exposed_gutter): force output of gutters.
11166 * frame.h (struct frame): add 4 sets of gutter display lines.
11168 * extents.c: (extent_changed_for_redisplay): signal changes to
11169 extents in strings in the gutter as well as extents in buffers.
11171 2000-03-02 Andy Piper <andy@xemacs.org>
11173 * gutter.c (specifier_vars_of_gutter): cosmetic changes.
11175 * frame.c (Fmake_frame): make sure the gutters get initialized
11176 after the frame is visible.
11177 (set_frame_selected_window): re-arrange compilation macros a
11179 (change_frame_size_1): mark gutters changed.
11181 * device.c (Fset_device_class): mark gutters changed.
11183 2000-03-01 Andy Piper <andy@xemacs.org>
11185 * window.c (window_top_frame_gutter_height): deleted.
11186 (window_bottom_frame_gutter_height): ditto.
11187 (window_left_frame_gutter_height): ditto.
11188 (window_right_frame_gutter_height): ditto.
11189 (window_top_gutter_height): don't use them.
11190 (window_bottom_gutter_height): ditto.
11191 (window_left_gutter_width): ditto.
11192 (window_right_gutter_width): ditto.
11193 (Fsplit_window): ditto.
11194 (Fwindow_pixel_edges): don't use border dimensions here.
11196 * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
11197 (update_scrollbar_instance): ditto.
11199 * redisplay.c (generate_modeline): don't take gutters into account.
11200 (generate_modeline): ditto.
11201 (redisplay_frame): small gutter display optimization.
11203 * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
11205 * redisplay-msw.c (mswindows_output_vertical_divider): don't take
11206 gutters into account.
11208 * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
11209 for window position and type.
11211 * gutter.c (get_gutter_coords): fix for frame gutters.
11212 (update_frame_gutters): update frame geometry if the gutters have
11214 (init_frame_gutters): record current gutter geometries.
11216 * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
11218 (mswindows_widget_instantiate): ditto.
11220 * frame.h (struct frame): add current_gutter_bounds.
11222 * frame.c (change_frame_size_1): position window and minibuffer
11223 appropriately taking into account the frame gutters.
11225 * frame-x.c: (x_initialize_frame_size): take into account the
11228 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
11230 * emacs.c (data-directory): Xref `locate-data-file' in docstring.
11232 2000-02-29 Stephen J. Turnbull <stephen@xemacs.org>
11234 * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
11236 1999-12-30 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11238 * file-coding.c (reset_decoding_stream): Clear previous
11239 detection state when autodetect.
11241 2000-02-29 Didier Verna <didier@xemacs.org>
11243 * extents.c (set_extent_glyph_1): don't require extents to be
11246 2000-02-27 Andy Piper <andy@xemacs.org>
11248 * gutter.c (Fset_default_gutter_position): don't default left and
11249 right gutter visibility to t.
11250 (Fset_default_gutter_position): run
11251 default-gutter-position-changed-hook.
11252 (syms_of_gutter): add default-gutter-position-changed-hook.
11254 2000-02-26 Andy Piper <andy@xemacs.org>
11256 * specifier.c (Fmake_specifier): add gutter references.
11258 * gutter.h (RAW_WINDOW_GUTTER): new macro.
11260 * lisp.h: declare Fvalid_plist_p.
11262 * gutter.c (gutter_geometry_changed_in_window): mark the modeline
11264 (default_gutter_visible_p_changed_in_window): invalidate gutter as
11265 well as its visibility so that it gets reconstructed.
11266 (construct_window_gutter_spec): new function. Construct a string
11267 to be displayed in the gutter from a plist of strings. Take care
11268 to only use elements that are declared as visible.
11269 (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
11271 (gutter_validate): allow plists of strings in the specifier.
11272 (gutter_specs_changed): construct the real_gutter from the gutter
11273 specs using construct_window_gutter_spec.
11274 (gutter_visible_validate): gutter-visible is a new specifier type.
11275 (Fgutter_visible_specifier_p): new function for the new specifier.
11276 (syms_of_gutter): declare gutter-visible and
11277 Fgutter_visible_specifier_p.
11278 (specifier_type_create_gutter): intitalize new gutter-visible
11280 (reinit_specifier_type_create_gutter): ditto.
11281 (specifier_vars_of_gutter): use new specifier type for gutter
11283 (init_frame_gutters): construct real_gutter correctly.
11284 (Fgutter_specifier_p): beef up documentation.
11285 (Fgutter_size_specifier_p): ditto.
11287 * winslots.h: add real_gutter slots.
11289 2000-02-25 Andy Piper <andy@xemacs.org>
11291 * device-msw.c: Be kind to older cygwin versions. From Raymond
11292 Toy <toy@rtp.ericsson.se>.
11294 * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
11295 earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
11297 2000-02-25 Martin Buchholz <martin@xemacs.org>
11299 * elhash.c (MARK_OBJ): Practice macro hygiene.
11301 2000-02-24 Martin Buchholz <martin@xemacs.org>
11303 * miscplay.c: s/__inline__/inline/g;
11304 * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
11305 (get_device_compdc): INLINE ==> static inline
11306 * *.[ch]: Change INLINE to INLINE_HEADER globally.
11307 find -name '*.h' | \
11308 xargs global-replace \
11309 's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
11311 2000-02-25 Andy Piper <andy@xemacs.org>
11313 * window.c (window_top_frame_gutter_height): new function.
11314 (window_top_window_gutter_height): ditto.
11315 (window_top_gutter_height): use them.
11316 (window_bottom_frame_gutter_height): new function.
11317 (window_bottom_window_gutter_height): ditto.
11318 (window_bottom_gutter_height): use them.
11319 (window_left_window_gutter_width): new function.
11320 (window_left_frame_gutter_width): ditto.
11321 (window_left_gutter_width): use them.
11322 (window_right_window_gutter_width): new function.
11323 (window_right_frame_gutter_width): ditto.
11324 (window_right_gutter_width): use them.
11325 (window_pixel_height): new function. calulate window pixel height
11326 with frame gutter involvement.
11327 (Fsplit_window): calculate new sizes taking frame gutters into
11329 (window_char_height_to_pixel_height): don't include frame gutters.
11330 (window_char_height): use window_pixel_height.
11331 (window_pixheight): rename from window_pixel_height.
11332 (change_window_height): use it.
11333 (window_pixel_height_to_char_height): don't include frame gutters.
11334 (window_char_width_to_pixel_width): ditto.
11336 2000-02-25 Andy Piper <andy@xemacs.org>
11338 * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
11341 2000-02-24 Martin Buchholz <martin@xemacs.org>
11343 * alloc.c (staticpro):
11344 (staticpro_nodump):
11349 (compact_string_chars):
11350 (pdump_dump_wired):
11351 Convert: if (foo) abort(); ==> assert (! foo);
11353 * eldap.c (Fldap_search_basic):
11357 Fix compiler warnings, and possible crashes if (random) return
11358 value were to be used.
11360 2000-02-21 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11362 * device-msw.c: Workaround ResetDC failure.
11364 * frame-msw.c (msprinter_init_frame_3): Added an assertion before
11365 applying a devmode.
11367 * redisplay-msw.c (get_frame_dc): Added start_page_p.
11368 (mswindows_text_width): Do not start printer page.
11370 * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
11372 * glyphs-msw.c: Added image methods to msprinter console and
11373 msprinter-specific image instantiation.
11375 2000-02-20 Mike Alexander <mta@arbortext.com>
11377 * select-msw.c (Fmswindows_set_clipboard): GC protect more things
11378 to avoid crashes when selection-sets-clipboard is on
11379 (mswindows_own_selection): ditto
11381 2000-02-19 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11384 * redisplay-msw.c (get_frame_dc):
11385 (get_frame_compdc):
11387 * device-msw.c (mswindows_init_device):
11388 (mswindows_delete_device):
11389 (msprinter_init_device):
11390 (msprinter_delete_device):
11391 * frame-msw.c (mswindows_init_frame_1):
11392 (mswindows_delete_frame):
11393 (msprinter_init_frame_3):
11394 (msprinter_delete_frame): Move compatible DC to device object from
11395 frame object, for both mswindows and msprinter. Only one at a time
11396 is needed, it is a real waste to have one per frame!
11398 2000-02-23 Andy Piper <andy@xemacs.org>
11400 * glyphs.c: add dynamic width and height elements.
11401 (image_instance_equal): ditto.
11403 * glyphs-widget.c (widget_query_geometry): calculate width and
11404 height dynamically if required.
11405 (initialize_widget_image_instance): initialize dynamic dimensions.
11406 (widget_instantiate): pick-up dynamic dimensions.
11408 * glyphs.h (struct Lisp_Image_Instance): add width and height for
11409 dynamic determination. Add appropriate macros.
11411 * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
11413 (WINDOW_GUTTER_SIZE): ditto.
11414 (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
11416 * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
11418 (get_frame_dc): ditto.
11420 * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
11423 2000-02-23 Martin Buchholz <martin@xemacs.org>
11425 * XEmacs 21.2.31 is released.
11427 2000-02-22 Ben Wing <ben@xemacs.org>
11429 * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
11431 2000-02-22 Andy Piper <andy@xemacs.org>
11433 * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
11435 2000-02-21 Mike Sperber <mike@xemacs.org>
11439 * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
11442 2000-02-21 Mike Sperber <mike@xemacs.org>
11444 * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
11446 2000-02-21 Martin Buchholz <martin@xemacs.org>
11448 * XEmacs 21.2.30 is released.
11450 2000-02-20 Martin Buchholz <martin@xemacs.org>
11452 Performance hacking.
11454 Add INIT_LRECORD_IMPLEMENTATION macros, paired with
11455 DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
11456 * emacs.c (main_1):
11458 * console.c (DEFVAR_CONSOLE_LOCAL_1):
11459 * buffer.c (DEFVAR_BUFFER_LOCAL_1):
11460 * symeval.h (DEFVAR_SYMVAL_FWD):
11461 * symbols.c (guts_of_unbound_marker):
11462 Make all c_readonly objects also lisp_readonly and marked for life.
11463 * lrecord.h (struct lrecord_implementation):
11464 Document flags better.
11465 * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
11466 * lrecord.h (DECLARE_LRECORD):
11467 * lrecord.h (XSETRECORD):
11468 * lrecord.h (RECORDP):
11469 * lrecord.h (RECORD_TYPEP):
11470 * lrecord.h (RECORD_MARKER): New.
11471 * lrecord.h (error_check_*):
11472 * lrecord.h (CONCHECK_NONRECORD):
11473 * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
11474 * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
11475 * lrecord.h (set_lheader_implementation):
11476 * lrecord.h (enum lrecord_type): New.
11477 * symeval.h (SYMBOL_VALUE_MAGIC_P):
11478 * alloc.c (disksave_object_finalization_1):
11479 * alloc.c (mark_object):
11480 * alloc.c (lrecord_type_index):
11481 * alloc.c (tick_lcrecord_stats):
11482 * alloc.c (Fgarbage_collect):
11483 * alloc.c (init_alloc_once_early):
11484 * alloc.c (pdump_load):
11485 * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
11486 * alloc.c (lrecord_type_index): Delete.
11487 Make lisp object type indexes be constant.
11488 Makes (byte-compile) 5% faster.
11489 Put all marker functions into their own array.
11490 Makes (garbage-collect) 5% faster.
11491 Optimize SYMBOL_VALUE_MAGIC_P.
11492 Makes (byte-compile) 2-3% faster.
11493 * config.h.in (gc_checking_assert): New.
11494 * alloc.c: Use gc_checking_assert().
11495 * .dbxrc: Make compatible with new object type implementation.
11496 * .gdbinit: Make compatible with new object type implementation.
11497 * alloc.c: Delete all symbols defined only for debugging, such as
11498 Lisp_Type_Vector and lrecord_charset.
11500 2000-02-21 Andy Piper <andy@xemacs.org>
11502 * gui-msw.c (Fmswindows_shell_execute): fix file location
11505 * buffer.c (Fkill_buffer): remove buffer from alist buffer
11506 unshowing so that set_window_buffer doesn't undo
11507 kill_buffer_hook's hard work.
11509 * glyphs-widget.c (tab_control_query_geometry): don't count the
11510 first item when calculating geometry.
11512 * glyphs.c (map_subwindow): remove redundant code.
11513 (update_frame_subwindows): be more circumspect about when to
11516 * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
11517 when items haven't changed. Update faces if faces have changed as
11518 well as just the widget face.
11519 (x_tab_control_update): Update faces if faces have changed as well
11520 as just the widget face.
11522 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11524 * device-msw.c: (mswindows_delete_device): Remove redundant DDE
11526 (build_syscolor_string): Use mswindows_color_to_string to try to
11528 (mswindows_device_system_metrics): Reverse the foreground and
11529 background colors so that they match the documentation.
11531 * objects-msw.c: (mswindows_X_color_map): tweak some values so
11532 they match the default Windows palette.
11533 (mswindows_color_to_string): New function.
11535 2000-02-21 Jonathan Harris <jhar@tardis.ed.ac.uk>
11537 * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
11539 2000-02-18 Olivier Galibert <galibert@pobox.com>
11541 * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
11542 WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
11544 * symbols.c (init_symbols_once_early): Removed obsolete
11545 DATA_SEG_BITS related kludge.
11546 (defvar_magic): Ditto.
11548 * malloc.c: Removed obsolete DATA_SEG_BITS
11550 * mem-limits.h: Ditto.
11552 * Makefile.in.in: Removed obsolete HAVE_SHM
11555 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11557 * device-msw.c (mswindows_delete_device): Free DDE string
11560 2000-02-16 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11562 * keymap.c (get_keyelt):
11563 * unexnt.c (unexec):
11564 * vm-limit.c (memory_warnings):
11565 * ntheap.c (recreate_heap):
11566 * ntheap.h (UNINIT_PTR):
11567 * select-msw.c (Fmswindows_get_clipboard):
11568 (Fmswindows_set_clipboard):
11569 * objects-msw.h (MSWINDOWS_BAD_HFONT):
11571 * menubar-msw.c (displayable_menu_item):
11573 * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
11574 * sysdep.c (sys_subshell):
11575 * process-nt.c (nt_create_process):
11576 * nt.c (normalize_filename):
11577 (dostounix_filename):
11578 (unixtodos_filename):
11579 * ntproc.c (win32_executable_type):
11580 * ntplay.c (play_sound_data_1):
11582 * editfns.c (get_home_directory):
11583 * event-msw.c (struct winsock_stream):
11584 (mswindows_dde_callback):
11585 * device-msw.c (msprinter_init_device):
11586 (msprinter_get_devmode_copy): Frobbed syntax frivolities.
11588 * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
11589 mswindows_clear_toolbar were swapped!
11591 * objects-msw.c:(colormap_t):
11593 * emacs.c (struct standard_args): Fixed const jumble.
11595 * glyphs-widget.c (update_widget): Fixed comparison notation.
11597 * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
11599 * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
11600 __declspec(noreturn) syntax.
11602 2000-02-19 Martin Buchholz <martin@xemacs.org>
11604 * eldap.c (Fldap_open):
11605 (Fldap_search_basic):
11608 Use new coding system conversion macros.
11610 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11612 * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
11614 1999-11-27 Oscar Figueiredo <Oscar.Figueiredo@di.epfl.ch>
11616 * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
11617 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11619 * eldap.c (Qadd, Qreplace): New constant symbols
11620 (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
11621 interruptions by XEmacs signals
11622 Remove unnecessary calls to slow_down_interrupts and
11623 speed_up_interrupts
11624 (Fldap_search_basic): Renamed from Fldap_search_internal
11625 Added new optional parameter VERBOSE that triggers the
11626 display of progress messages
11627 Remove unnecessary calls to slow_down_interrupts and
11628 speed_up_interrupts
11629 LDAP result code analysis rewritten
11630 (Fldap_add, Fldap_modify, Fldap_delete): New functions
11631 (syms_of_eldap): Define the new symbols and functions
11634 2000-02-17 Martin Buchholz <martin@xemacs.org>
11636 * realpath.c: Determine PATH_MAX maximally portably.
11638 * insdel.c (bytecount_to_charcount): Optimize.
11639 The function used to be optimized for entirely ASCII sequences.
11640 Now it is optimized for successive characters from the same
11641 charset. This also wins big for _mostly_ ASCII sequences.
11643 * fileio.c (Ffile_truename): convert return from realpath() using
11644 Qfile_name, not Qbinary. Fixes obvious bug with non-ASCII symlinks.
11645 - Rewrite GCPROing slightly.
11647 * sysdep.c (sys_open): Do filename conversion, like all other
11648 sys_* functions. Fixes bug:
11649 (let ((file-name-coding-system 'iso-8859-2))
11650 (write-region x y latin2-name))
11651 ==> writes filename using internal encoding.
11653 2000-02-18 Martin Buchholz <martin@xemacs.org>
11655 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
11656 * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
11657 * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
11658 * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
11659 * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
11660 * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
11661 * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
11662 (CONST_IF_NOT_DEBUG): Delete.
11663 * alloc.c (this_one_is_unmarkable): Delete.
11664 (mark_object): Don't check for this_one_is_unmarkable. Use the
11665 c_readonly flag instead.
11666 * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
11668 2000-02-18 Jonathan Harris <jhar@tardis.ed.ac.uk>
11670 * event-msw.c (mswindows_drain_windows_queue):
11671 (emacs_mswindows_handle_magic_event): Remove attempt to optimise
11672 away redundant repaint events.
11674 2000-02-17 Andy Piper <andy@xemacs.org>
11676 * redisplay.h: declare mark_redisplay_structs.
11678 * redisplay.c (redisplay_window):
11679 (redisplay_frame): don't check subwindows_state_changed.
11680 (mark_redisplay): mark gutters here.
11682 * glyphs.c: (instantiate_image_instantiator): always layout if we
11683 haven't done so already.
11684 (allocate_image_instance): don't mark as dirty.
11685 (update_subwindow): bind inhibit_quit.
11687 * gutter.c (mark_gutters): new function.
11689 * glyphs-x.c (x_update_widget): Always resize to get round a
11692 * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
11693 breaking absolutely everything.
11695 * gutter.h: declare mark_gutters.
11697 2000-02-16 Martin Buchholz <martin@xemacs.org>
11699 * XEmacs 21.2.29 is released.
11701 2000-02-15 Olivier Galibert <galibert@pobox.com>
11703 * fns.c (size_bit_vector): Fix computation of the size.
11705 2000-02-15 Martin Buchholz <martin@xemacs.org>
11707 * *.[ch]: Change CONST to const globally.
11708 find -name '*.[ch]' | \
11709 xargs global-replace \
11710 's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
11711 - Remove vestigial references to CONST_IS_LOSING
11713 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11715 * event-msw.c (mswindows_drain_windows_queue): Remove hack to
11716 bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
11717 events instead of dispatching them directly.
11718 (mswindows_handle_paint): New function to do repainting.
11719 (mswindows_wnd_proc):
11720 (emacs_mswindows_handle_magic_event): Call above function.
11722 2000-02-13 Jonathan Harris <jhar@tardis.ed.ac.uk>
11724 * objects-msw.c (mswindows_create_font_variant): Return the new
11726 (initialize_font_instance): Get font metrics from the underlined
11727 variant of the font to cope with the case where the underlined
11728 font has a bigger descent.
11730 2000-02-08 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
11732 * gui.c (gui_item_accelerator): Return the first underlined
11733 character in item name.
11735 2000-02-11 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
11737 * lisp.h: Added Qprinter.
11739 * general.c (syms_of_general): Initialized it.
11741 * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
11743 (get_frame_compdc): Made inline.
11745 * console.h (struct console_methods): Added eject_page method.
11747 * frame.h: Added FRAME_DISPLAY_P and friends.
11748 Aligned backslahes in many macros in more readable fashion.
11749 Added page_number to struct frame, and an accessor macro
11752 * defice.h: Added DEVICE_DISPLAY_P and friends.
11754 * device.c (Fdevice_printer_p): Used these.
11756 * frame.c (allocate_frame_core): Initialize page number.
11757 (Fprint_job_page_number):
11758 (Fprint_job_eject_page): Implemented.
11760 * frame-msw.c (msprinter_eject_page): Added method.
11761 (msprinter_start_page): Added.
11763 * window.c (Fwindow_truncated_p): Fixed docstring.
11764 (Fwindow_last_line_visible_height): Implemented.
11766 2000-02-09 Yoshiki Hayashi <yoshiki@xemacs.org>
11768 * frame.c (change_frame_size_1): Undo 2000-02-03 change.
11770 1999-12-20 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
11772 * syntax.c (scan_words): Always advance at least one character.
11774 2000-02-13 Andy Piper <andy@xemacs.org>
11776 * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
11777 to make sure the glyph is in the cachels.
11779 * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
11780 global image instance flag.
11781 (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
11782 (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
11784 * glyphs.c (allocate_image_instance): set dirty bits correctly.
11785 (Fset_image_instance_property): mark layout as changed.
11786 (invalidate_glyph_geometry_maybe): mark layout as changed.
11787 (glyph_width): use new NEEDS_LAYOUT macro.
11788 (glyph_ascent): ditto.
11789 (glyph_descent): ditto.
11790 (glyph_height): ditto.
11791 (image_instance_layout): mark layout as clean after laying out.
11792 (update_subwindow): don't mark layout as clean here.
11794 * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
11795 should no longer be needed.
11797 * glyphs-x.c (x_update_widget): sanitize asserts.
11798 (x_finalize_image_instance): sanitize assignment to widgets.
11800 * glyphs-widget.c (widget_instantiate): don't need to clear the
11803 2000-02-13 Martin Buchholz <martin@xemacs.org>
11805 * sysdep.c (getcwd): Use standard prototype.
11806 * sysdep.h (getcwd): Use standard prototype.
11808 * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
11809 (sequence, start, end).
11810 Remove redundant type checking.
11811 (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
11812 view of `caller-protects') to avoid a crash where the real fix was
11815 2000-02-12 Martin Buchholz <martin@xemacs.org>
11817 * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
11819 * s/sol2.h: Remove feature macro initialization.
11821 * alloc.c (alloc_lcrecord): Add more type checking assertions.
11822 (vector_hash): New. Code from internal_hash.
11824 Fix up allocation subsystem comments.
11826 * config.h.in: Add __EXTENSIONS__ for Solaris.
11828 * systime.h (EMACS_GETTIMEOFDAY): New.
11829 (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
11830 Remove Solaris-specific code.
11831 Use void* for the (ignored) second arg for gettimeofday().
11833 * elhash.c (hash_table_hash): Implement it, finally.
11834 * elhash.c: Use hashcode_t.
11836 * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
11837 * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
11839 * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
11840 * fns.c (size_bit_vector):
11841 * alloc.c (size_vector):
11842 (make_vector_internal):
11843 (make_bit_vector_internal):
11844 (sweep_bit_vectors_1):
11845 Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
11847 2000-02-10 Martin Buchholz <martin@xemacs.org>
11849 * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
11850 Include strings.h to avoid warnings for bzero and strcasecmp.
11852 2000-02-10 Olivier Galibert <galibert@pobox.com>
11854 * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
11855 * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
11857 * fns.c (size_bit_vector): New. Declare bit vectors as a
11860 2000-02-10 Olivier Galibert <galibert@pobox.com>
11862 * symeval.h (struct symbol_value_magic): Remove "next" kludge and
11863 use a value field instead.
11864 (symbol_value_forward_forward): Use value field.
11865 (DEFVAR_SYMVAL_FWD): Use value field.
11866 (DEFVAR_SYMVAL_FWD_INT): Added. Dumps the int with dumpopaque.
11867 (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
11868 (DEFVAR_CONST_INT): Ditto.
11869 (DEFVAR_BOOL): Ditto.
11870 (DEFVAR_CONST_BOOL): Ditto.
11871 (DEFVAR_INT_MAGIC): Ditto.
11872 (DEFVAR_BOOL_MAGIC): Ditto.
11874 * symbols.c (guts_of_unbound_marker): Use value field.
11875 * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
11876 * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
11878 * lisp.h: Declare dumpopaque and noninteractive1.
11880 * alloc.c (dumpopaque): Added.
11881 (pdump_dump_opaquevec): Added.
11882 (pdump): Call pdump_dump_opaquevec to dump opaque data.
11883 (pdump_load): Reload opaque data. Sync noninteractive1 with
11886 2000-02-10 Andy Piper <andy@xemacs.org>
11888 * glyphs.c (image_instance_layout): if the size changes, mark it
11891 * redisplay-output.c (redisplay_output_layout): Update the
11893 (redisplay_output_subwindow): ditto.
11895 * glyphs.c (update_subwindow): make sure we reset flags for
11896 layouts as well as everything else.
11898 * glyphs-widget.c (layout_layout): don't need to set the instances
11901 2000-02-09 Martin Buchholz <martin@xemacs.org>
11903 * device-x.c (x_init_device): Wrap calls to dll_* in HAVE_SHLIB,
11904 not HAVE_DLOPEN, which is a lower-level thing.
11906 * .cvsignore: Ignore gmon.out
11908 2000-02-09 Hamish Macdonald <hamishm@lucent.com>
11910 * .cvsignore: Ignore portable dumper xemacs.dmp file
11912 2000-02-09 Andy Piper <andy@xemacs.org>
11914 * redisplay-output.c (redisplay_output_layout): be more clever
11915 about when we output based on the changed flags.
11917 * glyphs.h (struct image_instantiator_methods): add update_method.
11918 (struct Lisp_Image_Instance): add changed flags. Declare new
11919 macros for manipulating them.
11921 * glyphs.c (allocate_image_instance): renamed glyph -> parent.
11922 (image_instance_parent_glyph): find an image_instance's parent
11923 glyph or image_instance.
11924 (image_instance_layout): mark the size as changed.
11925 (set_image_instance_dirty_p): new function. mark an image
11926 instance, plus all of its parents, as dirty.
11927 (Fset_image_instance_property): use it.
11928 (Fglyph_animated_timeout_handler): use it.
11929 (update_subwindow): call update_widget and device methods for
11930 update_subwindow. Mark all changed flags as clean.
11931 (Fresize_subwindow): mark size as changed.
11933 * glyphs-x.c (x_finalize_image_instance): try and detect gc
11935 (x_update_subwindow): only resize subwindows here.
11936 (x_update_widget): new function. Update all changed properties of
11938 (x_resize_subwindow): deleted.
11939 (x_widget_set_property): deleted.
11940 (x_progress_gauge_set_property): deleted.
11941 (x_progress_gauge_update): new function. Implement recorded
11943 (x_tab_control_update): ditto.
11944 (x_tab_control_set_property): deleted.
11945 (console_type_create_glyphs_x): declare new functions.
11946 (image_instantiator_format_create_glyphs_x): ditto.
11948 * glyphs-widget.c (widget_set_property): mark text changed.
11949 (update_widget): new function. Update properties of a widget.
11950 (widget_instantiate): for layouts make sure we set their
11951 children's parent correctly.
11952 (tab_control_set_property): new function. Record changes that will
11953 take place under redisplay's control.
11954 (progress_gauge_set_property): ditto.
11955 (image_instantiator_progress_guage): declare new functions.
11956 (image_instantiator_tab_control): ditto.
11958 * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
11960 (mswindows_update_widget): new function. Update all properties on
11961 a widget that have changed.
11962 (mswindows_button_update): new function. Update a button's set
11964 (mswindows_tab_control_update): new function. Update the items in
11966 (mswindows_tab_control_set_property): deleted.
11967 (mswindows_progress_gauge_update): new function. Update the
11968 progress gauge's progress.
11969 (mswindows_widget_set_property): deleted. This is all done
11970 asynchronously now.
11971 (mswindows_progress_gauge_set_property): ditto.
11972 (console_type_create_glyphs_mswindows): declare new methods.
11973 (image_instantiator_format_create_glyphs_mswindows): ditto.
11975 * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
11976 (msprinter_set_frame_properties): ditto.
11978 * console.h (struct console_methods): Add update_widget_method.
11980 2000-02-09 Andy Piper <andy@xemacs.org>
11982 * gui-msw.c (Fmswindows_shell_execute): Make
11983 mswindows-shell-execute industrial strength.
11985 2000-02-08 Martin Buchholz <martin@xemacs.org>
11987 * lrecord.h: Make macro argument `props' match member function `plist'.
11990 * fns.c (Fremprop):
11991 * fns.c (Fobject_plist):
11994 Object property list frobbing cleanup.
11995 - Allow any lisp object (compared with `eq'), not just symbols, as
11996 keys in object plists.
11997 - Move symbol plist frobbing into symbols.c, where it belongs.
11998 - Move string plist frobbing into alloc.c, where it belongs.
11999 - Everything's an lrecord now, so no need to test for symbolp, etc.
12000 - Fix up doc strings to refer to PROPERTY, not PROPNAME.
12002 * extents.c: Reorder code to remove declarations.
12004 * frame.h (store_in_alist): Remove useless declaration.
12006 2000-02-07 Martin Buchholz <martin@xemacs.org>
12008 * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
12009 * config.h.in: Add HAVE_XCONVERTCASE.
12011 2000-02-07 Andy Piper <andy@xemacs.org>
12013 * glyphs.c (image_instance_layout): undo 2000-01-29 change since
12014 it breaks many things.
12016 2000-02-07 Jan Vroonhof <vroonhof@math.ethz.ch>
12018 * src/syntax.h (SYNTAX_START_P): Check whether the two chars
12019 actually can start a common comment type.
12020 * src/syntax.h (SYNTAX_END_P): ditto for end.
12022 2000-02-07 Martin Buchholz <martin@xemacs.org>
12024 * XEmacs 21.2.28 is released.
12026 2000-02-06 Martin Buchholz <martin@xemacs.org>
12028 * event-Xt.c (x_keysym_to_character): New.
12029 (maybe_define_x_key_as_self_inserting_character): New.
12030 (x_has_keysym): New.
12031 Auto-define all keys on the keyboard as self-insert-key.
12033 2000-02-02 Martin Buchholz <martin@xemacs.org>
12035 * menubar.c (vars_of_menubar): A small code simplification.
12037 * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
12040 * ExternalClient.c:
12041 * EmacsShell-sub.c:
12044 Use consistent style for specifying X resources.
12046 * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
12047 This makes (dontusethis-set-symbol-value-handler) actually usable.
12049 * lrecord.h (lrecord_decription_type):
12050 * alloc.c (pdump_register_sub):
12053 Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
12054 Comply with XEmacs coding style.
12055 All lrecord descriptions updated to use XD_LISP_OBJECT with 2
12056 args, and XD_LISP_OBJECT_ARRAY with 3 args.
12058 * keymap.c (Faccessible_keymaps):
12059 Make (accessible-keymaps map "\C-h") do the Right Thing.
12060 Make (accessible-keymaps map []) do the Right Thing.
12061 Make (accessible-keymaps map "") do the Right Thing.
12062 (check_keymap_definition_loop): New function.
12063 (keymap_store_internal): Keep luser from shooting self in foot,
12064 via (define-key ctl-x-4-map "p" global-map).
12065 Remove fullness slot from struct Lisp_Keymap, since hash tables
12067 (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
12069 2000-01-30 Martin Buchholz <martin@xemacs.org>
12071 * redisplay.c (init_redisplay): Fix small memory leak.
12073 * elhash.c (pdump_reorganize_hash_table):
12074 Rename from reorganize_hash_table. Change prototype.
12075 Reuse the original memory for hentries. Save 100k.
12076 * alloc.c (PDUMP_READ): new macro.
12077 * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
12078 * alloc.c: No need to #ifndef before #undef.
12080 * print.c: Allow debug_print() to print readably by modifying
12081 debug_print_readably. Use consistent variable names.
12083 * .dbxrc: Try to get things to work even if stopped in a function
12084 without source available by explicitly specifying source files.
12085 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12087 * unexnt.c (_start): Removed bogus code which caused loading heap
12088 from differrent executable file.
12089 Removed bogus assignment to _fmode, which caused inconsistencies.
12091 2000-02-03 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12093 * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
12094 Have spawnve encapsulation regard DONT_ENCAPSULATE.
12095 Do not preliminary `#define signal sigset'.
12097 * systime.h: Do not prototype environ on windows nt and cygwin,
12098 this conflicts with system header.
12100 * syssignal.h: Use correct define for WINDOWSNT
12102 * sysdep.h: Do not prototype environ on windows nt, this conflicts
12103 with system header.
12105 * sysdep.c (near start of file): Fixed commentary and rearranged
12106 ifdefs in readable order.
12107 (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
12110 (end_of_data): Do not compile in if using PDUMP.
12112 * symsinit.h: Prototyped vars_of_nt().
12114 * ntproc.c (windows9x_p): Added, instead of os_subtype.
12115 (find_child_console): Use it.
12116 (sys_kill): Use it.
12118 * ntheap.h: Do not extern os_subtype.
12120 * ntheap.c (cache_system_info): Do not cache unneeded:
12121 nt_major_version, nt_minor_version and os_subtype.
12122 (recreate_heap): Do not compile in when PDUMPing.
12124 * nt.c (geteuid and friends): Use the new varibale
12125 nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
12126 (init_user_info): Removed the above mentioned hackery.
12127 (fstat, stat): Do not compile in if using MSVC 5.0 and above -
12128 stat has been fixed in the C runtime.
12129 (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
12131 * file-coding.c (struct file_coding_dump): Do not define
12132 ucs_to_mule_table in the struct if not MULE.
12133 (struct struct lrecord_description fcd_description_1): Do not dump
12136 * emacs.c (main_1): Call vars_of_nt().
12137 (right before Fdump_emacs_data): Don't need lastfile if using both
12138 portabe dumper and system malloc.
12140 * alloc.c (Fmemory_limit): Conditionalized out.
12141 (pdump): Use OPEN_BINARY for the portable dump file.
12142 (pdump_load): Ditto.
12144 2000-02-02 Mike Alexander <mta@arbortext.com>
12146 * nt.c (convert_time): Set tm_isdst before calling mktime and
12147 avoid calling it at all if the compiler supports 64 bit integers.
12148 Also initialize utc_base_ft before using it.
12150 2000-02-03 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
12152 * frame.c (change_frame_size_1): Take f->internal_border_width
12153 into consideration when calculating the width of the frame.
12155 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12157 * window.c (frame_min_height):
12158 (frame_size_valid_p):
12159 (frame_pixsize_valid_p): Added.
12160 (check_frame_size): Generalized.
12162 * window.h: Prototyped the above.
12165 * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
12166 Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
12167 Deleted Vwin32_* and Vbinary_process_* unused variables.
12169 * device-msw.c (msprinter_init_device): Do not get printer font
12170 list; Added DEVMODE functions.
12172 * frame-msw.c: Added lots of printer code.
12174 * faces.c: Moved 'left-margin and 'right-margin defsymbols to
12177 * console-msw.h: Added more msprinter device private slots.
12179 2000-02-01 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12181 * event-msw.c (key_needs_default_processing_p): Added.
12182 (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
12184 2000-01-29 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12186 * glyphs.c (image_instance_layout): Mark image instance as clean
12188 (glyph_dirty_p): Removed redundant function.
12189 (invalidate_glyph_geometry_maybe): Added.
12190 (update_glyph_cachel_data): Call it.
12192 * glyphs.h: Prototyped it.
12194 * redisplay.c (add_glyph_rune): Call it.
12195 (redisplay_window): Reset glyphs cachels when frame faces have
12196 changed, thus forcing recomputation of built-in border glyphs.
12198 2000-01-30 Martin Buchholz <martin@xemacs.org>
12200 * Makefile.in.in: Make portable dumper and purify play well together.
12201 Add imperfect, but better than nothing, support for pdump.
12202 Remove xemacs.dmp when temacs is re-generated.
12203 Don't ignore errors when dumping xemacs.
12205 * symbols.c (maybe_call_magic_handler): Remove one magic number.
12207 2000-01-28 Andy Piper <andy@xemacs.org>
12209 * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
12210 (setup_normal_frame): ditto.
12211 (setup_frame_without_minibuffer): ditto.
12212 (setup_minibuffer_frame): ditto.
12213 (delete_frame_internal): ditto.
12214 (Fmake_frame_invisible): ditto.
12215 (Ficonify_frame): ditto.
12217 * window.h: change Fset_window_buffer signature.
12219 * window.c (Fsplit_window): Use new Fset_window_buffer signature.
12220 (Fset_window_buffer): allow recording of buffer if the window is
12221 the selected window.
12222 (window_loop): Use new Fset_window signature.
12224 2000-01-23 Daniel Pittman <daniel@danann.net>
12226 * config.h.in: Added template for `HAVE_ATHENA_3D'
12228 2000-01-29 Andy Piper <andy@xemacs.org>
12230 * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
12232 * gutter.c (output_gutter): Don't output if the window isn't live.
12234 2000-01-28 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12236 * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
12237 of 01/12/00: Moved SetFocus back here where it belongs.
12239 2000-01-23 Andy Piper <andy@xemacs.org>
12241 * s/cygwin32.h: declare printer things.
12243 2000-01-26 Andy Piper <andy@xemacs.org>
12245 * select.c (Fown_selection_internal): GCPRO bug fix from Mike
12248 2000-01-24 Andy Piper <andy@xemacs.org>
12250 * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
12251 (mswindows_button_instantiate): Make sure glyph is a pixmap.
12253 * glyphs-widget.c (widget_instantiate): Avoid shadows.
12255 * frame-msw.c (msprinter_init_frame_3): Nuke warning.
12257 * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
12259 * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
12260 (mswindows_output_display_block): Avoid local shadows.
12262 * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
12263 (mswindows_enqueue_mouse_button_event): ditto.
12264 (mswindows_handle_gui_wm_command): remove declaration.
12266 * console-msw.c (mswindows_canonicalize_console_connection): Avoid
12269 * console-msw.h: Avoid shadows.
12270 (mswindows_get_toolbar_button_text):
12271 (emacs_mswindows_create_stream_pair):
12272 (emacs_mswindows_delete_stream_pair):
12273 (mswindows_handle_toolbar_wm_command): declare.
12275 * device-msw.c (build_syscolor_string): Avoid shadows.
12277 2000-01-23 Andy Piper <andy@xemacs.org>
12279 * glyphs-widget.c (widget_instantiate): reverse the items for
12280 layouts so that children are in the expected order.
12282 2000-01-28 Martin Buchholz <martin@xemacs.org>
12284 * ralloc.c: safe_bcopy ==> memmove
12285 * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
12286 * s/msdos.h: Remove BCOPY macros.
12287 * insdel.c (gap_right): Remove BCOPY conditional code.
12288 * insdel.c (gap_left): Remove BCOPY conditional code.
12289 XEmacs demands a working ANSI C compiler - hence memmove.
12291 * regex.c (regex_compile): Remove accidental use of trigraphs.
12293 2000-01-27 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12295 * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
12298 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12300 * event-msw.c (mswindows_drain_windows_queue): Added the
12302 (mswindows_need_event): Commented the call to
12303 mswindows_drain_windows_queue().
12304 (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
12307 * console-msw.h: Moved a few function prototypes here from
12310 * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
12311 parameter from unsigned short to unsigned long.
12312 (Fmswindows_shell_execute): Added return value.
12314 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12316 * sysdep.c (init_system_name):
12317 process-unix.c (unix_canonicalized_host_name):
12318 Don't call freeaddrinfo() if getaddrinfo() fails.
12320 * process-unix.c (unix_open_unix_network_stream):
12321 Moved the code to get a port # into address loop.
12323 2000-01-27 Martin Buchholz <martin@xemacs.org>
12325 * buffer.c (reinit_vars_of_buffer):
12326 The right place to initialize conversion_in_dynarr and
12327 conversion_out_dynarr.
12329 * alloc.c (pdump): Use the real open() till sys_open() is functional.
12331 * process-unix.c (unix_canonicalize_host_name): Muleize.
12332 (unix_open_network_stream): Muleize.
12334 * buffer.h: Fix up prototypes for ralloc.c functions.
12336 2000-01-27 URA Hiroshi <ura@hiru.aoba.yokohama.jp>
12337 * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
12338 * sysdep.c: In init_system_name(), add code to use getaddrinfo()
12339 instead of gethostbyname()
12340 * process-unix.c: In unix_canonicalize_host_name() and
12341 unix_open_network_stream(), add code to use getaddrinfo()
12342 instead of gethostbyname().
12344 2000-01-27 Daniel Pittman <daniel@danann.net>
12346 * device-x.c (x_init_device): Warn at run-time if using Athena 3d
12347 libs when built with flat Athena.
12349 2000-01-27 Martin Buchholz <martin@xemacs.org>
12351 * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
12352 Use coding standards for function prototypes.
12354 2000-01-25 Martin Buchholz <martin@xemacs.org>
12356 * dialog-msw.c (push_lisp_string_as_unicode):
12357 * doc.c (unparesseuxify_doc_string):
12358 * dired.c (Fuser_name_completion_1):
12359 * dired.c (Fuser_name_all_completions):
12360 * dired.c (free_user_cache):
12361 * dired.c (user_name_completion):
12362 * console-x.c (get_display_arg_connection):
12363 * minibuf.c (clear_echo_area_internal):
12364 * minibuf.c (echo_area_append):
12365 * eldap.c (Fldap_open):
12366 * eldap.c (Fldap_search_internal):
12367 * frame-x.c (x_set_frame_text_value):
12368 * frame-x.c (x_set_frame_properties):
12369 * frame-x.c (x_create_widgets):
12370 * redisplay-tty.c (term_get_fkeys_1):
12371 * objects-x.c (x_parse_nearest_color):
12372 * objects-x.c (x_valid_color_name_p):
12373 * objects-x.c (x_initialize_font_instance):
12374 * objects-x.c (x_list_fonts):
12375 * objects-x.c (x_find_charset_font):
12376 * tooltalk.c (Fadd_tooltalk_message_arg):
12377 * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12378 * tooltalk.c (Fadd_tooltalk_pattern_arg):
12379 * process-unix.c (unix_create_process):
12380 * ntproc.c (sys_spawnve):
12381 * sound.c (Fplay_sound_file):
12382 * sound.c (Fplay_sound):
12383 * buffer.c (init_initial_directory):
12384 * buffer.c (init_buffer):
12385 * editfns.c (init_editfns):
12386 * editfns.c (Ftemp_directory):
12387 * editfns.c (Fuser_full_name):
12388 * editfns.c (uncache_home_directory):
12389 * editfns.c (get_home_directory):
12390 * editfns.c (Fuser_home_directory):
12391 * editfns.c (Fformat_time_string):
12392 * editfns.c (Fcurrent_time_string):
12393 * gui-x.c (button_item_to_widget_value):
12394 * database.c (Fopen_database):
12395 * event-Xt.c (x_to_emacs_keysym):
12396 * event-Xt.c (x_event_to_emacs_event):
12397 * event-Xt.c (describe_event_window):
12398 * event-msw.c (mswindows_wnd_proc):
12399 * glyphs-eimage.c (jpeg_instantiate):
12400 * glyphs-eimage.c (gif_instantiate):
12401 * glyphs-eimage.c (png_instantiate):
12402 * glyphs-eimage.c (tiff_instantiate):
12403 * glyphs-x.c (xbm_instantiate_1):
12404 * glyphs-x.c (x_xbm_instantiate):
12405 * glyphs-x.c (x_xface_instantiate):
12406 * glyphs-x.c (autodetect_instantiate):
12407 * glyphs-x.c (cursor_font_instantiate):
12408 * glyphs-x.c (x_widget_instantiate):
12409 * glyphs-x.c (x_widget_set_property):
12410 * glyphs-x.c (x_widget_property):
12411 * glyphs-x.c (BUILD_GLYPH_INST):
12412 * print.c (write_string_to_stdio_stream):
12413 * print.c (output_string):
12414 * print.c (Falternate_debugging_output):
12415 * print.c (Fexternal_debugging_output):
12416 * glyphs-msw.c (extract_xpm_color_names):
12417 * glyphs-msw.c (mswindows_xpm_instantiate):
12418 * glyphs-msw.c (bmp_instantiate):
12419 * glyphs-msw.c (resource_name_to_resource):
12420 * glyphs-msw.c (mswindows_resource_instantiate):
12421 * glyphs-msw.c (xbm_instantiate_1):
12422 * glyphs-msw.c (mswindows_xbm_instantiate):
12423 * glyphs-msw.c (mswindows_xface_instantiate):
12424 * glyphs-msw.c (mswindows_widget_instantiate):
12425 * glyphs-msw.c (add_tree_item):
12426 * glyphs-msw.c (add_tab_item):
12427 * glyphs-msw.c (mswindows_combo_box_instantiate):
12428 * glyphs-msw.c (mswindows_widget_property):
12429 * glyphs-msw.c (mswindows_combo_box_property):
12430 * glyphs-msw.c (mswindows_widget_set_property):
12431 * console.c (stuff_buffered_input):
12432 * objects-msw.c (mswindows_initialize_color_instance):
12433 * objects-msw.c (mswindows_valid_color_name_p):
12434 * objects-msw.c (mswindows_list_fonts):
12435 * objects-msw.c (mswindows_font_instance_truename):
12436 * bytecode.c (optimize_compiled_function):
12437 * select-x.c (symbol_to_x_atom):
12438 * select-x.c (x_atom_to_symbol):
12439 * select-x.c (hack_motif_clipboard_selection):
12440 * select-x.c (selection_data_to_lisp_data):
12441 * select-x.c (lisp_data_to_selection_data):
12442 * select-x.c (Fx_get_cutbuffer_internal):
12443 * select-x.c (Fx_store_cutbuffer_internal):
12444 * buffer.h (TO_EXTERNAL_FORMAT): New function.
12445 * buffer.h (TO_INTERNAL_FORMAT): New function.
12446 * emacs.c (make_arg_list_1):
12447 * emacs.c (make_argc_argv):
12448 * emacs.c (main_1):
12449 * emacs.c (Fdump_emacs):
12450 * emacs.c (split_string_by_emchar_1):
12455 * device-x.c (x_init_device):
12456 * device-x.c (Fx_valid_keysym_name_p):
12457 * device-x.c (Fx_get_font_path):
12458 * device-x.c (Fx_set_font_path):
12459 * glyphs.c (bitmap_to_lisp_data):
12460 * glyphs.c (pixmap_to_lisp_data):
12461 * alloc.c (make_ext_string): Use coding system arguments. Update
12463 * alloc.c (build_string):
12464 * callproc.c (child_setup):
12465 * callproc.c (init_callproc):
12466 * fileio.c (lisp_strerror):
12467 * fileio.c (directory_file_name):
12468 * fileio.c (Fexpand_file_name):
12469 * fileio.c (Ffile_truename):
12470 * fileio.c (Fsysnetunam):
12471 * fileio.c (Fdo_auto_save):
12472 * sysdep.c (sys_readdir):
12473 * tests.c: New file. Allow adding C tests.
12474 Replace GET_* macros with a more comprehensible and flexible
12475 interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
12477 Any coding system can be used to do format conversion.
12478 Eliminate enum external_data_format.
12479 Eliminate convert_to_external_format.
12480 Eliminate convert_to_internal_format.
12481 Make sure file-name, keyboard, terminal, and ctext are always
12482 defined as coding systems or aliases. Make
12483 file-name-coding-system, terminal-coding-system, and
12484 keyboard-coding-system magical variables that are equivalent to
12485 defining the corresponding coding system aliases.
12487 * file-coding.c (Fcoding_system_canonical_name_p): New function.
12488 * file-coding.c (Fcoding_system_alias_p): New function.
12489 * file-coding.c (Fcoding_system_aliasee): New function.
12490 * file-coding.c (append_suffix_to_symbol): New function.
12491 * file-coding.c (dangling_coding_system_alias_p): New function.
12492 * file-coding.c (Ffind_coding_system):
12493 * file-coding.c (Fcopy_coding_system):
12494 * file-coding.c (encode_coding_no_conversion):
12495 * file-coding.c (syms_of_file_coding):
12496 * file-coding.c (vars_of_file_coding):
12497 Rewrite coding system alias code.
12498 Allow nested aliases, like symbolic links.
12499 Allow redefinition of coding system aliases.
12500 Prevent existence of dangling coding system aliases.
12502 * dired.c (Fuser_name_completion_1):
12503 * dired.c (Fuser_name_all_completions):
12504 A crash would happen if user did QUIT in the middle of building
12505 user_name_cache. Remove redundant code in mainline and unwind_protect.
12508 * dynarr.c (Dynarr_min_size): Make static. Increase value to 8.
12510 * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
12511 an unsigned char *. Update all callers.
12513 2000-01-26 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12515 * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
12517 2000-01-25 Martin Buchholz <martin@xemacs.org>
12519 * elhash.c (hentry_description): Use more portable definition.
12520 (resize_hash_table): Initialize new hentries using
12521 xnew_array_and_zero, thereby simplifying the code.
12523 * mule-charset.c (make_charset): Make sure entire object is
12524 initialized, to avoid Purify warnings.
12526 * alloc.c (resize_string): Fix unlikely crash with big strings.
12528 2000-01-24 Martin Buchholz <martin@xemacs.org>
12530 * realpath.c (xrealpath):
12531 Don't call getwd().
12533 2000-01-25 Martin Buchholz <martin@xemacs.org>
12535 * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
12537 1999-12-28 Max Matveev <max@melbourne.sgi.com>
12539 * unexelfsgi.c (unexec): Change the way we decide which segment
12540 should be extended.
12542 Assumption that .bss section should be outside the PT_LOADable
12543 segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
12544 it's present) is inside the 'data' segment. This would fail the
12545 test which was used to find a segment to grow and cover new
12546 heap. Instead of this assumption, I created another one - on IRIX
12547 the segment to grow should start below .bss and it's address
12548 should extent above the end of .bss. Once this segment is
12549 identified, it's grown to accommodate the new heap and new
12550 zero-length .bss section is added at the end of .data2.
12552 2000-01-25 Martin Buchholz <martin@xemacs.org>
12554 * eval.c (Feval): Wrong number of arguments should use original
12555 function, not the indirect_function version of it.
12557 2000-01-24 Yoshiki Hayashi <yoshiki@xemacs.org>
12559 * glyphs-x.c (x_button_instantiate): Don't add image if
12560 it is not a pixmap.
12561 (x_locate_pixmap_file): Call Fexpand_file_name when file name
12564 2000-01-21 Yoshiki Hayashi <yoshiki@xemacs.org>
12566 * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
12568 (DEFVAR_INT_MAGIC): Ditto.
12569 (DEFVAR_BOOL_MAGIC): Ditto.
12570 * glyphs.h: Reindent backslash.
12572 2000-01-24 Martin Buchholz <martin@xemacs.org>
12574 * glyphs-widget.c (layout_query_geometry):
12575 (layout_layout): Use correct types for gheight, gwidth.
12577 2000-01-24 Martin Buchholz <martin@xemacs.org>
12579 * EmacsManager.c (QueryGeometry): Purified.
12581 2000-01-23 Martin Buchholz <martin@xemacs.org>
12583 * alloc.c (make_float): Make sure entire object is initialized, to
12584 avoid Purify warnings.
12585 (pdump_register_sub): Remove useless assignment.
12586 (pdump): Use xmalloc, not malloc.
12587 (pdump_load): Use xmalloc, not malloc.
12589 2000-01-23 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12596 * sysdep.c: Removed redundant #include <windows.h>
12598 2000-01-22 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12600 * frame.c (delete_frame_internal): Do not delete device when its
12601 implementation so declares.
12602 (delete_frame_internal): Set device selected frame to nil when
12603 last frame goes away.
12605 * device-msw.c (msprinter_device_system_metrics): Implemented.
12606 (mswindows_device_system_metrics): Added 'device-dpi property.
12608 * device.c: (Fdevice_printer_p): Added.
12609 Added 'offset-workspace device metric.
12611 * console.h (device_metrics): Declared DM_offset_workspace.
12613 2000-01-23 Martin Buchholz <martin@xemacs.org>
12615 * fileio.c (Ffile_truename): Remove pointless and confusing
12616 initialization of elen.
12618 * glyphs-widget.c: Compiler warning fixes.
12620 2000-01-23 Gunnar Evermann <ge204@eng.cam.ac.uk>
12622 * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
12623 instead of a Lisp_Object as argument to make it consistent with
12624 the other LIVE_P macros.
12625 (CHECK_LIVE_PROCESS): New macro.
12627 * process.c: Declare Qprocess_live_p.
12628 (Fprocess_live_p): New function.
12629 (create_process): Use PROCESS_LIVE_P.
12630 (read_process_output): Ditto.
12631 (set_process_filter): Ditto.
12632 (Fdelete_process): Ditto.
12633 (kill_buffer_processes): Ditto
12634 (process_send_signal): Use CHECK_LIVE_PROCESS.
12635 (Fprocess_input_coding_system): Check whether process is still
12636 alive (fix PR#1061).
12637 (Fprocess_output_coding_system): Ditto.
12638 (Fprocess_coding_system): Ditto.
12639 (Fset_process_input_coding_system): Ditto.
12640 (Fset_process_output_coding_system): Ditto.
12642 2000-01-23 Andy Piper <andy@xemacs.org>
12644 * glyphs.h (struct Lisp_Image_Instance): change format by unifying
12647 * glyphs.c (mark_image_instance): take into account changed
12648 image_instance format.
12649 (image_instance_equal): ditto.
12650 (image_instance_hash): ditto.
12652 * glyphs-widget.c (widget_instantiate): Incorporate layout
12653 instantiation here. Delay layout of the layout until later.
12654 (layout_instantiate): deleted.
12655 (layout_query_geometry): new function. get the geometry of a
12657 (layout_layout): layout a layout dynamically.
12658 (image_instantiator_widget): New function - splitting up
12659 image_instantiator_format_create_glyphs_widget for netwinder
12661 (image_instantiator_buttons):
12662 (image_instantiator_edit_fields):
12663 (image_instantiator_combo_box):
12664 (image_instantiator_scrollbar):
12665 (image_instantiator_progress_guage):
12666 (image_instantiator_tree_view):
12667 (image_instantiator_tab_control):
12668 (image_instantiator_labels):
12669 (image_instantiator_layout): ditto.
12670 (image_instantiator_format_create_glyphs_widget): Call preceding
12673 2000-01-22 Martin Buchholz <martin@xemacs.org>
12675 * process.c (Fset_process_coding_system):
12676 * device-x.c (Fx_keysym_hash_table):
12679 * lstream.c (Lstream_write): Return documented value, not 0.
12681 * fileio.c (directory_file_name):
12682 (Fsubstitute_in_file_name):
12683 (Fsubstitute_insert_file_contents_internal):
12684 (Fwrite_region_internal):
12689 Remove vestigial APOLLO-conditional code.
12691 2000-01-21 Martin Buchholz <martin@xemacs.org>
12693 * getpagesize.h: Add guard macros.
12694 * libsst.h: Add guard macros.
12695 * libst.h: Add guard macros.
12696 * line-number.h: Add guard macros.
12697 * ndir.h: Add guard macros.
12698 * sysfloat.h: Add guard macros.
12699 * sysfile.h: Add guard macros.
12700 * sysproc.h: Add guard macros.
12701 * syswait.h: Add guard macros.
12702 * xintrinsic.h: Add guard macros.
12703 * xintrinsicp.h: Add guard macros.
12704 * xmmanager.h: Add guard macros.
12705 * xmmanagerp.h: Add guard macros.
12706 * xmprimitive.h: Add guard macros.
12707 * xmu.h: Add guard macros.
12708 * gpmevent.h: Add copyright statement. Add guard macros.
12709 * miscplay.h: Add guard macros.
12710 * *.h: Use consistent C-standards-approved guard macro names.
12712 * opaque.c (make_opaque): Switch parameter order.
12713 * opaque.h (make_opaque): Switch parameter order.
12714 Update all callers.
12715 * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
12717 * config.h.in (type_checking_assert): Added.
12718 (bufpos_checking_assert): Added.
12720 2000-01-21 Martin Buchholz <martin@xemacs.org>
12722 * alloc.c: Harmless pdump changes.
12724 - spell alignment correctly.
12725 * sysdep.c: Use countof()
12727 2000-01-20 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12729 * console.c (create_console): Use CONMETH_OR_GIVEN when calling
12730 initially_selected_for_input() console method, default to 0.
12731 (semi_canonicalize_console_connection): Try to delegate to
12732 canonicalize_console_connection if no such console method.
12733 (canonicalize_console_connection): Vice versa.
12734 (print_console): Do not print nil connection.
12736 * console.h (XDEVIMPF_IS_A_PRINTER): Added.
12737 (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
12738 (XDEVIMPF_FRAMELESS_OK): Added.
12739 (CONSOLE_INHERITS_METHOD): Added.
12741 * console-msw.c (mswindows_canonicalize_console_connection):
12743 (mswindows_canonicalize_device_connection): Added.
12745 * console-msw.h (struct msprinter_device): Added this struct and
12747 (mswindows_device): Made fontlist a lisp object.
12749 * device.c (semi_canonicalize_device_connection): Try to delegate
12750 to canonicalize_device_connection if no such console method.
12751 (canonicalize_device_connection): Vice versa.
12752 (print_device): Do not print nil connection.
12754 * device-msw.c (mswindows_init_device): Call InitCommonControls
12756 (mswindows_delete_device): Removed fontlist deallocation.
12757 (mswindows_mark_device): Added.
12759 * events.c (event_equal): Added abort() at unreached code.
12760 (event_hash): Ditto.
12762 * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
12763 fallback tags of Windows devices.
12765 * general.c (syms_of_general): Initialized Qmsprinter.
12767 * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
12768 of fallback tags of Windows devices.
12770 * lisp.h: Declared Qmsprinter.
12772 * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
12774 (mswindows_list_fonts): Ditto.
12775 (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
12776 that it can be used by both mswindows and msprinter devices.
12777 (initialize_font_instance): Added.
12778 (mswindows_initialize_font_instance): Use it.
12779 (msprinter_initialize_font_instance): Added.
12781 * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
12782 and implementation flags check.
12783 (redisplay_without_hooks): Changed the call to the above.
12784 (Fredraw_device): Ditto.
12785 (Fredisplay_device): Ditto.
12787 * redisplay-msw.c (get_frame_dc): Implemented.
12788 (get_frame_compdc): Implemented.
12789 (many functions): Use the two functions above to get device
12790 contexts, ether for a window or a printer.
12792 2000-01-21 Olivier Galibert <galibert@pobox.com>
12794 * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
12795 initialization here.
12796 (init_symbols_once_early): Call it.
12797 * emacs.c (main_1): Call it.
12798 * symsinit.h: Declare it.
12800 2000-01-19 Olivier Galibert <galibert@pobox.com>
12802 * alloc.c: Use a lrecord_header * in the backtrace instead of a
12804 (pdump_backtrace): Ditto.
12805 (pdump_register_object): Ditto. Cleanup use of the pointers.
12806 (pdump_get_entry): Abort if trying to register a null pointer.
12807 (pdump_dump_data): Cleanup types when relocating.
12808 (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
12809 (pdump_dump_rtables): Remove bad casts.
12810 (pdump_load): Cleanup relocation w.r.t union type. Use a
12811 Lisp_Object instead of a EMACS_INT for the hashtable
12814 2000-01-20 Martin Buchholz <martin@xemacs.org>
12816 * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
12818 * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
12820 * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
12822 * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
12824 2000-01-17 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12826 * faces.h (FACE_STRIKETHRU_P): Added.
12828 * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
12831 * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
12832 (mswindows_set_dc_font): New function, aware of font variants,
12833 separated from mswindows_update_dc.
12835 * objects-msw.h (struct mswindows_font_instance_data): Added
12838 * objects-msw.c (mswindows_finalize_font_instance): Delete all
12839 cached fonts and the data structure.
12840 (mswindows_initialize_font_instance): Added creation of font data
12842 (mswindows_print_font_instance): Print at least something.
12843 (mswindows_create_font_variant): Implemented.
12844 (mswindows_get_hfont): Implemented.
12846 2000-01-13 Fabrice Popineau <Fabrice.Popineau@supelec.fr>
12848 * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
12849 prototyping problem with msvc.
12851 * emacs.c (main_1): added syms_of_gui_mswindows() call
12853 * gui-msw.c: added "mswindows-shell-execute" lisp subr and
12854 syms_of_gui_mswindows() function
12856 * symsinit.h: added the prototype for syms_of_gui_mswindows()
12858 2000-01-18 Martin Buchholz <martin@xemacs.org>
12860 * XEmacs 21.2.27 is released.
12862 2000-01-18 Martin Buchholz <martin@xemacs.org>
12864 * glyphs-eimage.c (struct tiff_error_struct):
12866 (tiff_warning_func):
12867 #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
12872 * unexec.c: Remove vestigial Lucid C code.
12876 * libsst.c: Ansify.
12877 Remove declarations of errno and strerror().
12879 * eval.c (Fbacktrace): Small Purify-cation. Fix docstring.
12881 * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
12883 2000-01-16 Martin Buchholz <martin@xemacs.org>
12885 * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
12888 2000-01-14 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12893 Change enum eol_type to eol_type_t.
12895 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12897 * gui.c (get_gui_callback): Check cons before accessing car.
12899 2000-01-17 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
12901 * specifier.h (XSPECIFIER_TYPE): Add error checking version.
12902 (XSETSPECIFIER_TYPE): Ditto.
12904 2000-01-17 Didier Verna <didier@xemacs.org>
12906 * redisplay.c (generate_fstring_runes): compute string size in
12907 characters, not bytes.
12909 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
12911 * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
12913 2000-01-14 Hrvoje Niksic <hniksic@iskon.hr>
12915 * print.c (print_error_message): Call print_prepare().
12917 2000-01-14 Martin Buchholz <martin@xemacs.org>
12919 * .dbxrc: Renamed from dbxrc.
12921 * events.c (event_to_character):
12922 Use `assert (foo)' instead of `if (!foo) abort()'
12924 * .gdbinit (xtype): Add documentation.
12925 * .gdbinit (check-temacs): New function.
12926 * .gdbinit (check-xemacs): New function.
12927 * dbxrc (check-xemacs): New function.
12928 * dbxrc (check-xemacs): New function.
12930 2000-01-14 Andy Piper <andy@xemacs.org>
12932 * glyphs-widget.c (widget_query_geometry): Make sure that we
12933 calculate default dimensions correctly.
12935 2000-01-13 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12937 * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
12939 * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
12940 pdump_wire'd variable.
12942 * emacs.c: (main_1): Conditionalized calls to
12943 reinit_vars_of_scrollbar_x and reinit_vars_of_module.
12945 2000-01-13 Martin Buchholz <martin@xemacs.org>
12947 * window.c (Fset_window_configuration):
12948 * sysdep.c (_start):
12949 * input-method-motif.c (res):
12950 * event-Xt.c (Xt_process_to_emacs_event):
12951 Simple compiler warning fixes.
12953 * bytecode.c (funcall_compiled_function): Use the original
12954 function symbol on the backtrace list in preference to the
12955 compiled_function object in error messages.
12957 2000-01-13 Andy Piper <andy@xemacs.org>
12959 * glyphs-x.c (update_widget_face): Make sure we update the widget
12960 background as well as foreground.
12962 2000-01-13 Andy Piper <andy@xemacs.org>
12964 * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
12965 fields to subwindow.
12966 (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
12967 (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
12968 (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12969 (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
12971 * glyphs-widget.c (check_valid_tab_orientation): new function.
12972 (initialize_widget_image_instance): zero orientation and
12974 (widget_instantiate): pick up orientation.
12975 (tab_control_query_geometry): return appropriate values for
12978 * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
12979 appropriate creation flags for left, right and bottom tabs.
12981 * s/cygwin32.h: add tab definitions.
12983 2000-01-12 Kirill 'Big K' Katsnelson <kkm@dtmx.com>
12985 * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
12986 frame upon hiding a subwindow.
12987 (mswindows_button_instantiate): Changed the push button style to
12989 (mswindows_button_instantiate): Removed button BS_NOTIFY
12991 (mswindows_button_instantiate): Removed redundant check for
12992 a disabled gui item.
12993 (mswindows_button_instantiate): Made use of WS_TABSTOP
12994 consistent: "operable" controls (edit, button, tree, scroll) have
12995 this style, "display-only" ones (static, progress gauge) do
12996 not. This style is currently ignored by XEmacs though. Also,
12997 removed the WS_EX_CONTROLPARENT style - it is not for children,
12998 it is for their parents!
12999 (mswindows_edit_field_instantiate): Ditto.
13000 (mswindows_progress_gauge_instantiate): Ditto.
13001 (mswindows_tree_view_instantiate): Ditto.
13002 (mswindows_tab_control_instantiate): Ditto.
13003 (mswindows_scrollbar_instantiate): Ditto.
13004 (mswindows_combo_box_instantiate): Ditto.
13005 (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
13006 style to the "clip" window.
13007 (mswindows_button_instantiate): Removed compilation warning by
13008 equally typing terms of the ?: operator.
13010 2000-01-12 Didier Verna <didier@xemacs.org>
13012 * redisplay.c (generate_fstring_runes): new parameter holding the
13013 last modeline-format extent.
13014 (add_glyph_to_fstring_db_runes): new parameter holding the glyph
13015 extent, fill the glyph block with it.
13016 (generate_fstring_runes): handle these parameters.
13017 (generate_formatted_string_db): ditto.
13019 * keymap.c (get_relevant_keymaps): retreive the keymaps from the
13020 glyphs'extents in the modeline.
13022 1999-01-11 Mike Woolley <mike@bulsara.com>
13024 * ntheap.c: Reduced the reserved heap space from 1Gb down to
13025 256Mb, as a workaround for the non-starting problem many people
13028 2000-01-06 Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
13030 * console-tty.c (Fset_console_tty_output_coding_system):
13031 Force redrawing tty frame.
13033 2000-01-10 Didier Verna <didier@xemacs.org>
13035 * redisplay.c (generate_fstring_runes): fix size computation bug.
13037 2000-01-09 William M. Perry <wmperry@aventail.com>
13039 * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
13041 2000-01-09 Andy Piper <andy@xemacs.org>
13043 * glyphs-msw.c: index -> i to avoid shadows.
13044 (xbm_create_bitmap_from_data): make static.
13045 (check_valid_string_or_int): deleted.
13046 (mswindows_control_wnd_proc): message -> msg to avoid shadows.
13048 * glyphs-x.c (x_update_subwindow): remove unused args.
13050 * glyphs.c (glyph_image_instance): return the thing. Don't set the
13051 back pointer - this is done in allocate_image_instance.
13052 (query_string_font): return Qnil to make the compiler happy.
13053 (unmap_subwindow): set to ~0 to make the compiler happy.
13054 (glyph_query_geometry): comment out until used.
13055 (glyph_layout): ditto.
13057 2000-01-09 Hrvoje Niksic <hniksic@iskon.hr>
13059 * insdel.c (signal_after_change): Remove extraneous unbind_to().